/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --green:        #2bb5c8;
  --green-light:  #3ecfe3;
  --green-dark:   #1e8fa0;
  --green-glow:   rgba(43, 181, 200, 0.18);
  --green-border: rgba(43, 181, 200, 0.30);

  --bg:        #1a2d4a;
  --surface:   #1f3556;
  --surface-2: #243d62;
  --surface-3: #2a456e;
  --border:    rgba(255, 255, 255, 0.10);

  --text:   #e8eaf0;
  --text-2: #8b8fa8;
  --text-3: #4e5268;

  --danger:  #e05252;
  --success: #2bb5c8;

  --nav-h:    64px;
  --header-h: 56px;
  --safe-b:   env(safe-area-inset-bottom, 0px);

  --r:    12px;
  --r-sm: 8px;
  --r-lg: 20px;

  --shadow:    0 2px 8px rgba(0,0,0,.40);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.55);
  --trans: .18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
img  { display: block; max-width: 100%; }

.hidden { display: none !important; }

/* ============================================================
   SCREENS
   ============================================================ */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-bg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%,
      rgba(26,158,117,.14) 0%,
      transparent 70%);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 20px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  width: 100%;
  margin-bottom: 6px;
}

.logo-icon { width: 48px; height: 48px; flex-shrink: 0; }
.logo-icon-sm { width: 28px; height: 28px; flex-shrink: 0; }

.logo-img    { height: 70px; width: auto; object-fit: contain; }
.logo-img-sm { height: 30px; width: auto; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; }

.logo-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--text);
}

.logo-sub {
  font-size: 10px;
  color: var(--text-2);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
}

.login-heading {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.login-desc {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.55;
}

#google-btn-container {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.demo-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--text-3);
  font-size: 12px;
}
.demo-divider::before,
.demo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: #2bb5c8;
  border: none;
  border-radius: var(--r-sm);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
  box-shadow: 0 4px 20px rgba(26,158,117,.45);
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  margin-top: 8px;
}
.btn-demo:hover {
  background: #159068;
  box-shadow: 0 6px 28px rgba(26,158,117,.55);
}
.btn-demo:active {
  transform: scale(.97);
  box-shadow: 0 2px 10px rgba(26,158,117,.35);
}

.demo-badge {
  display: inline-block;
  background: rgba(232,164,69,.15);
  border: 1px solid rgba(232,164,69,.30);
  color: #e8a445;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(224,82,82,.10);
  border: 1px solid rgba(224,82,82,.30);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.4;
  width: 100%;
  margin-top: 2px;
}

.auth-error svg { flex-shrink: 0; margin-top: 1px; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: rgba(255,255,255,.35);
  font-size: 12px;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.15);
}

.email-login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}
.email-login-form input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}
.email-login-form input::placeholder { color: rgba(255,255,255,.4); }
.email-login-form input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); }
.email-login-form button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: opacity .15s;
}
.email-login-form button:hover { opacity: .88; }
.email-login-form button:disabled { opacity: .5; cursor: default; }

/* ============================================================
   APP LAYOUT
   ============================================================ */
#app-screen {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* Header */
.app-header {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 5;
}

.header-logo { display: flex; align-items: center; gap: 10px; }

.header-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.8px;
}

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

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--green);
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 6px;
  border-radius: 6px;
  color: var(--text-3);
  transition: color var(--trans), background var(--trans);
}
.btn-logout:hover, .btn-logout:active {
  color: var(--danger);
  background: rgba(224,82,82,.10);
}

/* Main scroll area */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  animation: sectionIn .22s ease;
}

.form-launch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.form-launch-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.form-launch-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

.btn-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #2bb5c8;
  border: none;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 700;
  color: #1a2d4a;
  box-shadow: 0 4px 18px rgba(43,181,200,.40);
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  margin-top: 8px;
}
.btn-launch:hover  { background: #3ecfe3; box-shadow: 0 6px 24px rgba(43,181,200,.55); }
.btn-launch:active { transform: scale(.97); box-shadow: 0 2px 10px rgba(43,181,200,.30); }

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-h) - var(--nav-h) - 40px);
  padding: 24px;
}

