/* ============================================
   SWEET TASKS - HOME DASHBOARD STYLES
   Dark Luxury Cyberpunk & Glassmorphism Theme
   (Fully Responsive & Zero-Overflow Architecture)
   ============================================ */

/* ── MAIN CONTENT & AMBIENT CANVAS ──────────── */
.main-content {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    width: 100%;
}

/* Ambient Background Radial Glow */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 25%;
    right: 25%;
    height: 380px;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.20) 0%, rgba(6, 182, 212, 0.10) 50%, transparent 80%);
    filter: blur(55px);
    pointer-events: none;
    z-index: 0;
}

/* ── 2-COLUMN DASHBOARD GRID ───────────────── */
.dash {
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    width: 100%;
}

.dash-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

/* ── HERO BANNER ──────────────────────────── */
.hero {
    background: var(--gradient-header);
    border: 1px solid var(--border-cyber-subtle);
    border-radius: 20px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
    position: relative;
    min-height: auto;
    box-shadow: var(--shadow-cyber-panel);
    backdrop-filter: var(--backdrop-blur-glass);
    -webkit-backdrop-filter: var(--backdrop-blur-glass);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: 140px;
    width: 380px;
    height: 380px;
    background: var(--gradient-radial-ambient);
    filter: blur(35px);
    pointer-events: none;
}

.hero-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.hero-hi {
    font-size: 0.80rem;
    font-weight: 700;
    color: var(--text-cyan);
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 11px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-h1 {
    font-size: 1.48rem;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 6px;
    color: var(--text-white);
    letter-spacing: -0.02em;
    display: block !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.hero-h1 .ac {
    background: var(--gradient-text-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.35));
}

.hero-p {
    font-size: 0.80rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 14px;
    max-width: 440px;
}

.hero-p strong {
    color: var(--text-white);
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-btn-primary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--ease-smooth);
    box-shadow: var(--shadow-cyber-btn-primary);
    white-space: nowrap;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyber-btn-primary-hover);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Illustration Art */
.hero-art {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-art svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

/* ── STATS 4-CARD ROW ──────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.stat {
    background: var(--gradient-panel, linear-gradient(180deg, rgba(13, 23, 42, 0.98) 0%, rgba(6, 11, 24, 0.99) 100%));
    border: 1px solid var(--border-cyber-subtle, rgba(37, 99, 235, 0.28));
    border-radius: 16px;
    padding: 14px 16px;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
    backdrop-filter: var(--backdrop-blur-glass, blur(16px));
    -webkit-backdrop-filter: var(--backdrop-blur-glass, blur(16px));
}

.stat:hover {
    transform: translateY(-2px);
    border-color: var(--border-cyber-glow, rgba(37, 99, 235, 0.55));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(37, 99, 235, 0.18);
}

.stat:has(.ico-emerald):hover,
.stat:has(.ico-g):hover,
.stat:has(.icon-wallet):hover,
.stat.stat-wallet:hover,
.stat.stat-balance:hover {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.20);
}

.stat:has(.ico-gold):hover,
.stat:has(.ico-gd):hover,
.stat:has(.icon-vip):hover,
.stat.stat-withdrawal:hover {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.20);
}

.stat:has(.ico-cyan):hover,
.stat:has(.ico-c):hover,
.stat:has(.ico-b):hover,
.stat:has(.icon-tasks):hover,
.stat.stat-tasks:hover {
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(6, 182, 212, 0.20);
}

.stat:has(.ico-rose):hover,
.stat:has(.ico-r):hover,
.stat:has(.ico-red):hover,
.stat:has(.icon-referral):hover,
.stat.stat-referral:hover {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(236, 72, 153, 0.20);
}

.stat-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.10rem;
    transition: transform 0.25s ease;
}

.stat:hover .stat-ico {
    transform: scale(1.08);
}

/* 1. Emerald Green (Balance) */
.ico-emerald,
.ico-g,
.icon-wallet {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(5, 150, 105, 0.28) 100%);
    border: 1px solid rgba(16, 185, 129, 0.40);
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

/* 2. Amber Gold (Withdrawal) */
.ico-gold,
.ico-gd,
.icon-vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.28) 100%);
    border: 1px solid rgba(245, 158, 11, 0.40);
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

