/* ==========================================================================
   SWA DIAMONDS - CUSTOMER SCHEME APPLICATION DESIGN SYSTEM
   Exact SWA Brand Color Ramps (Peacock Teal + Cyan + Warm Terracotta + Sage + Grayscale)
   ========================================================================== */

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

:root {
  /* Brand Colours - Teal & Cyan Ramp */
  --swa-teal-50: #e8fafa;
  --swa-teal-100: #c5f3f4;
  --swa-teal-200: #94eef0;
  --swa-teal-300: #56e5ea;
  --swa-teal-400: #00e5ff;
  --swa-teal-500: #00b4d8;
  --swa-teal-600: #009eaf;
  --swa-teal-700: #007e8e;
  --swa-teal-800: #084c56; /* Signature SWA Peacock Teal */
  --swa-teal-900: #032b32; /* Deep Dark Teal Hero */

  /* Aliases for Brand Identity */
  --swa-teal: #084c56;
  --swa-teal-dark: #032b32;
  --swa-teal-hover: #0a5965;
  --swa-teal-light: #0d6e7c;
  --swa-teal-gradient: linear-gradient(145deg, #09535e 0%, #084c56 50%, #032b32 100%);
  --swa-cyan: #00b4d8;
  --swa-cyan-bright: #00e5ff;
  --swa-aqua-tint: #eef9fa;
  --swa-aqua-border: #c8edf0;

  /* Brand Colours - Terracotta / Warm Copper Ramp */
  --swa-copper-50: #faf4ee;
  --swa-copper-100: #f4e2d1;
  --swa-copper-200: #e8c4a6;
  --swa-copper-300: #daa379;
  --swa-copper-400: #c86d3b; /* Signature SWA Copper */
  --swa-copper-500: #b85b28;
  --swa-copper-600: #96451b;
  --swa-copper-700: #753412;
  --swa-copper-800: #57240b;
  --swa-copper-900: #381605;

  /* Aliases for Copper / Cream */
  --swa-copper: #c86d3b;
  --swa-cream: #fbf6ee;
  --swa-cream-btn: #f6ede2;

  /* Brand Colours - Sage / Olive Ramp */
  --swa-sage-50: #f5f7f4;
  --swa-sage-100: #e4eae2;
  --swa-sage-200: #c8d3c4;
  --swa-sage-300: #a5b69f;
  --swa-sage-400: #81997a;
  --swa-sage-500: #5f7658;
  --swa-sage-600: #475941;
  --swa-sage-700: #354231;
  --swa-sage-800: #242e21;
  --swa-sage-900: #151b13;

  /* Neutral Grayscales */
  --gray-50: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #f1f5f9;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e1;
  --gray-500: #94a3b8;
  --gray-600: #64748b;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Core Surfaces */
  --bg-main: #f0f4f6;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafb;
  --bg-card-hover: #eef4f6;

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-teal: #084c56;
  --text-copper: #c86d3b;

  /* Status Colors */
  --status-paid-bg: #ecfdf5;
  --status-paid-text: #059669;
  --status-pending-bg: #fffbeb;
  --status-pending-text: #d97706;
  --status-overdue-bg: #fef2f2;
  --status-overdue-text: #dc2626;
  --status-processing-bg: #eff6ff;
  --status-processing-text: #2563eb;

  /* Borders & Shadows */
  --border-subtle: #e2e8f0;
  --border-teal: rgba(8, 76, 86, 0.2);
  --border-copper: rgba(200, 109, 59, 0.25);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(8, 76, 86, 0.08);
  --shadow-teal: 0 8px 24px rgba(8, 76, 86, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Layout Measurements */
  --header-height: 60px;
  --bottom-nav-height: 68px;
  --max-app-width: 480px;
}

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

html, body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--swa-teal);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--swa-teal-light);
}

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.brand-font {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
}

/* App Shell Container */
.app-container {
  width: 100%;
  max-width: var(--max-app-width);
  margin: 0 auto;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 35px rgba(8, 76, 86, 0.08);
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
}

@media (min-width: 992px) {
  body {
    background: #e5ecef;
  }
  .app-container {
    margin: 20px auto;
    min-height: calc(100vh - 40px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
  }
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--swa-teal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.brand-logo-img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--swa-cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--swa-cyan-bright);
}

