.dashboard-page {
    --account-violet: #9c9bff;
    --account-green: #4ad7af;
}

.dashboard-page main {
    position: relative;
    overflow: hidden;
}

.dashboard-page main::before {
    position: absolute;
    top: -220px;
    right: -180px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,100,214,0.12), transparent 68%);
    content: "";
    pointer-events: none;
}

.dashboard-page .tracker {
    position: relative;
    z-index: 1;
}

.account-hero {
    position: relative;
    display: flex;
    min-height: 270px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 4px 0 30px;
    padding: 34px 42px;
    overflow: hidden;
    border: 1px solid rgba(164,173,255,0.13);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 86% 45%, rgba(87,92,190,0.2), transparent 36%),
        linear-gradient(112deg, #121c2d 0%, #111a2b 55%, #151a32 100%);
    box-shadow: 0 24px 70px rgba(0,0,0,0.16);
}

.account-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 660px;
}

.account-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #b7c1d5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.account-eyebrow > span:first-child {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 14px rgba(247,147,26,0.75);
}

.account-eyebrow-divider { color: #5a6780; }

.account-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.2rem, 5vw, 3.65rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.account-hero h1 span {
    color: var(--primary);
}

.account-hero-copy > p {
    max-width: 560px;
    margin: 0;
    color: #a7b3c8;
    font-size: 0.98rem;
    line-height: 1.7;
}

.account-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 21px;
}

.account-trust-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(177,194,221,0.12);
    border-radius: 999px;
    background: rgba(5,11,22,0.28);
    color: #c4cede;
    font-size: 0.75rem;
    font-weight: 650;
}

.account-trust-points b {
    color: var(--account-green);
    font-size: 0.85rem;
}

.account-hero-art {
    position: relative;
    display: grid;
    width: 220px;
    height: 220px;
    flex: 0 0 220px;
    place-items: center;
    margin-right: 20px;
}

.account-orbit {
    position: absolute;
    border: 1px solid rgba(160,166,255,0.17);
    border-radius: 50%;
}

.account-orbit--outer { width: 215px; height: 215px; }
.account-orbit--inner { width: 156px; height: 156px; border-color: rgba(160,166,255,0.23); }

.account-hero-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 1px solid rgba(190,192,255,0.36);
    border-radius: 25px;
    background: linear-gradient(145deg, #8b8bff, #5657b8);
    box-shadow: 0 12px 50px rgba(93,92,222,0.4), inset 0 1px rgba(255,255,255,0.26);
    color: white;
    font-size: 2.45rem;
    transform: rotate(-8deg);
}

.account-orbit-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid #182238;
    border-radius: 50%;
    background: #f7a94c;
    box-shadow: 0 0 16px rgba(247,169,76,0.6);
}

.account-orbit-dot--one { top: 24px; right: 35px; }
.account-orbit-dot--two { bottom: 30px; left: 20px; width: 8px; height: 8px; background: #83e3d0; }

.dashboard-page .account-login-required {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(180px, 0.42fr);
    align-items: center;
    gap: 22px;
    min-height: 225px;
    padding: 29px 32px;
    overflow: hidden;
    border-color: rgba(247,147,26,0.18);
    background:
        radial-gradient(ellipse at 95% 0%, rgba(247,147,26,0.1), transparent 34%),
        linear-gradient(145deg, #121c2b, #101827 70%);
}

.account-login-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(247,147,26,0.25);
    border-radius: 18px;
    background: rgba(247,147,26,0.1);
    color: var(--primary);
    font-size: 1.65rem;
    font-weight: 700;
}

.account-login-copy { min-width: 0; }
.account-login-copy .eyebrow { margin-bottom: 8px; font-size: 0.7rem; }
.account-login-copy h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.65rem); letter-spacing: -0.03em; }
.account-login-copy > p:not(.account-id-note) { max-width: 620px; margin: 8px 0 16px; font-size: 0.9rem; }
.account-primary-action { gap: 9px; }
.account-primary-action span:last-child { margin-left: 6px; font-size: 1.1rem; }
.account-id-note { display: flex; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: #8f9db2; font-size: 0.75rem; line-height: 1.5; }
.account-id-note span { color: #efb969; }

.account-login-side {
    position: relative;
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    padding: 18px 20px;
    overflow: hidden;
    border: 1px solid rgba(177,194,221,0.1);
    border-radius: 15px;
    background: rgba(7,13,24,0.35);
}

.account-login-side-label { color: #9caac0; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em; }
.account-login-side strong { position: relative; z-index: 1; margin-top: 10px; font-size: 1.13rem; line-height: 1.35; }
.account-login-side-icon { position: absolute; right: 8px; bottom: -31px; color: rgba(156,155,255,0.12); font-size: 7rem; line-height: 1; }

.dashboard-page .account-dashboard {
    padding: 26px;
    border-color: rgba(156,155,255,0.18);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(105,103,217,0.11), transparent 35%),
        linear-gradient(145deg, rgba(18,27,44,0.98), rgba(13,20,33,0.98));
}

.account-overview-heading { margin-bottom: 19px; }
.account-overview-heading .eyebrow { margin-bottom: 7px; font-size: 0.7rem; }
.account-overview-heading h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.035em; }
.account-overview-heading p { margin: 6px 0 0; font-size: 0.87rem; }

.account-id-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(156,155,255,0.18);
    border-radius: 15px;
    background: linear-gradient(100deg, rgba(90,91,178,0.14), rgba(7,13,24,0.31));
}

