
:root {
    --primary: #6366f1;
    --accent: #ec4899;
    --success: #10b981;
    --text-main: #1f2937;
    --text-muted: #4b5563;

    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    --card-radius: 24px;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background: #fdfdfd;
}

/* --- Animated Mesh Gradient Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-color: #f3f4f6;
    /* Lighter theme overwrite for "White/Clean" look but with color */
    background:
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(340, 100%, 76%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(22, 100%, 77%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 100%, hsla(242, 100%, 70%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 0%, hsla(343, 100%, 76%, 0.2) 0px, transparent 50%);
    filter: blur(40px);
    opacity: 0.8;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Layout --- */
.app-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-footer {
    margin-top: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    display: block;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 100%);
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: -1;
}

.nav-item:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.nav-item:hover::before {
    transform: translateX(0);
}

.nav-item.active {
    background: var(--glass-highlight);
    color: var(--primary);
    box-shadow: 0 4px 20px -5px rgba(99, 102, 241, 0.2);
    border: 1px solid white;
}

/* --- Header Dock (Top Left) --- */
.header-dock {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-dock:hover {
    padding-right: 1.5rem;
}

.hamburger-btn {
    position: relative;
    top: auto;
    left: auto;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 102;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1);
    box-shadow: none;
}

.dock-logo-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 200px;
    opacity: 1;
    padding-right: 0.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.75rem;
}

.dock-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.header-dock:hover .dock-logo-img {
    transform: rotate(5deg) scale(1.1);
}

.hamburger-btn .bar {
    width: 24px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn:hover .bar {
    background: #6366f1;
}

.hamburger-btn.active .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .bar-2 {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger-btn.active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

.glass-float {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-float:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* --- Full Screen Menu Overlay --- */
.modern-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    z-index: 95;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-content {
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.modern-menu-overlay.active .menu-content {
    opacity: 1;
    transform: translateY(0);
}

.menu-logo {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.menu-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.menu-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.menu-nav a:hover {
    color: white;
    transform: scale(1.05);
}

.menu-nav a:hover::after {
    width: 100%;
}

.menu-footer {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.menu-footer p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.menu-socials {
    display: flex;
    gap: 1.5rem;
}

.menu-social-link {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(156, 163, 175, 0.28);
    background: rgba(148, 163, 184, 0.14);
    color: #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.menu-social-link:hover {
    transform: translateY(-1px);
    background: rgba(148, 163, 184, 0.24);
    border-color: rgba(209, 213, 219, 0.45);
    color: #f3f4f6;
}

.menu-social-icon {
    width: 17px;
    height: 17px;
    display: block;
}

.close-menu-btn {
    display: none;
}

/* --- Mystery Box Widget --- */
.landing-mystery-widget {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.mystery-box-widget {
    margin-left: auto;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px -5px rgba(16, 185, 129, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

#header-mystery-widget {
    margin-left: 0;
    margin-right: 0;
    min-width: 168px;
}

.mystery-box-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(16, 185, 129, 0.25);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(16, 185, 129, 0.3);
}

.mb-icon-wrapper {
    width: 36px;
    height: 36px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-gift-box {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.mb-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mb-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.mb-value-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mb-value {
    font-size: 1rem;
    font-weight: 800;
    color: #059669;
}

.mb-usdt-icon {
    width: 16px;
    height: 16px;
}

.usdt-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    white-space: nowrap;
}

.usdt-inline-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    display: inline-block;
}

/* --- Main Content --- */
.main-content {
    padding: 2.5rem 3rem;
    overflow-y: auto;
}

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

h1.view-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111827;
}

.header-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-quick-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: var(--glass-shadow);
    color: #111827;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-quick-menu-btn.active {
    border-color: #c7d2fe;
    background: rgba(238, 242, 255, 0.85);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
    transition: transform 0.2s;
}

.user-pill:hover {
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inbox-wrap {
    position: relative;
}

.app-quick-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(9, 13, 28, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.app-quick-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.app-quick-menu-sheet {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 15%, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 35%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.22) 0%, rgba(236, 72, 153, 0) 40%),
        rgba(250, 252, 255, 0.97);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
}

.app-quick-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.aqm-title {
    font-weight: 800;
    color: #111827;
    font-size: 1.15rem;
}

.aqm-subtitle {
    color: #6b7280;
    font-size: 0.86rem;
    margin-top: 0.15rem;
}

.aqm-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.app-quick-menu-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}

.app-quick-menu-item {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: #111827;
    box-shadow: 0 12px 24px -16px rgba(17, 24, 39, 0.35);
}

.aqm-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(236, 72, 153, 0.14));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aqm-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.aqm-label {
    font-size: 0.97rem;
    font-weight: 700;
}

body.app-menu-open {
    overflow: hidden;
}

.notif-nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: #ef4444;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(45deg, #Fcd34d, #F87171, #6366F1);
    border: 3px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- Dashboard --- */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.earnings-hero {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
    position: relative;
    overflow: hidden;
    grid-column: span 1;
    /* Override old span logic if needed */
}

.earnings-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
}

.big-stat {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0.5rem 0;
    letter-spacing: -2px;
}

.label-sm {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-muted);
}

/* --- Premium Dashboard --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

.greeting-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.username-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    background: linear-gradient(to right, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #111827;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.level-star {
    color: #facc15;
    font-size: 1.1rem;
}

/* --- Dashboard V2: Asset Horizon --- */
.dashboard-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.asset-prism-card {
    position: relative;
    border-radius: 32px;
    padding: 2rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.asset-prism-card:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 2;
}

.prism-usdt {
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.9) 0%, rgba(10, 10, 15, 0.95) 100%);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.prism-usdt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 60%);
    pointer-events: none;
}