/* Content Area */
.app-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* SWA Hero Card on Teal */
.swa-hero-teal {
  background: var(--swa-teal-gradient);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-teal);
}
.swa-hero-teal h2 {
  color: #ffffff;
  font-size: 1.45rem;
  margin-bottom: 6px;
}
.swa-hero-teal p {
  color: #d1f2f5;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Cards & Styling */
.swa-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.swa-card:hover {
  border-color: var(--border-teal);
  box-shadow: var(--shadow-md);
}

.swa-card-gold {
  background: linear-gradient(145deg, #ffffff 0%, #fbfdfd 100%);
  border: 1px solid var(--border-teal);
  box-shadow: 0 4px 16px rgba(8, 76, 86, 0.08);
}

/* User Welcome Header Card */
.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}
.welcome-text h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--swa-teal);
}
.welcome-text p {
  color: var(--swa-copper);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Scheme Summary Card */
.scheme-summary-card {
  padding: 20px;
}

.scheme-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.scheme-badge-id {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--swa-aqua-tint);
  border: 1px solid var(--swa-aqua-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--swa-teal);
}

.scheme-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--swa-teal);
  margin-bottom: 4px;
}

.scheme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  background: var(--swa-aqua-tint);
  border-radius: var(--radius-sm);
  border: 1px solid var(--swa-aqua-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  font-weight: 600;
}
.stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}
.stat-value.gold {
  color: var(--swa-teal);
}

/* Gold Rate Card Style */
.gold-rate-box {
  background: var(--swa-aqua-tint);
  border: 1px solid var(--swa-aqua-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gold-rate-item {
  display: flex;
  flex-direction: column;
}
.gold-rate-title {
  font-size: 0.78rem;
  color: var(--swa-teal);
  font-weight: 600;
}
.gold-rate-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--swa-teal-dark);
}

/* Scheme Progress Visualizer */
.progress-section {
  margin-top: 14px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.progress-header span.left {
  color: var(--text-muted);
  font-weight: 500;
}
.progress-header span.right {
  font-weight: 700;
  color: var(--swa-teal);
}

.progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b4d8 0%, #084c56 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(8, 76, 86, 0.4);
}

/* 10-Milestone Dot Tracker */
.installment-dots {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 0 4px;
}

.dot-item {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  position: relative;
  transition: all 0.3s ease;
}

.dot-item.paid {
  background: var(--swa-teal);
  color: #ffffff;
  border-color: var(--swa-teal);
  box-shadow: 0 0 6px rgba(8, 76, 86, 0.35);
}

.dot-item.current {
  background: var(--swa-cyan);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 8px var(--swa-cyan);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(0, 180, 216, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

/* Primary Action & Next Payment Banner */
.pay-banner {
  background: var(--swa-teal-gradient);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-teal);
}

.pay-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pay-amount-label {
  font-size: 0.8rem;
  color: #d1f2f5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.pay-amount-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.due-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
}

.btn-primary-gold, .btn-primary-teal {
  background: var(--swa-teal);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(8, 76, 86, 0.3);
}
.btn-primary-gold:hover, .btn-primary-teal:hover {
  background: var(--swa-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(8, 76, 86, 0.45);
  color: #ffffff;
}
.btn-primary-gold:active, .btn-primary-teal:active {
  transform: translateY(0);
}

.btn-cream {
  background: var(--swa-cream-btn);
  color: var(--swa-teal-dark);
  border: 1px solid var(--border-teal);
}
.btn-cream:hover {
  background: #f0dfcd;
  color: var(--swa-teal-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--swa-teal);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--swa-aqua-tint);
  border-color: var(--swa-teal);
  color: var(--swa-teal);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Amount Preference Pills (Figma Style) */
.pill-group {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pref-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--swa-teal);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.pref-pill:hover, .pref-pill.active {
  background: var(--swa-teal);
  color: #ffffff;
  border-color: var(--swa-teal);
}

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

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.quick-item:hover {
  border-color: var(--swa-teal);
  transform: translateY(-2px);
  color: var(--swa-teal);
  box-shadow: var(--shadow-md);
}

.quick-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--swa-aqua-tint);
  border: 1px solid var(--swa-aqua-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--swa-teal);
  margin-bottom: 8px;
}

