/*
 * Rifqa Super Platform — Components CSS
 * Cards, Bed Matrix, 30m Countdown, Voucher Layout, Reception Tool, Badges, Modals, Toasts
 */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--color-emerald-deep) 0%, var(--color-emerald-primary) 100%);
  color: var(--color-text-inverse);
  box-shadow: 0 4px 20px rgba(15, 62, 54, 0.25);
  border-bottom: 3px solid var(--color-gold-warm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-svg {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border: 1px solid var(--color-gold-border);
}

.brand-info h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand-info h1 span {
  color: var(--color-gold-noble);
}

.brand-info p {
  font-size: 0.78rem;
  color: var(--color-gold-subtle);
  opacity: 0.9;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  background: transparent;
  color: #E2E8F0;
  border: none;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
  background: var(--color-gold-warm);
  color: var(--color-emerald-deep);
  box-shadow: 0 2px 8px rgba(197, 168, 128, 0.4);
  font-weight: 700;
}

/* ==========================================================================
   Hero & Stage Flow
   ========================================================================== */
.hero-banner {
  background: linear-gradient(to bottom, #134037, #0B2B25);
  color: #FFFFFF;
  padding: 2.25rem 0 3.5rem;
  position: relative;
  text-align: center;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--color-bg-main);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 168, 128, 0.18);
  border: 1px solid var(--color-gold-warm);
  color: var(--color-gold-noble);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #E2E8F0;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Main Content Views
   ========================================================================== */
.view-section {
  display: none;
  padding: 1.5rem 0 3rem;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

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

/* Section Header */
.section-header {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-emerald-deep);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* ==========================================================================
   Search & Filter Bar
   ========================================================================== */
.filter-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.city-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.city-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.city-btn.active {
  background: var(--color-emerald-deep);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.form-input, .form-select {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  font-size: 0.9rem;
  color: var(--color-text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus {
  border-color: var(--color-emerald-primary);
  box-shadow: 0 0 0 3px rgba(15, 62, 54, 0.1);
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.range-slider {
  flex: 1;
  accent-color: var(--color-emerald-deep);
}

.range-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-emerald-deep);
  min-width: 65px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-emerald-deep) 0%, var(--color-emerald-primary) 100%);
  color: #FFFFFF;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-emerald-hover) 0%, var(--color-emerald-deep) 100%);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-warm) 0%, var(--color-gold-noble) 100%);
  color: var(--color-emerald-deep);
  border: 1px solid var(--color-gold-hover);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-hover) 0%, var(--color-gold-warm) 100%);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-emerald-deep);
  border: 1.5px solid var(--color-emerald-deep);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--color-emerald-light);
}

/* ==========================================================================
   Hotels Grid & Cards
   ========================================================================== */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.hotel-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-gold-border);
}