.section-header {
  padding: 24px 20px 16px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-2);
}

/* ============================================================
   iGEO SECTION
   ============================================================ */
.igeo-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--green-border);
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(26,158,117,.06),
    0 8px 40px rgba(0,0,0,.4),
    0 0 60px rgba(26,158,117,.07);
}

.igeo-icon { padding: 4px 0 8px; }

.igeo-title {
  font-size: 22px;
  font-weight: 700;
}

.igeo-desc {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 4px 18px rgba(26,158,117,.32);
}
.btn-primary:hover {
  background: var(--green-light);
  box-shadow: 0 4px 24px rgba(26,158,117,.44);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(26,158,117,.25);
}

.btn-large {
  padding: 16px 28px;
  font-size: 16px;
  border-radius: var(--r);
  width: 100%;
  justify-content: center;
}

.btn-full { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-3);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.btn-secondary:hover, .btn-secondary:active {
  background: var(--surface-2);
  border-color: var(--green);
  color: var(--green-light);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--r-sm);
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--trans);
}
.btn-ghost:hover { color: var(--text); }

/* ============================================================
   PLANOS SECTION
   ============================================================ */
.upload-area {
  margin: 0 20px;
  border: 2px dashed var(--green-border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
  user-select: none;
}
.upload-area.drag-over {
  border-color: var(--green);
  background: rgba(26,158,117,.05);
}

.upload-text { font-size: 16px; font-weight: 500; color: var(--text); }
.upload-sub  { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }

.upload-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.planos-preview {
  margin: 14px 20px;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
}

.preview-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: var(--surface-2);
}

.preview-info { padding: 14px 16px 2px; }
.preview-filename { font-size: 13px; font-weight: 600; word-break: break-all; }
.preview-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; }

.preview-actions {
  padding: 12px 16px 16px;
  display: flex;
  gap: 10px;
}

/* ── Planos IA ── */
.form-label-opt {
  font-weight: 400;
  color: var(--text-2);
  font-size: 12px;
}

.plano-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(43,181,200,.18);
  border-top-color: #2bb5c8;
  border-radius: 50%;
  animation: planoSpin .85s linear infinite;
}
@keyframes planoSpin { to { transform: rotate(360deg); } }

.processing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 56px 32px;
  text-align: center;
}
.processing-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}
.processing-sub {
  font-size: 13px;
  color: var(--text-2);
}

.plano-result-wrap {
  margin: 0 20px 16px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.plano-result-img {
  display: block;
  width: 100%;
  height: auto;
}

.info-box {
  margin: 14px 20px;
  background: rgba(26,158,117,.07);
  border: 1px solid var(--green-border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.info-box svg { flex-shrink: 0; color: var(--green); margin-top: 1px; }
.info-box strong { color: var(--text); }

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  margin: 0 20px;
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.req { color: var(--green); font-weight: 700; }

.form-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  font-size: 15px;
  color: var(--text);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--trans), background var(--trans);
}
.form-input:focus {
  outline: none;
  border-color: var(--green);
  background: var(--surface-3);
}
.form-input::placeholder { color: var(--text-3); }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238b8fa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.form-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
  padding: 8px 12px;
  background: rgba(26,158,117,.06);
  border-radius: var(--r-sm);
}
.form-info-row svg { flex-shrink: 0; color: var(--green); }

.form-actions { padding-top: 2px; }

/* ============================================================
   MATERIAL LIST
   ============================================================ */
.recent-section { margin: 24px 20px 0; }

.recent-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.material-list { display: flex; flex-direction: column; gap: 8px; }

