/* ========================================================
   TRX EARN — Premium Design System v3.0
   Dark TRX Red Theme | Mobile-First
   ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
    /* TRX Brand Colors */
    --primary: #e53935;
    --primary-hover: #c62828;
    --primary-light: rgba(229, 57, 53, 0.12);
    --primary-glow: rgba(229, 57, 53, 0.25);
    --accent: #ff6f00;
    --accent-light: rgba(255, 111, 0, 0.12);

    /* Status Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.12);
    --info: #06b6d4;
    --info-light: rgba(6, 182, 212, 0.12);

    /* Dark Backgrounds */
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-card2: #18181f;
    --bg-input: #1c1c25;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(229, 57, 53, 0.3);

    /* Text */
    --text: #f0f0f5;
    --text-muted: #888899;
    --text-dim: #52526a;

    /* Border Radius — smaller for cleaner modern look */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
    --shadow-red: 0 4px 20px rgba(229, 57, 53, 0.25);

    /* Transition */
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --content-max: 680px;
    --navbar-h: 58px;
    --bottom-nav-h: 64px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Page wrapper constrains content width on mobile */
.page-wrap {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 16px;
}

/* ════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ef5350);
    color: #fff;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.5);
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ffa726);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 111, 0, 0.3);
}

.btn-accent:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-input);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-card2);
}

.btn-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-success:hover:not(:disabled) {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-round {
    border-radius: 50px;
}

/* ════════════════════════════════════════════════════════
   CARDS & GLASS
════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.card+.card {
    margin-top: 14px;
}

.glass-card {
    background: rgba(17, 17, 24, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-glow {
    border-color: rgba(229, 57, 53, 0.2);
    box-shadow: 0 0 24px rgba(229, 57, 53, 0.12), var(--shadow);
}

/* ════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14);
}

.form-control::placeholder {
    color: var(--text-dim);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 96px;
}

/* Input with icon */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .input-icon {
    position: absolute;
    left: 13px;
    color: var(--text-dim);
    font-size: 15px;
    pointer-events: none;
}

.input-group .form-control {
    padding-left: 40px;
}

.input-group .input-icon-right {
    position: absolute;
    right: 13px;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--transition);
}

.input-group .input-icon-right:hover {
    color: var(--text-muted);
}

.form-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-check>div strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.form-check>div small {
    color: var(--text-muted);
    font-size: 12px;
}

/* ════════════════════════════════════════════════════════
   BADGES
════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.badge-muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════════════════ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.alert i {
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-light);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

.alert-danger {
    background: var(--danger-light);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #fcd34d;
}

.alert-info {
    background: var(--info-light);
    border: 1px solid rgba(6, 182, 212, 0.22);
    color: #67e8f9;
}

/* ════════════════════════════════════════════════════════
   TOP NAVBAR
════════════════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
}

.navbar .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 19px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-brand i {
    -webkit-text-fill-color: var(--primary);
    font-size: 17px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    color: var(--text-muted);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-card2);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-balance-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px 13px;
    font-size: 13px;
    font-weight: 700;
    color: var(--warning);
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
════════════════════════════════════════════════════════ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 12, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: none;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.bottom-nav .bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 4px;
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.bottom-nav .bn-item i {
    font-size: 19px;
    transition: var(--transition);
}

.bottom-nav .bn-item.active {
    color: var(--primary);
}

.bottom-nav .bn-item.active i {
    filter: drop-shadow(0 0 6px rgba(229, 57, 53, 0.6));
}

.bottom-nav .bn-item:hover {
    color: var(--text);
}

.bottom-nav .bn-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: -20px;
}

.bottom-nav .bn-center .bn-fab {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.45);
    border: 3px solid var(--bg);
    transition: var(--transition);
}

.bottom-nav .bn-center .bn-fab:hover {
    transform: scale(1.08);
}

.bottom-nav .bn-center span {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-dim);
}

/* Page content padding */
.page-content {
    padding-top: 12px;
    padding-bottom: 16px;
    width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: grid;
    }

    .page-content {
        padding-bottom: calc(var(--bottom-nav-h) + 12px);
    }

    .nav-links {
        display: none;
    }

    .nav-balance-pill {
        display: none;
    }
}