.hotel-card-header {
  background: linear-gradient(135deg, var(--color-emerald-primary) 0%, #1c4d40 100%);
  color: #FFFFFF;
  padding: 1.25rem;
  position: relative;
}

.hotel-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.hotel-stars {
  color: var(--color-gold-noble);
  font-size: 0.85rem;
}

.hotel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-gold {
  background: rgba(197, 168, 128, 0.2);
  color: var(--color-gold-noble);
  border: 1px solid rgba(197, 168, 128, 0.4);
}

.badge-distance {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.hotel-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-types-list {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.room-type-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.room-type-info {
  display: flex;
  flex-direction: column;
}

.room-type-title {
  font-weight: 700;
  color: var(--color-text-main);
}

.room-type-beds {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

.room-type-price {
  font-weight: 800;
  color: var(--color-emerald-deep);
  font-size: 0.95rem;
}

/* ==========================================================================
   Bed Selector Matrix & Gender Segregation
   ========================================================================== */
.bed-selector-container {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.selection-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-emerald-surface);
  border: 1px solid rgba(15, 62, 54, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.room-gender-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gender-badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.gender-male {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.gender-female {
  background: #FCE7F3;
  color: #9D174D;
  border: 1px solid #FBCFE8;
}

.gender-family {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.gender-unassigned {
  background: #E2E8F0;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.gender-selection-controls {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.gender-radios {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.radio-pill input[type="radio"], .radio-pill input[type="checkbox"] {
  accent-color: var(--color-emerald-deep);
  width: 18px;
  height: 18px;
}

.radio-pill.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Beds Grid */
.bed-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.bed-box {
  background: #FFFFFF;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.bed-box:hover:not(.occupied):not(.disabled) {
  border-color: var(--color-emerald-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.bed-box.selected {
  border-color: var(--color-gold-warm);
  background: var(--color-gold-subtle);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.4);
}

.bed-box.occupied {
  background: #F1F5F9;
  border-color: #E2E8F0;
  opacity: 0.65;
  cursor: not-allowed;
}

.bed-box.soft-locked {
  background: #FFFBEB;
  border-color: var(--color-warning);
  border-style: dashed;
}

.bed-icon-svg {
  width: 44px;
  height: 44px;
  color: var(--color-emerald-deep);
}

.bed-box.occupied .bed-icon-svg {
  color: #94A3B8;
}

.bed-box.selected .bed-icon-svg {
  color: var(--color-gold-warm);
}

.bed-number {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

.bed-status-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   30-Minute Soft-Lock Live Countdown Widget
   ========================================================================== */
.countdown-widget {
  background: linear-gradient(135deg, var(--color-emerald-deep) 0%, var(--color-emerald-primary) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-gold-border);
}

.countdown-widget.warning {
  background: linear-gradient(135deg, #92400E 0%, #B45309 100%);
}

.countdown-widget.danger {
  background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%);
  animation: pulseDanger 1.2s infinite ease-in-out;
}

@keyframes pulseDanger {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.countdown-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.countdown-clock {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-sm);
  letter-spacing: 2px;
}

/* ==========================================================================
   Booking Form & PDPL Masking
   ========================================================================== */
.booking-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

.form-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-with-preview {
  position: relative;
}

.live-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--color-emerald-deep);
  font-weight: 700;
}

.pdpl-seal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #166534;
}

/* Price Summary Box */
.summary-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.summary-table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
}

.summary-table tr td {
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--color-border);
}

.summary-table tr.total-row td {
  border-bottom: none;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-emerald-deep);
  padding-top: 1rem;
}

/* ==========================================================================
   Luxury Voucher Card & Signed QR View
   ========================================================================== */
.voucher-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  border: 2px solid var(--color-gold-warm);
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
}

.voucher-header {
  background: linear-gradient(135deg, var(--color-emerald-deep) 0%, var(--color-emerald-primary) 100%);
  color: #FFFFFF;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--color-gold-warm);
}

.voucher-ref-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gold-border);
  text-align: center;
}

.voucher-ref-label {
  font-size: 0.72rem;
  color: var(--color-gold-noble);
  text-transform: uppercase;
}

.voucher-ref-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFFFFF;
}

.voucher-body {
  padding: 2rem;
}

.voucher-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.voucher-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.92rem;
}

.meta-label {
  color: var(--color-text-muted);
  font-weight: 600;
}

.meta-value {
  font-weight: 700;
  color: var(--color-text-main);
}

.voucher-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--color-bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.qr-canvas {
  background: #FFFFFF;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.qr-signature-note {
  font-size: 0.7rem;
  color: var(--color-text-subtle);
  text-align: center;
}

.voucher-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-1px);
}

/* ==========================================================================
   Reception Front-Desk Scanner Tool
   ========================================================================== */
.reception-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  max-width: 820px;
  margin: 0 auto;
}

.scanner-box {
  background: #000000;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 2px dashed var(--color-gold-warm);
  position: relative;
}

.scanner-frame {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border: 2px solid #22C55E;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
  animation: laserScan 2s infinite ease-in-out;
}

