@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --purple: #5B2D8E;
  --purple-dark: #3D1A6B;
  --purple-light: #7B4DB8;
  --purple-50: #F3EEFA;
  --purple-100: #E0CEFF;
  --teal: #00BFA5;
  --teal-dark: #009688;
  --teal-50: #E0F7F4;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --red: #EF4444;
  --green: #10B981;
  --navy: #0F1B35;
  --navy-80: rgba(15,27,53,0.8);
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #FFFFFF;
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--purple-light); border-radius: 3px; }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { color: var(--gray-600); line-height: 1.75; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input, select, textarea { font-family: var(--font); outline: none; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem; transition: var(--transition); white-space: nowrap; cursor: pointer; border: none; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,45,142,0.35); }
.btn-secondary { background: var(--amber); color: #fff; }
.btn-secondary:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,0.35); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }

/* CARDS */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.8rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; }
.badge-purple { background: var(--purple-50); color: var(--purple); }
.badge-teal { background: var(--teal-50); color: var(--teal-dark); }
.badge-amber { background: #FEF3C7; color: var(--amber-dark); }
.badge-red { background: #FEE2E2; color: #B91C1C; }
.badge-green { background: #D1FAE5; color: #065F46; }

/* SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--purple); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1rem; }
.section-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.75rem; }
.section-tag::after { content: ''; display: block; width: 24px; height: 2px; background: var(--teal); border-radius: 1px; }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 0.7rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--gray-900); background: var(--white); transition: var(--transition); }
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,45,142,0.1); }
.form-control::placeholder { color: var(--gray-400); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { font-size: 0.75rem; color: var(--red); margin-top: 0.3rem; display: none; }
.form-error.show { display: block; }
.input-group { position: relative; }
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 1rem; }

/* ALERTS */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.875rem; display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1rem; }
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.alert-error { background: #FEE2E2; color: #B91C1C; border: 1px solid #FCA5A5; }
.alert-info { background: var(--purple-50); color: var(--purple); border: 1px solid var(--purple-100); }
.alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; }

/* DIVIDERS */
.divider { height: 1px; background: var(--gray-200); margin: 1.5rem 0; }
.divider-purple { background: linear-gradient(90deg, transparent, var(--purple-100), transparent); }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: #fff; border-radius: var(--radius-xl); width: 100%; max-width: 480px; box-shadow: var(--shadow-xl); transform: scale(0.95) translateY(20px); transition: transform 0.3s; overflow: hidden; }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header { padding: 1.5rem 2rem 1rem; position: relative; }
.modal-title { font-size: 1.3rem; font-weight: 700; color: var(--gray-900); }
.modal-subtitle { font-size: 0.85rem; color: var(--gray-400); margin-top: 0.2rem; }
.modal-body { padding: 0.5rem 2rem 2rem; }
.modal-close { position: absolute; top: 1.2rem; right: 1.5rem; width: 32px; height: 32px; background: var(--gray-100); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gray-600); transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); }

/* TOAST */
.toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 99999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; min-width: 300px; max-width: 420px; border-left: 4px solid var(--purple); animation: slideInRight 0.3s ease; }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
.toast.warning { border-color: var(--amber); }
.toast-icon { font-size: 1.2rem; }
.toast-text { flex: 1; font-size: 0.875rem; font-weight: 500; }
.toast-close { font-size: 1rem; color: var(--gray-400); cursor: pointer; padding: 0.2rem; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* LOADING */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
.spinner-purple { border-color: rgba(91,45,142,0.2); border-top-color: var(--purple); }
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader { position: fixed; inset: 0; background: #fff; z-index: 99998; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; transition: opacity 0.5s; }
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-family: var(--font); font-size: 1.5rem; font-weight: 800; color: var(--purple); }
.loader-bar { width: 200px; height: 4px; background: var(--purple-100); border-radius: 2px; overflow: hidden; }
.loader-bar-inner { height: 100%; background: var(--purple); border-radius: 2px; animation: loaderAnim 1.5s ease-in-out infinite; }
@keyframes loaderAnim { 0% { width: 0%; margin-left: 0; } 50% { width: 70%; margin-left: 15%; } 100% { width: 0%; margin-left: 100%; } }

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 9000; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition); animation: pulse-wa 2s infinite; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse-wa { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,0.65), 0 0 0 12px rgba(37,211,102,0.1); } }

/* RIBBON */
.ribbon { display: inline-block; background: var(--purple); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 4px; letter-spacing: 0.05em; }

/* TABS */
.tab-list { display: flex; border-bottom: 2px solid var(--gray-200); gap: 0; }
.tab-btn { padding: 0.85rem 1.5rem; font-size: 0.88rem; font-weight: 600; color: var(--gray-400); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); background: none; cursor: pointer; border-left: none; border-right: none; border-top: none; }
.tab-btn.active { color: var(--purple); border-bottom-color: var(--purple); }
.tab-panel { display: none; padding: 2rem 0; }
.tab-panel.active { display: block; }

/* PROGRESS */
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 4px; background: var(--purple); transition: width 1s ease; }

/* AVATAR */
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--purple-50); color: var(--purple); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }

/* VERIFY STEPS */
.step-dots { display: flex; align-items: center; gap: 0; margin-bottom: 2rem; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; flex-shrink: 0; }
.step-dot.done { background: var(--green); color: #fff; }
.step-dot.active { background: var(--purple); color: #fff; }
.step-dot.pending { background: var(--gray-200); color: var(--gray-400); }
.step-line { flex: 1; height: 2px; background: var(--gray-200); }
.step-line.done { background: var(--green); }

/* OTP INPUTS */
.otp-group { display: flex; gap: 0.6rem; justify-content: center; margin: 1.5rem 0; }
.otp-input { width: 52px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); color: var(--gray-900); transition: var(--transition); }
.otp-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,45,142,0.12); }

/* STAT COUNTER */
.stat-item { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--purple); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.3rem; font-weight: 500; }

/* ICON BOXES */
.icon-box { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-box svg { width: 24px; height: 24px; }
.icon-box-purple { background: var(--purple-50); color: var(--purple); }
.icon-box-teal { background: var(--teal-50); color: var(--teal-dark); }
.icon-box-amber { background: #FEF3C7; color: var(--amber-dark); }
.icon-box-green { background: #D1FAE5; color: #065F46; }

/* BACK TO TOP */
.back-to-top { position: fixed; bottom: 5.5rem; right: 2rem; z-index: 8000; width: 44px; height: 44px; background: var(--purple); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); transition: var(--transition); opacity: 0; pointer-events: none; font-size: 1.2rem; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--purple-dark); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .modal { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 95vh; overflow-y: auto; }
  .modal-overlay { align-items: flex-end; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .btn-lg { padding: 0.875rem 1.75rem; font-size: 0.92rem; }
  .otp-input { width: 44px; height: 50px; font-size: 1.2rem; }
}
