.eth-page main {
    padding-top: 40px;
}

.eth-page .tracker {
    max-width: 880px;
    margin: 0 auto;
}

.eth-win-notification {
    position: fixed;
    z-index: 1000;
    right: max(20px, calc((100vw - 1200px) / 2));
    bottom: 20px;
    display: grid;
    width: min(440px, calc(100vw - 32px));
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    align-items: start;
    gap: 12px;
    padding: 17px;
    border: 1px solid rgba(72,214,176,0.36);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(72,214,176,0.13), transparent 58%),
        linear-gradient(145deg, #152337, #0d1423);
    box-shadow: 0 18px 55px rgba(0,0,0,0.48);
    animation: eth-notification-in 220ms ease-out both;
}

.eth-win-notification[hidden] {
    display: none;
}

.eth-win-notification-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(72,214,176,0.26);
    border-radius: 12px;
    background: rgba(72,214,176,0.1);
    color: #70ebc6;
    font-size: 1.1rem;
}

.eth-win-notification-copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.eth-win-notification-copy > strong {
    color: #e8fff8;
    font-size: 0.9rem;
}

.eth-win-notification-copy > span {
    overflow-wrap: anywhere;
    color: #b6c4d6;
    font-size: 0.75rem;
    line-height: 1.45;
}

.eth-win-notification-copy > small {
    color: #70c8ac;
    font-size: 0.68rem;
}

.eth-win-notification-close {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(177,194,221,0.15);
    border-radius: 9px;
    background: rgba(255,255,255,0.04);
    color: #d3dbea;
    font: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}

.eth-win-notification-close:hover {
    background: rgba(255,255,255,0.1);
}

.eth-win-notification-close:focus-visible {
    outline: 2px solid #70ebc6;
    outline-offset: 3px;
}

@keyframes eth-notification-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.eth-hero {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    align-items: center;
    margin: 0 0 22px;
    padding: 30px 34px;
    border: 1px solid rgba(167,173,255,0.17);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 40%, rgba(128,139,255,0.2), transparent 22rem),
        linear-gradient(125deg, #121b31, #0d1423 70%);
}

.eth-hero h1 {
    max-width: 600px;
    margin: 14px 0 9px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.055em;
    line-height: 1.08;
}

.eth-hero p {
    max-width: 560px;
    margin: 0;
}

.eth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b7bcff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.eth-badge > span:first-child {
    color: #a7adff;
    font-size: 1rem;
}

.eth-badge > span:last-child {
    padding: 5px 8px;
    border: 1px solid rgba(167,173,255,0.24);
    border-radius: 999px;
    background: rgba(167,173,255,0.08);
    font-size: 0.64rem;
}

.eth-hero-mark {
    position: absolute;
    right: 7%;
    color: rgba(167,173,255,0.14);
    font-size: clamp(7rem, 18vw, 12rem);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.eth-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding: 17px 20px;
    border-color: rgba(247,196,26,0.2);
    background: linear-gradient(105deg, rgba(247,196,26,0.075), rgba(16,24,39,0.98) 65%);
}

.eth-notice-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border: 1px solid rgba(247,196,26,0.42);
    border-radius: 50%;
    color: #f7c41a;
    font-weight: 800;
}

.eth-notice h2 {
    margin: 2px 0 6px;
    font-size: 0.98rem;
}

.eth-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.eth-notice code,
.eth-wins code {
    color: #c3c6ff;
}

.eth-runner {
    margin-bottom: 18px;
    padding: 25px;
    border-color: rgba(167,173,255,0.17);
    background:
        radial-gradient(ellipse at 100% 0%, rgba(72,214,176,0.07), transparent 45%),
        linear-gradient(145deg, rgba(16,24,39,0.98), rgba(13,20,33,0.98));
}

.eth-runner-heading h2,
.eth-wins-heading h2 {
    margin: 5px 0;
    font-size: 1.35rem;
    letter-spacing: -0.035em;
}

.eth-runner-heading p,
.eth-wins-heading p {
    margin: 0;
    font-size: 0.86rem;
}

.eth-wins-heading .eth-package-access {
    margin-top: 7px;
    color: #b7bcff;
    font-size: 0.78rem;
    line-height: 1.5;
}

.eth-package-access a,
.eth-key--locked a {
    color: #a7adff;
    font-weight: 700;
}

.eth-win-count {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    margin-left: 5px;
    padding: 0 7px;
    border: 1px solid rgba(72,214,176,0.2);
    border-radius: 999px;
    background: rgba(72,214,176,0.08);
    color: var(--accent);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    vertical-align: 2px;
}

