/* ═══════════════════════════════════════════════════════════════
   MEDUSA REPTILE CO. — Customer Portal Stylesheet
   Inherits brand tokens from main site, adds portal-only layout.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c870;
  --gold-dim:    #7a6228;
  --bg:          #070808;
  --bg-card:     #101210;
  --bg-alt:      #0c0e0c;
  --bg-raised:   #161a16;
  --border:      #222820;
  --border-sub:  #1a1c1a;
  --text:        #ddd8cc;
  --text-muted:  #7a7870;
  --text-dim:    #4a4a44;
  --viper-blue:  #0047AB;
  --status-waiting:  #c47830;
  --status-process:  #c9a84c;
  --status-booking:  #5b8bd9;
  --status-flight:   #4ea3c9;
  --status-loaded:   #3fa058;
  --status-complete: #7a7870;
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Cinzel', Georgia, serif; letter-spacing: 0.06em; line-height: 1.2; }

/* ── Auth screens (login/signup) ───────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(201,168,76,0.06), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(0,71,171,0.05), transparent 60%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo img { height: 64px; margin: 0 auto; filter: drop-shadow(0 4px 16px rgba(201,168,76,0.2)); }
.auth-logo .auth-brand {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 0.6rem;
  text-transform: uppercase;
}

.auth-card h1 {
  text-align: center;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.auth-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
}

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #0d100d;
}
.field textarea { resize: vertical; min-height: 70px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.btn-gold {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: var(--gold);
  color: #000;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-blue {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--viper-blue);
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-blue:hover { background: #0055cc; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }

.auth-foot {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-foot a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.auth-foot a:hover { color: var(--gold-light); }

.auth-msg {
  margin-bottom: 1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius);
  display: none;
}
.auth-msg.error   { display: block; background: rgba(184,42,26,0.12); border: 1px solid rgba(184,42,26,0.4); color: #f0a0a0; }
.auth-msg.success { display: block; background: rgba(63,160,88,0.12); border: 1px solid rgba(63,160,88,0.4); color: #a0e0b0; }
.auth-msg.info    { display: block; background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.3); color: var(--gold-light); }

/* ── Portal shell (dashboard layout) ──────────────────────────── */
.portal-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 860px) {
  .portal-shell { grid-template-columns: 1fr; }
}

.portal-side {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
@media (max-width: 860px) { .portal-side { position: static; height: auto; } }

.portal-side .side-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  padding: 0.4rem 0.5rem;
}
.portal-side .side-logo img { height: 38px; }
.portal-side .side-logo .side-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  line-height: 1.2;
}

.side-nav { flex: 1; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  transition: background 0.2s, color 0.2s;
}
.side-nav a:hover { background: var(--bg-alt); color: var(--text); }
.side-nav a.active {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: calc(0.9rem - 2px);
}
.side-nav .nav-icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.side-foot {
  border-top: 1px solid var(--border-sub);
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.side-foot .who { padding: 0 0.5rem 0.6rem; }
.side-foot .who strong { color: var(--text); display: block; font-size: 0.85rem; }
.side-foot button.signout {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.side-foot button.signout:hover { border-color: var(--gold); color: var(--gold); }

.portal-main {
  padding: 2rem 2rem 4rem;
  max-width: 1200px;
}
@media (max-width: 600px) { .portal-main { padding: 1.5rem 1rem 3rem; } }

.page-head {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-sub);
}
.page-head h1 {
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.page-head p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Tables / lists ───────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-sub);
  font-size: 0.9rem;
}
.data-table th {
  background: var(--bg-alt);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(201,168,76,0.03); }

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-WAITING_FOR_DEPOSIT { background: rgba(196,120,48,0.15);  color: var(--status-waiting);  border: 1px solid rgba(196,120,48,0.4); }
.status-ORDER_PROCESSING    { background: rgba(201,168,76,0.15);  color: var(--status-process);  border: 1px solid rgba(201,168,76,0.4); }
.status-BOOKING_FLIGHT      { background: rgba(91,139,217,0.15);  color: var(--status-booking);  border: 1px solid rgba(91,139,217,0.4); }
.status-FLIGHT_DATE         { background: rgba(78,163,201,0.15);  color: var(--status-flight);   border: 1px solid rgba(78,163,201,0.4); }
.status-LOADED              { background: rgba(63,160,88,0.15);   color: var(--status-loaded);   border: 1px solid rgba(63,160,88,0.4); }
.status-COMPLETED           { background: rgba(122,120,112,0.15); color: var(--status-complete); border: 1px solid rgba(122,120,112,0.4); }

.empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text); font-size: 1.1rem; margin-bottom: 0.6rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1.4rem; }