.prism-usdt::after {
    content: '$';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-15deg);
    pointer-events: none;
}

.prism-task {
    background: linear-gradient(145deg, rgba(25, 20, 35, 0.9) 0%, rgba(10, 8, 15, 0.95) 100%);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.prism-task::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 60%);
    pointer-events: none;
}

.prism-task::after {
    content: 'T';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 10rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-15deg);
    pointer-events: none;
}

.apc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.apc-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prism-usdt .apc-icon-box {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.prism-task .apc-icon-box {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.apc-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prism-usdt .apc-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.prism-task .apc-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.apc-balance-group {
    position: relative;
    z-index: 1;
}

.apc-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    display: block;
}

.balance-jumbo {
    font-family: var(--font-family);
    font-size: 3rem;
    font-weight: 300;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.apc-subval {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.prism-usdt .apc-subval {
    color: rgba(255, 255, 255, 0.8);
}

.prism-task .apc-subval {
    color: #818cf8;
}

/* Quick Stats */
.quick-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.stat-pill:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.05);
}

.sp-icon {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.sp-info {
    display: flex;
    flex-direction: column;
}

.sp-val {
    font-weight: 800;
    font-size: 1.2rem;
    color: #111827;
}

.sp-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Live Feed */
.live-feed-section {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 2rem;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
}

.blink-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    .balance-jumbo {
        font-size: 2.5rem;
    }

    .quick-stats-row {
        grid-template-columns: 1fr;
    }
}

#page-dashboard > h3 {
    margin-bottom: 1.5rem !important;
}

#tasks-panel > h2 {
    margin-bottom: 2rem !important;
}

/* --- Task List --- */
.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.task-row:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 14px;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.task-platform-icon {
    display: block;
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.btn-action {
    padding: 0.75rem 1.75rem;
    border-radius: 14px;
    border: none;
    background: #111827;
    color: white;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    --btn-spinner-track: rgba(255, 255, 255, 0.35);
    --btn-spinner-color: #fff;
}

#connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.connect-btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    background: #000;
}

.btn-secondary {
    background: white;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-action.btn-secondary {
    --btn-spinner-track: rgba(17, 24, 39, 0.2);
    --btn-spinner-color: #111827;
}

.btn-action.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: progress;
}

.btn-action.is-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid var(--btn-spinner-track);
    border-top-color: var(--btn-spinner-color);
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Login Tweaks --- */
.login-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

.login-glass {
    width: 450px;
    padding: 4rem 3rem;
    text-align: center;
}

/* --- Utilities --- */
.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: #ffffff;
}

.text-green {
    color: var(--success);
}

.text-red {
    color: #ef4444;
}

.text-sm {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.mt-8 {
    margin-top: 2rem;
}

.w-full {
    width: 100%;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        flex-direction: row;
        padding: 1rem;
        z-index: 50;
        justify-content: space-around;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
    }

    .logo {
        display: none;
    }

    .nav-item span:last-child {
        display: none;
    }

    /* Hide labels on mobile */
    .main-content {
        padding-bottom: 100px;
    }
}

/* --- Landing Page Styles --- */
.landing-page {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.landing-page > section,
.landing-page > footer {
    position: relative;
    z-index: 1;
}

.rain-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    top: -15%;
    width: 22px;
    height: 22px;
    background-image: url("/img/drop.png");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.35;
    animation: dropFall linear infinite;
    filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.25));
}

@keyframes dropFall {
    0% {
        transform: translateY(-20vh);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(120vh);
        opacity: 0;
    }
}

.landing-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    z-index: 1;
}

.hero-pill {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.2);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    color: #111827;
    /* Solid color for better readability on mesh */
}

.hero-subtext {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    font-weight: 500;
}

/* Dark Stats Strip */
.stats-strip {
    background: #000;
    color: white;
    padding: 6rem 2rem;
    width: 100%;
    text-align: center;
    margin-top: auto;
    /* Push to bottom if space permits */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #10b981;
    /* Green from image */
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.section-tag {
    color: #10b981;
    letter-spacing: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* --- Plug & Play Modules Section --- */
.modules-section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.modules-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1f2937;
}

.modules-header p {
    color: #6b7280;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.module-card {
    background: #0D0F12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    border-color: rgba(217, 248, 61, 0.3);
}

.module-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: #34d399;
}

