/* =========================================================== */
/*             AI Chart Analyzer - Universal Theme             */
/*       (Landing + Auth + Dashboard + Pricing + Tables)       */
/* =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- COLORS --- */
    --bg-deep: #02000f; /* Deep space black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* --- ACCENTS --- */
    --primary: #6366f1;
    --accent: #a855f7;
    --cyan: #06b6d4;
    --orange: #f97316;
    
    /* --- GRADIENTS & GLASS --- */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
    --border-light: rgba(255, 255, 255, 0.08);
    --glass: blur(20px);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Modern Grid Background */
    background-image: 
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
    min-height: 100vh;
}

a { text-decoration: none; }

/* ========================================= */
/*           AMBIENT LIGHT EFFECTS           */
/* ========================================= */
.ambient-glow {
    position: fixed;
    width: 600px; height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: pulseGlow 10s infinite alternate;
    pointer-events: none;
}
.glow-1 { top: -150px; left: -150px; background: var(--primary); animation-delay: 0s; }
.glow-2 { bottom: -150px; right: -150px; background: var(--accent); animation-delay: 2s; }
.glow-3 { top: 40%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 400px; background: var(--cyan); opacity: 0.25; animation-delay: 4s; }

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.5; }
}

/* ========================================= */
/*                 NAVBAR                    */
/* ========================================= */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(2, 0, 15, 0.8);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    transition: 0.3s;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 22px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 32px; height: 32px; background: var(--primary-gradient); border-radius: 8px; display: grid; place-items: center; box-shadow: 0 0 15px rgba(99, 102, 241, 0.6); }

.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-menu a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: 0.3s; position: relative; }
.nav-menu a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.6); }

/* ========================================= */
/*                 BUTTONS                   */
/* ========================================= */
.btn { 
    padding: 12px 30px; border-radius: 50px; font-weight: 600; 
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; 
    font-size: 15px; cursor: pointer; border: 1px solid transparent;
}

/* Primary Button (Standard) */
.btn-primary { 
    background: var(--primary-gradient); color: #ffffff; 
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); border: none; 
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(99, 102, 241, 0.7); }

/* Chrome Ghost Button */
.btn-chrome { 
    background: rgba(255,255,255,0.03); border-color: var(--border-light); color: #fff; 
}
.btn-chrome:hover { 
    background: rgba(255,255,255,0.08); border-color: #fff; transform: translateY(-2px);
}

/* === GLOWING DOWNLOAD BUTTON (ANIMATED) === */
.btn-glow-anim {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex; align-items: center; gap: 10px;
    overflow: hidden; transition: 0.3s; z-index: 1;
}
.btn-glow-anim::before {
    content: ''; position: absolute; top: 0; left: -50%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), #a855f7, rgba(6, 182, 212, 0.8), transparent);
    transform: skewX(-20deg); transition: 0.5s; z-index: -1;
    animation: shine 3s infinite; opacity: 0.7;
}
.btn-glow-anim::after {
    content: ''; position: absolute; inset: 2px; background: #050505; border-radius: 50px; z-index: -1;
}
.btn-glow-anim:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(99, 102, 241, 0.6); border-color: var(--primary); }

@keyframes shine { 0% { left: -100%; } 50% { left: 100%; } 100% { left: 100%; } }

/* ========================================= */
/*               HERO SECTION                */
/* ========================================= */
.hero-section { padding-top: 160px; padding-bottom: 100px; position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }

.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc; font-size: 13px; font-weight: 600; margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.hero-content h1 { font-size: 64px; line-height: 1.1; font-weight: 800; margin-bottom: 24px; }
.hero-content h1 span { background: linear-gradient(to right, #fff 20%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 550px; line-height: 1.7; }
.hero-btns { display: flex; gap: 20px; align-items: center; }

/* Robot Frame */
.robot-wrapper { position: relative; z-index: 2; animation: floatHero 6s ease-in-out infinite; }
.robot-frame {
    position: relative; padding: 3px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    box-shadow: 0 20px 80px -20px rgba(99, 102, 241, 0.4);
}
.robot-inner { border-radius: 24px; overflow: hidden; position: relative; background: #000; }
.robot-inner img { width: 100%; display: block; mask-image: linear-gradient(to bottom, black 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%); }

@keyframes floatHero { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Stats Bar */
.stats-bar { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: rgba(255,255,255,0.02); padding: 30px 0; margin-top: -40px; position: relative; z-index: 10; backdrop-filter: blur(5px); }
.stats-flex { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.stat-box h3 { font-size: 32px; font-weight: 700; color: #fff; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-box p { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ========================================= */
/*                FEATURES                   */
/* ========================================= */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 18px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    padding: 35px; border-radius: 24px; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.feature-card::before {
    content: ""; position: absolute; inset: 0; padding: 2px; border-radius: 24px; 
    background: var(--primary-gradient); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; 
    opacity: 0; transition: 0.4s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 50px rgba(0,0,0,0.3); background: rgba(255,255,255,0.03); }

.icon-box { width: 50px; height: 50px; background: rgba(99, 102, 241, 0.1); color: var(--primary); border-radius: 12px; display: grid; place-items: center; font-size: 24px; margin-bottom: 20px; transition: 0.3s; }
.feature-card:hover .icon-box { background: var(--primary); color: #fff; box-shadow: 0 0 20px var(--primary); }
.feature-card h3 { font-size: 24px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 16px; }

/* ========================================= */
/*                PRICING                    */
/* ========================================= */
.pricing-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 3 Equal Columns */
    gap: 30px; margin-top: 40px;
}

.price-card {
    background: rgba(20, 20, 35, 0.6); border: 1px solid var(--border-light);
    padding: 40px 30px; border-radius: 24px; text-align: center; transition: 0.4s;
    display: flex; flex-direction: column; position: relative; backdrop-filter: blur(10px);
}
/* Featured Card (Middle) */
.price-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(20, 20, 35, 0.8) 100%);
    border-color: var(--primary); transform: scale(1.05); z-index: 2;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}
.price-card:nth-child(2)::before {
    content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary-gradient); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff;
}
.price-card:hover { border-color: var(--accent); transform: translateY(-10px) scale(1.02); }
.price-card:nth-child(2):hover { transform: translateY(-10px) scale(1.08); }

.price-tag { font-size: 48px; font-weight: 800; margin-bottom: 30px; color: #fff; }
.price-tag small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.features-list { text-align: left; margin-bottom: 30px; flex-grow: 1; list-style: none; }
.features-list li { margin-bottom: 15px; color: #ddd; display: flex; align-items: center; gap: 10px; }
.features-list li span { color: var(--accent); background: rgba(168, 85, 247, 0.1); padding: 4px; border-radius: 50%; font-size: 14px; }

/* ========================================= */
/*          LOGIN / REGISTER PAGES           */
/* ========================================= */
.auth-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px; position: relative; overflow: hidden;
}
.auth-card {
    width: 100%; max-width: 400px; background: rgba(20, 20, 35, 0.8);
    backdrop-filter: blur(30px); border: 1px solid var(--border-light);
    padding: 40px; border-radius: 24px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); position: relative;
}
.auth-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary-gradient); }
.auth-card h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.auth-card p { color: var(--text-muted); margin-bottom: 30px; }

.form-control {
    width: 100%; padding: 14px; border-radius: 12px; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light); color: #fff; font-size: 15px; margin-bottom: 20px;
    transition: 0.3s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); background: rgba(0,0,0,0.5); }
