/* Matrix SMM Panel - Complete Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f06292;
    --secondary: #1a1d2e;
    --bg-dark: #13151f;
    --bg-card: #1e2130;
    --bg-input: #252836;
    --text-primary: #ffffff;
    --text-secondary: #8b8fa8;
    --border-color: #2a2d3e;
    --success: #28cb69;
    --warning: #F0AD4E;
    --danger: #FF5858;
    --info: #207EFF;
    --gold: #F0AD4E;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
}

/* TOP NAVBAR */
.navbar {
    background: rgba(26,29,46,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand span { color: var(--primary-light); }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.navbar-nav a:hover { color: var(--text-primary); background: var(--bg-input); }
.navbar-nav a.active { color: var(--primary-light); background: rgba(124,58,237,0.15); }

/* USER NAVBAR */
.user-navbar {
    background: rgba(26,24,48,0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 1rem;
}

.user-nav-links {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    overflow: visible;
    flex: 1;
    flex-wrap: nowrap;
}

.user-nav-links::-webkit-scrollbar { height: 2px; }
.user-nav-links::-webkit-scrollbar-track { background: transparent; }
.user-nav-links::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

.user-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s;
    display: block;
}

.user-nav-links a:hover { color: var(--text-primary); background: var(--bg-input); }
.user-nav-links a.active { color: var(--primary-light); background: rgba(124,58,237,0.15); }

.user-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.balance-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.4); color: white; }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover { background: var(--bg-input); color: var(--text-primary); }

.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-success:hover { transform: translateY(-1px); color: white; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-danger:hover { transform: translateY(-1px); color: white; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.btn-warning:hover { transform: translateY(-1px); color: white; }
.btn-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.82rem; border-radius: 7px; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--primary); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.purple { background: rgba(124,58,237,0.2); }
.stat-icon.green  { background: rgba(16,185,129,0.2); }
.stat-icon.blue   { background: rgba(59,130,246,0.2); }
.stat-icon.gold   { background: rgba(245,158,11,0.2); }
.stat-icon.red    { background: rgba(239,68,68,0.2); }

.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.83rem; color: var(--text-secondary); margin-top: 0.15rem; }

/* FORMS */
.form-group { margin-bottom: 1.2rem; }

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: rtl;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