@media (min-width: 769px) {
    .page-content {
        padding-bottom: 40px;
    }
}

/* ════════════════════════════════════════════════════════
   LANDING NAVBAR
════════════════════════════════════════════════════════ */
.landing-nav {
    background: transparent;
    border-bottom: none;
}

.landing-nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════════════════════
   LANDING HERO
════════════════════════════════════════════════════════ */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        padding: 70px 0 50px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-visual {
        display: none;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-light);
    border: 1px solid rgba(229, 57, 53, 0.22);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 460px;
}

.hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.hero-float-card:nth-child(2) {
    animation-delay: -3s;
}

/* ════════════════════════════════════════════════════════
   STAT CARDS
════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: rgba(229, 57, 53, 0.28);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 10px;
}

.stat-icon.red {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-icon.purple {
    background: rgba(124, 58, 237, 0.12);
    color: #9333ea;
}

.stat-icon.cyan {
    background: var(--info-light);
    color: var(--info);
}

.stat-icon.green {
    background: var(--success-light);
    color: var(--success);
}

.stat-icon.yellow {
    background: var(--warning-light);
    color: var(--warning);
}

/* legacy aliases */
.stat-icon.purple-icon {
    background: rgba(124, 58, 237, 0.12);
    color: #9333ea;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ════════════════════════════════════════════════════════
   BALANCE HERO CARD
════════════════════════════════════════════════════════ */
.balance-hero {
    background: linear-gradient(135deg, #b71c1c, var(--primary) 50%, var(--accent));
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.balance-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.balance-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -20px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.balance-hero-inner {
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.balance-amount {
    font-size: 34px;
    font-weight: 900;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 3px;
}

.balance-currency {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* ════════════════════════════════════════════════════════
   MINING WIDGET
════════════════════════════════════════════════════════ */
.mining-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mining-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.mining-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--warning-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--warning);
}

.mining-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mining-sub {
    font-size: 12px;
    color: var(--text-muted);
}

#mineBtn {
    border-radius: 50px;
    min-width: 130px;
}

#mineBtn.mining-active {
    animation: mine-pulse 1.5s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════
   TASK CARDS
════════════════════════════════════════════════════════ */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

@media (max-width: 600px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.task-card:hover {
    border-color: rgba(229, 57, 53, 0.2);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.1);
}

.task-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.task-type-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.task-type-icon.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
}

.task-type-icon.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

.task-type-icon.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.task-type-icon.globe {
    background: var(--primary-light);
    color: var(--primary);
}

.task-type-icon.twitter {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.task-type-icon.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}

.task-reward-badge {
    background: var(--success-light);
    color: var(--success);
    padding: 4px 11px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.task-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.3;
}

.task-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.task-actions .btn {
    font-size: 13px;
}

.task-hint {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ════════════════════════════════════════════════════════
   MODAL
════════════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px 20px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    animation: modal-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (min-width: 600px) {
    .modal-overlay {
        align-items: center;
        padding: 16px;
    }

    .modal {
        border-radius: var(--radius-lg);
        max-height: 90vh;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
}

.modal-close {
    width: 30px;
    height: 30px;
    background: var(--bg-card2);
    border: none;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ════════════════════════════════════════════════════════
   TABLE
════════════════════════════════════════════════════════ */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
}

.table-header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.table-title {
    font-size: 15px;
    font-weight: 700;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table.data-table thead th {
    background: var(--bg-card2);
    padding: 11px 14px;
    text-align: left;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.data-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text);
    vertical-align: middle;
}

table.data-table tbody tr:last-child td {
    border-bottom: none;
}

table.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
}

.empty-state i {
    font-size: 44px;
    color: var(--text-dim);
    margin-bottom: 14px;
    display: block;
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.empty-state p {
    color: var(--text-dim);
    font-size: 13px;
}

/* ════════════════════════════════════════════════════════
   REFERRAL
════════════════════════════════════════════════════════ */
.referral-link-card {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), rgba(255, 111, 0, 0.06));
    border: 1px solid rgba(229, 57, 53, 0.18);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.referral-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    margin-top: 10px;
    word-break: break-all;
    overflow: hidden;
}

.referral-link-box span {
    flex: 1;
    font-size: 12px;
    color: var(--primary);
    font-family: monospace;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════
   PROFILE
════════════════════════════════════════════════════════ */
.profile-avatar-big {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   AUTH PAGES
════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.13) 0%, transparent 70%);
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.08) 0%, transparent 70%);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin: 0 auto 11px;
    box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════
   ANNOUNCEMENT BANNER
