/* ===== MODAL ===== */
.modal-overlay {
    position:fixed; top:0; left:0; right:0; bottom:0;
    background:rgba(0,0,0,0.5); z-index:1000;
    display:flex; align-items:center; justify-content:center;
    backdrop-filter:blur(2px);
}
.modal-box {
    background:#fff; border-radius:12px; padding:32px;
    width:100%; max-width:420px; position:relative;
    box-shadow:0 20px 60px rgba(0,0,0,0.2);
    max-height:90vh; overflow-y:auto;
}
.modal-close {
    position:absolute; top:12px; right:16px;
    background:none; border:none; font-size:1.5rem;
    cursor:pointer; color:var(--gray-400); line-height:1;
    padding:4px; transition:0.15s;
}
.modal-close:hover { color:var(--gray-700); }

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --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;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.7;
    min-height: 100vh;
}

body:not(.landing-page) {
    display: flex;
    flex-direction: column;
}

body:not(.landing-page) > .container {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.3; color: var(--gray-900); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 24px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

.menu-toggle {
    display: none; position: relative;
    background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 5px;
}
.menu-toggle span {
    display: block; width: 24px; height: 3px;
    background: #334155; border-radius: 2px; transition: 0.3s;
}
.menu-toggle .hamburger-badge {
    position: absolute; top:-5px; right:-8px;
    background:#ef4444; color:#fff; font-size:10px; font-weight:700;
    min-width:18px; height:18px; border-radius:9px;
    display:inline-flex; align-items:center; justify-content:center;
    padding:0 4px; box-shadow:0 2px 4px rgba(239,68,68,0.3);
    pointer-events:none;
}
.menu-toggle .hamburger-badge:empty { display:none; }

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .navbar .container { height: auto; padding: 12px 20px; }
    .navbar .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch;
        gap: 0; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #e2e8f0;
        max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
        z-index: 1000;
    }
    .navbar .nav-links.active { max-height: 500px; }
    .navbar .nav-links a {
        padding: 12px 20px; width: 100%; border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
    }
    .navbar .nav-links a.active { color: #fff; background: var(--primary); }

}

.brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-icon { display:inline-flex; vertical-align:middle; margin-right:6px; }
.nav-icon svg { display:block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover { color: var(--primary); background: var(--gray-100); }
.nav-links a.active { background: #2563eb; color: #fff; }
.nav-links a.active:hover { background: #1d4ed8; color: #fff; }

.nav-icon { display:inline-flex; width:18px; height:18px; vertical-align:middle; margin-right:6px; flex-shrink:0; }
.nav-icon svg { width:100%; height:100%; }

.menu-toggle { z-index:101; }

.hamburger-badge { position:absolute; top:-2px; right:-4px; background:var(--danger); color:#fff; font-size:10px; font-weight:700; min-width:18px; height:18px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 4px; line-height:1; }
.hamburger-badge:empty { display:none; }

/* ===== NAV CARDS ===== */
.nav-cards {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 14px;
    background: #fff;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,99,235,0.15);
    transform: translateY(-2px);
}

.nav-card.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

.nav-card.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.nav-card-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.nav-card-label {
    line-height: 1;
}

/* ===== QUICK LINKS ===== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-align: center;
}

.quick-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,99,235,0.14);
    transform: translateY(-3px);
}

.quick-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.quick-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.quick-card-count {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 400;
    margin-top: 2px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--gray-700);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover { background: #fff; border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }

.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-success { color: var(--success); border-color: var(--success); }
.btn-success:hover { background: var(--success); color: #fff; }
.btn-warning { color: var(--warning); border-color: var(--warning); }
.btn-warning:hover { background: var(--warning); color: #fff; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 50%, var(--primary-dark) 100%);
    color: #fff;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 { font-size: 3.2rem; color: #fff; margin-bottom: 16px; }
.hero h1 span { color: #60a5fa; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero .btn-primary {
    background: #fff;
    color: var(--primary);
    border: none;
    font-weight: 600;
}

.hero .btn-primary:hover { background: var(--gray-100); }

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gray-50);
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* ===== FEATURES ===== */
.features { padding: 60px 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: 0.9rem; }

/* ===== TARIFFS ===== */
.tariffs-section { padding: 80px 0; background: #fff; }

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.tariff-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.tariff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.tariff-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

.tariff-header {
    background: linear-gradient(135deg, var(--gray-900), #1e3a5f);
    color: #fff;
    padding: 32px;
    text-align: center;
}

.tariff-header h3 { color: #fff; margin-bottom: 12px; font-size: 1.4rem; }

.tariff-price .price { font-size: 2.5rem; font-weight: 800; }
.tariff-price .period { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

.tariff-body { padding: 32px; flex: 1; }
.tariff-body p { color: var(--gray-500); margin-bottom: 20px; font-size: 0.9rem; }
.tariff-body ul { list-style: none; }
.tariff-body li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 0.9rem;
}

.tariff-body li:last-child { border-bottom: none; }
.tariff-body li strong { color: var(--gray-800); }

.tariff-footer { padding: 0 32px 32px; }

/* ===== AUTH PAGES ===== */
.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e8f0fe 100%);
}

.auth-page .auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
}

.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    display: block;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 24px;
}

.auth-box h2 { text-align: center; margin-bottom: 24px; color: var(--gray-800); }
.auth-link { text-align: center; margin-top: 20px; color: var(--gray-500); font-size: 0.9rem; }
.auth-link a { color: var(--primary); text-decoration: none; font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-group input[readonly] { background: var(--gray-50); cursor: not-allowed; }

textarea { resize: vertical; min-height: 80px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-actions { display: flex; gap: 10px; margin-top: 24px; }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ===== TABLE ===== */
.table-responsive { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
    .table-responsive table.table,
    .table-responsive table.table tbody,
    .table-responsive table.table tr,
    .table-responsive table.table td,
    .table-responsive table.table th {
        display: block;
    }
    .table-responsive table.table thead { display: none; }
    .table-responsive table.table tbody tr {
        background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
        margin-bottom: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .table-responsive table.table td {
        border: none; padding: 6px 0; font-size: 0.85rem;
        display: flex; justify-content: space-between; align-items: center;
    }
    .table-responsive table.table td::before {
        content: attr(data-label); font-weight: 600; color: #64748b;
        font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.3px;
        margin-right: 12px;
    }
    .table-responsive table.table td.actions {
        flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 10px;
        border-top: 1px solid #e2e8f0; justify-content: flex-start;
    }
    .table-responsive table.table td.actions::before { display: none; }
    .table-responsive table.table td.actions .btn { font-size: 0.8rem; padding: 5px 12px; }
}

code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-secondary { background: var(--gray-100); color: var(--gray-500); }

/* ===== PROFILE ===== */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-info h2 { margin-bottom: 4px; }
.profile-info p { color: var(--gray-500); font-size: 0.9rem; }

.profile-balance { text-align: right; }

.balance-label { display: block; color: var(--gray-500); font-size: 0.85rem; margin-bottom: 4px; }
.balance-amount { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }

/* ===== SECTION ===== */
.section {
    background: #fff;
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h3 { margin-bottom: 0; }

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-500);
}

.empty-state p { margin-bottom: 20px; font-size: 1.05rem; }

/* ===== ORDER PAGE ===== */
.order-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

.order-form { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.order-form h3 { margin-top: 24px; }
.order-form h3:first-child { margin-top: 0; }

.tariff-select { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }

.tariff-radio {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 4px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.tariff-radio:hover { border-color: var(--primary-light); }
.tariff-radio.selected { border-color: var(--primary); background: rgba(37,99,235,0.04); }

.tariff-radio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
}

.tariff-radio-content strong { min-width: 120px; color: var(--gray-800); }
.tariff-radio-content span { color: var(--gray-500); font-size: 0.85rem; }
.tariff-radio-price { font-weight: 700; color: var(--primary) !important; font-size: 1rem !important; }

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    margin: 20px 0;
    border-top: 1px solid var(--gray-200);
    font-size: 1.1rem;
}

.order-total strong { color: var(--primary); font-size: 1.3rem; }

.sidebar-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.sidebar-card h3 { margin-bottom: 12px; }

.sidebar-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.sidebar-price small { font-size: 0.9rem; font-weight: 400; color: var(--gray-500); }

.sidebar-card ul { list-style: none; }
.sidebar-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    color: var(--gray-600);
}

.sidebar-card li:last-child { border-bottom: none; }

/* ===== TOPUP ===== */
.topup-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.topup-form { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }

.amount-presets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.preset-btn {
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    color: var(--gray-700);
}

.preset-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37,99,235,0.04);
}

.topup-info { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.topup-info h3 { margin-bottom: 12px; }
.topup-info p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.8; }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--gray-100);
}

