/* ==========================================================================
   Παιδεία — Design System
   Ζεστό χαρτί, μπλε του Αιγαίου, ανθρώπινη τυπογραφία.
   ========================================================================== */

:root {
  --paper: #FAF8F4;
  --paper-deep: #F3EFE8;
  --card: #FFFFFF;
  --ink: #22303E;
  --ink-soft: #5C6B7A;
  --ink-faint: #8B97A3;
  --line: #E8E2D8;
  --line-soft: #F0EBE2;

  --blue: #1F5FA8;
  --blue-deep: #174A80;
  --blue-tint: #EDF3FA;
  --blue-tint-2: #DCE9F7;

  --terra: #C0653F;
  --terra-tint: #F9EFE9;
  --gold: #D9A441;
  --gold-tint: #FAF3E3;

  --green: #2E7D5B;
  --green-tint: #EAF4EF;
  --red: #B3452F;
  --red-tint: #F9ECE8;

  --font-display: 'Literata', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(38, 44, 52, 0.06);
  --shadow-md: 0 4px 16px rgba(38, 44, 52, 0.08);
  --shadow-lg: 0 12px 40px rgba(38, 44, 52, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  /* Καθόλου rubber-band overscroll, καθόλου «κόλλημα» στο scroll chaining. */
  overscroll-behavior: none;
  background: var(--paper);
}

body {
  font-family: var(--font-ui);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#app { height: 100%; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--blue-tint-2); }

/* --------------------------------------------------------------------------
   Boot screen
   -------------------------------------------------------------------------- */

.boot-screen {
  height: 100svh; display: flex; align-items: center; justify-content: center;
}
.boot-mark {
  font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--blue);
  animation: bootPulse 1.2s ease-in-out infinite alternate;
}
@keyframes bootPulse { from { opacity: 0.35; } to { opacity: 1; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s, box-shadow 0.15s;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--blue-deep); }

.btn-soft { background: var(--blue-tint); color: var(--blue-deep); }
.btn-soft:hover:not(:disabled) { background: var(--blue-tint-2); }

.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--card); border-color: var(--ink-faint); color: var(--ink); }

.btn-danger-soft { background: var(--red-tint); color: var(--red); }
.btn-danger-soft:hover:not(:disabled) { background: #F3DCD4; }

.btn-lg { padding: 13px 26px; font-size: 16.5px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; }
.btn-icon {
  padding: 8px; border-radius: 9px; background: transparent; border: none; color: var(--ink-faint);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--paper-deep); color: var(--ink); }
.btn-icon svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field .hint { font-size: 12.5px; color: var(--ink-faint); }

.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint-2); }
textarea.input { resize: vertical; min-height: 90px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C6B7A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

.form-error {
  background: var(--red-tint); color: var(--red); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; margin-bottom: 14px; display: none;
}
.form-error.show { display: block; }

/* Segmented control */
.seg { display: inline-flex; background: var(--paper-deep); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg button {
  border: none; background: transparent; padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft); transition: all 0.15s;
}
.seg button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: all 0.15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue-deep); }
.chip.active { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-deep); font-weight: 600; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */

.landing { min-height: 100svh; display: flex; flex-direction: column; }

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px); max-width: 1200px; width: 100%; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--ink); }
.logo .logo-mark { width: 34px; height: 34px; border-radius: 9px; }
.logo .logo-lockup { height: 42px; width: auto; display: block; }
/* Νέο σήμα: εικονίδιο (βιβλίο + λάμπα) + wordmark "aiducation" σε κείμενο,
   ώστε να είναι πάντα ευανάγνωστο πάνω σε ανοιχτό φόντο. */