@keyframes laserScan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.result-banner {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.result-banner.valid {
  display: block;
  background: #ECFDF5;
  border: 1.5px solid #10B981;
  color: #065F46;
}

.result-banner.tampered {
  display: block;
  background: #FEF2F2;
  border: 1.5px solid #EF4444;
  color: #991B1B;
}

.result-banner.expired {
  display: block;
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  color: #92400E;
}

.result-banner.revoked {
  display: block;
  background: #FEF2F2;
  border: 1.5px solid #EF4444;
  color: #991B1B;
}

/* ==========================================================================
   Toasts & Modals
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: #FFFFFF;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 280px;
  animation: slideToast 0.3s ease forwards;
}

@keyframes slideToast {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { background: #059669; }
.toast.error { background: #DC2626; }
.toast.warning { background: #D97706; }
.toast.info { background: #0F3E36; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

/* =============================================================================
   Unified Portal Header & Persona Switcher
   ============================================================================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.persona-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.persona-switch-label {
  font-size: 0.78rem;
  color: var(--color-gold-warm);
  font-weight: 700;
}

.persona-dropdown {
  background: var(--color-emerald-deep);
  color: #FFFFFF;
  border: 1px solid var(--color-gold-warm);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.server-status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #A7F3D0;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.nav-tabs-wrapper {
  background: #092621;
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
  overflow-x: auto;
}

/* =============================================================================
   Welcome Kit & Store Styles
   ============================================================================= */
.welcome-kit-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #FEF3C7 100%);
  border: 1.5px solid var(--color-gold-warm);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.welcome-kit-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-gold-warm);
}

.product-icon-wrap {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.product-sku {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 0.25rem 0 0.75rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-emerald-deep);
}

.product-stock {
  font-size: 0.76rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.product-stock.in-stock {
  background: #DCFCE7;
  color: #166534;
}

.product-stock.out-of-stock {
  background: #FEE2E2;
  color: #991B1B;
}

.product-order-btn {
  width: 100%;
  font-weight: 700;
  font-size: 0.88rem;
}

/* =============================================================================
   KPI Stat Cards & Tables (Admin & Affiliates)
   ============================================================================= */
.kpi-grid, .affiliate-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.kpi-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--color-emerald-deep);
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 700;
}

.kpi-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--color-text-main);
  margin: 0.4rem 0;
}

.kpi-val.highlight {
  color: var(--color-emerald-deep);
}

.kpi-sub {
  font-size: 0.76rem;
  color: var(--color-text-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: right;
}

.data-table th {
  background: var(--color-bg-subtle);
  padding: 0.75rem 1rem;
  color: var(--color-emerald-deep);
  font-weight: 800;
  border-bottom: 2px solid var(--color-border);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table tr:hover {
  background: #FAF7F2;
}

.webhooks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.webhook-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
}

/* =============================================================================
   Hotel Manager Grid
   ============================================================================= */
.hotel-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.hotel-room-card {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.hotel-room-card.full {
  border-color: #FCD34D;
  background: #FFFBEB;
}

.room-card-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.room-num {
  font-weight: 800;
  color: var(--color-emerald-deep);
}

.room-floor {
  color: var(--color-text-muted);
}

.gender-tag {
  background: var(--color-bg-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* =============================================================================
   B2B Hub & Console Box
   ============================================================================= */
.b2b-keys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
  background: var(--color-bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.console-box {
  background: #0F172A;
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid #334155;
}

.console-pre {
  color: #38BDF8;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
}


/* =============================================================================
   Umrah & Hajj Packages, Custom Wizard & Tourism Showcase
   ============================================================================= */

/* Tier Filter Bar */
.packages-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  scrollbar-width: thin;
}

.tier-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.tier-pill-btn:hover {
  border-color: var(--color-emerald-deep);
  color: var(--color-emerald-deep);
  transform: translateY(-1px);
}

.tier-pill-btn.active {
  background: var(--color-emerald-deep);
  border-color: var(--color-emerald-deep);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 62, 54, 0.25);
}

/* Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.package-card {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 62, 54, 0.12);
  border-color: var(--color-gold-deep);
}

.package-card.featured-package-vip {
  border: 2px solid #C5A880;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F2 100%);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.2);
}

.package-card.featured-package-vip::before {
  content: 'باقة VIP كبار الشخصيات';
  position: absolute;
  top: 14px;
  left: -35px;
  background: linear-gradient(135deg, #C5A880, #A0825B);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 40px;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.package-header {
  margin-bottom: 1rem;
}

.package-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.package-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.badge-economic {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-economic-plus {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.badge-deluxe {
  background: #FDF4FF;
  color: #86198F;
  border: 1px solid #F5D0FE;
}

.badge-vip {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.package-promo-badge {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.package-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--color-emerald-deep);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.package-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Flight Info Banner in Card */
.package-flight-info {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 0.85rem 0;
  font-size: 0.84rem;
}

.flight-airline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-emerald-deep);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.flight-route {
  color: var(--color-text-main);
  margin-bottom: 0.35rem;
}

.flight-details-pill {
  display: inline-block;
  background: #FFFFFF;
  border: 1px dashed var(--color-border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Accommodations Grid */
.package-hotels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.hotel-stay-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
}

.hotel-city-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-emerald-deep);
  margin-bottom: 0.25rem;
}

.hotel-stay-card .hotel-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  min-height: 2.2em;
}

