@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  --primary: #F2A900;
  --primary-rgb: 242, 169, 0;
  --accent: #004B87;
  --accent-rgb: 0, 75, 135;
  --warning: #FF6B6B;
  --caution: #FFB347;
  --success: #51CF66;
  --info: #5BA3D9;

  --bg-body: #04101E;
  --bg-surface: #0C2035;
  --bg-elevated: #102A42;
  --bg-glass: rgba(12, 32, 53, 0.88);

  --text-primary: #F2F6FA;
  --text-secondary: #7A95AD;
  --text-muted: #4A6578;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════
   APP LAYOUT — 3 Column
   ═══════════════════════════════════════ */
.app {
  display: grid;
  grid-template-rows: 56px 1fr;
  grid-template-columns: 280px 1fr 340px;
  height: 100vh;
  gap: 0;
}

.app-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.brand__logo {
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #F2A900, #FFD040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand__tagline {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.app-header__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease infinite;
}

.app-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Panels */
.panel {
  overflow-y: auto;
  padding: 16px;
}

.panel-left {
  background: var(--bg-surface);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.panel-center {
  background: var(--bg-body);
  padding: 24px;
  position: relative;
}

.panel-right {
  background: var(--bg-surface);
  border-left: 1px solid rgba(255,255,255,0.06);
}

.panel-section {
  margin-bottom: 20px;
}

.panel-section__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════
   DROPZONE
   ═══════════════════════════════════════ */
.dropzone {
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(242, 169, 0, 0.03);
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--primary);
  background: rgba(242, 169, 0, 0.08);
  box-shadow: 0 0 30px rgba(242, 169, 0, 0.1);
}

.dropzone__icon {
  margin-bottom: 12px;
  opacity: 0.5;
  transition: var(--transition);
}

.dropzone:hover .dropzone__icon { opacity: 1; }

.dropzone__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dropzone__sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.dropzone__sub span {
  color: var(--primary);
  cursor: pointer;
}

.dropzone__formats {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.format-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropzone__meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ═══════════════════════════════════════
   DOCUMENT QUEUE
   ═══════════════════════════════════════ */
.doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
}

.doc-item:hover { background: rgba(255,255,255,0.04); }
.doc-item.active { background: rgba(242, 169, 0, 0.1); border: 1px solid rgba(242,169,0,0.2); }

.doc-item__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.doc-item__icon--pdf { background: #e55039; }
.doc-item__icon--html { background: #3c6382; }

.doc-item__info { flex: 1; min-width: 0; }

.doc-item__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-item__size {
  font-size: 11px;
  color: var(--text-muted);
}

.doc-item__status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.doc-item__status--pending { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.doc-item__status--processing { background: rgba(0,201,167,0.15); color: var(--primary); }
.doc-item__status--complete { background: rgba(81,207,102,0.15); color: var(--success); }
.doc-item__status--error { background: rgba(255,107,107,0.15); color: var(--warning); }

.doc-item__remove {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px; font-size: 14px; line-height: 1;
  opacity: 0; transition: var(--transition);
}
.doc-item:hover .doc-item__remove { opacity: 1; }
.doc-item__remove:hover { color: var(--warning); }

.empty-state {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════
   WELCOME STATE
   ═══════════════════════════════════════ */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 20px;
}

.welcome__icon {
  animation: float 4s ease-in-out infinite;
}

.welcome__title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome__sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 400px;
}

.welcome__features {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  width: 160px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(0,201,167,0.3);
  transform: translateY(-2px);
}

.feature-card__icon {
  margin-bottom: 8px;
}

.feature-card__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-card__desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ═══════════════════════════════════════
   PROCESSING OVERLAY
   ═══════════════════════════════════════ */
.processing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 23, 0.95);
  z-index: 50;
  gap: 16px;
}

.processing__icon {
  animation: pulse 1.5s ease infinite;
}

.processing__text {
  font-size: 16px;
  font-weight: 500;
}

.progress-track {
  width: 280px;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

.processing__step {
  font-size: 12px;
  color: var(--text-secondary);
}

.processing__pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* ═══════════════════════════════════════
   ANALYSIS VIEW (Tabs + Content)
   ═══════════════════════════════════════ */
.analysis {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doc-info-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
}

.doc-info-bar__name {
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-info-bar__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,201,167,0.15);
  color: var(--primary);
  text-transform: uppercase;
}

.doc-info-bar__meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Tab Bar */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  flex: 1;
  overflow-y: auto;
}

/* ═══════════════════════════════════════
   ISSUE CARDS
   ═══════════════════════════════════════ */