.logo .logo-mark2 { width: 40px; height: 40px; object-fit: contain; }
.logo .logo-word { font-family: 'Inter', var(--font-body, sans-serif); font-weight: 800; font-size: 23px; letter-spacing: -0.4px; color: #2E6FE0; }
.logo .logo-word i { font-style: normal; color: #1F5FA8; }
.landing-nav .nav-actions { display: flex; gap: 10px; }

.hero {
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 56px) clamp(30px, 6vh, 70px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); }

.hero-visual { position: relative; }
.hero-chat {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 22px; max-width: 430px; margin-left: auto;
}
.hero-chat .hc-title { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-faint); font-weight: 600; margin-bottom: 16px; }
.hero-chat .hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hc-bubble { padding: 12px 15px; border-radius: 14px; font-size: 14.5px; margin-bottom: 10px; max-width: 92%; }
.hc-user { background: var(--blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.hc-bot { background: var(--paper); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }

.section { max-width: 1200px; margin: 0 auto; width: 100%; padding: clamp(30px, 6vh, 60px) clamp(20px, 5vw, 56px); }
.section-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.section-sub { color: var(--ink-soft); margin-bottom: 34px; max-width: 42em; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature-card { padding: 26px; }
.feature-card .fc-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* Landing, feature showcase (alternating copy + framed screenshot) */
.showcase-row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(30px, 5vh, 54px) 0;
  border-top: 1px solid var(--line-soft);
}
.showcase-row:first-of-type { border-top: none; padding-top: 8px; }
.showcase-row.reverse .sc-copy { order: 2; }
.showcase-row.reverse .sc-shot { order: 1; }
.sc-copy { max-width: 30em; }
.sc-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue-deep); background: var(--blue-tint);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.sc-copy h3 { font-family: var(--font-display); font-size: clamp(21px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 12px; }
.sc-copy p { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-soft); line-height: 1.6; }
.sc-shot { min-width: 0; }
.shot-frame {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--paper-deep); box-shadow: var(--shadow-lg);
}
.shot-bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar i:nth-child(1) { background: #E5735B; }
.shot-bar i:nth-child(2) { background: #E8B84B; }
.shot-bar i:nth-child(3) { background: #5FB07A; }
.shot-frame img { display: block; width: 100%; height: auto; }
@media (max-width: 820px) {
  .showcase-row { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
  .showcase-row.reverse .sc-copy { order: 1; }
  .showcase-row.reverse .sc-shot { order: 2; }
}

/* Ρυθμίσεις */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.st-card h2 { font-size: 19px; margin-bottom: 4px; }
.st-card .st-sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.st-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.st-danger { border-color: #EAC6BC; }
.st-danger h2 { color: var(--terra, #B4552D); }

/* Billing, crypto (XRP) payment panel */
.crypto-card .crypto-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.crypto-label { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.crypto-value { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; text-align: right; word-break: break-all; }
.crypto-value.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.crypto-copy { border: none; background: var(--paper-deep); color: var(--ink-soft); border-radius: 6px; padding: 2px 7px; cursor: pointer; font-size: 13px; }
.crypto-copy:hover { background: var(--blue-tint); color: var(--blue-deep); }
.crypto-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; line-height: 1.5; }
.pc-crypto { color: var(--ink-soft); }

.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.role-card { padding: 32px; position: relative; overflow: hidden; }
.role-card h3 { font-size: 22px; margin-bottom: 6px; }
.role-card .rc-sub { color: var(--ink-soft); margin-bottom: 18px; }
.role-card ul { list-style: none; margin-bottom: 24px; }
.role-card li { padding: 7px 0; padding-left: 28px; position: relative; font-size: 15px; color: var(--ink-soft); }
.role-card li::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

.landing-footer {
  border-top: 1px solid var(--line); padding: 26px clamp(20px, 5vw, 56px);
  text-align: center; color: var(--ink-faint); font-size: 13.5px; margin-top: auto;
}

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */

.auth-page { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 460px; padding: 36px; }
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { text-align: center; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--ink-soft); }

.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.role-pick button {
  padding: 16px 12px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: var(--card); text-align: center; transition: all 0.15s;
}
.role-pick button .rp-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.role-pick button .rp-name { font-weight: 600; font-size: 15px; }
.role-pick button .rp-desc { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.role-pick button.active { border-color: var(--blue); background: var(--blue-tint); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.subject-multi { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: 264px 1fr; height: 100dvh; overflow: hidden; }

.sidebar {
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto;
}
.sidebar .logo { padding: 0 10px 20px; font-size: 21px; }
.sidebar .logo .logo-mark { width: 30px; height: 30px; }
.sidebar .logo .logo-lockup { height: 36px; }

.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 500; font-size: 15px; border: none; background: transparent;
  width: 100%; text-align: left; margin-bottom: 2px; transition: all 0.12s;
}
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: var(--paper); color: var(--ink); }
.nav-item.active { background: var(--blue-tint); color: var(--blue-deep); font-weight: 600; }

.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.user-chip { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none;
}
.avatar.teacher { background: var(--terra); }
.user-chip .uc-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.user-chip .uc-role { font-size: 12px; color: var(--ink-faint); }

.main { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.main-inner { width: 100%; max-width: none; margin: 0; padding: clamp(20px, 4vh, 40px) clamp(16px, 3.5vw, 44px); flex: 1; display: flex; flex-direction: column; }

.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 5px; }
.page-head .ph-sub { color: var(--ink-soft); font-size: 15px; }

/* Mobile nav */
.mobile-topbar { display: none; }
.mobile-nav { display: none; }

/* --------------------------------------------------------------------------
   Student home
   -------------------------------------------------------------------------- */

.greeting-hero { margin-bottom: 30px; }
.greeting-hero h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 6px; }
.greeting-hero p { color: var(--ink-soft); font-size: 16px; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 34px; }
.qa-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow-sm); transition: all 0.15s; width: 100%;
}
.qa-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--blue-tint-2); }
.qa-card .qa-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex: none;
}
.qa-card .qa-title { font-weight: 600; font-size: 15.5px; }
.qa-card .qa-sub { font-size: 13px; color: var(--ink-faint); margin-top: 1px; }