.hotel-stay-card .hotel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

/* Perks list */
.package-perks {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: #F8FAFC;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.package-features-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--color-text-main);
}

.package-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
}

.check-icon {
  color: #10B981;
  font-weight: 800;
}

/* Card Footer */
.package-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.package-price-box {
  margin-bottom: 0.85rem;
}

.price-sar {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-sar .price-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-emerald-deep);
}

.price-sar .price-currency {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.price-egp {
  font-size: 0.82rem;
  color: var(--color-gold-dark);
  margin-top: 0.15rem;
}

.package-action-btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-book-package {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-share-package {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: transparent;
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
}

.btn-share-package:hover {
  border-color: var(--color-emerald-deep);
  color: var(--color-emerald-deep);
}

/* =============================================================================
   Custom Umrah Wizard ("صمم عمرتك بنفسك")
   ============================================================================= */
.custom-wizard-card {
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin: 1.5rem 0;
}

.wizard-steps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.wizard-steps-header::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 40px;
  left: 40px;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  padding: 0 0.5rem;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.step-item.active .step-circle {
  background: var(--color-emerald-deep);
  border-color: var(--color-emerald-deep);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(15, 62, 54, 0.15);
}

.step-item.completed .step-circle {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.step-item.active .step-label {
  color: var(--color-emerald-deep);
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.wizard-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-emerald-deep);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wizard-panel-desc {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

/* Floating Live Price Calculator */
.live-calc-sticky {
  background: linear-gradient(135deg, #0F3E36 0%, #17544A 100%);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(15, 62, 54, 0.2);
}

.live-calc-info {
  display: flex;
  flex-direction: column;
}

.live-calc-title {
  font-size: 0.82rem;
  color: #D9C18B;
  font-weight: 700;
}

.live-calc-sar {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.live-calc-egp {
  font-size: 0.88rem;
  color: #E2E8F0;
}

/* Hajj & Tourism Showcase */
.hajj-hero-banner {
  background: linear-gradient(135deg, #1A1F2C 0%, #0F3E36 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  border: 1px solid #C5A880;
  position: relative;
  overflow: hidden;
}

.hajj-hero-banner::after {
  content: '🕋';
  position: absolute;
  left: 20px;
  bottom: -20px;
  font-size: 9rem;
  opacity: 0.1;
  pointer-events: none;
}

.tourism-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.tourism-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.tourism-card:hover {
  transform: translateY(-3px);
}

.tourism-destination-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  margin-bottom: 0.3rem;
}

.tourism-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-emerald-deep);
  margin-bottom: 0.4rem;
}

.tourism-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
