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

/* ══════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════ */
:root {
  --primary: #1d4ed8;
  --primary-mid: #2563eb;
  --primary-light: #eff6ff;
  --primary-dark: #1e40af;
  --accent: #0ea5e9;

  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --surface-3: #e2e8f2;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  --font: 'Inter', system-ui, sans-serif;

  --header-height: 60px;
  --nav-height: 70px;

  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}

[data-theme="dark"] {
  --surface: #0f172a;
  --surface-2: #060c1a;
  --surface-3: #1e293b;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border: #1e293b;
  --border-light: #334155;

  --primary-light: rgba(37,99,235,0.18);
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface-2);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition-slow), color var(--transition-slow);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(140deg, #03071e 0%, #1a2744 35%, #0e1b38 60%, #031d35 100%);
  z-index: -1;
}
[data-theme="dark"] body::before {
  background: linear-gradient(140deg, #000408 0%, #060d1e 50%, #020b14 100%);
}

/* ══════════════════════════════════════════════════════
   APP FRAME
══════════════════════════════════════════════════════ */
.app-frame {
  width: 100%;
  max-width: 430px;
  height: 880px;
  margin: 40px auto;
  background: var(--surface);
  position: relative;
  overflow: clip;
  border-radius: 44px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    0 0 0 10px rgba(255,255,255,0.03),
    0 40px 100px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
}



/* ══════════════════════════════════════════════════════
   STATUS BAR
══════════════════════════════════════════════════════ */
.status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
}
.status-bar .time { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.status-bar .icons { display: flex; gap: 6px; align-items: center; }
.notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 32px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 201;
}

/* ══════════════════════════════════════════════════════
   APP HEADER
══════════════════════════════════════════════════════ */
.app-header {
  flex-shrink: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 100;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary-mid); }
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.header-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.icon-btn:active { transform: scale(0.92); }

.notif-badge {
  position: absolute;
  top: -3px; right: -3px;
  width: 16px; height: 16px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--surface);
  font-size: 8px;
  font-weight: 700;
  color: white;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════
   SCREEN SYSTEM
══════════════════════════════════════════════════════ */
.screen { display: none; }
.screen.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  animation: screenFadeIn 0.25s ease;
}
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   PAGE CONTENT
══════════════════════════════════════════════════════ */
.page-content {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--surface-2);
  transition: background var(--transition-slow);
}
.page-content::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════════════════════ */
.bottom-nav {
  flex-shrink: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 100;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
  padding: 8px 0;
}
.nav-item.active { color: var(--primary-mid); }

.nav-icon {
  width: 36px; height: 28px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background var(--transition), transform var(--transition);
}
.nav-item.active .nav-icon {
  background: var(--primary-light);
  transform: translateY(-1px);
}
.nav-item:active .nav-icon { transform: scale(0.9); }

.nav-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.2px; }