.eth-page .eyebrow {
    color: #a7adff;
    font-size: 0.68rem;
}

.eth-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.eth-duration {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.eth-duration select {
    min-width: 150px;
    min-height: 44px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #0b111d;
    color: var(--text);
    font: inherit;
    transition: border-color 150ms ease, background 150ms ease;
}

.eth-duration-hint {
    color: #8492a8;
    font-size: 0.72rem;
    font-weight: 500;
}

.eth-duration select:hover {
    border-color: rgba(167,173,255,0.4);
    background: #0e1625;
}

.eth-duration select:focus-visible,
.eth-actions button:focus-visible,
.eth-clear:focus-visible,
.eth-real-link:focus-visible {
    outline: 2px solid #a7adff;
    outline-offset: 3px;
}

.eth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.eth-actions .btn {
    gap: 9px;
}

.eth-actions .btn:first-child {
    background: #a7adff;
    color: #111426;
    box-shadow: 0 7px 20px rgba(128,139,255,0.15);
}

.eth-actions .btn:first-child:hover:not(:disabled) {
    background: #bbc0ff;
    box-shadow: 0 9px 24px rgba(128,139,255,0.23);
}

.eth-actions .btn.secondary {
    border-color: var(--border);
    background: rgba(255,255,255,0.035);
}

.eth-page button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.48;
    transform: none;
}

.eth-progress-track {
    height: 8px;
    overflow: hidden;
    margin-top: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.22);
}

.eth-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #747df0, #48d6b0);
    box-shadow: 0 0 14px rgba(72,214,176,0.38);
    transition: width 100ms linear;
}

.eth-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: #8492a8;
    font-size: 0.7rem;
    line-height: 1.4;
}

.eth-progress-meta span:first-child {
    color: #b7bcff;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eth-status {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    margin: 13px 0 18px;
    padding: 10px 12px;
    border: 1px solid rgba(177,194,221,0.1);
    border-radius: 11px;
    background: rgba(255,255,255,0.025);
    font-size: 0.83rem;
    line-height: 1.5;
}

.eth-status::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #a7adff;
    box-shadow: 0 0 10px rgba(167,173,255,0.42);
    content: "";
}

.eth-status[data-state="running"]::before {
    background: #48d6b0;
    box-shadow: 0 0 10px rgba(72,214,176,0.5);
    animation: eth-status-pulse 1s ease-in-out infinite alternate;
}

.eth-status[data-state="success"]::before {
    background: #48d6b0;
    box-shadow: 0 0 10px rgba(72,214,176,0.42);
}

.eth-status[data-state="error"] {
    border-color: rgba(255,112,112,0.28);
    background: rgba(255,112,112,0.05);
    color: #ffb1b1;
}

.eth-status[data-state="error"]::before {
    background: #ff7070;
    box-shadow: 0 0 10px rgba(255,112,112,0.42);
}

@keyframes eth-status-pulse {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

.eth-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.eth-stat {
    display: grid;
    min-height: 112px;
    align-content: center;
    gap: 3px;
    padding: 15px 17px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(255,255,255,0.025);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.eth-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(167,173,255,0.25);
    background: rgba(255,255,255,0.04);
}

.eth-stat > span {
    color: var(--muted);
    font-size: 0.76rem;
}

.eth-stat > strong {
    color: var(--text);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
}

.eth-stat > small {
    color: #8492a8;
    font-size: 0.7rem;
}

.eth-wins {
    padding: 23px 25px;
}

.eth-wins-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}

.eth-clear {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.8rem;
}

.eth-wins-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.eth-refresh-balances {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.8rem;
}

.eth-page #demo-win-list .wallet-item {
    grid-template-columns: minmax(0, 1fr) auto;
    border-color: rgba(72,214,176,0.13);
    background: linear-gradient(105deg, rgba(72,214,176,0.045), rgba(255,255,255,0.02));
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.eth-page #demo-win-list .wallet-item:hover {
    transform: translateY(-1px);
    border-color: rgba(72,214,176,0.3);
    background: linear-gradient(105deg, rgba(72,214,176,0.075), rgba(255,255,255,0.03));
}

.eth-page #demo-win-list .eth-balance {
    display: grid;
    min-width: 190px;
    max-width: 290px;
    gap: 4px;
    white-space: normal;
}

.eth-live-balance-label {
    color: #a7adff;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.06em;
}

.eth-page #demo-win-list .eth-live-balance-value {
    overflow-wrap: anywhere;
    font-size: 0.95rem;
}

.eth-live-balance-status {
    overflow-wrap: anywhere;
    color: #8492a8;
    font-size: 0.67rem;
    line-height: 1.4;
}