.block-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 14px; }

.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 34px; }
.subject-card {
  padding: 18px 14px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); transition: all 0.15s; width: 100%;
}
.subject-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--blue); }
.subject-card .sc-icon { font-size: 27px; display: block; margin-bottom: 8px; }
.subject-card .sc-name { font-weight: 600; font-size: 13.5px; line-height: 1.3; }

.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
  display: flex; align-items: center; gap: 13px; padding: 13px 16px; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); transition: all 0.13s;
}
.recent-item:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
/* min-width:0 στο flex παιδί ώστε το ellipsis να «πιάνει» και σε στενές οθόνες */
.recent-item > span { min-width: 0; }
.recent-item .ri-title { font-weight: 600; font-size: 14.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .ri-sub { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(46ch, 100%); }
.recent-item .ri-time { margin-left: auto; font-size: 12px; color: var(--ink-faint); flex: none; }

/* --------------------------------------------------------------------------
   Chat
   -------------------------------------------------------------------------- */

.chat-layout { display: grid; grid-template-columns: 280px 1fr; flex: 1; min-height: 0; margin: calc(-1 * clamp(20px, 4vh, 40px)) calc(-1 * clamp(16px, 3.5vw, 44px)); }
.chat-layout > * { min-height: 0; }

.convo-panel {
  border-right: 1px solid var(--line); background: rgba(255,255,255,0.6);
  display: flex; flex-direction: column; padding: 18px 12px;
}
.convo-panel .cp-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 14px; }
.convo-panel .cp-head h2 { font-size: 17px; }
.convo-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.convo-item {
  padding: 10px 12px; border-radius: var(--radius-sm); border: none; background: transparent;
  text-align: left; width: 100%; transition: background 0.12s; position: relative;
}
.convo-item:hover { background: var(--paper); }
.convo-item.active { background: var(--blue-tint); }
.convo-item .ci-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 20px; }
.convo-item .ci-sub { font-size: 12px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.convo-item .ci-del { position: absolute; right: 6px; top: 8px; opacity: 0; transition: opacity 0.12s; }
.convo-item:hover .ci-del { opacity: 1; }

.chat-main { display: flex; flex-direction: column; background: var(--paper); }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.7); backdrop-filter: blur(6px);
}
.chat-head .ch-title { font-weight: 600; font-size: 15.5px; }
.chat-head .ch-badge {
  font-size: 12.5px; background: var(--blue-tint); color: var(--blue-deep); font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}

