/* =============================================
   ROZGAR POINT - COMPLETE STYLESHEET
   Blue Theme: #1e3c72 → #2a5298
   Accent: #ff8c00 (Orange)
   Gold: #ffd700 | Green: #00b894 | Red: #ff4757
   ============================================= */

:root {
    --blue-dark: #1e3c72;
    --blue-mid: #2a5298;
    --blue-light: #3a6bc4;
    --orange: #ff8c00;
    --orange-light: #ffa433;
    --gold: #ffd700;
    --green: #00b894;
    --red: #ff4757;
    --yellow: #fdcb6e;
    --white: #ffffff;
    --bg-light: #f0f4ff;
    --bg-card: #ffffff;
    --text-dark: #1a1a2e;
    --text-mid: #444;
    --text-light: #777;
    --border: #dce4f5;
    --shadow: 0 4px 20px rgba(30,60,114,0.12);
    --shadow-hover: 0 8px 30px rgba(30,60,114,0.22);
    --radius: 14px;
    --radius-sm: 8px;
    --font-main: 'Nunito', sans-serif;
    --font-urdu: 'Baloo Bhaijaan 2', 'Nunito', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
}

/* =============================================
   TOP PATTI
   ============================================= */
.top-patti {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
    color: var(--white);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.patti-left {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pk-flag { font-size: 18px; }

.patti-right {
    flex: 1;
    overflow: hidden;
    margin-left: 20px;
}

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-block;
    animation: ticker 20s linear infinite;
    color: var(--gold);
    font-weight: 700;
}

.ticker-move span {
    margin-right: 60px;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* =============================================
   NAVIGATION
   ============================================= */
.main-nav {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(30,60,114,0.1);
    position: sticky;
    top: 37px;
    z-index: 999;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 6px rgba(255,140,0,0.6));
}

.brand-text {
    font-family: var(--font-urdu);
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-dark);
    letter-spacing: -0.5px;
}

.brand-accent { color: var(--orange); }

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--blue-mid);
    background: var(--bg-light);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--border);
}

.user-balance {
    background: var(--green);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.user-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--blue-dark);
}

.admin-badge { color: var(--orange); }
.staff-badge { color: var(--blue-mid); }