/* 3. Electric Cyan (Tasks) */
.ico-cyan,
.ico-c,
.ico-b,
.icon-tasks {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18) 0%, rgba(37, 99, 235, 0.28) 100%);
    border: 1px solid rgba(6, 182, 212, 0.40);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

/* 4. Vibrant Pink/Rose (Referrals) */
.ico-red,
.ico-rose,
.ico-r,
.icon-referral {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.18) 0%, rgba(219, 39, 119, 0.28) 100%);
    border: 1px solid rgba(236, 72, 153, 0.40);
    color: #f472b6;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.15);
}

/* 5. Royal Blue (General / Secondary) */
.ico-blue {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.20) 0%, rgba(79, 70, 229, 0.28) 100%);
    border: 1px solid rgba(37, 99, 235, 0.40);
    color: #93c5fd;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

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

.stat-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

.stat-val {
    font-size: 1.12rem;
    font-weight: 900;
    color: var(--text-white, #ffffff);
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-arr {
    color: var(--text-cyan, #38bdf8);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.stat:hover .stat-arr {
    transform: translateX(3px);
    opacity: 1;
}

/* ── TASKS SECTION ───────────────────────── */
.tasks-section {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
}

.sec-hd {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
    gap: 3px;
}

.sec-hd-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.sec-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sec-title i {
    font-size: 1.10rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.link-all {
    color: var(--text-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.link-all:hover {
    color: var(--primary-purple);
    transform: translateX(2px);
}

.sec-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Category Filter Tabs */
.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid var(--border-cyber-glass);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
    font-family: inherit;
    white-space: nowrap;
}

.tab.on {
    background: var(--gradient-btn-primary);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.tab:hover:not(.on) {
    border-color: var(--primary-purple);
    background: rgba(37, 99, 235, 0.14);
    color: var(--text-white);
    transform: translateY(-1px);
}

/* ── SIDEBAR CARDS (`.s-card`) ─────────────── */
.s-card {
    background: var(--gradient-panel);
    border: 1px solid var(--border-cyber-subtle);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-cyber-panel);
    backdrop-filter: var(--backdrop-blur-glass);
    -webkit-backdrop-filter: var(--backdrop-blur-glass);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 1. Balance & Withdraw Card */
.bal-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    min-width: 0;
}

.bal-ico {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.35) 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #34d399;
    font-size: 1.20rem;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.20);
    transition: transform 0.25s ease;
}

.s-card:hover .bal-ico {
    transform: scale(1.06);
}

.bal-lbl {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.bal-amt {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-white);
    line-height: 1.1;
    word-break: break-word;
}

.btn-wd {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    box-sizing: border-box;
}

.btn-wd:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
    color: #ffffff;
}

/* 2. Quick Actions Card */
.s-title {
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.qa {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-cyber-glass);
    border-radius: 12px;
    margin-bottom: 9px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s var(--ease-smooth);
    min-width: 0;
    box-sizing: border-box;
}

.qa:last-child {
    margin-bottom: 0;
}

.qa:hover {
    border-color: var(--border-cyber-glow);
    background: rgba(15, 23, 42, 0.98);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Individual Quick Action Hover Glows */
.qa.qa-task:hover,
.qa.qa-tasks:hover {
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), 0 0 14px rgba(6, 182, 212, 0.22);
}

.qa.qa-referral:hover {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), 0 0 14px rgba(239, 68, 68, 0.22);
}

.qa.qa-vip:hover {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), 0 0 14px rgba(245, 158, 11, 0.22);
}

.qa.qa-achieve:hover {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), 0 0 14px rgba(236, 72, 153, 0.22);
}