.chat-scroll { flex: 1; overflow-y: auto; padding: 26px 22px 10px; }
.chat-thread { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.msg { display: flex; gap: 12px; }
.msg .msg-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 12.5px; margin-top: 3px;
}
.msg-user { flex-direction: row-reverse; }
.msg-user .msg-avatar { background: var(--blue-tint-2); color: var(--blue-deep); }
.msg-bot .msg-avatar { background: var(--terra-tint); color: var(--terra); font-family: var(--font-display); }
.msg-bubble { max-width: 82%; padding: 13px 17px; border-radius: 16px; }
.msg-user .msg-bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; overflow-wrap: break-word; }
.msg-bot .msg-bubble { background: var(--card); border: 1px solid var(--line-soft); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }

.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-composer { padding: 14px 22px 20px; }
.composer-box {
  max-width: 1180px; margin: 0 auto; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 6px 6px 6px 18px; display: flex; align-items: flex-end; gap: 10px;
  box-shadow: var(--shadow-md); transition: border-color 0.15s;
}
.composer-box:focus-within { border-color: var(--blue); }
.composer-box textarea {
  flex: 1; border: none; outline: none; resize: none; background: transparent;
  padding: 9px 0; max-height: 160px; line-height: 1.5;
}
.composer-send {
  width: 40px; height: 40px; border-radius: 12px; border: none; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none; margin-bottom: 2px;
  transition: background 0.15s;
}
.composer-send:hover:not(:disabled) { background: var(--blue-deep); }
.composer-send:disabled { background: var(--line); }
.composer-send svg { width: 18px; height: 18px; }
.composer-hint { max-width: 1180px; margin: 8px auto 0; text-align: center; font-size: 12px; color: var(--ink-faint); }

.chat-empty { max-width: 860px; margin: auto; text-align: center; padding: 30px 20px; }
.chat-empty .ce-mark {
  width: 62px; height: 62px; border-radius: 50%; background: var(--terra-tint); color: var(--terra);
  font-family: var(--font-display); font-size: 27px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.chat-empty h2 { font-size: 23px; margin-bottom: 8px; }
.chat-empty p { color: var(--ink-soft); margin-bottom: 22px; }
.suggest-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }

.subject-select-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   Markdown content
   -------------------------------------------------------------------------- */