.quick-label {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--swa-teal);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title i {
  color: var(--swa-teal);
}
.section-link {
  font-size: 0.8rem;
  color: var(--swa-teal);
  font-weight: 600;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.status-paid { background: var(--status-paid-bg); color: var(--status-paid-text); border: 1px solid #a7f3d0; }
.status-pending { background: var(--status-pending-bg); color: var(--status-pending-text); border: 1px solid #fde68a; }
.status-overdue { background: var(--status-overdue-bg); color: var(--status-overdue-text); border: 1px solid #fecaca; }
.status-processing { background: var(--status-processing-bg); color: var(--status-processing-text); border: 1px solid #bfdbfe; }
.status-active { background: var(--swa-aqua-tint); color: var(--swa-teal); border: 1px solid var(--swa-aqua-border); }
.status-completed { background: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }

/* List Items (Payment History, Notifications) */
.list-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.list-card-item:hover {
  border-color: var(--border-teal);
  box-shadow: var(--shadow-md);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--swa-aqua-tint);
  color: var(--swa-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.item-details h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}
.item-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.item-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--swa-teal);
}

/* Shopkeeper Dedicated Card */
.shopkeeper-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shopkeeper-header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.shop-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--swa-aqua-tint);
  border: 1px solid var(--swa-aqua-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--swa-teal);
}
.shop-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--swa-teal);
}
.shop-info p {
  font-size: 0.82rem;
  color: var(--swa-copper);
  font-weight: 600;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.btn-call {
  background: var(--swa-teal);
  color: #ffffff;
}
.btn-call:hover {
  background: var(--swa-teal-hover);
  color: #ffffff;
}
.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
}
.btn-whatsapp:hover {
  background: #15803d;
  color: #ffffff;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-control, .form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
.form-control:focus, .form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--swa-teal);
  box-shadow: 0 0 0 3px rgba(8, 76, 86, 0.15);
  background: #ffffff;
}
.form-control::placeholder, .form-input::placeholder {
  color: var(--text-dim);
}

.readonly-box {
  background: var(--swa-aqua-tint);
  border: 1px dashed var(--swa-aqua-border);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--swa-teal);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-app-width);
  height: var(--bottom-nav-height);
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 8px;
  box-shadow: 0 -4px 12px rgba(8, 76, 86, 0.05);
}

@media (min-width: 992px) {
  .bottom-nav {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}
.nav-tab i {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}
.nav-tab:hover {
  color: var(--swa-teal);
}
.nav-tab.active {
  color: var(--swa-teal);
  font-weight: 700;
}
.nav-tab.active i {
  transform: translateY(-2px);
  color: var(--swa-teal);
}

/* Toast Messages */
.toast-container {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swa-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.swa-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.swa-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.swa-alert.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Accordion (FAQ / Awareness) */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  color: var(--swa-teal);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.faq-question i {
  color: var(--swa-teal);
  transition: transform 0.3s ease;
}
.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.faq-answer.show {
  padding-bottom: 16px;
}

/* ==========================================================================
   FIGMA SCREEN SPECIFIC COMPONENTS
   ========================================================================== */

/* Figma Public / Discovery Hero */
.figma-hero {
  background: var(--swa-teal);
  background-image: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.12) 0%, transparent 60%),
                    linear-gradient(180deg, #063d46 0%, #084c56 60%, #032b32 100%);
  padding: 24px 20px 28px 20px;
  color: #ffffff;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: 0 6px 20px rgba(8, 76, 86, 0.25);
  position: relative;
  overflow: hidden;
}

.figma-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-top: 14px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.figma-hero-subtitle {
  font-size: 0.88rem;
  color: #d8f3f6;
  line-height: 1.45;
  margin-bottom: 20px;
}

.figma-hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-figma-login {
  background: #f6ede2;
  color: #032b32;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.btn-figma-login:hover {
  background: #eedbc8;
  color: #032b32;
}

.btn-figma-join {
  background: #053b44;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  padding: 13px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.btn-figma-join:hover {
  background: #042a31;
  color: #ffffff;
}

/* Figma Gold Rate Card */
.figma-gold-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}
.figma-gold-header {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.figma-gold-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.92rem;
}
.figma-gold-row.divider {
  border-top: 1px solid #f1f5f9;
}
.figma-gold-weight {
  color: var(--swa-teal);
  font-weight: 600;
}
.figma-gold-price {
  color: #0f172a;
  font-weight: 800;
}

