/* ═══════════════════════ AUTH PAGES ═══════════════════════ */
:root {
  --navy:#0D1B3E; --navy2:#162244; --gold:#C9A84C; --gold2:#E2C06A;
  --white:#fff; --light:#F8F9FB; --gray:#6B7280; --text:#1F2937;
  --green:#22c55e; --red:#ef4444;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,sans-serif;color:var(--text);line-height:1.6}
a{text-decoration:none;color:inherit}
input,select,textarea,button{font-family:inherit}

/* ── AUTH BODY ── */
.auth-body { background: var(--light); min-height: 100vh; }

.auth-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 64px;
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
}
.auth-back {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7); font-size: .85rem;
  transition: color .2s;
}
.auth-back:hover { color: var(--gold); }

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

/* Left panel */
.auth-left {
  background: linear-gradient(145deg, var(--navy) 0%, #1a2f5e 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 48px;
}
.auth-left-content { max-width: 440px; width: 100%; }

.al-badge {
  display: inline-block;
  background: rgba(201,168,76,.2);
  color: var(--gold);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 20px;
}
.auth-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; color: var(--white); line-height: 1.15;
  margin-bottom: 16px;
}
.auth-left h1 em { font-style: normal; color: var(--gold); }
.auth-left > .auth-left-content > p { color: rgba(255,255,255,.65); margin-bottom: 36px; }

/* Levels preview */
.levels-preview {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 32px;
}
.lp-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.1);
}
.lp-badge { font-size: 1.4rem; }
.lp-item strong { display: block; color: var(--white); font-size: .95rem; }
.lp-item span { font-size: .78rem; color: rgba(255,255,255,.5); }

/* Earn preview */
.earn-preview { background: rgba(255,255,255,.06); border-radius: 16px; padding: 20px; }
.ep-title { font-size: .78rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ep-item {
  text-align: center; padding: 10px 6px;
  background: rgba(255,255,255,.05); border-radius: 10px;
}
.ep-item span { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.ep-item p { font-size: .72rem; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.ep-item strong { font-size: .8rem; color: var(--gold); }

/* Right panel */
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: var(--light);
}
.auth-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(13,27,62,.12);
  padding: 36px 36px 32px;
  width: 100%; max-width: 480px;
}

/* Tabs */
.auth-tabs {
  display: flex; gap: 0;
  border-radius: 12px; overflow: hidden;
  background: var(--light);
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 12px;
  background: transparent; border: none;
  font-size: .9rem; font-weight: 600;
  color: var(--gray); cursor: pointer;
  border-radius: 10px; transition: all .25s;
}
.auth-tab.active { background: var(--navy); color: var(--white); }

/* Forms */
.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.form-field input, .form-field select {
  height: 46px; border: 1.5px solid #E5E7EB; border-radius: 10px;
  padding: 0 14px; font-size: .93rem; color: var(--text);
  background: var(--white); outline: none; transition: border-color .2s;
}
.form-field input:focus, .form-field select:focus { border-color: var(--gold); }

.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: .9rem; opacity: .5;
}
.pw-toggle:hover { opacity: 1; }

.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .83rem; color: var(--gray); }
.form-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.form-check a { color: var(--navy); font-weight: 600; }

.form-forgot { text-align: right; }
.form-forgot a { font-size: .83rem; color: var(--gray); }
.form-forgot a:hover { color: var(--gold); }

.auth-error {
  font-size: .83rem; color: var(--red);
  background: rgba(239,68,68,.08);
  border-radius: 8px; padding: 10px 14px;
  display: none;
}
.auth-error.show { display: block; }

.btn-auth {
  height: 50px; background: var(--navy); color: var(--white);
  border: none; border-radius: 12px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .25s; margin-top: 4px;
}
.btn-auth:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.auth-switch { text-align: center; font-size: .83rem; color: var(--gray); }
.auth-switch button { background: none; border: none; color: var(--navy); font-weight: 700; cursor: pointer; font-size: inherit; }
.auth-switch button:hover { color: var(--gold); }