.md { overflow-wrap: break-word; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 0.65em 0; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--font-display); margin: 1.1em 0 0.45em; line-height: 1.3; }
.md h1 { font-size: 1.45em; } .md h2 { font-size: 1.28em; } .md h3 { font-size: 1.14em; } .md h4 { font-size: 1.02em; }
.md ul, .md ol { margin: 0.65em 0; padding-left: 1.5em; }
.md li { margin: 0.3em 0; }
.md li > ul, .md li > ol { margin: 0.25em 0; }
.md strong { font-weight: 700; }
.md blockquote { border-left: 3px solid var(--blue-tint-2); padding: 2px 0 2px 14px; color: var(--ink-soft); margin: 0.7em 0; }
.md code { background: var(--paper-deep); border-radius: 5px; padding: 2px 6px; font-size: 0.88em; font-family: 'Consolas', 'Menlo', monospace; }
.md pre { background: #2A3542; color: #E8EDF2; border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 0.8em 0; }
.md pre code { background: transparent; color: inherit; padding: 0; font-size: 0.86em; }
.md table { border-collapse: collapse; margin: 0.9em 0; width: 100%; font-size: 0.93em; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.md th { background: var(--paper); font-weight: 600; }
.md hr { border: none; border-top: 1px solid var(--line); margin: 1.3em 0; }
.md a { text-decoration: underline; }

.msg-user .md code { background: rgba(255,255,255,0.18); }

/* --------------------------------------------------------------------------
   Practice (quiz)
   -------------------------------------------------------------------------- */

/* Οι φόρμες γεμίζουν όλο το πλάτος, με τα πεδία σε στήλες ώστε να αναπνέουν. */
.quiz-setup { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 30px; align-items: start; }
.quiz-setup > button { grid-column: 1 / -1; }

.q-item { padding: 22px 24px; margin-bottom: 14px; }
.q-item .qi-num { font-size: 12.5px; font-weight: 700; color: var(--blue); letter-spacing: 0.4px; margin-bottom: 7px; }
.q-item .qi-text { font-weight: 600; font-size: 16px; margin-bottom: 15px; line-height: 1.45; }

.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--card); text-align: left; width: 100%; transition: all 0.12s;
  font-size: 15px; line-height: 1.4;
}
.q-opt:hover { border-color: var(--blue); }
.q-opt.selected { border-color: var(--blue); background: var(--blue-tint); }
.q-opt .qo-key {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink-faint);
  margin-top: -1px;
}
.q-opt.selected .qo-key { background: var(--blue); border-color: var(--blue); color: #fff; }

.q-tf { display: flex; gap: 10px; }
.q-tf .q-opt { flex: 1; justify-content: center; font-weight: 600; }

/* Αποτελέσματα */
.q-item.res-correct { border-left: 4px solid var(--green); }
.q-item.res-partial { border-left: 4px solid var(--gold); }
.q-item.res-wrong { border-left: 4px solid var(--red); }
.res-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.res-tag.ok { background: var(--green-tint); color: var(--green); }
.res-tag.mid { background: var(--gold-tint); color: #9A7220; }
.res-tag.no { background: var(--red-tint); color: var(--red); }
.res-answer { font-size: 14.5px; margin: 7px 0; }
.res-answer b { color: var(--green); }
.res-given {
  font-size: 14px; background: var(--blue-tint); border-radius: var(--radius-sm);
  padding: 11px 14px; margin: 6px 0 10px; white-space: pre-wrap; color: var(--ink);
}
.res-feedback {
  font-size: 14px; color: var(--ink); background: var(--gold-tint);
  border-radius: var(--radius-sm); padding: 11px 14px; margin-top: 10px;
}
.res-expl { font-size: 14px; color: var(--ink-soft); background: var(--paper); border-radius: var(--radius-sm); padding: 11px 14px; margin-top: 10px; }
.res-expl .re-title { font-weight: 700; font-size: 12.5px; letter-spacing: 0.3px; color: var(--blue-deep); margin-bottom: 6px; text-transform: uppercase; }
.res-expl .md { color: var(--ink); }

textarea.q-open { min-height: 120px; font-size: 14.5px; line-height: 1.55; }

.score-hero { text-align: center; padding: 36px 24px; margin-bottom: 22px; }
.score-ring {
  width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.score-ring .sr-inner {
  width: 104px; height: 104px; border-radius: 50%; background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-ring .sr-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; }
.score-ring .sr-den { font-size: 13px; color: var(--ink-faint); }
.score-hero h2 { font-size: 23px; margin-bottom: 6px; }
.score-hero p { color: var(--ink-soft); max-width: 34em; margin: 0 auto; }

.gen-loading { text-align: center; padding: 60px 20px; }
.gen-loading .gl-icon { font-size: 40px; margin-bottom: 16px; animation: bob 1.4s ease-in-out infinite; display: inline-block; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.gen-loading p { color: var(--ink-soft); font-size: 16px; }

/* --------------------------------------------------------------------------
   Progress
   -------------------------------------------------------------------------- */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat-card { padding: 20px 22px; }
.stat-card .st-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.stat-card .st-label { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

.subject-bars { display: flex; flex-direction: column; gap: 14px; }
.sb-row { display: grid; grid-template-columns: 200px 1fr 52px; gap: 14px; align-items: center; }
.sb-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.sb-track { height: 10px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.sb-fill { height: 100%; border-radius: 999px; background: var(--blue); transition: width 0.6s ease; }
.sb-pct { font-weight: 700; font-size: 14px; text-align: right; }

/* --------------------------------------------------------------------------
   Teacher tools
   -------------------------------------------------------------------------- */

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card { padding: 24px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); transition: all 0.15s; width: 100%; }
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--terra); }
.tool-card .tc-icon { font-size: 27px; margin-bottom: 12px; display: block; }
.tool-card h3 { font-size: 17px; margin-bottom: 6px; }
.tool-card p { font-size: 13.5px; color: var(--ink-soft); }

.tool-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.tool-form { position: sticky; top: 10px; }

.output-panel { min-height: 400px; display: flex; flex-direction: column; }
.output-head { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.output-head .oh-title { font-weight: 600; font-size: 15px; margin-right: auto; }
.output-body { padding: 24px 28px; flex: 1; }
.output-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink-faint); flex: 1; padding: 50px 20px; }
.output-empty .oe-icon { font-size: 36px; margin-bottom: 12px; }

.cursor-blink { display: inline-block; width: 8px; height: 1.1em; background: var(--blue); vertical-align: text-bottom; animation: blink 0.9s steps(1) infinite; border-radius: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Library
   -------------------------------------------------------------------------- */

.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-item {
  display: flex; align-items: center; gap: 15px; padding: 16px 20px; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: all 0.13s;
}
.lib-item:hover { border-color: var(--terra); box-shadow: var(--shadow-sm); }
.lib-item .li-icon { font-size: 23px; flex: none; }
.lib-item .li-title { font-weight: 600; font-size: 15px; }
.lib-item .li-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.lib-item .li-time { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); flex: none; }

/* --------------------------------------------------------------------------
   Έγγραφα
   -------------------------------------------------------------------------- */

.upload-zone {
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card);
  padding: 34px 20px; text-align: center; transition: all 0.15s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--blue); background: var(--blue-tint); }
