:root {
    --anime-ink: #253052;
    --anime-text: #33405f;
    --anime-muted: #66708c;
    --anime-pink: #ff73ad;
    --anime-blue: #6f93ff;
    --anime-cyan: #64d8e7;
    --anime-yellow: #ffe071;
    --anime-mint: #86edbf;
    --anime-paper: #fffdf8;
    --anime-soft: #fff0f7;
    --anime-line: rgba(37, 48, 82, 0.22);
    --anime-shadow: 10px 10px 0 rgba(37, 48, 82, 0.10), 0 24px 54px rgba(37, 48, 82, 0.14);
}

* {
    letter-spacing: 0;
}

html,
body {
    min-height: 100%;
}

html {
    scrollbar-color: var(--anime-pink) #fff5fb;
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 13px;
    height: 13px;
}

::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, rgba(255, 115, 173, 0.12), rgba(111, 147, 255, 0.10)),
        #fff5fb;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #fff5fb;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--anime-pink), var(--anime-blue));
    box-shadow: inset 0 0 0 1px rgba(37, 48, 82, 0.16);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff5fa3, #5f83ff);
}

::-webkit-scrollbar-corner {
    background: #fff5fb;
}

body {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--anime-text);
    background:
        linear-gradient(135deg, rgba(255, 115, 173, 0.12) 25%, transparent 25%) 0 0 / 34px 34px,
        linear-gradient(225deg, rgba(111, 147, 255, 0.10) 25%, transparent 25%) 0 0 / 34px 34px,
        linear-gradient(180deg, #fff5fb 0%, #edf7ff 48%, #fff9df 100%);
    font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

body::before,
body::after,
.payment-container::before,
.payment-container::after {
    display: none !important;
}

.payment-page {
    min-height: 100vh;
    padding: 28px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.payment-container,
.checkout-card {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    max-width: 1120px;
    margin: 0;
    padding: 18px;
    overflow: visible;
    text-align: left;
    border: 3px solid var(--anime-ink);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--anime-shadow);
}

.language-switcher {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
}

.language-switcher select {
    min-height: 42px;
    padding: 0 14px;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background: #ffffff;
    color: var(--anime-ink);
    box-shadow: 4px 4px 0 rgba(37, 48, 82, 0.12);
    font-size: 15px;
    font-weight: 900;
}

.language-switcher select:focus {
    outline: 3px solid rgba(255, 224, 113, 0.85);
    outline-offset: 2px;
}

.checkout-header {
    min-height: 142px;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) minmax(340px, 0.76fr);
    gap: 18px;
    align-items: center;
    padding: 20px 20px;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 115, 173, 0.16) 0 12%, transparent 12% 24%, rgba(111, 147, 255, 0.12) 24% 36%, transparent 36%),
        linear-gradient(135deg, #fff1f8 0%, #eef6ff 52%, #fff7d4 100%);
}

.brand-logo {
    width: 104px;
    height: 104px;
    display: block;
    border: 3px solid var(--anime-ink);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 6px 6px 0 rgba(37, 48, 82, 0.14);
}

.checkout-heading {
    min-width: 0;
}

.payment-notice {
    align-self: stretch;
    display: grid;
    align-content: center;
    gap: 7px;
    margin-top: 48px;
    min-height: 118px;
    padding: 16px 18px;
    border: 2px solid rgba(37, 48, 82, 0.26);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
    color: var(--anime-muted);
    font-size: 14px;
    line-height: 1.55;
}

.payment-notice strong {
    color: var(--anime-ink);
    font-size: 16px;
    font-weight: 900;
}

.payment-notice a {
    color: #f04f7f;
    font-weight: 900;
    text-decoration: none;
}

.payment-notice a:hover {
    text-decoration: underline;
}

.shop-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 2px solid var(--anime-ink);
    border-radius: 999px;
    background: var(--anime-yellow);
    color: var(--anime-ink);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 3px 3px 0 rgba(37, 48, 82, 0.12);
}