.qa-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.25s ease;
}

.qa:hover .qa-ico {
    transform: scale(1.08);
}

/* Quick Action Icon Distinct Themes */
.qa-ico.ico-cyan,
.qa-task .qa-ico {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
    border-color: rgba(6, 182, 212, 0.45);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.qa-ico.ico-rose,
.qa-ico.ico-red,
.qa-referral .qa-ico {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(220, 38, 38, 0.35) 100%);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.qa-ico.ico-gold,
.qa-vip .qa-ico {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.3) 100%);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.qa-ico.ico-blue,
.qa-ico.ico-pink,
.qa-achieve .qa-ico {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(219, 39, 119, 0.35) 100%);
    border-color: rgba(236, 72, 153, 0.45);
    color: #f472b6;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.15);
}

.qa-txt {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.qa-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qa-sub {
    font-size: 0.70rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qa-arr {
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.qa:hover .qa-arr {
    color: var(--text-cyan);
    transform: translateX(3px);
}

/* 3. Subscription & Usage Card */
.sub-plan-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
    min-width: 0;
}

.sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.38);
    color: #93c5fd;
    font-size: 0.70rem;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sub-status-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--color-success);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.sub-status-active::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 6px var(--color-success);
}

.sub-prog-wrap {
    margin-bottom: 12px;
}

.sub-prog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    gap: 4px;
}

.sub-prog-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: width 0.4s ease;
}

.sub-countdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.70rem;
    color: var(--text-muted);
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-cyber-glass);
    margin-bottom: 12px;
    gap: 6px;
}

.sub-countdown-val {
    color: var(--text-cyan);
    font-weight: 800;
    font-family: monospace;
}

.btn-upgrade-side {
    width: 100%;
    padding: 10px;
    background: var(--gradient-btn-primary);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    box-sizing: border-box;
}

.btn-upgrade-side:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55);
    color: #ffffff;
}

/* 4. Recent Activity Card */
.act-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.act-hd .s-title {
    margin-bottom: 0;
}

.act-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
    box-sizing: border-box;
}

.act-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.act-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.86rem;
    color: #ffffff;
}