.module-title {
    color: #34d399;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.module-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Light Glass Flow (How It Works) --- */
.dark-flow-section {
    background: transparent;
    backdrop-filter: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.dark-flow-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.flow-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.flow-header {
    text-align: center;
    margin-bottom: 5rem;
}

.flow-header h2 {
    font-size: 2.5rem;
    color: #1f2937;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.flow-header p {
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.flow-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(99, 102, 241, 0) 0%,
            rgba(99, 102, 241, 0.3) 50%,
            rgba(99, 102, 241, 0) 100%);
    z-index: 0;
}

.flow-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.flow-icon-box {
    width: 80px;
    height: 80px;
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.flow-step-card:hover .flow-icon-box {
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.2);
}

.flow-step-number {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.flow-title {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.flow-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }

    .modules-header h2 {
        font-size: 2.5rem;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .flow-grid::after {
        display: none;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.faq-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: #111827;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    text-align: left;
    transition: color 0.2s;
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
    /* Approximate max height */
    padding-bottom: 1.5rem;
}

/* --- Footer --- */
.landing-footer {
    background: #111827;
    color: white;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand {
    max-width: 340px;
}

.footer-tagline {
    color: #9ca3af;
    line-height: 1.45;
}

.footer-socials {
    display: flex;
    gap: 0.7rem;
    margin-top: 1rem;
}

.footer-social {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(156, 163, 175, 0.28);
    background: rgba(148, 163, 184, 0.14);
    color: #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.footer-social:hover {
    transform: translateY(-1px);
    background: rgba(148, 163, 184, 0.24);
    border-color: rgba(209, 213, 219, 0.45);
    color: #f3f4f6;
}

.footer-social-svg {
    width: 17px;
    height: 17px;
    display: block;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

.copyright {
    margin-top: 3rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* --- Task Grid Redesign --- */
.tasks-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.task-card-v2 {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.task-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.task-icon-large {
    width: 64px;
    height: 64px;
    background: #000;
    /* Platform logo bg */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.task-title-v2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.task-subtitle-v2 {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.reward-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.task-card-v2 .btn-action {
    width: 100%;
}

.profile-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.profile-list {
    display: grid;
    gap: 1rem;
}

.profile-list .task-row {
    margin-bottom: 0;
}

.profile-connect {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    text-align: right;
}

.btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #1f2937;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s;
}

.btn-xs:hover {
    background: #374151;
    transform: translateY(-1px);
}

.wallet-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.wallet-hero-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wallet-hero-details .text-muted {
    margin-top: 0.25rem;
}

.wallet-hero-unit {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.wallet-hero-card .btn-action {
    padding: 0.9rem 2.5rem;
    white-space: nowrap;
}

/* --- Futuristic Vault Wallet --- */
.vault-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.vault-header .section-title-lg {
    width: 100%;
    text-align: center;
}

.vault-header .secure-badge {
    position: absolute;
    right: 0;
}

.withdraw-processing-banner {
    max-width: 760px;
    margin: -1rem auto 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #fde68a;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.withdraw-processing-banner .wp-icon {
    font-size: 1rem;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.lock-icon {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.vault-display {
    margin-bottom: 3rem;
}

.vault-card {
    background: radial-gradient(circle at 100% 0%, #4338ca 0%, #312e81 100%);
    color: white;
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(67, 56, 202, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vault-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1h38v38H1V1z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.vc-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.btn-card-withdraw {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn-card-withdraw:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-card-withdraw:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.vc-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.vc-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vc-trend {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.trend-up {
    color: #4ade80;
    font-weight: 700;
}

.vc-graph-visual {
    height: 60px;
    margin: 2rem 0;
    position: relative;
    opacity: 0.5;
}

.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff);
    transform: rotate(-5deg);
    transform-origin: left bottom;
}

.graph-line.gl-2 {
    bottom: 20px;
    left: 40%;
    width: 60%;
    opacity: 0.5;
    height: 1px;
}

@media (max-width: 768px) {
    .vault-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .vault-header .secure-badge {
        position: static;
    }

    .vc-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .vc-amount {
        font-size: 2.6rem;
    }

    .btn-card-withdraw {
        width: 100%;
        text-align: center;
    }
}

/* Transaction Stream */
.vault-tx-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tx-row:last-child {
    border-bottom: none;
}

.tx-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-right: 1.25rem;
}

.tx-in {
    background: #10b981;
    box-shadow: 0 4px 10px -2px rgba(16, 185, 129, 0.3);
}

.tx-out {
    background: #ef4444;
    box-shadow: 0 4px 10px -2px rgba(239, 68, 68, 0.3);
}

.tx-details {
    flex: 1;
}

.tx-type {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2937;
    margin-bottom: 2px;
}

.tx-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tx-amount {
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.tx-amount-val {
    line-height: 1.1;
}

.tx-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.tx-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.tx-link.pending {
    color: var(--text-muted);
    text-decoration: none;
    cursor: default;
}

.tx-link.pending:hover {
    color: var(--text-muted);
    text-decoration: none;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.transaction-table td {
    padding: 1.25rem;
}

.transaction-table tr:not(:last-child) td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.transaction-card {
    padding: 0.5rem;
}

.transaction-type {
    font-weight: 600;
    width: 50%;
}

.transaction-date {
    color: var(--text-muted);
    text-align: right;
    width: 30%;
}

.transaction-amount {
    text-align: right;
    font-weight: 700;
    width: 20%;
    white-space: nowrap;
}

.transaction-empty {
    padding: 1.25rem;
}

.referral-hero {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.referral-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.referral-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.referral-link-row {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.referral-link-input {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-align: center;
    font-family: var(--font-family);
}

.referral-grid {
    grid-template-columns: 1fr 1fr;
}

.task-countdown {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-align: center;
}

/* --- Mission Control --- */
.mission-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title-lg {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #111827, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

.featured-section {
    margin-bottom: 4rem;
    position: relative;
}

.featured-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #facc15;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.featured-mission-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    box-shadow:
        0 20px 50px -10px rgba(99, 102, 241, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.featured-mission-card.is-follow {
    cursor: pointer;
}

.featured-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.03));
    z-index: 0;
}

.featured-mission-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.25);
}

.featured-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.featured-icon-box {
    width: 100px;
    height: 100px;
    background: #111827;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.featured-icon-box .task-platform-icon {
    width: 78%;
    height: 78%;
    border-radius: 18px;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #1f2937;
}

.featured-handle {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.featured-handle a {
    color: inherit;
    text-decoration: none;
}

.featured-handle a:hover {
    color: #111827;
}

.featured-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-hot {
    background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
    color: #b45309;
}

.tag-easy {
    background: linear-gradient(135deg, #d1fae5 0%, #34d399 100%);
    color: #065f46;
}

.featured-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding-left: 3rem;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.reward-pill-lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f3f4f6;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid white;
}

.reward-label {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
}

.reward-value {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-glow {
    background: #111827;
    font-size: 1.1rem;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow.is-loading::before {
    opacity: 0;
}

.participants-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.avatars-stack {
    display: flex;
}

.stack-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    background: #ccc;
}

.stack-avatar:first-child {
    margin-left: 0;
}

.warning-pill-sm {
    margin-top: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #fca5a5;
}

.warning-pill-sm strong {
    color: #ef4444;
}

.warning-pill-sm .warning-pill-icon {
    font-size: 1rem;
}

.warning-pill-sm .warning-pill-text {
    line-height: 1.2;
}

/* Warning Box Glass Style */
.warning-box-glass {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-top: 1rem;
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-main, #333);
}

.wb-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.wb-content {
    color: rgba(239, 68, 68, 0.9);
}

.wb-content strong {
    font-weight: 700;
    display: block;
    margin-bottom: 0.1rem;
}

/* Premium Progress Bar */
.premium-progress-container {
    margin-top: 1rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.pp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pp-label {
    color: var(--text-muted);
}

.pp-val {
    color: var(--primary);
}

.pp-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.pp-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.pp-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subsection-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.missions-grid-section {
    margin-bottom: 2rem;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
    align-items: stretch;
}

.featured-list .featured-mission-card {
    width: 100%;
}

.tasks-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.card-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.mission-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.05);
}

.mission-card:hover .card-glow-effect {
    opacity: 1;
}

.mission-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.mission-icon {
    width: 48px;
    height: 48px;
    background: #1f2937;
    border-radius: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
}

.mission-reward-badge {
    background: var(--success);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px -2px rgba(16, 185, 129, 0.3);
}

.mission-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.mission-handle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mission-handle a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.mission-handle a:hover {
    color: var(--primary);
}

.btn-mission-sm {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-weight: 600;
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mission-sm:hover {
    background: #111827;
    color: white;
    border-color: #111827;
}

.btn-mission-sm {
    --btn-spinner-track: rgba(17, 24, 39, 0.2);
    --btn-spinner-color: #111827;
}

.btn-mission-sm.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: progress;
}

.btn-mission-sm.is-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid var(--btn-spinner-track);
    border-top-color: var(--btn-spinner-color);
    animation: btnSpin 0.7s linear infinite;
}

.empty-state {
    margin-top: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.mission-card .task-countdown,
.featured-action .task-countdown {
    margin: 0.25rem 0 0;
    text-align: left;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .featured-mission-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .featured-content {
        flex-direction: column;
    }

    .featured-action {
        padding-left: 0;
        border-left: none;
        align-items: center;
    }

    .featured-action .btn-action {
        width: 100%;
    }

    .participants-preview {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .section-title-lg {
        font-size: 2.4rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .featured-title {
        font-size: 2rem;
    }
}

/* --- Claim Modal --- */
.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.glass-modal {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-overlay.show .glass-modal {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.3));
}

.modal-platform-icon {
    width: 64px;
    height: 64px;
    display: block;
    object-fit: contain;
    border-radius: 14px;
}

.glass-modal h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.glass-modal p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions button {
    flex: 1;
}

.btn-modal-cancel {
    background: transparent;
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-modal-cancel:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.btn-modal-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-modal-confirm::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.btn-modal-confirm:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* --- Claim Modal Overrides --- */
.claim-modal {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 32px;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.glass-overlay.show .claim-modal {
    transform: translateY(0) scale(1);
}

.claim-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    opacity: 0.8;
}

.claim-modal .modal-icon {
    filter: none;
    margin-bottom: 1.25rem;
}

.claim-modal h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.claim-modal p {
    font-size: 0.95rem;
}

.claim-modal .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.claim-modal .btn-modal-cancel,
.claim-modal .btn-modal-confirm {
    border-radius: 16px;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.claim-modal .btn-modal-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.claim-modal .btn-modal-confirm::after {
    display: none;
}

.claim-modal .btn-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.claim-modal .btn-modal-cancel {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(148, 163, 184, 0.9);
}

.claim-modal .btn-modal-cancel:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
}

.x-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.task-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
}

.task-tab {
    border: 1px solid rgba(17, 24, 39, 0.15);
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.task-tab:hover {
    color: #111827;
    border-color: rgba(17, 24, 39, 0.3);
}

.task-tab.is-active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

#x-panel,
#youtube-panel {
    margin-bottom: 1.5rem;
}

.connection-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.connection-row .task-row-meta {
    align-items: center;
}

.connection-row .task-actions {
    width: 100%;
    display: grid;
    gap: 0.75rem;
}

.connection-row .task-actions input {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-family: var(--font-family);
}

.connection-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.link-modal {
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    color: #f8fafc;
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.glass-overlay.show .link-modal {
    transform: translateY(0) scale(1);
}

.link-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    opacity: 0.8;
}

.link-modal h3 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.link-modal p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
}

.link-modal .modal-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    color: rgba(148, 163, 184, 0.4);
    filter: none;
}

.link-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-modal .modal-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fde68a;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.link-modal .modal-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}


.link-modal .modal-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    color: #111827;
    font-weight: 600;
    font-family: var(--font-family);
    outline: none;
    transition: all 0.2s;
}

.link-modal .modal-input::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

.link-modal .modal-input:focus {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.link-modal .modal-actions {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.link-modal .btn-modal-confirm,
.link-modal .btn-modal-cancel {
    border-radius: 16px;
    padding: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.link-modal .btn-modal-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4);
}

.link-modal .btn-modal-confirm::after {
    display: none;
}

.link-modal .btn-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

.link-modal .btn-modal-cancel {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(203, 213, 225, 0.8);
}

.link-modal .btn-modal-cancel:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
}

/* --- Channel ID Info Modal --- */
.channel-info-link-row {
    display: flex;
    justify-content: flex-end;
}

.channel-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: #6366f1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.channel-info-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.channel-info-modal {
    max-width: 560px;
    text-align: left;
    padding: 2.25rem 2.5rem;
    background: rgba(15, 15, 20, 0.92);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.channel-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.channel-info-header h3 {
    margin: 0;
    font-size: 1.55rem;
}

.channel-info-close {
    background: none;
    border: none;
    color: rgba(248, 250, 252, 0.9);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.channel-info-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.channel-info-step-num {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
}

.channel-info-step-body p {
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.92);
}

.channel-info-link-text {
    color: #6366f1;
    text-decoration: underline;
    word-break: break-all;
}

.channel-info-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.channel-info-alert-icon {
    flex-shrink: 0;
}

.channel-info-alert-underline {
    text-decoration: underline;
}

.channel-info-btn {
    margin-top: 0.5rem;
    padding: 0.95rem 1.25rem;
    border-radius: 18px;
    font-weight: 700;
}

/* --- FAQ Page --- */
.faq-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-hero h2 {
    color: #1f2937;
}

.faq-hero p {
    color: #6b7280;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.glass-accordion-item {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.9) 0%, rgba(20, 20, 30, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.glass-accordion-item:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.glass-accordion-item.active {
    background: linear-gradient(145deg, rgba(35, 35, 45, 0.95) 0%, rgba(25, 25, 35, 1) 100%);
    border-color: #6366f1;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gai-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.gai-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    flex: 1;
    padding-right: 2rem;
}

.gai-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.glass-accordion-item.active .gai-icon {
    transform: rotate(45deg);
    background: #6366f1;
    color: white;
}

.gai-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gai-content {
    padding: 0 2rem 2rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
    padding-top: 1.5rem;
}

.gai-content p {
    margin-bottom: 1rem;
}

.gai-content p:last-child {
    margin-bottom: 0;
}

.faq-support {
    text-align: center;
    margin-top: 3rem;
    opacity: 0.6;
    font-size: 0.9rem;
}

.faq-support-link {
    color: #6366f1;
}

/* --- Rules Page --- */
.rules-hero {
    margin-bottom: 3rem;
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-radius: 20px;
}

.rules-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rules-hero .section-title-lg {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.rules-header .vip-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.1);
}

.rules-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.rule-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-icon-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.rule-number {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.05);
    line-height: 1;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
}

.rule-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.rule-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    position: relative;
    z-index: 1;
}

.rule-desc {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.rule-alert {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(254, 226, 226, 0.5);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .rules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .rules-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* --- Referral Page --- */
.ref-hero {
    background: linear-gradient(135deg, #10b981 0%, #4f46e5 100%);
    border-radius: 32px;
    padding: 3rem 2rem;
    color: white;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

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

.ref-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.vip-badge {
    background: white;
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.ref-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.tier-progress-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.tier-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.invite-section {
    margin-bottom: 3rem;
}

.invite-card {
    padding: 2rem;
    background: white;
}

.invite-label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: block;
}

.invite-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0.5rem;
}

.link-icon {
    font-size: 1.2rem;
    padding-left: 0.5rem;
}

.ref-link-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-weight: 600;
    color: #4b5563;
    outline: none;
    font-size: 1rem;
}

.btn-copy-glow {
    background: #7c3aed;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3);
}

.btn-copy-glow:hover {
    background: #6d28d9;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.ref-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ref-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    text-align: center;
    background: white;
}

.rs-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: #f3f4f6;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.rs-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.25rem;
}

.rs-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.activity-list-glass {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-row-glass {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-row-glass:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border-color: white;
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-icon-glow {
    width: 42px;
    height: 42px;
    background: #1f2937;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.2);
}

.activity-icon-glow .task-platform-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.activity-meta {
    display: flex;
    flex-direction: column;
}

.am-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 2px;
}

.am-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.activity-amount-lg {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--success);
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.activity-amount-lg.is-negative {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.activity-amount-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

@media (max-width: 768px) {
    .ref-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .wallet-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .referral-link-row {
        flex-direction: column;
    }
}

/* --- Spin Wheel --- */
.spin-container {
    padding: 0;
    border: none;
    display: block;
    background: transparent;
    box-shadow: none;
}

.spin-view-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    min-height: 600px;
}

.spin-left,
.spin-right {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mystery-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 2rem;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.4);
}

.mystery-reward-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

.draw-timer-container {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.draw-timer-box {
    background: rgba(13, 15, 18, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #D9F83D;
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    from {
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
        border-bottom-color: #D9F83D;
    }

    to {
        box-shadow: 0 15px 40px -5px rgba(217, 248, 61, 0.2);
        border-bottom-color: #facc15;
    }
}

.draw-timer-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.draw-timer-val {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.draw-timer-sub {
    font-size: 0.9rem;
    color: #D9F83D;
    margin-top: 0.5rem;
}

.draw-countdown {
    margin-top: 0.75rem;
    min-height: 1.2rem;
}

.spin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.spin-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.spin-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.spin-dot-red {
    background: #ef4444;
}

.spin-dot-green {
    background: #22c55e;
}

.spin-dot-pink {
    background: #ec4899;
}

@media (max-width: 768px) {
    .spin-legend {
        flex-direction: column;
        gap: 1rem;
    }
}

.spin-left .wheel-wrapper {
    margin-bottom: 2rem;
    width: 300px;
    height: 300px;
}

@media (min-width: 1400px) {
    .spin-left .wheel-wrapper {
        width: 380px;
        height: 380px;
    }
}

.gift-canvas-container {
    width: 300px;
    height: 300px;
    position: relative;
    cursor: pointer;
}

.gift-canvas-container.is-disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.gift-canvas-container.is-disabled canvas {
    opacity: 0.45;
    filter: grayscale(1);
}

.gift-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.gift-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gm-content {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 4px solid #facc15;
    color: #111827;
}

.gm-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    color: inherit;
    margin-bottom: 0.5rem;
}

.gm-title.text-green {
    color: var(--success);
}

.gm-usdt-icon {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-right: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.gm-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
}

.draw-countdown {
    margin-top: 1.5rem;
    font-weight: 600;
}

.draw-requirement {
    margin-top: 0.75rem;
    min-height: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.flying-coin-burst {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    animation: burstOut 1s ease-out forwards;
}

@keyframes burstOut {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .spin-view-split {
        grid-template-columns: 1fr;
    }
}

.wheel-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin-bottom: 3rem;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid white;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    /* Ease out for spinning */
    background: conic-gradient(#ef4444 0deg 45deg,
            #f97316 45deg 90deg,
            #eab308 90deg 135deg,
            #22c55e 135deg 180deg,
            #06b6d4 180deg 225deg,
            #3b82f6 225deg 270deg,
            #a855f7 270deg 315deg,
            #ec4899 315deg 360deg);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #111827;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.wheel-segment-text {
    /* Hard to place text on pure CSS conic gradient without extra HTML elements. 
       We will overlay text items absolutely if needed, or keep it simple with color legend for now 
       OR better, we use a different approach for segments if we want text inside.
       For this V1, let's stick to a clean colored wheel and show the result in a big popup.
    */
    display: none;
}

/* We will simulate text/icons with rotated divs inside the wheel if we want, 
   but for "Classy" look, maybe just colors + legend is enough? 
   Let's try to add simple labels via JS or just keep it abstract and show result centered.
*/

.spin-btn-large {
    font-size: 1.5rem;
    padding: 1rem 4rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.spin-btn-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* --- Win Popup (Premium Glassmorphism) --- */
.win-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.win-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.win-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 3.5rem 4rem;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 50px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
}

.win-popup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 55%,
        transparent 100%
    );
    transform: rotate(30deg) translateY(100%);
    transition: transform 0s;
    pointer-events: none;
    z-index: 1;
}

.win-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.win-popup.show::before {
    transform: rotate(30deg) translateY(-100%);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.win-popup h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    position: relative;
    z-index: 5;
}

.win-popup .text-green {
    font-size: 4rem !important;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
    margin: 1rem 0 2rem 0 !important;
    position: relative;
    z-index: 5;
}

.win-popup button {
    background: #111827;
    color: white;
    font-size: 1.1rem;
    padding: 1.25rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
    transition: transform 0.2s, background 0.2s;
}

.win-popup button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.25);
    background: #000;
}

.win-usdt-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    animation: logoFloat 2s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.confetti {
    position: absolute;
    top: -10%;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(600px) rotateZ(720deg);
    }
}

/* --- Social Connect Modal (Blocking) --- */
.x-connect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker backdrop for focus */
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out forwards;
}

.x-connect-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    opacity: 0;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    position: relative;
    overflow: hidden;
}

.x-connect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at 50% -20%, rgba(29, 155, 240, 0.15), transparent 70%);
    /* Platform blue glow */
    pointer-events: none;
}

.x-logo-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-x-connect {
    background: #fff;
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1.25rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-x-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.3);
}

@keyframes scaleIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}
[hidden] {
    display: none !important;
}

.notice {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 2rem));
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #9a3412;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-message {
    flex: 1;
}