.payment-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.crypto-icon,
.network-badge {
    width: auto;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--anime-ink);
    border-radius: 999px;
    color: var(--anime-ink);
    font-size: 14px;
    font-weight: 900;
    box-shadow: 3px 3px 0 rgba(37, 48, 82, 0.12);
}

.crypto-icon {
    background: #dff5ff;
}

.network-badge {
    background: #ffe7f1;
}

.payment-title {
    margin: 0;
    color: var(--anime-ink);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    font-weight: 900;
}

.payment-title::after {
    display: none;
}

.payment-subtitle {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--anime-muted);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
}

.status-indicator {
    width: 10px;
    height: 10px;
    margin-right: 8px;
    display: inline-block;
    border: 2px solid var(--anime-ink);
    border-radius: 50%;
    background: var(--anime-mint);
    animation: none;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 18px;
    margin-top: 18px;
}

.payment-main,
.payment-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.order-info,
.countdown-banner,
.qr-section,
.selector-section,
.instructions,
.footer-info {
    margin: 0;
    border: 2px solid var(--anime-ink);
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 6px 6px 0 rgba(37, 48, 82, 0.10) !important;
}

.order-info {
    padding: 16px;
}

.order-item {
    min-height: 42px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed var(--anime-line);
}

.order-item:last-child {
    border-bottom: 0;
}

.order-label,
.address-label,
.instructions h4 {
    color: var(--anime-muted);
    font-size: 14px;
    font-weight: 900;
}

.order-value,
.address-text {
    color: var(--anime-ink);
    font-weight: 900;
    text-align: right;
}

.amount-value {
    padding: 5px 9px;
    border-radius: 8px;
    color: #f04f7f;
    background: #fff0f7;
    font-weight: 900;
    cursor: pointer;
}

.amount-value:hover,
.amount-value:focus {
    background: #ffe071;
    outline: none;
}

.countdown-banner {
    padding: 16px;
    background: linear-gradient(135deg, #fff6c9, #ffe6f1) !important;
}

.countdown-banner::before {
    display: none;
}

.countdown-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    color: var(--anime-ink);
}

.countdown-info {
    text-align: left;
}

.countdown-title,
.instructions h4 {
    margin: 0 0 6px;
    color: var(--anime-ink);
    font-size: 17px;
    font-weight: 900;
}

.countdown-title::before,
.instructions h4::before {
    display: none;
}

.countdown-subtitle {
    color: var(--anime-muted);
    font-size: 14px;
    line-height: 1.45;
    opacity: 1;
    font-weight: 700;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 7px;
}

