/* ========================================
   Trustzonal
   GLOBAL STYLES
======================================== */
:root {
    --brand-navy: #0b1734;
    --brand-blue: #075dd4;
    --brand-green: #11c76f;
    --brand-purple: #073fb5;
    --brand-pink: #078fe0;
    --brand-cyan: #10bd9b;
    --brand-gradient:
        linear-gradient(112deg, #0739a8 0%, #087de8 56%, #087b4c 100%);
    --brand-gradient-deep:
        linear-gradient(112deg, #05266f 0%, #064783 56%, #064b32 100%);
    --brand-surface: #151c2e;
    --brand-surface-hover: #202d43;
    --brand-border: #34415b;
    --text-dark: #111827;
    --text-muted: #667085;
    --background: #f4f8fc;
    --background-soft: #eaf6f1;
    --white: #ffffff;
    --dark-shell: #0b1734;
    --dark-panel: rgba(13, 27, 53, 0.82);
    --dark-input: rgba(255, 255, 255, 0.06);
    --dark-border: rgba(255, 255, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.08);
}
/* ========================================
   RESET
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}

/* Shared branded page preloader */
html.site-is-loading,
html.site-is-loading body {
    overflow: hidden;
}

html.site-is-loading body > :not(.luxury-loader) {
    visibility: hidden;
}

.luxury-loader {
    --loader-ink: #f4f8ff;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    color: var(--loader-ink);
    background:
        radial-gradient(ellipse at 50% 44%, rgba(20, 52, 83, 0.62) 0%, rgba(8, 17, 38, 0.22) 39%, transparent 68%),
        linear-gradient(145deg, #070d1d 0%, #0b1731 52%, #081323 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 520ms ease, visibility 520ms ease;
}

.luxury-loader.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.luxury-loader-glow {
    position: absolute;
    z-index: -1;
    width: min(52vw, 560px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    pointer-events: none;
}

.luxury-loader-glow-blue {
    top: -28%;
    left: -15%;
    background: #087de8;
    animation: loader-glow-drift 7s ease-in-out infinite alternate;
}

.luxury-loader-glow-green {
    right: -18%;
    bottom: -32%;
    background: #11c76f;
    animation: loader-glow-drift 8s ease-in-out infinite alternate-reverse;
}

.luxury-loader-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 4px);
    mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}

.luxury-loader-center {
    display: flex;
    width: min(100% - 40px, 360px);
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: loader-arrive 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.luxury-loader-emblem {
    position: relative;
    display: grid;
    width: 176px;
    height: 176px;
    place-items: center;
    margin-bottom: 26px;
}

.luxury-loader-emblem::before {
    position: absolute;
    inset: 17px;
    border: 1px solid rgba(111, 160, 214, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 48px rgba(2, 126, 232, 0.13), inset 0 0 32px rgba(2, 126, 232, 0.07);
    content: "";
}

.luxury-loader-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(3, 126, 232, 0.18));
    animation: loader-logo-float 2.7s ease-in-out infinite;
}

.luxury-loader-wordmark {
    color: #f5f8ff;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -0.055em;
}

.luxury-loader-wordmark span {
    background: linear-gradient(105deg, #1687f7 7%, #13ce9b 80%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.luxury-loader-caption {
    margin-top: 7px;
    color: rgba(210, 222, 241, 0.72);
    font-size: 13px;
    letter-spacing: 0.035em;
}

.luxury-loader-track {
    position: relative;
    width: 146px;
    height: 2px;
    margin-top: 36px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(202, 219, 243, 0.13);
}

.luxury-loader-track span {
    position: absolute;
    inset: 0 auto 0 -42%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #087de8 42%, #16d18b 100%);
    box-shadow: 0 0 12px rgba(17, 199, 111, 0.7);
    animation: loader-track-sweep 1.35s cubic-bezier(0.5, 0.05, 0.35, 1) infinite;
}

.luxury-loader-status {
    margin-top: 12px;
    color: rgba(181, 198, 221, 0.65);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.luxury-loader-meta {
    position: absolute;
    bottom: max(28px, env(safe-area-inset-bottom));
    color: rgba(180, 199, 225, 0.4);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.luxury-loader-meta-left {
    left: max(30px, env(safe-area-inset-left));
}

.luxury-loader-meta-left i {
    display: inline-block;
    width: 16px;
    height: 1px;
    margin: 0 6px 3px;
    background: linear-gradient(90deg, #087de8, #11c76f);
}

.luxury-loader-meta-right {
    right: max(30px, env(safe-area-inset-right));
}

@keyframes loader-arrive {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loader-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes loader-track-sweep {
    from { transform: translateX(0); }
    to { transform: translateX(350%); }
}

@keyframes loader-glow-drift {
    from { transform: translate3d(-10px, 0, 0) scale(0.92); }
    to { transform: translate3d(22px, 14px, 0) scale(1.08); }
}

@media (max-width: 520px) {
    .luxury-loader-emblem { width: 152px; height: 152px; margin-bottom: 21px; }
    .luxury-loader-wordmark { font-size: 25px; }
    .luxury-loader-meta { bottom: max(21px, env(safe-area-inset-bottom)); font-size: 8px; letter-spacing: 0.13em; }
    .luxury-loader-meta-left { left: max(15px, env(safe-area-inset-left)); }
    .luxury-loader-meta-right { right: max(15px, env(safe-area-inset-right)); }
}

@media (prefers-reduced-motion: reduce) {
    .luxury-loader *, .luxury-loader *::before, .luxury-loader *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    .luxury-loader { transition-duration: 150ms; }
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    background:
        linear-gradient(
            180deg,
            #f5f9fd 0%,
            #edf7f2 100%
        );
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}


/* ========================================
   CONTAINER
======================================== */

.container {

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* ========================================
   BUTTONS
======================================== */

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


.btn-primary {

    background: var(--brand-gradient);
    color: var(--white);
    box-shadow:
        0 8px 22px rgba(22, 71, 163, 0.18);
}


.btn-primary:hover {

    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(22, 71, 163, 0.25);
}


.btn-outline {

    background: #ffffff;
    color: var(--brand-blue);
    border: 1px solid #d8e0ed;
}


.btn-outline:hover {

    background: var(--brand-gradient);
    color: var(--white);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(22, 71, 163, 0.18);
}


.btn-light {

    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
}


.btn-light:hover {

    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.12);
}


.btn:active {
    transform: translateY(0);
}


.btn-large {

    min-height: 54px;
    padding: 0 30px;
    border-radius: 12px;
    font-size: 16px;
}


/* ========================================
   HEADER
======================================== */

.site-header {

    width: 100%;
    background:
        rgba(11, 15, 32, 0.88);
    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


.header-inner {

    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


/* ========================================
   BRAND
======================================== */

.brand {

    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}


.brand-logo {

    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}


.brand-name {

    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
    background: linear-gradient(90deg, #fff 0%, #e6f2fc 56%, #e5f7ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ========================================
   NAVIGATION
======================================== */

.main-nav {

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex: 1;
}


.main-nav a {

    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.main-nav a[data-logout] {
    white-space: nowrap;
}


.main-nav a:hover {
    color: var(--white);
    border-color: transparent;
    background: var(--brand-gradient);
}


.main-nav a::after {
    display: none;
}


.mobile-nav-signin,
.mobile-nav-signup,
.mobile-nav-business {
    display: none;
}


/* ========================================
   HEADER ACTIONS
======================================== */

.header-actions {

    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.home-earnings {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 174px;
    min-height: 50px;
    padding: 4px 13px 4px 5px;
    border-radius: 999px;
    background: #191d31;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-earnings:hover,
.home-earnings:focus-visible {
    background: #252a43;
    color: #fff;
    transform: translateY(-1px);
}

.home-earnings-orb {
    position: relative;
    overflow: hidden;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(140deg, #ff7589 8%, #a5d9c6 88%) padding-box, linear-gradient(120deg, #0750c9, #0785dc 62%, #08a86b) border-box;
}

.home-earnings-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.home-earnings-copy {
    display: grid;
    gap: 2px;
}

.home-earnings-label {
    color: #b9bac5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-earnings-copy strong {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 17px;
    line-height: 1.15;
    white-space: nowrap;
}

.home-earnings-copy strong > span:first-child {
    font-size: 14px;
}

.home-earnings-copy strong > .home-earnings-credit-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2c75c;
    color: #192033;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.home-earnings-copy small {
    color: #d6d7df;
    font-size: 9px;
    font-weight: 600;
}


/* ========================================
   HERO
======================================== */

.hero {

    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    background:

        radial-gradient(
            circle at 85% 20%,
            rgba(7, 125, 232, 0.16),
            transparent 35%
        ),

        radial-gradient(
            circle at 15% 80%,
            rgba(17, 199, 111, 0.10),
            transparent 35%
        ),

        linear-gradient(
            180deg,
            #0c1028 0%,
            #100e27 100%
        );
    overflow: hidden;
}


.hero::before {

    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -180px;
    right: -120px;
    border-radius: 50%;
    background:
        rgba(57, 231, 95, 0.10);
    filter: blur(20px);
    pointer-events: none;
}


.hero::after {

    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    bottom: -180px;
    left: -120px;
    border-radius: 50%;
    background:
        rgba(22, 71, 163, 0.08);
    filter: blur(20px);
    pointer-events: none;
}


.hero-content {

    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 100px;
    padding-bottom: 100px;
}


.hero-label {

    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 8px 16px;
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
}


.hero h1 {

    max-width: 850px;
    margin-bottom: 28px;
    font-size:
        clamp(48px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -3px;
    font-weight: 850;
    color: var(--white);
}


.hero-description {

    max-width: 650px;
    margin-bottom: 36px;
    font-size: 19px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}


.hero-actions {

    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}


.hero-actions .btn-primary::after {

    content: "→";
    margin-left: 10px;
    font-size: 18px;
    transition:
        transform 0.2s ease;
}


.hero-actions .btn-primary:hover::after {
    transform: translateX(4px);
}


/* ========================================
   SECTIONS
======================================== */

.earn-section {

    padding: 100px 0;
    background:

        radial-gradient(
            circle at 10% 20%,
            rgba(22, 71, 163, 0.04),
            transparent 35%
        ),

        #f2f5f9;
}


.rewards-section {

    padding: 100px 0;
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    scroll-margin-top: 76px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom:
        1px solid rgba(7, 26, 74, 0.08);
}

.rewards-section > .container {
    width: 100%;
}

.rewards-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(32px, 6vw, 76px);
}

.rewards-layout .section-heading {
    max-width: 760px;
    margin: 0;
}

.rewards-layout .section-heading h2 {
    font-size: clamp(36px, 4vw, 50px);
}

.rewards-layout .reward-preview {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}


.steps-section {

    padding: 100px 0;
    background: #f2f5f9;
    border-bottom:
        1px solid rgba(7, 26, 74, 0.08);
}


.about-section {

    padding: 100px 0;
    background: #ffffff;
}


.section-heading {

    max-width: 700px;
    margin-bottom: 50px;
}


.section-label {

    margin-bottom: 12px;
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}


.section-heading h2 {

    margin-bottom: 16px;
    font-size:
        clamp(34px, 5vw, 52px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}


.section-heading p {

    color: var(--text-muted);
    font-size: 17px;
}


/* ========================================
   EARNING CARDS
======================================== */

.earning-grid {

    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 20px;
}


.earning-card {

    padding: 28px;
    background: #f9fbff;
    border:
        1px solid rgba(7, 26, 74, 0.18);
    border-radius: 18px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.earning-card:hover {

    transform: translateY(-5px);
    border-color:
        rgba(22, 71, 163, 0.30);
    box-shadow:
        0 14px 35px
        rgba(7, 26, 74, 0.08);
}


.earning-icon {

    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background:
        rgba(22, 71, 163, 0.08);
    font-size: 24px;
}


.earning-card h3 {

    margin-bottom: 10px;
    font-size: 20px;
    color: var(--text-dark);
}


.earning-card p {

    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}


.card-link {

    background: transparent;
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 700;
}


.card-link:hover {
    color: var(--brand-green);
}


/* ========================================
   REWARD PREVIEW
======================================== */

.reward-preview {

    max-width: 520px;
    margin-top: 45px;
    padding: 30px;
    background: #f8fafc;
    border:
        1px solid rgba(7, 26, 74, 0.16);
    border-radius: 20px;
    box-shadow:
        0 12px 30px
        rgba(7, 26, 74, 0.06);
}


.reward-preview-header {

    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}


.reward-status {

    padding: 5px 10px;
    border-radius: 999px;
    background:
        rgba(57, 231, 95, 0.12);
    color: #16833a;
    font-size: 12px;
}


.reward-balance {

    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    color: var(--brand-navy);
}


.reward-balance span {

    margin-left: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-blue);
}


.reward-cash {

    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-green);
}


.reward-divider {

    height: 1px;
    margin: 26px 0;
    background:
        rgba(7, 26, 74, 0.10);
}


.reward-info {

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}


.reward-info strong {
    color: var(--text-dark);
}


/* ========================================
   STEPS
======================================== */

.steps-grid {

    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}


.step {

    padding: 30px;
    background: #ffffff;
    border:
        1px solid rgba(7, 26, 74, 0.15);
    border-radius: 18px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.step:hover {

    transform: translateY(-5px);
    box-shadow:
        0 14px 32px
        rgba(7, 26, 74, 0.07);
}


.step-number {

    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 14px;
    background: var(--brand-gradient);
    color: var(--white);
    font-size: 15px;
    font-weight: 800;
}


.step h3 {

    margin-bottom: 10px;
    font-size: 20px;
}


.step p {

    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}


/* ========================================
   ABOUT
======================================== */

.about-content {

    display: grid;
    grid-template-columns:
        1.5fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 45px;
}


.about-text h3 {

    margin-bottom: 16px;
    font-size: 30px;
    color: var(--text-dark);
}


.about-text p {

    max-width: 650px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}


.about-highlight {

    padding: 30px;
    background: #f2f5f9;
    border:
        1px solid rgba(7, 26, 74, 0.15);
    border-radius: 20px;
}


.about-highlight-number {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--brand-gradient);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}


.about-highlight h3 {

    margin-bottom: 10px;
    font-size: 24px;
}


.about-highlight p {

    color: var(--text-muted);
    font-size: 15px;
}


/* ========================================
   CTA
======================================== */

.cta-section {

    padding: 100px 0;
    background: var(--brand-navy);
    color: var(--white);
    text-align: center;
}


.cta-section .container {
    max-width: 800px;
}


.cta-section h2 {

    margin-bottom: 16px;
    font-size:
        clamp(34px, 5vw, 52px);
    color: var(--white);
}


.cta-section p {

    max-width: 600px;
    margin:
        0 auto 30px;
    color:
        rgba(255, 255, 255, 0.72);
    font-size: 17px;
}


.create-account-button {
    background: var(--brand-gradient);
    color: #fff;
}


.create-account-button:hover {

    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 12px 28px rgba(7, 93, 212, 0.24);
}


/* ========================================
   FOOTER
======================================== */

.site-footer {

    padding: 0 0 28px;
    background: #061638;
    border-top:
        1px solid rgba(57, 231, 95, 0.12);
}

.phishing-warning {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 40px;
    align-items: start;
    gap: 16px;
    width: 100%;
    padding: 20px max(24px, calc((100vw - 1240px) / 2));
    background: #4169ef;
    color: #fff;
}

.phishing-warning[hidden] {
    display: none;
}

.phishing-warning-icon {
    width: 28px;
    height: 28px;
    margin-top: 2px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.phishing-warning-copy {
    min-width: 0;
}

.phishing-warning-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 19px;
    font-weight: 700;
}

.phishing-warning-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 15px;
    line-height: 1.55;
}

.phishing-warning-copy a {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.phishing-warning-close {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: -4px 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.phishing-warning-close:hover,
.phishing-warning-close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.phishing-warning-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.phishing-warning-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}


.footer-inner {

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}


.footer-brand {

    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 17px;
    font-weight: 800;
}


.footer-brand .brand-logo {

    width: 34px;
    height: 34px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.footer-nav a:focus-visible {
    outline: 2px solid #39e75f;
    outline-offset: 2px;
}


.footer-copy {

    color:
        rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.terms-container {
    max-width: 860px;
}

.terms-card {
    text-align: left;
}

.terms-card h1 {
    font-size: clamp(36px, 6vw, 54px);
}

.terms-brand {
    margin-bottom: 30px;
    text-decoration: none;
}

.terms-card section {
    margin-top: 28px;
}

.terms-card section h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 19px;
}

.terms-card section p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.7;
}

.terms-card .auth-home-link {
    margin-top: 32px;
}

.document-content {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.document-content h2,
.document-content h3,
.document-content h4 {
    margin: 28px 0 8px;
    color: var(--white);
}

.document-content h2 {
    font-size: 21px;
}

.document-content h3,
.document-content h4 {
    font-size: 18px;
}

.document-content p {
    margin: 0 0 16px;
}

.document-content ul {
    margin: 0 0 18px;
    padding-left: 24px;
}

.document-content li + li {
    margin-top: 7px;
}

.security-document-page .terms-card {
    border-color: rgba(69, 132, 255, 0.32);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(20, 117, 225, 0.14), transparent 38%),
        rgba(11, 23, 52, 0.94);
}

.security-document-page .terms-card > .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border: 1px solid rgba(92, 161, 255, 0.34);
    border-radius: 999px;
    background: rgba(16, 93, 191, 0.18);
    color: #9bcaff;
}

.security-document-page .document-content h2 {
    margin-top: 34px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(133, 174, 230, 0.18);
}

.security-document-page .document-content h3 {
    margin: 22px 0 7px;
    color: #dceaff;
    font-size: 16px;
}

.security-document-page .document-content > p:first-of-type {
    color: #fff;
    font-size: 17px;
}

.security-document-page .document-content ul {
    padding: 16px 22px 16px 42px;
    border: 1px solid rgba(133, 174, 230, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.auth-page[data-theme="light"] .document-content {
    color: rgba(19, 30, 51, 0.82);
}

.auth-page[data-theme="light"] .document-content h2,
.auth-page[data-theme="light"] .document-content h3,
.auth-page[data-theme="light"] .document-content h4 {
    color: #15213a;
}


/* ========================================
   MOBILE MENU BUTTON
======================================== */

.mobile-menu-button {

    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f4f6fb;
    font-size: 22px;
}


/* ========================================
   AUTHENTICATION PAGES
======================================== */

.auth-page {

    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px;
    background:

        radial-gradient(
            circle at 15% 20%,
            rgba(7, 125, 232, 0.12),
            transparent 35%
        ),

        radial-gradient(
            circle at 85% 80%,
            rgba(17, 199, 111, 0.10),
            transparent 35%
        ),

        linear-gradient(
            180deg,
            #0a1530 0%,
            #102440 100%
        );
}


.auth-container {

    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}


/* ========================================
   AUTH CARD
======================================== */

.auth-card {

    padding: 50px 45px;
    background:
        linear-gradient(
            180deg,
            rgba(15, 38, 68, 0.97) 0%,
            rgba(10, 24, 48, 0.96) 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius:
        26px;
    text-align: center;
    box-shadow:
        0 30px 80px rgba(9, 8, 24, 0.52);
}


.auth-card h1 {

    margin-bottom: 12px;
    color: var(--white);
    font-size: 58px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -2px;
}


/* ========================================
   ACCOUNT SWITCH
======================================== */

.auth-subtitle {

    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.4px;
}


.auth-switch {

    margin-bottom: 35px;
    color: #b8c0ce;
    font-size: 17px;
}


.auth-switch a {

    margin-left: 5px;
    color: #5f9cff;
    font-weight: 700;
}


.auth-switch a:hover {
    color: var(--brand-green);
}


.auth-toggle {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}


.auth-toggle-button {

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 700;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}


.auth-toggle-button.active {

    background: var(--brand-gradient);
    color: var(--white);
    box-shadow:
        0 12px 26px rgba(7, 93, 212, 0.28);
}


/* ========================================
   SOCIAL BUTTONS
======================================== */

.social-button {

    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 22px;
    background: #f8faff;
    border: 1px solid #dbe5f1;
    border-radius: 18px;
    color: #080b12;
    font-size: 18px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.social-button:hover {

    transform: translateY(-2px);
    border-color: transparent;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.12);
}


.social-button:active {
    transform: translateY(0);
}


.youtogram-button {
    background: rgba(255, 255, 255, 0.96);
    color: #16233b;
}


/* ========================================
   YOUTOGRAM LOGO
======================================== */

.youtogram-logo {

    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 9px;
}


/* ========================================
   AUTH FORM
======================================== */

.auth-form {

    width: 100%;
    margin-top: 28px;
    text-align: left;
}

.human-check {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin: 6px 0 14px;
    padding: 14px 16px;
    border: 1px solid rgba(157, 197, 255, 0.24);
    border-radius: 14px;
    background: rgba(8, 20, 43, 0.45);
}

.human-check-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 700;
}

.human-check small {
    color: rgba(216, 228, 244, 0.76);
    font-size: 12px;
    line-height: 1.5;
}

.human-check small.is-error {
    color: #ffb3b3;
}

.age-date-method {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0 0 18px;
    border: 0;
}

.age-date-method legend,
.age-manual-date legend {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 700;
}

.age-date-method label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(225, 235, 248, 0.88);
    font-size: 14px;
    cursor: pointer;
}

.age-date-method input {
    width: 18px;
    height: 18px;
    accent-color: #1687f7;
}

.age-manual-date {
    min-width: 0;
    padding: 0;
    border: 0;
}

.age-date-parts {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 10px;
}

.age-date-parts label {
    min-width: 0;
}

.age-date-parts label span {
    font-size: 14px;
}


.field {

    display: block;
    margin-bottom: 18px;
}


.field span {

    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 700;
}

.signup-terms {
    margin: 4px 0 18px;
    color: rgba(225, 235, 248, 0.88);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.signup-terms a {
    color: #8fc6ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.field-label-row label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 700;
}

.password-field-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.password-reset-link,
.password-reset-cancel {
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9dc5ff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.password-reset-link:hover,
.password-reset-link:focus-visible,
.password-reset-cancel:hover,
.password-reset-cancel:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.password-reset-panel {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid rgba(115, 160, 225, 0.25);
    border-radius: 16px;
    background: rgba(9, 25, 54, 0.7);
}

.password-reset-panel > p:first-child {
    margin: 0 0 16px;
    color: rgba(225, 235, 248, 0.82);
    font-size: 14px;
}

.password-reset-panel .field {
    margin-bottom: 12px;
}

.password-reset-panel .field span {
    font-size: 14px;
}

.password-reset-panel .field input {
    min-height: 52px;
}

.password-reset-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.password-reset-actions .btn {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 11px;
    font-size: 14px;
}

.password-reset-status {
    min-height: 20px;
    margin: 12px 0 0;
    color: #b7f0c7;
    font-size: 13px;
    font-weight: 600;
}

.password-reset-status.is-error {
    color: #ffb3b3;
}

.password-toggle {
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9dc5ff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.password-toggle:focus-visible {
    outline: 2px solid #9dc5ff;
    outline-offset: 2px;
}


.field input,
.field select {

    width: 100%;
    min-height: 62px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-size: 16px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.field select option {
    background: #fff;
    color: #172033;
}


.field input::placeholder {
    color: rgba(216, 228, 244, 0.6);
}


.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(95, 156, 255, 0.9);
    box-shadow:
        0 0 0 4px rgba(95, 156, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}


.auth-submit {

    width: 100%;
    margin-top: 8px;
    min-height: 62px;
    border-radius: 16px;
    font-size: 20px;
}


.form-status {

    min-height: 22px;
    margin-top: 14px;
    color: #b7f0c7;
    font-size: 14px;
    font-weight: 600;
}


.form-status.is-error {
    color: #ffb3b3;
}


/* ========================================
   AUTH HOME LINK
======================================== */

.auth-home-link {

    display: inline-block;
    margin-top: 20px;
    color: #8fa3c7;
    font-size: 14px;
    font-weight: 600;
}


.auth-home-link:hover {
    color: var(--brand-green);
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 768px) {

    .container {

        padding-left: 18px;
        padding-right: 18px;
    }


    /* HEADER */

    .header-inner {
        min-height: 68px;
        justify-content: flex-start;
        gap: 8px;
    }

    .header-inner > .brand {
        gap: 6px;
        min-width: 0;
    }

    .header-inner > .brand .brand-logo {
        width: 36px;
        height: 36px;
    }

    .header-inner > .brand .brand-name {
        font-size: 16px;
    }


    .main-nav {
        display: none;
    }


    .header-actions {
        display: none;
    }

    .header-actions[data-auth-only]:not([hidden]) {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        min-width: 0;
    }

    .header-actions[data-auth-only]:not([hidden]) .logout-button {
        display: none;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 42px;
        gap: 6px;
        padding: 4px 8px 4px 4px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-orb {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-label {
        font-size: 8px;
        line-height: 1.1;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-copy strong {
        gap: 2px;
        font-size: 13px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-copy strong > span:first-child {
        font-size: 11px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-copy small {
        font-size: 8px;
    }

    .header-actions[data-auth-only]:not([hidden]) .notification-button {
        width: 38px;
        height: 38px;
    }


    .mobile-menu-button {
        display: flex;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        margin-left: auto;
    }


    /* MOBILE NAV OPEN */

    .main-nav.mobile-open {

        display: flex;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 12px 18px 16px;
        border-radius: 0 0 16px 16px;
        background: #ffffff;
        border-bottom:
            1px solid rgba(7, 26, 74, 0.12);
        box-shadow:
            0 10px 25px
            rgba(7, 26, 74, 0.08);
    }


    .main-nav.mobile-open a {

        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        padding: 10px 12px;
        border-bottom:
            1px solid rgba(7, 26, 74, 0.06);
        border-radius: 10px;
        color: var(--text-dark);
        font-size: 16px;
        font-weight: 600;
        text-align: center;
    }

    .main-nav a:hover {
    color: var(--white);
    border-color: transparent;
    background: var(--brand-gradient);
    }

    /* NO UNDERLINE */

    .main-nav a::after {
    display: none;
    }


    .main-nav.mobile-open .mobile-nav-signin,
    .main-nav.mobile-open .mobile-nav-signup,
    .main-nav.mobile-open .mobile-nav-business {

        display: flex;
        margin-top: 8px;
        border-radius: 10px;
    }


    .main-nav.mobile-open .mobile-nav-signin,
    .main-nav.mobile-open .mobile-nav-business {

        border:
            1px solid rgba(22, 71, 163, 0.20);
    }


    .main-nav.mobile-open .mobile-nav-signup {

        background: var(--brand-gradient);
        color: #fff;
        border-bottom: none;
    }


    /* HERO */

    .hero {
        min-height: auto;
    }


    .hero-content {

        padding-top: 70px;
        padding-bottom: 70px;
    }


    .hero h1 {

        font-size:
            clamp(42px, 12vw, 58px);
        letter-spacing: -2px;
    }


    .hero-description {
        font-size: 17px;
    }


    .hero-actions {

        width: 100%;
    }


    .hero-actions .btn {

        width: 100%;
    }


    /* CARDS */

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


    /* STEPS */

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


    /* ABOUT */

    .about-content {

        grid-template-columns: 1fr;
        gap: 35px;
    }


    /* FOOTER */

    .footer-inner {

        flex-direction: column;
        align-items: flex-start;
    }

    .phishing-warning {
        grid-template-columns: 26px minmax(0, 1fr) 36px;
        gap: 10px;
        padding: 16px 18px;
    }

    .phishing-warning-icon {
        width: 24px;
        height: 24px;
    }

    .phishing-warning-copy strong {
        font-size: 17px;
    }

    .phishing-warning-copy p {
        font-size: 14px;
    }


    /* AUTH */

    .auth-page {
        padding: 0;
    }


    .auth-container {

        width: 100%;
        max-width: 100%;
    }


    .auth-card {

        min-height: 100vh;
        padding:
            45px 20px 40px;
        border-radius: 0;
    }


    .auth-card h1 {
        font-size: 36px;
    }


    .auth-switch {

        margin-bottom: 30px;
        font-size: 16px;
    }


    .social-button {

        min-height: 62px;
        gap: 13px;
        padding: 10px 16px;
        font-size: 16px;
    }


    .youtogram-logo {

        width: 32px;
        height: 32px;
    }

}


/* ========================================
   SMALL PHONES
======================================== */

@media (max-width: 420px) {

    .auth-card h1 {
        font-size: 32px;
    }


    .social-button {
        font-size: 15px;
    }

}


/* ========================================
   JUMPTASK-INSPIRED LANDING PAGE
======================================== */

.landing-page {
    background: #f3f5fb;
}

.member-feed {
    min-height: calc(100vh - 76px);
    padding: 42px 0 64px;
    background: #f3f5fb;
}

.member-feed-container {
    max-width: 1360px;
}

.member-feed-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.member-feed-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.member-feed-heading h1 {
    margin: 0 0 8px;
    color: #10182c;
    font-size: clamp(30px, 4vw, 42px);
}

.member-feed-heading > div > p:last-child,
.member-section-heading p {
    color: #667085;
}

.member-feed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 22px;
}

.member-feed-main,
.member-feed-aside {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.member-feed-section,
.member-balance-card,
.member-profile-card {
    padding: 24px;
    border: 1px solid rgba(15, 17, 35, 0.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(26, 27, 38, 0.05);
}

.member-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.member-section-heading h2,
.member-profile-card h2,
.member-balance-card h2 {
    margin-bottom: 5px;
    color: #10182c;
    font-size: 22px;
}

.member-section-heading a,
.member-profile-card a {
    color: #2867d8;
    font-weight: 700;
    white-space: nowrap;
}

.feed-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff3d6;
    color: #815100;
    font-size: 12px;
    font-weight: 700;
}

.task-feed-empty {
    padding: 28px;
    border: 1px dashed #c7d2e5;
    border-radius: 12px;
    background: #f8faff;
    text-align: center;
}

.task-empty-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #e7efff;
    color: #2867d8;
    font-size: 23px;
    font-weight: 700;
}

.task-feed-empty h3 {
    margin-bottom: 6px;
    color: #10182c;
    font-size: 19px;
}

.task-feed-empty p {
    max-width: 600px;
    margin: 0 auto;
    color: #667085;
}

.task-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.task-category {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(15, 17, 35, 0.08);
    border-radius: 10px;
    background: #fff;
}

.task-category strong {
    color: #172033;
}

.task-category span,
.member-empty-activity {
    color: #667085;
    font-size: 14px;
}

.task-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.task-preview-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(15, 17, 35, 0.08);
    border-radius: 12px;
    background: #fff;
}

.task-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.task-preview-heading h3 {
    margin-bottom: 4px;
    color: #172033;
    font-size: 17px;
}

.task-preview-heading p,
.captcha-safety-note,
.preview-disclaimer {
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.preview-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf2fa;
    color: #46546a;
    font-size: 11px;
    font-weight: 700;
}

.scratch-surface {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 104px;
    margin: 15px 0 9px;
    border: 1px solid #c5cedb;
    border-radius: 10px;
    background: repeating-linear-gradient(135deg, #dce2eb 0 12px, #cbd4e0 12px 24px);
    color: #273448;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.scratch-surface:hover {
    filter: brightness(0.97);
}

.scratch-surface:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

.scratch-surface.is-revealed {
    border-color: #acd3b8;
    background: #eaf5ee;
    color: #17683a;
    cursor: default;
}

.captcha-safety-note {
    margin-top: 18px;
}

.member-empty-activity {
    padding: 18px 0 4px;
    border-top: 1px solid #e9edf4;
}

.member-balance-card {
    background: linear-gradient(145deg, #10172a, #1b2940);
    color: #fff;
}

.member-balance-card .section-label {
    color: #8ca7d2;
}

.member-balance-card h2 {
    color: #fff;
}

.member-credit-balance {
    display: block;
    margin: 20px 0 6px;
    color: #fff;
    font-size: 32px;
}

.member-credit-balance small {
    font-size: 14px;
    font-weight: 600;
}

.member-balance-card [data-user-funds] {
    display: block;
    color: #a8bddf;
    font-size: 17px;
    font-weight: 700;
}

.member-rate-note {
    display: block;
    margin-top: 10px;
    color: #a8bddf;
    line-height: 1.5;
}

.member-balance-card .btn {
    width: 100%;
    margin-top: 20px;
}

.member-profile-card strong {
    display: block;
    margin: 14px 0 4px;
    color: #172033;
}

.member-profile-card p {
    overflow-wrap: anywhere;
    margin-bottom: 16px;
    color: #667085;
}

.landing-page[data-theme="dark"] .member-feed {
    background: #0b1020;
    color: #e7ebf4;
}

.landing-page[data-theme="dark"] .offerwall-me-heading h3 {
    color: #f4f6fb;
}

.landing-page[data-theme="dark"] .member-feed-heading h1,
.landing-page[data-theme="dark"] .member-section-heading h2,
.landing-page[data-theme="dark"] .member-profile-card h2,
.landing-page[data-theme="dark"] .task-feed-empty h3,
.landing-page[data-theme="dark"] .task-category strong,
.landing-page[data-theme="dark"] .member-profile-card strong {
    color: #f4f6fb;
}

.landing-page[data-theme="dark"] .member-feed-heading > div > p:last-child,
.landing-page[data-theme="dark"] .member-section-heading p,
.landing-page[data-theme="dark"] .task-feed-empty p,
.landing-page[data-theme="dark"] .task-category span,
.landing-page[data-theme="dark"] .member-empty-activity,
.landing-page[data-theme="dark"] .task-preview-heading p,
.landing-page[data-theme="dark"] .captcha-safety-note,
.landing-page[data-theme="dark"] .preview-disclaimer,
.landing-page[data-theme="dark"] .member-profile-card p {
    color: #aab4c8;
}

.landing-page[data-theme="dark"] .member-feed-section,
.landing-page[data-theme="dark"] .member-profile-card {
    border-color: #2a344a;
    background: #151c2e;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.landing-page[data-theme="dark"] .task-feed-empty {
    border-color: #34415b;
    background: #10182a;
}

.landing-page[data-theme="dark"] .task-category {
    border-color: #2a344a;
    background: #10182a;
}

.landing-page[data-theme="dark"] .task-preview-card {
    border-color: #2a344a;
    background: #10182a;
}

.landing-page[data-theme="dark"] .task-preview-heading h3 {
    color: #f4f6fb;
}

.landing-page[data-theme="dark"] .preview-badge {
    background: #293957;
    color: #c6d5ec;
}

.landing-page[data-theme="dark"] .scratch-surface {
    border-color: #52617a;
    background: repeating-linear-gradient(135deg, #6c7585 0 12px, #515d70 12px 24px);
    color: #fff;
}

.landing-page[data-theme="dark"] .scratch-surface.is-revealed {
    border-color: #2f6f4c;
    background: #153a29;
    color: #b7e8c7;
}

.landing-page[data-theme="dark"] .member-empty-activity {
    border-color: #2a344a;
}

.landing-page[data-theme="dark"] .theme-switch {
    border-color: #34415b;
    background: #111a2c;
}

.landing-page[data-theme="dark"] .theme-option {
    color: #aab4c8;
}

.landing-page[data-theme="dark"] .theme-option.active {
    background: #293957;
    color: #fff;
}

.home-hero {
    background:
        radial-gradient(circle at top left, rgba(7, 93, 212, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(17, 199, 111, 0.12), transparent 35%),
        linear-gradient(135deg, #09152d 0%, #10243c 100%);
}

.home-hero-layout {
    display: grid;
    max-width: 1280px;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 64px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.home-hero .hero h1,
.home-hero h1 {
    max-width: 720px;
    font-size: clamp(48px, 5.2vw, 76px);
    letter-spacing: 0;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(57, 231, 95, 0.14);
    color: #7cf7a6;
}

.hero-visual {
    position: relative;
    min-height: 420px;
    min-width: 0;
    isolation: isolate;
    animation: home-visual-arrive .85s cubic-bezier(.2,.75,.25,1) both;
}

.hero-visual::before,
.hero-visual::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.hero-visual::before {
    inset: 8% 4% 5% 2%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(31, 126, 255, .26), rgba(44, 214, 173, .1) 42%, transparent 72%);
    filter: blur(30px);
    animation: home-light-breathe 7s ease-in-out infinite;
}

.hero-visual::after {
    top: 8%;
    right: 8%;
    width: 110px;
    aspect-ratio: 1;
    border: 1px solid rgba(180, 222, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 32px rgba(76, 177, 255, .12), inset 0 0 28px rgba(76, 177, 255, .08);
    animation: home-orbit-drift 12s ease-in-out infinite;
}

.dashboard-card {
    background: rgba(17, 20, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.dashboard-main-card {
    position: absolute;
    inset: 55px 30px 10px 0;
    padding: 26px 26px 20px;
}

.mini-header,
.offer-title-row,
.offer-meta,
.panel-header,
.reward-preview-header,
.leader-metric,
.leader-row,
.activity-list li,
.account-box,
.dashboard-header,
.header-tools,
.sidebar-card,
.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-header {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.status-tag {
    background: rgba(57, 231, 95, 0.16);
    color: #8ef0aa;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.mini-balance {
    color: #fff;
    font-size: clamp(34px, 3vw, 46px);
    font-weight: 800;
    letter-spacing: 0;
}

.mini-balance span {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-left: 8px;
}

.mini-cash {
    margin-top: 10px;
    font-size: 18px;
    color: #71f0ae;
    font-weight: 700;
}

.activity-preview-card { inset: 42px 18px 26px 0; padding: 24px; overflow: hidden; border-color: rgba(166, 210, 255, .2); box-shadow: 0 30px 70px rgba(0, 0, 0, .32), 0 0 46px rgba(30, 126, 255, .1), inset 0 1px 0 rgba(255,255,255,.08); }
.activity-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.activity-preview { position: relative; display: grid; min-height: 116px; place-items: center; align-content: center; gap: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); color: #f4f7ff; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); animation: activity-card-float 4.8s ease-in-out infinite; transition: border-color .3s ease, background .3s ease, box-shadow .3s ease; }
.activity-preview::after { position: absolute; inset: 0 auto 0 -70%; width: 48%; content: ""; background: linear-gradient(100deg, transparent, rgba(255,255,255,.12), transparent); transform: skewX(-18deg); animation: activity-tile-sheen 7.5s ease-in-out infinite; pointer-events: none; }
.activity-preview:nth-child(2) { animation-delay: .4s; }
.activity-preview:nth-child(3) { animation-delay: .8s; }
.activity-preview:nth-child(4) { animation-delay: 1.2s; }
.activity-preview:nth-child(2)::after { animation-delay: .8s; }
.activity-preview:nth-child(3)::after { animation-delay: 1.6s; }
.activity-preview:nth-child(4)::after { animation-delay: 2.4s; }
.activity-preview strong { font-size: 13px; letter-spacing: .02em; }
.activity-preview-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: rgba(7,125,232,.16); color: #69c8ff; }
.activity-preview-icon svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.survey-preview .activity-preview-icon svg rect { stroke-dasharray: 120; animation: survey-icon-draw 5.8s ease-in-out infinite; }
.task-preview .activity-preview-icon svg path { stroke-dasharray: 110; animation: task-icon-draw 5.8s .5s ease-in-out infinite; }
.task-preview .activity-preview-icon { background: rgba(22,199,111,.15); color: #65efa7; }
.reward-icon { background: rgba(255,195,73,.14); color: #ffd16c; }
.reward-icon svg { transform-origin: center; animation: reward-icon-glow 3.2s ease-in-out infinite; }
.game-avatar-scene { position: relative; display: grid; width: 66px; height: 56px; place-items: center; border-radius: 18px; background: radial-gradient(circle at 50% 60%, rgba(118,93,255,.3), rgba(42,50,98,.08) 72%); }
.game-avatar { position: relative; display: block; width: 58px; height: 54px; animation: game-avatar-hop 2.2s ease-in-out infinite; }
.game-avatar-hair { position: absolute; z-index: 2; top: 6px; left: 11px; width: 36px; height: 19px; border-radius: 18px 18px 10px 10px; background: #5936b8; box-shadow: inset 0 4px 0 rgba(255,255,255,.13); }
.game-avatar-face { position: absolute; z-index: 1; top: 12px; left: 15px; width: 29px; height: 27px; border-radius: 43% 43% 48% 48%; background: #ffc79e; }
.game-avatar-eye { position: absolute; z-index: 3; top: 23px; width: 3px; height: 4px; border-radius: 50%; background: #263451; }
.game-avatar-eye-left { left: 23px; }
.game-avatar-eye-right { left: 34px; }
.game-avatar-body { position: absolute; top: 34px; left: 8px; width: 43px; height: 20px; border: 2px solid #8d7bff; border-radius: 13px 13px 8px 8px; background: linear-gradient(135deg,#5265ef,#2f8fe8); }
.game-avatar-controller { position: absolute; z-index: 4; right: 0; bottom: 2px; display: block; width: 25px; height: 11px; border: 2px solid #c9d7ff; border-radius: 7px; background: #222e55; transform: rotate(-12deg); }
.game-avatar-controller i,.game-avatar-controller b { position: absolute; top: 2px; left: 5px; width: 2px; height: 5px; border-radius: 2px; background: #72d9ff; }
.game-avatar-controller b { left: 15px; background: #ff8db8; }
.game-spark { position: absolute; color: #ffe27a; font-size: 12px; animation: game-spark-pop 1.8s ease-in-out infinite; }
.game-spark-one { top: 0; right: 2px; }
.game-spark-two { top: 23px; left: 0; color: #74ddff; animation-delay: .6s; }
.activity-offer-card { position: relative; min-height: 148px; overflow: hidden; isolation: isolate; transition: transform .28s cubic-bezier(.2,.75,.25,1), border-color .28s ease, box-shadow .28s ease; }
.activity-offer-card::after { position: absolute; z-index: 0; inset: -20% auto -20% -65%; width: 45%; content: ""; background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.activity-offer-card > * { position: relative; z-index: 1; }
.activity-card-icon { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border-radius: 15px; background: linear-gradient(140deg,#328bf1,#2ac694); color: #fff; font-size: 26px; font-weight: 800; }
.click-card-mark { background: linear-gradient(140deg,#8859ed,#377fe4); }
.game-avatar-scene-card { flex: 0 0 66px; margin-bottom: 4px; }
@keyframes activity-card-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes game-avatar-hop { 0%,100% { transform: translateY(0) rotate(0); } 42% { transform: translateY(-5px) rotate(-3deg); } 70% { transform: translateY(1px) rotate(2deg); } }
@keyframes game-spark-pop { 0%,100% { opacity: .45; transform: scale(.75) rotate(0); } 50% { opacity: 1; transform: scale(1.18) rotate(25deg); } }
@keyframes home-visual-arrive { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.985); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes home-light-breathe { 0%,100% { opacity: .55; transform: scale(.94); } 50% { opacity: .95; transform: scale(1.04); } }
@keyframes home-orbit-drift { 0%,100% { transform: translate3d(0, 0, 0) rotate(0); opacity: .56; } 50% { transform: translate3d(-12px, 10px, 0) rotate(14deg); opacity: .9; } }
@keyframes activity-tile-sheen { 0%,68%,100% { transform: translateX(0) skewX(-18deg); opacity: 0; } 74% { opacity: 1; } 88% { transform: translateX(360%) skewX(-18deg); opacity: 0; } }
@keyframes survey-icon-draw { 0%,58%,100% { stroke-dashoffset: 0; } 65%,73% { stroke-dashoffset: 120; } 82% { stroke-dashoffset: 0; } }
@keyframes task-icon-draw { 0%,58%,100% { stroke-dashoffset: 0; } 65%,73% { stroke-dashoffset: 110; } 82% { stroke-dashoffset: 0; } }
@keyframes reward-icon-glow { 0%,100% { transform: scale(.96) rotate(-3deg); filter: drop-shadow(0 0 0 rgba(255,209,108,0)); } 50% { transform: scale(1.06) rotate(3deg); filter: drop-shadow(0 0 7px rgba(255,209,108,.52)); } }
@media (hover: hover) and (pointer: fine) {
    .activity-preview:hover { transform: translateY(-3px); border-color: rgba(139,207,255,.4); background: rgba(255,255,255,.09); box-shadow: 0 12px 30px rgba(3,10,28,.2), inset 0 1px 0 rgba(255,255,255,.1); }
    .activity-offer-card:hover { transform: translateY(-4px); border-color: rgba(74,153,255,.48); box-shadow: 0 18px 38px rgba(8,34,79,.18); }
    .activity-offer-card:hover::after { opacity: 1; animation: offer-card-sheen .75s ease both; }
    .home-page .hero-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(5,104,220,.3); }
}
.activity-offer-card:active { transform: scale(.985); }
@keyframes offer-card-sheen { from { left: -65%; } to { left: 125%; } }
@media (prefers-reduced-motion: reduce) {
    .hero-visual, .hero-visual::before, .hero-visual::after, .activity-preview, .activity-preview::after,
    .activity-preview-icon svg, .reward-icon svg, .game-avatar, .game-spark, .activity-offer-card, .activity-offer-card::after,
    .home-page .hero-actions .btn-primary { animation: none !important; transition: none !important; transform: none !important; }
}

.dashboard-main-card .conversion-note {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.reward-preview .conversion-note {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
}

.credit-converter-field {
    display: block;
    margin: 20px 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.credit-converter-field span {
    display: block;
    margin-bottom: 8px;
}

.credit-converter-field input {
    width: min(100%, 280px);
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font: inherit;
    font-size: 18px;
}

.credit-converter-field input:focus-visible {
    outline: 2px solid var(--brand-cyan);
    outline-offset: 2px;
}

#credit-converter-output {
    display: block;
    margin-top: 8px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.mini-grid div {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
}

.mini-grid small {
    display: block;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.mini-grid strong {
    color: #fff;
    font-size: 22px;
}

.floating-card {
    position: absolute;
    padding: 16px 18px;
    width: 220px;
    backdrop-filter: blur(12px);
}

.card-top {
    top: 0;
    right: 0;
}

.card-bottom {
    bottom: 0;
    right: 20px;
}

.tiny-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.floating-card strong,
.floating-card em {
    display: block;
    color: #fff;
}

.floating-card em {
    margin-top: 6px;
    font-style: normal;
    color: #86e9a6;
}

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

.offer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(15, 17, 35, 0.08);
    box-shadow: 0 10px 25px rgba(21, 25, 43, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(21, 25, 43, 0.1);
}

.offer-card img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
    background: #edf2ff;
}

.provider-card-mark {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff6b35, #e83a24);
    color: #fff;
    font-size: 27px;
    font-weight: 900;
}

.provider-card-mark.timewall-mark {
    background: linear-gradient(135deg, #11b6d9, #50a548);
    font-style: italic;
}

.offer-section {
    padding: 72px 0;
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    scroll-margin-top: 76px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid rgba(7, 26, 74, 0.08);
}

.offer-section > .container {
    width: 100%;
}

.offer-section .section-heading {
    margin-bottom: 32px;
}

.offer-copy {
    flex: 1;
}

.offer-title-row {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 800;
}

.offer-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.offer-meta {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-blue);
}

.offer-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 8px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--brand-blue);
    border-radius: 999px;
    font-size: 11px;
}

.leader-wrap {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: center;
    min-width: 0;
}

.leaderboard-section {
    padding: 72px 0;
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
    scroll-margin-top: 76px;
    display: flex;
    align-items: center;
    background: #f2f5f9;
    border-bottom: 1px solid rgba(7, 26, 74, 0.08);
}

.leaderboard-section > .container {
    width: 100%;
}

.leaderboard-section .section-heading {
    margin: 0;
}

.leaderboard-section .section-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.leaderboard-list {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px 22px;
    background: #fff;
    border: 1px solid rgba(15,17,35,0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(21,25,43,0.05);
}

.leaderboard-list p {
    margin: 0;
}

.leaderboard-demo-note,
.leaderboard-demo-footnote {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.leaderboard-entries {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15,17,35,0.06);
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.leaderboard-entry .rank {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.leaderboard-person {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.leaderboard-person strong {
    overflow: hidden;
    color: var(--text-dark);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-person small {
    color: var(--text-muted);
    font-size: 12px;
}

.leaderboard-earned {
    color: var(--brand-green);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.leader-row {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(15,17,35,0.06);
    gap: 12px;
}

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

.leader-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-dark);
}

.rank {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-cyan));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.leader-metric {
    gap: 14px;
    color: var(--text-dark);
    font-weight: 700;
}

.leader-metric span {
    color: var(--brand-green);
    font-size: 14px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.about-highlight-panel {
    padding: 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(7,93,212,0.14), rgba(17,199,111,0.12));
    border: 1px solid rgba(15,17,35,0.06);
}

.about-highlight-panel h3 {
    font-size: 26px;
    margin: 18px 0 12px;
}

.about-highlight-logo {
    display: block;
    width: min(100%, 240px);
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* ========================================
   DASHBOARD PAGE
======================================== */

.dashboard-page {
    min-height: 100vh;
    background: var(--background);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.dashboard-sidebar {
    padding: 24px 18px;
    background: linear-gradient(180deg, #081a3b 0%, #0b3541 100%);
    color: #fff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 22px;
    font-weight: 800;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    transition: all 0.2s ease;
}

.support-nav-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
}

.nav-item:hover {
    background: var(--brand-gradient);
    outline: 1px solid rgba(255, 255, 255, 0.18);
    outline-offset: -1px;
}

.nav-item.active {
    background: linear-gradient(112deg, #05266f 0%, #064783 56%, #064b32 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 28px;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
}

.sidebar-card span,
.sidebar-card small {
    color: rgba(255,255,255,0.7);
}

.sidebar-card strong {
    font-size: 28px;
    letter-spacing: -1px;
}

.dashboard-main {
    padding: 26px;
}

.dashboard-header {
    margin-bottom: 20px;
    gap: 24px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dashboard-header h1 {
    font-size: clamp(32px, 4vw, 42px);
    letter-spacing: -1.5px;
}

.dashboard-page .dashboard-header:not(.rewards-header) > div:first-child {
    flex: 1 1 100%;
    width: 100%;
}

.dashboard-page .dashboard-header:not(.rewards-header) h1 {
    white-space: nowrap;
}

.dashboard-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-right: auto;
}

.profile-avatar {
    display: block;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: #eaf1f8;
}

.dashboard-profile-details {
    display: grid;
    min-width: 0;
    line-height: 1.35;
}

.dashboard-profile-details > span,
.dashboard-profile-details small {
    overflow-wrap: anywhere;
}

.dashboard-profile-details > span {
    font-size: 13px;
    font-weight: 700;
}

.dashboard-profile-details small {
    color: var(--text-muted);
    font-size: 11px;
}

.user-id-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-user-id,
.edit-user-id {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 3px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    vertical-align: middle;
}

.copy-user-id:hover,
.copy-user-id:focus-visible,
.edit-user-id:hover,
.edit-user-id:focus-visible {
    background: #edf2fa;
    color: var(--brand-blue);
}

.copy-user-id:focus-visible,
.edit-user-id:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 1px;
}

.copy-user-id svg,
.edit-user-id svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.dashboard-menu,
.notification-menu {
    position: relative;
    flex: 0 0 auto;
}

.dashboard-menu > summary,
.notification-menu > summary {
    list-style: none;
    cursor: pointer;
}

.dashboard-menu > summary::-webkit-details-marker,
.notification-menu > summary::-webkit-details-marker {
    display: none;
}

.dashboard-menu-panel,
.notification-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    width: min(340px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(15, 17, 35, 0.1);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.profile-upload {
    display: grid;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
}

.profile-upload input {
    width: 100%;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
}

.dashboard-menu-panel [data-open-account-profile-editor] {
    margin-bottom: 10px;
}

.profile-upload select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid rgba(143, 164, 196, 0.28);
    border-radius: 12px;
    background: #111a2d;
    color: #f4f6fb;
    font: inherit;
}

.profile-upload input::file-selector-button { margin-right: 10px; padding: 9px 13px; border: 1px solid rgba(7, 103, 223, 0.3); border-radius: 10px; background: linear-gradient(120deg, #0750c9, #0785dc 62%, #08a86b); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.profile-crop-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid #2c3a55; border-radius: 22px; background: #111a2d; color: #f4f6fb; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); }
.profile-crop-dialog::backdrop { background: rgba(3, 8, 20, 0.76); }
.profile-crop-content { display: grid; gap: 16px; padding: 24px; }
.profile-crop-content h2 { margin: 0; font-size: 20px; }
.profile-crop-content p { margin: 0; color: #b6c4dc; font-size: 14px; }
.profile-crop-preview { position: relative; box-sizing: content-box; width: 220px; height: 220px; justify-self: center; overflow: hidden; cursor: grab; touch-action: none; border: 3px solid transparent; border-radius: 50%; background: linear-gradient(#111a2d, #111a2d) padding-box, linear-gradient(120deg, #0750c9, #0785dc 62%, #08a86b) border-box; }
.profile-crop-preview.is-dragging { cursor: grabbing; }
.profile-crop-preview img { position: absolute; top: 110px; left: 110px; max-width: none; max-height: none; width: auto; height: auto; object-fit: fill; transform: translate(-50%, -50%); pointer-events: none; user-select: none; }
.profile-crop-zoom { display: grid; gap: 8px; color: #dce5f5; font-size: 13px; }
.profile-crop-zoom input { accent-color: #0785dc; }
.profile-crop-actions { display: flex; justify-content: flex-end; gap: 10px; }
.profile-crop-actions button { padding: 10px 16px; border: 1px solid #34415b; border-radius: 11px; background: #1b2740; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.profile-crop-actions button[type="submit"] { border: 0; background: linear-gradient(120deg, #0750c9, #0785dc 62%, #08a86b); }
.profile-picture-preview-trigger { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: zoom-in; line-height: 0; transition: transform 160ms ease, box-shadow 160ms ease; }
.profile-picture-preview-trigger:hover { transform: scale(1.06); box-shadow: 0 0 0 3px rgba(7, 133, 220, 0.3); }
.profile-picture-preview-trigger:focus-visible { outline: 3px solid #0785dc; outline-offset: 3px; }
.profile-image-preview-dialog { position: fixed; inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); max-width: 460px; max-height: calc(100dvh - 32px); margin: 0; padding: 24px; overflow-y: auto; border: 1px solid #34415b; border-radius: 22px; background: #111a2d; color: #f4f6fb; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45); }
.profile-image-preview-dialog::backdrop { background: rgba(3, 8, 20, 0.78); }
.profile-image-preview-dialog > img { display: block; width: min(100%, 340px); max-height: 58dvh; margin: 0 auto 18px; border-radius: 16px; object-fit: contain; }
.profile-image-preview-details { display: grid; gap: 5px; overflow-wrap: anywhere; }
.profile-image-preview-details strong { font-size: 18px; }
.profile-image-preview-details small { color: #b6c4dc; }
.profile-image-preview-close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid #45536c; border-radius: 50%; background: rgba(17, 26, 45, 0.92); color: #fff; font-size: 24px; cursor: pointer; }
.support-message-dialog { width: min(520px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid #34415b; border-radius: 20px; background: #111a2d; color: #edf1f8; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.support-message-dialog::backdrop { background: rgba(3, 8, 20, .78); backdrop-filter: blur(5px); }
.support-message-content { position: relative; display: grid; gap: 10px; padding: 28px; }
.support-message-content .eyebrow { margin: 0; color: #62a7ff; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.support-message-content h2 { margin: 0; font-size: 26px; }
.support-message-content > p:not(.eyebrow):not(.support-message-status) { margin: 0 28px 8px 0; color: #b9c8df; line-height: 1.55; }
.support-message-content label { color: #e7eefb; font-weight: 700; }
.support-message-content select,
.support-message-content textarea { width: 100%; padding: 12px 14px; border: 1px solid #3b4d6b; border-radius: 12px; background: #1b2942; color: #f4f7ff; font: inherit; }
.support-message-content textarea { min-height: 140px; resize: vertical; }
.support-message-content select:focus-visible,
.support-message-content textarea:focus-visible { outline: 3px solid #62b4ff; outline-offset: 2px; }
.support-message-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #aab7cd; font-size: 26px; cursor: pointer; }
.support-message-close:hover { background: #24334e; color: #fff; }
.support-message-status { min-height: 20px; margin: 0; color: #9fc7ff; line-height: 1.5; }
.support-message-status:empty { display: none; }
.support-complete-profile[hidden] { display: none; }
.support-message-content [aria-busy="true"] { cursor: wait; opacity: .75; }
.settings-status {
    min-height: 18px;
    margin: 8px 0;
    color: var(--brand-blue);
    font-size: 12px;
}

.user-id-edit-form {
    display: grid;
    gap: 8px;
    margin: 10px 0 14px;
}

.user-id-edit-form[hidden] {
    display: none;
}

.user-id-edit-form > label {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
}

.user-id-edit-form > input,
.user-id-edit-form > select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 14px;
}

.user-id-edit-form > input:focus-visible,
.user-id-edit-form > select:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 1px;
}

.user-id-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-id-edit-actions .header-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
}

.about-trustzonal {
    padding: 12px 0;
    border-top: 1px solid #e9edf4;
    border-bottom: 1px solid #e9edf4;
}

.about-trustzonal h2 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 15px;
}

.about-trustzonal p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.delete-account-button {
    width: 100%;
    min-height: 42px;
    margin-top: 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff5f5;
    color: #b42318;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.delete-account-button:hover {
    background: #fee2e2;
}

.delete-account-dialog {
    width: min(540px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 1px solid #dce4ee;
    border-top: 5px solid #c62828;
    border-radius: 16px;
    background: #fff;
    color: #172033;
    box-shadow: 0 24px 80px rgba(4, 12, 28, 0.38);
}

.delete-account-dialog::backdrop {
    background: rgba(5, 16, 36, 0.72);
    backdrop-filter: blur(5px);
}

.delete-account-dialog-content {
    position: relative;
    padding: 30px;
}

.delete-account-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 28px;
    line-height: 1;
}

.delete-account-dialog-close:hover {
    background: #f1f5f9;
    color: #172033;
}

.delete-account-warning-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #fff0f0;
    color: #b42318;
    font-size: 25px;
    font-weight: 800;
}

.delete-account-dialog h2 {
    max-width: 440px;
    margin: 0 42px 10px 0;
    color: #14233c;
    font-size: clamp(23px, 4vw, 30px);
    font-weight: 750;
    line-height: 1.25;
}

.delete-account-dialog-content > p {
    margin: 0 0 22px;
    color: #596579;
    font-size: 15px;
    line-height: 1.6;
}

.delete-account-confirmation {
    display: grid;
    gap: 9px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf1;
}

.delete-account-confirmation label {
    color: #39465a;
    font-size: 14px;
}

.delete-account-confirmation label strong {
    color: #172033;
    font-weight: 750;
}

.delete-account-confirmation input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    color: #172033;
    font: inherit;
    font-size: 15px;
}

.delete-account-confirmation input::placeholder {
    color: #8995a7;
}

.delete-account-confirmation input:focus-visible {
    outline: 2px solid #075dd4;
    outline-offset: 2px;
}

.delete-account-dialog-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.delete-account-dialog-actions button {
    min-width: 120px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.delete-account-cancel {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.delete-account-cancel:hover {
    background: #f1f5f9;
}

.delete-account-submit {
    background: #b42318;
    color: #fff;
}

.delete-account-submit:hover:not(:disabled) {
    background: #8f1d14;
}

.delete-account-submit:disabled {
    background: #b42318;
    color: #fff;
    opacity: 0.52;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .delete-account-dialog {
        width: calc(100vw - 28px);
        border-radius: 14px;
    }

    .delete-account-dialog-content {
        padding: 22px 18px 18px;
    }

    .delete-account-dialog-content > p {
        margin-bottom: 18px;
    }

    .delete-account-confirmation {
        padding-top: 18px;
    }

    .delete-account-confirmation label {
        font-size: 13px;
    }

    .delete-account-confirmation input {
        min-height: 48px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .delete-account-dialog-actions {
        gap: 8px;
        margin-top: 18px;
    }

    .delete-account-dialog-actions button {
        flex: 1 1 130px;
        min-height: 46px;
        padding: 0 12px;
        font-size: 14px;
    }
}

.notification-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 17, 35, 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--text-dark);
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.notification-button:hover,
.notification-button:focus-visible {
    border-color: rgba(8, 125, 232, 0.42);
    background: #eef5ff;
    color: var(--brand-blue);
}

.notification-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.notification-panel {
    width: min(360px, calc(100vw - 32px));
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(4, 12, 28, 0.28);
}

.notification-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.notification-panel-heading span {
    color: var(--text-muted);
    font-size: 12px;
}

.notification-list {
    display: grid;
    gap: 6px;
    max-height: 330px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.notification-item,
.notification-empty {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 9px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.notification-item.is-unread {
    background: #eff6ff;
}

.notification-item strong {
    color: var(--text-dark);
}

.notification-item time {
    color: #7b8799;
    font-size: 11px;
}

.activity-toast {
    position: fixed;
    z-index: 30;
    top: 18px;
    right: 18px;
    max-width: min(400px, calc(100vw - 36px));
    padding: 14px 18px;
    border-radius: 12px;
    background: #172033;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
    font-size: 14px;
}

.activity-toast[hidden] {
    display: none;
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(15,17,35,0.08);
    background: #fff;
    color: var(--text-dark);
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.header-button.highlight {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
}

.theme-switch {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid rgba(15,17,35,0.1);
    border-radius: 12px;
    background: #fff;
}

.theme-option {
    min-width: 76px;
    min-height: 36px;
    padding: 7px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.header-tools {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px;
}

.theme-option.active {
    background: var(--brand-gradient);
    color: #fff;
}

.dashboard-page[data-theme="dark"] {
    background: #0b1020;
    color: #e7ebf4;
}

.dashboard-page[data-theme="dark"] .dashboard-main {
    color: #e7ebf4;
}

.dashboard-page[data-theme="dark"] .dashboard-header h1,
.dashboard-page[data-theme="dark"] .panel-header h2,
.dashboard-page[data-theme="dark"] .wallet-method-picker legend,
.dashboard-page[data-theme="dark"] .wallet-field span {
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .stat-card,
.dashboard-page[data-theme="dark"] .panel {
    background: #151c2e;
    border-color: #2a344a;
    color: #e7ebf4;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.dashboard-page[data-theme="dark"] .stat-card.accent {
    background: linear-gradient(135deg, #153e70, #125438);
}

.dashboard-page[data-theme="dark"] .stat-card span,
.dashboard-page[data-theme="dark"] .stat-card small,
.dashboard-page[data-theme="dark"] .wallet-intro,
.dashboard-page[data-theme="dark"] .wallet-note,
.dashboard-page[data-theme="dark"] .panel > p,
.dashboard-page[data-theme="dark"] .leaderboard-demo-note,
.dashboard-page[data-theme="dark"] .leaderboard-demo-footnote,
.dashboard-page[data-theme="dark"] .leaderboard-person small,
.dashboard-page[data-theme="dark"] .activity-list {
    color: #aab4c8;
}

.dashboard-page[data-theme="dark"] .leaderboard-person strong {
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .leaderboard-entry {
    border-color: #2a344a;
}

.dashboard-page[data-theme="dark"] .stat-card strong {
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .wallet-field input,
.dashboard-page[data-theme="dark"] .wallet-field select,
.dashboard-page[data-theme="dark"] .wallet-method-picker label {
    border-color: #34415b;
    background: #0f1728;
    color: #edf1f8;
}

.dashboard-page[data-theme="dark"] .theme-switch {
    border-color: #34415b;
    background: #111a2c;
}

.dashboard-page[data-theme="dark"] .theme-option {
    color: #aab4c8;
}

.dashboard-page[data-theme="dark"] .theme-option.active {
    background: #293957;
    color: #fff;
}

.dashboard-page[data-theme="dark"] .dashboard-menu-panel,
.dashboard-page[data-theme="dark"] .notification-panel {
    border-color: #34415b;
    background: #151c2e;
}

.dashboard-page[data-theme="dark"] .profile-upload,
.dashboard-page[data-theme="dark"] .user-id-edit-form > label,
.dashboard-page[data-theme="dark"] .about-trustzonal h2,
.dashboard-page[data-theme="dark"] .notification-panel-heading,
.dashboard-page[data-theme="dark"] .notification-item strong {
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .user-id-edit-form > input,
.dashboard-page[data-theme="dark"] .user-id-edit-form > select {
    border-color: #34415b;
    background: #0f1728;
    color: #edf1f8;
}

.dashboard-page[data-theme="dark"] .about-trustzonal {
    border-color: #34415b;
}

.dashboard-page[data-theme="dark"] .notification-button {
    border-color: #34415b;
    background: #111a2c;
    color: #edf1f8;
}

.dashboard-page[data-theme="dark"] .copy-user-id,
.dashboard-page[data-theme="dark"] .edit-user-id {
    color: #aab4c8;
}

.dashboard-page[data-theme="dark"] .copy-user-id:hover,
.dashboard-page[data-theme="dark"] .copy-user-id:focus-visible,
.dashboard-page[data-theme="dark"] .edit-user-id:hover,
.dashboard-page[data-theme="dark"] .edit-user-id:focus-visible {
    background: #293957;
    color: #fff;
}

.dashboard-page[data-theme="dark"] .notification-item.is-unread {
    background: #202d43;
}

.dashboard-page[data-theme="dark"] .delete-account-button {
    border-color: #7f3037;
    background: #351d28;
    color: #ffb4b4;
}

.wallet-panel {
    margin-bottom: 22px;
}

.referral-panel {
    margin-bottom: 22px;
}

.referral-panel + .bottom-grid {
    margin-top: 28px;
}

.referral-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0;
    color: var(--text-muted);
}

.referral-summary strong {
    margin-left: 4px;
    color: var(--text-dark);
}

.referral-code-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
}

.referral-code-row strong {
    min-width: 190px;
    padding: 12px 16px;
    border: 1px dashed rgba(15,17,35,0.2);
    border-radius: 10px;
    background: #f5f7fc;
    color: #172033;
    font-size: 18px;
    letter-spacing: 1px;
}

.referral-link-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 620px;
    margin: 12px 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.referral-link-field input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(15,17,35,0.14);
    border-radius: 9px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    font-weight: 400;
}

.referral-copy-status {
    min-height: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.dashboard-page[data-theme="dark"] .referral-summary,
.dashboard-page[data-theme="dark"] .referral-copy-status,
.dashboard-page[data-theme="dark"] .referral-link-field {
    color: #aab4c8;
}

.dashboard-page[data-theme="dark"] .referral-summary strong {
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .referral-code-row strong,
.dashboard-page[data-theme="dark"] .referral-link-field input {
    border-color: #34415b;
    background: #0f1728;
    color: #edf1f8;
}

.wallet-intro {
    max-width: 850px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.wallet-value-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(15,17,35,0.08);
    border-radius: 12px;
    background: #f5f7fc;
}

.wallet-value-preview span,
.wallet-value-preview small {
    color: var(--text-muted);
}

.wallet-value-preview strong {
    color: var(--text-dark);
    font-size: 22px;
}

.wallet-status {
    color: #8a5200;
    background: #fff3d6;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.wallet-withdraw-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wallet-note {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}

.wallet-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 900px;
}

.wallet-email-verification {
    display: grid;
    grid-column: 1 / -1;
    gap: 12px;
    padding: 16px;
    border: 1px solid #34415b;
    border-radius: 14px;
    background: #0f1728;
}

.wallet-email-verification h3,
.wallet-email-verification p {
    margin: 0;
}

.wallet-email-verification h3 {
    color: #f4f6fb;
    font-size: 17px;
}

.wallet-email-verification > div:first-child p,
.wallet-email-verification-status {
    color: #aab4c8;
    line-height: 1.5;
}

.wallet-email-verification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wallet-email-verification-status.is-success {
    color: #75e3ae;
}

.wallet-email-verification-status.is-error {
    color: #ffabb4;
}

.wallet-method-picker {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 10px;
    border: 0;
}

.wallet-method-picker legend,
.wallet-field span {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.wallet-method-picker label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(15,17,35,0.12);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
}

.wallet-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wallet-field input,
.wallet-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(15,17,35,0.16);
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
}

.wallet-actions {
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    gap: 10px;
}

.wallet-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wallet-method-picker input {
    accent-color: var(--brand-blue);
}

.wallet-withdraw-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wallet-note a {
    color: var(--brand-blue);
    font-weight: 700;
}

.dashboard-page[data-theme="dark"] .wallet-value-preview {
    border-color: #34415b;
    background: #0f1728;
}

.dashboard-page[data-theme="dark"] .wallet-value-preview strong {
    color: #edf1f8;
}

.dashboard-page[data-theme="dark"] .wallet-value-preview span,
.dashboard-page[data-theme="dark"] .wallet-value-preview small {
    color: #aab4c8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid rgba(15,17,35,0.06);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(26, 27, 38, 0.05);
}

.stat-card span,
.stat-card small {
    color: var(--text-muted);
}

.stat-card strong {
    font-size: 34px;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.stat-card.accent {
    background: linear-gradient(135deg, rgba(7,93,212,0.10), rgba(17,199,111,0.08));
}

.content-grid,
.bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 22px;
}

.panel {
    background: #fff;
    border: 1px solid rgba(15,17,35,0.06);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(26,27,38,0.05);
}

.panel-header {
    margin-bottom: 18px;
}

.panel-header h2 {
    font-size: 22px;
}

.panel-header a {
    color: var(--brand-blue);
    font-weight: 700;
}

.offer-list {
    display: grid;
    gap: 16px;
}

.mini-offer {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(15,17,35,0.05);
    border-radius: 16px;
    background: #f9faff;
    color: var(--text-dark);
}

.offer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(7,93,212,0.18), rgba(17,199,111,0.15));
    font-size: 22px;
}

.mini-offer strong {
    display: block;
    margin-bottom: 6px;
}

.mini-offer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.mini-offer span {
    color: var(--brand-blue);
    font-weight: 700;
}

.leaderboard-box {
    display: grid;
    gap: 4px;
}

.leaderboard-box .leaderboard-demo-note,
.leaderboard-box .leaderboard-demo-footnote {
    margin: 0;
}

.leaderboard-box .leaderboard-entry {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
}

.leaderboard-box .leaderboard-entry .rank {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.leaderboard-box .leaderboard-earned {
    font-size: 12px;
}

.leader-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15,17,35,0.06);
}

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

.leader-item .rank {
    width: 26px;
    height: 26px;
    font-size: 11px;
}

.activity-list {
    list-style: none;
    display: grid;
    gap: 18px;
    padding: 0;
    margin: 0;
}

.activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15,17,35,0.06);
    color: var(--text-muted);
}

.activity-list strong {
    color: var(--text-dark);
}

.account-box {
    gap: 14px;
    justify-content: flex-start;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.account-box p {
    margin-top: 6px;
    color: var(--text-muted);
}

.account-box small {
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.rewards-subtitle {
    margin-top: 8px;
    color: var(--text-muted);
}

.rewards-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(15,17,35,0.08);
    border-radius: 16px;
    background: #fff;
}

.rewards-user > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.rewards-user strong {
    color: var(--text-dark);
    font-size: 14px;
}

.rewards-user span {
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: 12px;
}

.rewards-overview {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.rewards-balance-card,
.rewards-metric-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(15,17,35,0.07);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(26,27,38,0.05);
}

.rewards-balance-card {
    border: 0;
    background: linear-gradient(135deg, #123d72, #087b64);
    color: #fff;
}

.rewards-card-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.rewards-balance-card .rewards-card-label {
    color: rgba(255,255,255,0.78);
}

.rewards-balance-card > strong,
.rewards-metric-card > strong {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 18px;
    color: var(--text-dark);
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.rewards-balance-card > strong {
    color: #fff;
}

.rewards-balance-card > strong small,
.rewards-metric-card > strong small {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.rewards-balance-card > strong small {
    color: rgba(255,255,255,0.78);
}

.rewards-metric-card > strong small {
    color: var(--text-muted);
}

.rewards-balance-card > p,
.rewards-metric-card > p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rewards-balance-card > p {
    color: rgba(255,255,255,0.82);
}

.rewards-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rewards-activity-panel {
    margin-bottom: 10px;
}

.rewards-page .dashboard-main {
    padding-bottom: 8px;
}

.rewards-activity-panel .panel-header {
    align-items: flex-start;
}

.rewards-activity-panel .panel-header .eyebrow {
    margin-bottom: 6px;
}

.rewards-empty-state {
    display: grid;
    justify-items: center;
    padding: 38px 20px 34px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
}

.rewards-empty-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 15px;
    background: #e9f4ff;
    color: #075dd4;
    font-size: 23px;
}

.rewards-empty-state h3 {
    color: var(--text-dark);
    font-size: 17px;
}

.rewards-empty-state p {
    max-width: 560px;
    margin: 8px 0 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.rewards-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
    border: 0;
    border-radius: 20px;
    background: var(--brand-gradient);
}

.rewards-notice-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: transparent;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.rewards-notice p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.dashboard-page[data-theme="dark"] .rewards-user,
.dashboard-page[data-theme="dark"] .rewards-metric-card {
    border-color: #2a344a;
    background: #151c2e;
}

.dashboard-page[data-theme="dark"] .rewards-user strong,
.dashboard-page[data-theme="dark"] .rewards-metric-card > strong,
.dashboard-page[data-theme="dark"] .rewards-empty-state h3 {
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .rewards-subtitle,
.dashboard-page[data-theme="dark"] .rewards-user span,
.dashboard-page[data-theme="dark"] .rewards-card-label,
.dashboard-page[data-theme="dark"] .rewards-metric-card > p,
.dashboard-page[data-theme="dark"] .rewards-empty-state p {
    color: #aab4c8;
}

.dashboard-page[data-theme="dark"] .rewards-user .verified-name-star {
    color: #43e58d;
    text-shadow: 0 0 7px rgba(67, 229, 141, 0.75), 0 0 16px rgba(67, 229, 141, 0.4);
}

.dashboard-page[data-theme="dark"] .rewards-metric-card > strong small {
    color: #aab4c8;
}

.dashboard-page[data-theme="dark"] .rewards-empty-state {
    border-color: #34415b;
}

.dashboard-page[data-theme="dark"] .rewards-empty-icon {
    background: #203657;
    color: #8fc1ff;
}

.age-notice-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    margin: 0;
    transform: translate(-50%, -50%);
    width: min(460px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: #fff;
    color: #172033;
    box-shadow: 0 24px 80px rgba(4, 12, 28, 0.35);
}

.age-notice-dialog::backdrop {
    background: rgba(4, 12, 28, 0.72);
    backdrop-filter: blur(4px);
}

.age-notice-content {
    position: relative;
    padding: 30px;
}

.age-notice-content .eyebrow {
    margin: 0 0 8px;
}

.age-notice-content h2 {
    margin-bottom: 10px;
    font-size: 25px;
}

.age-notice-content > p:last-of-type {
    margin: 0;
    color: #596579;
    line-height: 1.6;
}

.age-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.age-notice-actions .btn,
.age-notice-actions .header-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 10px;
}

.age-verification-card .eyebrow {
    margin-bottom: 10px;
}

.age-verification-card .field input[type="date"] {
    color-scheme: light;
    color: #fff;
}

.age-verification-card .form-status {
    line-height: 1.5;
}

.age-verification-card .form-status.is-error {
    color: #ffb3b3;
}

@media (max-width: 1024px) {
    .home-hero-layout,
    .leader-wrap,
    .about-layout,
    .content-grid,
    .bottom-grid,
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

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

    .hero-visual {
        min-height: 340px;
    }

    .dashboard-sidebar {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        padding: 16px 20px;
    }

    .dashboard-sidebar .sidebar-brand {
        margin-bottom: 12px;
    }

    .dashboard-sidebar .sidebar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dashboard-sidebar .sidebar-nav .nav-item {
        flex: 1 1 120px;
        min-height: 42px;
        justify-content: center;
        padding: 8px 10px;
        text-align: center;
    }

    .dashboard-sidebar .sidebar-card {
        margin-top: 12px;
    }

    .rewards-page .dashboard-sidebar {
        display: block;
        padding: 18px 20px;
    }

    .rewards-page .sidebar-brand {
        margin-bottom: 14px;
    }

    .rewards-page .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .rewards-page .sidebar-card {
        margin-top: 14px;
    }

    .rewards-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-feed-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 768px) {
    .offer-section,
    .leaderboard-section,
    .rewards-section {
        padding: 42px 0;
        min-height: 0;
        scroll-margin-top: 68px;
    }

    .leaderboard-section .section-heading h2 { text-transform: none; }

    .leader-wrap {
        gap: 18px;
        grid-template-columns: minmax(0, 1fr);
    }

    .leaderboard-list {
        padding: 12px 16px;
    }

    .leaderboard-section .section-heading h2 {
        font-size: 24px;
    }

    .rewards-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .rewards-layout .section-heading h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .rewards-layout .reward-preview {
        padding: 22px;
    }

    .offer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .wallet-form {
        grid-template-columns: 1fr;
    }

    .hero-trust-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-main {
        padding: 18px 14px 30px;
    }

    .member-feed {
        padding: 28px 0 44px;
    }

    .member-feed-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-feed-grid {
        grid-template-columns: 1fr;
    }

    .task-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-preview-grid {
        grid-template-columns: 1fr;
    }

    .member-section-heading {
        flex-direction: column;
    }

    .header-tools {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
    }

    .dashboard-profile {
        width: 100%;
        margin-right: 0;
    }

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

    .rewards-user {
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .rewards-page .dashboard-sidebar {
        padding: 16px 14px;
    }

    .rewards-page .sidebar-nav {
        gap: 4px;
    }

    .rewards-page .nav-item {
        padding: 10px 11px;
        font-size: 13px;
    }

    .rewards-overview {
        grid-template-columns: 1fr;
    }

    .rewards-balance-card,
    .rewards-metric-card {
        min-height: 165px;
    }

    .rewards-activity-panel {
        padding: 18px 14px;
    }

    .rewards-empty-state {
        padding: 28px 14px;
    }

    .rewards-notice {
        padding: 12px 14px;
    }
}

/* Keep the floating theme control centered in the viewport on every page. */
.global-theme-toggle:not(.age-dialog-theme-toggle) {
    position: fixed;
    left: 50vw;
    right: auto;
    width: max-content;
    transform: translateX(-50%);
}

.global-theme-toggle {
    position: fixed;
    z-index: 1100;
    left: 50%;
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    background: #fff;
    color: #172033;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.global-theme-toggle:hover {
    background: #f2f6fb;
}

.global-theme-toggle:focus-visible {
    outline: 3px solid #2b8bff;
    outline-offset: 3px;
}

.global-theme-toggle.age-dialog-theme-toggle {
    position: absolute;
    top: 12px;
    left: auto;
    right: 12px;
    bottom: auto;
    transform: none;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
}

.theme-toggle-icon {
    font-size: 17px;
    line-height: 1;
}

body[data-theme="dark"] {
    background: #0b1020;
    color: #e7ebf4;
    color-scheme: dark;
}

body[data-theme="light"] {
    color-scheme: light;
}

body[data-theme="dark"] .global-theme-toggle {
    border-color: #34415b;
    background: #151c2e;
    color: #edf1f8;
}

body[data-theme="dark"] .global-theme-toggle:hover {
    background: #202d43;
}

.landing-page[data-theme="dark"] {
    background: #0b1020;
    color: #e7ebf4;
}

.landing-page[data-theme="dark"] .offer-section,
.landing-page[data-theme="dark"] .about-section,
.landing-page[data-theme="dark"] .rewards-section {
    border-color: #2a344a;
    background: #0f1728;
    color: #e7ebf4;
}

.landing-page[data-theme="dark"] .earn-section,
.landing-page[data-theme="dark"] .steps-section,
.landing-page[data-theme="dark"] .leaderboard-section {
    border-color: #2a344a;
    background: #111a2c;
    color: #e7ebf4;
}

.landing-page[data-theme="dark"] .offer-card,
.landing-page[data-theme="dark"] .reward-preview,
.landing-page[data-theme="dark"] .step,
.landing-page[data-theme="dark"] .about-highlight,
.landing-page[data-theme="dark"] .about-highlight-panel,
.landing-page[data-theme="dark"] .leaderboard-list {
    border-color: #2a344a;
    background: #151c2e;
    color: #e7ebf4;
}

.landing-page[data-theme="dark"] .offer-title-row,
.landing-page[data-theme="dark"] .section-heading h2,
.landing-page[data-theme="dark"] .earning-card h3,
.landing-page[data-theme="dark"] .step h3,
.landing-page[data-theme="dark"] .about-text h3,
.landing-page[data-theme="dark"] .about-highlight h3,
.landing-page[data-theme="dark"] .reward-info strong,
.landing-page[data-theme="dark"] .leader-name,
.landing-page[data-theme="dark"] .leader-metric,
.landing-page[data-theme="dark"] .leaderboard-person strong,
.landing-page[data-theme="dark"] .leaderboard-earned,
.landing-page[data-theme="dark"] .reward-balance {
    color: #f4f6fb;
}

.landing-page[data-theme="dark"] .offer-copy p,
.landing-page[data-theme="dark"] .section-heading p,
.landing-page[data-theme="dark"] .earning-card p,
.landing-page[data-theme="dark"] .step p,
.landing-page[data-theme="dark"] .about-text p,
.landing-page[data-theme="dark"] .about-highlight p,
.landing-page[data-theme="dark"] .reward-preview-header,
.landing-page[data-theme="dark"] .reward-info,
.landing-page[data-theme="dark"] .leaderboard-demo-note,
.landing-page[data-theme="dark"] .leaderboard-demo-footnote,
.landing-page[data-theme="dark"] .leaderboard-person small {
    color: #aab4c8;
}

.landing-page[data-theme="dark"] .offer-card img {
    background: #202d43;
}

.landing-page[data-theme="dark"] .reward-divider,
.landing-page[data-theme="dark"] .leader-row {
    border-color: #2a344a;
}

.landing-page[data-theme="dark"] .mobile-nav-button,
.landing-page[data-theme="dark"] .mobile-menu-button {
    border-color: #34415b;
    background: #151c2e;
    color: #edf1f8;
}

@media (max-width: 768px) {
    .landing-page .main-nav.mobile-open {
        border-color: #34415b;
        background: #111a2c;
        box-shadow: 0 16px 30px rgba(3, 9, 24, 0.32);
    }

    .landing-page .main-nav.mobile-open a {
        border-color: #2a344a;
        color: #edf1f8;
    }
}

.auth-page[data-theme="light"] {
    background:
        radial-gradient(circle at 15% 20%, rgba(7, 125, 232, 0.1), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(17, 199, 111, 0.08), transparent 35%),
        linear-gradient(180deg, #f7faff 0%, #edf3fa 100%);
    color: #172033;
}

.auth-page[data-theme="light"] .auth-card {
    border-color: rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.auth-page[data-theme="light"] .auth-card h1,
.auth-page[data-theme="light"] .terms-card section h2 {
    color: #172033;
}

.auth-page[data-theme="light"] .auth-subtitle,
.auth-page[data-theme="light"] .terms-card section p {
    color: #596579;
}

.auth-page[data-theme="light"] .auth-toggle {
    border-color: #e2e8f0;
    background: #f3f6fa;
}

.auth-page[data-theme="light"] .auth-toggle-button {
    color: #526176;
}

.auth-page[data-theme="light"] .auth-toggle-button.active {
    color: #fff;
}

.auth-page[data-theme="light"] .field span,
.auth-page[data-theme="light"] .field-label-row label {
    color: #263449;
}

.auth-page[data-theme="light"] .field input,
.auth-page[data-theme="light"] .field select {
    border-color: #cbd5e1;
    background: #fff;
    color: #172033;
}

.auth-page[data-theme="light"] .field input::placeholder {
    color: #8995a7;
}

.auth-page[data-theme="light"] .field select option {
    background: #fff;
    color: #172033;
}

.auth-page[data-theme="light"] .password-toggle {
    color: #075dd4;
}

.auth-page[data-theme="light"] .password-toggle:hover,
.auth-page[data-theme="light"] .password-toggle:focus-visible {
    background: #edf4ff;
    color: #073fb5;
}

.auth-page[data-theme="light"] .auth-home-link,
.auth-page[data-theme="light"] .auth-switch {
    color: #596579;
}

.auth-page[data-theme="light"] .form-status {
    color: #17683a;
}

.auth-page[data-theme="light"] .form-status.is-error,
.auth-page[data-theme="light"] .age-verification-card .form-status.is-error {
    color: #b42318;
}

.auth-page[data-theme="light"] .age-verification-card .field input[type="date"] {
    color-scheme: light;
    color: #172033;
}

.auth-page[data-theme="light"] .age-notice-dialog {
    border-color: #d9e1ec;
    background: #fff;
    color: #172033;
}

.auth-page[data-theme="light"] .age-notice-content > p:last-of-type {
    color: #596579;
}

.auth-page[data-theme="dark"] {
    background:
        radial-gradient(circle at 15% 20%, rgba(7, 125, 232, 0.12), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(17, 199, 111, 0.1), transparent 35%),
        linear-gradient(180deg, #0a1530 0%, #102440 100%);
}

.auth-page[data-theme="dark"] .age-verification-card .field input[type="date"] {
    color-scheme: dark;
}

@media (max-width: 480px) {
    .auth-page {
        flex-wrap: wrap;
    }

    .auth-page > .auth-container {
        flex: 0 0 100%;
        min-width: 0;
    }

    .global-theme-toggle {
        left: 50%;
        right: auto;
        bottom: calc(12px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        min-height: 42px;
        padding: 0 13px;
    }
}

/* =====================================================
   TRUSTZONAL DASHBOARD — RESPONSIVE LAYOUT
   Desktop, laptop, tablet and mobile phones
   ===================================================== */

/* Prevent padding and borders from causing overflow */
.dashboard-page,
.dashboard-page * {
    box-sizing: border-box;
}

.dashboard-page {
    margin: 0;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.dashboard-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0 auto;
}

.dashboard-sidebar,
.dashboard-main,
.dashboard-header,
.header-tools,
.dashboard-profile,
.dashboard-profile-details,
.content-grid,
.bottom-grid,
.stats-grid,
.panel,
.stat-card,
.wallet-panel,
.wallet-form {
    min-width: 0;
    max-width: 100%;
}

.dashboard-main {
    width: 100%;
}

/* Images should never stretch their containers */
.dashboard-page img {
    max-width: 100%;
    height: auto;
}

.dashboard-page img.profile-avatar,
.dashboard-page .account-box img.avatar {
    width: 44px;
    height: 44px;
    aspect-ratio: 1;
    flex: 0 0 44px;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-page .profile-crop-preview img {
    max-width: none;
    max-height: none;
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea,
.dashboard-page button {
    max-width: 100%;
    font: inherit;
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
    min-width: 0;
}

/* Long labels, IDs and email addresses should wrap */
.dashboard-page h1,
.dashboard-page h2,
.dashboard-page p,
.dashboard-page strong,
.dashboard-page small,
.dashboard-page span,
.dashboard-page a {
    overflow-wrap: anywhere;
}

/* Dashboard header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
}

.dashboard-header > div:first-child {
    min-width: 0;
    flex: 1 1 220px;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-profile-details {
    min-width: 0;
}

.profile-avatar,
.account-box .avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-profile-details > span,
.dashboard-profile-details small {
    overflow-wrap: anywhere;
}

/* Keep grids flexible */
.stats-grid,
.content-grid,
.bottom-grid {
    width: 100%;
    min-width: 0;
}

.stats-grid > *,
.content-grid > *,
.bottom-grid > * {
    min-width: 0;
}

/* Wallet and account fields */
.wallet-form {
    width: 100%;
}

.wallet-field {
    display: block;
    width: 100%;
    min-width: 0;
}

.wallet-field input,
.wallet-field select,
.referral-link-field input,
.user-id-edit-form input {
    display: block;
    width: 100%;
    min-width: 0;
}

.wallet-method-picker {
    min-width: 0;
    max-width: 100%;
}

.wallet-method-picker label {
    overflow-wrap: anywhere;
}

.wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wallet-actions > * {
    min-width: 0;
}

.wallet-request-status { min-height: 1.5em; margin: 0; color: #aebdd4; line-height: 1.5; }
.wallet-payout-fields { display: grid; gap: 14px; }
.wallet-profile-completion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 18px;
    border: 1px solid rgba(248, 193, 74, 0.35);
    border-radius: 14px;
    background: rgba(248, 193, 74, 0.08);
}
.wallet-profile-completion[hidden] { display: none; }
.wallet-profile-completion strong { display: block; margin-bottom: 4px; }
.wallet-profile-completion p { margin: 0; color: var(--text-muted); font-size: 14px; }
.withdrawal-confirmation-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(480px, calc(100vw - 32px));
    max-width: 100%;
    max-height: min(90vh, 720px);
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 1px solid #344665;
    border-radius: 22px;
    background: #101a30;
    color: #f4f7ff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}
.withdrawal-confirmation-dialog::backdrop { background: rgba(4, 9, 20, .76); backdrop-filter: blur(4px); }
.withdrawal-confirmation-content { display: grid; justify-items: center; gap: 12px; padding: clamp(24px, 6vw, 40px); text-align: center; }
.withdrawal-confirmation-content h2, .withdrawal-confirmation-content p { margin: 0; }
.withdrawal-confirmation-content > p:not(.section-label):not(.withdrawal-confirmation-reference) { color: #b9c8df; line-height: 1.6; }
.withdrawal-confirmation-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: rgba(18, 199, 134, .16); color: #36d99e; font-size: 30px; }
.withdrawal-confirmation-reference { max-width: 100%; overflow-wrap: anywhere; color: #b9c8df; }

/* Referral section */
.referral-code-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.referral-code-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.referral-link-field {
    display: block;
    width: 100%;
    min-width: 0;
}

.referral-link-field input {
    width: 100%;
}

/* Account and activity sections */
.account-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.account-box > div {
    min-width: 0;
}

.activity-list,
.notification-list {
    padding-left: 20px;
    overflow-wrap: anywhere;
}

.dashboard-page svg {
    max-width: 100%;
}

/* =====================================================
   TABLETS
   ===================================================== */

@media (max-width: 1024px) {
    .dashboard-shell {
        display: flex;
        flex-direction: column;
    }

    .dashboard-sidebar {
        display: block;
        position: static;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .sidebar-nav .nav-item {
        flex: 0 1 auto;
        min-width: 0;
    }

    .dashboard-page .nav-item {
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.82);
    }

    .dashboard-page .nav-item.active {
        border-color: rgba(255, 255, 255, 0.18);
        background: linear-gradient(112deg, #05266f 0%, #064783 56%, #064b32 100%);
        color: #fff;
    }

    .dashboard-main {
        width: 100%;
        max-width: 100%;
    }

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

    .content-grid,
    .bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================================================
   MOBILE PHONES
   ===================================================== */

@media (max-width: 600px) {
    .dashboard-page {
        font-size: 14px;
    }

    .dashboard-shell {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .dashboard-sidebar {
        padding: 14px;
        width: 100%;
        border-radius: 0;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
    }

    .sidebar-brand .brand-logo {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

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

    .sidebar-nav .nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 10px 8px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .sidebar-card {
        width: 100%;
    }

    .sidebar-card {
        margin-top: 14px;
    }

    .dashboard-main {
        width: 100%;
        padding: 14px;
    }

    .dashboard-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        margin-bottom: 18px;
    }

    .dashboard-header > div:first-child {
        width: 100%;
        flex: 0 0 auto;
    }

    .dashboard-header h1 {
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.25;
    }

    .header-tools {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
        margin-top: 0;
    }

    .dashboard-profile {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .dashboard-profile-details {
        flex: 1;
    }

    .header-tools .header-button,
    .header-tools .notification-button {
        min-height: 40px;
    }

    .dashboard-menu,
    .notification-menu {
        position: relative;
        max-width: 100%;
    }

    .dashboard-menu-panel,
    .notification-panel {
        position: fixed;
        top: 74px;
        right: 14px;
        left: auto;
        width: min(360px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        max-height: calc(100dvh - 88px);
        overflow-y: auto;
        z-index: 100;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .stat-card {
        padding: 14px;
        min-width: 0;
    }

    .stat-card strong {
        font-size: clamp(20px, 5vw, 27px);
        overflow-wrap: anywhere;
    }

    .stat-card span,
    .stat-card small {
        display: block;
        line-height: 1.5;
    }

    .panel {
        padding: 15px;
        border-radius: 14px;
    }

    .panel-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .panel-header h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .content-grid,
    .bottom-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .large-panel {
        grid-column: auto;
    }

    .wallet-panel,
    .referral-panel {
        margin-top: 14px;
    }

    .wallet-intro {
        line-height: 1.7;
    }

    .wallet-form {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .wallet-form input:not([type="radio"]),
    .wallet-form select {
        min-height: 44px;
        padding: 10px;
    }

    .wallet-method-picker {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .wallet-method-picker label {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .wallet-method-picker input[type="radio"] {
        flex: 0 0 auto;
    }

    .wallet-value-preview {
        width: 100%;
        min-width: 0;
    }

    .wallet-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .wallet-actions button {
        width: 100%;
        min-height: 44px;
        white-space: normal;
    }

    .referral-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .referral-code-row {
        align-items: stretch;
        flex-direction: column;
    }

    .referral-code-row .header-button,
    .referral-panel > .header-button {
        width: 100%;
        min-height: 44px;
    }

    .referral-link-field input {
        min-height: 44px;
    }

    .account-box {
        align-items: flex-start;
    }

    .user-id-row {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .copy-user-id,
    .edit-user-id {
        flex: 0 0 auto;
    }

    .activity-list li {
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    .age-notice-dialog,
    dialog {
        width: calc(100% - 28px);
        max-width: 420px;
        max-height: 85dvh;
        overflow-y: auto;
    }

    .age-notice-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .age-notice-actions > * {
        width: 100%;
        text-align: center;
    }

    .dashboard-page button,
    .dashboard-page .header-button {
        min-height: 40px;
        overflow-wrap: anywhere;
    }
}

/* =====================================================
   SMALL PHONES
   ===================================================== */

@media (max-width: 360px) {
    .dashboard-main {
        padding: 10px;
    }

    .dashboard-sidebar {
        padding: 10px;
    }

    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card,
    .panel {
        padding: 12px;
    }

    .header-tools {
        gap: 6px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .dashboard-page .dashboard-sidebar {
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-inner {
        min-height: 62px;
        gap: 5px;
    }

    .header-inner > .brand {
        gap: 5px;
    }

    .header-inner > .brand .brand-logo {
        width: 32px;
        height: 32px;
    }

    .header-inner > .brand .brand-name {
        font-size: 14px;
    }

    .header-actions[data-auth-only]:not([hidden]) {
        gap: 4px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings {
        flex: 0 1 158px;
        min-width: 0;
        max-width: 158px;
        min-height: 38px;
        gap: 5px;
        padding: 3px 6px 3px 3px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-orb {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-copy strong {
        font-size: 12px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-copy small {
        font-size: 8px;
    }

    .header-actions[data-auth-only]:not([hidden]) .notification-button,
    .mobile-menu-button {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-button {
        flex-basis: 36px;
        font-size: 20px;
    }

    .main-nav.mobile-open {
        top: 62px;
        padding: 10px 14px 14px;
    }

    .main-nav.mobile-open a {
        min-height: 44px;
        padding: 9px 10px;
        font-size: 15px;
    }

    .auth-card {
        padding: 32px 16px 28px;
    }

    .dashboard-page .dashboard-sidebar {
        padding: 12px;
    }

    .dashboard-page .dashboard-main {
        padding: 14px 12px 28px;
    }

    .dashboard-page .panel,
    .dashboard-page .stat-card {
        padding: 16px;
    }

    .dashboard-page .header-tools .header-button {
        padding: 0 12px;
        font-size: 13px;
    }

    .footer-inner {
        gap: 12px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
}

@media (max-width: 360px) {
    .header-inner > .brand .brand-name {
        display: none;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-label {
        font-size: 8px;
    }

    .header-actions[data-auth-only]:not([hidden]) .home-earnings-copy small {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .main-nav.mobile-open a {
        font-size: 16px;
    }

    .social-button {
        font-size: 16px;
    }

    .section-label {
        font-size: 14px;
    }

    .offer-copy p,
    .about-copy p,
    .rewards-section .section-heading p {
        font-size: 16px;
        line-height: 1.55;
    }

    .reward-preview-header {
        font-size: 14px;
    }

    .reward-preview .conversion-note {
        font-size: 14px;
    }

    .about-highlight-panel {
        padding: 22px;
    }

    .about-highlight-logo {
        width: min(100%, 180px);
        margin: 0 auto;
        border-radius: 14px;
    }

    .dashboard-page {
        font-size: 15px;
    }

    .rewards-page {
        font-size: 15px;
    }

    .dashboard-page .nav-item {
        font-size: 14px;
    }

    .dashboard-page .panel > p,
    .dashboard-page .wallet-note,
    .dashboard-page .activity-list,
    .dashboard-page .leaderboard-demo-note,
    .dashboard-page .leaderboard-demo-footnote {
        font-size: 14px;
    }

    .dashboard-page .header-tools .header-button {
        font-size: 14px;
    }
}

/* Shared brand treatment for interactive controls */
.site-header .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
    color: #f4f6fb;
}

.site-header .btn-outline:hover {
    border-color: transparent;
    background: var(--brand-gradient);
    color: #fff;
}

.header-button:not(.highlight):not(:disabled):hover {
    border-color: rgba(7, 93, 212, 0.28);
    background: #edf5ff;
    color: #064ba8;
}

.dashboard-page[data-theme="dark"] .header-button:not(.highlight) {
    border-color: var(--brand-border);
    background: #202d43;
    color: #edf1f8;
}

.dashboard-page[data-theme="dark"] .header-button:not(.highlight):not(:disabled):hover {
    border-color: #496183;
    background: #293957;
    color: #fff;
}

.landing-page .notification-button {
    border-color: var(--brand-border);
    background: var(--brand-surface);
    color: #edf1f8;
    box-shadow: 0 8px 24px rgba(4, 12, 28, 0.2);
}

.landing-page .notification-button:hover,
.landing-page .notification-button:focus-visible {
    border-color: #496183;
    background: var(--brand-surface-hover);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(8, 125, 232, 0.18);
}

.dashboard-page[data-theme="dark"] .notification-button:hover,
.dashboard-page[data-theme="dark"] .notification-button:focus-visible {
    border-color: #496183;
    background: #202d43;
    color: #fff;
}

.landing-page .notification-badge {
    border-color: var(--brand-surface);
    background: linear-gradient(135deg, #ef476f, #c81e4a);
}

.landing-page .notification-panel {
    border-color: var(--brand-border);
    background: var(--brand-surface);
    color: #edf1f8;
}

.landing-page .notification-panel-heading,
.landing-page .notification-item strong {
    color: #f4f6fb;
}

.landing-page .notification-panel-heading span,
.landing-page .notification-item,
.landing-page .notification-empty,
.landing-page .notification-item time {
    color: #aab4c8;
}

.landing-page .notification-item.is-unread {
    border: 1px solid rgba(8, 125, 232, 0.24);
    background: #202d43;
}

.landing-page[data-theme="dark"] .theme-option.active,
.dashboard-page[data-theme="dark"] .theme-option.active {
    background: var(--brand-gradient-deep);
    color: #fff;
}

.landing-page .scratch-surface:not(.is-revealed) {
    border-color: rgba(7, 93, 212, 0.42);
    background: repeating-linear-gradient(135deg, #0752b4 0 12px, #087b8b 12px 24px, #087b4c 24px 36px);
    color: #fff;
}

.landing-page .scratch-surface:not(.is-revealed):hover {
    filter: brightness(1.08);
}

button:focus-visible,
.btn:focus-visible,
.header-button:focus-visible,
.main-nav a:focus-visible,
.home-earnings:focus-visible {
    outline: 3px solid #38a8ff;
    outline-offset: 3px;
}

.main-nav a[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .profile-crop-content {
        gap: 14px;
        padding: clamp(16px, 5vw, 24px);
    }

    .profile-crop-preview {
        width: min(220px, calc(100vw - 100px));
        height: min(220px, calc(100vw - 100px));
    }

    .profile-crop-actions {
        gap: 8px;
    }

    .profile-crop-actions button {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: 14px;
    }

    .profile-image-preview-dialog {
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .hero-visual {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
    }

    .hero-visual > .dashboard-card {
        position: relative;
        inset: auto;
        width: 100%;
        min-width: 0;
    }

    .dashboard-main-card {
        padding: 20px;
    }
}

/* Keep the floating theme toggle inset from the lower-left edge on every page. */
.global-theme-toggle:not(.age-dialog-theme-toggle) {
    position: fixed;
    top: auto;
    left: max(18px, calc(env(safe-area-inset-left) + 12px));
    right: auto;
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
    transform: none;
    margin: 0;
}

.global-theme-toggle.age-dialog-theme-toggle {
    position: absolute;
    top: 12px;
    left: auto;
    right: 12px;
    bottom: auto;
    transform: none;
}

@media (max-width: 480px) {
    .global-theme-toggle:not(.age-dialog-theme-toggle) {
        left: auto;
        right: max(18px, calc(env(safe-area-inset-right) + 12px));
        bottom: max(18px, calc(env(safe-area-inset-bottom) + 14px));
    }
}

.task-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 14px;
    min-width: 0;
}

.provider-switcher {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 5px;
    margin: 0 0 18px;
    padding: 5px;
    border: 1px solid #d3dfef;
    border-radius: 14px;
    background: #f3f7fc;
}
.provider-tab {
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #415571;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    touch-action: manipulation;
}
.provider-tab.is-active { background: #075dd4; color: #fff; box-shadow: 0 3px 10px rgba(7, 93, 212, .2); }
.provider-tab:focus-visible,
.timewall-panel button:focus-visible { outline: 3px solid #2b8bff; outline-offset: 3px; }
.timewall-panel {
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: clamp(22px, 5vw, 54px);
    border: 1px solid #bdcce0;
    border-radius: 16px;
    background: linear-gradient(145deg, #f7fbff, #eaf3ff);
    text-align: center;
}
.timewall-panel[hidden] { display: none; }
.timewall-panel-copy { width: min(100%, 560px); display: grid; justify-items: center; gap: 14px; }
.timewall-panel-copy h2 { margin: 0; color: #10182c; font-size: clamp(23px, 4vw, 34px); }
.timewall-panel-copy p { margin: 0; max-width: 48ch; color: #42536d; line-height: 1.6; }
.timewall-panel-copy .header-button { min-height: 48px; margin-top: 4px; touch-action: manipulation; }
.timewall-actions { width: min(100%, 420px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.timewall-actions .header-button { width: 100%; min-width: 0; justify-content: center; border: 1px solid rgba(115, 138, 171, .5); background: rgba(255, 255, 255, .88); color: #17223a; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.timewall-actions .header-button:not(:disabled):active { transform: translateY(0); box-shadow: none; }
.timewall-actions .header-button:focus-visible { outline: 3px solid #2b8bff; outline-offset: 3px; }
.timewall-actions .header-button[aria-busy="true"] { border-color: #087de8; background: #e7f1ff; color: #064ba8; cursor: wait; }
.landing-page[data-theme="dark"] .timewall-actions .header-button { border-color: #52617a; background: #1a263b; color: #eff4fd; }
.landing-page[data-theme="dark"] .timewall-actions .header-button[aria-busy="true"] { border-color: #278af0; background: #1c3554; color: #eff4fd; }
@media (hover: hover) and (pointer: fine) {
    .timewall-actions .header-button:not(:disabled):hover { border-color: #087de8; background: linear-gradient(110deg, #075dd4, #0785dc 58%, #078b62); color: #fff; box-shadow: 0 7px 18px rgba(7, 93, 212, .2); transform: translateY(-1px); }
    .landing-page[data-theme="dark"] .timewall-actions .header-button:not(:disabled):hover { border-color: #278af0; background: linear-gradient(110deg, #075dd4, #0785dc 58%, #078b62); color: #fff; }
}
.timewall-status { min-height: 22px; font-size: 14px; }
.landing-page[data-theme="dark"] .provider-switcher { border-color: #364965; background: #131f34; }
.landing-page[data-theme="dark"] .provider-tab { color: #d1ddef; }
.landing-page[data-theme="dark"] .provider-tab.is-active { color: #fff; }
.landing-page[data-theme="dark"] .timewall-panel { border-color: #364965; background: linear-gradient(145deg, #111d34, #172b48); }
.landing-page[data-theme="dark"] .timewall-panel-copy h2 { color: #f4f6fb; }
.landing-page[data-theme="dark"] .timewall-panel-copy p { color: #d4deee; }

.offerwall-me-inline {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(143, 164, 196, 0.2);
    overflow: hidden;
}

.offerwall-me-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.offerwall-me-heading h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(19px, 2vw, 23px);
}

.offerwall-me-heading p:last-child {
    margin: 6px 0 12px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.offerwall-me-provider {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(143, 164, 196, 0.24);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.offerwall-me-status {
    margin: 8px 0 14px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.offerwall-me-status:not(.is-error):not([hidden])::before {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: "";
    vertical-align: -2px;
    animation: offerwall-status-spin 0.8s linear infinite;
}

@keyframes offerwall-status-spin {
    to { transform: rotate(360deg); }
}

.offerwall-me-retry {
    margin: 0 0 14px;
}

.offerwall-me-status.is-error {
    color: #b42318;
}

.offerwall-me-frame {
    display: block;
    width: 100%;
    min-height: 760px;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.offerwall-me-frame:not([src]) {
    background: linear-gradient(90deg, #f2f5fa 25%, #e6ebf3 37%, #f2f5fa 63%);
    background-size: 400% 100%;
    animation: offerwall-frame-skeleton 1.5s ease infinite;
}

@keyframes offerwall-frame-skeleton {
    to { background-position: -100% 0; }
}

.offerwall-me-frame[hidden],
.offerwall-me-status[hidden],
.offerwall-me-retry[hidden],
.offerwall-me-inline[hidden] {
    display: none;
}

.offerwall-me-inline[aria-busy="true"] {
    contain: content;
}

@media (max-width: 600px) {
    .offerwall-me-heading {
        flex-direction: column;
        gap: 8px;
    }

    .offerwall-me-frame {
        min-height: 78vh;
        border-radius: 10px;
    }
}

.reward-activity-status:empty {
    display: none;
}

.reward-activity-status {
    margin: 0 0 12px;
    color: #9eacc7;
    font-size: 14px;
}

.reward-activity-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reward-activity-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 14px;
    padding: 14px 16px;
    border: 1px solid #2a3852;
    border-radius: 14px;
    background: #111b2d;
}

.reward-activity-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.reward-activity-copy strong {
    color: #f4f7ff;
}

.reward-activity-copy span,
.reward-activity-item time {
    color: #9eacc7;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.reward-activity-amount {
    color: #36d99a;
    white-space: nowrap;
}

.reward-activity-amount.is-reversed {
    color: #ff8d8d;
}

.reward-activity-item time {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .dashboard-sidebar .sidebar-nav .nav-item {
        flex-basis: calc(50% - 8px);
    }

    .reward-activity-item {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dashboard-page .task-feed-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed rgba(143, 164, 196, 0.32);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    color: #b8c8df;
    text-align: left;
}

.dashboard-page .task-feed-empty.is-error,
.task-form-status {
    color: #ffb3bd;
}

.task-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(143, 164, 196, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.task-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.task-card-category {
    color: #b9c8dd;
    font-size: 13px;
    font-weight: 700;
}

.task-card-reward {
    flex: 0 0 auto;
    color: #49d99a;
    font-size: 13px;
}

.task-card h3 {
    margin: 0 0 8px;
    color: #f4f6fb;
    font-size: 19px;
}

.task-card p {
    margin: 0 0 12px;
    color: #bfcae0;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.task-card .task-card-instructions {
    padding: 12px;
    border-radius: 12px;
    background: rgba(8, 125, 232, 0.08);
    font-size: 14px;
}

.task-submission-form {
    display: grid;
    gap: 9px;
    margin-top: 16px;
}

.task-submission-form label {
    color: #e0e7f3;
    font-size: 14px;
    font-weight: 700;
}

.task-submission-form textarea {
    width: 100%;
    min-height: 92px;
    padding: 11px 12px;
    border: 1px solid rgba(143, 164, 196, 0.3);
    border-radius: 12px;
    background: #101a2d;
    color: #f4f6fb;
    font: inherit;
    resize: vertical;
}

.task-submission-form textarea:focus-visible {
    outline: 2px solid #0785dc;
    outline-offset: 2px;
}

.task-submission-note,
.task-form-status {
    color: #aebbd0;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.task-submission-status {
    margin: 18px 0 0 !important;
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(8, 125, 232, 0.1);
    color: #b9d9ff !important;
    font-weight: 700;
}

.task-submission-status.is-approved {
    background: rgba(17, 199, 111, 0.1);
    color: #69e6aa !important;
}

.task-provider-note {
    margin: 16px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.task-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.task-panel-heading .eyebrow {
    margin-bottom: 6px;
}

.task-panel-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 25px;
}

.task-panel-subtitle {
    margin: 6px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.task-count-pill {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #dbe5f2;
    border-radius: 999px;
    background: #f4f8ff;
    color: #42536d;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.task-browser-toolbar {
    display: grid;
    gap: 14px;
    margin: 20px 0 18px;
}

.task-filter-row {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 1px 5px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.task-filter-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #dce4ef;
    border-radius: 999px;
    background: #f7f9fc;
    color: #475467;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.task-filter-button[aria-pressed="true"] {
    border-color: #a9c7f4;
    background: #eaf2ff;
    color: #064fba;
}

.task-filter-button span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(55, 91, 145, 0.1);
    font-size: 11px;
}

.admin-page {
    min-height: 100vh;
    background: #0b1734;
    color: #eef3ff;
}

.admin-page[data-theme="light"] { background: #f3f6fb; color: #18253c; }
.admin-page[data-theme="light"] .admin-page,
.admin-page[data-theme="light"] .admin-login h1,
.admin-page[data-theme="light"] .admin-heading h1 { color: #18253c; }
.admin-page[data-theme="light"] .admin-page .panel { border-color: #d2dceb; background: #fff; color: #18253c; box-shadow: 0 12px 30px rgba(20, 40, 75, .08); }
.admin-page[data-theme="light"] .admin-page .panel h1,
.admin-page[data-theme="light"] .admin-page .panel h2,
.admin-page[data-theme="light"] .admin-page .panel h3,
.admin-page[data-theme="light"] .admin-page .panel h4 { color: #18253c; }
.admin-page[data-theme="light"] .admin-page .panel p:not(.eyebrow),
.admin-page[data-theme="light"] .admin-heading > div > p:last-child { color: #53647f; }
.admin-page[data-theme="light"] .admin-page .wallet-field,
.admin-page[data-theme="light"] .admin-page .wallet-field > span { color: #344968; }
.admin-page[data-theme="light"] .admin-page .wallet-field input,
.admin-page[data-theme="light"] .admin-search input { border-color: #c7d3e3; background: #f8faff; color: #172033; -webkit-text-fill-color: #172033; }
.admin-page[data-theme="light"] .admin-page .sidebar-brand { color: #18253c; }
.admin-page[data-theme="light"] .admin-page .sidebar-brand small { color: #53647f; }

.admin-shell {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.admin-topbar,
.admin-heading,
.admin-detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-topbar { margin-bottom: 28px; }
.admin-heading-actions { display: flex; align-items: center; gap: 10px; }
.admin-refresh-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid #344665; border-radius: 13px; background: #14223a; color: #d9e8ff; cursor: pointer; }
.admin-refresh-button:hover:not(:disabled) { border-color: #087de8; background: #1a2d4a; }
.admin-refresh-button:disabled { cursor: wait; opacity: .72; }
.admin-refresh-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-refresh-button.is-loading svg { animation: admin-refresh-rotate .8s linear infinite; }
@keyframes admin-refresh-rotate { to { transform: rotate(360deg); } }
.admin-refresh-status { min-height: 20px; margin: 0 0 8px; color: #9eacc7; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.admin-refresh-status:empty { display: none; }
.admin-refresh-status[data-state="success"] { color: #75e3ae; }
.admin-refresh-status[data-state="error"] { color: #ffabb4; }
.admin-refresh-status[data-state="loading"] { color: #a8c9f6; }
.admin-page .sidebar-brand { color: #f4f7ff; text-decoration: none; }
.admin-page .admin-topbar .sidebar-brand img { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; }
.admin-page .sidebar-brand small { margin-left: 8px; color: #9eacc7; font-size: 12px; }
.admin-page .panel {
    border-color: #2b3d5c;
    background: #111d34;
    color: #eaf0fc;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}
.admin-page .panel h1,
.admin-page .panel h2,
.admin-page .panel h3,
.admin-page .panel h4 { color: #f4f7ff; }
.admin-page .panel p:not(.eyebrow) { color: #c3d0e5; }
.admin-page .eyebrow { color: #70adff; }
.admin-login { width: min(480px, 100%); margin: 8vh auto; padding: 30px; }
.admin-login h1, .admin-heading h1 { margin: 0 0 8px; color: #f4f7ff; }
.admin-login > p:not(.eyebrow), .admin-heading > div > p:last-child { color: #aab7cd; }
.admin-login form { display: grid; gap: 16px; margin-top: 24px; }
.admin-page .wallet-field { display: grid; gap: 8px; color: #b9c8df; }
.admin-page .wallet-field > span { color: #d7e4f8; }
.admin-page .wallet-field input, .admin-search input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #52698c; border-radius: 12px; background: #263754; color: #f8fbff; -webkit-text-fill-color: #f8fbff; }
.admin-page .wallet-field input[readonly] { opacity: 1; }
.admin-page .wallet-field input:-webkit-autofill,
.admin-page .wallet-field input:-webkit-autofill:hover,
.admin-page .wallet-field input:-webkit-autofill:focus { -webkit-text-fill-color: #f8fbff; box-shadow: 0 0 0 1000px #263754 inset; transition: background-color 9999s ease-out; }
.admin-status { min-height: 24px; color: #e1eaff; line-height: 1.6; overflow-wrap: anywhere; }
.admin-reset-password { background: #1a2944; color: #eaf2ff; border-color: #52698c; }
.admin-page .wallet-field, .admin-search, .admin-total, .admin-list-empty, .admin-detail-empty,
.admin-user-row span, .admin-user-row small, .admin-metrics span,
.admin-detail-section p, .admin-activity-row span { color: #c8d6ec; }
.admin-page .wallet-field input::placeholder, .admin-search input::placeholder { color: #aebed5; opacity: 1; }
.admin-page button:focus-visible, .admin-page input:focus-visible { outline: 3px solid #62b4ff; outline-offset: 3px; }
.admin-workspace[hidden], .admin-login[hidden] { display: none; }
.admin-total { padding: 10px 14px; border: 1px solid #344665; border-radius: 999px; color: #b9c8df; }
.admin-notice, .admin-data-notice { margin: 18px 0; padding: 14px 16px; border: 1px solid rgba(8, 125, 232, .32); border-radius: 12px; background: rgba(8, 125, 232, .1); color: #c6dcfa; line-height: 1.55; }
.admin-search { display: grid; gap: 8px; margin: 22px 0; color: #b9c8df; font-weight: 700; }
.admin-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.6fr); align-items: start; gap: 18px; }
.admin-user-list { display: grid; gap: 10px; max-height: 72vh; overflow: auto; }
.admin-user-row { display: grid; gap: 5px; width: 100%; padding: 16px; border: 1px solid #2c3c5a; border-radius: 14px; background: #121d35; color: #eaf0fc; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.admin-user-row:hover, .admin-user-row:focus-visible { border-color: #087de8; outline: none; }
.admin-user-row span, .admin-user-row small { color: #aab7cd; }
.admin-user-email { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-verified-badge, .admin-unverified-badge { display: inline-flex; align-items: center; width: fit-content; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.5; }
.dashboard-email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dashboard-email-line [hidden] { display: none; }
.account-email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.account-email-line [hidden] { display: none; }
.rewards-user-email { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rewards-user-email [hidden] { display: none; }
.verified-name-star {
    display: inline-block;
    margin-left: 0.28em;
    color: #43e58d;
    font-size: 0.72em;
    line-height: 1;
    vertical-align: 0.12em;
    text-shadow: 0 0 7px rgba(67, 229, 141, 0.75), 0 0 16px rgba(67, 229, 141, 0.4);
    animation: verified-star-shine 2.2s ease-in-out infinite;
}
.verified-name-star[hidden] { display: none; }
@keyframes verified-star-shine {
    0%, 100% { opacity: 0.78; transform: scale(0.92) rotate(-8deg); }
    50% { opacity: 1; transform: scale(1.12) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
    .verified-name-star { animation: none; }
}
.admin-verified-badge { border: 1px solid rgba(45, 212, 128, 0.4); background: rgba(16, 185, 129, 0.13); color: #6ee7b7 !important; }
.admin-unverified-badge { border: 1px solid rgba(251, 191, 36, 0.35); background: rgba(245, 158, 11, 0.1); color: #fcd34d !important; }
.admin-list-empty { padding: 20px; color: #aab7cd; }
.admin-user-detail { min-width: 0; padding: clamp(18px, 3vw, 30px); }
.admin-detail-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
.admin-detail-heading .eyebrow { margin: 0; }
.admin-detail-heading h2 { margin: 0; color: #f4f7ff; overflow-wrap: anywhere; }
.admin-profile-picture { width: 88px; height: 88px; margin-top: 12px; border: 2px solid #344665; border-radius: 50%; object-fit: cover; }
.admin-withdrawal-panel { margin: 24px 0; padding: clamp(18px, 3vw, 28px); }
.admin-withdrawal-panel .admin-detail-heading { margin-bottom: 16px; }
.admin-withdrawal-list { display: grid; gap: 10px; }
.admin-support-panel { margin: 24px 0; padding: clamp(18px, 3vw, 28px); }
.admin-support-panel .admin-detail-heading { flex-direction: row; align-items: center; margin-bottom: 8px; }
.admin-support-status { min-height: 22px; margin: 0 0 12px; color: #aab7cd; font-size: 13px; }
.admin-support-list { display: grid; gap: 12px; }
.admin-support-message { display: grid; gap: 8px; min-width: 0; padding: 16px; border: 1px solid #2c3c5a; border-radius: 13px; background: #111b31; overflow-wrap: anywhere; }
.admin-support-message-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: #f4f7ff; }
.admin-support-message-heading strong { font-size: 17px; }
.admin-support-new { padding: 3px 9px; border: 1px solid rgba(8, 125, 232, .45); border-radius: 999px; background: rgba(8, 125, 232, .15); color: #a9d0ff; font-size: 12px; font-weight: 700; }
.admin-support-sender,
.admin-support-message-body { margin: 0; color: #c8d6ec; line-height: 1.55; }
.admin-support-message small { color: #9eacc7; overflow-wrap: anywhere; }
.admin-support-message .header-button { justify-self: start; min-height: 38px; margin-top: 2px; }
.admin-withdrawal-row { cursor: default; }
.admin-withdrawal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.admin-payment-reminder { flex-basis: 100%; color: #f2cb75; }
.admin-detail-empty { color: #aab7cd; }
.admin-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.admin-metrics article { min-width: 0; display: grid; gap: 7px; padding: 14px; border: 1px solid #2c3c5a; border-radius: 12px; background: #111b31; overflow-wrap: anywhere; }
.admin-metrics span, .admin-detail-section p, .admin-activity-row span { color: #aab7cd; }
.admin-metrics strong { color: #f4f7ff; }
.admin-detail-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #2c3c5a; }
.admin-detail-section h3 { margin: 0 0 12px; color: #dce7fa; }
.admin-detail-section p { overflow-wrap: anywhere; }
.admin-detail-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-withdrawal-email { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-activity-row { display: grid; gap: 4px; margin: 9px 0; padding: 12px; border-radius: 10px; background: #111b31; overflow-wrap: anywhere; }
.wallet-field [data-withdrawal-amount-feedback] { color: #c8d6ec; line-height: 1.45; }
.wallet-field [data-withdrawal-amount-feedback].is-error { color: #ffabb4; }
.wallet-field [data-withdrawal-amount-feedback].is-success { color: #75e3ae; }

/* Make the signed-in offerwall the main full-width destination. */
.home-page .member-feed-heading { display: none; }
.member-feed-container { width: min(100% - clamp(24px, 4vw, 72px), 1800px); max-width: none; }
.member-feed-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.member-feed-main { display: contents; }
.member-feed-task-section { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.offerwall-me-inline { margin: 0; padding: 0; border: 0; overflow: visible; }
.offerwall-me-heading { align-items: center; margin-bottom: 20px; }
.offerwall-me-heading h2 { margin: 0; color: #10182c; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.025em; }
.offerwall-me-heading .section-label { color: #075dd4; font-weight: 800; letter-spacing: .1em; }
.offerwall-me-heading p:last-child { margin: 8px 0 0; color: #42536d; font-size: 16px; }
.offerwall-me-provider { padding: 9px 15px; border-color: #b8c9e3; background: #fff; color: #245a9c; font-size: 14px; }
.offerwall-me-status { color: #42536d; font-size: 15px; }
.offerwall-me-status.is-error { color: #b42318; }
.offerwall-me-frame { min-height: 760px; height: 78svh; border: 1px solid #bdcce0; border-radius: 14px; background: #fff; }
.member-feed-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-feed-aside .member-balance-card, .member-feed-aside .member-profile-card { padding: 18px; border-radius: 14px; }
.member-feed-aside .member-balance-card h2, .member-feed-aside .member-profile-card h2 { font-size: 19px; }
.member-feed-aside .member-credit-balance { margin: 8px 0; font-size: 32px; }
.member-feed-aside .member-balance-card p { margin: 8px 0; }
.member-feed-aside .member-balance-card .btn { min-height: 44px; margin-top: 12px; }
.landing-page[data-theme="dark"] .offerwall-me-heading h2 { color: #f4f6fb; }
.landing-page[data-theme="dark"] .offerwall-me-heading p:last-child,
.landing-page[data-theme="dark"] .offerwall-me-status { color: #d4deee; }
.landing-page[data-theme="dark"] .offerwall-me-provider { border-color: #52617a; background: #18243a; color: #d8e7ff; }
.landing-page[data-theme="dark"] .offerwall-me-frame { border-color: #52617a; }
.wallet-fee-note { margin: -6px 0 20px; padding: 12px 14px; border-left: 3px solid #087de8; border-radius: 0 10px 10px 0; background: rgba(8, 125, 232, .09); color: #c8d6ec; line-height: 1.55; }

@media (max-width: 768px) {
    .member-feed-container { width: min(100% - 24px, 1800px); }
    .member-feed-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offerwall-me-frame { height: 76svh; min-height: 620px; }
}

@media (max-width: 560px) {
    .provider-switcher { position: sticky; z-index: 5; top: 0; width: 100%; margin: 0; padding: 8px 12px; border: 0; border-bottom: 1px solid rgba(120, 145, 180, .2); border-radius: 0; }
    .provider-tab { flex: 1; min-height: 44px; padding: 0 12px; }
    .timewall-panel { min-height: calc(100svh - 210px); padding: 26px 20px; border: 0; border-radius: 0; }
    .mobile-task-home { min-height: 100svh; background: #0b1020 !important; color: #e7ebf4 !important; }
    .member-feed { min-height: calc(100svh - 64px); padding: 0; }
    .member-feed-container { width: 100%; padding-left: 0; padding-right: 0; }
    .member-feed-heading { display: none; }
    .member-feed-grid { display: block; }
    #task-feed .member-feed-main > .member-feed-section,
    #task-feed .member-feed-aside { display: none; }
    #task-feed .member-feed-task-section { width: 100%; margin: 0; }
    .offerwall-me-inline { width: 100%; }
    .offerwall-me-heading { min-height: 44px; margin: 0; padding: 8px 14px; flex-direction: row; align-items: center; }
    .offerwall-me-heading .section-label,
    .offerwall-me-heading p:last-child,
    .offerwall-me-provider { display: none; }
    .offerwall-me-heading h2 { font-size: 17px; }
    .offerwall-me-frame { display: block; width: 100%; height: calc(100svh - 124px); min-height: 440px; border: 0; border-radius: 0; }
    .member-feed-aside { grid-template-columns: minmax(0, 1fr); }
    .offerwall-me-heading { align-items: flex-start; }
    .offerwall-me-frame { height: 76svh; min-height: 560px; border-radius: 10px; }
    .member-feed-aside .member-balance-card, .member-feed-aside .member-profile-card { padding: 14px; }
}

.signout-status {
    position: fixed;
    z-index: 1200;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 68px));
    max-width: min(420px, calc(100vw - 32px));
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #52617a;
    border-radius: 12px;
    background: #151c2e;
    color: #edf1f8;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .28);
    line-height: 1.45;
}

@media (max-width: 760px) {
    .admin-shell { width: min(100% - 24px, 620px); padding-top: 14px; }
    .admin-layout { grid-template-columns: minmax(0, 1fr); }
    .admin-user-list { max-height: 36vh; }
    .admin-metrics { grid-template-columns: minmax(0, 1fr); }
    .admin-login { padding: 22px; }
}

.task-filter-button:focus-visible,
.task-search-field input:focus-visible,
.task-sort-field select:focus-visible {
    outline: 2px solid #087de8;
    outline-offset: 2px;
}

.task-search-sort {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
}

.task-search-field,
.task-sort-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.task-search-field input,
.task-sort-field select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dce4ef;
    border-radius: 11px;
    background: #fff;
    color: #172033;
    font: inherit;
}

.task-feed-empty h3 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 17px;
}

.task-feed-empty p {
    margin: 0;
    color: #667085;
    line-height: 1.55;
}

.task-card {
    border-color: #e3e9f1;
    background: #fff;
    box-shadow: 0 6px 16px rgba(27, 39, 61, 0.045);
}

.task-card-category {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #e4eaf2;
    border-radius: 999px;
    background: #f5f7fb;
    color: #52627a;
    font-size: 13px;
    font-weight: 700;
}

.task-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.task-card-estimate {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #dbe8fb;
    border-radius: 999px;
    background: #edf4ff;
    color: #245a9c;
    font-size: 12px;
    font-weight: 700;
}

.task-card-reward {
    color: #087a50;
    line-height: 1.4;
    text-align: right;
    white-space: normal;
}

.task-card h3 {
    color: #172033;
}

.task-card p {
    color: #667085;
}

.task-card .task-card-instructions {
    border: 1px solid #e6edf7;
    background: #f5f8fd;
    color: #475467;
}

.task-submission-form label {
    color: #344054;
}

.task-submission-form textarea {
    border-color: #dce4ef;
    background: #fff;
    color: #172033;
}

.task-submission-note {
    color: #667085;
}

.task-steps {
    display: grid;
    gap: 16px;
    margin: 0 0 20px;
    padding-left: 22px;
}

.task-steps li {
    padding-left: 3px;
    color: #667085;
    line-height: 1.45;
}

.task-steps strong,
.task-steps span {
    display: block;
}

.task-steps strong {
    margin-bottom: 4px;
    color: #172033;
}

.task-steps span {
    font-size: 13px;
}

.task-guidance-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #075dd4;
    font-weight: 800;
}

.task-guidance-actions {
    display: grid;
    gap: 10px;
}

.dashboard-page[data-theme="dark"] .task-panel-heading h2,
.dashboard-page[data-theme="dark"] .task-steps strong,
.dashboard-page[data-theme="dark"] .task-feed-empty h3,
.dashboard-page[data-theme="dark"] .task-card h3 {
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .task-panel-subtitle,
.dashboard-page[data-theme="dark"] .task-provider-note,
.dashboard-page[data-theme="dark"] .task-search-field,
.dashboard-page[data-theme="dark"] .task-sort-field,
.dashboard-page[data-theme="dark"] .task-steps li,
.dashboard-page[data-theme="dark"] .task-feed-empty p,
.dashboard-page[data-theme="dark"] .task-card p,
.dashboard-page[data-theme="dark"] .task-card-category,
.dashboard-page[data-theme="dark"] .task-submission-form label,
.dashboard-page[data-theme="dark"] .task-submission-note {
    color: #aab4c8;
}

.dashboard-page[data-theme="dark"] .task-count-pill,
.dashboard-page[data-theme="dark"] .task-filter-button,
.dashboard-page[data-theme="dark"] .task-search-field input,
.dashboard-page[data-theme="dark"] .task-sort-field select {
    border-color: #34415b;
    background: #10182a;
    color: #e7ebf4;
}

.dashboard-page[data-theme="dark"] .task-filter-button[aria-pressed="true"] {
    border-color: #426997;
    background: #1c3351;
    color: #c7e0ff;
}

.dashboard-page[data-theme="dark"] .task-filter-button span {
    background: rgba(190, 211, 240, 0.14);
}

.dashboard-page[data-theme="dark"] .task-feed-empty {
    border-color: #34415b;
    background: #10182a;
}

.dashboard-page[data-theme="dark"] .task-card {
    border-color: #2a344a;
    background: #10182a;
    box-shadow: none;
}

.dashboard-page[data-theme="dark"] .task-card .task-card-instructions {
    border-color: #2a4263;
    background: rgba(8, 125, 232, 0.1);
    color: #c3d1e6;
}

.dashboard-page[data-theme="dark"] .task-submission-form textarea {
    border-color: #34415b;
    background: #0b1020;
    color: #f4f6fb;
}

.dashboard-page[data-theme="dark"] .task-steps span {
    color: #aab4c8;
}

.landing-page[data-theme="dark"] .task-count-pill,
.landing-page[data-theme="dark"] .task-filter-button,
.landing-page[data-theme="dark"] .task-search-field input,
.landing-page[data-theme="dark"] .task-sort-field select {
    border-color: #34415b;
    background: #10182a;
    color: #e7ebf4;
}

.landing-page[data-theme="dark"] .task-search-field,
.landing-page[data-theme="dark"] .task-sort-field,
.landing-page[data-theme="dark"] .task-provider-note {
    color: #aab4c8;
}

.landing-page[data-theme="dark"] .task-filter-button[aria-pressed="true"] {
    border-color: #426997;
    background: #1c3351;
    color: #c7e0ff;
}

.landing-page[data-theme="dark"] .task-filter-button span {
    background: rgba(190, 211, 240, 0.14);
}

.landing-page[data-theme="dark"] .task-card {
    border-color: #2a344a;
    background: #10182a;
    box-shadow: none;
}

.landing-page[data-theme="dark"] .task-card h3 {
    color: #f4f6fb;
}

.landing-page[data-theme="dark"] .task-card p,
.landing-page[data-theme="dark"] .task-card-category,
.landing-page[data-theme="dark"] .task-submission-form label,
.landing-page[data-theme="dark"] .task-submission-note {
    color: #aab4c8;
}

.landing-page[data-theme="dark"] .task-card .task-card-instructions {
    border-color: #2a4263;
    background: rgba(8, 125, 232, 0.1);
    color: #c3d1e6;
}

.landing-page[data-theme="dark"] .task-submission-form textarea {
    border-color: #34415b;
    background: #0b1020;
    color: #f4f6fb;
}

.landing-page[data-theme="dark"] .task-feed-empty h3 {
    color: #f4f6fb;
}

.landing-page[data-theme="dark"] .task-feed-empty p {
    color: #aab4c8;
}

.task-feed-empty.is-error h3,
.task-feed-empty.is-error p {
    color: #b42318;
}

.dashboard-page[data-theme="dark"] .task-feed-empty.is-error h3,
.dashboard-page[data-theme="dark"] .task-feed-empty.is-error p,
.landing-page[data-theme="dark"] .task-feed-empty.is-error h3,
.landing-page[data-theme="dark"] .task-feed-empty.is-error p {
    color: #ffb3bd;
}

@media (max-width: 600px) {
    .task-panel-heading {
        flex-direction: column;
        gap: 10px;
    }

    .task-search-sort {
        grid-template-columns: minmax(0, 1fr);
    }

    .task-filter-row {
        margin-right: -2px;
    }

    .task-filter-button {
        min-height: 42px;
    }

    .task-guidance-panel .panel-header {
        margin-bottom: 14px;
    }

    .member-tasks-section {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .task-feed {
        grid-template-columns: minmax(0, 1fr);
    }

    .task-card {
        padding: 15px;
    }

    .task-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

.dashboard-page:not([data-theme="dark"]) .task-submission-status,
.landing-page:not([data-theme="dark"]) .task-submission-status {
    background: #edf4ff;
    color: #245a9c !important;
}

.dashboard-page:not([data-theme="dark"]) .task-submission-status.is-approved,
.landing-page:not([data-theme="dark"]) .task-submission-status.is-approved {
    background: #e8f8ef;
    color: #167344 !important;
}

.dashboard-page[data-theme="dark"] .task-card-category,
.landing-page[data-theme="dark"] .task-card-category {
    border-color: #34415b;
    background: #1a263b;
    color: #c0cbe0;
}

.dashboard-page[data-theme="dark"] .task-card-estimate,
.landing-page[data-theme="dark"] .task-card-estimate {
    border-color: #2a4263;
    background: rgba(8, 125, 232, 0.14);
    color: #c3dfff;
}

.dashboard-page[data-theme="dark"] .task-submission-status,
.landing-page[data-theme="dark"] .task-submission-status {
    background: rgba(8, 125, 232, 0.16);
    color: #b9d9ff !important;
}

.dashboard-page[data-theme="dark"] .task-submission-status.is-approved,
.landing-page[data-theme="dark"] .task-submission-status.is-approved {
    background: rgba(17, 199, 111, 0.14);
    color: #69e6aa !important;
}

.games-page {
    min-height: 100vh;
    background: #f3f5fb;
    color: #172033;
}

.games-library-main {
    min-height: calc(100vh - 150px);
    padding: 48px 0 72px;
}

.games-library-container {
    max-width: 1360px;
}

.games-updating-soon {
    display: grid;
    min-height: 300px;
    align-content: center;
    justify-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 36px 24px;
    border: 1px solid #dbe5f2;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.games-updating-soon h1 {
    margin: 0;
    color: #10182c;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
}

.games-updating-soon p:last-child {
    max-width: 680px;
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.6;
}

.games-updating-tasks-link { margin-top: 8px; }

.games-library-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.games-library-heading h1 {
    margin: 0 0 8px;
    color: #10182c;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
}

.games-library-heading p:last-child {
    margin: 0;
    color: #667085;
    font-size: 16px;
}

.games-feed-count {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid #dbe5f2;
    border-radius: 999px;
    background: #fff;
    color: #42536d;
    font-size: 13px;
    font-weight: 800;
}

.games-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) minmax(150px, 190px);
    gap: 14px;
    margin-bottom: 20px;
}

.games-ad-stack {
    display: grid;
    gap: 10px;
    width: min(100%, 1090px);
    margin: 0 auto 28px;
}

.games-ad-stack-bottom {
    margin: 28px auto 0;
}

.games-banner-ad {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 90px;
    place-items: center;
    overflow: hidden;
    background: transparent;
}

.games-ad-fallback {
    position: relative;
    display: grid;
    width: 160px;
    min-height: 300px;
    margin: 0 auto;
    place-items: center;
}

.games-banner-ad iframe {
    display: block;
    max-width: 100%;
    border: 0;
}

.games-banner-ad-label {
    position: absolute;
    top: 2px;
    left: 4px;
    z-index: 1;
    color: #8996aa;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.games-banner-ad-mobile {
    display: none;
}

.games-banner-ad[hidden] {
    display: none !important;
}

.games-search-field,
.games-category-field,
.games-sort-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.games-search-field input,
.games-category-field select,
.games-sort-field select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d8e0eb;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    font: inherit;
}

.games-search-field input:focus-visible,
.games-category-field select:focus-visible,
.games-sort-field select:focus-visible,
.game-feed-play-button:focus-visible,
.game-player-close:focus-visible {
    outline: 3px solid #1687ed;
    outline-offset: 2px;
}

.games-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

.game-feed-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(15, 17, 35, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(26, 27, 38, 0.06);
}

.game-feed-card-media {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e9f2ff, #e6f5ee);
}

.game-feed-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-feed-card-body {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
}

.game-feed-card-meta {
    margin-bottom: 9px;
}

.game-feed-category {
    display: inline-flex;
    padding: 4px 9px;
    border: 1px solid #dce9fa;
    border-radius: 999px;
    background: #eff5ff;
    color: #245a9c;
    font-size: 11px;
    font-weight: 800;
}

.game-feed-card h2 {
    width: 100%;
    margin: 0 0 7px;
    color: #172033;
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.game-feed-description {
    display: -webkit-box;
    width: 100%;
    margin: 0 0 16px;
    overflow: hidden;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.game-feed-play-button {
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 15px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.game-feed-play-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.games-feed-message {
    grid-column: 1 / -1;
    padding: 32px 22px;
    border: 1px dashed #cad5e4;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.games-feed-message h2 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 20px;
}

.games-feed-message p {
    margin: 0;
    color: #667085;
}

.games-feed-message.is-error h2,
.games-feed-message.is-error p {
    color: #b42318;
}

.games-feed-retry {
    margin-top: 16px;
    text-align: center;
}

.games-load-more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.games-load-more[hidden] {
    display: none;
}

.game-player-dialog {
    position: fixed;
    inset: 50% auto auto 50%;
    width: min(1280px, 96vw);
    height: min(900px, 94dvh);
    margin: 0;
    max-width: 96vw;
    max-height: 94dvh;
    transform: translate(-50%, -50%);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: #080b12;
    color: #fff;
}

.game-player-dialog::backdrop {
    background: rgba(2, 7, 18, 0.86);
    backdrop-filter: blur(5px);
}

.game-player-shell {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.game-player-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 14px 8px 18px;
    background: #101827;
}

.game-player-header h2 {
    min-width: 0;
    overflow: hidden;
    color: #f4f6fb;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-player-close {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #40506b;
    border-radius: 10px;
    background: #1a263b;
    color: #fff;
    font-weight: 700;
}

.game-player-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
    border: 0;
    background: #000;
}

.games-page[data-theme="dark"] {
    background: #0b1020;
    color: #e7ebf4;
}

.games-page[data-theme="dark"] .games-library-heading h1,
.games-page[data-theme="dark"] .games-updating-soon h1,
.games-page[data-theme="dark"] .game-feed-card h2,
.games-page[data-theme="dark"] .games-feed-message h2 {
    color: #f4f6fb;
}

.games-page[data-theme="dark"] .games-library-heading p:last-child,
.games-page[data-theme="dark"] .games-updating-soon p:last-child,
.games-page[data-theme="dark"] .games-search-field,
.games-page[data-theme="dark"] .games-category-field,
.games-page[data-theme="dark"] .games-sort-field,
.games-page[data-theme="dark"] .game-feed-description,
.games-page[data-theme="dark"] .games-feed-message p {
    color: #aab4c8;
}

.games-page[data-theme="dark"] .games-updating-soon {
    border-color: #2a344a;
    background: #151c2e;
}

.games-page[data-theme="dark"] .games-feed-count,
.games-page[data-theme="dark"] .games-search-field input,
.games-page[data-theme="dark"] .games-category-field select,
.games-page[data-theme="dark"] .games-sort-field select,
.games-page[data-theme="dark"] .game-feed-card,
.games-page[data-theme="dark"] .games-feed-message {
    border-color: #2a344a;
    background: #151c2e;
    color: #e7ebf4;
}

.games-page[data-theme="dark"] .game-feed-card-media {
    background: #202d43;
}

.games-page[data-theme="dark"] .game-feed-category {
    border-color: #2a4263;
    background: rgba(8, 125, 232, 0.14);
    color: #c3dfff;
}

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

@media (max-width: 680px) {
    .games-ad-stack {
        gap: 8px;
        margin-bottom: 22px;
    }

    .games-banner-ad {
        display: none;
        min-height: 50px;
    }

    .games-banner-ad-mobile {
        display: grid;
    }

    .games-library-main {
        padding: 32px 0 50px;
    }

    .games-library-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .games-toolbar {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .games-feed-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .game-player-dialog {
        inset: 0;
        width: 100vw;
        height: 100dvh;
        transform: none;
        max-width: 100vw;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .game-player-header {
        min-height: 54px;
        padding-inline: 12px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .game-feed-play-button {
        transition: none;
    }
}

/* Keep the signed-in homepage offers close to its compact footer. */
.home-page .member-feed {
    padding-bottom: 12px;
}

.home-page .offerwall-me-frame {
    height: 84svh;
}

.home-page .site-footer {
    padding-bottom: 0;
}

.home-page .footer-inner {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.home-page .footer-brand {
    gap: 7px;
    font-size: 15px;
}

.home-page .footer-brand .brand-logo {
    width: 28px;
    height: 28px;
}

.home-page .footer-copy {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 768px) {
    .home-page .offerwall-me-frame {
        height: calc(100svh - 110px);
        min-height: 560px;
    }
}

@media (max-width: 600px) {
    .rewards-page .dashboard-main {
        padding-bottom: 10px;
    }
}

/* Keep the guest home activity artwork contained on small screens. */
@media (max-width: 600px) {
    .home-hero-layout {
        width: 100%;
        gap: 24px;
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .home-hero .hero-copy,
    .home-hero .hero-visual {
        width: 100%;
        min-width: 0;
    }

    .home-hero .hero-visual {
        min-height: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 24px;
        isolation: isolate;
    }

    .home-hero .hero-visual::before,
    .home-hero .hero-visual::after {
        display: none;
    }

    .home-hero .dashboard-main-card.activity-preview-card {
        position: relative;
        inset: auto;
        width: 100%;
        min-width: 0;
        padding: 16px;
        border-radius: 22px;
    }

    .activity-preview-card .mini-header {
        gap: 8px;
        margin-bottom: 14px;
        font-size: 12px;
    }

    .activity-preview-card .status-tag {
        max-width: 52%;
        padding: 5px 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 10px;
    }

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

    .activity-preview {
        min-width: 0;
        min-height: 100px;
        border-radius: 15px;
    }

    .activity-offer-card {
        min-width: 0;
        min-height: 0;
        padding: 18px;
    }

    .activity-offer-card .offer-copy {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .activity-offer-card .game-avatar-scene-card {
        margin: 0 0 8px;
    }

    .games-library-main {
        padding-top: 24px;
        padding-bottom: 36px;
    }

    .games-library-heading {
        min-width: 0;
        margin-bottom: 18px;
    }

    .games-library-heading > * {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .games-feed-count {
        align-self: flex-start;
    }

    .game-feed-card-media:not(.game-feed-sponsored-media) {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 380px) {
    .home-hero-layout {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .home-hero .dashboard-main-card.activity-preview-card {
        padding: 13px;
    }

    .activity-preview {
        min-height: 92px;
    }

    .activity-preview-icon {
        width: 42px;
        height: 42px;
    }

    .activity-preview-icon svg {
        width: 31px;
        height: 31px;
    }
}

@media (max-width: 768px) {
    .dashboard-page .dashboard-header:not(.rewards-header) h1 {
        white-space: normal;
    }

    .wallet-profile-completion {
        align-items: stretch;
        flex-direction: column;
    }

}