.act-body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.act-name {
    font-size: 0.80rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-r {
    text-align: right;
    flex-shrink: 0;
}

.act-pts {
    font-size: 0.76rem;
    font-weight: 800;
    color: #34d399;
}

.act-pts.deduct {
    color: #ef4444;
}

.act-ts {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.badge-p {
    display: inline-block;
    background: rgba(245, 165, 36, 0.15);
    border: 1px solid rgba(245, 165, 36, 0.35);
    color: var(--accent-gold);
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

/* 5. Keep Going / Level Progress Card */
.keep-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
}

.keep-ico {
    width: 40px;
    height: 40px;
    background: rgba(245, 165, 36, 0.15);
    border: 1px solid rgba(245, 165, 36, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 165, 36, 0.2);
    color: var(--accent-gold);
}

.keep-h {
    font-size: 0.90rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 2px;
}

.keep-p {
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.5;
    word-break: break-word;
}

.prog {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    height: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prog-f {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.prog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-muted);
    gap: 4px;
}

/* ============================================
   RESPONSIVE ARCHITECTURE (ZERO-OVERFLOW SYSTEM)
   ============================================ */

/* ─── 1. Large Laptops / Tablets Landscape (<= 1180px) ─── */
@media (max-width: 1180px) {
    .main-content {
        padding-top: 7.0rem;
    }

    .dash {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 16px;
    }

    .dash-main {
        gap: 16px;
    }

    .dash-side {
        gap: 14px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hero {
        padding: 18px 22px;
    }

    .hero-h1 {
        font-size: 1.35rem;
    }

    .hero-art {
        width: 135px;
    }
}

/* ─── 2. Tablet Portrait (<= 920px) ─── */
@media (max-width: 920px) {
    .main-content {
        padding-top: 7.25rem;
    }

    .dash {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .dash-main {
        gap: 16px;
    }

    .dash-side {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .hero-art {
        width: 125px;
    }

    .hero {
        margin-top: 0;
        padding: 16px 20px;
    }
}

/* ─── 3. Mobile Devices (<= 680px) ─── */
@media (max-width: 680px) {
    .main-content {
        padding-top: 7.25rem;
        padding-bottom: 2.5rem;
    }

    .dash {
        gap: 14px;
    }

    .dash-main {
        gap: 14px;
    }

    .dash-side {
        gap: 12px;
    }

    /* Hero Banner */
    .hero {
        margin-top: 0;
        padding: 12px 14px;
        min-height: auto;
        border-radius: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hero-art {
        display: none;
    }

    .hero-body {
        max-width: 100%;
        width: 100%;
    }

    .hero-hi {
        font-size: 0.68rem;
        padding: 2px 8px;
        margin-bottom: 4px;
        border-radius: 16px;
    }

    .hero-h1 {
        font-size: 1.12rem;
        line-height: 1.32;
        margin-bottom: 4px;
        letter-spacing: -0.01em;
        display: block !important;
    }

    .hero-h1 br,
    .hero-desktop-br {
        display: none !important;
    }

    .hero-p {
        font-size: 0.70rem;
        line-height: 1.38;
        margin-bottom: 8px;
        max-width: 100%;
    }

    .btn-explore {
        padding: 6px 14px;
        font-size: 0.72rem;
        border-radius: 20px;
    }

    /* 4-Stat Cards (2x2 Compact Grid) */
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat {
        padding: 10px 12px;
        min-height: 56px;
        gap: 9px;
        border-radius: 13px;
    }

    .stat-ico {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .stat-lbl {
        font-size: 0.60rem;
        margin-bottom: 0;
    }

    .stat-val {
        font-size: 0.95rem;
        font-weight: 900;
    }

    .stat-arr {
        font-size: 0.75rem;
    }

    /* Tasks Section */

    .sec-hd {
        margin-bottom: 4px;
        gap: 2px;
    }

    .sec-hd-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .sec-title {
        font-size: 0.98rem;
    }

    .sec-title i {
        font-size: 0.95rem;
    }

    .link-all {
        font-size: 0.72rem;
    }

    .sec-sub {
        font-size: 0.68rem;
        margin-bottom: 10px;
    }

    /* Smooth Horizontal Scroll Tabs */
    .tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 5px;
        padding-bottom: 4px;
        margin-bottom: 10px;
        scrollbar-width: none;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        padding: 5px 11px;
        font-size: 0.66rem;
        flex-shrink: 0;
        border-radius: 16px;
    }

    /* Sidebar Cards */
    .s-card {
        padding: 12px 12px;
        border-radius: 14px;
    }

    .bal-top {
        gap: 8px;
        margin-bottom: 8px;
    }

    .bal-ico {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .bal-lbl {
        font-size: 0.64rem;
    }

    .bal-amt {
        font-size: 1.10rem;
    }

    .btn-wd {
        padding: 8px;
        font-size: 0.72rem;
        border-radius: 8px;
    }

    .s-title {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }

    .qa {
        padding: 7px 9px;
        gap: 7px;
        margin-bottom: 5px;
        border-radius: 9px;
    }

    .qa-ico {
        width: 28px;
        height: 28px;
        font-size: 0.76rem;
        border-radius: 8px;
    }

    .qa-name {
        font-size: 0.72rem;
    }

    .qa-sub {
        font-size: 0.60rem;
    }

    .sub-plan-name {
        font-size: 0.76rem;
    }

    .sub-plan-badge {
        font-size: 0.58rem;
    }

    .sub-stat-lbl {
        font-size: 0.60rem;
    }

    .sub-stat-val {
        font-size: 0.66rem;
    }

    .sub-prog-meta {
        font-size: 0.64rem;
    }

    .sub-countdown {
        font-size: 0.64rem;
        padding: 5px 7px;
    }

    .btn-upgrade-side {
        padding: 8px;
        font-size: 0.72rem;
    }

    .act-name {
        font-size: 0.72rem;
    }

    .act-sub {
        font-size: 0.60rem;
    }

    .act-pts {
        font-size: 0.70rem;
    }

    .act-ts {
        font-size: 0.58rem;
    }

    .keep-h {
        font-size: 0.80rem;
    }

    .keep-p {
        font-size: 0.66rem;
    }

    .prog-meta {
        font-size: 0.62rem;
    }
}

/* ─── 4. Compact Mobile (<= 480px) ─── */
@media (max-width: 480px) {
    .dash {
        gap: 12px;
    }

    .dash-main {
        gap: 12px;
    }

    .dash-side {
        gap: 10px;
    }

    .hero {
        padding: 11px 11px;
        border-radius: 13px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat {
        padding: 9px 10px;
        min-height: 56px;
        gap: 8px;
        border-radius: 13px;
    }

    .stat-ico {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 9px;
    }

    .stat-lbl {
        font-size: 0.60rem;
    }

    .stat-val {
        font-size: 0.85rem;
    }



    .sec-title {
        font-size: 0.92rem;
    }

    .sec-title i {
        font-size: 0.88rem;
    }

    .link-all {
        font-size: 0.70rem;
    }

    .sec-sub {
        font-size: 0.65rem;
        margin-bottom: 8px;
    }

    .tabs {
        gap: 4px;
        margin-bottom: 8px;
    }

    .s-card {
        padding: 10px 10px;
        border-radius: 13px;
    }
}

/* ─── 5. Ultra-Compact Mobile (<= 380px) ─── */
@media (max-width: 380px) {
    .main-content {
        padding-top: 5.85rem;
        padding-bottom: 2rem;
    }

    .dash {
        gap: 10px;
    }

    .dash-main {
        gap: 10px;
    }

    .dash-side {
        gap: 8px;
    }

    .hero {
        margin-top: 0;
        padding: 10px 10px;
        gap: 5px;
        border-radius: 12px;
    }

    .hero-hi {
        font-size: 0.62rem;
        padding: 2px 7px;
        margin-bottom: 3px;
    }

    .hero-h1 {
        font-size: 0.96rem;
        margin-bottom: 3px;
    }

    .hero-p {
        font-size: 0.64rem;
        margin-bottom: 6px;
    }

    .btn-explore {
        padding: 5px 12px;
        font-size: 0.66rem;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat {
        padding: 12px 10px;
        min-height: 58px;
        gap: 9px;
        border-radius: 13px;
    }

    .stat-ico {
        width: 34px;
        height: 34px;
        font-size: 0.90rem;
        border-radius: 10px;
    }

    .stat-lbl {
        font-size: 0.62rem;
    }

    .stat-val {
        font-size: 0.88rem;
    }

    .stat-arr {
        display: none;
    }



    .sec-title {
        font-size: 0.86rem;
    }

    .sec-title i {
        font-size: 0.82rem;
    }

    .link-all {
        font-size: 0.66rem;
    }

    .sec-sub {
        font-size: 0.62rem;
        margin-bottom: 6px;
    }

    .tab {
        padding: 4px 8px;
        font-size: 0.60rem;
    }

    .tabs {
        gap: 4px;
        margin-bottom: 6px;
    }

    .s-card {
        padding: 9px 9px;
        border-radius: 12px;
    }

    .s-title {
        font-size: 0.76rem;
    }

    .bal-amt {}
}

/* ─── 6. Ultra-Small Mobile (<= 360px) ─── */
@media (max-width: 360px) {
    .dash {
        gap: 8px;
    }

    .dash-main {
        gap: 8px;
    }

    .dash-side {
        gap: 8px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .stat {
        padding: 10px 12px;
        min-height: 54px;
    }
}