.time-unit {
    min-width: 54px;
    padding: 7px 8px;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.time-number {
    display: block;
    color: var(--anime-blue);
    font-size: 20px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.time-label,
.time-separator {
    color: var(--anime-muted);
    opacity: 1;
}

.qr-section {
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #fff8fb) !important;
}

.qr-section::before,
.qr-section::after {
    display: none;
}

.qr-code {
    width: min(300px, 100%);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 16px;
    border: 3px solid var(--anime-ink);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.address-section {
    margin: 0;
    padding: 14px;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background: #f7fbff;
}

.address-label {
    margin-bottom: 8px;
}

.address-text {
    padding: 10px;
    border: 1px solid rgba(37, 48, 82, 0.16);
    border-radius: 8px;
    background: #ffffff;
    font-family: "Consolas", "Menlo", monospace;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-all;
    text-align: left;
}

.selector-section {
    padding: 18px !important;
}

.selector-container {
    display: grid;
    gap: 14px;
}

.coin-select {
    min-height: 56px;
    padding: 0 16px;
    border: 2px solid var(--anime-ink) !important;
    border-radius: 8px !important;
    background: #f7fbff !important;
    box-shadow: 4px 4px 0 rgba(37, 48, 82, 0.10);
}

.coin-select::before {
    display: none;
}

.coin-select:hover,
.coin-select.active {
    background: #fff0f7 !important;
}

.coin-select span,
.option-item .option-text {
    color: var(--anime-ink);
    font-weight: 900;
}

.options-list {
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    box-shadow: 8px 8px 0 rgba(37, 48, 82, 0.12);
    scrollbar-color: var(--anime-blue) #fff5fb;
    scrollbar-width: thin;
}

.option-item {
    min-height: 44px;
    border-radius: 8px;
}

.option-item:hover,
.option-item.selected {
    background: #fff0f7;
    color: var(--anime-blue);
}

.copy-btn,
.pay-button {
    min-height: 48px;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--anime-pink), var(--anime-blue));
    color: #ffffff;
    box-shadow: 5px 5px 0 rgba(37, 48, 82, 0.18);
    cursor: pointer;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.copy-btn {
    width: 100%;
    margin-top: 12px;
}

.pay-button {
    width: 100%;
    margin-top: 14px;
}

.pay-button p {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
}

.copy-btn:hover,
.pay-button:hover {
    filter: brightness(1.04);
    transform: translate(-1px, -1px);
    box-shadow: 7px 7px 0 rgba(37, 48, 82, 0.18);
}

.copy-btn:active,
.pay-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(37, 48, 82, 0.18);
}

.pay-button:disabled {
    background: #dce3ee;
    color: #8590a8;
    box-shadow: none;
    cursor: not-allowed;
}

.instructions {
    padding: 18px;
}

.instructions ol {
    margin: 0;
    padding-left: 20px;
    color: var(--anime-muted);
    font-size: 14px;
    line-height: 1.8;
    font-weight: 700;
}

.instructions li {
    margin-bottom: 7px;
}

.footer-info {
    grid-column: 1 / -1;
    padding: 14px 16px;
    background: #fff8dc !important;
}

.shop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--anime-muted);
    text-align: left;
}

.shop-footer-name {
    color: var(--anime-ink);
    font-size: 15px;
    font-weight: 900;
}

.shop-footer-note {
    font-size: 12px;
    line-height: 1.55;
}

.home-body {
    min-height: 100vh;
}

.home-page {
    min-height: 100vh;
    padding: 28px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-panel {
    width: min(100%, 1120px);
    padding: 18px;
    border: 3px solid var(--anime-ink);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--anime-shadow);
}

.home-brand {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 115, 173, 0.18) 0 12%, transparent 12% 24%, rgba(111, 147, 255, 0.12) 24% 36%, transparent 36%),
        linear-gradient(135deg, #fff1f8 0%, #eef6ff 52%, #fff7d4 100%);
}

.home-logo {
    width: 104px;
    height: 104px;
    display: block;
    border: 3px solid var(--anime-ink);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 6px 6px 0 rgba(37, 48, 82, 0.14);
}

.home-eyebrow,
.home-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 2px solid var(--anime-ink);
    border-radius: 999px;
    background: var(--anime-yellow);
    color: var(--anime-ink);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 3px 3px 0 rgba(37, 48, 82, 0.12);
}

.home-brand h1,
.home-hero h2,
.home-contact h2 {
    margin: 0;
    color: var(--anime-ink);
    font-weight: 900;
}

.home-brand h1 {
    margin-top: 10px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
}

.home-brand p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--anime-muted);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 800;
}

.home-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: stretch;
}

.home-hero,
.home-contact,
.home-status {
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 7px 7px 0 rgba(37, 48, 82, 0.12);
}

.home-hero {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: center;
    padding: 26px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 224, 113, 0.18), rgba(255, 115, 173, 0.12) 48%, rgba(111, 147, 255, 0.16)),
        #ffffff;
}

.home-hero-copy {
    min-width: 0;
}

.home-hero h2 {
    margin-top: 16px;
    font-size: clamp(32px, 4.8vw, 56px);
    line-height: 1.05;
}

