/* ══════════════════════════════════════════════
   CIPHER — Ghost Transport
   Private Client Portal — Stylesheet
   ══════════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* ── Variables ──────────────────────────────── */
:root {
  --bg:         #0a0a0a;
  --card:       #161616;
  --card-hover: #1e1e1e;
  --border:     #2a2a2a;
  --gold:       #c9a96e;
  --gold-dim:   #8a6e3e;
  --gold-glow:  rgba(201, 169, 110, 0.15);
  --platinum:   #e8e8e8;
  --muted:      #888888;
  --error:      #c0392b;
  --success:    #27ae60;

  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;

  --radius:     4px;
  --radius-lg:  8px;
  --transition: 220ms ease;
  --shadow:     0 4px 24px rgba(0,0,0,0.6);
  --glow:       0 0 40px rgba(201,169,110,0.08);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--platinum);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100%;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── App Shell ──────────────────────────────── */
#app {
  position: relative;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
}

/* ── Screen System ──────────────────────────── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
}

.screen.active {
  display: flex;
}

.screen.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════
   SCREEN 1 — LOGIN / VAULT
   ════════════════════════════════════════════ */
#screen-login {
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  padding-top: calc(40px + var(--safe-top));
  padding-bottom: calc(60px + var(--safe-bottom));
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Ambient background effect */
#screen-login::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.login-wrap {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

/* Logo */
.cipher-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 80px;
  height: 80px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.05) 0%, transparent 70%);
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.2);
}

.logo-mark span {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--platinum);
  letter-spacing: 8px;
  text-transform: uppercase;
}

.logo-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Vault / PIN input */
.vault-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.vault-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}

.pin-display {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.pin-dot {
  width: 40px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  background: var(--card);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  letter-spacing: 0;
}

.pin-dot.filled {
  border-color: var(--gold-dim);
  background: rgba(201,169,110,0.05);
  box-shadow: 0 0 12px rgba(201,169,110,0.1);
}

.pin-dot.active {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,169,110,0.2);
}

.pin-dot.error {
  border-color: var(--error);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Keypad */
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 240px;
}

.key {
  height: 58px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--platinum);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 80ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.key:active {
  background: var(--card-hover);
  border-color: var(--gold-dim);
  transform: scale(0.96);
}

.key.key-clear {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.key.key-del {
  font-size: 20px;
  color: var(--muted);
}

.key.key-enter {
  grid-column: span 3;
  background: rgba(201,169,110,0.08);
  border-color: var(--gold-dim);
  color: var(--gold);
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  height: 50px;
  margin-top: 4px;
}

.key.key-enter:active {
  background: rgba(201,169,110,0.15);
}

/* Login footer */
.login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.login-footer p {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.login-footer a {
  color: var(--gold-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.login-footer a:hover { color: var(--gold); }

/* Error message */
.login-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--error);
  letter-spacing: 1px;
  text-align: center;
  min-height: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.login-error.visible { opacity: 1; }


/* ════════════════════════════════════════════
   APP CHROME — Header & Nav
   ════════════════════════════════════════════ */
.app-header {
  padding: 0 20px;
  padding-top: calc(16px + var(--safe-top));
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.header-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.header-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--platinum);
  letter-spacing: 4px;
  text-transform: uppercase;
}

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

.btn-icon {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  font-size: 18px;
}

.btn-icon:hover {
  color: var(--gold);
  background: var(--gold-glow);
}

/* Bottom nav */
.app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: var(--safe-bottom);
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
  z-index: 100;
}

.app-nav.visible {
  display: block;
}

.nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  padding: 0 8px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--transition);
  text-decoration: none;
}

.nav-item.active {
  color: var(--gold);
}

.nav-item:hover {
  color: var(--gold);
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
}

.nav-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* ════════════════════════════════════════════
   AUTHENTICATED SCREENS — Common
   ════════════════════════════════════════════ */
.screen-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  padding-bottom: calc(80px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

/* Section headings */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
}

.card-accent {
  border-left: 2px solid var(--gold-dim);
}

/* Dividers */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Gold text */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-platinum { color: var(--platinum); }


/* ════════════════════════════════════════════
   SCREEN 2 — DASHBOARD
   ════════════════════════════════════════════ */
.dashboard-hero {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.greeting-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.greeting-name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 500;
  color: var(--platinum);
  margin-bottom: 16px;
}

/* Membership badge */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  background: rgba(201,169,110,0.05);
}

.tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* CTA button */
.btn-primary {
  width: 100%;
  padding: 18px 24px;
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform 80ms ease, box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary:active {
  background: #b8945a;
  transform: scale(0.99);
}

.btn-primary:hover {
  background: #d4b87a;
  box-shadow: 0 8px 32px rgba(201,169,110,0.25);
}

.btn-secondary {
  width: 100%;
  padding: 14px 24px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold-dim);
  background: var(--gold-glow);
  color: var(--gold);
}

/* Quick actions grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 80ms ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-card:hover {
  border-color: var(--gold-dim);
  background: var(--card-hover);
}

.quick-card:active {
  transform: scale(0.97);
}

.quick-icon {
  font-size: 22px;
  line-height: 1;
}

.quick-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--platinum);
  line-height: 1.3;
}

.quick-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Recent bookings */
.booking-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.booking-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.booking-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,169,110,0.08);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.booking-info {
  flex: 1;
  min-width: 0;
}

.booking-service {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--platinum);
  margin-bottom: 2px;
}

.booking-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.status-completed {
  background: rgba(39, 174, 96, 0.1);
  color: #4caf7d;
}

.status-upcoming {
  background: rgba(201,169,110,0.1);
  color: var(--gold);
}

.status-pending {
  background: rgba(136,136,136,0.1);
  color: var(--muted);
}


/* ════════════════════════════════════════════
   SCREEN 3 — BOOK A RIDE
   ════════════════════════════════════════════ */
.screen-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 500;
  color: var(--platinum);
  margin-bottom: 4px;
}

.screen-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  font-weight: 300;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: #1a1a1a;
  color: var(--platinum);
}

.form-textarea {
  resize: none;
  min-height: 100px;
  line-height: 1.5;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

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

input[type="date"],
input[type="time"] {
  color-scheme: dark;
}

/* Service selector cards */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 4px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card:hover {
  border-color: var(--gold-dim);
}

.service-card.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.05);
}

.service-card-icon {
  font-size: 20px;
}

.service-card-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--platinum);
  line-height: 1.3;
}

.service-card-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

/* Confirmation screen */
.confirm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  text-align: center;
  gap: 20px;
  min-height: 60vh;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201,169,110,0.1);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.confirm-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  color: var(--platinum);
}

.confirm-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  line-height: 1.7;
}

.confirm-ref {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  background: rgba(201,169,110,0.06);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 10px 20px;
}


/* ════════════════════════════════════════════
   SCREEN 4 — ACCOUNT
   ════════════════════════════════════════════ */
.account-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.account-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(201,169,110,0.08);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.account-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  color: var(--platinum);
  margin-bottom: 6px;
}

/* Account stat rows */
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.stat-value {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--platinum);
  text-align: right;
}

.stat-value.gold {
  color: var(--gold);
}

/* Tier cards */
.tier-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}

.tier-card.active-tier {
  border-color: var(--gold-dim);
  background: rgba(201,169,110,0.03);
}

.tier-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tier-card-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--platinum);
}

.tier-card-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.tier-card-perks {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.active-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--gold-dim);
  border-radius: 100px;
  background: rgba(201,169,110,0.06);
}

/* NDA status */
.nda-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #4caf7d;
}

.nda-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf7d;
}

/* Signout */
.btn-ghost {
  width: 100%;
  padding: 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.btn-ghost:hover {
  border-color: var(--error);
  color: var(--error);
}


/* ════════════════════════════════════════════
   SCREEN 5 — CONTACT / MESSAGE
   ════════════════════════════════════════════ */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition);
}

.contact-item:last-child { border-bottom: none; }
.contact-item:hover { opacity: 0.75; }

.contact-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--platinum);
  margin-bottom: 2px;
}

.contact-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* Message sent confirmation */
.msg-confirm {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39,174,96,0.2);
  border-radius: var(--radius);
  margin-top: 12px;
}

.msg-confirm.visible { display: flex; }

.msg-confirm span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #4caf7d;
  letter-spacing: 1px;
}


/* ════════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════════ */
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.hidden { display: none !important; }

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 400ms ease;
}

.loading-overlay.fade {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* iOS standalone fixes */
@media (display-mode: standalone) {
  .app-header {
    padding-top: calc(20px + var(--safe-top));
  }
}

/* ── Responsive tweaks ──────────────────────── */
@media (max-width: 360px) {
  .pin-dot { width: 36px; height: 44px; }
  .keypad { width: 216px; gap: 8px; }
  .key { height: 52px; }
}

@media (min-width: 600px) {
  .screen-content {
    max-width: 480px;
    margin: 0 auto;
  }
  .app-header {
    max-width: 480px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
  }
  .app-nav .nav-items {
    max-width: 480px;
    margin: 0 auto;
  }
}
