/* ═══════════════════════════════════════════════════
   Global eSIM — Ocean Connect Design System
   Theme: Deep teal + emerald + warm gold on light
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── TOKENS ─────────────────────────────────────── */
:root {
    --teal:        #0891b2;
    --teal-dark:   #0e7490;
    --teal-deeper: #164e63;
    --teal-light:  #e0f7fa;
    --teal-pale:   #f0fdff;
    --emerald:     #059669;
    --emerald-lt:  #d1fae5;
    --gold:        #f59e0b;
    --gold-lt:     #fef3c7;
    --navy:        #0c1e35;
    --navy2:       #112740;

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

    --danger:  #ef4444;
    --warning: #f59e0b;
    --success: #10b981;

    --font-display: 'Outfit', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    --r-sm:   6px;
    --r-md:   12px;
    --r-lg:   18px;
    --r-xl:   24px;
    --r-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 16px rgba(8,145,178,0.10);
    --shadow-lg: 0 12px 40px rgba(8,145,178,0.14);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(8,145,178,0.08);

    --ease: cubic-bezier(.4,0,.2,1);

    /* spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* aliases for legacy pages */
    --primary:       var(--teal);
    --primary-dark:  var(--teal-dark);
    --primary-light: var(--teal-light);
    --radius-sm: var(--r-sm);
    --radius-md: var(--r-md);
    --radius-lg: var(--r-lg);
    --radius-xl: var(--r-xl);
    --radius-full: var(--r-full);
    --transition-fast:   150ms var(--ease);
    --transition-normal: 250ms var(--ease);
    --transition-slow:   350ms var(--ease);
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-700);
    background: #f0f9ff;
    min-height: 100vh;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

a { color: var(--teal); text-decoration: none; transition: color 150ms var(--ease); }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; display: block; }

/* ── ANIMATED BACKGROUND ────────────────────────── */
.bg-graphic {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-graphic::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,145,178,0.07) 0%, transparent 65%);
    animation: floatA 18s ease-in-out infinite;
}

.bg-graphic::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 65%);
    animation: floatB 22s ease-in-out infinite;
}

@keyframes floatA {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(-3%,4%) scale(1.04); }
    66%      { transform: translate(2%,-3%) scale(0.97); }
}
@keyframes floatB {
    0%,100% { transform: translate(0,0) scale(1); }
    40%      { transform: translate(4%,-3%) scale(1.05); }
    70%      { transform: translate(-2%,3%) scale(0.96); }
}

/* Dot grid */
.bg-dots {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(8,145,178,0.12) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Wrap everything above bg */
.page-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ── CONTAINER ──────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(8,145,178,0.12);
    position: sticky;
    top: 0;
    z-index: 500;
    height: 68px;
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ── LOGO ───────────────────────────────────────── */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--emerald) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(8,145,178,0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
}

.logo-icon svg { color: white; position: relative; z-index: 1; }

.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }

.logo-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.logo-tag {
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── NAV LINKS ──────────────────────────────────── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}

.nav-links a {
    color: var(--gray-600);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--r-full);
    transition: all 150ms var(--ease);
}

.nav-links a:hover {
    color: var(--teal);
    background: var(--teal-light);
}

.nav-links a.active {
    color: var(--teal);
    background: var(--teal-light);
    font-weight: 600;
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--emerald-lt);
    color: var(--emerald);
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(5,150,105,0.2);
}

.btn-nav-login {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms var(--ease);
    box-shadow: 0 3px 10px rgba(8,145,178,0.25);
    border: none;
    cursor: pointer;
}

.btn-nav-login:hover {
    box-shadow: 0 5px 18px rgba(8,145,178,0.35);
    transform: translateY(-1px);
    color: white;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-700);
    margin-left: auto;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(8,145,178,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(8,145,178,0.38); color: white; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: white;
    color: var(--teal);
    border: 1.5px solid rgba(8,145,178,0.3);
}
.btn-secondary:hover { border-color: var(--teal); background: var(--teal-pale); }

.btn-success {
    background: linear-gradient(135deg, var(--emerald), #047857);
    color: white;
    box-shadow: 0 4px 14px rgba(5,150,105,0.25);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(5,150,105,0.35); color: white; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: white;
    box-shadow: 0 4px 14px rgba(245,158,11,0.25);
}
.btn-gold:hover { transform: translateY(-2px); color: white; }

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--gray-300); background: var(--gray-50); }

.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── CARDS ──────────────────────────────────────── */
.card {
    background: white;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(8,145,178,0.09);
    overflow: hidden;
}

.card-body { padding: 24px; }
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); }

