/* ============================================
   D.S AIRLINES — Profile Dashboard Styles
   Tabbed sidebar layout + all tab-specific CSS
   ============================================ */

/* ── Layout Shell ────────────────────────────── */
.profile-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-height) - 80px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sidebar ─────────────────────────────────── */
.profile-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  height: fit-content;
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
  padding: 32px 0 32px 0;
}

.sidebar-user {
  text-align: center;
  padding: 0 20px 28px;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  margin-bottom: 8px;
}

.sidebar-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(201,168,76,0.4);
}

.sidebar-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sidebar-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
}

.sidebar-tier-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid;
}

/* ── Sidebar Nav Links ───────────────────────── */
.sidebar-nav {
  list-style: none;
  padding: 12px 0;
}

.sidebar-nav li {
  margin: 2px 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 0 12px 12px 0;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-nav a:hover {
  color: var(--gold);
  background: rgba(201,168,76,0.06);
}

.sidebar-nav a.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  font-weight: 600;
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--gradient-gold);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Tab Content Area ────────────────────────── */
.profile-content {
  padding: 32px 0 32px 40px;
  border-left: 1px solid rgba(201,168,76,0.08);
  min-height: 600px;
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.35s ease;
}

.tab-panel.active {
  display: block;
}

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

.tab-header {
  margin-bottom: 32px;
}

.tab-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tab-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Dashboard Tab ───────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.dash-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
}

.dash-card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.dash-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 600;
}

.dash-card-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.dash-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Dynasty Card Container */
.dynasty-card-wrap {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dynasty-card-visual {
  position: relative;
  width: 360px;
  height: 220px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.4s, box-shadow 0.4s;
}

.dynasty-card-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
}

/* ── Loyalty Progress Bar ────────────────────── */
.loyalty-progress-container {
  background: var(--bg-glass);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.loyalty-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.loyalty-progress-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.loyalty-progress-tier-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.loyalty-track {
  position: relative;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loyalty-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-gold);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.loyalty-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: rgba(255,255,255,0.3);
  filter: blur(4px);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.loyalty-milestones {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.loyalty-milestones span.current-tier {
  color: var(--gold);
  font-weight: 700;
}

/* ── Carbon Tracker ──────────────────────────── */
.carbon-tracker {
  background: linear-gradient(135deg, rgba(16,60,40,0.4), rgba(10,17,40,0.8));
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.carbon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.carbon-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #34d399;
}

.carbon-unit {
  font-size: 0.85rem;
  color: rgba(52,211,153,0.7);
  font-weight: 500;
}

.carbon-bar {
  height: 6px;
  background: rgba(52,211,153,0.15);
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0;
}

.carbon-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #059669);
  border-radius: 6px;
  transition: width 1s ease;
}

.carbon-offset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: 8px;
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.carbon-offset-btn:hover {
  background: rgba(52,211,153,0.2);
  border-color: rgba(52,211,153,0.5);
}

/* ── Upcoming Flight Mini Cards ──────────────── */
.upcoming-flights {
  margin-bottom: 28px;
}

.upcoming-card {
  background: var(--bg-glass);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 14px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
  transition: all 0.3s;
}

.upcoming-card:hover {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.upcoming-route {
  font-weight: 600;
  font-size: 1rem;
}

.upcoming-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.upcoming-ref {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
}

.upcoming-countdown {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.upcoming-countdown.soon {
  background: rgba(234,179,8,0.15);
  color: #fbbf24;
  border: 1px solid rgba(234,179,8,0.3);
}

.upcoming-countdown.far {
  background: rgba(201,168,76,0.08);
  color: var(--text-muted);
  border: 1px solid rgba(201,168,76,0.15);
}

/* ── Predictive Booking Widget ───────────────── */
.predict-card {
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(10,17,40,0.8));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.predict-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%);
  pointer-events: none;
}

.predict-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.3);
  margin-bottom: 12px;
}

.predict-route {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.predict-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.predict-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--gradient-gold);
  color: var(--navy-darkest);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 14px;
}

.predict-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}

/* ── Personal Info Tab ───────────────────────── */
.form-section {
  margin-bottom: 36px;
}

.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.form-section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-section-divider {
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin-bottom: 20px;
}

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.form-label .label-hint {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  margin-left: 6px;
}

.form-input,
.form-select {
  padding: 13px 16px;
  background: rgba(15,27,61,0.5);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  transition: all 0.25s;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-select option {
  background: var(--navy-dark);
  color: var(--text-primary);
}

.phone-group {
  display: flex;
  gap: 10px;
}

.phone-code {
  width: 100px;
  flex-shrink: 0;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #34d399;
  font-weight: 600;
  margin-left: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.form-save-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(201,168,76,0.08);
}

.btn-save {
  padding: 12px 32px;
  background: var(--gradient-gold);
  color: var(--navy-darkest);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,168,76,0.3);
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Travel Documents Tab ────────────────────── */
.doc-vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: 8px;
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ── Companions Tab ──────────────────────────── */
.companions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.companion-card {
  background: var(--bg-glass);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.3s;
  position: relative;
}

.companion-card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.companion-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.companion-rel {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 10px;
}

.companion-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.companion-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.companion-btn {
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.25);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 500;
}

.companion-btn:hover {
  background: rgba(201,168,76,0.1);
}

.companion-btn.danger {
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}

.companion-btn.danger:hover {
  background: rgba(239,68,68,0.1);
}

.add-companion-card {
  background: transparent;
  border: 2px dashed rgba(201,168,76,0.2);
  border-radius: 14px;
  padding: 40px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-muted);
  min-height: 180px;
}

.add-companion-card:hover {
  border-color: rgba(201,168,76,0.4);
  color: var(--gold);
  background: rgba(201,168,76,0.03);
}