.notice-close {
    background: transparent;
    border: none;
    color: #9a3412;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.notice-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

#notification-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.notification-toast {
    position: relative;
    width: min(430px, calc(100vw - 2rem));
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    box-shadow: 0 20px 35px -15px rgba(17, 24, 39, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    opacity: 0;
    transform: translateX(30px) scale(0.96);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    pointer-events: auto;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.notification-toast.hide {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
}

.notif-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 800;
    flex-shrink: 0;
}

.notification-toast.success .notif-icon-box {
    background: #ecfdf5;
    color: #059669;
}

.notification-toast.warning .notif-icon-box,
.notification-toast.error .notif-icon-box {
    background: #fef2f2;
    color: #dc2626;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.notif-message {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.45;
}

.notif-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0.15rem;
    margin-top: 0.05rem;
}

.notif-close:hover {
    color: #111827;
}

.notif-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    transition-property: width;
    transition-timing-function: linear;
}

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--glass-shadow);
}

.icon-btn:hover {
    transform: translateY(-2px);
}

.icon-btn.active {
    border-color: #c7d2fe;
    background: rgba(238, 242, 255, 0.8);
}

.badge-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inbox-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    width: min(420px, calc(100vw - 2rem));
    max-height: 460px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 24px 40px -18px rgba(17, 24, 39, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: scale(0.97) translateY(-10px);
    transform-origin: top right;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
    overflow: hidden;
}

