/* ============================================================
   LinguaBridge — Main Stylesheet
   Design: Deep navy + electric teal + warm white
   Fonts: Syne (display) + Inter (body)
   ============================================================ */

:root {
  --navy:    #0A0F1E;
  --navy-2:  #111827;
  --navy-3:  #1E2940;
  --teal:    #00D4BE;
  --teal-d:  #00B8A4;
  --teal-glow: rgba(0,212,190,0.15);
  --white:   #F8FAFC;
  --gray-1:  #E2E8F0;
  --gray-2:  #94A3B8;
  --gray-3:  #475569;
  --danger:  #EF4444;
  --success: #22C55E;
  --warn:    #F59E0B;
  --purple:  #8B5CF6;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-d); }

/* ── FLASH MESSAGES ── */
.flash-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.flash { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; max-width: 400px; }
.flash--success { background: #064e3b; border: 1px solid var(--success); color: #6ee7b7; }
.flash--danger  { background: #450a0a; border: 1px solid var(--danger);  color: #fca5a5; }
.flash--warning { background: #451a03; border: 1px solid var(--warn);    color: #fde68a; }
.flash__close { background: none; border: none; color: inherit; cursor: pointer; margin-left: auto; font-size: 1.2rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent; transition: all .2s;
  text-decoration: none; line-height: 1;
}
.btn--primary  { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-d); color: var(--navy); }
.btn--outline  { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal-glow); }
.btn--ghost    { background: rgba(255,255,255,.06); color: var(--gray-1); border-color: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--danger:hover { background: #dc2626; }
.btn--lg  { padding: .85rem 2rem; font-size: 1rem; }
.btn--sm  { padding: .4rem .9rem; font-size: .82rem; }
.btn--xs  { padding: .25rem .6rem; font-size: .75rem; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 2.5rem;
  background: rgba(10,15,30,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__logo { display: flex; align-items: center; gap: .5rem; font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--white); }
.nav__logo-icon { color: var(--teal); font-size: 1.5rem; }
.nav__links { display: flex; gap: 1.75rem; margin: 0 auto; list-style: none; }
.nav__links a { color: var(--gray-2); font-size: .9rem; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__cta { display: flex; gap: .75rem; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 4rem 4rem;
  gap: 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 50%, rgba(0,212,190,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__orbit { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(0,212,190,.2);
  animation: spin linear infinite;
}
.hero__ring--1 { width: 320px; height: 320px; animation-duration: 20s; }
.hero__ring--2 { width: 460px; height: 460px; animation-duration: 30s; animation-direction: reverse; border-color: rgba(0,212,190,.1); }
.hero__ring--3 { width: 600px; height: 600px; animation-duration: 45s; border-color: rgba(0,212,190,.06); }
.hero__center { font-size: 5rem; color: var(--teal); text-shadow: 0 0 60px rgba(0,212,190,.6); z-index: 1; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.hero__title { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.hero__title em { color: var(--teal); font-style: normal; }
.hero__sub { font-size: 1.1rem; color: var(--gray-2); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__stats { display: flex; gap: 2rem; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat span { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--teal); }
.hero__stat small { font-size: .8rem; color: var(--gray-2); }

/* ── BUBBLES SECTION ── */
.bubbles-section { padding: 3rem 4rem; overflow: hidden; }
.bubbles { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.bubble {
  background: var(--navy-3); border: 1px solid rgba(0,212,190,.2);
  border-radius: 2rem; padding: .7rem 1.4rem; font-size: .9rem;
  animation: float 3s ease-in-out infinite;
}
.bubble--tr { border-color: rgba(0,212,190,.5); color: var(--teal); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── SECTIONS ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .75rem; }
.section-header h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; }

/* ── FEATURES ── */
.features { padding: 5rem 0; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 2rem; transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(0,212,190,.3); }
.feature-card--accent { border-color: rgba(0,212,190,.3); background: linear-gradient(135deg, var(--navy-2), rgba(0,212,190,.05)); }
.feature-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: .75rem; }
.feature-card p { color: var(--gray-2); font-size: .9rem; line-height: 1.65; margin-bottom: 1rem; }
.feature-card__list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.feature-card__list li { font-size: .85rem; color: var(--gray-2); padding-left: 1rem; position: relative; }
.feature-card__list li::before { content: '→'; position: absolute; left: 0; color: var(--teal); }

/* ── HOW IT WORKS ── */
.how { padding: 5rem 0; background: rgba(255,255,255,.02); }
.how__steps { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.how__step { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 1.5rem; max-width: 220px; flex: 1; min-width: 180px; }
.how__step-num { width: 40px; height: 40px; background: var(--teal); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.how__step h4 { font-size: .95rem; font-weight: 600; margin-bottom: .5rem; }
.how__step p { color: var(--gray-2); font-size: .85rem; }
.how__arrow { color: var(--teal); font-size: 1.5rem; align-self: center; display: none; }
@media (min-width: 900px) { .how__arrow { display: block; } }

/* ── PRICING ── */
.pricing { padding: 5rem 0; }
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.pricing__card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 2rem; text-align: center; }
.pricing__card--featured { border-color: var(--teal); box-shadow: 0 0 40px rgba(0,212,190,.15); }
.pricing__badge { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.pricing__price { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.pricing__price span { font-size: 1rem; color: var(--gray-2); font-weight: 400; }
.pricing__features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; text-align: left; }
.pricing__features li { font-size: .9rem; color: var(--gray-2); }

/* ── CTA FOOTER ── */
.cta-footer { padding: 6rem 2rem; text-align: center; background: linear-gradient(180deg, transparent, rgba(0,212,190,.05)); }
.cta-footer h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; margin-bottom: 2rem; line-height: 1.3; }

/* ── FOOTER ── */
.footer { padding: 2rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; }
.footer .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.footer__brand { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--teal); }
.footer__copy { color: var(--gray-3); font-size: .85rem; }

/* ── AUTH PAGES ── */
.page-auth body, .page-auth { min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 100%);
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
}
.auth-brand p { color: var(--gray-2); font-size: 1rem; }
.auth-brand__langs { display: flex; gap: 1rem; flex-wrap: wrap; }
.auth-brand__langs span { background: rgba(0,212,190,.1); color: var(--teal); padding: .3rem .8rem; border-radius: 1rem; font-size: .85rem; font-weight: 600; }
.auth-brand__perks { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.auth-brand__perks li { color: var(--gray-2); font-size: .9rem; }
.auth-box { display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem; background: var(--navy); }
.auth-box__header { margin-bottom: 2rem; }
.auth-box__header h1 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.auth-box__header p { color: var(--gray-2); }
.auth-box__footer { margin-top: 1.5rem; text-align: center; color: var(--gray-2); font-size: .9rem; }

/* ── FORMS ── */
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--gray-1); }
.form-required { color: var(--danger); }
.form-control {
  background: var(--navy-3); border: 1px solid rgba(255,255,255,.12);
  color: var(--white); padding: .75rem 1rem; border-radius: 8px;
  font-size: .95rem; font-family: 'Inter', sans-serif;
  transition: border-color .2s;
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,212,190,.15); }
.form-control::placeholder { color: var(--gray-3); }
.form-control--mono { font-family: 'Courier New', monospace; font-size: .85rem; }
.form-control--sm { padding: .4rem .75rem; font-size: .85rem; }
.form-control--xs { padding: .25rem .5rem; font-size: .8rem; }
.form-control--code { width: 110px; flex-shrink: 0; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }
.form-control-wrap { position: relative; }
.form-control-wrap .form-control { padding-right: 2.5rem; }
.form-eye { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--gray-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row--actions { display: flex; gap: 1rem; align-items: center; }
.phone-row { display: flex; gap: .5rem; }
.form-hint { color: var(--gray-3); font-size: .8rem; margin-top: .25rem; }
.form-group--check { flex-direction: row; align-items: flex-start; gap: .5rem; }
.form-group--check input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--teal); }
.form-group--check label { font-weight: 400; color: var(--gray-2); font-size: .85rem; }

/* ── PANEL LAYOUT ── */
.page-panel { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--navy-2);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar--admin .sidebar__nav { border-top: 1px solid rgba(139,92,246,.2); }
.sidebar__logo { display: flex; align-items: center; gap: .5rem; font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); padding: 1.5rem 1.25rem 1rem; }
.sidebar__nav { display: flex; flex-direction: column; gap: .25rem; padding: .5rem 1rem; flex: 1; }
.sidebar__link { display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border-radius: 8px; color: var(--gray-2); font-size: .9rem; font-weight: 500; transition: all .2s; }
.sidebar__link:hover, .sidebar__link.active { background: rgba(0,212,190,.1); color: var(--teal); }
.sidebar__link--admin { color: var(--purple) !important; }
.sidebar__divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: .5rem 0; }
.sidebar__user { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); }
.sidebar__avatar { width: 36px; height: 36px; background: var(--teal); color: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.sidebar__username { font-weight: 600; font-size: .9rem; }
.sidebar__lang { font-size: .75rem; color: var(--teal); }
.sidebar__logout { margin-left: auto; color: var(--gray-3); font-size: 1.1rem; background: none; border: none; cursor: pointer; transition: color .2s; }
.sidebar__logout:hover { color: var(--danger); }

.panel-main { flex: 1; padding: 2rem 2.5rem; overflow-x: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.panel-header h1 { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700; }

/* ── STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 1.5rem; }
.stat-card--primary { border-color: rgba(0,212,190,.3); background: linear-gradient(135deg, var(--navy-2), rgba(0,212,190,.06)); }
.stat-card__icon { font-size: 1.5rem; margin-bottom: .75rem; }
.stat-card__value { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; color: var(--teal); }
.stat-card__label { font-size: .8rem; color: var(--gray-2); margin-top: .25rem; }

/* ── QUICK ACTIONS ── */
.quick-actions { margin-bottom: 2rem; }
.quick-actions h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.quick-actions__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.quick-action { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; color: var(--gray-1); font-size: .88rem; font-weight: 500; transition: all .2s; }
.quick-action:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.quick-action__icon { font-size: 1.75rem; }

/* ── CARD ── */
.card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.card__header { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); font-weight: 600; font-size: .95rem; }
.card__body { padding: 1.5rem; }
.card__body.p-0 { padding: 0; }
.mb-4 { margin-bottom: 1.5rem; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { background: rgba(255,255,255,.03); color: var(--gray-2); font-weight: 600; padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
.table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.row--inactive td { opacity: .5; }
.mono { font-family: 'Courier New', monospace; }
.actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 1rem; font-size: .75rem; font-weight: 600; background: rgba(255,255,255,.08); color: var(--gray-1); }
.badge--green  { background: rgba(34,197,94,.15);  color: #86efac; }
.badge--red    { background: rgba(239,68,68,.15);   color: #fca5a5; }
.badge--blue   { background: rgba(59,130,246,.15);  color: #93c5fd; }
.badge--purple { background: rgba(139,92,246,.15);  color: #c4b5fd; }
.credit-badge  { background: rgba(0,212,190,.15); color: var(--teal); font-weight: 600; padding: .35rem .9rem; border-radius: 2rem; font-size: .88rem; }

/* ── TRANSACTIONS ── */
.recent-section h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.tx-list { display: flex; flex-direction: column; gap: .5rem; }
.tx-item { display: flex; align-items: center; gap: 1rem; background: var(--navy-2); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: .85rem 1rem; }
.tx-item__type { font-size: 1.25rem; }
.tx-item__info { flex: 1; }
.tx-item__info small { color: var(--gray-3); font-size: .8rem; }
.tx-item__amount { font-weight: 700; font-family: 'Syne', sans-serif; }
.tx-item__amount.positive { color: var(--success); }
.tx-item__amount.negative { color: var(--danger); }

/* ── PAGINATION ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 3rem; color: var(--gray-2); }
.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── CONFERENCE ROOM ── */
.conf-room { display: flex; flex-direction: column; height: calc(100vh - 4rem); }
.conf-room__topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); margin-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.conf-room__info h2 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
.conf-room__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.conf-room__actions { display: flex; gap: .5rem; }
.conf-room__body { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 1rem; overflow: hidden; }
.conf-room__transcript { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 1.5rem; overflow-y: auto; flex: 1; }
.transcript-placeholder { text-align: center; color: var(--gray-3); padding: 3rem; }
.transcript-line { display: flex; align-items: baseline; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.04); flex-wrap: wrap; }
.transcript-line--system { color: var(--gray-3); font-size: .85rem; font-style: italic; }
.transcript-line--translated { background: rgba(0,212,190,.05); border-radius: 6px; padding: .6rem .75rem; }
.transcript-line--self { background: rgba(255,255,255,.04); border-radius: 6px; padding: .6rem .75rem; }
.transcript-line__speaker { font-weight: 600; color: var(--teal); font-size: .85rem; }
.transcript-line__lang { background: rgba(0,212,190,.1); color: var(--teal); padding: .15rem .5rem; border-radius: .5rem; font-size: .75rem; font-weight: 600; }
.transcript-line__text { flex: 1; }
.transcript-line__time { color: var(--gray-3); font-size: .75rem; margin-left: auto; white-space: nowrap; }
.conf-room__controls { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.mic-section { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.mic-btn { background: var(--navy-3); border: 2px solid rgba(0,212,190,.3); border-radius: 50%; width: 72px; height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; user-select: none; }
.mic-btn--sm { width: 44px; height: 44px; }
.mic-btn__icon { font-size: 1.5rem; }
.mic-btn__label { font-size: .6rem; color: var(--gray-3); display: none; }
.mic-btn:hover { border-color: var(--teal); background: rgba(0,212,190,.1); }
.mic-btn--recording { border-color: var(--danger) !important; background: rgba(239,68,68,.15) !important; animation: pulse 1s ease-in-out infinite; }
.mic-btn--active { border-color: var(--success); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); } 50% { box-shadow: 0 0 0 12px rgba(239,68,68,0); } }
.mic-status { font-size: .8rem; color: var(--gray-2); }
.lang-display { margin-left: auto; display: flex; align-items: center; gap: .5rem; color: var(--gray-2); font-size: .88rem; }
.hand-queue { background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3); border-radius: 8px; padding: 1rem; }
.hand-queue h4 { font-size: .9rem; font-weight: 600; color: var(--purple); margin-bottom: .5rem; }
.hand-item { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; font-size: .88rem; }

/* ── TRANSLATE MODE ── */
.translate-layout { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; height: calc(100vh - 10rem); }
.translate-panel { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.translate-panel__header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); font-weight: 700; font-size: .85rem; letter-spacing: .05em; color: var(--gray-2); }
.translate-panel--me .translate-panel__header { color: var(--teal); }
.translate-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.translate-placeholder { text-align: center; color: var(--gray-3); font-size: .88rem; margin: auto; }
.translate-input-bar { display: flex; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.07); }
.translate-middle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
.translate-middle__arrow { font-size: 1.75rem; color: var(--teal); }
.translate-middle__credit { font-size: .8rem; color: var(--gray-2); text-align: center; }
.translate-middle__credit span { display: block; font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.translate-session-info { margin-top: .75rem; color: var(--gray-3); font-size: .82rem; }
.tmsg { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; padding: .5rem .75rem; border-radius: 8px; font-size: .9rem; }
.tmsg--me { background: rgba(0,212,190,.08); }
.tmsg--other { background: rgba(255,255,255,.04); }
.tmsg__lang { background: rgba(0,212,190,.15); color: var(--teal); padding: .1rem .4rem; border-radius: .4rem; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.tmsg__text { flex: 1; }
.tmsg__time { color: var(--gray-3); font-size: .72rem; white-space: nowrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 6rem 2rem 3rem; }
  .hero__orbit { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .translate-layout { grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; height: auto; }
  .translate-middle { flex-direction: row; justify-content: space-around; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .sidebar { position: fixed; left: -240px; z-index: 200; transition: left .3s; }
  .sidebar.open { left: 0; }
  .panel-main { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
}