.auth-links { margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-links a { color: var(--accent); font-weight: 600; }

/* Alert Box */
.alert { padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; text-align: left; }
.alert-error { background: rgba(255, 61, 0, 0.1); border: 1px solid rgba(255, 61, 0, 0.3); color: #ff3d00; }
.alert-success { background: rgba(0, 230, 118, 0.1); border: 1px solid rgba(0, 230, 118, 0.3); color: #00e676; }

/* ========================================= */
/*           DASHBOARD & TABLES              */
/* ========================================= */
.dashboard-header { margin-top: 100px; margin-bottom: 40px; }
.dashboard-header h1 { font-size: 36px; color: #fff; margin-bottom: 10px; }
.dashboard-header p { color: var(--text-muted); }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }

/* Dash Card */
.dash-card {
    background: var(--bg-card); border: 1px solid var(--border-light);
    padding: 30px; border-radius: 24px; position: relative; overflow: hidden;
}
.dash-card h3 { font-size: 18px; color: var(--text-muted); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.dash-card .big-number { font-size: 48px; font-weight: 800; color: #fff; }

/* Table */
.table-container {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: 24px; padding: 30px; overflow-x: auto; backdrop-filter: blur(10px);
}
.table-title { font-size: 20px; color: #fff; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; min-width: 600px; }
th { text-align: left; padding: 15px; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border-light); }
td { padding: 15px; color: #fff; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
tr:last-child td { border-bottom: none; }

.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-success { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.status-failed { background: rgba(255, 61, 0, 0.15); color: #ff3d00; border: 1px solid rgba(255, 61, 0, 0.3); }
.status-pending { background: rgba(255, 152, 0, 0.15); color: #ff9800; border: 1px solid rgba(255, 152, 0, 0.3); }

/* ========================================= */
/*                 FOOTER                    */
/* ========================================= */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--border-light); margin-top: 100px; background: #02000f; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 14px; transition: 0.3s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-light); padding-top: 30px; color: var(--text-muted); font-size: 13px; }

/* ========================================= */
/*               RESPONSIVE                  */
/* ========================================= */
.mobile-toggle { display: none; font-size: 30px; color: #fff; cursor: pointer; }

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content h1 { font-size: 42px; }
    .mobile-toggle { display: block; }
    .nav-menu { position: fixed; top: 70px; left: 0; width: 100%; background: #02000f; flex-direction: column; padding: 30px; border-bottom: 1px solid var(--border-light); display: none; }
    .nav-menu.active { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* ... (पुराना कोड वैसे ही रहने दें) ... */

/* === NEW: PREMIUM AFFILIATE SECTION === */
.affiliate-section {
    position: relative;
    padding: 100px 0;
}

.affiliate-card {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.8), rgba(15, 15, 25, 0.9));
    border: 1px solid rgba(168, 85, 247, 0.3); /* Purple border */
    border-radius: 30px;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Background Effect inside card */
.affiliate-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.15), transparent 70%); /* Green Glow for Money */
    z-index: 0;
    pointer-events: none;
}

.aff-content { z-index: 1; flex: 1; }
.aff-visuals { z-index: 1; flex: 1; }

.aff-badge {
    background: rgba(0, 230, 118, 0.1); color: #00e676;
    padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 5px; margin-bottom: 15px;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.aff-content h2 { font-size: 42px; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.aff-content p { color: var(--text-muted); font-size: 16px; margin-bottom: 30px; max-width: 450px; }

/* Affiliate Benefits Grid */
.aff-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.aff-benefit-item {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.03);
    padding: 12px 15px; border-radius: 12px;
    border: 1px solid var(--border-light);
}
.aff-benefit-item .icon {
    color: #a855f7; font-size: 20px;
    background: rgba(168, 85, 247, 0.1); padding: 5px; border-radius: 50%;
    display: grid; place-items: center;
}
.aff-benefit-item span { font-size: 14px; font-weight: 600; color: #eee; }

/* Floating Stats Card visual */
.aff-stat-card {
    background: linear-gradient(180deg, #1a1c23 0%, #0f1116 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 25px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: 0.5s;
}
.aff-stat-card:hover { transform: perspective(1000px) rotateY(0deg); border-color: #00e676; }

.stat-row { display: flex; justify-content: space-between; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.stat-row:last-child { border: none; padding-bottom: 0; margin-bottom: 0; }
.stat-val { font-size: 18px; font-weight: 700; color: #fff; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-icon-money { color: #00e676; font-size: 24px; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .affiliate-card { flex-direction: column; text-align: center; gap: 30px; }
    .aff-content p { margin: 0 auto 30px; }
    .aff-benefits { text-align: left; }
}
@media (max-width: 600px) {
    .aff-benefits { grid-template-columns: 1fr; }
    .affiliate-card { padding: 30px 20px; }
    .aff-content h2 { font-size: 32px; }
    .aff-stat-card { transform: none; }
}

/* ========================================= */
/*          PARTNER DASHBOARD STYLES         */
/* ========================================= */

/* Top Spacing for Dashboard */
.partner-container {
    max-width: 1200px; margin: 0 auto; padding: 120px 24px 50px;
}

/* Stats Grid */
.partner-stats {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; margin-bottom: 40px;
}

.p-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 30px; border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
    transition: transform 0.3s;
}
.p-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }

/* Glow Effect behind cards */
.p-card::before {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 150px; height: 150px; background: var(--primary);
    filter: blur(80px); opacity: 0.2; border-radius: 50%; pointer-events: none;
}

.p-card h3 { font-size: 16px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.p-card .val { font-size: 42px; font-weight: 800; color: #fff; }
.p-card .sub-text { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

/* Action Grid (Link & Bank) */
.action-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-bottom: 40px;
}

/* Copy Link Box */
.referral-box {
    background: linear-gradient(145deg, rgba(30,30,40,0.8), rgba(20,20,30,0.9));
    padding: 30px; border-radius: 20px; border: 1px solid var(--border-light);
}
.link-display {
    display: flex; background: rgba(0,0,0,0.3); border: 1px solid var(--border-light);
    border-radius: 12px; padding: 5px; margin-top: 15px; align-items: center;
}
.link-text {
    flex: 1; color: var(--accent); font-family: monospace; font-size: 14px;
    padding: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* Bank Form */
.bank-card {
    background: var(--bg-card); padding: 30px; border-radius: 20px; border: 1px solid var(--border-light);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.bank-input {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--border-light);
    padding: 12px; border-radius: 8px; color: #fff; outline: none; font-size: 14px;
}
.bank-input:focus { border-color: var(--primary); }

/* Mobile Responsive */
@media (max-width: 900px) {
    .action-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .partner-container { padding-left: 15px; padding-right: 15px; }
    .form-grid-2 { grid-template-columns: 1fr; }
    .p-card .val { font-size: 32px; }
    .navbar .btn { padding: 8px 15px; font-size: 13px; }
}

/* ... (ऊपर का कोड वैसा ही रहने दें) ... */

/* ========================================= */
/*           MOBILE RESPONSIVE FIX           */
/*        (Full Vertical Stack & Scroll)     */
/* ========================================= */

.mobile-toggle { display: none; font-size: 30px; color: #fff; cursor: pointer; }

/* Tablet & Mobile Breakpoint */
@media (max-width: 992px) {
    /* Tablet पर भी ग्रिड को थोड़ा सरल बनाएं */
    .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .action-grid { grid-template-columns: 1fr; } /* Partner dashboard specific */
}

/* STRICT MOBILE VIEW (Phones) */
@media (max-width: 768px) {
    
    /* 1. Navbar & Body Spacing */
    .hero-section, .partner-container, .section { padding-top: 100px; }
    .partner-container { padding-left: 15px; padding-right: 15px; }
    .container { padding: 0 15px; }

    /* 2. Grid Reset: सब कुछ एक के नीचे एक (1 Column) */
    .hero-grid, 
    .features-grid, 
    .stats-grid, 
    .pricing-grid, 
    .footer-grid, 
    .dashboard-grid, 
    .partner-stats, 
    .action-grid,
    .form-grid-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 3. Mobile Menu */
    .mobile-toggle { display: block; }
    .nav-menu { 
        position: fixed; top: 65px; left: 0; width: 100%; 
        background: #02000f; flex-direction: column; padding: 30px; 
        border-bottom: 1px solid var(--border-light); 
        display: none; gap: 20px; z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .nav-menu.active { display: flex; }

    /* 4. Partner Dashboard Cards */
    .p-card, .referral-box, .bank-card, .dash-card, .table-container {
        width: 100% !important;
        padding: 20px !important; /* अंदर का स्पेस कम करें */
        margin-bottom: 10px;
    }
    
    /* Stats का फॉन्ट साइज छोटा करें */
    .p-card .val { font-size: 32px; }
    
    /* 5. Long Link Fix (Referral Box) */
    .link-display {
        flex-direction: column; /* बटन नीचे लाएं */
        align-items: stretch;
        gap: 10px;
    }
    
    .link-text {
        display: block;
        width: 100%;
        overflow-x: auto; /* अगर लिंक बड़ा है तो स्क्रॉल करें, स्क्रीन न तोड़ें */
        white-space: nowrap;
        font-size: 12px;
        padding-bottom: 5px; /* स्क्रॉल बार के लिए जगह */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Scrollbar को पतला करें */
    .link-text::-webkit-scrollbar { height: 4px; }
    .link-text::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

    /* 6. Share Buttons Stack */
    .share-actions {
        flex-direction: column;
    }
    .btn-social { width: 100%; justify-content: center; }

    /* 7. Tables Scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iPhone */
    }
    table { min-width: 600px; } /* टेबल को पिचकने से रोकें */

    /* 8. Hero Text Alignment */
    .hero-content, .section-header { text-align: center; }
    .hero-content h1 { font-size: 36px; }
    .hero-btns { justify-content: center; }
    .robot-wrapper { max-width: 280px; margin: 0 auto; }

    /* 9. Inputs & Forms */
    input, button { font-size: 16px !important; } /* iPhone zoom fix */
}

/* ... (ऊपर का सारा कोड वैसा ही रहेगा) ... */

/* === NEW: SOCIAL SHARE BUTTONS === */
.share-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.2s;
    text-decoration: none; /* Link ke liye */
    min-width: 100px;
}
.btn-social:hover { transform: translateY(-2px); color: #fff; }

.btn-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.btn-telegram { background: linear-gradient(135deg, #0088cc, #005f8d); }
.btn-native { background: var(--primary-gradient); }

/* === MOBILE RESPONSIVE FIXES === */
.mobile-toggle { display: none; font-size: 28px; cursor: pointer; color: #fff; }

@media (max-width: 768px) {
    .partner-container { padding: 100px 15px 30px; }
    
    /* ग्रिड को सिंगल कॉलम करें */
    .partner-stats, .action-grid, .form-grid-2, .dashboard-grid, .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    /* कार्ड्स के अंदर का कंटेंट स्क्रीन से बाहर न जाए */
    .p-card, .referral-box, .bank-card, .table-container, .db-card {
        padding: 20px;
        width: 100%;
        overflow: hidden; /* एक्स्ट्रा कंटेंट को कंटेनर में रखें */
    }

    /* लिंक बॉक्स को स्क्रॉल करने योग्य बनाएं */
    .link-display {
        width: 100%;
        overflow-x: auto; /* क्षैतिज स्क्रॉल */
        white-space: nowrap;
    }
    
    /* लिंक टेक्स्ट को छोटा या स्क्रॉल करें */
    .link-text {
        font-size: 12px;
    }

    /* टेबल को मोबाइल पर स्क्रॉल करने योग्य बनाएं */
    .table-container {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table { min-width: 600px; } /* टेबल को छोटा होने से रोकें, स्क्रॉल करवाएं */

    /* नेविगेशन */
    .nav-menu { 
        position: fixed; top: 70px; left: 0; width: 100%; 
        background: #02000f; flex-direction: column; 
        padding: 30px; border-bottom: 1px solid var(--border-light); 
        display: none; z-index: 999;
    }
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: block; }

    /* शेयर बटन को फुल विड्थ करें */
    .share-actions { flex-direction: column; }
    .btn-social { width: 100%; }
}

/* ... (ऊपर का कोड वैसे ही रहने दें) ... */

/* === NEW: ROUND SOCIAL BUTTONS === */
.share-actions {
    display: flex;
    gap: 15px; /* बटनों के बीच जगह */
    margin-top: 15px;
    align-items: center;
}

.btn-social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-social-icon:hover {
    transform: translateY(-3px);
    color: #fff;
}

.bg-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3); }
.bg-telegram { background: linear-gradient(135deg, #0088cc, #005f8d); box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3); }
.bg-native { background: var(--primary-gradient); box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); }


/* ========================================= */
/*           MOBILE RESPONSIVE FIX           */
/* ========================================= */
.mobile-toggle { display: none; font-size: 30px; color: #fff; cursor: pointer; }

@media (max-width: 992px) {
    .action-grid { grid-template-columns: 1fr; } /* Tablet fix */
}

@media (max-width: 768px) {
    
    /* 1. Main Spacing Fix */
    .partner-container { padding: 100px 15px 40px 15px; }
    .container { padding: 0; }

    /* 2. Force Single Column Layout */
    .partner-stats, 
    .action-grid, 
    .form-grid-2, 
    .footer-grid,
    .pricing-grid,
    .dashboard-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 3. Cards Fix */
    .p-card, .referral-box, .bank-card, .dash-card {
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 4. Link Box Fix (Scrollable) */
    .link-display {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }
    .link-text {
        width: 100%;
        overflow-x: auto; /* Allow scrolling for long links */
        white-space: nowrap;
        display: block;
        padding-bottom: 5px;
        font-size: 13px;
        background: rgba(0,0,0,0.2);
    }

    /* 5. Stats Font Size */
    .p-card .val { font-size: 32px; }

    /* 6. Tables Fix */
    .table-container {
        padding: 15px;
        overflow-x: auto; /* Important for tables */
        width: 100%;
        box-sizing: border-box;
    }
    table { min-width: 600px; } /* Ensure table doesn't squish */

    /* 7. Nav Menu */
    .mobile-toggle { display: block; }
    .nav-menu { 
        position: fixed; top: 70px; left: 0; width: 100%; 
        background: #02000f; flex-direction: column; padding: 30px; 
        border-bottom: 1px solid var(--border-light); 
        display: none; z-index: 999;
    }
    .nav-menu.active { display: flex; }
}

/* === REFERRAL BOX (Compact & Stylish) === */
.referral-box {
    background: linear-gradient(145deg, rgba(30,30,40,0.9), rgba(20,20,30,0.95));
    padding: 20px; /* Reduced padding */
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.referral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.referral-header h3 { margin: 0; font-size: 16px; color: #fff; font-weight: 700; }
.referral-desc { color: var(--text-muted); font-size: 12px; margin-bottom: 15px; }

/* Link Display Area */
.link-display {
    display: flex;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 4px;
    align-items: center;
    margin-bottom: 15px;
}
.link-icon { padding: 0 10px; color: var(--text-muted); }
.link-text {
    flex: 1;
    color: var(--accent);
    font-family: monospace;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Hides long text */
    padding-right: 10px;
}
.btn-copy {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* Social Share Buttons (Icon + Text) */
.share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 in a row */
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-social:hover { transform: translateY(-2px); }

.whatsapp { background: #25D366; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2); }
.telegram { background: #0088cc; box-shadow: 0 4px 10px rgba(0, 136, 204, 0.2); }
.native { background: var(--bg-card); border-color: var(--border-light); color: var(--text-muted); }
.native:hover { background: var(--bg-card); color: #fff; border-color: #fff; }

/* Mobile Tweaks */
@media (max-width: 600px) {
    .share-actions { grid-template-columns: 1fr; } /* Stack on mobile */
}