.inbox-dropdown.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.inbox-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #111827;
}

.mark-read-btn {
    border: none;
    background: transparent;
    color: #4f46e5;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
}

.inbox-list {
    max-height: 360px;
    overflow-y: auto;
}

.inbox-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.inbox-item:last-child {
    border-bottom: none;
}

.inbox-item:hover {
    background: rgba(249, 250, 251, 0.85);
}

.inbox-item.unread {
    background: rgba(238, 242, 255, 0.45);
}

.inbox-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #6366f1;
}

.msg-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.msg-content {
    min-width: 0;
    flex: 1;
}

.msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.msg-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-time {
    font-size: 0.72rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.msg-preview {
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inbox-empty {
    padding: 1.6rem 1.1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

.notifications-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notifications-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.notifications-feed {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.notification-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.notification-row:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 25px -12px rgba(17, 24, 39, 0.3);
}

.notification-row.unread {
    border-left: 4px solid #6366f1;
    padding-left: calc(1.1rem - 3px);
}

.notification-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2ff;
    color: #4338ca;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.notification-row-body {
    min-width: 0;
    flex: 1;
}

.notification-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

.notification-row-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.notification-row-time {
    color: #9ca3af;
    font-size: 0.78rem;
    white-space: nowrap;
}

.notification-row-message {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.45;
}

.notifications-empty {
    padding: 1.2rem 0.2rem;
}

.hero-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .hero-grid.two-col {
        grid-template-columns: 1fr;
    }
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pill-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pill-wallet {
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
}

.task-row-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-row-title {
    font-weight: 700;
}

.task-row-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.task-row span:last-child {
    text-align: right;
    word-break: break-word;
}

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.task-actions .btn-action,
.task-actions .btn-secondary {
    width: 100%;
}

.task-subtitle-v2 a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.task-subtitle-v2 a:hover {
    color: var(--primary);
}

/* --- Wallet Portfolio Grid --- */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.asset-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glass-shadow);
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.ac-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    z-index: 2;
    position: relative;
}