select.form-control option { background: var(--bg-card); color: var(--text-primary); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-text { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; }

.input-group { position: relative; }
.input-icon {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group .form-control { padding-right: 2.8rem; }

/* TABLES */
.table-wrapper { overflow-x: auto; border-radius: 12px; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

table th {
    background: var(--bg-input);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.85rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(45,43,80,0.5);
    color: var(--text-primary);
    vertical-align: middle;
}

table tr:hover td { background: rgba(124,58,237,0.04); }
table tr:last-child td { border-bottom: none; }

/* BADGES */
.badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-info    { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.badge-secondary { background: rgba(160,160,192,0.15); color: #a0a0c0; border: 1px solid rgba(160,160,192,0.3); }
.badge-gold    { background: rgba(245,158,11,0.2); color: #f59e0b; border: 1px solid rgba(245,158,11,0.4); }

/* ALERTS */
.alert {
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.alert-success { background: rgba(16,185,129,0.1); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.alert-danger  { background: rgba(239,68,68,0.1);  color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.alert-warning { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.alert-info    { background: rgba(59,130,246,0.1); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }

/* MAIN CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-content { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.page-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }

/* LANDING PAGE HERO */
.hero-section {
    min-height: calc(100vh - 65px);
    background: radial-gradient(ellipse at top right, rgba(124,58,237,0.25) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(91,33,182,0.15) 0%, transparent 50%);
    padding: 3rem 1.5rem 3rem;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    direction: ltr;
}

.hero-left, .hero-right {
    direction: rtl;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-title span { color: var(--primary-light); }

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.hero-stat-label { font-size: 0.78rem; color: var(--text-secondary); }

/* LOGIN CARD */
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-card-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.login-tabs {
    display: flex;
    background: var(--bg-input);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.5rem;
    gap: 4px;
}

.login-tab {
    flex: 1;
    padding: 0.6rem;
    text-align: center;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    border: none;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
}

.login-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px rgba(124,58,237,0.4);
}

/* COMPARE CARD */
.compare-card {
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.compare-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text-secondary); }
.compare-row { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid rgba(45,43,80,0.5); font-size: 0.88rem; }
.compare-row:last-child { border-bottom: none; }
.compare-check { color: var(--success); font-size: 1rem; }
.compare-cross { color: var(--danger); font-size: 1rem; }

/* FEATURES SECTION */
.section { padding: 4rem 1.5rem; }
.section-bg { background: rgba(26,24,48,0.5); }
.section-title { text-align: center; font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 0.95rem; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.2s;
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.4); }
.feature-card:hover::before { opacity: 1; }

.feature-num { font-size: 2.5rem; font-weight: 800; color: rgba(124,58,237,0.15); line-height: 1; margin-bottom: 0.5rem; }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.6; }

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.step-num {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; margin: 0 auto 1rem;
    box-shadow: 0 4px 15px rgba(124,58,237,0.4);
}

.step-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.6; }

/* PLATFORM TABS */
.platform-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.platform-tab {
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.2s;
}

.platform-tab.active, .platform-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* PAYMENT METHODS */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.payment-badge {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.payment-badge:hover { border-color: var(--primary); color: var(--primary-light); }

/* FOOTER */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

footer a { color: var(--primary-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.75rem; }

/* PROGRESS BAR */
.progress { background: var(--bg-input); border-radius: 10px; height: 10px; overflow: hidden; margin-top: 0.5rem; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 10px; transition: width 0.8s ease; }

/* MODAL */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.4rem; cursor: pointer; padding: 0.25rem; line-height: 1; }
.modal-close:hover { color: var(--text-primary); }

/* ADMIN SIDEBAR */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    padding: 1.25rem 0.75rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .brand {
    font-size: 1.3rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-sidebar .nav-section {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0.75rem 0.25rem;
    margin-top: 0.75rem;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 0.15rem;
}

.admin-sidebar a:hover { color: var(--text-primary); background: var(--bg-input); }
.admin-sidebar a.active { color: var(--primary-light); background: rgba(124,58,237,0.15); }
.admin-sidebar a .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.admin-main { flex: 1; padding: 1.5rem; overflow: auto; min-width: 0; }

/* LIVE TICKER */
.live-ticker {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.ticker-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite; }
.ticker-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ORDER CALCULATOR */
.calc-box {
    background: rgba(124,58,237,0.08);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.calc-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* GOAL CARD */
.goal-progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.goal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.goal-title { font-weight: 700; font-size: 1rem; }
.goal-progress-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }

/* LEADERBOARD */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.leaderboard-item:hover { border-color: rgba(124,58,237,0.3); }
.leaderboard-item.top-1 { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.05); }
.leaderboard-item.top-2 { border-color: rgba(160,160,192,0.4); }
.leaderboard-item.top-3 { border-color: rgba(180,120,60,0.4); background: rgba(180,120,60,0.05); }

.rank-badge {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 800;
    flex-shrink: 0;
    background: var(--bg-input);
    color: var(--text-secondary);
}

.rank-badge.gold { background: rgba(245,158,11,0.2); color: #f59e0b; }
.rank-badge.silver { background: rgba(160,160,192,0.2); color: #a0a0c0; }
.rank-badge.bronze { background: rgba(180,120,60,0.2); color: #b4783c; }

/* REFERRAL */
.referral-link-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.referral-link-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
}

.referral-link-box input:focus { outline: none; }

/* API KEY BOX */
.api-key-box {
    font-family: monospace;
    font-size: 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--primary-light);
    word-break: break-all;
    letter-spacing: 0.5px;
}

/* PAGINATION */
.pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn:hover { background: var(--bg-input); color: var(--text-primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* SEARCH BAR */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.search-bar .form-control { flex: 1; min-width: 200px; }

/* SERVICE CATALOG */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.2s;
}

.service-item:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-2px); }
.service-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; }
.service-desc { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.75rem; line-height: 1.5; }

.service-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.service-meta-item {
    font-size: 0.78rem;
    background: var(--bg-input);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    color: var(--text-secondary);
}

/* ANNOUNCEMENT BANNER */
.announcement {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.announcement.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: var(--text-primary); }
.announcement.info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: var(--text-primary); }
.announcement.warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); color: var(--text-primary); }
.announcement-title { font-weight: 700; margin-bottom: 0.25rem; }

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.about-icon { font-size: 3rem; margin-bottom: 1rem; }
.about-num { font-size: 2.5rem; font-weight: 800; color: var(--primary-light); }
.about-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.25rem; }

/* ANIMATIONS */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.fade-in { animation: fadeIn 0.3s ease; }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border-color); margin: 1.5rem 0; }

