/* app.css — auth + dashboard, built on the landing page's design tokens */
[hidden] { display: none !important; }

/* ============ AUTH ============ */
.auth-body { background: var(--paper); }
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: var(--ink); display: flex; }
.auth-art__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-art__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,14,.4), rgba(10,10,14,.85)); }
.auth-art__inner { position: relative; margin: auto auto 56px 56px; max-width: 440px; color: #fff; }
.auth-art__inner .brand { margin-bottom: 28px; }
.auth-art__inner h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 600; }
.auth-art__inner h2 em { color: var(--amber); font-style: italic; }
.auth-art__inner p { margin-top: 16px; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.55; }

.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-tabs { display: inline-flex; background: #ece9ff; border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { border: 0; background: transparent; padding: 9px 22px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--t-muted); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--t-strong); box-shadow: var(--shadow-soft); }
.auth-card h1 { font-size: 34px; font-weight: 600; color: var(--t-strong); }
.auth-sub { color: var(--t-muted); margin: 6px 0 26px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; color: var(--t-body); margin-bottom: 7px; }
.auth-field input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--paper-edge); border-radius: 14px; font: inherit; background: #fff; }
.auth-field input:focus { outline: none; border-color: var(--accent); }
.auth-error { color: #d6453d; font-size: 14px; min-height: 18px; margin: 4px 0; }
.auth-submit { width: 100%; justify-content: center; margin-top: 6px; }
.auth-foot { text-align: center; color: var(--t-muted); font-size: 13px; margin-top: 16px; }

/* ===================================================================
   DASHBOARD — dark, glassy, atmospheric
   =================================================================== */
:root {
  --d-bg:        #0b0b12;
  --d-bg-2:      #0f0f18;
  --d-card:      rgba(24, 24, 34, 0.66);
  --d-card-2:    rgba(30, 30, 42, 0.72);
  --d-line:      rgba(255, 255, 255, 0.08);
  --d-line-2:    rgba(255, 255, 255, 0.14);
  --d-text:      #f3f2f8;
  --d-soft:      rgba(243, 242, 248, 0.62);
  --d-faint:     rgba(243, 242, 248, 0.40);
  --glass-blur:  18px;
}

.app-body {
  background: var(--d-bg);
  color: var(--d-text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* aurora background + grain */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(91, 79, 240, 0.32), transparent 60%),
    radial-gradient(50% 50% at 92% 8%, rgba(245, 147, 59, 0.20), transparent 55%),
    radial-gradient(60% 60% at 78% 100%, rgba(91, 79, 240, 0.18), transparent 60%),
    var(--d-bg);
  animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { filter: hue-rotate(0deg)  saturate(1);   }
  100% { filter: hue-rotate(-12deg) saturate(1.15); }
}
.app-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app-shell {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 264px 1fr; min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 26px 18px;
  background: linear-gradient(180deg, rgba(18,18,26,0.9), rgba(11,11,18,0.9));
  backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--d-line);
}
.side__brand { margin: 4px 8px 30px; color: #fff; }
.side__brand .brand__word { color: #fff; }

.side__nav { display: flex; flex-direction: column; gap: 4px; }
.side__link {
  display: flex; align-items: center; gap: 13px; width: 100%;
  border: 0; background: transparent; color: var(--d-soft);
  font: inherit; font-weight: 500; font-size: 15px;
  padding: 12px 14px; border-radius: 13px; cursor: pointer; text-align: left;
  position: relative; transition: all .2s var(--ease);
}
.side__link svg { width: 19px; height: 19px; flex: none; transition: transform .2s; }
.side__link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.side__link:hover svg { transform: scale(1.08); }
.side__link.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(91,79,240,0.9), rgba(91,79,240,0.55));
  box-shadow: 0 8px 24px rgba(91,79,240,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}
.side__link.active::before {
  content: ""; position: absolute; left: -18px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: var(--amber);
}

.side__promo {
  position: relative; overflow: hidden; margin-top: 22px;
  border: 1px solid var(--d-line); border-radius: 16px; padding: 16px;
  background: var(--d-card); backdrop-filter: blur(var(--glass-blur));
}
.side__promo b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.side__promo span { font-size: 13px; color: var(--d-soft); line-height: 1.45; }
.side__promo-glow {
  position: absolute; width: 120px; height: 120px; right: -30px; top: -40px;
  background: radial-gradient(circle, rgba(245,147,59,0.5), transparent 70%); filter: blur(8px);
}

.side__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--d-line);
  display: flex; align-items: center; gap: 10px; }
.side__user { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.side__avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--amber), #ffba6b);
  color: #2a1605; display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.side__user-meta { display: flex; flex-direction: column; min-width: 0; }