.upload-zone.uploading { border-color: var(--gold); background: var(--gold-tint); cursor: wait; }
.upload-zone .uz-icon svg { width: 34px; height: 34px; color: var(--blue); margin-bottom: 10px; }
.upload-zone .uz-title { font-weight: 600; font-size: 15.5px; }
.upload-zone .uz-browse {
  border: none; background: transparent; color: var(--blue); font-weight: 700;
  text-decoration: underline; padding: 0; font-size: inherit;
}
.upload-zone .uz-hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }

.doc-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.doc-head .dh-file { font-size: 15px; }
.doc-head .dh-size { color: var(--ink-faint); font-size: 12.5px; margin-left: 6px; }

.doc-thread { display: flex; flex-direction: column; gap: 18px; padding-bottom: 16px; flex: 1; }
.doc-composer { position: sticky; bottom: 10px; padding-top: 8px; background: linear-gradient(transparent, var(--paper) 30%); }

/* --------------------------------------------------------------------------
   Εργαστήρι
   -------------------------------------------------------------------------- */

.ws-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; flex: 1; min-height: 0; align-items: start; }
.ws-main { display: flex; flex-direction: column; min-height: 60vh; }

.ws-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; position: sticky; top: 10px; max-height: calc(100dvh - 140px); overflow-y: auto;
}
.wsp-section + .wsp-section { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.wsp-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px; padding: 0 2px;
}
.wsp-empty { font-size: 12.5px; color: var(--ink-faint); padding: 4px 2px; }

.ws-file {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; padding: 8px 10px; border: none; background: transparent;
  border-radius: 8px; font-size: 13.5px; transition: background 0.12s;
}
.ws-file:hover { background: var(--blue-tint); }
.ws-file .wf-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-file .wf-size { color: var(--ink-faint); font-size: 11.5px; flex: none; }

.ws-activity {
  align-self: flex-start; font-size: 13px; color: var(--ink-soft);
  background: var(--paper-deep); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 5px 14px; margin-left: 44px;
}

@media (max-width: 1020px) {
  .ws-layout { grid-template-columns: 1fr; }
  .ws-panel { display: none; position: static; max-height: none; }
  .ws-layout.show-panel .ws-panel { display: block; }
}