/* Figma Interactive Scheme Calculator */
.figma-calc-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-top: 14px;
}
.calc-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 14px;
}
.calc-subheading {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 10px;
}
.calc-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.calc-chip {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: #084c56;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.calc-chip:hover {
  border-color: var(--swa-teal);
}
.calc-chip.active {
  background: var(--swa-teal);
  color: #ffffff;
  border-color: var(--swa-teal);
}

.calc-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.calc-input-wrap {
  flex: 1;
  position: relative;
}
.calc-input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}
.calc-input-field {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}
.calc-btn-check {
  background: #032b32;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  align-self: flex-end;
  height: 48px;
  transition: all 0.2s ease;
}
.calc-btn-check:hover {
  background: #084c56;
}

.calc-breakdown {
  background: #fbfdfd;
  border: 1px solid var(--swa-aqua-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
}
.calc-row-title {
  color: #334155;
}
.calc-row-sub {
  font-size: 0.78rem;
  color: var(--swa-cyan);
  font-weight: 600;
}
.calc-row-val {
  font-weight: 700;
  color: #0f172a;
}
.calc-row-val.cyan {
  color: #009eaf;
}
.calc-row.total {
  border-top: 1px dashed var(--border-subtle);
  margin-top: 6px;
  padding-top: 10px;
}
.calc-row.total .calc-row-title {
  font-weight: 700;
  color: #0f172a;
}
.calc-row.total .calc-row-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--swa-teal);
}

/* Campaign Banner Card */
.figma-campaign-card {
  background: #032b32;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-top: 14px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}
.campaign-img-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.campaign-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.campaign-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(3,43,50,0.7) 0%, rgba(3,43,50,0.2) 50%, rgba(3,43,50,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  text-align: center;
}

/* Figma Notifications */
.figma-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}
.figma-notif-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.figma-notif-mark {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--swa-teal);
  text-decoration: none;
}
.figma-notif-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background-color 0.2s ease;
}
.figma-notif-item:hover {
  background: #f8fafc;
}
.figma-notif-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--swa-copper-50);
  border: 1px solid var(--swa-copper-100);
  color: var(--swa-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.figma-notif-badge.teal {
  background: var(--swa-teal-50);
  border-color: var(--swa-teal-100);
  color: var(--swa-teal);
}
.figma-notif-content {
  flex: 1;
}
.figma-notif-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}
.figma-notif-text {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 6px;
}
.figma-notif-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Figma Login Bottom Sheet */
.figma-login-page {
  min-height: 100vh;
  background: var(--swa-teal);
  background-image: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 70%),
                    linear-gradient(180deg, #063d46 0%, #084c56 50%, #032b32 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.figma-login-top {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.figma-login-back {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #ffffff;
  font-size: 1.4rem;
}
.figma-login-sheet {
  background: #ffffff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 28px 24px 36px 24px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.15);
}
.figma-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.figma-sheet-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}
.figma-sheet-close {
  color: #94a3b8;
  font-size: 1.25rem;
  text-decoration: none;
}
.figma-input-wrap {
  position: relative;
}
.figma-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Figma Splash & Onboarding Fullscreens */
.figma-splash-screen {
  min-height: 100vh;
  background: #084c56;
  background-image: radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.18) 0%, transparent 65%),
                    linear-gradient(180deg, #095763 0%, #084c56 60%, #032b32 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px 30px 24px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.figma-onboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.figma-onboard-btn:hover {
  background: rgba(255,255,255,0.3);
  color: #ffffff;
  transform: translateY(-2px);
}
.figma-ring-footer {
  width: 100%;
  max-width: 320px;
  margin-top: auto;
  position: relative;
}
.figma-ring-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