.issue-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.issue-card:hover {
  background: var(--bg-elevated);
  transform: translateX(2px);
}

.issue-card--critical { border-left-color: var(--warning); }
.issue-card--serious { border-left-color: var(--caution); }
.issue-card--moderate { border-left-color: var(--info); }
.issue-card--minor { border-left-color: var(--text-muted); }
.issue-card--pass { border-left-color: var(--success); opacity: 0.6; }

.issue-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.issue-card__criterion {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.issue-card__severity {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.severity--critical { background: rgba(255,107,107,0.15); color: var(--warning); }
.severity--serious { background: rgba(255,179,71,0.15); color: var(--caution); }
.severity--moderate { background: rgba(51,154,240,0.15); color: var(--info); }
.severity--minor { background: rgba(134,142,150,0.15); color: var(--text-secondary); }
.severity--pass { background: rgba(81,207,102,0.15); color: var(--success); }

.issue-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.issue-card__hint {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}

.issue-card__details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.issue-card.expanded .issue-card__details {
  max-height: 500px;
}

/* ═══════════════════════════════════════
   SCORE GAUGE (Right Panel)
   ═══════════════════════════════════════ */
.score-section {
  text-align: center;
  padding: 20px 0;
}

.score-gauge {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}

.score-gauge__circle-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 10;
}

.score-gauge__circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.score-gauge__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-gauge__number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
}

.score-gauge__label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* POUR Breakdown */
.pour-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pour-item__label {
  font-size: 12px;
  width: 100px;
  color: var(--text-secondary);
}

.pour-item__track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.pour-item__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  width: 0%;
  transition: width 0.8s ease;
}

.pour-item__pct {
  font-size: 12px;
  font-weight: 600;
  width: 36px;
  text-align: right;
  color: var(--text-secondary);
}

/* Severity Summary */
.severity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.severity-stat {
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.severity-stat--critical { background: rgba(255,107,107,0.08); }
.severity-stat--serious { background: rgba(255,179,71,0.08); }
.severity-stat--moderate { background: rgba(51,154,240,0.08); }
.severity-stat--minor { background: rgba(134,142,150,0.06); }

.severity-stat__count {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.severity-stat--critical .severity-stat__count { color: var(--warning); }
.severity-stat--serious .severity-stat__count { color: var(--caution); }
.severity-stat--moderate .severity-stat__count { color: var(--info); }
.severity-stat--minor .severity-stat__count { color: var(--text-secondary); }

.severity-stat__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #004B87, #0060A8);
  color: #FFFFFF;
  border: 2px solid #F2A900;
}
.btn-primary:hover { background: linear-gradient(135deg, #F2A900, #FFBE2E); color: #04101E; transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm { font-size: 11px; padding: 5px 10px; }

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.btn-icon:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }

/* Deadline Cards */
.deadline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 11px;
}

.deadline__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.deadline__dot--warning { background: var(--warning); }
.deadline__dot--caution { background: var(--caution); }

.deadline__text { color: var(--text-secondary); }
.deadline__date { font-weight: 600; color: var(--text-primary); margin-left: auto; }

/* Toast */
.toast-container {
  position: fixed;
  top: 68px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-left: 3px solid;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  font-size: 13px;
  animation: slideIn 0.3s var(--spring);
  min-width: 280px;
}

.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--warning); }
.toast--info { border-left-color: var(--info); }

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 56px 1fr;
  }
  .panel-left, .panel-right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .app-header, .panel-left, .panel-right { display: none; }
  .panel-center { padding: 0; }
  body { background: #fff; color: #000; overflow: visible; }
}

/* ═══════════════════════════════════════
   AI REMEDIATION
   ═══════════════════════════════════════ */
.fix-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.fix-card--done { border-left-color: var(--success); opacity: 0.8; }
.fix-card--error { border-left-color: var(--warning); }
.fix-card--loading { border-left-color: var(--primary); }

.fix-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fix-card__title {
  font-size: 14px;
  font-weight: 600;
}

.fix-card__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.fix-card__badge--auto { background: rgba(0,201,167,0.15); color: var(--primary); }
.fix-card__badge--ai { background: rgba(132,94,247,0.15); color: var(--accent); }
.fix-card__badge--manual { background: rgba(255,179,71,0.15); color: var(--caution); }
.fix-card__badge--done { background: rgba(81,207,102,0.15); color: var(--success); }

.fix-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.fix-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fix-card__input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 8px;
  resize: vertical;
  min-height: 60px;
}

.fix-card__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,201,167,0.2);
}