.ac-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.asset-card.usdt .ac-icon-box {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.asset-card.task .ac-icon-box {
    background: rgba(99, 102, 241, 0.1);
}

.ac-balance-group {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.ac-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.ac-balance {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.ac-value-fiat {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 0.25rem;
}

.ac-graph-mini {
    height: 40px;
    width: 100%;
    margin-top: 1rem;
    opacity: 0.6;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05));
    border-radius: 8px;
    position: relative;
}

.asset-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.asset-card.usdt::before {
    background: rgba(16, 185, 129, 0.2);
}

.asset-card.task::before {
    background: rgba(99, 102, 241, 0.25);
}

/* --- Premium Action Deck --- */
.premium-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.cyber-action-card {
    position: relative;
    background: linear-gradient(180deg, #10b981 0%, rgb(5 9 18 / 80%) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cyber-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cyber-action-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: white;
    box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.5);
    border-radius: 4px 4px 0 0;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.cyber-action-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.cyber-action-card:hover::after {
    width: 80%;
    opacity: 1;
    height: 4px;
}

.cac-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.cac-icon-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.cyber-action-card:hover .cac-icon-box {
    transform: scale(1.1);
}

.cyber-action-card span {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
    transition: color 0.3s;
}

.cyber-action-card:hover span {
    color: white;
}

.card-withdraw {
    background: linear-gradient(180deg, #10b981 0%, rgb(5 9 18 / 80%) 100%);
}

.card-earn {
    background: linear-gradient(180deg, #f59e0b 0%, rgb(5 9 18 / 80%) 100%);
}

.card-invite {
    background: linear-gradient(180deg, #8b5cf6 0%, rgb(5 9 18 / 80%) 100%);
}

.card-withdraw:hover::after {
    box-shadow: 0 -4px 15px rgba(16, 185, 129, 0.6);
    background: #34d399;
}

.card-earn:hover::after {
    box-shadow: 0 -4px 15px rgba(245, 158, 11, 0.6);
    background: #fbbf24;
}

.card-invite:hover::after {
    box-shadow: 0 -4px 15px rgba(139, 92, 246, 0.6);
    background: #a78bfa;
}

@media (max-width: 600px) {
    .premium-actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .cyber-action-card {
        padding: 1rem 0.5rem;
    }

    .cac-icon-box {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .cyber-action-card span {
        font-size: 0.7rem;
    }
}

/* --- Reward Modal (Task) --- */
.reward-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.reward-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.reward-modal-glass {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 20px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    width: 90%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 32px;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.reward-modal-overlay.show .reward-modal-glass {
    transform: scale(1) translateY(0);
}

.reward-modal-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
}

.reward-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.reward-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.reward-items-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.reward-item {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.reward-item:hover {
    transform: translateY(-5px);
}

.reward-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ri-usdt {
    background: #26a17b;
    color: white;
}

.ri-task {
    background: #6366f1;
    color: white;
    font-weight: 900;
}

.reward-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.reward-modal-glass .reward-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: #9ca3af;
}

.btn-claim-premium {
    background: #111827;
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.btn-claim-premium:hover {
    background: black;
    transform: scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 520px) {
    .reward-items-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Premium Mission Reward Capsule --- */
.premium-reward-capsule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 15px -3px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.premium-reward-capsule:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.prc-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prc-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.task-coin-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #818cf8, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.prc-val {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.text-indigo {
    color: #4f46e5;
}

.prc-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
}

/* --- Mobile polish --- */
@media (max-width: 900px) {
    .main-content {
        padding: 2rem 2rem 6.5rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1.25rem 6.5rem;
        overflow: visible;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    h1.view-title {
        font-size: 1.8rem;
    }

    .mobile-quick-menu-btn {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .app-quick-menu-overlay {
        display: block;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .mystery-box-widget {
        width: 100%;
        margin-right: 0;
        justify-content: space-between;
    }

    .user-pill {
        width: auto;
        margin-right: 0;
        justify-content: space-between;
        flex: 1 1 auto;
        min-width: 0;
    }

    .inbox-wrap {
        order: 3;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .inbox-dropdown {
        right: 0;
        left: auto;
        width: min(360px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        max-height: min(70vh, 460px);
    }

    .sidebar {
        padding: 0.75rem 0.75rem;
    }

    .nav-links {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 0.6rem;
    }

    .nav-item:hover {
        transform: none;
    }

    .landing-mystery-widget {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin: 0;
        display: block;
        z-index: 60;
    }

    #landing-mystery-widget {
        width: auto;
        margin: 0;
    }

    .header-dock {
        top: 1rem;
        left: 1rem;
    }

    .hamburger-btn {
        width: 3rem;
        height: 3rem;
    }

    .dock-logo-container {
        max-width: 140px;
    }

    .dock-logo-img {
        height: 32px;
    }

    .landing-hero {
        padding-top: 6rem;
    }

    .task-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .task-row-meta {
        width: 100%;
    }

    .task-row span:last-child {
        text-align: left;
        width: 100%;
    }

    .activity-row-glass {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .activity-amount-lg {
        align-self: flex-start;
    }

    .activity-amount-group {
        align-items: flex-start;
    }

    .tx-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .tx-icon-box {
        margin-right: 0;
    }

    .tx-amount {
        align-self: flex-start;
        align-items: flex-start;
    }

    .profile-card {
        padding: 2rem 1.5rem;
    }

    .profile-connect {
        justify-content: flex-start;
        text-align: left;
        width: 100%;
    }

    .invite-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-copy-glow {
        width: 100%;
    }

    .ref-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .tier-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .spin-left .wheel-wrapper,
    .gift-canvas-container {
        width: min(280px, 80vw);
        height: min(280px, 80vw);
    }

    #notification-container {
        top: 1rem;
        right: 0.8rem;
        left: 0.8rem;
    }

    .notification-toast {
        width: 100%;
    }

    .wheel-wrapper {
        width: min(320px, 85vw);
        height: min(320px, 85vw);
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .hero-subtext {
        font-size: 1.1rem;
    }

    .stats-strip {
        padding: 4rem 1.25rem;
    }

    .modules-header h2 {
        font-size: 2.2rem;
    }

    .flow-header h2 {
        font-size: 2.1rem;
    }

    .faq-section {
        padding: 4rem 1.25rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .level-badge {
        align-self: flex-start;
    }

    .balance-jumbo {
        font-size: 2.2rem;
    }

    .featured-mission-card {
        padding: 1.5rem;
    }

    .featured-icon-box {
        width: 72px;
        height: 72px;
        font-size: 2.2rem;
    }
}

.turnstile-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 20, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2147483646;
}

.turnstile-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.turnstile-container {
    position: relative;
    z-index: 2147483647;
}