.eth-live-balance-status[data-state="success"] {
    color: var(--accent);
}

.eth-live-balance-status[data-state="loading"] {
    color: #a7adff;
}

.eth-live-balance-status[data-state="error"] {
    color: #ffb1b1;
}

.eth-page #demo-win-list .wallet-item .wallet-name strong {
    color: #b8c0ff;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.eth-address-label {
    margin-top: 3px;
    color: #8492a8;
    font-size: 0.68rem;
}

.eth-page #demo-win-list .eth-address {
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 5px 8px;
    border: 1px solid rgba(167,173,255,0.16);
    border-radius: 7px;
    background: rgba(0,0,0,0.18);
    color: #c3c6ff;
    font-size: 0.72rem;
}

.eth-config-key-label {
    margin-top: 3px;
    color: #8492a8;
    font-size: 0.68rem;
}

.eth-page #demo-win-list .eth-config-key {
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 5px 8px;
    border: 1px solid rgba(72,214,176,0.16);
    border-radius: 7px;
    background: rgba(0,0,0,0.18);
    color: #9cebd4;
    font-size: 0.72rem;
}

.eth-key {
    display: grid;
    justify-items: start;
    gap: 5px;
    margin-top: 5px;
}

.eth-key summary {
    color: #83d9bf;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.eth-key summary:focus-visible {
    outline: 2px solid #70ebc6;
    outline-offset: 3px;
    border-radius: 2px;
}

.eth-key small {
    color: #8492a8;
    font-size: 0.68rem;
}

.eth-key--locked {
    justify-items: start;
    padding: 7px 9px;
    border: 1px solid rgba(177,194,221,0.12);
    border-radius: 8px;
    background: rgba(0,0,0,0.12);
}

.eth-key--locked a {
    font-size: 0.7rem;
}

.eth-key code {
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 5px 8px;
    border: 1px solid rgba(72,214,176,0.16);
    border-radius: 7px;
    background: rgba(0,0,0,0.18);
    color: #9cebd4;
    font-size: 0.72rem;
}

.eth-page #demo-win-list .wallet-item .balance strong {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.eth-empty {
    display: grid;
    min-height: 136px;
    place-content: center;
    justify-items: center;
    padding: 20px;
    border: 1px dashed rgba(177,194,221,0.17);
    border-radius: 13px;
    background: rgba(255,255,255,0.012);
    color: var(--muted);
    text-align: center;
}

.eth-empty[hidden] {
    display: none;
}

.eth-empty > span {
    color: #a7adff;
    font-size: 1.5rem;
}

.eth-empty strong {
    margin-top: 6px;
    color: var(--text);
    font-size: 0.88rem;
}

.eth-empty p {
    margin: 5px 0 0;
    font-size: 0.78rem;
}

.eth-real-link {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 19px;
    color: var(--muted);
    font-size: 0.82rem;
}

.eth-real-link span {
    color: #b7bcff;
    font-weight: 700;
}

.eth-real-link:hover span {
    color: #d3d5ff;
}

@media (max-width: 600px) {
    .eth-win-notification {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        grid-template-columns: 34px minmax(0, 1fr) 30px;
        gap: 9px;
        padding: 13px;
    }

    .eth-win-notification-icon {
        width: 34px;
        height: 34px;
    }

    .eth-win-notification-close {
        width: 30px;
        height: 30px;
    }

    .eth-page main {
        padding-top: 25px;
    }

    .eth-hero {
        min-height: 170px;
        padding: 23px 20px;
    }

    .eth-hero-mark {
        right: -2%;
        opacity: 0.7;
    }

    .eth-hero h1 {
        max-width: 440px;
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }

    .eth-runner,
    .eth-wins {
        padding: 19px;
    }

    .eth-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .eth-actions .btn:first-child {
        min-height: 44px;
    }

    .eth-duration select {
        width: 100%;
    }

    .eth-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .eth-actions .btn {
        padding: 0 13px;
    }

    .eth-stats {
        gap: 7px;
    }

    .eth-stat {
        min-height: 100px;
        padding: 11px;
    }

    .eth-stat > span {
        font-size: 0.68rem;
    }

    .eth-stat > small {
        font-size: 0.63rem;
    }

    .eth-wins-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .eth-wins-actions {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }

    .eth-progress-meta {
        align-items: flex-start;
    }

    .eth-page #demo-win-list .wallet-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .eth-page #demo-win-list .wallet-item .balance {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eth-progress-track span,
    .eth-status[data-state="running"]::before {
        transition: none;
        animation: none;
    }

    .eth-win-notification {
        animation: none;
    }
}