.fix-card__result {
  font-size: 12px;
  padding: 10px 12px;
  background: rgba(81,207,102,0.06);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--success);
  color: var(--text-primary);
  line-height: 1.5;
  margin-top: 8px;
}

.fix-card__ai-response {
  font-size: 12px;
  padding: 10px 12px;
  background: rgba(132,94,247,0.06);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 8px;
  white-space: pre-wrap;
}

.fix-summary {
  text-align: center;
  padding: 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.fix-summary__count {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.fix-summary__label {
  font-size: 12px;
  color: var(--text-secondary);
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ═══════════════════════════════════════
   AUTH UI
   ═══════════════════════════════════════ */
.btn-auth-login {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  background: linear-gradient(135deg, #004B87, #0060A8);
  color: #fff; border: 1px solid #F2A900;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.btn-auth-login:hover {
  background: linear-gradient(135deg, #F2A900, #FFBE2E);
  color: #04101E;
}

.auth-user {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: var(--transition); position: relative;
}
.auth-user:hover { background: rgba(255,255,255,0.06); }

.auth-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 2px solid #F2A900;
}
.auth-avatar--initial {
  display: flex; align-items: center; justify-content: center;
  background: #004B87; color: #F2A900;
  font-weight: 700; font-size: 13px;
}
.auth-name {
  font-size: 12px; color: var(--text-secondary);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.auth-credits {
  background: #004B87; color: #F2A900;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  min-width: 20px; text-align: center;
}

.auth-dropdown {
  position: absolute; top: 100%; right: 0;
  background: var(--bg-elevated); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px; min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 100; margin-top: 4px;
}
.auth-dropdown__email {
  font-size: 12px; color: var(--text-secondary);
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}
.auth-dropdown__credits {
  font-size: 13px; color: var(--text-primary);
  padding-bottom: 8px; margin-bottom: 8px;
}
.auth-dropdown__btn {
  width: 100%; padding: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary); border-radius: 6px;
  cursor: pointer; font-size: 12px; transition: var(--transition);
}
.auth-dropdown__btn:hover { background: rgba(255,75,75,0.15); color: #FF6B6B; }

/* ── Login Modal ── */
.login-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.login-modal.active { opacity: 1; pointer-events: all; }

.login-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 16, 30, 0.85);
  backdrop-filter: blur(8px);
}

.login-modal__card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid rgba(242, 169, 0, 0.2);
  border-radius: 16px;
  padding: 32px;
  width: 100%; max-width: 400px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5), 0 0 40px rgba(242,169,0,0.05);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.login-modal.active .login-modal__card { transform: translateY(0); }

.login-modal__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-secondary);
  font-size: 24px; cursor: pointer; padding: 4px;
  transition: var(--transition);
}
.login-modal__close:hover { color: #FF6B6B; }

.login-modal__header {
  text-align: center; margin-bottom: 24px;
}
.login-modal__header h2 {
  font-family: var(--font-heading);
  font-size: 22px; color: var(--text-primary);
  margin: 12px 0 4px;
}
.login-modal__header p {
  font-size: 13px; color: var(--text-secondary);
}

.login-modal__google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: 10px;
  background: #fff; color: #333;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
}
.login-modal__google:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.login-modal__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted); font-size: 12px;
}
.login-modal__divider::before,
.login-modal__divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.06);
}

.login-modal__form { display: flex; flex-direction: column; gap: 10px; }

.login-modal__form input {
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  font-size: 14px; outline: none;
  transition: var(--transition);
}
.login-modal__form input:focus {
  border-color: #F2A900;
  box-shadow: 0 0 0 3px rgba(242,169,0,0.1);
}
.login-modal__form input::placeholder { color: var(--text-muted); }

.login-modal__submit {
  padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, #004B87, #0060A8);
  color: #fff; font-weight: 600; font-size: 14px;
  border: 2px solid #F2A900;
  cursor: pointer; transition: var(--transition);
}
.login-modal__submit:hover {
  background: linear-gradient(135deg, #F2A900, #FFBE2E);
  color: #04101E;
}

.login-modal__toggle {
  text-align: center; margin-top: 16px;
  font-size: 13px; color: var(--text-secondary);
}
.login-modal__link {
  background: none; border: none;
  color: #F2A900; font-weight: 600;
  cursor: pointer; font-size: 13px;
  text-decoration: underline;
}
.login-modal__link:hover { color: #FFD040; }

.login-modal__error {
  margin-top: 12px; padding: 10px;
  background: rgba(255,75,75,0.1); border: 1px solid rgba(255,75,75,0.2);
  border-radius: 8px; color: #FF6B6B;
  font-size: 12px; text-align: center;
}