.side__user-meta b { color: #fff; font-size: 14px; }
.side__user-meta i { font-style: normal; font-size: 12px; color: var(--d-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__logout {
  flex: none; width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--d-line-2); background: transparent; color: var(--d-soft);
  display: grid; place-items: center; transition: all .2s;
}
.side__logout svg { width: 18px; height: 18px; }
.side__logout:hover { background: rgba(255,80,80,0.12); color: #ff8a8a; border-color: rgba(255,80,80,0.3); }

/* ============ MAIN ============ */
.main { padding: 40px 48px 80px; max-width: 1280px; }
.main__head { display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.main__greet .eyebrow.accent { color: #b9b1ff; margin-bottom: 12px; }
.main__greet h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; color: #fff;
  line-height: 1.04; letter-spacing: -0.01em; }
.main__greet h1 em { color: var(--amber); font-style: italic; }

.statline { display: flex; gap: 14px; }
.stat {
  background: var(--d-card); border: 1px solid var(--d-line); border-radius: 16px;
  padding: 14px 20px; text-align: center; backdrop-filter: blur(var(--glass-blur)); min-width: 96px;
}
.stat__n { display: block; font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700;
  color: #fff; line-height: 1; }
.stat__l { font-size: 11.5px; color: var(--d-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.view { display: none; }
.view.active { display: block; animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ ASK CARD ============ */
.askcard {
  background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 24px;
  padding: 18px; backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative; transition: border-color .25s, box-shadow .25s;
}
.askcard:focus-within { border-color: rgba(91,79,240,0.6);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 4px rgba(91,79,240,0.18); }
.askcard__top { display: flex; justify-content: space-between; align-items: center;
  gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }

.segmented { display: inline-flex; background: rgba(0,0,0,0.32); border: 1px solid var(--d-line);
  border-radius: 13px; padding: 4px; gap: 2px; }
.seg { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent;
  color: var(--d-soft); font: inherit; font-weight: 600; font-size: 13.5px;
  padding: 8px 15px; border-radius: 10px; cursor: pointer; transition: all .2s; }
.seg svg { width: 16px; height: 16px; }
.seg:hover { color: #fff; }
.seg.active { background: linear-gradient(135deg, var(--indigo), #7a6dff); color: #fff;
  box-shadow: 0 6px 16px rgba(91,79,240,0.4); }

.askcard__selects { display: flex; gap: 10px; }
.pill-select { display: inline-flex; align-items: center; gap: 8px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-faint);
  background: rgba(0,0,0,0.28); border: 1px solid var(--d-line); border-radius: 11px; padding: 6px 6px 6px 12px; }
.pill-select select { font: inherit; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0;
  padding: 6px 10px; border-radius: 8px; border: 0; background: rgba(255,255,255,0.06); color: #fff; cursor: pointer; }
.pill-select select option { background: #1a1a26; }

.askcard textarea { width: 100%; border: 0; resize: vertical; font: inherit; font-size: 18px;
  padding: 10px 8px; color: #fff; background: transparent; min-height: 64px; }
.askcard textarea::placeholder { color: var(--d-faint); }
.askcard textarea:focus { outline: none; }

.askcard__bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.askcard__status { font-size: 14px; color: #b9b1ff; min-height: 20px; flex: 1; }
.askcard__send {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; color: #fff;
  padding: 14px 24px; border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo), #7a6dff);
  box-shadow: 0 12px 30px rgba(91,79,240,0.45); transition: transform .15s, box-shadow .15s;
}
.askcard__send svg { width: 19px; height: 19px; }
.askcard__send:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(91,79,240,0.55); }
.askcard__send:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* quick chips */
.quick { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.quick__lbl { font-size: 13px; color: var(--d-faint); font-weight: 600; }
.chip { border: 1px solid var(--d-line-2); background: var(--d-card); color: var(--d-soft);
  font: inherit; font-size: 13.5px; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(var(--glass-blur)); transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(91,79,240,0.6); background: rgba(91,79,240,0.16);
  transform: translateY(-1px); }

/* ============ GENERATING ============ */
.gen { margin-top: 28px; display: flex; align-items: center; gap: 22px;
  background: var(--d-card); border: 1px solid var(--d-line); border-radius: 20px;
  padding: 24px; backdrop-filter: blur(var(--glass-blur)); animation: rise .4s var(--ease) both; }
.gen__orb { width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: conic-gradient(from 0deg, var(--indigo), var(--amber), #7a6dff, var(--indigo));
  animation: spin 1.3s linear infinite;
  -webkit-mask: radial-gradient(circle 20px at center, transparent 96%, #000 0);
          mask: radial-gradient(circle 20px at center, transparent 96%, #000 0); }
@keyframes spin { to { transform: rotate(360deg); } }
.gen__body h4 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.gen__steps { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.gen__steps li { color: var(--d-faint); padding-left: 26px; position: relative;
  font-size: 14.5px; transition: color .3s; }
.gen__steps li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid var(--d-line-2); transition: all .3s; }
.gen__steps li.done { color: #fff; }
.gen__steps li.done::before { border-color: var(--indigo); background: var(--indigo);
  box-shadow: 0 0 12px rgba(91,79,240,0.6); }

/* ============ LESSON ============ */
.lesson { margin-top: 28px; display: grid; grid-template-columns: 1fr 260px; gap: 22px;
  align-items: start; animation: rise .45s var(--ease) both; }

.lesson__deck { background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 22px;
  backdrop-filter: blur(var(--glass-blur)); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.lesson__deckhead { display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px 0; }
.lesson__subject { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #b9b1ff; background: rgba(91,79,240,0.16); border: 1px solid rgba(91,79,240,0.3);
  padding: 6px 13px; border-radius: 999px; }
.lesson__dl { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--d-line-2);
  background: rgba(255,255,255,0.05); color: #fff; font: inherit; font-weight: 600; font-size: 13.5px;
  padding: 8px 14px; border-radius: 11px; cursor: pointer; transition: all .2s; }
.lesson__dl svg { width: 16px; height: 16px; }
.lesson__dl:hover { background: rgba(255,255,255,0.12); }

.lesson__rail { display: flex; gap: 6px; padding: 14px 18px 0; flex-wrap: wrap; }
.rail-pip { border: 1px solid var(--d-line); background: rgba(255,255,255,0.04); color: var(--d-soft);
  font: inherit; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  cursor: pointer; text-transform: capitalize; transition: all .2s; }
.rail-pip:hover { color: #fff; }
.rail-pip.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.lesson__stage { padding: 18px; }
.slide-canvas {
  position: relative;
  background: radial-gradient(circle at 50% 40%, #1c4535 0%, #112d22 80%, #0d221a 100%);
  border: 12px solid #3d2817;
  outline: 2px solid #23160a;
  border-radius: 16px;
  padding: 36px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.85), 0 20px 50px rgba(0,0,0,0.6);
  font-family: 'Patrick Hand', 'Caveat', cursive, sans-serif;
  color: rgba(255,255,255,0.92);
  animation: rise .35s var(--ease) both; }

/* Chalkboard Dust Overlay */
.slide-canvas::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.15;
  background-image: radial-gradient(rgba(255,255,255,0.3) 1px, transparent 0);
  background-size: 24px 24px; border-radius: 4px; }

.slide-canvas__grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; height: 100%; z-index: 1; }
.slide-canvas__grid--full { grid-template-columns: 1fr !important; }
@media (max-width: 900px) {
  .slide-canvas__grid { grid-template-columns: 1fr; }
}
.slide-canvas__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.slide-canvas__imgwrap {
  width: 100%; border-radius: 16px; overflow: hidden; border: 2px dashed rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.4); aspect-ratio: 4/3; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.slide-canvas__img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.slide-canvas__imgwrap:hover .slide-canvas__img { transform: scale(1.03); }

.slide-canvas .kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #ffe066; text-shadow: 0 0 4px rgba(255,224,102,0.4); }
.slide-canvas h2, .slide-canvas h3 { color: #fff; text-shadow: 0 0 2px rgba(255,255,255,0.8), 0 0 10px rgba(255,255,255,0.3); }
.slide-title { font-family: 'Caveat', cursive; font-size: clamp(42px, 5.5vw, 64px); font-weight: 700; line-height: 1.1; }
.slide-sub { color: rgba(255,255,255,0.85); font-size: 22px; max-width: 50ch; line-height: 1.5; font-family: 'Patrick Hand', cursive; }
.slide-canvas h3 { font-family: 'Caveat', cursive; font-size: 34px; letter-spacing: 0.02em; }

/* Visual Flowchart */
.flowx { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.flowx__node { background: rgba(255,255,255,0.06); border: 1px solid var(--d-line-2); border-radius: 14px;
  padding: 14px 18px; font-weight: 600; color: #fff; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.flowx__node.alt { background: linear-gradient(135deg, var(--indigo), #7a6dff); border-color: transparent;
  box-shadow: 0 8px 22px rgba(91,79,240,0.4); }
.flowx__num { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.flowx__arr { color: var(--amber); font-size: 24px; font-weight: 700; }

/* Visual Diagram Node Graph */
.diax-visual { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }
.diax-hub { display: flex; justify-content: flex-start; margin-bottom: 6px; }
.diax-hub__circle {
  background: linear-gradient(135deg, var(--indigo), #7a6dff); padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(91,79,240,0.5); border: 1px solid rgba(255,255,255,0.2); }
.diax-hub__title { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }

.diax-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.diax-card {
  position: relative; background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 16px;
  padding: 16px; backdrop-filter: blur(var(--glass-blur)); transition: transform .2s, border-color .2s; }
.diax-card:hover { transform: translateY(-2px); border-color: rgba(91,79,240,0.6); }
.diax-card.c0 { border-left: 4px solid var(--indigo); }
.diax-card.c1 { border-left: 4px solid var(--amber); }
.diax-card.c2 { border-left: 4px solid #8b7bff; }
.diax-card.c3 { border-left: 4px solid #34c39b; }
.diax-card__body b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.diax-card__body span { color: var(--d-soft); font-size: 13px; line-height: 1.45; }

/* Diagram Variation 3: Topic Visual Schematic (e.g. IC Engine, Pelton Wheel, Cell, Universal Core) */
.diax-schematic { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.diax-schematic__graphic {
  background: rgba(0,0,0,0.35); border: 2px dashed rgba(255,255,255,0.25); border-radius: 20px;
  padding: 16px; backdrop-filter: blur(var(--glass-blur)); box-shadow: inset 0 0 20px rgba(0,0,0,0.4); }
.diax-schematic__hub {
  display: inline-flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.4);
  border: 2px dashed rgba(255,255,255,0.4); padding: 12px 24px; border-radius: 999px; align-self: flex-start; }
.diax-schematic__icon { font-size: 24px; }
.diax-schematic__title { font-family: 'Caveat', cursive; font-size: 26px; color: #ffe066; text-shadow: 0 0 4px rgba(255,224,102,0.4); }

.diax-schematic__parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.diax-schematic__card {
  display: flex; gap: 14px; align-items: flex-start; background: rgba(0,0,0,0.35); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 16px; padding: 16px; backdrop-filter: blur(var(--glass-blur)); transition: transform .2s, border-color .2s; }
.diax-schematic__card:hover { transform: translateY(-2px); border-color: #80ffea; }
.diax-schematic__card.c0 { border-left: 4px solid #ffe066; }
.diax-schematic__card.c1 { border-left: 4px solid #80ffea; }
.diax-schematic__card.c2 { border-left: 4px solid #a8ffb2; }
.diax-schematic__card.c3 { border-left: 4px solid #ff928b; }

.diax-schematic__pin {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.4); font-family: 'Caveat', cursive; font-weight: 700; font-size: 18px;
  display: grid; place-items: center; flex: none; }
.diax-schematic__content b { display: block; color: #fff; font-family: 'Patrick Hand', cursive; font-size: 19px; margin-bottom: 2px; }
.diax-schematic__content span { color: rgba(255,255,255,0.85); font-family: 'Patrick Hand', cursive; font-size: 16px; line-height: 1.4; }
.diax-cycle { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.diax-cycle__center {
  display: inline-flex; background: linear-gradient(135deg, var(--indigo), #7a6dff);
  padding: 10px 22px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px;
  align-self: flex-start; box-shadow: 0 8px 24px rgba(91,79,240,0.4); }
.diax-cycle__nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.diax-cycle__node {
  display: flex; gap: 12px; align-items: flex-start; background: var(--d-card); border: 1px solid var(--d-line-2);
  border-radius: 14px; padding: 14px; backdrop-filter: blur(var(--glass-blur)); }
.diax-cycle__badge {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(91,79,240,0.25); color: #c4bcff;
  border: 1px solid rgba(91,79,240,0.5); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.diax-cycle__text b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.diax-cycle__text span { color: var(--d-soft); font-size: 12.5px; line-height: 1.4; }

/* Diagram Variation 2: Comparison Grid */
.diax-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.diax-compare__col {
  background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 16px; overflow: hidden; }
.diax-compare__head {
  padding: 12px 16px; background: rgba(255,255,255,0.06); border-bottom: 1px solid var(--d-line); }
.diax-compare__head b { color: #fff; font-size: 15px; }
.diax-compare__body { padding: 14px 16px; color: var(--d-soft); font-size: 13.5px; line-height: 1.5; }

/* Diagram Variation 4: Component Breakdown Grid */
.diax-grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.diax-comp-card {
  display: flex; gap: 12px; align-items: flex-start; background: var(--d-card); border: 1px solid var(--d-line);
  border-radius: 14px; padding: 14px; backdrop-filter: blur(var(--glass-blur)); }
.diax-comp-sw { width: 14px; height: 14px; border-radius: 4px; flex: none; margin-top: 3px; background: var(--indigo); }
.diax-comp-card.c1 .diax-comp-sw { background: var(--amber); }
.diax-comp-card.c2 .diax-comp-sw { background: #8b7bff; }
.diax-comp-card.c3 .diax-comp-sw { background: #34c39b; }
.diax-comp-text b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 2px; }
.diax-comp-text span { color: var(--d-soft); font-size: 12.5px; line-height: 1.4; }

.expx { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.expx__pt { display: flex; gap: 14px; }
.expx__pt .n { width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: rgba(91,79,240,0.2); color: #c4bcff; font-weight: 700; display: grid; place-items: center;
  border: 1px solid rgba(91,79,240,0.4); }
.expx__pt p { color: var(--d-soft); line-height: 1.55; } .expx__pt b { color: #fff; }

.lesson__deckbar { display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-top: 1px solid var(--d-line); }
.navbtn { border: 1px solid var(--d-line-2); background: rgba(255,255,255,0.05); width: 40px; height: 40px;
  border-radius: 11px; font-size: 22px; cursor: pointer; color: #fff; transition: all .2s; }
.navbtn:hover { background: rgba(255,255,255,0.14); }
.lesson__deckbar #slideCount { font-weight: 600; color: var(--d-soft); }

/* tutor */
.tutor {
  background: linear-gradient(180deg, rgba(24,24,34,0.92), rgba(15,15,24,0.95));
  border: 1px solid var(--d-line-2);
  border-radius: 22px;
  padding: 18px;
  position: sticky;
  top: 24px;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tutor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tutor__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #80ffea;
  background: rgba(128,255,234,0.12);
  border: 1px solid rgba(128,255,234,0.28);
  padding: 5px 12px;
  border-radius: 999px;
}
.tutor__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #80ffea;
  box-shadow: 0 0 10px #80ffea;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.tutor__avatar {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(91,79,240,0.22), rgba(10,10,18,0.95));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 12px 30px rgba(0,0,0,0.4);
}
.tutor__avatar canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  position: relative;
  z-index: 1;
}

.tutor__tload {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--d-soft);
  font-size: 13px;
  background: rgba(10,10,18,0.85);
  z-index: 2;
}
.tutor__tload i {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: cls-spin .8s linear infinite;
}

.tutor__startbtn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo), #7a6dff);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  font: 700 14px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(91,79,240,0.45);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutor__startbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(91,79,240,0.65);
}

.tutor__cap {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.35);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 58px;
}

.tutor__ctrls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tutor__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), #7a6dff);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(91,79,240,0.5);
  transition: transform .2s, box-shadow .2s;
  flex: none;
}
.tutor__play:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(91,79,240,0.7);
}
.tutor__play svg { width: 20px; height: 20px; }

.tutor__mic {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font: 600 13.5px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.tutor__mic:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
}
.tutor__mic.recording {
  background: rgba(229,72,77,0.25);
  border-color: #e5484d;
  color: #ff999b;
  animation: pulse 1.2s ease-in-out infinite;
}
.tutor__mic svg { width: 18px; height: 18px; }

.tutor__status {
  font-size: 12.5px;
  color: var(--d-soft);
  font-weight: 500;
  text-align: center;
}

/* ============ LIBRARY ============ */
.doubts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.doubt { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 18px; padding: 22px;
  backdrop-filter: blur(var(--glass-blur)); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative; overflow: hidden; }
.doubt:hover { transform: translateY(-3px); border-color: var(--d-line-2); box-shadow: 0 14px 36px rgba(0,0,0,0.34); }
.doubt:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.doubt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--indigo); }
.doubt.phy::before { background: var(--amber); } .doubt.math::before { background: #34c39b; }
.doubt.bio::before { background: #5b4ff0; } .doubt.chem::before { background: #ff7ab6; }
.doubt__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #b9b1ff; }
.doubt h4 { margin: 10px 0; color: #fff; font-size: 16.5px; line-height: 1.35; }
.doubt__meta { font-size: 13px; color: var(--d-faint); }
.doubt__open { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em; color: #c7c0ff; opacity: .75; transition: opacity .2s; }
.doubt__open svg { width: 15px; height: 15px; }
.doubt:hover .doubt__open { opacity: 1; }
.doubts > p { color: var(--d-faint); }

/* ============ STREAK ============ */
.streak-card { position: relative; overflow: hidden; background: var(--d-card); border: 1px solid var(--d-line-2);
  border-radius: 24px; padding: 38px; backdrop-filter: blur(var(--glass-blur)); max-width: 640px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.streak-card__glow { position: absolute; width: 280px; height: 280px; right: -80px; top: -100px;
  background: radial-gradient(circle, rgba(245,147,59,0.35), transparent 70%); filter: blur(10px); }
.streak__big { display: flex; align-items: center; gap: 14px; position: relative; }
.streak__fire { font-size: 44px; }
.streak__num { font-family: 'Playfair Display', serif; font-size: 72px; font-weight: 800; color: #fff; line-height: 1; }
.streak__lbl { color: var(--d-soft); margin-top: 6px; }
.streak__week { display: flex; gap: 10px; margin-top: 26px; }
.streak__cell { flex: 1; text-align: center; }
.streak__box { height: 44px; border-radius: 12px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--d-line); margin-bottom: 8px; transition: all .3s; }
.streak__box.on { background: linear-gradient(160deg, var(--amber), #ff9d4d); border-color: transparent;
  box-shadow: 0 6px 18px rgba(245,147,59,0.4); }
.streak__cell span { font-size: 12px; color: var(--d-faint); }

/* ============ SETTINGS ============ */
.set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 760px; }
.set-card { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 20px; padding: 28px;
  backdrop-filter: blur(var(--glass-blur)); }
.set-card h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.set-card p { margin-bottom: 12px; color: var(--d-soft); line-height: 1.6; font-size: 14.5px; }
.set-card b { color: #fff; }
.set-logout { margin-top: 6px; border: 1px solid rgba(255,80,80,0.3); background: rgba(255,80,80,0.1);
  color: #ff8a8a; padding: 10px 18px; border-radius: 11px; font: inherit; font-weight: 600; cursor: pointer; transition: all .2s; }
.set-logout:hover { background: rgba(255,80,80,0.2); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
    border-right: 0; border-bottom: 1px solid var(--d-line); padding: 14px 18px; }
  .side__brand { margin: 0 14px 0 0; }
  .side__nav { flex-direction: row; flex-wrap: wrap; }
  .side__link.active::before { display: none; }
  .side__promo { display: none; }
  .side__foot { margin: 0 0 0 auto; border-top: 0; padding-top: 0; }
  .side__user-meta i { display: none; }
  .main { padding: 26px 22px 70px; }
  .lesson { grid-template-columns: 1fr; }
  .tutor { position: static; }
}
@media (max-width: 560px) {
  .main__head { align-items: flex-start; }
  .askcard__top { flex-direction: column; align-items: stretch; }
  .askcard__bottom { flex-direction: column; align-items: stretch; }
  .askcard__send { justify-content: center; }
}

/* ===================================================================
   PRACTICE + SPEAKING COACH  (matches the dashboard design system)
   =================================================================== */
.lesson__acts { display: flex; gap: 8px; }

/* shared setup card */
.pcard {
  background: var(--d-card); border: 1px solid var(--d-line); border-radius: 20px;
  padding: 22px 24px; backdrop-filter: blur(var(--glass-blur)); margin-bottom: 22px;
}
.pcard__hint { color: var(--d-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.pcard__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pcard__or { color: var(--d-faint); font-size: 13px; }
.pinput {
  flex: 1; min-width: 200px; background: rgba(0,0,0,0.28); border: 1px solid var(--d-line-2);
  border-radius: 12px; padding: 12px 14px; color: var(--d-text); font: inherit; font-size: 15px;
}
.pinput::placeholder { color: var(--d-faint); }
.pinput:focus { outline: none; border-color: rgba(91,79,240,0.6); }
.pcard__go { padding: 12px 20px; }

/* ---------- quiz ---------- */
.quiz { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 22px; padding: 26px; backdrop-filter: blur(var(--glass-blur)); }
.quiz__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.quiz__head h3 { color: #fff; font-size: 20px; }
.quiz__prog { color: var(--d-faint); font-size: 13px; }
.qq { border-top: 1px solid var(--d-line); padding: 20px 0; }
.qq:first-child { border-top: 0; padding-top: 0; }
.qq__q { display: flex; gap: 12px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.qq__n { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(91,79,240,0.25);
  color: #c5bdff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.qq__opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--d-line-2);
  border-radius: 12px; cursor: pointer; transition: all .18s var(--ease); color: var(--d-soft); }
.opt:hover { border-color: rgba(91,79,240,0.6); background: rgba(91,79,240,0.1); color: #fff; }
.opt input { accent-color: var(--indigo); width: 16px; height: 16px; }
.opt.ok { border-color: #34c39b; background: rgba(52,195,155,0.16); color: #fff; }
.opt.bad { border-color: #ff6b6b; background: rgba(255,107,107,0.14); color: #fff; }
.qq__short { width: 100%; background: rgba(0,0,0,0.28); border: 1px solid var(--d-line-2); border-radius: 12px;
  padding: 12px 14px; color: var(--d-text); font: inherit; font-size: 15px; resize: vertical; }
.qq__short:focus { outline: none; border-color: rgba(91,79,240,0.6); }
.qq__fb { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--d-soft);
  padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--d-line); }
.qq__fb b { color: #fff; }
.qq__fb.good { background: rgba(52,195,155,0.12); border-color: rgba(52,195,155,0.4); }
.qq__fb.good b { color: #6fe0bd; }
.qq__fb.partial { background: rgba(245,147,59,0.12); border-color: rgba(245,147,59,0.4); }
.qq__fb.partial b { color: #ffc188; }
.qq__fb.wrong { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.35); }
.qq__fb.wrong b { color: #ff9d9d; }
.qq__model { margin-top: 8px; color: var(--d-faint); font-size: 13.5px; }
.qq__grading { color: #b9b1ff; }
.quiz__foot { display: flex; gap: 12px; margin-top: 22px; }
.quiz__score { display: flex; align-items: center; gap: 22px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--d-line); }
.quiz__score b { color: #fff; font-size: 18px; } .quiz__score p { color: var(--d-soft); margin-top: 4px; font-size: 14px; }

/* progress rings (quiz + report) */
.quiz__ring, .report__ring {
  --p: 0; flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--indigo) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
}
.quiz__ring span, .report__ring span {
  width: 64px; height: 64px; border-radius: 50%; background: var(--d-bg-2); display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; color: #fff;
}

/* ---------- speaking coach ---------- */
.qbox { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 22px; padding: 26px; margin-bottom: 22px; backdrop-filter: blur(var(--glass-blur)); }
.qbox__lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #b9b1ff; }
.qbox__q { color: #fff; font-size: 21px; font-weight: 600; line-height: 1.4; margin: 10px 0 20px; font-family: 'Playfair Display', serif; }
.qbox__rec { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.recbtn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
  color: #fff; padding: 13px 22px; border-radius: 14px; background: linear-gradient(135deg, var(--indigo), #7a6dff);
  box-shadow: 0 12px 30px rgba(91,79,240,0.4); transition: all .2s var(--ease); }
.recbtn svg { width: 20px; height: 20px; }
.recbtn:hover { transform: translateY(-2px); }
.recbtn.rec { background: linear-gradient(135deg, #ff5b5b, #ff7a45); box-shadow: 0 12px 30px rgba(255,91,91,0.4); animation: recpulse 1.1s ease-in-out infinite; }
@keyframes recpulse { 50% { box-shadow: 0 12px 40px rgba(255,91,91,0.7); } }
.recbtn__hint { color: var(--d-faint); font-size: 13.5px; }

/* ---------- report ---------- */
.report { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 22px; padding: 28px; backdrop-filter: blur(var(--glass-blur)); }
.report__head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.report__head h3 { color: #fff; font-size: 18px; line-height: 1.4; font-weight: 600; margin-top: 4px; }
.report__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.report__meta span { background: rgba(255,255,255,0.05); border: 1px solid var(--d-line); border-radius: 10px;
  padding: 8px 13px; font-size: 13px; color: var(--d-soft); }
.report__meta b { color: #fff; }
.report__bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px; }
.met__top { display: flex; justify-content: space-between; font-size: 13px; color: var(--d-soft); margin-bottom: 6px; }
.met__top b { color: #fff; }
.met__bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.met__bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s var(--ease); }
.met__bar i.hi { background: linear-gradient(90deg, #34c39b, #4fe0b5); }
.met__bar i.mid { background: linear-gradient(90deg, var(--amber), #ffb066); }
.met__bar i.lo { background: linear-gradient(90deg, #ff5b5b, #ff8a6b); }
.report__filler { color: var(--d-soft); font-size: 14px; line-height: 1.55; background: rgba(245,147,59,0.1);
  border: 1px solid rgba(245,147,59,0.3); border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; }
/* uploaded photo / PDF preview in the ask card */
/* always-visible attach buttons under the doubt box */
.attachbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 2px; }
.attachbtn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 12px; cursor: pointer; color: #d7d3ff;
  border: 1px dashed rgba(147,138,255,0.45); background: rgba(91,79,240,0.08); transition: .15s;
}
.attachbtn svg { width: 18px; height: 18px; }
.attachbtn:hover { background: rgba(91,79,240,0.18); border-color: rgba(147,138,255,0.8); color: #fff; }
.attachbar__hint { font-size: 12.5px; color: var(--d-faint); }
@media (max-width: 560px) { .attachbar__hint { display: none; } }

.uploadprev { margin: 10px 0 2px; }
.uploadprev__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--d-line);
  border-radius: 14px; background: rgba(255,255,255,0.03); }
.uploadprev__img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--d-line); }
.uploadprev__pdf { width: 56px; height: 56px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #ff5b5b, #ff7a45); }
.uploadprev__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.uploadprev__meta b { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uploadprev__meta span { color: var(--d-faint); font-size: 12.5px; line-height: 1.4; }
.uploadprev__x { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--d-line);
  background: transparent; color: var(--d-soft); cursor: pointer; font-size: 14px; transition: .15s; }
.uploadprev__x:hover { background: rgba(255,91,91,0.15); color: #ff9b9b; border-color: rgba(255,91,91,0.4); }

/* explicit voice recorder bar in the ask card */
.voicebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 2px; }

/* ===== interview camera ===== */
.coachcam { position: relative; width: 100%; max-width: 460px; margin: 4px 0 16px; border-radius: 16px; overflow: hidden;
  background: #000; aspect-ratio: 4/3; border: 1px solid var(--d-line); }
.coachcam__video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); /* mirror like a selfie */ }
.coachcam__live { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,59,59,0.92); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 999px; }
.coachcam__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: recpulse 1.1s infinite; }
.coachcam__toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--d-soft); cursor: pointer; }
.coachcam__toggle input { accent-color: var(--indigo); width: 15px; height: 15px; }

/* ===== on-camera presence block in the report ===== */
.report__presence { border: 1px solid var(--d-line); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px;
  background: rgba(91,79,240,0.07); }
.report__presence h4 { font-size: 14px; margin-bottom: 12px; color: #c7c0ff; font-weight: 700; }
.report__presence .report__bars { margin-bottom: 10px; }
.report__presence p { color: var(--d-soft); font-size: 13.5px; line-height: 1.5; }
.report__presence ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.report__presence li { color: var(--d-soft); font-size: 13.5px; line-height: 1.5; padding-left: 18px; position: relative; }
.report__presence li::before { content: "•"; position: absolute; left: 2px; color: #8f86ff; }

/* "Where you went wrong" block in the speaking report */
.report__mistakes { border: 1px solid rgba(255,91,91,0.3); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px;
  background: rgba(255,91,91,0.08); }
.report__mistakes h4 { font-size: 14px; margin-bottom: 12px; color: #ff9b9b; font-weight: 700; }
.report__mistakes ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.report__mistakes li { color: var(--d-soft); font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.report__mistakes li::before { content: "✗"; position: absolute; left: 0; color: #ff7a7a; font-size: 12px; top: 2px; }

/* ===== rich practice report ===== */
.preport { border: 1px solid var(--d-line); border-radius: 18px; padding: 22px; margin-top: 18px;
  background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 18px; }
.preport__head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.preport__msg b { color: #fff; font-size: 17px; display: block; margin-bottom: 4px; }
.preport__msg p { color: var(--d-soft); font-size: 14px; line-height: 1.5; }
.preport__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.preport__tile { border: 1px solid var(--d-line); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,0.02); }
.preport__tile .n { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: #fff; display: block; }
.preport__tile .l { font-size: 11.5px; color: var(--d-faint); text-transform: uppercase; letter-spacing: .07em; }
.preport__break { display: flex; flex-wrap: wrap; gap: 8px; }
.preport__chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 6px 11px;
  border-radius: 999px; border: 1px solid var(--d-line); color: var(--d-soft); }
.preport__chip.ok { background: rgba(52,195,155,0.12); border-color: rgba(52,195,155,0.35); color: #7fe3c1; }
.preport__chip.partial { background: rgba(245,193,59,0.12); border-color: rgba(245,193,59,0.35); color: #ffd27a; }
.preport__chip.bad { background: rgba(255,91,91,0.12); border-color: rgba(255,91,91,0.35); color: #ff9b9b; }
.preport__sec h4 { font-size: 13px; font-weight: 700; margin-bottom: 9px; color: #fff; }
.preport__sec.focus h4 { color: #c7c0ff; } .preport__sec.weak h4 { color: #ff9b9b; }
.preport__sec ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.preport__sec li { color: var(--d-soft); font-size: 13.8px; line-height: 1.5; padding-left: 18px; position: relative; }
.preport__sec li::before { content: "›"; position: absolute; left: 2px; color: var(--d-faint); }
.preport__ai { border-top: 1px solid var(--d-line); padding-top: 16px; }
.preport__plan { color: var(--d-soft); font-size: 14px; line-height: 1.55; margin-top: 6px; }
.preport__loading { color: var(--d-faint); font-size: 13px; }

/* 📌 Practice Report: Vibrant Animated Revision Cards & Flashcards */
.preport__sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.preport__sec-title h4 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.preport__icon-tag { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.preport__icon-tag.red { background: rgba(255,82,82,0.18); border: 1px solid rgba(255,82,82,0.4); }
.preport__icon-tag.purple { background: rgba(108,92,255,0.18); border: 1px solid rgba(108,92,255,0.4); }
.preport__icon-tag.amber { background: rgba(245,158,11,0.18); border: 1px solid rgba(245,158,11,0.4); }
.preport__icon-tag.cyan { background: rgba(6,182,212,0.18); border: 1px solid rgba(6,182,212,0.4); }

.preport__badge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; }
.preport__badge.danger { background: rgba(255,82,82,0.16); color: #ff7070; border: 1px solid rgba(255,82,82,0.3); }
.preport__badge.accent { background: rgba(108,92,255,0.16); color: #b8b0ff; border: 1px solid rgba(108,92,255,0.3); }
.preport__badge.info { background: rgba(6,182,212,0.16); color: #67e8f9; border: 1px solid rgba(6,182,212,0.3); }

/* 🎯 What to Study: Animated Revision Cards Grid */
.preport__study-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.study-card {
  position: relative; border-radius: 16px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08); transition: all 0.25s var(--ease);
  animation: cardPopIn 0.4s var(--ease) forwards; overflow: hidden;
}
.study-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.2); }
.study-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.study-card.c-1::before { background: linear-gradient(90deg, #ff5252, #ff7675); }
.study-card.c-2::before { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }
.study-card.c-3::before { background: linear-gradient(90deg, #fdcb6e, #e17055); }
.study-card.c-4::before { background: linear-gradient(90deg, #00cec9, #0984e3); }
.study-card__badge { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--d-faint); margin-bottom: 6px; }
.study-card__title { font-size: 14.5px; font-weight: 700; color: #fff; line-height: 1.45; margin-bottom: 6px; }
.study-card__hint { font-size: 12px; color: var(--d-soft); line-height: 1.4; }

/* 🚀 Where to Focus: Numbered Action Roadmap Steps */
.preport__roadmap { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.roadmap-step {
  display: flex; align-items: flex-start; gap: 14px; background: rgba(20,20,35,0.6);
  border: 1px solid var(--d-line-2); border-radius: 14px; padding: 14px 16px;
  transition: all 0.2s var(--ease); animation: cardPopIn 0.45s var(--ease) forwards;
}
.roadmap-step:hover { border-color: rgba(108,92,255,0.5); background: rgba(255,255,255,0.035); }
.roadmap-step__num {
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  color: #c4bcff; background: rgba(108,92,255,0.2); padding: 4px 10px; border-radius: 10px;
}
.roadmap-step__content b { color: #fff; font-size: 13.5px; display: block; margin-bottom: 2px; }
.roadmap-step__content p { color: var(--d-soft); font-size: 13.5px; line-height: 1.5; margin: 0; }

/* 📌 Detailed Points to Remember Grid */
.preport__points-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.point-takeaway-card {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(20,20,35,0.7));
  border: 1px solid rgba(245,158,11,0.25); border-radius: 14px; padding: 15px 17px;
  transition: all 0.2s ease;
}
.point-takeaway-card:hover { border-color: rgba(245,158,11,0.6); transform: translateY(-2px); }
.point-takeaway-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.point-num { font-size: 11px; font-weight: 800; color: #fde047; background: rgba(245,158,11,0.2); padding: 2px 7px; border-radius: 6px; }
.point-takeaway-header h5 { color: #fff; font-size: 14px; font-weight: 700; margin: 0; }
.point-takeaway-card p { color: var(--d-soft); font-size: 13px; line-height: 1.55; margin: 0; }

/* 🎴 3D Interactive Revision Flashcards */
.preport__flash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.preport__flash { perspective: 1000px; cursor: pointer; height: 140px; }
.preport__flash-in {
  position: relative; width: 100%; height: 100%; text-align: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d;
}
.preport__flash.flipped .preport__flash-in { transform: rotateY(180deg); }
.preport__flash-face {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
  border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column;
  justify-content: space-between; box-sizing: border-box; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.preport__flash-face.front {
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(15,23,42,0.85));
  border: 1px solid rgba(6,182,212,0.4); color: #fff;
}
.preport__flash-face.front:hover { border-color: rgba(6,182,212,0.8); }
.flash-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: #a5f3fc; }
.flash-tag.answer { color: #a7f3d0; }
.flash-q { font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.45; margin: 4px 0; }
.flash-a { font-size: 13px; font-weight: 500; color: #ecfdf5; line-height: 1.5; margin: 4px 0; }
.flash-tap-hint { font-size: 10.5px; color: var(--d-soft); font-weight: 700; text-align: right; }

.preport__plan-box { background: rgba(108,92,255,0.12); border: 1px solid rgba(108,92,255,0.35); border-radius: 12px; padding: 12px 16px; color: #d8d2ff; font-size: 13.5px; margin-top: 12px; }
.preport__encourage-box { background: rgba(52,195,155,0.12); border: 1px solid rgba(52,195,155,0.35); border-radius: 12px; padding: 12px 16px; color: #a7f3d0; font-size: 13.5px; margin-top: 8px; }

@keyframes cardPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.report__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.report__col { border: 1px solid var(--d-line); border-radius: 16px; padding: 18px 20px; }
.report__col h4 { font-size: 14px; margin-bottom: 12px; }
.report__col.good { background: rgba(52,195,155,0.08); } .report__col.good h4 { color: #6fe0bd; }
.report__col.fix { background: rgba(245,147,59,0.08); } .report__col.fix h4 { color: #ffc188; }
.report__col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.report__col li { color: var(--d-soft); font-size: 14px; line-height: 1.5; padding-left: 18px; position: relative; }
.report__col li::before { content: "›"; position: absolute; left: 0; color: var(--d-faint); }
.report__model { background: rgba(91,79,240,0.12); border: 1px solid rgba(91,79,240,0.35); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.report__model h4 { color: #c5bdff; font-size: 14px; margin-bottom: 8px; }
.report__model p { color: #fff; font-size: 15px; line-height: 1.6; }
.report__tx { margin-bottom: 18px; }
.report__tx summary { color: var(--d-soft); font-size: 14px; cursor: pointer; }
.report__tx p { color: var(--d-faint); font-size: 14px; line-height: 1.6; margin-top: 10px; font-style: italic; }
.report__col h4, .report__model h4 { font-weight: 700; }

@media (max-width: 720px) {
  .report__cols { grid-template-columns: 1fr; }
  .pcard__row { flex-direction: column; align-items: stretch; }
}

/* ===================================================================
   HACKATHONS & WORKSHOPS  (map + list)
   =================================================================== */
.evt-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.evt-manual { display: flex; gap: 8px; align-items: center; }
.evt-manual .pinput { min-width: 220px; }

/* 🔍 City Search Box */
.evt-search-box {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(20,20,35,0.8);
  border: 1px solid var(--d-line-2); border-radius: 999px; padding: 4px 6px 4px 14px;
  flex: 1 1 320px; max-width: 480px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.evt-search-box:focus-within { border-color: rgba(108,92,255,0.6); box-shadow: 0 0 0 4px rgba(108,92,255,0.18); }
.evt-search-icon { width: 16px; height: 16px; color: var(--d-soft); flex-shrink: 0; }
.evt-search-input {
  border: none; background: transparent; color: #fff; font-size: 13.5px;
  outline: none; width: 100%; padding: 4px 0;
}
.evt-search-input::placeholder { color: var(--d-faint); font-size: 13px; }
.evt-search-btn {
  border: none; background: linear-gradient(135deg, var(--indigo), #7b61ff); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  white-space: nowrap; transition: transform 0.15s ease, filter 0.15s ease;
}
.evt-search-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.evt-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 8px; }
.evt-map {
  height: 560px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--d-line-2); background: var(--d-bg-2); z-index: 1;
}
.evt-list {
  height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px;
}
.evt-list::-webkit-scrollbar { width: 8px; }
.evt-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }
.evt-empty { color: var(--d-faint); font-size: 14.5px; line-height: 1.6; padding: 20px; text-align: center; }

.evt {
  flex: 0 0 auto;   /* never let the scrolling flex column squash cards to their top row */
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--d-line); border-radius: 18px; padding: 16px 18px 16px 20px;
  cursor: pointer; transition: transform .18s var(--ease), border-color .18s, box-shadow .18s; position: relative; overflow: hidden;
}
.evt:hover { transform: translateY(-3px); border-color: rgba(108,92,255,0.6); box-shadow: 0 14px 34px rgba(91,79,240,0.18); }
.evt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--indigo), #22d3ee); }
.evt.workshop::before { background: linear-gradient(180deg, var(--amber), #f97316); }
.evt__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.evt__tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: #c3bcff; background: rgba(108,92,255,0.16); padding: 4px 10px; border-radius: 999px;
}
.evt.workshop .evt__tag { color: #ffca8f; background: rgba(245,147,59,0.16); }
.evt__dist { font-size: 11.5px; font-weight: 700; color: #dfe3f5; background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.evt h4 { color: #fff; font-size: 16px; line-height: 1.32; margin-bottom: 7px; font-weight: 700; }
.evt__meta { font-size: 12.8px; color: var(--d-soft); line-height: 1.5; display: flex; flex-direction: column; gap: 3px; }
.evt__meta span { display: inline-flex; align-items: center; gap: 6px; }
.evt__themes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.evt__themes span { font-size: 10.5px; color: var(--d-soft); background: rgba(255,255,255,0.05); border: 1px solid var(--d-line-2); border-radius: 99px; padding: 3px 9px; }
.evt__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--d-line); flex-wrap: wrap; }
.evt__foot-l { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evt__prize { font-size: 12.5px; font-weight: 700; color: #ffce9a; }
.evt__src { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--d-faint); background: rgba(255,255,255,0.05); border: 1px solid var(--d-line-2); border-radius: 99px; padding: 3px 9px; }
.evt__actions { display: flex; align-items: center; gap: 10px; }
.evt__remind {
  font-size: 11.5px; font-weight: 700; color: #c3bcff; background: rgba(108,92,255,0.12);
  border: 1px solid rgba(108,92,255,0.3); border-radius: 99px; padding: 5px 11px; cursor: pointer; transition: .15s;
}
.evt__remind:hover { background: rgba(108,92,255,0.25); color: #fff; }
.evt__link { font-size: 12.8px; font-weight: 700; color: #b9b1ff; text-decoration: none; white-space: nowrap; }
.evt__link:hover { color: #22d3ee; }
/* registration-deadline urgency badge */
.evt__deadline { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px; }
.evt__deadline.urgent { color: #fecaca; background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.5); animation: evtUrgent 1.4s ease-in-out infinite; }
@keyframes evtUrgent { 50% { background: rgba(239,68,68,0.32); } }
.evt__deadline.soon { color: #fcd9a5; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.35); }
.evt__deadline.ok { color: #86efac; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.28); }

/* 🛰️ Map Theme Switcher Bar */
.evt-map-theme-bar {
  display: inline-flex; align-items: center; gap: 5px; background: rgba(20,20,35,0.85);
  border: 1px solid var(--d-line-2); border-radius: 999px; padding: 3px 8px; backdrop-filter: blur(10px);
}
.evt-map-theme-lbl { font-size: 11px; font-weight: 700; color: var(--d-soft); margin-right: 2px; }
.evt-theme-btn {
  border: 0; background: transparent; color: rgba(255,255,255,0.7); font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.evt-theme-btn:hover { color: #fff; background: rgba(255,255,255,0.12); }
.evt-theme-btn.active {
  background: linear-gradient(135deg, var(--indigo), #7b61ff); color: #fff;
  box-shadow: 0 4px 14px rgba(108,92,255,0.45);
}

/* map markers (divIcons) */
.map-me {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  background: #ff5252; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(255,82,82,0.45);
  animation: mePulse 1.8s ease-out infinite;
}
@keyframes mePulse { 0% { box-shadow: 0 0 0 4px rgba(255,82,82,0.6); } 100% { box-shadow: 0 0 0 20px rgba(255,82,82,0); } }
.map-pin {
  display: block; width: 24px; height: 24px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2.5px solid #fff;
  background: linear-gradient(135deg, #6c5ce7, #00cec9); box-shadow: 0 4px 14px rgba(108,92,255,0.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.map-pin:hover { transform: rotate(-45deg) scale(1.25); box-shadow: 0 6px 20px rgba(0,206,201,0.8); }
.map-pin.wk { background: linear-gradient(135deg, #ff7675, #fdcb6e); box-shadow: 0 4px 14px rgba(253,203,110,0.6); }

/* dark Leaflet popups */
.leaflet-popup-content-wrapper {
  background: #15151f; color: var(--d-text); border: 1px solid var(--d-line-2);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.leaflet-popup-content { font: 13.5px/1.5 'Plus Jakarta Sans', sans-serif; margin: 12px 14px; }
.leaflet-popup-content b { color: #fff; }
.leaflet-popup-content a { color: #b9b1ff; font-weight: 700; }
.leaflet-popup-tip { background: #15151f; }
.leaflet-container a.leaflet-popup-close-button { color: var(--d-faint); }
.leaflet-control-attribution { background: rgba(0,0,0,0.5) !important; color: var(--d-faint) !important; }
.leaflet-control-attribution a { color: var(--d-soft) !important; }
.leaflet-bar a { background: #1a1a26; color: #fff; border-color: var(--d-line-2); }
.leaflet-bar a:hover { background: #24243a; }

@media (max-width: 900px) {
  .evt-layout { grid-template-columns: 1fr; }
  .evt-map { height: 380px; }
  .evt-list { height: auto; max-height: 520px; }
}

/* ============================================================
   GROUP STUDY / DEBATE
   ============================================================ */
.main__lead { color: var(--d-soft); font-size: 15px; max-width: 640px; margin-top: 8px; line-height: 1.55; }

.dbt-lobby { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .dbt-lobby { grid-template-columns: 1fr; } }

.dbt-card { background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 22px; padding: 24px; backdrop-filter: blur(var(--glass-blur)); }
.dbt-card--how { background: var(--d-card-2); }
.dbt-card__t { margin: 0 0 16px; font-size: 17px; color: var(--d-text); }
.dbt-field { margin-bottom: 14px; }
.dbt-field label { display: block; font-size: 13px; color: var(--d-soft); margin-bottom: 6px; }
.dbt-hint { color: var(--d-faint); font-weight: 400; }
.dbt-field .pinput { width: 100%; }
.dbt-row { margin: 6px 0 4px; }

.dbt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--d-line-2); background: rgba(255,255,255,0.06); color: var(--d-text);
  border-radius: 12px; padding: 12px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease); }
.dbt-btn:hover { background: rgba(255,255,255,0.12); }
.dbt-btn:active { transform: translateY(1px); }
.dbt-btn svg { width: 17px; height: 17px; }
.dbt-btn:disabled { opacity: .5; cursor: default; }
.dbt-btn--primary { width: 100%; background: linear-gradient(135deg, var(--indigo), #7a6dff); border-color: transparent; color: #fff; padding: 14px; font-size: 15px; }
.dbt-btn--amber { background: linear-gradient(135deg, var(--amber), #ffba6b); border-color: transparent; color: #201400; }
.dbt-btn--ghost { background: transparent; }
.dbt-btn--end { border-color: rgba(240,110,110,.5); color: #ff9d9d; }
.dbt-btn--end:hover { background: rgba(240,110,110,.14); }

.dbt-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--d-faint); font-size: 12px; }
.dbt-or::before, .dbt-or::after { content: ''; flex: 1; height: 1px; background: var(--d-line); }
.dbt-join { display: flex; gap: 10px; }
.dbt-join .pinput { flex: 1; text-transform: uppercase; }

.dbt-status { margin-top: 12px; font-size: 13px; color: var(--amber); min-height: 18px; }
.dbt-how { margin: 0; padding-left: 20px; color: var(--d-soft); font-size: 14px; line-height: 1.7; }
.dbt-how li { margin-bottom: 8px; }
.dbt-how b { color: var(--d-text); }

/* room */
#dbtRoom-wrap {
  position: relative;
  background: rgba(12, 14, 24, 0.95);
  border: 1px solid var(--d-line-2);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(20px);
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  z-index: 10;
}
.dbt-roombar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dbt-roombar__l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dbt-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--d-soft); text-transform: uppercase; }
.dbt-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5c5c; box-shadow: 0 0 0 0 rgba(255,92,92,.6); animation: dbtpulse 1.8s infinite; }
@keyframes dbtpulse { 0% { box-shadow: 0 0 0 0 rgba(255,92,92,.5);} 70%{ box-shadow: 0 0 0 8px rgba(255,92,92,0);} 100%{ box-shadow:0 0 0 0 rgba(255,92,92,0);} }
.dbt-code { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px dashed var(--d-line-2); color: var(--d-text); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-size: 15px; letter-spacing: 1px; }
.dbt-code svg { width: 15px; height: 15px; opacity: .7; }
.dbt-code:hover { background: rgba(255,255,255,.12); }
.dbt-count { font-size: 13px; color: var(--d-faint); }

.dbt-topic { margin-bottom: 16px; }
.dbt-topic__in { display: flex; gap: 10px; flex-wrap: wrap; }
.dbt-topic__in .pinput { flex: 1; min-width: 220px; }
.dbt-motion { margin-top: 12px; background: linear-gradient(135deg, rgba(91,79,240,.16), rgba(245,147,59,.12));
  border: 1px solid var(--d-line-2); border-radius: 14px; padding: 14px 16px; color: var(--d-text); font-size: 17px; font-weight: 600; line-height: 1.4; }
.dbt-motion__lbl { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 5px; }

/* video stage and grid */
.dbt-main-stage {
  flex: 1;
  display: flex;
  gap: 16px;
  min-height: 380px;
  position: relative;
  margin-bottom: 80px;
}
.dbt-grid { flex: 1; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); align-content: start; }
.dbt-grid[data-n="1"] { grid-template-columns: minmax(0, 640px); justify-content: center; }
.dbt-grid[data-n="3"], .dbt-grid[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.dbt-grid[data-n="5"], .dbt-grid[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .dbt-grid, .dbt-grid[data-n] { grid-template-columns: 1fr; } }

.dbt-sidebar {
  width: 320px; flex: none; background: rgba(18, 20, 36, 0.95);
  border: 1px solid var(--d-line-2); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden;
}
.dbt-sidebar__head {
  padding: 14px 16px; border-bottom: 1px solid var(--d-line-2); display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px;
}
.dbt-chat__box { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 380px; }
.dbt-chat__msg { background: rgba(255,255,255,0.06); padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--d-soft); }
.dbt-chat__msg.sys { font-size: 11.5px; color: var(--d-faint); font-style: italic; background: transparent; text-align: center; }
.dbt-chat__msg b { color: #fff; display: block; margin-bottom: 3px; }
.dbt-chat__in { padding: 12px; border-top: 1px solid var(--d-line-2); display: flex; gap: 8px; }
.dbt-chat__in .pinput { flex: 1; font-size: 13px; }

.dbt-tile { position: relative; aspect-ratio: 16/10; background: #0d0d16; border: 1.5px solid var(--d-line-2); border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.dbt-tile.speaking { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91,79,240,.6), 0 0 30px rgba(91,79,240,.4); }
.dbt-tile video { width: 100%; height: 100%; object-fit: cover; background: #0d0d16; }
.dbt-tile.has-camera video { transform: scaleX(-1); }
.dbt-off { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #22223a, #0d0d16); }
.dbt-off span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--indigo), #7a6dff); }
.dbt-tag { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); border-radius: 10px; padding: 6px 12px; display: flex; flex-direction: column; line-height: 1.2; border: 1px solid rgba(255,255,255,0.1); }
.dbt-tag b { color: #fff; font-size: 13px; }
.dbt-tag i { color: rgba(255,255,255,.6); font-size: 11px; font-style: normal; }
.dbt-speak { position: absolute; right: 10px; top: 10px; display: none; background: var(--indigo); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.dbt-tile.speaking .dbt-speak { display: block; }
.dbt-hand-badge { position: absolute; left: 10px; top: 10px; background: #f59e0b; color: #000; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }

/* floating controls dock (Google Meet style) */
.dbt-controls {
  position: sticky;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(20, 22, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(91, 79, 240, 0.25);
  backdrop-filter: blur(16px);
  padding: 12px 24px;
  border-radius: 999px;
  max-width: 95%;
  flex-wrap: wrap;
}
.dbt-ctl {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s ease; font-size: 18px;
}
.dbt-ctl:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.dbt-ctl svg { width: 22px; height: 22px; }
.dbt-ctl.off { background: rgba(239, 68, 68, 0.25); border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }
.dbt-ctl.hand-raised, .dbt-ctl.active { background: rgba(91, 79, 240, 0.35); border-color: rgba(91, 79, 240, 0.8); color: #80ffea; }

.dbt-floor {
  display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--indigo), #7a6dff); border-radius: 999px; padding: 12px 24px; box-shadow: 0 8px 25px rgba(91,79,240,.4); transition: all .2s ease; white-space: nowrap;
}
.dbt-floor:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(91,79,240,.6); }
.dbt-floor:disabled { opacity: .5; cursor: default; }
.dbt-floor svg { width: 20px; height: 20px; }
.dbt-floor.speaking { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 8px 25px rgba(239,68,68,.5); animation: dbtglow 1.6s ease-in-out infinite; }
@keyframes dbtglow { 0%,100%{ box-shadow:0 8px 24px rgba(239,68,68,.35);} 50%{ box-shadow:0 8px 34px rgba(239,68,68,.6);} }

.dbt-btn--end {
  border-radius: 999px; padding: 12px 20px; background: rgba(239, 68, 68, 0.18); border: 1px solid rgba(239, 68, 68, 0.5); color: #fca5a5; font-weight: 700; white-space: nowrap;
}
.dbt-btn--end:hover { background: rgba(239, 68, 68, 0.35); color: #fff; }

/* results */
.dbt-results { margin-top: 22px; }
.dbt-verdict { text-align: center; background: linear-gradient(135deg, rgba(91,79,240,.2), rgba(245,147,59,.16)); border: 1px solid var(--d-line-2); border-radius: 20px; padding: 24px; margin-bottom: 18px; }
.dbt-verdict__lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.dbt-verdict h3 { margin: 8px 0 6px; font-size: 26px; color: var(--d-text); }
.dbt-verdict p { color: var(--d-soft); font-size: 15px; max-width: 620px; margin: 0 auto; line-height: 1.55; }
.dbt-verdict__topic { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--d-faint); font-style: italic; }
.dbt-scards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.dbt-scard { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 18px; padding: 18px; }
.dbt-scard.win { border-color: rgba(245,147,59,.55); box-shadow: 0 0 0 1px rgba(245,147,59,.3); }
.dbt-scard__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dbt-scard__top b { font-size: 16px; color: var(--d-text); }
.dbt-badge { font-size: 11px; font-weight: 700; color: #201400; background: linear-gradient(135deg, var(--amber), #ffba6b); padding: 3px 9px; border-radius: 20px; }
.dbt-score { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--indigo); }
.dbt-score i { font-size: 12px; font-weight: 500; color: var(--d-faint); font-style: normal; }
.dbt-list { margin-bottom: 10px; }
.dbt-list span { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--d-faint); font-weight: 700; margin-bottom: 4px; }
.dbt-list ul { margin: 0; padding-left: 18px; color: var(--d-soft); font-size: 13.5px; line-height: 1.5; }
.dbt-list ul li { margin-bottom: 3px; }
.dbt-list--pos ul li::marker { color: #37d39a; }
.dbt-list--neg ul li::marker { color: #ff8f6b; }
.dbt-list--key ul li::marker { color: var(--indigo); }
.dbt-advice { margin-top: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--d-line); border-radius: 14px; padding: 14px 16px; color: var(--d-soft); font-size: 14px; line-height: 1.55; }
.dbt-advice b { color: var(--d-text); }

/* ============ AI INTERVIEW STAGE ============ */
.itv-form {
  background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 20px;
  padding: 24px; backdrop-filter: blur(var(--glass-blur)); margin-bottom: 24px; }
.itv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.itv-field { display: flex; flex-direction: column; gap: 6px; }
.itv-field label { font-size: 12px; font-weight: 700; color: var(--d-soft); text-transform: uppercase; letter-spacing: 0.05em; }

.itv-stage {
  background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 24px;
  padding: 28px; backdrop-filter: blur(var(--glass-blur)); margin-top: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.itv-stage__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.itv-stage__title { font-size: 18px; font-weight: 700; color: #fff; }
.itv-stage__prog { background: rgba(91,79,240,0.2); color: #c4bcff; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid rgba(91,79,240,0.4); }

.itv-qbox {
  background: linear-gradient(135deg, rgba(91,79,240,0.15), rgba(245,147,59,0.12));
  border: 1px solid var(--d-line-2); border-radius: 18px; padding: 22px; margin-bottom: 24px; position: relative; }
.itv-qbox__tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); margin-bottom: 8px; }
.itv-qbox__text { font-size: 22px; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 10px; }
.itv-qbox__hint { font-size: 13.5px; color: var(--d-soft); font-style: italic; }
.itv-qbox__speakbtn {
  position: absolute; right: 18px; top: 18px; background: rgba(255,255,255,0.08); border: 1px solid var(--d-line-2);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.itv-qbox__speakbtn:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }

.itv-video-wrap {
  position: relative; width: 100%; max-width: 580px; aspect-ratio: 16/9; margin: 0 auto 24px;
  border-radius: 20px; overflow: hidden; background: #000; border: 2px solid var(--d-line-2); }
.itv-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.itv-video-badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #fff; }
.itv-video-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: dbtpulse 1.6s infinite; }

.itv-actions { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ============ SCORECARD ============ */
.itv-scorecard { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.itv-scorecard__header {
  display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, rgba(91,79,240,0.18), rgba(52,195,155,0.15));
  border: 1px solid var(--d-line-2); border-radius: 22px; padding: 24px; backdrop-filter: blur(var(--glass-blur)); }
.itv-scorecard__ring {
  width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, #1a1a2b 60%, transparent 61%), conic-gradient(var(--indigo) calc(var(--p)*1%), rgba(255,255,255,0.1) 0);
  display: flex; flex-direction: column; justify-content: center; align-items: center; flex: none; box-shadow: 0 10px 30px rgba(91,79,240,0.4); }
.itv-scorecard__num { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.itv-scorecard__lbl { font-size: 11px; color: var(--d-soft); font-weight: 600; }
.itv-scorecard__headtext { display: flex; flex-direction: column; gap: 6px; }
.itv-scorecard__badge {
  align-self: flex-start; background: linear-gradient(135deg, var(--amber), #ffba6b); color: #201400;
  font-size: 11.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.itv-scorecard__headtext h2 { color: #fff; font-size: 26px; font-weight: 700; margin: 0; }
.itv-scorecard__headtext p { color: var(--d-soft); font-size: 14.5px; margin: 0; }

.itv-metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.itv-metric-card {
  background: var(--d-card); border: 1px solid var(--d-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.itv-metric-card__title { font-size: 13px; font-weight: 700; color: var(--d-soft); }
.itv-metric-card__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.itv-metric-card__bar i { display: block; height: 100%; border-radius: 999px; }
.itv-metric-card__val { font-size: 18px; font-weight: 800; color: #fff; text-align: right; }

/* 🚨 AI Proctoring & Vision Alert Banner */
.itv-proctor-alert {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.22), rgba(180, 20, 20, 0.35));
  border: 1px solid rgba(255, 92, 92, 0.6);
  border-radius: 18px; padding: 20px; backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2); margin-top: 4px;
}
.itv-proctor-alert__title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.itv-proctor-alert__badge {
  align-self: flex-start; background: #ff4d4d; color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em;
}
.itv-proctor-alert__title h4 { color: #fff; font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.itv-proctor-alert__list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.itv-proctor-alert__list li {
  font-size: 14px; line-height: 1.5; color: #ffe0e0; padding: 10px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.3); border-left: 4px solid #ff4d4d;
}
.itv-proctor-alert__list li.crit { border-left-color: #ff3b30; }
.itv-proctor-alert__list li.warn { border-left-color: #ff9500; }
.itv-proctor-alert__list li.info { border-left-color: #5856d6; }

.itv-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.itv-card { border-radius: 20px; padding: 22px; border: 1px solid transparent; backdrop-filter: blur(var(--glass-blur)); }
.itv-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.itv-card__head h3 { font-size: 17px; font-weight: 700; color: #fff; margin: 0; }
.itv-card ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.itv-card ul li { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.9); }

/* 🔴 What Went Bad Card */
.itv-card--bad {
  background: linear-gradient(135deg, rgba(255,92,92,0.18), rgba(90,20,20,0.28));
  border-color: rgba(255,92,92,0.45); box-shadow: 0 10px 30px rgba(255,92,92,0.15); }
.itv-card--bad li { color: #ffd3d3; }

/* 🟢 Strengths Card */
.itv-card--strengths {
  background: linear-gradient(135deg, rgba(52,195,155,0.18), rgba(20,80,60,0.25));
  border-color: rgba(52,195,155,0.4); box-shadow: 0 10px 30px rgba(52,195,155,0.15); }
.itv-card--strengths li { color: #d1f7ea; }

/* 🟠 Weaknesses Card */
.itv-card--weaknesses {
  background: linear-gradient(135deg, rgba(245,147,59,0.18), rgba(80,45,15,0.25));
  border-color: rgba(245,147,59,0.4); box-shadow: 0 10px 30px rgba(245,147,59,0.15); }
.itv-card--weaknesses li { color: #ffe6cd; }

/* 💜 What Would Make It Better Card */
.itv-card--better {
  background: linear-gradient(135deg, rgba(139,123,255,0.18), rgba(45,35,90,0.25));
  border-color: rgba(139,123,255,0.4); box-shadow: 0 10px 30px rgba(139,123,255,0.15); }
.itv-card--better li { color: #e4e0ff; }
.itv-card--better li b { color: #fff; }

/* Question Breakdown */
.itv-qbreakdown { margin-top: 12px; }
.itv-qbreakdown h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.itv-qlist { display: flex; flex-direction: column; gap: 16px; }
.itv-qitem { background: var(--d-card); border: 1px solid var(--d-line-2); border-radius: 18px; padding: 20px; }
.itv-qitem__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.itv-qitem__head b { color: #fff; font-size: 16px; }
.itv-qitem__score { font-weight: 800; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.itv-qitem__score.hi { background: rgba(52,195,155,0.25); color: #34c39b; border: 1px solid rgba(52,195,155,0.4); }
.itv-qitem__score.mid { background: rgba(245,147,59,0.25); color: #f5933b; border: 1px solid rgba(245,147,59,0.4); }
.itv-qitem__score.lo { background: rgba(255,92,92,0.25); color: #ff5c5c; border: 1px solid rgba(255,92,92,0.4); }
.itv-qitem__body { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.55; }
.itv-qitem__ans { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px; border: 1px solid var(--d-line); }
.itv-qitem__ans b { color: var(--d-soft); display: block; margin-bottom: 4px; }
.itv-qitem__ans p { color: #fff; margin: 0; }
.itv-qitem__fb { background: rgba(91,79,240,0.1); border-radius: 12px; padding: 12px; border: 1px solid rgba(91,79,240,0.3); }
.itv-qitem__fb b { color: #c4bcff; display: block; margin-bottom: 4px; }
.itv-qitem__fb p { color: var(--d-soft); margin: 0; }
.itv-qitem__model { background: linear-gradient(135deg, rgba(245,147,59,0.12), rgba(91,79,240,0.12)); border-radius: 12px; padding: 14px; border: 1px solid var(--d-line-2); }
.itv-qitem__model b { color: var(--amber); display: block; margin-bottom: 4px; font-size: 14px; }
.itv-qitem__model p { color: #fff; margin: 0; }

/* ===== GOOGLE MEET / ZOOM DEBATE ROOM STYLES ===== */
.dbt-main-stage { display: flex; gap: 16px; position: relative; min-height: 480px; }
.dbt-grid { flex: 1; min-width: 0; }

.dbt-timer { background: rgba(255,255,255,0.08); border: 1px solid var(--d-line-2); color: #80ffea; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.dbt-sidebar { width: 320px; background: rgba(18,20,29,0.95); border: 1px solid var(--d-line-2); border-radius: 18px; display: flex; flex-direction: column; backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); animation: slideInRight .25s ease; }
.dbt-sidebar__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--d-line); }
.dbt-sidebar__head b { color: #fff; font-size: 15px; }
.dbt-icon-btn { background: none; border: none; color: var(--d-soft); font-size: 16px; cursor: pointer; padding: 4px; }
.dbt-icon-btn:hover { color: #fff; }

.dbt-chat__box { flex: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 380px; }
.dbt-chat__msg { background: rgba(255,255,255,0.05); border: 1px solid var(--d-line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #fff; }
.dbt-chat__msg.sys { background: rgba(128,255,234,0.08); border-color: rgba(128,255,234,0.25); color: #80ffea; text-align: center; font-size: 12px; }
.dbt-chat__msg b { color: #ffe066; display: block; font-size: 11px; margin-bottom: 3px; text-transform: uppercase; }

.dbt-chat__in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--d-line); }
.dbt-chat__in input { flex: 1; font-size: 13px; padding: 9px 12px; }
.dbt-chat__in button { font-size: 12px; padding: 8px 14px; border-radius: 10px; }

.dbt-ctl.active { background: rgba(255,146,139,0.25) !important; border-color: #ff928b !important; color: #ff928b !important; }
.dbt-ctl.hand-raised { background: rgba(255,224,102,0.25) !important; border-color: #ffe066 !important; color: #ffe066 !important; animation: pulse 1s infinite alternate; }

.dbt-avatar-feed { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, #222938 0%, #0e111a 100%); border-radius: 16px; border: 2px stroke var(--d-line); }
.dbt-avatar-ring { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--indigo), #80ffea); display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; font-weight: 800; box-shadow: 0 10px 30px rgba(91,79,240,0.4); }
.dbt-avatar-name { margin-top: 12px; font-weight: 700; color: #fff; font-size: 16px; }
.dbt-avatar-id { font-size: 12px; color: var(--d-soft); }

/* ===== AESTHETIC DEBATE LOBBY & BUTTON STYLES ===== */
.dbt-lobby-glass {
  background: radial-gradient(circle at 0% 0%, rgba(91,79,240,0.15) 0%, rgba(20,24,38,0.92) 100%) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 24px !important;
  padding: 28px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform .3s ease, border-color .3s ease;
}
.dbt-lobby-glass:hover {
  border-color: rgba(128,255,234,0.3) !important;
}

.dbt-card__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(91,79,240,0.25), rgba(128,255,234,0.25));
  border: 1px solid rgba(128,255,234,0.4); color: #80ffea;
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

.dbt-input-glow {
  background: rgba(0,0,0,0.3) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 14px !important;
  color: #fff !important; font-weight: 600 !important;
  transition: all .25s ease !important;
}
.dbt-input-glow:focus {
  border-color: #80ffea !important;
  box-shadow: 0 0 16px rgba(128,255,234,0.3) !important;
}

.dbt-actions-grid {
  display: flex; flex-direction: column; gap: 16px; margin-top: 20px;
}

.dbt-btn--start-room {
  display: flex; align-items: center; gap: 16px; width: 100%;
  background: linear-gradient(135deg, #5b4ff0 0%, #34c39b 100%) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 18px !important; padding: 16px 22px !important;
  color: #fff !important; cursor: pointer; text-align: left;
  box-shadow: 0 12px 35px rgba(91,79,240,0.4);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease !important;
  animation: glowPulse 3s infinite alternate;
}
.dbt-btn--start-room:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 18px 45px rgba(52,195,155,0.5) !important;
}
.dbt-btn-icon { font-size: 28px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.dbt-btn-text { display: flex; flex-direction: column; }
.dbt-btn-text b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.dbt-btn-text span { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }

.dbt-or-divider {
  display: flex; align-items: center; text-align: center; color: var(--d-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; margin: 4px 0;
}
.dbt-or-divider::before, .dbt-or-divider::after {
  content: ''; flex: 1; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dbt-or-divider span { padding: 0 12px; }

.dbt-join-box { display: flex; gap: 10px; }
.dbt-btn--join-room {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 14px !important; padding: 12px 20px !important;
  color: #80ffea !important; font-weight: 700 !important; cursor: pointer;
  white-space: nowrap; transition: all .2s ease !important;
}
.dbt-btn--join-room:hover {
  background: rgba(128,255,234,0.18) !important;
  border-color: #80ffea !important;
  color: #fff !important; transform: translateY(-1px);
}

.dbt-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(128,255,234,0.2); border: 1px solid #80ffea;
  color: #80ffea; font-size: 11px; font-weight: 800; margin-right: 8px;
}

@keyframes glowPulse {
  0% { box-shadow: 0 10px 30px rgba(91,79,240,0.3); }
  100% { box-shadow: 0 16px 45px rgba(52,195,155,0.5); }
}


/* ───────── Hackathon registration deadlines (Unstop / Devfolio / HackerEarth) ───────── */
.evt__deadline {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 8px 0 2px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
}
.evt__deadline.urgent { background: #fdecec; color: #b4262a; }
.evt__deadline.soon   { background: var(--amber-soft); color: #8a4a12; }
.evt__deadline.ok     { background: var(--indigo-soft); color: var(--indigo-deep); }
.evt__actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.evt__remind {
  border: 1px solid var(--paper-edge); background: #fff; color: var(--t-strong);
  border-radius: 10px; padding: 5px 10px; font: 600 12px/1 inherit; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.evt__remind:hover { border-color: var(--indigo); background: var(--indigo-soft); }

/* ───────── AI Interviewer: resume + JD ───────── */
.itv-resume { margin-top: 14px; display: grid; gap: 14px; }
.itv-resume__label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--t-strong); }
.itv-resume__label span { font-weight: 400; opacity: .7; }
.itv-resume__pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.itv-resume__btn {
  border: 1px dashed var(--indigo); background: var(--indigo-soft); color: var(--indigo-deep);
  border-radius: 12px; padding: 10px 16px; font: 700 13px/1 inherit; cursor: pointer;
  transition: background .15s, transform .12s;
}
.itv-resume__btn:hover { background: #e3dfff; transform: translateY(-1px); }
.itv-resume__name { font-size: 12.5px; color: var(--t-muted); }
.itv-resume__clear {
  border: 0; background: #fdecec; color: #b4262a; border-radius: 8px;
  width: 26px; height: 26px; cursor: pointer; font-size: 13px;
}
.itv-resume textarea.pinput { resize: vertical; min-height: 70px; font-family: inherit; }

/* ───────── Hackathons: fit map + list into one screen ─────────
   The tall page header used to push the map and the event list below the fold,
   so you had to scroll before seeing any results. Now the view fills the viewport
   and only the results list scrolls, inside itself. */
/* ===== Competitions — flows from the TOP like every other view. No fixed-height flex
   panel (that was what left a big gap and pushed the map to the bottom of the screen). ===== */
#view-events.active { display: block; }
#view-events .main__head { margin-bottom: 18px; }
#view-events .main__greet .eyebrow.accent { margin-bottom: 6px; }
#view-events .main__greet h1 { font-size: clamp(24px, 2.6vw, 34px); }

/* control bar — a single tidy row */
#view-events .evt-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px;
  padding: 10px; border-radius: 16px; border: 1px solid var(--d-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

/* map (left) + list (right), side by side, right under the controls */
#view-events .evt-layout {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; margin-top: 0;
}
#view-events .evt-map {
  height: calc(100vh - 250px); min-height: 440px; max-height: 680px;
  position: sticky; top: 12px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--d-line-2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(108,92,255,0.08);
}
#view-events .evt-list {
  height: calc(100vh - 250px); min-height: 440px; max-height: 680px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 6px;
}

@media (max-width: 900px) {
  #view-events .evt-layout { grid-template-columns: 1fr; }
  #view-events .evt-map { height: 340px; position: static; }
  #view-events .evt-list { height: auto; max-height: none; }
}
