/* DiraChart AI Consultant — futuristic dark-glass theme */
.dcc-wrap,.dcc-chat{--bg:#060a18;--panel:#0b1226;--ink:#e8ecf8;--dim:#9aa6c3;
  --cyan:#22d3ee;--cyan2:#67e8f9;--violet:#7c5cff;--line:rgba(255,255,255,.09)}
.dcc-wrap{position:relative;max-width:1120px;margin:1.2rem auto 3rem;padding:2.4rem 2rem 2rem;
  background:radial-gradient(900px 420px at 12% -8%,rgba(124,92,255,.28),transparent 60%),
             radial-gradient(700px 380px at 95% 8%,rgba(34,211,238,.20),transparent 55%),
             linear-gradient(165deg,#070c1d,#050815 55%,#080d20);
  border:1px solid var(--line);border-radius:22px;color:var(--ink);overflow:hidden}
.dcc-wrap a{text-decoration:none}
.dcc-panel{background:transparent;border-radius:0;padding:0;color:inherit}
.dcc-panel-head{display:grid;grid-template-columns:1.2fr 1fr;gap:1.5rem;align-items:end;margin-bottom:1.9rem}
@media(max-width:760px){.dcc-panel-head{grid-template-columns:1fr}}
.dcc-eyebrow{letter-spacing:.22em;font-size:.7rem;font-weight:700;color:var(--cyan2) !important;margin:0 0 .5rem}
.dcc-headline{margin:0;font-size:clamp(2rem,4.6vw,3rem);line-height:1.04;font-weight:800;color:#eef4ff !important;text-shadow:0 0 26px rgba(34,211,238,.28)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
.dcc-headline{background:linear-gradient(92deg,#f4faff 5%,var(--cyan) 45%,#a78bff 90%) !important;-webkit-background-clip:text !important;background-clip:text !important;color:transparent !important;text-shadow:none}}
.dcc-intro{color:#bcc9e4 !important;font-size:.98rem;margin:0;max-width:34rem}
.dcc-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.2rem}
.dcc-card{position:relative;border-radius:18px;padding:1.5rem 1.4rem 1.4rem;color:var(--ink);overflow:hidden;
  border:1px solid transparent;
  background:linear-gradient(180deg,rgba(15,22,44,.92),rgba(10,15,32,.92)) padding-box,
             linear-gradient(135deg,rgba(34,211,238,.65),rgba(124,92,255,.65)) border-box;
  box-shadow:0 18px 50px rgba(2,6,18,.55);transition:transform .18s,box-shadow .18s;backdrop-filter:blur(8px)}
.dcc-card:hover{transform:translateY(-3px);box-shadow:0 22px 60px rgba(124,92,255,.30)}
.dcc-card::before{content:attr(data-num);position:absolute;top:6px;right:12px;font-size:3.3rem;font-weight:800;
  line-height:1;background:linear-gradient(135deg,rgba(34,211,238,.22),rgba(124,92,255,.22));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.dcc-card::after{content:"";position:absolute;top:26px;right:-40px;width:170px;height:170px;border-radius:50%;
  background:radial-gradient(circle,rgba(124,92,255,.35),transparent 65%);filter:blur(6px)}
.dcc-card>*{position:relative;z-index:1}
.dcc-card-eyebrow{letter-spacing:.18em;font-size:.66rem;font-weight:700;color:var(--cyan2) !important;margin:0 0 .5rem}
.dcc-card h2{margin:0 0 .4rem;font-size:1.4rem;line-height:1.15;font-weight:800;color:#f6f9ff !important;border:0 !important;padding-right:4.4rem;text-decoration:none !important}
.dcc-card-sub{color:#aab8d4 !important;font-size:.92rem;margin:0 0 1rem}
.dcc-features{list-style:none;margin:0 0 1.2rem;padding:0}
.dcc-features li{display:flex;justify-content:space-between;align-items:center;gap:.8rem;
  border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:10px;
  padding:.55rem .75rem;margin-bottom:.5rem;font-size:.9rem;color:#e9effc !important}
.dcc-pill{font-style:normal;text-transform:uppercase;letter-spacing:.1em;font-size:.6rem;font-weight:800;
  padding:.24rem .6rem;border-radius:999px;background:rgba(255,255,255,.07);color:var(--dim);white-space:nowrap;
  border:1px solid var(--line)}
.dcc-pill-live{background:rgba(34,211,238,.10);color:var(--cyan2);border-color:rgba(34,211,238,.35);
  display:inline-flex;align-items:center;gap:.35rem}
.dcc-pill-live::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--cyan);
  box-shadow:0 0 8px var(--cyan);animation:dccPulse 2.2s ease-in-out infinite}
@keyframes dccPulse{0%,100%{opacity:1}50%{opacity:.35}}
.dcc-pill-info{background:rgba(124,92,255,.14);color:#c9bcff;border-color:rgba(124,92,255,.4)}
.dcc-card-foot{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap}
.dcc-btn{display:inline-block;color:#061021 !important;font-weight:800;font-size:.9rem;padding:.72rem 1.2rem;
  border-radius:11px;background:linear-gradient(92deg,var(--cyan),var(--violet));
  box-shadow:0 0 22px rgba(34,211,238,.35);transition:filter .15s,box-shadow .15s}
.dcc-btn:hover{filter:brightness(1.12);box-shadow:0 0 30px rgba(124,92,255,.5)}
.dcc-notice{border:1px solid rgba(255,193,110,.35);background:rgba(255,178,72,.08);color:#f4d9ab !important;
  padding:.85rem 1rem;border-radius:10px;font-size:.92rem;margin-top:1.4rem}
.dcc-notice strong{color:#ffd9a0}
.dcc-login{margin-top:.9rem;color:var(--dim)}
/* ---- chat ---- */
.dcc-chat{position:relative;max-width:960px;margin:1.2rem auto 3rem;padding:1.8rem 1.6rem 1.6rem;
  background:radial-gradient(700px 340px at 90% -10%,rgba(124,92,255,.22),transparent 60%),
             linear-gradient(165deg,#070c1d,#050815);
  border:1px solid var(--line);border-radius:22px;color:var(--ink)}
.dcc-chat h1{color:#f6f9ff !important;font-weight:800}
.dcc-chat-head{display:flex;flex-wrap:wrap;gap:.75rem;align-items:baseline;justify-content:space-between}
.dcc-wallet{display:flex;gap:.9rem;align-items:center;font-size:.92rem;color:var(--dim)}
#dcc-balance{color:var(--cyan2);font-size:1.05rem}
.dcc-buy{border:1px solid rgba(34,211,238,.45);color:var(--cyan2);background:transparent;border-radius:9px;
  padding:.32rem .85rem;cursor:pointer}
.dcc-buy:hover{background:rgba(34,211,238,.1)}
.dcc-packs{display:flex;gap:.6rem;flex-wrap:wrap;margin:.6rem 0}
.dcc-pack{border:1px solid var(--line);background:rgba(255,255,255,.05);color:var(--ink);border-radius:9px;
  padding:.5rem .85rem;cursor:pointer}
.dcc-pack:hover{border-color:rgba(124,92,255,.5)}
.dcc-messages{border:1px solid var(--line);border-radius:14px;background:rgba(5,9,22,.55);padding:1rem;
  min-height:320px;max-height:60vh;overflow-y:auto;margin:1rem 0}
.dcc-msg{color:#e8ecf8 !important;padding:.75rem .95rem;border-radius:12px;margin-bottom:.7rem;white-space:pre-wrap;line-height:1.5}
.dcc-msg-user{background:rgba(124,92,255,.16);border:1px solid rgba(124,92,255,.3);margin-left:12%}
.dcc-msg-assistant{background:rgba(255,255,255,.05);border:1px solid var(--line);margin-right:6%}
.dcc-msg-error{background:rgba(255,86,86,.12);border:1px solid rgba(255,86,86,.35);color:#ffb4b4}
.dcc-msg-pending{opacity:.6;font-style:italic}
.dcc-composer{display:flex;gap:.6rem;align-items:flex-end}
.dcc-composer textarea{flex:1;border:1px solid var(--line);border-radius:12px;padding:.65rem .85rem;font:inherit;
  background:rgba(255,255,255,.05);color:var(--ink)}
.dcc-composer textarea::placeholder{color:#6d7a99}
.dcc-composer textarea:focus{outline:none;border-color:rgba(34,211,238,.6);box-shadow:0 0 0 3px rgba(34,211,238,.15)}
.dcc-composer button{border:0;border-radius:12px;padding:.72rem 1.35rem;cursor:pointer;font-weight:800;color:#061021;
  background:linear-gradient(92deg,var(--cyan),var(--violet));box-shadow:0 0 18px rgba(34,211,238,.3)}
.dcc-composer button[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none}
.dcc-footnote{color:#6d7a99;font-size:.8rem;margin-top:.7rem}

/* DIRACHART CONSULTANT INPUT FIX START */

/*
 * The site theme applies global form-field styles after the
 * consultant stylesheet. Use the field ID and consultant shell
 * to keep this composer interactive and readable.
 */

body .dcc-chat form#dcc-composer {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  gap: .65rem !important;
  align-items: flex-end !important;
  pointer-events: auto !important;
  isolation: isolate !important;
}

body .dcc-chat form#dcc-composer::before,
body .dcc-chat form#dcc-composer::after {
  pointer-events: none !important;
}

body .dcc-chat form#dcc-composer textarea#dcc-input {
  position: relative !important;
  z-index: 25 !important;

  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 88px !important;

  margin: 0 !important;
  padding: 13px 15px !important;

  border: 1px solid rgba(103, 232, 249, .36) !important;
  border-radius: 12px !important;

  background: #111827 !important;
  background-image: none !important;

  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  caret-color: #67e8f9 !important;

  font: inherit !important;
  line-height: 1.5 !important;

  opacity: 1 !important;
  visibility: visible !important;

  pointer-events: auto !important;
  cursor: text !important;

  user-select: text !important;
  -webkit-user-select: text !important;

  resize: vertical !important;
  appearance: auto !important;
  -webkit-appearance: none !important;

  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, .25) !important;
}

body .dcc-chat form#dcc-composer textarea#dcc-input:hover {
  border-color: rgba(103, 232, 249, .58) !important;
}

body .dcc-chat form#dcc-composer textarea#dcc-input:focus,
body .dcc-chat form#dcc-composer textarea#dcc-input:focus-visible {
  border-color: #67e8f9 !important;
  outline: 0 !important;

  background: #0f172a !important;

  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;

  box-shadow:
    0 0 0 3px rgba(34, 211, 238, .18),
    inset 0 1px 2px rgba(0, 0, 0, .22) !important;
}

body .dcc-chat form#dcc-composer textarea#dcc-input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
  opacity: 1 !important;
}

body .dcc-chat form#dcc-composer button#dcc-send {
  position: relative !important;
  z-index: 25 !important;
  pointer-events: auto !important;
  flex: 0 0 auto !important;
}

@media (max-width: 620px) {
  body .dcc-chat form#dcc-composer {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  body .dcc-chat form#dcc-composer button#dcc-send {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* DIRACHART CONSULTANT INPUT FIX END */

/* CENTRAL AI WALLET BRIDGE START */

.dcc-chat .dcc-wallet {
  flex-wrap: wrap;
}

.dcc-chat #dcc-free-status {
  color: #c9bcff !important;
  font-weight: 700;
}

.dcc-chat .dcc-buy {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  white-space: nowrap;
}

.dcc-chat .dcc-buy:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

/* CENTRAL AI WALLET BRIDGE END */

/* PUBLIC CONSULTANT AUTHENTICATION FLOW START */

.dcc-auth-notice {
  margin: 1rem 0;
  padding: 1rem 1.1rem;

  display: grid;
  gap: .45rem;

  border: 1px solid rgba(103, 232, 249, .32);
  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      rgba(34, 211, 238, .09),
      rgba(124, 92, 255, .09)
    );

  color: #dce8fb;
}

.dcc-auth-notice strong {
  color: #f8fbff;
  font-size: 1rem;
}

.dcc-auth-notice span {
  color: #b9c6dc;
  line-height: 1.5;
}

.dcc-auth-actions {
  margin-top: .35rem;

  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.dcc-auth-actions a {
  min-height: 38px;
  padding: .55rem .9rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(103, 232, 249, .4);
  border-radius: 9px;

  color: #dffbff !important;
  text-decoration: none !important;
  font-weight: 750;

  background: rgba(5, 15, 31, .45);
}

.dcc-auth-actions a:hover,
.dcc-auth-actions a:focus-visible {
  border-color: #67e8f9;
  background: rgba(34, 211, 238, .12);
}

/* PUBLIC CONSULTANT AUTHENTICATION FLOW END */