/* ══════════════════════════════════════════════════════
   SECTIONS & CARDS
══════════════════════════════════════════════════════ */
.section { padding: 16px 16px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.see-all { font-size: 12px; font-weight: 600; color: var(--primary-mid); background: none; border: none; cursor: pointer; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════
   HERO BANNER (Home)
══════════════════════════════════════════════════════ */
.hero-banner {
  background: linear-gradient(145deg, #0a1628 0%, #1a3a6e 50%, #0d2146 100%);
  padding: 28px 20px 24px;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(37,99,235,0.3) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(14,165,233,0.2) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #bfdbfe;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.hero-title {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 12.5px;
  color: #93c5fd;
  line-height: 1.55;
  margin-bottom: 18px;
}
.hero-actions { display: flex; gap: 10px; }
.hero-ships {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 52px;
  opacity: 0.18;
  transform: scaleX(-1);
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.1px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary-mid); color: white; box-shadow: 0 4px 14px rgba(37,99,235,0.4); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-white { background: white; color: #1d4ed8; font-weight: 700; }
.btn-white:hover { background: #f0f8ff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { background: var(--surface-3); }
.btn-block { width: 100%; display: flex; }

/* ══════════════════════════════════════════════════════
   STATS ROW
══════════════════════════════════════════════════════ */
.stats-row {
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
}
.stat-item { flex: 1; text-align: center; }
.stat-num { font-size: 18px; font-weight: 800; color: var(--primary-mid); letter-spacing: -0.5px; }
.stat-num span { font-size: 11px; font-weight: 600; }
.stat-lbl { font-size: 10px; color: var(--text-muted); font-weight: 500; margin-top: 1px; }
.stat-divider { width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   SERVICE GRID (Home)
══════════════════════════════════════════════════════ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.service-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-tile:active { transform: scale(0.95); box-shadow: none; }
.service-tile-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 8px;
}
.service-tile-name { font-size: 10.5px; font-weight: 600; color: var(--text-secondary); line-height: 1.3; }

/* ══════════════════════════════════════════════════════
   TRACK CARD
══════════════════════════════════════════════════════ */
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.track-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.track-card-icon { font-size: 24px; }
.track-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.track-card-sub { font-size: 11px; color: var(--text-muted); }
.track-input-row { display: flex; gap: 8px; }
.track-input {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 12.5px;
  padding: 0 12px;
  outline: none;
  transition: border-color var(--transition);
}
.track-input:focus { border-color: var(--primary-mid); }
.track-btn { padding: 10px 16px; font-size: 13px; }

/* ══════════════════════════════════════════════════════
   FEATURE LIST
══════════════════════════════════════════════════════ */
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 38px; height: 38px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.feature-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.feature-desc { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* ══════════════════════════════════════════════════════
   NEWS CARDS
══════════════════════════════════════════════════════ */
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.news-card:active { transform: scale(0.98); }
.news-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary-mid);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}
.news-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.news-date { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   INNER HERO (Services, About, Contact)
══════════════════════════════════════════════════════ */
.inner-hero {
  padding: 30px 20px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.inner-hero-icon { font-size: 38px; margin-bottom: 8px; position: relative; }
.inner-hero-title { font-size: 20px; font-weight: 800; color: white; margin-bottom: 6px; position: relative; }
.inner-hero-sub { font-size: 12px; color: rgba(255,255,255,0.75); position: relative; }

/* ══════════════════════════════════════════════════════
   SERVICE CARDS (Services screen)
══════════════════════════════════════════════════════ */
.service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.service-card:active { transform: scale(0.98); box-shadow: none; }
.svc-card-left {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.svc-card-body { flex: 1; min-width: 0; }
.svc-card-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.svc-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.45; margin-bottom: 6px; }
.svc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag {
  font-size: 9.5px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--text-secondary);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.svc-arrow { font-size: 22px; color: var(--text-muted); flex-shrink: 0; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  margin: 0 16px 0;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}
.cta-title { font-size: 17px; font-weight: 800; color: white; margin-bottom: 6px; }
.cta-sub { font-size: 12px; color: #bfdbfe; margin-bottom: 16px; }

/* ══════════════════════════════════════════════════════
   ABOUT SCREEN
══════════════════════════════════════════════════════ */
.about-intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
}
.about-intro-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.value-icon { font-size: 26px; margin-bottom: 6px; }
.value-title { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.value-desc { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-mid), var(--primary-light));
}
.timeline-item {
  position: relative;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.timeline-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--surface-2);
  flex-shrink: 0;
  margin-left: -26px;
  margin-top: 3px;
  z-index: 1;
  transition: all var(--transition);
}
.timeline-item.active .timeline-dot {
  background: var(--primary-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.timeline-year { font-size: 12px; font-weight: 800; color: var(--primary-mid); margin-bottom: 2px; }
.timeline-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

/* Accreditations */
.accred-row { display: flex; flex-wrap: wrap; gap: 8px; }
.accred-badge {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════════════
   CONTACT SCREEN
══════════════════════════════════════════════════════ */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-label { font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.contact-info-value { font-size: 12.5px; color: var(--text-primary); font-weight: 500; }

.quick-contact-row { display: flex; gap: 8px; margin: 14px 0; }
.quick-contact-btn {
  flex: 1;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 6px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--transition);
}
.quick-contact-btn:active { transform: scale(0.95); }

/* ══════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 0 13px;
  outline: none;
  transition: all var(--transition);
  appearance: none;
}
.form-input:focus { border-color: var(--primary-mid); background: var(--surface); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-textarea {
  height: 90px;
  padding: 11px 13px;
  resize: none;
}

/* ══════════════════════════════════════════════════════
   LOGIN SCREEN
══════════════════════════════════════════════════════ */
.login-page {
  padding: 30px 20px 20px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-logo-area {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  margin: 0 auto 10px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.login-logo-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.8px;
}
.login-logo-name span { color: var(--primary-mid); }
.login-logo-sub { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.login-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
}
.login-title { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.login-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

.login-remember-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.remember-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.forgot-link {
  font-size: 12px; font-weight: 600;
  color: var(--primary-mid);
  background: none; border: none;
  cursor: pointer;
}

.pwd-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  color: var(--text-muted);
  padding: 4px;
}

.login-divider {
  text-align: center;
  margin: 14px 0;
  position: relative;
}
.login-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px; background: var(--border);
}
.login-divider span {
  position: relative;
  background: var(--surface);
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.login-help {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}

/* ══════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════ */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dash-welcome { display: flex; align-items: center; gap: 10px; }
.dash-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: white;
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.dash-id { font-size: 11px; color: var(--text-muted); }

.dash-summary-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.dash-sum-card {
  flex: 1;
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.dash-sum-num { font-size: 16px; font-weight: 800; color: white; letter-spacing: -0.5px; }
.dash-sum-lbl { font-size: 9px; color: rgba(255,255,255,0.8); font-weight: 500; margin-top: 2px; line-height: 1.2; }

/* Dash Tabs */
.dash-tabs-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-tabs { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  flex-shrink: 0;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font);
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.dash-tab.active {
  color: var(--primary-mid);
  border-bottom-color: var(--primary-mid);
}

.dash-tab-content { display: none; }
.dash-tab-content.active { display: block; }

/* ══════════════════════════════════════════════════════
   SHIPMENT CARDS
══════════════════════════════════════════════════════ */
.shipment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.shipment-card:active { transform: scale(0.98); }
.shipment-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.shipment-id { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.shipment-route { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Status Badges */
.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.status-inprogress { background: #dbeafe; color: #1d4ed8; }
.status-customs    { background: #fef3c7; color: #92400e; }
.status-delivered  { background: #dcfce7; color: #14532d; }
.status-pending    { background: #fce7f3; color: #9d174d; }

/* Progress Steps */
.shipment-progress-wrap { margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.shipment-progress-wrap::-webkit-scrollbar { display: none; }
.progress-steps {
  display: flex;
  align-items: center;
  min-width: max-content;
}
.pstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 16px;
  flex-shrink: 0;
}
.pstep span {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.pstep.done > span { color: var(--primary-mid); }
.pstep.active > span { color: var(--primary-mid); font-weight: 700; }
.pline {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 24px;
  transition: background var(--transition);
}
.pline.done { background: var(--primary-mid); }

.shipment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   DOCUMENTS
══════════════════════════════════════════════════════ */
.doc-filter-row { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.doc-filter-row::-webkit-scrollbar { display: none; }
.doc-filter {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.doc-filter.active {
  background: var(--primary-mid);
  border-color: var(--primary-mid);
  color: white;
}

.document-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 13px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.doc-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.doc-body { flex: 1; min-width: 0; }
.doc-name { font-size: 12px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

.doc-status {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.doc-approved  { background: #dcfce7; color: #14532d; }
.doc-pending   { background: #fef9c3; color: #713f12; }
.doc-required  { background: #fee2e2; color: #7f1d1d; }

/* ══════════════════════════════════════════════════════
   INVOICES
══════════════════════════════════════════════════════ */
.invoice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.inv-due-card { border-color: rgba(220,38,38,0.3); }
.invoice-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.invoice-id { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.invoice-ref { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.invoice-amount { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; margin-bottom: 6px; }
.invoice-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }

.invoice-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.inv-paid  { background: #dcfce7; color: #14532d; }
.inv-due   { background: #fee2e2; color: #7f1d1d; }
.inv-draft { background: var(--surface-3); color: var(--text-muted); }

.invoice-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 4px;
  box-shadow: var(--shadow-sm);
}
.inv-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-secondary); padding: 4px 0; }
.inv-sum-green { color: var(--success); font-weight: 700; }
.inv-sum-red   { color: var(--danger); font-weight: 700; }
.inv-sum-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ══════════════════════════════════════════════════════
   MESSAGES / CHAT
══════════════════════════════════════════════════════ */
.agent-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}
[data-theme="dark"] .agent-info-card {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.25);
}
.agent-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: white;
  font-size: 14px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.agent-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.agent-title { font-size: 11px; color: var(--text-muted); }
.agent-avail { font-size: 10.5px; color: var(--success); font-weight: 600; margin-top: 2px; }

.message-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg-item { display: flex; flex-direction: column; }
.msg-agent { align-items: flex-start; }
.msg-client { align-items: flex-end; }
.msg-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.5;
}
.msg-agent .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}
.msg-client .msg-bubble {
  background: var(--primary-mid);
  color: white;
  border-top-right-radius: 4px;
}
.msg-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; padding: 0 2px; }

.message-input-row { display: flex; align-items: center; }

/* ══════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════ */
.toast {
  position: absolute;
  bottom: calc(var(--nav-height) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0f172a;
  color: white;
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-theme="dark"] .toast { background: #f1f5f9; color: #0f172a; }

/* ══════════════════════════════════════════════════════
   MODAL / BOTTOM SHEET
══════════════════════════════════════════════════════ */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-sheet {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 12px 20px 30px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85%;
  overflow-y: auto;
  scrollbar-width: none;
}
.modal-sheet::-webkit-scrollbar { display: none; }
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

/* Modal content styles */
.modal-svc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.modal-svc-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.modal-svc-title { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.modal-svc-subtitle { font-size: 12px; color: var(--text-muted); }
.modal-svc-body { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 14px; }
.modal-svc-features { list-style: none; }
.modal-svc-features li {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
}
.modal-svc-features li:last-child { border: none; }

/* ══════════════════════════════════════════════════════
   FLOATING AI NAV BUTTON
══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   FLOATING AI BUTTON (FAB) – bottom-right above nav
══════════════════════════════════════════════════════ */

/* Container: sits just above the nav bar on the right */
.fab-ai-wrap {
  position: absolute;
  bottom: calc(var(--nav-height) + 14px);
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 200;
  pointer-events: none; /* only the button itself is clickable */
}

/* "Ask Clara" label above the button */
.fab-ai-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #5b21b6, #2563eb);
  color: white;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(91,33,182,0.4);
  animation: fabLabelPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes fabLabelPop {
  from { opacity:0; transform: translateY(4px) scale(0.85); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* The button itself */
.fab-ai-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #2563eb, #0ea5e9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  box-shadow:
    0 4px 16px rgba(91,33,182,0.55),
    0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
  animation: fabFloat 3s ease-in-out infinite;
}
.fab-ai-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(91,33,182,0.65), 0 2px 8px rgba(0,0,0,0.3);
}
.fab-ai-btn:active { transform: scale(0.93); }
.fab-ai-btn.ai-active {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.4), 0 6px 20px rgba(91,33,182,0.6);
}

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

/* Expanding glow ring */
.fab-ai-glow {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(139,92,246,0.55);
  animation: fabGlowRing 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fabGlowRing {
  0%, 100% { transform: scale(1);    opacity: 0.7; }
  50%       { transform: scale(1.22); opacity: 0; }
}

/* Live green pulse dot */
.fab-ai-pulse {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid white;
  animation: fabPulseDot 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fabPulseDot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.35); opacity: 0.7; }
}

/* ══════════════════════════════════════════════════════
   AI CHAT SCREEN
══════════════════════════════════════════════════════ */

.ai-chat-page {
  display: flex;
  flex-direction: column;
  background: var(--surface-2) !important;
}

/* AI Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ai-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.ai-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #2563eb, #0ea5e9);
  padding: 2.5px;
  animation: aiRingRotate 4s linear infinite;
}
@keyframes aiRingRotate {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

.ai-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c1d95, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--surface);
  animation: aiPulseDot 1.5s ease-in-out infinite;
}

.ai-header-info { flex: 1; }
.ai-header-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ai-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: white;
  letter-spacing: 0.5px;
}
.ai-header-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.ai-clear-btn {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.ai-clear-btn:hover { background: #fee2e2; border-color: #fca5a5; }
.ai-clear-btn:active { transform: scale(0.95); }

/* AI Messages Area */
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 10px;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-messages::-webkit-scrollbar { display: none; }

/* Bot message */
.ai-msg {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  animation: msgSlideIn 0.3s ease;
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-msg-bot { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end; }

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-msg-body { display: flex; flex-direction: column; gap: 3px; max-width: 82%; }
.ai-msg-user .ai-msg-body { align-items: flex-end; }

.ai-msg-bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-primary);
}
.ai-msg-bot .ai-msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.ai-msg-user .ai-msg-bubble {
  background: linear-gradient(135deg, #5b21b6, #2563eb);
  color: white;
  border-top-right-radius: 4px;
}

.ai-msg-time {
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* Typing Indicator */
.ai-typing {
  display: flex;
  align-items: center;
  gap: 9px;
  animation: msgSlideIn 0.3s ease;
}
.ai-typing-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  border-top-left-radius: 4px;
  padding: 12px 16px;
  display: flex;
  gap: 5px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.ai-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* Suggested Questions */
.ai-suggestions { margin-top: 2px; }
.ai-sugg-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 9px;
  padding-left: 2px;
}
.ai-sugg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.ai-sugg-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  line-height: 1.35;
  box-shadow: var(--shadow-sm);
}
.ai-sugg-btn:hover {
  border-color: #7c3aed;
  color: #5b21b6;
  background: #f5f3ff;
}
.ai-sugg-btn:active { transform: scale(0.96); }
[data-theme="dark"] .ai-sugg-btn:hover {
  background: rgba(124,58,237,0.12);
  color: #a78bfa;
  border-color: rgba(124,58,237,0.4);
}

/* AI Quick-reply chips after bot answer */
.ai-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ai-followup-chip {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.06);
  color: #5b21b6;
  cursor: pointer;
  transition: all var(--transition);
}
.ai-followup-chip:active { transform: scale(0.95); }
[data-theme="dark"] .ai-followup-chip {
  color: #a78bfa;
  border-color: rgba(167,139,250,0.3);
  background: rgba(124,58,237,0.1);
}

/* AI Input Bar */
.ai-input-bar {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.ai-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 14px;
  gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ai-input-wrap:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.ai-input {
  flex: 1;
  height: 36px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
}
.ai-input::placeholder { color: var(--text-muted); }
.ai-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #2563eb);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(91,33,182,0.4);
}
.ai-send-btn:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(91,33,182,0.5); }
.ai-send-btn:active { transform: scale(0.95); }

.ai-disclaimer {
  font-size: 9.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 7px;
  letter-spacing: 0.1px;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE: Full screen on mobile
══════════════════════════════════════════════════════ */
@media (max-width: 500px) {
  .app-frame {
    max-width: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body::before { display: none; }
}