.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { color: var(--gray-500); font-size: 0.85rem; }

/* ===== ADMIN SIDEBAR ===== */
.admin-wrap { display:flex; gap:0; min-height:100vh; }

.admin-wrap .admin-sidebar {
    width: 220px; flex-shrink:0;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%); color: rgba(255,255,255,0.7);
    display:flex; flex-direction:column;
    position:sticky; top:0; height:100vh;
}

.admin-wrap .sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-wrap .sidebar-header .sidebar-brand { padding: 20px 0; border-bottom: none; }
.admin-wrap .sidebar-brand {
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-wrap .sidebar-brand a {
    color: #fff; font-weight:800; font-size:1.1rem; text-decoration:none;
}

.admin-wrap .sidebar-links {
    flex:1; min-height:0; padding: 12px 0; overflow-y:auto;
}

.admin-wrap .sidebar-link {
    display:flex; align-items:center; gap:8px;
    padding: 12px 20px; color: rgba(255,255,255,0.6);
    text-decoration:none; font-size:0.9rem; font-weight:500;
    transition:all 0.15s; border-left:3px solid transparent;
}

.admin-wrap .sidebar-icon { font-size:1.15rem; width:22px; text-align:center; flex-shrink:0; }

.admin-wrap .sidebar-link:hover {
    color:#fff; background:rgba(255,255,255,0.06); text-decoration:none;
}

.admin-wrap .sidebar-link.active {
    color:#fff; background:rgba(37,99,235,0.2); border-left-color:var(--primary);
}

.admin-wrap .sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1); padding:8px 0; flex-shrink:0;
}

.badge-notif {
    background:var(--danger); color:#fff;
    font-size:0.72rem; font-weight:700; padding:2px 8px;
    border-radius:10px; line-height:1.4;
}
.admin-wrap .badge-notif { margin-left:auto; }
.nav-links .badge-notif { margin-left:4px; }

.admin-wrap .admin-content {
    flex:1; padding:32px; background:var(--gray-50); overflow-y:auto;
}

/* ===== ADMIN MOBILE TOGGLE ===== */
.admin-menu-toggle {
    display: none; position: fixed; top: 12px; left: 12px; z-index: 1001;
    background: var(--gray-900); color: #fff; border: none; width: 40px; height: 40px;
    border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
    flex-direction: column; gap: 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 0;
}
.admin-menu-toggle span {
    display: block; width: 20px; height: 2.5px; background: #fff;
    border-radius: 2px; transition: 0.3s;
}
.admin-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.admin-menu-toggle.active span:nth-child(2) { opacity: 0; }
.admin-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 998;
}
.sidebar-overlay.show { display: block; }

.sidebar-close {
    display: none; background: none; border: none; color: rgba(255,255,255,0.6);
    font-size: 1.5rem; cursor: pointer; padding: 0 4px; line-height: 1;
}
.sidebar-close:hover { color: #fff; }

@media (max-width: 768px) {
    .admin-menu-toggle { display: flex; }

    .admin-wrap .admin-content { padding: 16px; padding-top: 64px; }

    .admin-wrap .admin-sidebar {
        position: fixed; left: -280px; top: 0; bottom: 0; width: 260px;
        z-index: 999; transition: left 0.3s ease;
    }
    .admin-wrap .admin-sidebar.open { left: 0; }

    .admin-wrap .sidebar-links {
        flex:1; min-height:0; overflow-y:auto; padding: 12px 0;
    }

    .sidebar-close { display: block; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 20px; }

    .contact-cards { gap: 10px; }
    .contact-card { padding: 12px 14px; gap: 12px; }
    .contact-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .contact-label { font-size: 0.72rem; }
    .contact-value { font-size: 0.85rem; word-break: break-word; }
}
    .stat-value { font-size: 1.6rem; }
    .admin-content[style*="max-width"] { max-width: none !important; }
}

@media (max-width: 480px) {
    .admin-wrap .admin-content { padding: 12px; padding-top: 60px; }
}

/* ===== ADMIN (old layout - for inner cards) ===== */
.admin-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; margin-top:24px; }

.admin-main .table { margin-bottom: 0; }