.account-id-avatar {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    place-items: center;
    border-radius: 14px;
    background: rgba(156,155,255,0.14);
    color: #b8b7ff;
    font-size: 1.25rem;
}

.account-id-copy { display: grid; min-width: 0; flex: 1; gap: 6px; }
.account-card-label { color: #909cb3; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; }
.account-id-copy code { overflow-wrap: anywhere; color: #e4e6ff; font-size: 0.87rem; }
.account-id-status { display: inline-flex; align-items: center; gap: 7px; color: var(--account-green); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.account-id-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--account-green); box-shadow: 0 0 12px rgba(74,215,175,0.6); }

.dashboard-page .account-stats { gap: 14px; margin-top: 15px; }
.dashboard-page .account-stat {
    position: relative;
    display: grid;
    min-height: 145px;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 12px;
    align-items: center;
    padding: 18px;
    border-color: rgba(177,194,221,0.1);
    background: rgba(5,11,22,0.32);
}

.account-stat-icon {
    display: grid;
    width: 40px;
    height: 40px;
    grid-row: 1 / 4;
    place-items: center;
    border-radius: 13px;
    background: rgba(74,215,175,0.1);
    color: #72e0c3;
    font-size: 1.3rem;
}

.account-stat--wins .account-stat-icon { background: rgba(247,147,26,0.1); color: #ffba68; }
.account-stat-label { color: #98a6bb; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.dashboard-page .account-stat strong { color: #f2f6ff; font-size: 1.6rem; line-height: 1.15; }
.dashboard-page .account-stat small { color: #8997ad; font-size: 0.73rem; }

.account-dashboard-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.account-dashboard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.account-stats-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: #98a6bb; font-size: 0.78rem; line-height: 1.5; }
.account-stats-note span { color: #ffbd70; }
.account-add-address { flex: 0 0 auto; gap: 7px; }

.dashboard-page #watchlist-panel { margin-top: 18px; }
.dashboard-page #watchlist-title { margin: 4px 0 7px; }
.dashboard-page .tracker-status { margin-top: 15px; }

.dashboard-page .wallet-dialog {
    width: min(520px, calc(100% - 28px));
    padding: 28px;
    border-color: rgba(156,155,255,0.2);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(105,103,217,0.15), transparent 39%),
        #101827;
}

.dashboard-page .dialog-heading .eyebrow { font-size: 0.69rem; }
.dashboard-page .dialog-heading h2 { max-width: 390px; font-size: 1.52rem; line-height: 1.2; }
.dashboard-page .dialog-intro { margin: 13px 0 18px; font-size: 0.88rem; line-height: 1.65; }
.dashboard-page #account-form { gap: 9px; margin-top: 15px; }
.dashboard-page #account-form label { margin-top: 7px; color: #d3d9e7; font-size: 0.82rem; font-weight: 650; }
.dashboard-page #account-form label span { color: #8c99ae; font-size: 0.75rem; font-weight: 400; }
.dashboard-page #account-form input,
.dashboard-page #account-form select {
    min-height: 48px;
    border-color: rgba(177,194,221,0.16);
    background: rgba(5,10,19,0.65);
}

.dashboard-page #account-form input::placeholder { color: #6f7d92; }
.dashboard-page #manual-demo-win-form { display: grid; gap: 9px; margin-top: 15px; }
.dashboard-page #manual-demo-win-form label { margin-top: 7px; color: #d3d9e7; font-size: 0.82rem; font-weight: 650; }
.dashboard-page #manual-demo-win-form input {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(177,194,221,0.16);
    border-radius: 9px;
    background: rgba(5,10,19,0.65);
    color: #f2f6ff;
    font: inherit;
}
.dashboard-page #manual-demo-win-form input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.account-pin-help { margin: -2px 0 2px; color: #8795aa; font-size: 0.73rem; line-height: 1.5; }
.dashboard-page .account-form-actions { gap: 11px; margin-top: 12px; }
.dashboard-page .account-form-actions button { justify-content: center; gap: 7px; }
.account-security-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid rgba(247,147,26,0.15);
    border-radius: 12px;
    background: rgba(247,147,26,0.045);
    color: #a2aec1;
    font-size: 0.76rem;
    line-height: 1.55;
}

.account-security-note > span { flex: 0 0 auto; color: #ffb95e; font-weight: 800; }
.account-security-note p { margin: 0; }
.account-security-note strong { display: block; margin-bottom: 2px; color: #f2bd78; font-size: 0.78rem; }
.dashboard-page .dialog-status { margin-top: 11px; }
.dashboard-page #manual-demo-win-status[data-state="error"] { color: #ff8585; }
.dashboard-page #manual-demo-win-status[data-state="success"] { color: #72e0c3; }
.dashboard-page .connect-option { margin-top: 18px; }

@media (max-width: 760px) {
    .account-hero { min-height: 0; padding: 30px; }
    .account-hero-art { width: 150px; height: 150px; flex-basis: 150px; margin-right: 0; }
    .account-orbit--outer { width: 148px; height: 148px; }
    .account-orbit--inner { width: 110px; height: 110px; }
    .account-hero-icon { width: 68px; height: 68px; border-radius: 21px; font-size: 2rem; }
    .dashboard-page .account-login-required { grid-template-columns: 50px minmax(0, 1fr); gap: 16px; }
    .account-login-icon { width: 50px; height: 50px; border-radius: 15px; }
    .account-login-side { display: none; }
}

@media (max-width: 520px) {
    .account-hero { margin-top: 0; padding: 26px 21px; border-radius: 19px; }
    .account-hero-art { position: absolute; top: 19px; right: 7px; width: 105px; height: 105px; opacity: 0.42; }
    .account-orbit--outer { width: 103px; height: 103px; }
    .account-orbit--inner { width: 74px; height: 74px; }
    .account-hero-icon { width: 46px; height: 46px; border-radius: 14px; font-size: 1.3rem; }
    .account-orbit-dot--one { top: 12px; right: 17px; }
    .account-orbit-dot--two { bottom: 14px; left: 6px; }
    .account-hero h1 { max-width: 300px; margin-top: 17px; font-size: clamp(2.15rem, 10.5vw, 2.8rem); }
    .account-hero-copy > p { max-width: 340px; font-size: 0.88rem; }
    .account-trust-points { max-width: 300px; gap: 7px; margin-top: 16px; }
    .account-trust-points span { padding: 6px 8px; font-size: 0.68rem; }
    .dashboard-page .account-login-required { grid-template-columns: 1fr; gap: 14px; padding: 21px; }
    .account-login-icon { width: 46px; height: 46px; }
    .account-login-copy > p:not(.account-id-note) { font-size: 0.84rem; }
    .account-primary-action { width: 100%; justify-content: center; }
    .dashboard-page .account-dashboard { padding: 19px; }
    .account-id-card { align-items: flex-start; gap: 10px; padding: 12px; }
    .account-id-avatar { width: 37px; height: 37px; flex-basis: 37px; border-radius: 12px; font-size: 1rem; }
    .account-id-copy code { font-size: 0.73rem; }
    .account-id-status { gap: 5px; font-size: 0.59rem; }
    .account-id-status i { width: 6px; height: 6px; }
    .dashboard-page .account-stats { gap: 9px; }
    .dashboard-page .account-stat { min-height: 122px; padding: 14px; }
    .account-dashboard-foot { align-items: stretch; flex-direction: column; }
    .account-add-address { width: 100%; justify-content: center; }
    .account-dashboard-actions { display: grid; grid-template-columns: 1fr; }
    .account-dashboard-actions .btn { width: 100%; justify-content: center; }
    .dashboard-page .wallet-dialog { padding: 21px; }
    .dashboard-page .account-form-actions { grid-template-columns: 1fr; }
    .dashboard-page .nav-links { flex-wrap: wrap; gap: 8px; font-size: 0.75rem; white-space: nowrap; }
    .dashboard-page .wallet-menu summary { gap: 6px; padding-right: 8px; font-size: 0.76rem; }
    .dashboard-page .wallet-trigger-icon { width: 28px; height: 28px; flex-basis: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
    .account-hero-icon { animation: account-float 5s ease-in-out infinite; }
    @keyframes account-float {
        0%, 100% { transform: translateY(0) rotate(-8deg); }
        50% { transform: translateY(-5px) rotate(-5deg); }
    }
}