.add-companion-card .plus-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ── Boarding Passes Tab ─────────────────────── */
.boardpass-card {
  background: linear-gradient(135deg, rgba(15,27,61,0.6), rgba(4,10,26,0.9));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.boardpass-top {
  padding: 24px 28px 20px;
  border-bottom: 2px dashed rgba(201,168,76,0.15);
  position: relative;
}

.boardpass-top::before,
.boardpass-top::after {
  content: '';
  position: absolute;
  bottom: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-darkest);
}

.boardpass-top::before { left: -10px; }
.boardpass-top::after { right: -10px; }

.boardpass-airline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.boardpass-airline-logo {
  height: 28px;
}

.boardpass-class {
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
}

.boardpass-route {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.boardpass-city {
  text-align: center;
}

.boardpass-iata {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.boardpass-cityname {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.boardpass-arrow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.4rem;
  position: relative;
}

.boardpass-arrow::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

.boardpass-bottom {
  padding: 20px 28px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.boardpass-field-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.boardpass-field-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.boardpass-qr {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px solid rgba(201,168,76,0.2);
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.boardpass-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.boardpass-download:hover {
  background: rgba(201,168,76,0.15);
}

/* ── Settings Tab ────────────────────────────── */
.settings-group {
  background: var(--bg-glass);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.settings-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.setting-info {
  flex: 1;
}

.setting-name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.setting-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 26px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  left: 3px;
  top: 3px;
  transition: transform 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.btn-danger {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 10px;
  color: #f87171;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-danger:hover {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.6);
}

/* ── Modals (Generic) ────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #0d1628;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 18px;
  padding: 36px;
  max-width: 520px;
  width: 92%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  animation: modalIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-modal-cancel {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.25s;
}

.btn-modal-cancel:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text-secondary);
}

/* ── Empty States ────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h4 {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.empty-state p {
  font-size: 0.88rem;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Mobile Responsive ───────────────────────── */
@media (max-width: 900px) {
  .profile-shell {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .profile-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: 16px 0 0;
    border-bottom: 1px solid rgba(201,168,76,0.1);
    margin-bottom: 0;
  }

  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 0 0 16px;
  }

  .sidebar-avatar {
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .sidebar-tier-badge {
    margin-top: 6px;
  }

  .sidebar-nav {
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav li {
    flex-shrink: 0;
    margin: 0;
  }

  .sidebar-nav a {
    flex-direction: column;
    gap: 4px;
    padding: 10px 18px;
    font-size: 0.72rem;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
  }

  .sidebar-nav a.active::before {
    display: none;
  }

  .sidebar-nav a.active {
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.25);
  }

  .sidebar-nav .nav-icon {
    font-size: 1.3rem;
  }

  .profile-content {
    padding: 24px 0;
    border-left: none;
  }

  .dynasty-card-wrap {
    flex-direction: column;
    align-items: center;
  }

  .dynasty-card-visual {
    width: 100%;
    max-width: 360px;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .boardpass-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .companions-grid {
    grid-template-columns: 1fr;
  }

  .phone-group {
    flex-direction: column;
  }

  .phone-code {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .boardpass-iata {
    font-size: 1.5rem;
  }

  .boardpass-bottom {
    grid-template-columns: 1fr;
  }

  .tab-header h2 {
    font-size: 1.3rem;
  }
}

/* ── Custom Date Picker (Luxury Calendar) ────── */
.ds-date-trigger {
  cursor: pointer;
  position: relative;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3e%3cline x1='16' y1='2' x2='16' y2='6'/%3e%3cline x1='8' y1='2' x2='8' y2='6'/%3e%3cline x1='3' y1='10' x2='21' y2='10'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px !important;
}

.ds-cal-wrap {
  position: absolute;
  z-index: 8000;
  margin-top: 6px;
  animation: calDropIn 0.2s ease;
}

@keyframes calDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ds-cal {
  width: 320px;
  background: #0b1530;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,168,76,0.08);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

/* Header with month/year selectors */
.ds-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  background: linear-gradient(135deg, rgba(201,168,76,0.08), transparent);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.ds-cal-nav {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.ds-cal-nav:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.4);
}

.ds-cal-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.ds-cal-selectors {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-cal-sel {
  padding: 6px 10px;
  background: rgba(15,27,61,0.6);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 14px;
  padding-right: 24px;
  transition: border-color 0.2s;
}

.ds-cal-sel:focus {
  border-color: rgba(201,168,76,0.5);
}

.ds-cal-sel option {
  background: #0b1530;
  color: var(--text-primary);
}

/* Day names row */
.ds-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 14px 6px;
}

.ds-cal-dayname {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
}

/* Date grid */
.ds-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 14px 14px;
  gap: 3px;
}

.ds-cal-cell {
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}

.ds-cal-cell:hover:not(.disabled):not(.empty) {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}

.ds-cal-cell.today {
  color: var(--gold);
  font-weight: 700;
}

.ds-cal-cell.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.ds-cal-cell.selected {
  background: var(--gradient-gold);
  color: var(--navy-darkest);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}

.ds-cal-cell.selected::after {
  display: none;
}

.ds-cal-cell.disabled {
  color: rgba(255,255,255,0.1);
  cursor: not-allowed;
}

.ds-cal-cell.empty {
  cursor: default;
}

.ds-cal-cell.other-month {
  color: rgba(255,255,255,0.15);
}

/* Footer */
.ds-cal-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(201,168,76,0.08);
}

.ds-cal-foot-btn {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.ds-cal-clear {
  background: transparent;
  color: var(--text-muted);
}

.ds-cal-clear:hover {
  color: #f87171;
}

.ds-cal-today-btn {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
}

.ds-cal-today-btn:hover {
  background: rgba(201,168,76,0.2);
}
