:root {
    --app-bg: #060913;
    --app-surface: #0d1424;
    --app-surface-2: #121c30;
    --app-line: rgba(130, 164, 255, 0.14);
    --app-line-strong: rgba(130, 164, 255, 0.24);
    --app-text: #edf3ff;
    --app-muted: #92a1c0;
    --app-primary: #6ee7ff;
    --app-accent: #7effb2;
    --app-gold: #ffce6d;
    --app-danger: #ff6f8f;
    --app-radius: 22px;
    --app-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(110, 231, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #060913 0%, #091120 48%, #060913 100%);
    color: var(--app-text);
    font-family: 'Inter', sans-serif;
    padding-bottom: 96px;
}

body.page-busy {
    overflow: hidden;
}

body.page-ready .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

a { color: inherit; }

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(110, 231, 255, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(6, 9, 19, 0.98), rgba(9, 17, 32, 0.98));
    backdrop-filter: blur(18px);
    transition: opacity .42s ease, visibility .42s ease;
}

.page-loader__panel {
    width: min(100%, 360px);
    padding: 26px 22px;
    border-radius: 28px;
    border: 1px solid var(--app-line);
    background: linear-gradient(180deg, rgba(13, 20, 36, 0.96), rgba(8, 12, 22, 0.96));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    text-align: center;
}

.page-loader__ring {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    animation: loaderFloat 1.8s ease-in-out infinite;
}

.page-loader__brand {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(110, 231, 255, 0.22));
    z-index: 1;
}

.page-loader__ring::before,
.page-loader__ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.page-loader__ring::before {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(110, 231, 255, 0.08);
}

.page-loader__ring::after {
    inset: 8px;
    border: 4px solid transparent;
    border-top-color: var(--app-primary);
    border-right-color: var(--app-accent);
    animation: loaderSpin .9s linear infinite;
    box-shadow: 0 0 18px rgba(110, 231, 255, 0.18);
}

.page-loader__title {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    letter-spacing: 0.08em;
}

.page-loader__text {
    margin: 10px 0 0;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.55;
}

.page-loader__bar {
    position: relative;
    height: 10px;
    margin-top: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--app-line);
}

.page-loader__bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -42%;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--app-primary), var(--app-accent), transparent);
    animation: loaderSweep 1.2s ease-in-out infinite;
}

.page-loader__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--app-primary);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

@keyframes loaderSweep {
    0% { left: -42%; }
    100% { left: 100%; }
}

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

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(16deg) scale(1.04); }
    30% { transform: rotate(-14deg) scale(1.04); }
    45% { transform: rotate(10deg) scale(1.03); }
    60% { transform: rotate(-8deg) scale(1.02); }
    75% { transform: rotate(4deg) scale(1.01); }
}

.mobile-app {
    width: min(100%, 460px);
    margin: 0 auto;
    min-height: 100vh;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px 16px 12px;
    background: none;
    backdrop-filter: blur(16px);
}

.app-header-card {
    padding: 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(18, 28, 48, 0.96), rgba(13, 20, 36, 0.96));
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow);
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: none;
    object-fit: cover;
    padding: 0;
    background: none;
    border: none;
    display: block;
}

.brand-copy h1,
.screen-title {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    letter-spacing: 0.06em;
}

.brand-copy p,
.screen-subtitle,
.muted {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 12px;
    word-break: break-word;
}

.price-pill,
.status-pill,
.small-pill {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--app-line);
    background: rgba(255, 255, 255, 0.03);
}

.price-pill { color: var(--app-accent); }
.status-pill { color: var(--app-primary); font-size:9px; }
.small-pill { color: var(--app-gold); }

.header-side {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.header-side-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid var(--app-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--app-text);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--app-shadow);
}

.notification-bell i {
    font-size: 17px;
}