════════════════════════════════════════════════════════ */
.announcement-bar {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(234, 88, 12, 0.07));
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.announcement-bar i {
    color: var(--warning);
    margin-top: 1px;
    flex-shrink: 0;
}

.announcement-bar p {
    font-size: 13px;
    color: #fcd34d;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════
   SOCIAL BTNS
════════════════════════════════════════════════════════ */
.social-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.social-btn.telegram {
    background: #229ED9;
    color: white;
}

.social-btn.whatsapp {
    background: #25D366;
    color: white;
}

/* ════════════════════════════════════════════════════════
   FILE UPLOAD
════════════════════════════════════════════════════════ */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.upload-zone i {
    font-size: 30px;
    color: var(--text-dim);
    margin-bottom: 9px;
    display: block;
}

.upload-zone p {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-zone input[type="file"] {
    display: none;
}

.preview-img {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 10px;
    display: none;
}

/* ════════════════════════════════════════════════════════
   SECTION HEADINGS
════════════════════════════════════════════════════════ */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════
   QUICK ACTIONS
════════════════════════════════════════════════════════ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

@media (max-width: 400px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--bg-card2);
}

.quick-action-btn i {
    font-size: 20px;
}

.quick-action-btn.red i {
    color: var(--primary);
}

.quick-action-btn.purple i {
    color: #9333ea;
}

.quick-action-btn.cyan i {
    color: var(--info);
}

.quick-action-btn.green i {
    color: var(--success);
}

.quick-action-btn.yellow i {
    color: var(--warning);
}

/* ════════════════════════════════════════════════════════
   LANDING SECTIONS
════════════════════════════════════════════════════════ */
.section {
    padding: 70px 0;
}

.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(229, 57, 53, 0.2);
    padding: 4px 13px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.section-title-big {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(229, 57, 53, 0.25);
    box-shadow: 0 0 22px rgba(229, 57, 53, 0.1);
    transform: translateY(-3px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 9px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}

.step-card {
    text-align: center;
    padding: 28px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}

.step-number {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    color: white;
    margin: 0 auto 16px;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 7px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 260px;
}

.footer-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dim);
}

/* ════════════════════════════════════════════════════════
   AD TASK (Monetag) — Coming Soon / Active
════════════════════════════════════════════════════════ */
.ad-task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
}

.ad-task-coming-soon {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.ad-task-badge-coming {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--warning-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ad-task-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 14px;
}

/* ════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════ */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

@keyframes mine-pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
    }

    50% {
        box-shadow: 0 4px 28px rgba(229, 57, 53, 0.65), 0 0 0 6px rgba(229, 57, 53, 0.1);
    }
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes flash-green {

    0%,
    100% {
        color: var(--primary);
    }

    50% {
        color: var(--success);
        transform: scale(1.2);
    }
}

.fade-in {
    animation: fade-in 0.45s ease forwards;
}

.fade-in-2 {
    animation: fade-in 0.45s ease 0.1s both;
}

.fade-in-3 {
    animation: fade-in 0.45s ease 0.2s both;
}

.spin {
    animation: spin 1s linear infinite;
}

/* ════════════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════════ */
.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 12px;
}

.fw-700 {
    font-weight: 700;
}

.w-100 {
    width: 100%;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border);
    margin: 18px 0;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-input);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Copied flash */
.copied-flash {
    animation: flash-green 0.4s ease;
}

/* Prevent horizontal overflow globally */
.page-section {
    width: 100%;
    overflow-x: hidden;
}