.admin-layout .sidebar-card {
    position: sticky;
    top: 24px;
}

.admin-sidebar .form-group { margin-bottom: 14px; }
.admin-sidebar .form-group label { font-size: 0.82rem; }
.admin-sidebar .form-group input,
.admin-sidebar .form-group textarea { font-size: 0.88rem; padding: 8px 12px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 32px 0;
    margin-top: 60px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .order-layout, .topup-container, .admin-layout { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .profile-header { flex-direction: column; text-align: center; }
    .profile-balance { text-align: center; }
    .tariff-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 60px 0 80px; }
    .hero h1 { font-size: 1.8rem; }
    .section { padding: 20px; }
    .order-form { padding: 20px; }
    .contact-card { padding: 10px 12px; gap: 10px; border-radius: 8px; }
    .contact-icon { width: 34px; height: 34px; font-size: 1rem; }
}

/* ===== TABS ===== */
.tab-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.tab-link {
    padding: 10px 20px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.tab-link:hover { color: var(--gray-700); text-decoration: none; }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== PROFILE DETAILS ===== */
.contact-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
}

.contact-cards {
    display: flex; flex-direction: column; gap: 12px;
}

.contact-card {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border-radius: var(--radius-sm);
    background: #fff; border: 1px solid var(--gray-200);
    text-decoration: none; transition: all 0.2s;
    cursor: pointer;
}

.contact-card:hover {
    border-color: var(--primary); box-shadow: var(--shadow-md);
    transform: translateY(-1px); text-decoration: none;
}

.contact-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
    background: var(--primary-light);
}

.contact-info {
    display: flex; flex-direction: column; gap: 2px; min-width: 0;
}

.contact-label {
    font-size: 0.8rem; font-weight: 600; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.3px;
}

.contact-value {
    font-size: 0.95rem; font-weight: 500; color: var(--gray-800);
    word-break: break-word; overflow-wrap: break-word;
}

.detail-row {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 20px;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    min-width: 200px;
    font-weight: 500;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--gray-800);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== MODAL ===== */
.modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:1000; justify-content:center; align-items:center; }
.modal-overlay.show { display:flex; }
.modal-box { background:#fff; border-radius:var(--radius); max-width:600px; width:90%; max-height:80vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:20px 24px; border-bottom:1px solid var(--gray-200); }
.modal-header h3 { margin:0; }
.modal-close { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--gray-400); padding:4px 8px; line-height:1; }
.modal-close:hover { color:var(--gray-600); }
.modal-body { padding:24px; }

/* ===== FOOTER ===== */
.site-footer {
    background:#0f172a; color:#94a3b8; padding:52px 0 0; margin-top:48px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.landing-page .site-footer {
    margin-top: 0;
    padding: 64px 0 0;
}
.footer-grid {
    display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:32px;
}
.footer-brand {
    font-size:1.25rem; font-weight:800; color:#fff; margin-bottom:8px;
    letter-spacing:-0.02em;
}
.footer-desc { font-size:0.88rem; line-height:1.6; color:#64748b; }
.footer-chip {
    display:inline-block; background:rgba(37,99,235,0.15); color:#60a5fa;
    padding:4px 12px; border-radius:20px; font-size:0.78rem; font-weight:600;
    margin-bottom:12px;
}
.footer-info { font-size:0.88rem; line-height:1.8; }
.footer-info a { color:#94a3b8; text-decoration:none; }
.footer-info a:hover { color:#fff; }
.footer-heading {
    font-size:0.9rem; font-weight:700; color:#fff; margin-bottom:12px;
}
.footer-links { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:8px; }
.footer-links a { color:#94a3b8; text-decoration:none; font-size:0.88rem; }
.footer-links a:hover { color:#fff; }
.payment-methods { display:flex; flex-wrap:wrap; gap:8px; }
.payment-badge {
    background:rgba(255,255,255,0.06); color:#cbd5e1;
    padding:6px 14px; border-radius:6px; font-size:0.82rem; font-weight:600;
}
.footer-bottom {
    border-top:1px solid rgba(255,255,255,0.06);
    margin-top:40px; padding:20px 0; text-align:center;
    font-size:0.82rem; color:#475569;
}
@media (max-width:768px) {
    .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:480px) {
    .footer-grid { grid-template-columns:1fr; }
}

/* ===== MISC ===== */
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
