:root {
    --bg: #0a0c10;
    --bg-mid: #0e1118;
    --ink: #f3f0e7;
    --ink-soft: #f0c14b;
    --muted: #9a9386;
    --accent: #d4a017;
    --accent-hover: #f0c14b;
    --surface: #12161e;
    --border: #2a261c;
    --success: #3dba6e;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --font-display: "Orbitron", sans-serif;
    --font-body: "Manrope", sans-serif;
    --gold: #d4a017;
    --gold-2: #f0c14b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 28px 20px 48px;
    background:
        radial-gradient(ellipse 70% 40% at 50% -5%, rgba(212, 160, 23, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 35% at 100% 100%, rgba(212, 160, 23, 0.06), transparent 50%),
        linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 100%);
    background-attachment: fixed;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(240, 193, 75, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 193, 75, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.55s ease-out both;
}

.center-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 76px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 9vw, 3.1rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fff6d6, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tagline {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 28px;
    font-weight: 400;
}

.input-section {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}

.input-section label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.input-section input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--ink);
    padding: 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-body);
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.input-section input::-webkit-outer-spin-button,
.input-section input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-suffix {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-2);
}

.action-btn {
    width: 100%;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
    color: #1a1405;
    border: none;
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-bottom: 28px;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.25);
    transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    filter: brightness(1.06);
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.35);
}

.rounded-btn {
    margin: 8px 0 22px;
    padding: 18px 24px;
    font-size: 1.15rem;
    max-width: 100%;
}

.field-hint {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    background: rgba(185, 28, 28, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.form-error[hidden] {
    display: none;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    text-align: center;
}

.price-list-container {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    height: 360px;
    box-shadow: var(--shadow);
}

.price-list {
    height: 100%;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.price-list::-webkit-scrollbar {
    width: 6px;
}

.price-list::-webkit-scrollbar-track {
    background: transparent;
}

.price-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 6px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.price-item-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 14px 10px;
    pointer-events: none;
}

.uc-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
}

.uc-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.rub-amount {
    font-weight: 700;
    color: var(--gold-2);
    white-space: nowrap;
}

.clickable-price {
    cursor: pointer;
}

.clickable-price:hover {
    background: rgba(212, 160, 23, 0.08);
    border-color: rgba(212, 160, 23, 0.28);
}

.clickable-price.selected {
    background: rgba(212, 160, 23, 0.12);
    border-color: rgba(212, 160, 23, 0.45);
    animation: selectPulse 0.4s ease-out;
}

@keyframes selectPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

.pay-amount {
    margin: 8px 0 20px;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 8vw, 2.8rem);
    font-weight: 800;
    color: var(--gold-2);
    letter-spacing: -0.02em;
}

.guide {
    max-width: 380px;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.guide p + p {
    margin-top: 10px;
}

.admin-mention {
    color: var(--gold-2);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(240, 193, 75, 0.35);
}

.admin-mention:hover {
    border-bottom-color: var(--gold-2);
}

.secondary-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.secondary-link:hover {
    color: var(--gold-2);
    border-bottom-color: var(--gold-2);
}

.card-amount {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 800;
    color: var(--gold-2);
}

@media (max-width: 380px) {
    body {
        padding: 20px 14px 36px;
    }

    .price-list-container {
        height: 300px;
    }

    .uc-icon {
        width: 28px;
        height: 28px;
    }
}

.notice {
    background: rgba(212, 160, 23, 0.12);
    border: 1px solid rgba(212, 160, 23, 0.35);
    color: var(--gold-2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-bottom: 14px;
    text-align: center;
}

.admin-login .input-section input {
    font-size: 1rem;
    font-weight: 600;
}

.provider-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.provider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.provider-copy {
    min-width: 0;
}

.provider-name {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.provider-state {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.85rem;
}

.provider-copy .field-hint {
    margin-top: 4px;
}

.switch {
    width: 52px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #1a1e27;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #9a9386;
    transition: transform 0.18s ease, background 0.18s ease;
}

.switch.on {
    background: rgba(61, 186, 110, 0.25);
    border-color: rgba(61, 186, 110, 0.55);
}

.switch.on span {
    transform: translateX(20px);
    background: var(--success);
}

.switch:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.35);
}

.logout-form {
    margin: 0;
}

.logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    width: 100%;
    text-align: center;
    padding: 0;
}