.auth-welcome { text-align: center; padding: 20px 0 4px; }
.aw-icon { font-size: 2.4rem; margin-bottom: 10px; }
.auth-welcome p { color: var(--gray); line-height: 1.7; }

/* ═══════════════════════ DASHBOARD ═══════════════════════ */
.dashboard-body { background: #F0F2F7; min-height: 100vh; }

.dash-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 64px;
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.dash-nav-right { display: flex; align-items: center; gap: 16px; }
.dash-nav-link { font-size: .83rem; color: rgba(255,255,255,.7); transition: color .2s; }
.dash-nav-link:hover { color: var(--gold); }

.dash-user-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border-radius: 50px;
  padding: 6px 16px 6px 6px;
}
.duc-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.dash-user-chip span { color: var(--white); font-size: .88rem; font-weight: 600; }

.dash-logout {
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
  color: #ef4444; padding: 8px 16px; border-radius: 8px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.dash-logout:hover { background: rgba(239,68,68,.25); }

/* Layout */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); }

/* Sidebar */
.dash-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid rgba(13,27,62,.08);
  display: flex; flex-direction: column;
  padding: 24px 0;
}
.dash-menu { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; flex: 1; }
.dm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: .88rem; font-weight: 500; color: var(--gray);
  transition: all .2s; cursor: pointer;
}
.dm-item:hover { background: var(--light); color: var(--navy); }
.dm-item.active { background: rgba(13,27,62,.08); color: var(--navy); font-weight: 700; }
.dm-item span { font-size: 1rem; }

.dash-sidebar-cta { padding: 16px; border-top: 1px solid rgba(13,27,62,.08); margin-top: 12px; }
.dash-sidebar-cta p { font-size: .78rem; color: var(--gray); margin-bottom: 8px; }
.ds-wa-btn {
  display: block; text-align: center;
  background: #25D366; color: var(--white);
  padding: 10px; border-radius: 10px;
  font-size: .83rem; font-weight: 700; transition: background .2s;
}
.ds-wa-btn:hover { background: #1DBE5A; }

/* Main */
.dash-main { flex: 1; padding: 32px; overflow-y: auto; }
.dash-page { display: none; }
.dash-page.active { display: block; }

.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-family:'Playfair Display',serif; font-size: 1.8rem; color: var(--navy); }
.dash-header p { color: var(--gray); margin-top: 6px; }

/* Overview cards */
.overview-cards {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
  margin-bottom: 24px;
}
.ov-card {
  background: var(--white); border-radius: 16px;
  padding: 20px; display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(13,27,62,.07);
  box-shadow: 0 2px 8px rgba(13,27,62,.05);
}
.ov-card.gold-card { background: linear-gradient(135deg, var(--navy) 0%, #1a2f5e 100%); border: none; }
.ov-card.gold-card .ovc-info span { color: rgba(255,255,255,.65); }
.ov-card.gold-card .ovc-info strong { color: var(--gold); font-size: 1.8rem; }
.ovc-icon { font-size: 1.8rem; }
.ovc-info span { display: block; font-size: .78rem; color: var(--gray); margin-bottom: 4px; }
.ovc-info strong { font-size: 1.4rem; color: var(--navy); font-weight: 800; }

/* Level progress card */
.level-progress-card {
  background: var(--white); border-radius: 16px;
  padding: 24px; margin-bottom: 24px;
  border: 1px solid rgba(13,27,62,.07);
}
.lpc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.lpc-level { font-size: 2rem; }
.lpc-header h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.lpc-header p { font-size: .85rem; color: var(--gray); }
.lpc-points-big { margin-left: auto; font-size: 1.6rem; font-weight: 800; color: var(--gold); }

.lpc-bar-wrap {
  height: 10px; background: var(--light); border-radius: 10px; overflow: hidden; margin-bottom: 10px;
}
.lpc-bar {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: width 1s ease;
  box-shadow: 0 0 8px rgba(201,168,76,.4);
}
.lpc-milestones {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--gray);
}

/* Recent activity */
.recent-section, .points-history {
  background: var(--white); border-radius: 16px;
  padding: 24px; margin-bottom: 24px;
  border: 1px solid rgba(13,27,62,.07);
}
.recent-section h3, .points-history h3 { font-size: 1rem; color: var(--navy); margin-bottom: 16px; font-weight: 700; }

.activity-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid rgba(13,27,62,.05);
}
.activity-item:last-child { border-bottom: none; }
.ai-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(201,168,76,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ai-info { flex: 1; }
.ai-info strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: 2px; }
.ai-info span { font-size: .78rem; color: var(--gray); }
.ai-pts { font-weight: 800; color: var(--green); font-size: .95rem; }
.ai-pts.used { color: var(--red); }