.anno-excerpt { font-style: italic; color: var(--ink-soft); font-size: 14px; }
.mex-before { background: var(--red-tint); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14.5px; }
.mex-after { background: var(--green-tint); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14.5px; margin-top: 8px; }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-faint); }
.empty-state .es-icon { font-size: 38px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; max-width: 30em; margin: 0 auto; }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px;
  font-weight: 500; box-shadow: var(--shadow-lg); animation: toastIn 0.25s ease; max-width: 90vw;
}
.toast.err { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.modal-back {
  position: fixed; inset: 0; background: rgba(30, 38, 48, 0.45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.15s ease;
}
.modal { background: var(--card); border-radius: var(--radius); padding: 28px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.modal h3 { font-size: 19px; margin-bottom: 8px; }
.modal p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   Print — καθαρή εκτύπωση υλικού
   -------------------------------------------------------------------------- */

@media print {
  body { background: #fff; font-size: 12.5pt; }
  .sidebar, .mobile-topbar, .mobile-nav, .tool-form, .output-head, .chat-composer, .convo-panel,
  .page-head, .toasts, .lib-actions, .no-print { display: none !important; }
  .shell { display: block; height: auto; }
  .main { overflow: visible; }
  .main-inner { max-width: 100%; padding: 0; }
  .tool-layout { display: block; }
  .output-panel, .card { border: none; box-shadow: none; }
  .output-body { padding: 0; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

.mobile-only { display: none !important; }

@media (max-width: 1020px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-form { position: static; }
  .chat-layout { grid-template-columns: 1fr; }
  .convo-panel { display: none; }
  .chat-layout.show-list .convo-panel { display: flex; }
  .chat-layout.show-list .chat-main { display: none; }
  .mobile-only { display: inline-flex !important; }
}

@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .sidebar { display: none; }

  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; background: var(--card); border-bottom: 1px solid var(--line);
  }
  .mobile-topbar .logo { font-size: 19px; }
  .mobile-topbar .logo .logo-mark { width: 27px; height: 27px; }
  .mobile-topbar .logo .logo-lockup { height: 28px; }

  .mobile-nav {
    display: flex; background: var(--card); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 2px; border: none; background: transparent; color: var(--ink-faint);
    font-size: 10px; font-weight: 600; border-radius: 8px; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-nav button svg { width: 20px; height: 20px; flex: none; }
  .mobile-nav button.active { color: var(--blue); }

  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-chat { margin: 0 auto; }
  .roles-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .sb-row { grid-template-columns: 130px 1fr 46px; }
  .msg-bubble { max-width: 90%; }
}

/* Στενές οθόνες: το μενού της αρχικής χωράει ΟΛΟΚΛΗΡΟ, με μια ματιά. */
@media (max-width: 640px) {
  .landing-nav { padding: 14px 14px; gap: 8px; }
  .landing-nav .logo { gap: 7px; }
  .landing-nav .logo .logo-mark2 { width: 28px; height: 28px; }
  .landing-nav .logo .logo-word { font-size: 17px; letter-spacing: -0.3px; }
  .landing-nav .nav-actions { gap: 6px; flex-shrink: 0; }
  .landing-nav .nav-actions .btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
  /* Το «Σύνδεση» ζει και στο hero («Έχω λογαριασμό»), εδώ κρατάμε το βασικό. */
  .landing-nav .nav-actions .btn-ghost { display: none; }
  .landing-nav .lang-toggle button { padding: 4px 8px; font-size: 11px; }
  .section { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .sc-copy h3 { font-size: 20px; }
  .landing, body { overflow-x: clip; }
}

/* --------------------------------------------------------------------------
   Language toggle
   -------------------------------------------------------------------------- */
.lang-toggle { display: inline-flex; background: var(--paper-deep); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-toggle button {
  border: none; background: transparent; padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.3px; transition: all 0.15s;
}
.lang-toggle button.active { background: var(--card); color: var(--blue-deep); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   Billing / pricing
   -------------------------------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 30px; }
.plan-card { padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--blue); box-shadow: 0 8px 30px rgba(31,95,168,0.16); }
.plan-card .pc-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.plan-card .pc-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.plan-card .pc-price { font-size: 34px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.5px; }
.plan-card .pc-price small { font-size: 15px; font-weight: 600; color: var(--ink-faint); }
.plan-card ul { list-style: none; margin: 16px 0 20px; flex: 1; }
.plan-card li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; color: var(--ink-soft); }
.plan-card li::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 15px; height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.usage-card { padding: 22px 24px; margin-bottom: 26px; }
.usage-bar-track { height: 12px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.usage-bar-fill { height: 100%; border-radius: 999px; background: var(--blue); transition: width 0.6s ease; }
.usage-meta { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); }

.gate-banner {
  background: var(--gold-tint); border: 1px solid #EAD9A8; border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 18px; font-size: 14.5px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
