/* ============================================================
   GK VECTOR PRIME ENTERPRISES PVT LTD
   Clean Bright Premium Light Theme
   Blue, Navy & Crisp Slate Palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Brand Colors */
  --primary:        #1d4ed8;       /* Royal Blue */
  --primary-dark:   #1e40af;       /* Deep Navy Blue */
  --primary-light:  #2563eb;       /* Vibrant Blue */
  --primary-glow:   rgba(37, 99, 235, 0.18);
  --accent:         #0284c7;       /* Sky Blue */
  --accent-glow:    rgba(2, 132, 199, 0.15);

  /* Gold / Silver / Platinum Tier Colors */
  --normal-color:   #475569;
  --gold-color:     #d97706;
  --gold-dark:      #b45309;
  --platinum-color: #0284c7;
  --platinum-light: #e0f2fe;

  /* Clean Bright Backgrounds */
  --bg-darkest:     #f8fafc;       /* Crisp slate-50 canvas */
  --bg-dark:        #ffffff;       /* Pure white page surface */
  --bg-card:        #ffffff;       /* Pure white card */
  --bg-card-hover:  #f8fafc;       /* Gentle hover surface */
  --bg-input:       #ffffff;       /* Clean white input */
  --bg-border:      #e2e8f0;       /* Slate 200 divider/border */
  --bg-glass:       rgba(255, 255, 255, 0.95);

  /* Clean Crisp Typography */
  --text-primary:   #0f172a;       /* Slate 900 for ultra-sharp body text */
  --text-secondary: #475569;       /* Slate 600 for subtitles & descriptions */
  --text-muted:     #64748b;       /* Slate 500 for hints, timestamps & labels */
  --text-white:     #0f172a;       /* Slate 900 for headings, card titles & values */

  /* Status Colors */
  --success:        #059669;       /* Emerald 600 */
  --success-bg:     #ecfdf5;       /* Emerald 50 */
  --warning:        #d97706;       /* Amber 600 */
  --warning-bg:     #fffbeb;       /* Amber 50 */
  --danger:         #dc2626;       /* Red 600 */
  --danger-bg:      #fef2f2;       /* Red 50 */
  --info:           #0284c7;       /* Sky 600 */
  --info-bg:        #f0f9ff;       /* Sky 50 */

  /* Spacing */
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  --radius-pill:    999px;

  /* Shadows */
  --shadow-card:    0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-glow:    0 4px 14px 0 rgba(37, 99, 235, 0.2);
  --shadow-hover:   0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition:     all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-darkest);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  padding: 0.15rem 0.45rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  color: var(--primary-dark);
  font-weight: 600;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display { font-family: 'Outfit', sans-serif; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: #0f172a; }
h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.text-gradient {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold {
  background: linear-gradient(135deg, #b45309, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-platinum {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 680px; }
.container-md { max-width: 900px; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-border);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  padding: 0 1.25rem;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.navbar-brand .brand-icon {
  width: 42px; height: 42px;
  background: transparent;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.navbar-brand .brand-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.98rem; color: #0f172a; }
.navbar-brand .brand-sub  { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.navbar-nav { display: flex; align-items: center; gap: 0.35rem; }
.nav-link-item {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link-item:hover, .nav-link-item.active { color: var(--primary); background: #eff6ff; font-weight: 600; }
.navbar-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.navbar-hamburger span { display: block; width: 24px; height: 2px; background: #0f172a; border-radius: 2px; transition: var(--transition); }
.navbar-mobile { display: none; background: #ffffff; border-top: 1px solid var(--bg-border); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover { border-color: #cbd5e1; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.card-title { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.card-subtitle { font-size: 0.82rem; color: var(--text-secondary); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #ffffff !important;
}
.btn-accent {
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
  color: #ffffff !important;
}
.btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--primary);
}
.btn-outline:hover {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary-dark);
}
.btn-danger { background: #dc2626; color: #ffffff !important; }
.btn-danger:hover { background: #b91c1c; transform: translateY(-1px); color: #ffffff !important; }
.btn-success { background: #059669; color: #ffffff !important; }
.btn-success:hover { background: #047857; transform: translateY(-1px); color: #ffffff !important; }
.btn-warning { background: #f59e0b; color: #ffffff !important; }
.btn-warning:hover { background: #d97706; transform: translateY(-1px); color: #ffffff !important; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 0.5rem; border-radius: var(--radius-sm); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em;
}
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #0f172a;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: #94a3b8; }
.form-control-file {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.form-control-file:hover { border-color: var(--primary); }
.form-select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #0f172a;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-select option { background: #ffffff; color: #0f172a; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.35rem; }
.form-section-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--primary);
  margin: 1.75rem 0 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.form-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--bg-border);
}
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-card {
  flex: 1; min-width: 120px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--text-secondary);
}
.radio-card input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }
.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary-dark);
  font-weight: 600;
}
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer; transition: var(--transition);
  background: #f8fafc;
}
.upload-zone:hover { border-color: var(--primary); background: #eff6ff; }
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-zone .upload-text { font-size: 0.85rem; color: var(--text-secondary); }
.upload-zone .upload-text strong { color: var(--primary); }

/* ============================================================
   BADGES / STATUS LABELS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success  { color: #065f46; background: #d1fae5; border: 1px solid #a7f3d0; }
.badge-warning  { color: #92400e; background: #fef3c7; border: 1px solid #fde68a; }
.badge-danger   { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.badge-info     { color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; }
.badge-primary  { color: #1e40af; background: #eff6ff; border: 1px solid #bfdbfe; }
.badge-secondary{ color: #334155; background: #f1f5f9; border: 1px solid #e2e8f0; }
.badge-gold     { color: #92400e; background: #fef3c7; border: 1px solid #fde68a; }
.badge-platinum { color: #0369a1; background: #e0f2fe; border: 1px solid #bae6fd; }

/* ============================================================
   STATS / KPI CARDS
   ============================================================ */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #cbd5e1; }
.stat-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-info { min-width: 0; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: #0f172a; font-family: 'Outfit', sans-serif; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.3rem; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrapper,
.table-full-wrap,
.corp-table-box {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--bg-border);
  box-shadow: var(--shadow-card);
  position: relative;
}
.table,
.table-custom-full,
.corp-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1px solid var(--bg-border);
  white-space: nowrap;
}
.table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f8fafc; color: #0f172a; }
.table .text-strong { color: #0f172a; font-weight: 600; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 0.6rem;
  border: 1px solid;
}
.alert-success { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.alert-danger  { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.alert-warning { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.alert-info    { color: #075985; background: #f0f9ff; border-color: #bae6fd; }

/* ============================================================
   HERO / LANDING
   ============================================================ */
.hero {
  min-height: 90vh;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37, 99, 235, 0.07) 0%, transparent 70%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--bg-border);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.25rem 3.5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(2, 132, 199, 0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none; opacity: 0.12;
  animation: orb-float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--primary); top: -150px; left: -100px; }
.hero-orb-2 { width: 350px; height: 350px; background: var(--accent); bottom: -100px; right: -50px; animation-delay: -4s; }
@keyframes orb-float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-25px) scale(1.05); } }

/* ============================================================
   MEMBERSHIP PLAN CARDS
   ============================================================ */
.plan-card {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative; overflow: hidden;
  cursor: pointer;
}
.plan-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
}
.plan-card.normal::before { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.plan-card.gold::before   { background: linear-gradient(90deg, #f59e0b, #d97706); }
.plan-card.platinum::before { background: linear-gradient(90deg, #2563eb, #0284c7); }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #cbd5e1; }
.plan-card.gold { border-color: #fde68a; background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%); }
.plan-card.gold:hover { box-shadow: 0 12px 30px -4px rgba(245, 158, 11, 0.15); border-color: #f59e0b; }
.plan-card.platinum { border-color: #bfdbfe; background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%); }
.plan-card.platinum:hover { box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.15); border-color: #3b82f6; }
.plan-card.popular-tag {
  position: absolute; top: 1.25rem; right: -1.75rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff; font-size: 0.65rem; font-weight: 800;
  padding: 0.25rem 2rem; transform: rotate(45deg);
  text-transform: uppercase; letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.plan-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.plan-name { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.plan-fee { font-size: 2.2rem; font-weight: 900; font-family: 'Outfit', sans-serif; margin: 0.75rem 0; color: #0f172a; }
.plan-fee span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.plan-referral { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.plan-referral strong { color: var(--primary); }
.plan-features { list-style: none; text-align: left; margin-bottom: 1.75rem; }
.plan-features li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--text-secondary);
  padding: 0.45rem 0; border-bottom: 1px solid #f1f5f9;
}
.plan-features li:last-child { border: none; }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 800; flex-shrink: 0; }

/* ============================================================
   ADMIN SIDEBAR / LAYOUT
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-darkest); }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid var(--bg-border);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100; overflow-y: auto;
  transition: var(--transition);
}
.sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--bg-border);
  background: #ffffff;
  display: flex; align-items: center; gap: 0.75rem;
}
.sidebar-logo {
  width: 46px; height: 46px;
  background: transparent;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4); flex-shrink: 0;
}
.sidebar-title { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 800; color: #0f172a; line-height: 1.2; }
.sidebar-subtitle { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }
.sidebar-section-label {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #94a3b8;
  padding: 0.75rem 0.5rem 0.35rem; margin-top: 0.5rem;
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none;
  transition: var(--transition); margin-bottom: 2px;
}
.sidebar-nav-item:hover  { background: #f1f5f9; color: #0f172a; }
.sidebar-nav-item.active { background: #eff6ff; color: var(--primary); font-weight: 700; }
.sidebar-nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-nav-item .nav-badge {
  margin-left: auto;
  background: #dc2626; color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.65rem; font-weight: 700;
  padding: 0.1rem 0.45rem; min-width: 18px; text-align: center;
}
.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--bg-border);
  background: #ffffff;
}
.admin-content { margin-left: 260px; flex: 1; padding: 2rem; background: var(--bg-darkest); min-height: 100vh; }
.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--bg-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  padding: 0.85rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  margin: -2rem -2rem 2rem;
  position: sticky; top: 0; z-index: 50;
}
.page-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.page-subtitle { font-size: 0.8rem; color: var(--text-secondary); }
.sidebar-toggle { display: none; }

/* ============================================================
   MEMBER DASHBOARD
   ============================================================ */
.member-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.member-card::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent);
  pointer-events: none;
}
.membership-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.membership-chip.normal   { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.membership-chip.gold     { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.membership-chip.platinum { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.member-number { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 900; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.25rem; }
.points-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct, 60) * 1%), #e2e8f0 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.points-ring::before {
  content: ''; position: absolute; inset: 10px;
  background: #ffffff; border-radius: 50%;
}
.points-ring-value { position: relative; z-index: 1; text-align: center; }
.referral-link-box {
  display: flex; align-items: center; gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.8rem; color: #334155;
  overflow: hidden;
}
.referral-link-box .link-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: 0.35rem; align-items: center; justify-content: center; padding: 1.25rem 0; }
.pagination a, .pagination span {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); background: #ffffff;
  border: 1px solid var(--bg-border); text-decoration: none;
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: #eff6ff; }
.pagination .active span { background: var(--primary); color: #ffffff; border-color: var(--primary); }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-box { position: relative; }
.search-box .search-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-box .form-control { padding-left: 2.5rem; }

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2.5rem; }
.step {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  position: relative; flex: 1; max-width: 160px;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 18px; left: calc(50% + 22px);
  width: calc(100% - 44px); height: 2px;
  background: var(--bg-border);
}
.step.completed:not(:last-child)::after { background: var(--success); }
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff; border: 2px solid var(--bg-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
  transition: var(--transition); z-index: 1;
}
.step.active .step-number  { border-color: var(--primary); background: #eff6ff; color: var(--primary); font-weight: 800; }
.step.completed .step-number { border-color: var(--success); background: var(--success); color: #ffffff; }
.step-label { font-size: 0.7rem; color: var(--text-muted); text-align: center; white-space: nowrap; font-weight: 500; }
.step.active .step-label { color: var(--primary); font-weight: 700; }
.step.completed .step-label { color: var(--success); font-weight: 600; }

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 5rem 1.25rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ============================================================
   GLOW / DIVIDER EFFECTS
   ============================================================ */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  margin: 2rem 0;
}
.glow-divider { border: none; border-top: 1px solid var(--bg-border); margin: 1.5rem 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-box {
  background: #ffffff;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 2rem; width: 100%; max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: modal-in 0.25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--bg-border);
  padding: 2.5rem 1.25rem;
  text-align: center; font-size: 0.85rem; color: var(--text-muted);
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--primary); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-in-up {
  from { opacity: 0.85; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 1;
  animation: fade-in-up 0.35s ease-out;
}
.delay-100 { animation-delay: 0.08s; }
.delay-200 { animation-delay: 0.15s; }
.delay-300 { animation-delay: 0.22s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.72rem; }
.text-lg { font-size: 1.1rem; }
.text-muted { color: var(--text-muted); }
.text-secondary-color { color: var(--text-secondary); }
.text-white { color: #0f172a; }
.text-primary-color { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.d-none { display: none; }
.w-100 { width: 100%; }
.rounded { border-radius: var(--radius-sm); }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* Admin Layout Tablet */
  .admin-layout { position: relative; }
  .admin-content {
    margin-left: 0 !important;
    padding: 1.25rem !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 280px !important;
    max-width: 85vw !important;
    z-index: 1000 !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25) !important;
  }
  .sidebar.open {
    transform: translateX(0) !important;
  }
  .sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.2rem;
    border-radius: var(--radius-sm);
  }
  .admin-topbar {
    margin: -1.25rem -1.25rem 1.5rem !important;
    padding: 0.85rem 1.25rem !important;
    gap: 0.75rem !important;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Prevent iOS Auto-Zoom on form input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="search"],
  select,
  textarea,
  .form-control,
  .form-select,
  .corp-auth-input,
  .corp-form-input {
    font-size: 16px !important;
  }

  /* Grid Stacking */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Public Navigation & Animated Hamburger */
  .navbar-nav { display: none !important; }
  .navbar-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 6px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-border);
    background: #ffffff;
    transition: var(--transition);
  }
  .navbar-hamburger:hover {
    background: #f1f5f9;
  }
  .navbar-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .navbar-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .navbar-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .navbar-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .navbar-mobile {
    display: none;
    background: #ffffff;
    border-top: 1px solid var(--bg-border);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  }
  .navbar-mobile.open {
    display: flex !important;
    animation: mobileSlideDown 0.22s ease-out;
  }
  @keyframes mobileSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .navbar-mobile .nav-link-item {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Flash Alert Notification Center */
  .flash-toast-container,
  div[style*="position:fixed;top:72px;right:1rem"] {
    top: 68px !important;
    left: 1rem !important;
    right: 1rem !important;
    width: auto !important;
    max-width: calc(100% - 2rem) !important;
    margin: 0 auto !important;
  }

  /* Hero & Landing */
  .hero {
    padding: 3.5rem 1rem 2.25rem !important;
    min-height: auto !important;
  }
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Plan & Card Spacing */
  .plan-card { padding: 1.75rem 1.25rem !important; }
  .section { padding: 2.75rem 1rem !important; }
  .member-card { padding: 1.25rem !important; }
  .stat-card { padding: 1rem !important; }
  .stat-value { font-size: 1.35rem !important; }

  /* Buttons on Mobile */
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }

  /* Admin Filter Forms on Mobile */
  .card form[method="GET"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  .card form[method="GET"] > div {
    min-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .card form[method="GET"] button,
  .card form[method="GET"] a.btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Table Smooth Scrolling */
  .table-wrapper,
  .table-full-wrap,
  .corp-table-box {
    border-radius: var(--radius-md) !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .table th, .table td {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  /* Modals on Mobile */
  .modal-box,
  .corp-modal-box {
    padding: 1.4rem 1.15rem !important;
    border-radius: 16px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* ============================================================
   RESPONSIVE — PHABLET & MID MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .admin-topbar {
    margin: -1rem -1rem 1.25rem !important;
    padding: 0.65rem 0.85rem !important;
    gap: 0.5rem !important;
  }
  .admin-topbar .page-title {
    font-size: 1.15rem !important;
    line-height: 1.2 !important;
  }
  .admin-topbar .page-subtitle {
    font-size: 0.72rem !important;
  }
  .admin-topbar-time {
    display: none !important;
  }
  .admin-content {
    padding: 0.85rem !important;
  }

  /* Stepper in Registration */
  .steps { gap: 0 !important; }
  .step-label { display: none !important; }
  .step:not(:last-child)::after {
    width: calc(100% - 32px) !important;
    left: calc(50% + 16px) !important;
  }

  /* Radio Card Groups */
  .radio-group {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .radio-card {
    min-width: 100% !important;
    width: 100% !important;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 1rem; }
  .card { padding: 1.15rem 1rem !important; border-radius: 14px !important; }
  .plan-fee { font-size: 1.75rem !important; }
  .btn { padding: 0.65rem 1.15rem; font-size: 0.84rem; }
  .admin-content { padding: 0.65rem !important; }

  /* Action buttons inside cards */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* ============================================================
   RESPONSIVE — ULTRA COMPACT MOBILE (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  .navbar-inner {
    padding: 0 0.5rem;
  }
  .brand-name {
    font-size: 0.88rem !important;
  }
  .brand-sub {
    font-size: 0.58rem !important;
  }
  .card {
    padding: 1rem 0.85rem !important;
  }
  .stat-value {
    font-size: 1.2rem !important;
  }
}