.notification-bell.has-unread {
    color: var(--app-gold);
    border-color: rgba(255, 206, 109, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 206, 109, 0.08), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.notification-bell.has-unread i {
    animation: bellRing 1.2s ease-in-out infinite;
    transform-origin: top center;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff7a59, #ff4d6d);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #0d1424;
}

.notification-badge.is-hidden {
    display: none;
}

.page-body {
    padding: 0 16px 24px;
}

.card,
.quick-grid button,
.activity-row,
.token-row,
.list-row,
.empty-state,
.modal-sheet {
    border: 1px solid var(--app-line);
    background: linear-gradient(180deg, rgba(13, 20, 36, 0.96), rgba(10, 15, 28, 0.96));
    box-shadow: var(--app-shadow);
}

.card {
    border-radius: var(--app-radius);
    padding: 18px;
    margin-bottom: 14px;
}

.hero-card {
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(110, 231, 255, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(18, 28, 48, 0.98), rgba(13, 20, 36, 0.98));
}

.eyebrow {
    display: inline-block;
    color: var(--app-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.hero-balance {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 31px;
    line-height: 1.1;
    margin: 8px 0 4px;
    font-weight: 800;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.hero-usd {
    color: var(--app-accent);
    font-weight: 600;
    font-size: 14px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.mini-stat {
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--app-line);
}

.mini-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mini-stat-head i {
    font-size: 14px;
}

.mini-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    line-height: 1.2;
    word-break: break-word;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-grid button {
    border-radius: 18px;
    padding: 14px 8px;
    color: var(--app-text);
    cursor: pointer;
}

.quick-grid i {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.quick-grid span {
    font-size: 11px;
    font-weight: 600;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h2 {
    margin: 0;
    font-size: 16px;
}

.section-title-inline,
.modal-title-inline,
.field-label-inline,
.button-inline,
.info-pill-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-title-inline i,
.modal-title-inline i,
.field-label-inline i,
.button-inline i,
.info-pill-head i {
    flex-shrink: 0;
}

.section-title-inline i,
.modal-title-inline i {
    color: var(--app-primary);
}

.field-label-inline i {
    color: var(--app-muted);
    font-size: 12px;
}

.button-inline {
    justify-content: center;
}

.info-pill-head {
    color: var(--app-muted);
    font-size: 12px;
}

.info-pill-head i {
    color: var(--app-primary);
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.primary-button {
    background: linear-gradient(135deg, var(--app-primary), var(--app-accent));
    color: #05101c;
}

.secondary-button {
    background: linear-gradient(135deg, #f0b90b, #ffd36d);
    color: #211500;
}

.ghost-button {
    background: rgba(255, 255, 255, 0.04);
    color: var(--app-text);
    border: 1px solid var(--app-line);
}

.text-button {
    background: transparent;
    color: var(--app-primary);
    padding: 10px 0;
}

.countdown {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    margin: 14px 0;
}

.countdown.ready { color: var(--app-accent); }
.countdown.normal { color: var(--app-gold); }
.countdown.reset { color: #ff9557; }

.mining-card {
    background:
        radial-gradient(circle at top right, rgba(110, 231, 255, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(11, 18, 33, 0.98), rgba(9, 14, 26, 0.98));
}

.mining-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mining-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mining-title-icon,
.mining-bonus-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.mining-title-icon {
    color: var(--app-accent);
    background: linear-gradient(135deg, rgba(110, 231, 255, 0.14), rgba(126, 255, 178, 0.08));
    border: 1px solid rgba(110, 231, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mining-title-icon i,
.mining-bonus-icon i {
    font-size: 17px;
}

.mining-title-copy h2 {
    margin: 0;
    font-size: 18px;
}

.mining-title-copy .muted {
    margin-top: 6px;
    line-height: 1.5;
}

.mining-pill {
    white-space: nowrap;
}

.mining-timer-box {
    margin: 16px 0 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 206, 109, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 206, 109, 0.16);
}

.mining-timer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--app-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mining-timer-label i {
    color: var(--app-gold);
}

.mining-timer-box .countdown {
    margin: 8px 0 0;
    font-size: 20px;
}

.mining-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mining-bonus-grid {
    margin-top: 12px;
}

.mining-bonus-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
}

.mining-bonus-icon {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--app-line);
}

.mining-bonus-copy {
    flex: 1;
    min-width: 0;
}

.mining-bonus-copy span {
    display: block;
    color: var(--app-muted);
    font-size: 12px;
}

.mining-bonus-copy strong {
    margin-top: 6px;
    font-size: 26px;
    line-height: 1;
}

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

.info-pill {
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--app-line);
}

.info-pill strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.token-list,
.activity-list,
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.token-row,
.activity-row,
.list-row {
    width: 100%;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.token-row img,
.token-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.token-copy,
.activity-copy,
.list-copy {
    flex: 1;
    min-width: 0;
}

.token-copy strong,
.activity-copy strong,
.list-copy strong {
    display: block;
    font-size: 14px;
}

.token-copy span,
.activity-copy span,
.list-copy span {
    display: block;
    margin-top: 4px;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}

.amount {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.up { color: var(--app-accent); }
.down { color: var(--app-danger); }
.pending { color: var(--app-gold); }

.empty-state {
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    color: var(--app-muted);
    font-size: 13px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(calc(100% - 16px), 460px);
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    border-radius: 22px;
    border: 1px solid var(--app-line);
    background: rgba(8, 12, 24, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: var(--app-shadow);
}

.bottom-nav a,
.bottom-nav button {
    border: none;
    background: transparent;
    color: var(--app-muted);
    text-decoration: none;
    text-align: center;
    font-size: 10px;
    padding: 8px 4px;
    border-radius: 14px;
}

.bottom-nav i {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.bottom-nav .active,
.bottom-nav a:hover,
.bottom-nav button:hover {
    background: rgba(110, 231, 255, 0.08);
    color: var(--app-text);
}

.flash {
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.flash-success { background: rgba(126, 255, 178, 0.1); color: #cbffd9; border: 1px solid rgba(126, 255, 178, 0.18); }
.flash-error { background: rgba(255, 111, 143, 0.1); color: #ffd0d9; border: 1px solid rgba(255, 111, 143, 0.2); }
.flash-warn { background: rgba(255, 206, 109, 0.1); color: #ffe7b5; border: 1px solid rgba(255, 206, 109, 0.18); }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(3, 6, 14, 0.82);
    backdrop-filter: blur(10px);
    padding: 16px;
    align-items: flex-end;
}

.modal.active { display: flex; }

.modal-sheet {
    width: min(100%, 460px);
    margin: 0 auto;
    border-radius: 24px 24px 18px 18px;
    padding: 18px 16px 16px;
    max-height: 88vh;
    overflow: auto;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-head h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--app-muted);
    font-size: 24px;
    cursor: pointer;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--app-muted);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--app-line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--app-text);
    border-radius: 14px;
    padding: 14px;
    font-size: 14px;
}

input::placeholder,
textarea::placeholder {
    color: #7f90b2;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, #9bb0d8 50%),
        linear-gradient(135deg, #9bb0d8 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select option,
select optgroup {
    color: #111827;
    background: #f3f7ff;
}

textarea {
    min-height: 84px;
    resize: vertical;
}

.qr-box,
.wallet-box {
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--app-line);
}

.wallet-box {
    word-break: break-all;
    font-size: 13px;
}

.inline-note {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}

.preview-box {
    margin-top: 12px;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--app-line);
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.6;
}

.preview-box strong {
    color: var(--app-text);
}

.admin-modal-sheet {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-section {
    border-radius: 22px;
    border: 1px solid var(--app-line);
    background: linear-gradient(180deg, rgba(15, 23, 40, 0.98), rgba(9, 14, 26, 0.98));
    overflow: hidden;
}

.admin-section-toggle {
    list-style: none;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--app-text);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    text-align: left;
}

.admin-section-toggle::-webkit-details-marker {
    display: none;
}

.admin-section-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-section-copy strong {
    font-size: 15px;
}

.admin-section-copy span {
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.45;
}

.admin-section-toggle i {
    color: var(--app-primary);
    transition: transform .22s ease;
}

.admin-section[open] .admin-section-toggle i {
    transform: rotate(180deg);
}

.admin-section-body {
    display: none;
    padding: 0 18px 18px;
    border-top: 1px solid var(--app-line);
}

.admin-section[open] .admin-section-body {
    display: block;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-item {
    border-radius: 18px;
    padding: 14px;
    border: 1px solid var(--app-line);
    background: rgba(255, 255, 255, 0.03);
}

.update-item.has-preview {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    cursor: pointer;
}

.update-item.has-preview:focus-visible {
    outline: 2px solid rgba(110, 231, 255, 0.55);
    outline-offset: 2px;
}

.update-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.update-item.has-preview .update-meta {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.update-preview {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.update-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.update-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(110, 231, 255, 0.09);
    color: var(--app-primary);
    border: 1px solid rgba(110, 231, 255, 0.16);
}

.updates-note {
    margin-top: 12px;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.5;
}

.image-viewer-modal {
    align-items: center;
}

.image-viewer-sheet {
    width: min(100%, 560px);
    max-height: 92vh;
}

.image-viewer-body {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--app-line);
}

.image-viewer-body img {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    display: block;
    background: #050914;
}

.image-viewer-copy {
    margin-top: 12px;
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.55;
}

.wallet-inline {
    display: inline-block;
    word-break: break-all;
    color: var(--app-text);
}

.mining-visual {
    position: relative;
    border-radius: 22px;
    padding: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(110, 231, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(9, 17, 31, 0.98), rgba(7, 12, 22, 0.98));
    border: 1px solid var(--app-line);
}

.mining-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(126, 255, 178, 0.08), transparent);
    transform: translateX(-100%);
    animation: miningSweep 2.8s linear infinite;
    pointer-events: none;
}

.mining-orb-wrap {
    position: relative;
    width: 138px;
    height: 138px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}

.mining-orb-core {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #a3f7ff, #53d8ff 42%, #11263b 100%);
    box-shadow:
        0 0 0 12px rgba(110, 231, 255, 0.06),
        0 0 32px rgba(110, 231, 255, 0.32);
    display: grid;
    place-items: center;
    animation: miningPulse 1.8s ease-in-out infinite;
}

.mining-orb-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(110, 231, 255, 0.22));
}

.mining-orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(110, 231, 255, 0.2);
}

.ring-a {
    width: 94px;
    height: 94px;
    animation: spinClockwise 8s linear infinite;
}

.ring-b {
    width: 122px;
    height: 122px;
    border-color: rgba(126, 255, 178, 0.22);
    border-style: dashed;
    animation: spinCounter 10s linear infinite;
}

.ring-c {
    width: 138px;
    height: 138px;
    /* border-color: rgba(255, 206, 109, 0.18); */
	border:none;
    animation: spinClockwise 12s linear infinite;
}

.mining-status-stack {
    position: relative;
    z-index: 1;
}

.mining-status-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 6px;
}

.mining-status-sub {
    text-align: center;
    color: var(--app-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mining-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--app-line);
}

.mining-progress span {
    display: block;
    width: 6%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--app-primary), var(--app-accent));
    box-shadow: 0 0 20px rgba(110, 231, 255, 0.28);
    transition: width 0.8s ease;
}

.mining-grid-lines {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.mining-grid-lines span {
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(110, 231, 255, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(110, 231, 255, 0.1);
    animation: miningBars 1.3s ease-in-out infinite;
}

.mining-grid-lines span:nth-child(2) { animation-delay: 0.18s; }
.mining-grid-lines span:nth-child(3) { animation-delay: 0.36s; }
.mining-grid-lines span:nth-child(4) { animation-delay: 0.54s; }

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

.metric-chip {
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--app-line);
    color: var(--app-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-chip strong {
    display: block;
    margin-top: 6px;
    color: var(--app-text);
    font-size: 15px;
    letter-spacing: normal;
    text-transform: none;
}

@keyframes miningPulse {
    0%, 100% { transform: scale(0.94); box-shadow: 0 0 0 12px rgba(110, 231, 255, 0.06), 0 0 24px rgba(110, 231, 255, 0.22); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(110, 231, 255, 0.08), 0 0 36px rgba(110, 231, 255, 0.36); }
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes miningBars {
    0%, 100% { transform: scaleY(0.62); opacity: 0.55; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes miningSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.reward-burst {
    position: fixed;
    inset: 0;
    z-index: 68;
    pointer-events: none;
    display: grid;
    place-items: center;
}

.reward-burst-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(110, 231, 255, 0.12), rgba(6, 9, 19, 0));
    animation: rewardBackdropFade 1.8s ease-out forwards;
}

.reward-burst-core {
    position: relative;
    width: min(100%, 420px);
    padding: 0 20px;
}

.reward-pop-card {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: min(100%, 290px);
    border-radius: 22px;
    padding: 18px 18px 16px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(126, 255, 178, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(15, 26, 38, 0.98), rgba(8, 13, 22, 0.98));
    border: 1px solid rgba(126, 255, 178, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    animation: rewardPopIn 1.8s ease-out forwards;
}

.reward-pop-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    line-height: 1.2;
    color: var(--app-accent);
    text-shadow: 0 0 18px rgba(126, 255, 178, 0.16);
}

.reward-pop-sub {
    margin-top: 8px;
    color: var(--app-muted);
    font-size: 12px;
}

.reward-coins span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #06101c;
    background: linear-gradient(135deg, #ffe08a, #f0b90b);
    box-shadow: 0 10px 22px rgba(240, 185, 11, 0.3);
    animation: rewardCoinBurst 1.6s ease-out forwards;
}

.reward-coins span:nth-child(1) { --tx: -118px; --ty: -112px; animation-delay: 0.02s; }
.reward-coins span:nth-child(2) { --tx: 0px; --ty: -150px; animation-delay: 0.08s; }
.reward-coins span:nth-child(3) { --tx: 122px; --ty: -100px; animation-delay: 0.14s; }
.reward-coins span:nth-child(4) { --tx: -130px; --ty: 10px; animation-delay: 0.18s; }
.reward-coins span:nth-child(5) { --tx: 132px; --ty: 8px; animation-delay: 0.24s; }
.reward-coins span:nth-child(6) { --tx: 0px; --ty: 134px; animation-delay: 0.3s; }

@keyframes rewardPopIn {
    0% { opacity: 0; transform: translateY(28px) scale(0.84); }
    18% { opacity: 1; transform: translateY(0) scale(1.04); }
    65% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-12px) scale(0.98); }
}

@keyframes rewardCoinBurst {
    0% { opacity: 0; transform: translate(0, 0) scale(0.2) rotate(0deg); }
    18% { opacity: 1; transform: translate(calc(var(--tx) * 0.75), calc(var(--ty) * 0.75)) scale(1.04) rotate(180deg); }
    70% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1) rotate(320deg); }
    100% { opacity: 0; transform: translate(calc(var(--tx) * 1.1), calc(var(--ty) * 1.1)) scale(0.82) rotate(420deg); }
}

@keyframes rewardBackdropFade {
    0% { opacity: 0; }
    18% { opacity: 1; }
    100% { opacity: 0; }
}

.tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.tab-btn {
    border: 1px solid var(--app-line);
    background: rgba(255,255,255,0.03);
    color: var(--app-muted);
    border-radius: 14px;
    padding: 12px 8px;
    font-weight: 600;
}

.tab-btn.active {
    background: rgba(110, 231, 255, 0.08);
    color: var(--app-text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(110, 231, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.08);
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