/* ── HERO ───────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 50%, #0c3252 100%);
    padding: 28px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(8,145,178,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(5,150,105,0.12) 0%, transparent 50%);
}

/* Animated signal rings in hero */
.hero::after {
    content: '';
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(8,145,178,0.2);
    box-shadow:
        0 0 0 40px rgba(8,145,178,0.05),
        0 0 0 80px rgba(8,145,178,0.03),
        0 0 0 120px rgba(8,145,178,0.02);
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%,100% { transform: translateY(-50%) scale(1); opacity: 0.6; }
    50%      { transform: translateY(-50%) scale(1.05); opacity: 1; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-text h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; color: white; }
.hero-text p { font-size: 0.9rem; opacity: 0.8; color: rgba(255,255,255,0.85); }

/* ── SEARCH BAR ─────────────────────────────────── */
.search-bar {
    display: flex;
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    min-width: 320px;
}

.search-bar select {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-700);
    background: transparent;
    cursor: pointer;
    outline: none;
}

.search-bar button {
    background: linear-gradient(135deg, var(--teal), var(--emerald));
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    transition: opacity 200ms;
}
.search-bar button:hover { opacity: 0.9; }

/* ── INFO BAR ───────────────────────────────────── */
.info-bar {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    padding: 10px 20px;
}

.info-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}

.info-item svg { color: var(--teal); flex-shrink: 0; }

/* ── SECTION HEADER ─────────────────────────────── */
.section-header { margin-bottom: 24px; }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }
.section-count { font-size: 0.85rem; color: var(--gray-400); font-weight: 400; }
.section-line {
    width: 40px; height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--emerald));
    border-radius: 2px;
    margin-top: 6px;
}

/* ── PLAN CARDS ─────────────────────────────────── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}

.plan-card {
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1.5px solid transparent;
    transition: all 250ms var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.plan-card.popular {
    border-color: var(--gold);
}

.plan-popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: white;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245,158,11,0.35);
}

.plan-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deeper) 100%);
    padding: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.plan-header::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.plan-location { font-size: 0.78rem; opacity: 0.75; display: flex; align-items: center; gap: 4px; }

.plan-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.plan-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 12px;
    line-height: 1;
}
.plan-price span { font-size: 0.85rem; color: var(--gray-400); font-weight: 400; }

.plan-details { flex: 1; margin-bottom: 14px; }
.plan-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.83rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}
.plan-detail:last-child { border: none; }
.plan-detail svg { color: var(--teal); flex-shrink: 0; }

.btn-buy {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: white;
    border: none;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 200ms var(--ease);
    box-shadow: 0 4px 12px rgba(8,145,178,0.25);
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(8,145,178,0.35); }
.btn-buy:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; transform: none; box-shadow: none; }

/* ── MODAL ──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12,30,53,0.6);
    backdrop-filter: blur(4px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
    background: white;
    border-radius: var(--r-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    transform: translateY(16px) scale(0.97);
    transition: transform 250ms var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: 4px;
    border-radius: var(--r-sm);
    transition: color 150ms;
}
.modal-close:hover { color: var(--gray-700); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px 24px; display: flex; gap: 10px; }

/* ── FORMS ──────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; letter-spacing: 0.3px; }

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--gray-800);
    background: white;
    transition: all 150ms var(--ease);
    outline: none;
}
.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}
.form-control::placeholder { color: var(--gray-300); }

/* ── ALERTS ─────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-info    { background: var(--teal-pale); color: var(--teal-dark); border: 1px solid rgba(8,145,178,0.2); }
.alert-warning { background: var(--gold-lt); color: #92400e; border: 1px solid #fde68a; }

/* ── BADGES ─────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-active    { background: var(--emerald-lt); color: var(--emerald); }
.badge-pending   { background: var(--gold-lt); color: #92400e; }
.badge-inactive  { background: var(--gray-100); color: var(--gray-500); }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* ── DASHBOARD LAYOUT ───────────────────────────── */
.dash-layout { display: flex; flex: 1; }

.dash-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: white;
    border-right: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 68px;
    height: calc(100vh - 68px);
    overflow-y: auto;
}

.dash-sidebar-inner { padding: 20px 12px; flex: 1; }

.sidebar-section { margin-bottom: 6px; }
.sidebar-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 1.2px; color: var(--gray-400); text-transform: uppercase; padding: 6px 12px; margin-bottom: 2px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    color: var(--gray-600);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 150ms var(--ease);
    margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--teal-pale); color: var(--teal); }
.sidebar-link.active { background: var(--teal-light); color: var(--teal-dark); font-weight: 600; }
.sidebar-link svg { flex-shrink: 0; }

.dash-content { flex: 1; padding: 28px; overflow-x: hidden; }

/* ── STATS CARDS ────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

.stat-card {
    background: white;
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(8,145,178,0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--bar, linear-gradient(90deg, var(--teal), var(--emerald)));
}

.stat-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--gray-900); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; }

/* ── TABLE ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; }
thead th {
    background: var(--gray-50);
    padding: 11px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}
tbody td {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}
tbody tr:last-child td { border: none; }
tbody tr:hover td { background: var(--teal-pale); }

/* ── PAGE HEADER ────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--navy), var(--teal-deeper));
    color: white;
    padding: 36px 0 32px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    right: -60px; bottom: -60px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 0 0 40px rgba(255,255,255,0.03), 0 0 0 80px rgba(255,255,255,0.015);
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { color: white; font-size: 1.6rem; margin-bottom: 4px; }
.page-header p  { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ── FAQ ────────────────────────────────────────── */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: var(--r-lg); margin-bottom: 10px; box-shadow: var(--shadow-card); overflow: hidden; }
.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
    transition: color 150ms;
}
.faq-question:hover { color: var(--teal); }
.faq-question .faq-chevron { transition: transform 250ms var(--ease); flex-shrink: 0; color: var(--gray-400); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--teal); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 300ms var(--ease), padding 300ms; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 18px; }
.faq-answer p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.75; }