/* GRID UTILS */
.row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.col-6 { flex: 1; min-width: 280px; }
.col-4 { flex: 0 0 calc(33.333% - 1rem); min-width: 250px; }
.col-8 { flex: 0 0 calc(66.666% - 0.75rem); min-width: 280px; }

/* TEXT UTILS */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary-color { color: var(--primary-light); }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }

/* SPACING UTILS */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ADMIN NAV SECTIONS */
.nav-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    padding: 0.75rem 0.75rem 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}
.admin-sidebar .nav-section:first-of-type { border-top: none; margin-top: 0; }

/* CARD HEADER FLEX */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* TEXT UTILITIES */
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-primary-color { color: var(--primary-light); }
.font-bold { font-weight: 700; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.form-text { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; }

/* ROW / COL LAYOUT */
.row { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.col-6 { flex: 1; min-width: 280px; }
.col-8 { flex: 2; min-width: 300px; }

/* SEARCH BAR */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* PAGINATION */
.pagination {
    display: flex;
    gap: 0.4rem;
    padding: 1rem 0;
    align-items: center;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}
.page-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* MODAL HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.modal-close:hover { color: var(--text-primary); }

/* ANNOUNCEMENT CARDS */
.announcement {
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    border: 1px solid;
}
.announcement.success {
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.25);
    color: var(--text-primary);
}
.announcement.info {
    background: rgba(59,130,246,0.08);
    border-color: rgba(59,130,246,0.25);
    color: var(--text-primary);
}
.announcement.warning {
    background: rgba(245,158,11,0.08);
    border-color: rgba(245,158,11,0.25);
    color: var(--text-primary);
}
.announcement-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* LEADERBOARD */
.leaderboard-rank { font-size: 1.3rem; }

/* USER NAV ACTIVE INDICATOR */
.user-nav-links a.active::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    margin-top: 2px;
}

/* GOAL PROGRESS */
.goal-card {
    background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(91,33,182,0.1));
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* SERVICES TABLE */
.service-row { cursor: pointer; transition: background 0.1s; }
.service-row:hover td { background: rgba(124,58,237,0.08); }

/* WALLET */
.wallet-balance {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.wallet-balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}
.wallet-balance-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* REFERRAL */
.referral-link-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}
.referral-link-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--primary-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: left;
}

/* API KEY */
.api-key-box {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--primary-light);
    word-break: break-all;
    direction: ltr;
    text-align: left;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.9rem; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { display: none; }
    .user-navbar { padding: 0 0.75rem; }
    .user-nav-links a { padding: 0.35rem 0.5rem; font-size: 0.8rem; }
    .page-content { padding: 1rem; }
    .hero-section { padding: 2rem 1rem; }
    .section { padding: 2.5rem 1rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1rem; }
}