.material-item {
  background: var(--surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.material-info { flex: 1; min-width: 0; }
.material-name { font-size: 14px; font-weight: 600; color: var(--text); }
.material-detail { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.material-qty { font-size: 15px; font-weight: 700; color: var(--green); white-space: nowrap; }

.empty-state {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  padding: 20px;
}

/* ============================================================
   MATERIAL — total card & list header
   ============================================================ */
.mat-total-card {
  margin: 0 20px 20px;
  background: var(--surface);
  border: 1px solid var(--green-border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 24px rgba(43,181,200,.08);
}

.mat-total-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.mat-total-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -1px;
}

.mat-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 10px;
}

.mat-supervisor-bar {
  margin: 0 20px 16px;
  padding: 14px 16px;
  background: rgba(43,181,200,.07);
  border: 1px solid var(--green-border);
  border-radius: var(--r);
}

/* ============================================================
   PEDIDO DE MATERIAL
   ============================================================ */
.pedido-linea {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface-2);
}

.pedido-linea-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pedido-linea-top .pedido-sel { flex: 1; }

.pedido-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(224,82,82,.12);
  color: var(--danger);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.pedido-remove:hover { background: rgba(224,82,82,.22); }

.pedido-linea-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pedido-x { color: var(--text-3); font-size: 13px; }

.pedido-subtotal {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

.pedido-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
}

.pedido-total-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.pedido-estado-ok   { color: var(--green); font-weight: 600; font-size: 12px; }
.pedido-estado-pend { color: #e8a445;      font-weight: 600; font-size: 12px; }

/* ============================================================
   MATERIAL TABLE
   ============================================================ */
.mat-table-wrap {
  margin: 0 20px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mat-table thead th {
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mat-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background var(--trans);
}

.mat-table tbody tr:last-child { border-bottom: none; }

.mat-table tbody tr:hover { background: rgba(43,181,200,.05); }

.mat-table td {
  padding: 10px 12px;
  color: var(--text);
  vertical-align: middle;
}

.mat-table td:last-child { color: var(--green); font-weight: 600; text-align: right; }

.mat-table .td-fecha { color: var(--text-2); font-size: 12px; }

.mat-historial-panel {
  margin: 0 20px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.mat-historial-month {
  border-bottom: 1px solid var(--border);
}

.mat-historial-month:last-child { border-bottom: none; }

.mat-historial-header {
  padding: 12px 14px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mat-historial-header span:last-child { color: var(--green); }

.mat-historial-body { padding: 0; }

.mat-historial-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 13px;
}

.mat-historial-row:last-child { border-bottom: none; }

.mat-historial-name { color: var(--text); flex: 1; }

.mat-historial-qty { color: var(--text-2); font-size: 12px; margin: 0 12px; }

.mat-historial-total { color: var(--green); font-weight: 600; }

/* ============================================================
   TRABAJOS / STATS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 20px 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-value.green { color: var(--green); }
.stat-label { font-size: 12px; color: var(--text-2); text-align: center; }

.trabajos-list {
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-state-card {
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-h) + var(--safe-b));
  background: #0d1b2a;
  border-top: 1px solid rgba(43,181,200,0.2);
  display: flex;
  align-items: flex-start;
  padding-top: 7px;
  padding-bottom: var(--safe-b);
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  color: #8ab4c8;
  position: relative;
  transition: color var(--trans);
}

.nav-icon {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  transition: transform var(--trans);
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2px;
}

.nav-item.active { color: #2bb5c8; }
.nav-item.active .nav-icon { transform: translateY(-1px); }

.nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--green);
  border-radius: 0 0 3px 3px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-b) + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  border: 1px solid rgba(255,255,255,.1);
  max-width: calc(100vw - 48px);
  text-align: center;
  white-space: nowrap;
  animation: toastIn .22s ease;
}

.toast-success { background: rgba(26,158,117,.92); border-color: var(--green); }
.toast-error   { background: rgba(224,82,82,.92);  border-color: var(--danger); }

.toast-out { animation: toastOut .28s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