.verified-badge-sm { font-size: 16px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--blue-dark);
    cursor: pointer;
    padding: 6px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
    color: white;
    border-color: var(--blue-mid);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-dark), #152d5a); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-orange {
    background: linear-gradient(135deg, var(--orange), #e67e00);
    color: white;
    border-color: var(--orange);
}
.btn-orange:hover { background: linear-gradient(135deg, #e67e00, #cc7000); transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-success {
    background: linear-gradient(135deg, var(--green), #00a381);
    color: white;
    border-color: var(--green);
}
.btn-success:hover { transform: translateY(-1px); }

.btn-danger {
    background: linear-gradient(135deg, var(--red), #e0213a);
    color: white;
    border-color: var(--red);
}
.btn-danger:hover { transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--blue-mid);
    border-color: var(--blue-mid);
}
.btn-outline:hover { background: var(--blue-mid); color: white; }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-warning { background: linear-gradient(135deg, var(--yellow), #f0a500); color: #333; border-color: var(--yellow); }

/* =============================================
   CARDS & CONTAINERS
   ============================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.card-title {
    font-family: var(--font-urdu);
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-dark);
}

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--blue-mid);
}

.stat-card.orange::before { background: var(--orange); }
.stat-card.green::before { background: var(--green); }
.stat-card.red::before { background: var(--red); }
.stat-card.gold::before { background: var(--gold); }

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
    color: white;
}

.stat-card.orange .stat-icon { background: linear-gradient(135deg, var(--orange-light), var(--orange)); }
.stat-card.green .stat-icon { background: linear-gradient(135deg, #00d2a8, var(--green)); }
.stat-card.red .stat-icon { background: linear-gradient(135deg, #ff6b7a, var(--red)); }
.stat-card.gold .stat-icon { background: linear-gradient(135deg, #ffe566, var(--gold)); color: #333; }

.stat-info { flex: 1; }
.stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.stat-value {
    font-family: var(--font-urdu);
    font-size: 26px;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1;
}
.stat-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Alert card */
.stat-card.alert-card {
    border: 2px solid var(--red);
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0%, 100% { border-color: var(--red); }
    50% { border-color: #ff6b7a; }
}

/* =============================================
   TABLES
   ============================================= */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: white;
    padding: 13px 16px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-light); }

.table tbody tr:nth-child(even) td { background: #f8faff; }
.table tbody tr:nth-child(even):hover td { background: var(--bg-light); }

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

.form-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.form-label .required { color: var(--red); margin-left: 3px; }

.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgba(42,82,152,0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232a5298' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 5px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* =============================================
   ALERTS & BADGES
   ============================================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid;
}

.alert-success { background: #e8fdf6; color: #00795e; border-color: var(--green); }
.alert-danger { background: #fff0f2; color: #cc1c2e; border-color: var(--red); }
.alert-warning { background: #fffbec; color: #b87800; border-color: var(--yellow); }
.alert-info { background: #eff4ff; color: var(--blue-mid); border-color: var(--blue-mid); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-green { background: #e8fdf6; color: #00795e; border: 1px solid #b0eedd; }
.badge-red { background: #fff0f2; color: #cc1c2e; border: 1px solid #ffb3bb; }
.badge-orange { background: #fff4e6; color: #b85c00; border: 1px solid #ffd0a0; }
.badge-blue { background: #eff4ff; color: var(--blue-mid); border: 1px solid #c0d0f0; }
.badge-gold { background: #fffbec; color: #8a6500; border: 1px solid #ffe0a0; }
.badge-gray { background: #f0f0f0; color: #555; border: 1px solid #ddd; }
.badge-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; animation: blink 1.5s infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-family: var(--font-urdu);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
}

.page-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* =============================================
   HOMEPAGE
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 50%, #3a5db8 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,140,0,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255,215,0,0.05) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,215,0,0.2);
    border: 1px solid rgba(255,215,0,0.5);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-urdu);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .accent { color: var(--orange); }
.hero-title .gold { color: var(--gold); }

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
    color: white;
}

.hero-stat-num {
    font-family: var(--font-urdu);
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    display: block;
}

.hero-stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.step-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.2s;
}

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

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
    color: white;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon { font-size: 36px; margin-bottom: 14px; }

.step-title {
    font-family: var(--font-urdu);
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.step-desc { font-size: 13px; color: var(--text-mid); line-height: 1.5; }

/* =============================================
   VERIFIED BANNER
   ============================================= */
.verified-banner {
    background: linear-gradient(135deg, var(--green), #00a381);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 15px;
}

.verified-banner-icon { font-size: 22px; }

/* =============================================
   PROFILE VERIFIED BADGE
   ============================================= */
.profile-pic-wrap {
    position: relative;
    display: inline-block;
}

.profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
    color: white;
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.verified-checkmark {
    position: absolute;
    bottom: -2px;
    right: -6px;
    width: 28px;
    height: 28px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(0,184,148,0.4);
}

/* =============================================
   SPEEDOMETER (Success Score)
   ============================================= */
.speedometer-wrap {
    text-align: center;
    padding: 16px 0 8px;
}

.speedometer {
    width: 120px;
    height: 60px;
    margin: 0 auto 10px;
    position: relative;
}

.speedometer svg { width: 100%; height: 100%; }

.speed-value {
    font-family: var(--font-urdu);
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-dark);
    display: block;
}

.speed-label { font-size: 12px; color: var(--text-light); font-weight: 600; }

/* =============================================
   TASK CARDS
   ============================================= */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.task-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.task-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--blue-light); }

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-mid), var(--orange));
}

.task-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--blue-mid);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.task-title {
    font-family: var(--font-urdu);
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-light);
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-price {
    font-family: var(--font-urdu);
    font-size: 22px;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 14px;
}

.task-price span { font-size: 13px; color: var(--text-light); font-weight: 600; }

.task-screenshots {
    background: #fff4e6;
    border: 1px solid #ffd0a0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    color: #b85c00;
    font-weight: 600;
    margin-bottom: 14px;
}

.verified-only-tag {
    background: linear-gradient(135deg, var(--green), #00a381);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   TIMER COUNTDOWN
   ============================================= */
.countdown-timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #fff0f2;
    color: var(--red);
    border: 1px solid #ffb3bb;
    white-space: nowrap;
}

.countdown-timer.safe {
    background: #e8fdf6;
    color: var(--green);
    border-color: #b0eedd;
}

/* =============================================
   SPLIT SCREEN (Staff Proof Review)
   ============================================= */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.proof-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.proof-screenshot {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.proof-screenshot:hover { border-color: var(--blue-mid); }

.proof-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   TABS
   ============================================= */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn:hover { color: var(--blue-mid); }
.tab-btn.active { color: var(--blue-mid); border-bottom-color: var(--blue-mid); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.modal-title { font-family: var(--font-urdu); font-size: 18px; font-weight: 700; color: var(--blue-dark); }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-light); padding: 4px; }
.modal-close:hover { color: var(--red); }

/* =============================================
   REFERRAL BOX
   ============================================= */
.referral-box {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.referral-link-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.referral-link {
    font-size: 13px;
    word-break: break-all;
    flex: 1;
    color: var(--gold);
    font-weight: 600;
}

/* =============================================
   FAQ
   ============================================= */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14px;
    color: var(--blue-dark);
    transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-light); }
.faq-question.active { background: var(--bg-light); color: var(--blue-mid); }

.faq-toggle { font-size: 18px; transition: transform 0.3s; flex-shrink: 0; }
.faq-question.active .faq-toggle { transform: rotate(45deg); }

.faq-answer {
    display: none;
    padding: 16px 20px;
    background: #f8faff;
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
    border-top: 1px solid var(--border);
}

.faq-answer.active { display: block; }

/* =============================================
   LEVELS & RANKINGS
   ============================================= */
.level-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.2s;
}

.level-card.newbie { border-color: #ddd; }
.level-card.verified { border-color: var(--green); background: #f0fdf8; }
.level-card.pro { border-color: var(--gold); background: #fffdf0; }

.level-badge-icon { font-size: 40px; margin-bottom: 10px; }
.level-name { font-family: var(--font-urdu); font-size: 18px; font-weight: 800; color: var(--blue-dark); margin-bottom: 6px; }
.level-req { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }

/* =============================================
   TASK FORM (Post Task)
   ============================================= */
.task-calc-box {
    background: linear-gradient(135deg, #e8f4ff, #f0f7ff);
    border: 2px solid var(--blue-light);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
}

.task-calc-title { font-family: var(--font-urdu); font-size: 15px; font-weight: 700; color: var(--blue-dark); margin-bottom: 14px; }

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.calc-row:last-child { border-bottom: none; font-weight: 800; font-size: 16px; color: var(--blue-dark); }
.calc-row .calc-value { font-weight: 700; color: var(--blue-mid); }
.calc-row.total .calc-value { color: var(--green); font-size: 22px; }

.service-info-box {
    background: #fff8e6;
    border: 1px solid #ffd0a0;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin: 10px 0;
    font-size: 13px;
    color: #7a4500;
}

/* =============================================
   DEPOSIT/WITHDRAWAL
   ============================================= */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.payment-method {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
}

.payment-method:hover, .payment-method.selected {
    border-color: var(--blue-mid);
    background: var(--bg-light);
    color: var(--blue-mid);
}

.payment-icon { font-size: 26px; display: block; margin-bottom: 6px; }

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    background: linear-gradient(135deg, var(--blue-dark), #0f2040);
    color: rgba(255,255,255,0.8);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-container .brand-text { color: white; }
.footer-container .brand-accent { color: var(--orange); }

.footer-tagline {
    font-size: 13px;
    margin-top: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 24px 0;
    font-size: 14px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    font-size: 13px;
    opacity: 0.6;
}

/* =============================================
   ADMIN / STAFF SIDEBAR PANEL
   ============================================= */
.panel-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: calc(100vh - 80px);
}

.panel-sidebar {
    background: linear-gradient(180deg, var(--blue-dark) 0%, #152d5a 100%);
    color: white;
    padding: 24px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-user {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-user .profile-pic {
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

.sidebar-user-name { font-weight: 700; font-size: 15px; }
.sidebar-user-role { font-size: 12px; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.5px; }

.sidebar-menu { list-style: none; }

.sidebar-menu li a,
.sidebar-menu li button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-main);
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-menu li a:hover,
.sidebar-menu li button:hover { background: rgba(255,255,255,0.08); color: white; padding-left: 24px; }

.sidebar-menu li a.active { background: rgba(255,255,255,0.12); color: white; border-right: 3px solid var(--orange); }

.sidebar-menu-icon { font-size: 18px; width: 22px; }
.sidebar-badge { margin-left: auto; background: var(--red); color: white; font-size: 10px; padding: 2px 7px; border-radius: 10px; }
.sidebar-section { font-size: 10px; opacity: 0.4; text-transform: uppercase; letter-spacing: 1px; padding: 16px 20px 6px; }

.panel-content { padding: 30px; background: var(--bg-light); }

/* =============================================
   TRANSACTION TABLE
   ============================================= */
.tx-amount-credit { color: var(--green); font-weight: 700; }
.tx-amount-debit { color: var(--red); font-weight: 700; }

/* =============================================
   IMAGE LIGHTBOX
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: fixed; top: 20px; right: 20px; color: white; font-size: 30px; cursor: pointer; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .panel-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
    .top-patti { flex-direction: column; gap: 4px; font-size: 11px; padding: 6px 12px; }
    .patti-right { display: none; }
    
    .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 60px; left: 0; right: 0; background: white; padding: 16px; box-shadow: var(--shadow); z-index: 998; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .main-nav { position: sticky; top: 0; }
    
    .hero-title { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .split-screen { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .payment-methods { grid-template-columns: 1fr 1fr; }
    
    .panel-layout { grid-template-columns: 1fr; }
    .panel-sidebar { display: none; }
    
    .hero-section { padding: 50px 16px; }
    .container { padding: 20px 12px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 28px; }
    .table { font-size: 12px; }
    .table th, .table td { padding: 8px 10px; }
    .payment-methods { grid-template-columns: 1fr; }
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.w-100 { width: 100%; }
.hidden { display: none; }
.section-title {
    font-family: var(--font-urdu);
    font-size: 26px;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 8px;
}
.section-subtitle { font-size: 15px; color: var(--text-mid); margin-bottom: 24px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.loading { text-align: center; padding: 40px; color: var(--text-light); font-size: 16px; }

/* Warning Badge */
.warning-badge-profile {
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: blink 1s infinite;
    display: inline-block;
}

.red-zone-badge {
    background: linear-gradient(135deg, #ff4757, #cc1c2e);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Section separators */
.section {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Color bar */
.color-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid), var(--orange));
    border-radius: 3px;
    margin-bottom: 24px;
}