.faq-category-btn {
    padding: 8px 18px;
    border: 1.5px solid var(--gray-200);
    background: white;
    border-radius: var(--r-full);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 150ms;
}
.faq-category-btn:hover, .faq-category-btn.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

/* ── LEGAL / STATIC PAGES ───────────────────────── */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.1rem; color: var(--gray-900); margin: 2rem 0 0.75rem; padding-bottom: 8px; border-bottom: 2px solid var(--teal-light); }
.legal-content h3 { font-size: 1rem; color: var(--gray-800); margin: 1.25rem 0 0.5rem; }
.legal-content p  { color: var(--gray-600); line-height: 1.8; margin-bottom: 0.9rem; font-size: 0.9rem; }
.legal-content ul { color: var(--gray-600); line-height: 1.8; margin-bottom: 0.9rem; padding-left: 1.5rem; font-size: 0.9rem; }
.legal-content li { margin-bottom: 0.4rem; }

/* ── CONTACT ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; }
.contact-info-card { background: white; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.contact-info-item:last-child { border: none; padding-bottom: 0; }
.contact-icon { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--teal-pale); display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }
.contact-info-title { font-size: 0.78rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-info-value { font-size: 0.9rem; color: var(--gray-700); }

/* ── TOPUP / WALLET ─────────────────────────────── */
.amount-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.amount-btn {
    padding: 12px 8px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r-md);
    background: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 150ms;
    text-align: center;
}
.amount-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-pale); }
.amount-btn.selected { border-color: var(--teal); background: var(--teal); color: white; }

/* ── ESIM CARD (dashboard) ──────────────────────── */
.esim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.esim-card {
    background: white;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(8,145,178,0.09);
    transition: box-shadow 200ms;
}
.esim-card:hover { box-shadow: var(--shadow-lg); }
.esim-card-head {
    background: linear-gradient(135deg, var(--navy), var(--teal-deeper));
    padding: 16px 18px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.esim-card-body { padding: 16px 18px; }
.data-bar-wrap { margin: 10px 0; }
.data-bar-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--gray-500); margin-bottom: 5px; }
.data-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.data-bar-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--emerald)); border-radius: 3px; transition: width 600ms var(--ease); }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.55);
    padding: 32px 0 24px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.footer-logo-icon {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--teal), var(--emerald));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.82rem; transition: color 150ms; }
.footer-links a:hover { color: white; }

.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ── AUTH PAGES ─────────────────────────────────── */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: var(--r-xl);
    box-shadow: 0 24px 80px rgba(8,145,178,0.15), 0 0 0 1px rgba(8,145,178,0.08);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.auth-header {
    background: linear-gradient(135deg, var(--navy), var(--teal-deeper));
    padding: 36px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-header::after {
    content: '';
    position: absolute;
    right: -30px; top: -30px;
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 0 30px rgba(255,255,255,0.03);
}
.auth-header h1 { color: white; font-size: 1.4rem; margin-bottom: 4px; position: relative; z-index: 1; }
.auth-header p  { color: rgba(255,255,255,0.65); font-size: 0.88rem; position: relative; z-index: 1; }

.auth-body { padding: 32px; }
.auth-footer { text-align: center; padding: 0 32px 28px; font-size: 0.85rem; color: var(--gray-500); }
.auth-footer a { color: var(--teal); font-weight: 600; }

/* ── UTILITIES ──────────────────────────────────── */
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-400); }
.text-teal { color: var(--teal); }
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }
.fw-700 { font-weight: 700; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 32px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.hidden { display: none; }
.w-full { width: 100%; }

/* ── SPINNER ────────────────────────────────────── */
.spinner { width: 22px; height: 22px; border: 3px solid var(--gray-200); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.7s linear infinite; }
.spinner-lg { width: 44px; height: 44px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SKELETON ───────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; border-radius: var(--r-sm); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.4s var(--ease) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

/* ── MOBILE ─────────────────────────────────────── */
@media (max-width: 900px) {
    .dash-sidebar { display: none; }
    .dash-content { padding: 20px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: white;
        border-bottom: 1px solid var(--gray-100);
        padding: 12px 20px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 499;
        gap: 4px;
    }
    .nav-links.open a { padding: 12px 14px; }
    .nav-toggle { display: flex; }
    .hero-inner { flex-direction: column; }
    .search-bar { min-width: auto; width: 100%; }
    .plans-grid { grid-template-columns: 1fr; }
    .info-bar-inner { gap: 16px; }
    .amount-grid { grid-template-columns: repeat(3, 1fr); }
    .esim-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .auth-body { padding: 24px 20px; }
    .auth-header { padding: 28px 20px; }
}