.activity-empty { text-align: center; padding: 40px 20px; }
.ae-icon { font-size: 3rem; margin-bottom: 12px; }
.activity-empty p { color: var(--gray); margin-bottom: 20px; }

/* Quick actions */
.quick-actions { background: var(--white); border-radius: 16px; padding: 24px; border: 1px solid rgba(13,27,62,.07); }
.quick-actions h3 { font-size: 1rem; color: var(--navy); margin-bottom: 16px; font-weight: 700; }
.qa-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.qa-card {
  background: var(--light); border-radius: 12px;
  padding: 20px 12px; text-align: center;
  border: 1px solid rgba(13,27,62,.06);
  transition: all .25s; cursor: pointer;
}
.qa-card:hover { background: var(--navy); transform: translateY(-3px); }
.qa-card:hover p { color: var(--white); }
.qa-card span { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.qa-card p { font-size: .8rem; color: var(--navy); font-weight: 600; }

/* Points page */
.points-summary {
  background: var(--navy); border-radius: 20px;
  padding: 32px; display: flex; align-items: center; gap: 40px;
  margin-bottom: 28px;
}
.ps-big { text-align: center; }
.ps-number { font-size: 4rem; font-weight: 900; color: var(--gold); line-height: 1; }
.ps-label { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: 6px; }
.ps-stats { display: flex; gap: 32px; }
.ps-stat { text-align: center; }
.ps-stat span { display: block; font-size: 1.8rem; font-weight: 800; color: var(--white); }
.ps-stat p { color: rgba(255,255,255,.5); font-size: .78rem; }

/* Earn table */
.earn-table {
  background: var(--white); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(13,27,62,.08); margin-bottom: 28px;
}
.et-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 14px 20px; gap: 16px;
  border-bottom: 1px solid rgba(13,27,62,.06);
}
.et-row:last-child { border-bottom: none; }
.et-row.header { background: var(--light); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.et-row.bonus { background: rgba(201,168,76,.05); }
.pts-badge {
  background: rgba(13,27,62,.08); color: var(--navy);
  font-size: .8rem; font-weight: 800; padding: 4px 12px; border-radius: 50px;
  white-space: nowrap;
}
.pts-badge.gold { background: rgba(201,168,76,.15); color: #9a6f1a; }

/* Reservations */
.res-filter { display: flex; gap: 8px; margin-bottom: 24px; }
.rf-btn {
  padding: 8px 20px; border-radius: 50px;
  background: var(--white); border: 1.5px solid rgba(13,27,62,.15);
  font-size: .85rem; font-weight: 600; color: var(--gray); cursor: pointer;
  transition: all .2s;
}
.rf-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Rewards */
.rewards-points-banner {
  background: linear-gradient(135deg, var(--navy), #1a2f5e);
  border-radius: 16px; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; color: rgba(255,255,255,.7); font-size: .95rem;
}
.rewards-points-banner strong { color: var(--gold); font-size: 1.6rem; font-weight: 800; }

.rewards-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  margin-bottom: 28px;
}
.reward-card {
  background: var(--white); border-radius: 16px;
  padding: 24px; text-align: center;
  border: 1.5px solid rgba(13,27,62,.07);
  transition: all .3s;
}
.reward-card.unlocked { border-color: var(--gold); }
.reward-card.locked { opacity: .6; }
.reward-card:hover.unlocked { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(201,168,76,.2); }
.rc-icon { font-size: 2.4rem; margin-bottom: 12px; }
.rc-cost {
  display: inline-block; background: rgba(201,168,76,.12);
  color: #9a6f1a; font-size: .78rem; font-weight: 800;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
}
.reward-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.reward-card p { font-size: .82rem; color: var(--gray); margin-bottom: 16px; }
.rc-btn {
  display: block; padding: 10px;
  background: var(--navy); color: var(--white);
  border-radius: 10px; font-size: .83rem; font-weight: 700;
  transition: all .25s; cursor: pointer; border: none; width: 100%;
}
.rc-btn:hover:not(:disabled) { background: var(--gold); color: var(--navy); }
.rc-btn:disabled { background: var(--light); color: var(--gray); cursor: not-allowed; }

.rewards-note {
  background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2);
  border-radius: 16px; padding: 24px;
}
.rewards-note p { font-size: .9rem; color: var(--text); line-height: 1.7; }

/* Profile */
.profile-card {
  background: var(--white); border-radius: 20px;
  padding: 36px; max-width: 600px;
  border: 1px solid rgba(13,27,62,.07);
}
.profile-avatar-big {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  color: var(--white); font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.profile-level-badge {
  text-align: center; font-weight: 700; color: var(--navy);
  margin-bottom: 24px; font-size: 1rem;
}
.profile-form { margin-top: 0 !important; }

.profile-referral {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(13,27,62,.08);
  text-align: center;
}
.profile-referral h4 { color: var(--navy); margin-bottom: 8px; }
.profile-referral p { font-size: .85rem; color: var(--gray); margin-bottom: 16px; }
.referral-code {
  font-size: 1.4rem; font-weight: 800; letter-spacing: .2em;
  color: var(--navy); background: var(--light);
  border-radius: 12px; padding: 14px; margin-bottom: 12px;
}
.copy-btn {
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 8px;
  padding: 10px 24px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.copy-btn:hover { background: var(--gold2); }

/* Logo shared */
.nav-logo { display:flex; flex-direction:column; line-height:1.1; }
.logo-saphir { font-family:'Playfair Display',serif; font-size:1.2rem; font-weight:700; color:var(--gold); letter-spacing:.04em; }
.logo-sub { font-size:.55rem; letter-spacing:.18em; color:rgba(255,255,255,.6); text-transform:uppercase; }
.btn-primary { display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:var(--navy); font-weight:700; font-size:.95rem; padding:14px 28px; border-radius:50px; transition:all .25s; border:none; cursor:pointer; }
.btn-primary:hover { background:var(--gold2); transform:translateY(-2px); }

/* ── Responsive ── */
@media(max-width:1024px) {
  .auth-container { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .overview-cards { grid-template-columns: 1fr 1fr; }
  .rewards-grid { grid-template-columns: 1fr 1fr; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px) {
  .dashboard-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; flex-direction: row; padding: 0; }
  .dash-menu { flex-direction: row; padding: 8px; overflow-x: auto; }
  .dm-item span { display: none; }
  .dash-sidebar-cta { display: none; }
  .dash-main { padding: 16px; }
  .overview-cards { grid-template-columns: 1fr 1fr; }
  .rewards-grid { grid-template-columns: 1fr; }
  .points-summary { flex-direction: column; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-right { padding: 24px 16px; }
  .auth-card { padding: 24px 20px; }
}