.home-hero p,
.home-contact p {
    margin: 14px 0 0;
    color: var(--anime-muted);
    font-size: 15px;
    line-height: 1.75;
    font-weight: 750;
}

.home-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-button {
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    box-shadow: 5px 5px 0 rgba(37, 48, 82, 0.18);
    color: var(--anime-ink);
    font-weight: 900;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.home-button.primary {
    background: linear-gradient(135deg, var(--anime-pink), var(--anime-blue));
    color: #ffffff;
}

.home-button.secondary {
    background: #fff8dc;
}

.home-button:hover {
    filter: brightness(1.04);
    transform: translate(-1px, -1px);
    box-shadow: 7px 7px 0 rgba(37, 48, 82, 0.18);
}

.home-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(37, 48, 82, 0.18);
}

.home-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-mascot img {
    width: min(100%, 190px);
    aspect-ratio: 1;
    border: 3px solid var(--anime-ink);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 10px 10px 0 rgba(37, 48, 82, 0.14);
}

.home-contact {
    padding: 24px;
    background: #fff8dc;
}

.home-contact h2 {
    font-size: 24px;
}

.home-contact a {
    min-height: 48px;
    margin-top: 18px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--anime-ink);
    border-radius: 8px;
    background: #ffffff;
    color: #f04f7f;
    box-shadow: 5px 5px 0 rgba(37, 48, 82, 0.14);
    font-weight: 900;
    text-decoration: none;
}

.home-status {
    margin-top: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    background: #ffffff;
}

.home-status div {
    min-width: 0;
    padding: 12px 14px;
    border: 2px dashed rgba(37, 48, 82, 0.24);
    border-radius: 8px;
    background: rgba(238, 246, 255, 0.72);
}

.home-status strong,
.home-status span {
    display: block;
}

.home-status strong {
    color: var(--anime-ink);
    font-size: 15px;
    font-weight: 900;
}

.home-status span {
    margin-top: 6px;
    color: var(--anime-muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 750;
}

button:focus-visible,
.home-button:focus-visible,
.home-contact a:focus-visible,
.copy-btn:focus-visible,
.pay-button:focus-visible,
.coin-select:focus-visible,
.amount-value:focus-visible {
    outline: 3px solid rgba(255, 224, 113, 0.95);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .payment-page {
        padding: 12px;
    }

    .payment-container,
    .checkout-card {
        padding: 12px;
    }

    .checkout-header {
        grid-template-columns: 84px 1fr;
        min-height: 0;
        padding: 62px 14px 16px;
    }

    .payment-notice {
        grid-column: 1 / -1;
        margin-top: 0;
        min-height: 0;
    }

    .brand-logo {
        width: 76px;
        height: 76px;
    }

    .language-switcher {
        top: 14px;
        right: 14px;
    }

    .payment-layout {
        grid-template-columns: 1fr;
    }

    .footer-info {
        grid-column: 1;
    }
}

@media (max-width: 560px) {
    .checkout-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-logo {
        margin: 0 auto;
    }

    .payment-chip-row {
        justify-content: center;
    }

    .payment-subtitle {
        text-align: center;
    }

    .order-item {
        display: grid;
        gap: 5px;
        align-items: start;
    }

    .order-value {
        text-align: left;
    }

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

    .countdown-info {
        text-align: center;
    }

    .countdown-timer {
        justify-content: center;
    }

    .shop-footer {
        display: grid;
        gap: 5px;
        text-align: left;
    }

    .home-page {
        padding: 12px;
        align-items: flex-start;
    }

    .home-panel {
        padding: 12px;
    }

    .home-brand,
    .home-grid,
    .home-hero,
    .home-status {
        grid-template-columns: 1fr;
    }

    .home-brand {
        text-align: center;
    }

    .home-logo {
        margin: 0 auto;
    }

    .home-hero {
        padding: 18px;
    }

    .home-actions {
        display: grid;
    }

    .home-mascot img {
        width: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
