@import url("./dropin_token.css");

.main-content {
    padding-bottom: 108px;
}

.best-practice-layout {
    display: flex;
    justify-content: center;
    width: min(760px, calc(100% - 48px));
    margin: 26px auto 0;
}

.phone-checkout {
    width: min(430px, 100%);
}

.section {
    padding: 16px;
}

.sku-section {
    overflow: hidden;
}

.sku-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
}

.sku-item {
    display: flex;
    min-width: 0;
    min-height: 76px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    text-align: center;
}

.sku-item img {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin: 0;
}

.sku-info {
    display: grid;
    gap: 4px;
}

.sku-item .name,
.sku-item .price {
    display: block;
    font-size: 12px;
    line-height: 1.2;
}

.sku-item .price {
    margin: 0;
    font-size: 14px;
}

.method-list {
    display: grid;
    gap: 12px;
}

.local-method-list {
    display: grid;
    gap: 12px;
}

.token-card-list {
    max-width: none;
}

.token-card-option,
.method-row {
    width: 100%;
    min-height: 50px;
}

.method-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease);
}

.method-row:hover {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
    transform: translateY(-1px);
}

.method-row.selected {
    border-color: #c7d7ef;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.method-row img {
    flex: 0 0 auto;
    width: 54px;
    height: 38px;
    object-fit: contain;
}

.component-method img {
    width: 64px;
    height: 34px;
}

.method-row .card-method-logo {
    width: 54px;
    height: 38px;
    object-fit: contain;
}

.method-label {
    flex: 1;
    min-width: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 720;
    letter-spacing: 0;
}

.method-radio {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid #d7e0ef;
    border-radius: 50%;
}

.method-row.selected .method-radio::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.add-card-row {
    border-style: dashed;
    border-color: #b9c8dd;
}

.add-card-row.plain-card-row {
    border-style: solid;
    border-color: var(--line);
}

.add-card-row.selected {
    border-color: var(--accent);
    background: rgba(37, 99, 235, 0.04);
}

.add-card-row.payermax-card-row .method-label {
    text-transform: none;
}

.card-input-container {
    display: none;
    width: 100%;
    padding: 16px;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #fafbff;
}

.card-input-container.active {
    display: block;
}

.card-frame {
    max-width: 100%;
    padding: 16px;
}

.component-pay-button {
    display: none;
    min-width: 220px;
    min-height: 48px;
    align-items: center;
    justify-content: flex-end;
}

.component-pay-button.active {
    display: flex;
}

.bottom-bar {
    min-height: 72px;
    padding: 12px 28px;
}

.pay-button {
    display: inline-flex;
    min-width: 152px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    line-height: 1;
    white-space: nowrap;
}

.component-pay-button {
    height: 48px;
}

@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }

}

@media (max-width: 520px) {
    .best-practice-layout {
        width: calc(100% - 24px);
        margin-top: 14px;
    }

    .action-bar {
        padding-inline: 16px;
    }

    .bottom-bar {
        left: 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    .pay-button {
        width: 100%;
    }

    .component-pay-button {
        width: 100%;
        justify-content: center;
    }
}

body {
    height: 100vh;
    overflow: hidden;
    background: #f1f5f9;
    color: #0f172a;
    font-family: 'Inter', sans-serif;
}

.solution-shell {
    height: 100vh;
    width: 100%;
}

.best-practice-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    margin: 0;
}

.left-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: #f3f5fc;
    padding: 1rem;
    border-right: 2px solid #e2e8f0;
}

.right-panel {
    width: 460px;
    flex: 0 0 460px;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.integration-doc-float {
    position: fixed;
    top: 104px;
    right: 484px;
    z-index: 95;
    width: 224px;
    min-height: 262px;
    padding: 18px 16px;
    border: 1px solid rgba(223, 229, 239, 0.92);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 255, 0.93)),
        radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.13), transparent 42%);
    box-shadow:
        0 26px 58px rgba(28, 39, 63, 0.18),
        0 10px 24px rgba(37, 99, 235, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    transform: translateZ(0);
}

.doc-float-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 12px;
    padding: 0 8px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.7);
    color: var(--accent-strong);
    font-size: 11px;
    font-weight: 780;
}

.integration-doc-float h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 16px;
    font-weight: 780;
    line-height: 1.28;
}

.integration-doc-float p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.doc-float-links {
    display: grid;
    gap: 10px;
}

.doc-float-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid rgba(223, 229, 239, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.25;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(28, 39, 63, 0.06);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.doc-float-links a:hover {
    border-color: rgba(37, 99, 235, 0.34);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.doc-link-arrow {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.api-header {
    background: #0f172a;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.api-header i {
    margin-right: 8px;
}

.clear-btn {
    background: #334155;
    border: none;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.api-log {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-log {
    color: #94a3b8;
    text-align: center;
    padding: 1rem;
    line-height: 1.6;
}

.log-entry {
    margin-bottom: 1.2rem;
    border-left: 3px solid #4f46e5;
    background: #0f172a;
    border-radius: 8px;
    padding: 12px;
    transition: opacity 0.2s;
}

.log-title {
    font-weight: 700;
    color: #facc15;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.log-method {
    color: #34d399;
    font-size: 0.8rem;
    white-space: nowrap;
}

.log-url {
    color: #94a3b8;
    font-size: 11px;
    word-break: break-all;
}

.log-req,
.log-res {
    background: #0a0f1a;
    padding: 8px;
    border-radius: 6px;
    margin: 8px 0;
    overflow-x: auto;
    white-space: pre-wrap;
    font-size: 11px;
}

.log-res {
    border-left: 2px solid #4f46e5;
}

.log-status {
    font-size: 11px;
    margin-top: 5px;
    color: #cbd5e1;
}

.log-status .loading {
    color: #facc15;
}

.log-status .done {
    color: #34d399;
}

.log-status .error {
    color: #f87171;
}

.navbar {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card-mode-selector select {
    min-width: 168px;
    min-height: 42px;
    padding: 10px 38px 10px 14px;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 740;
    cursor: pointer;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease);
}

.card-mode-selector select:hover {
    border-color: rgba(37, 99, 235, 0.32);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
    transform: translateY(-1px);
}

.card-mode-selector select:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.phone-checkout {
    width: min(430px, 100%);
    margin: 0 auto;
}

.section {
    background: #ffffff;
}

.bottom-bar {
    position: sticky;
    right: auto;
    bottom: 0;
    left: auto;
    z-index: 90;
    width: 100%;
    margin-top: 18px;
    border-radius: 1.25rem 1.25rem 0 0;
}

@media (max-width: 980px) {
    body {
        height: auto;
        overflow: auto;
    }

    .best-practice-layout {
        display: block;
        height: auto;
    }

    .left-panel {
        min-height: auto;
        border-right: 0;
    }

    .right-panel {
        width: 100%;
        min-height: 420px;
        flex-basis: auto;
    }

    .integration-doc-float {
        position: static;
        width: auto;
        min-height: 0;
        margin: 0 1rem 1rem;
    }

    .doc-float-links {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .navbar-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

}

@media (max-width: 520px) {
    .left-panel {
        padding: 0.75rem;
    }

    .best-practice-layout {
        width: 100%;
        margin: 0;
    }

    .navbar {
        border-radius: 1rem;
    }

    .home-logo-link,
    .home-logo-link img {
        height: 23px;
    }

    .navbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .card-mode-selector,
    .card-mode-selector select,
    .country-selector,
    .country-selector select {
        width: 100%;
    }

    .bottom-bar {
        border-radius: 1rem 1rem 0 0;
    }

    .integration-doc-float {
        margin: 0 0.75rem 0.75rem;
    }
}

/* Game device redesign */
:root {
    --game-bg: #07111f;
    --game-bg-2: #0e1b2d;
    --game-panel: rgba(12, 24, 42, 0.86);
    --game-panel-solid: #101c2d;
    --game-screen: #f5f7fb;
    --game-card: #ffffff;
    --game-line: #d9e4f2;
    --game-teal: #2dd4bf;
    --game-blue: #3678ff;
    --game-rose: #fb4d75;
    --game-gold: #f7c948;
    --game-ink: #0f172a;
    --game-muted: #667085;
    --game-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

body {
    height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(0deg, rgba(54, 120, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(145deg, var(--game-bg) 0%, #0b1730 46%, #121927 100%);
    color: #e5edf7;
    font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
}

.solution-shell {
    min-height: 100vh;
    width: 100%;
}

.best-practice-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    margin: 0;
}

.left-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 22px 314px 24px 24px;
    border-right: 1px solid rgba(114, 148, 196, 0.28);
    background:
        linear-gradient(115deg, rgba(45, 212, 191, 0.10), transparent 38%),
        linear-gradient(245deg, rgba(251, 77, 117, 0.12), transparent 36%);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto 18px;
    padding: 10px 12px;
    border: 1px solid rgba(129, 157, 199, 0.28);
    border-radius: 8px;
    background: rgba(9, 18, 32, 0.82);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.home-logo-link {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.10);
}

.home-logo-link img {
    display: block;
    width: auto;
    height: 24px;
    max-width: 118px;
    object-fit: contain;
}

.nav-title {
    display: grid;
    gap: 2px;
    min-width: 180px;
    margin-right: auto;
}

.nav-title span {
    color: var(--game-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.nav-title strong {
    color: #f8fbff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.orientation-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 42px;
    padding: 4px;
    border: 1px solid rgba(129, 157, 199, 0.30);
    border-radius: 8px;
    background: rgba(4, 11, 22, 0.64);
}

.orientation-btn {
    min-width: 54px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #aebbd0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

.orientation-btn:hover,
.orientation-btn:focus-visible {
    color: #ffffff;
    outline: none;
}

.orientation-btn.active {
    background: linear-gradient(135deg, var(--game-teal), #7dd3fc);
    color: #03101d;
    box-shadow: 0 10px 20px rgba(45, 212, 191, 0.24);
}

.card-mode-selector select,
.country-selector select {
    min-width: 168px;
    min-height: 42px;
    padding: 9px 36px 9px 12px;
    border: 1px solid rgba(129, 157, 199, 0.32);
    border-radius: 8px;
    background: #101c2d;
    color: #edf5ff;
    cursor: pointer;
    outline: none;
    font-size: 13px;
    font-weight: 760;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.card-mode-selector select:hover,
.country-selector select:hover {
    border-color: rgba(45, 212, 191, 0.52);
    background: #13233a;
}

.card-mode-selector select:focus-visible,
.country-selector select:focus-visible {
    border-color: var(--game-teal);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.16);
}

.phone-checkout {
    position: relative;
    width: min(462px, 100%);
    height: min(760px, calc(100vh - 184px));
    margin: 0 auto;
    padding: 36px 16px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 10px solid #050b14;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 253, 0.98)),
        var(--game-screen);
    box-shadow:
        var(--game-shadow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.26),
        inset 0 0 0 2px rgba(54, 120, 255, 0.08);
    scrollbar-width: thin;
    scrollbar-color: #b7c4d7 transparent;
    transition: width 260ms ease, height 260ms ease, border-radius 260ms ease;
}

.phone-checkout::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 50%;
    width: 74px;
    height: 6px;
    border-radius: 999px;
    background: #1f2937;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateX(-50%);
}

.phone-checkout::after {
    content: "";
    position: absolute;
    top: 12px;
    left: calc(50% + 48px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #152033;
    box-shadow: inset 0 0 0 2px rgba(45, 212, 191, 0.12);
}

.phone-checkout.landscape {
    display: grid;
    grid-template-columns: minmax(245px, 0.92fr) minmax(300px, 1.08fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: 12px;
    width: min(858px, 100%);
    height: min(468px, calc(100vh - 112px));
    padding: 30px 16px 0;
    border-radius: 30px;
}

.phone-checkout.landscape::before {
    top: 50%;
    left: 14px;
    width: 6px;
    height: 72px;
    transform: translateY(-50%);
}

.phone-checkout.landscape::after {
    top: calc(50% + 48px);
    left: 13px;
}

.phone-checkout.landscape .sku-section {
    grid-column: 1;
}

.phone-checkout.landscape .payment-section {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.phone-checkout.landscape .bottom-bar {
    grid-column: 1 / -1;
}

.section {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid rgba(216, 226, 240, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    animation: fadeIn 340ms ease both;
}

.section:hover {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
}

.section h2 {
    gap: 8px;
    margin-bottom: 12px;
    color: var(--game-ink);
    font-size: 18px;
    font-weight: 850;
}

.section h2::before {
    width: 10px;
    height: 10px;
    background: var(--game-blue);
    box-shadow: 0 0 0 5px rgba(54, 120, 255, 0.12), 0 0 18px rgba(54, 120, 255, 0.34);
}

.sku-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.phone-checkout.landscape .sku-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sku-item {
    min-height: 102px;
    gap: 6px;
    padding: 10px 6px;
    border-color: rgba(205, 216, 233, 0.95);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.96)),
        linear-gradient(135deg, rgba(45, 212, 191, 0.10), transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.sku-item:hover,
.sku-item:focus-visible {
    border-color: rgba(54, 120, 255, 0.58);
    box-shadow: 0 14px 26px rgba(54, 120, 255, 0.14);
    outline: none;
    transform: translateY(-2px);
}

.sku-item.selected {
    border-color: var(--game-blue);
    background:
        linear-gradient(180deg, #ffffff, #f4f8ff),
        linear-gradient(135deg, rgba(54, 120, 255, 0.14), rgba(45, 212, 191, 0.10));
    box-shadow: 0 0 0 3px rgba(54, 120, 255, 0.14), 0 14px 28px rgba(54, 120, 255, 0.16);
}

.sku-item img {
    width: 34px;
    height: 34px;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 8px rgba(168, 120, 30, 0.26));
}

.sku-item .name,
.sku-item .price {
    font-size: 12px;
    line-height: 1.18;
}

.sku-item .name {
    color: #111827;
    font-weight: 850;
}

.sku-item .price {
    margin: 0;
    color: #1d5fd6;
    font-size: 15px;
    font-weight: 900;
}

.method-list,
.local-method-list {
    gap: 10px;
}

.token-card-option,
.method-row {
    min-height: 54px;
    border-color: rgba(206, 218, 235, 0.96);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.token-card-option:hover,
.method-row:hover,
.token-card-option:focus-visible,
.method-row:focus-visible {
    border-color: rgba(54, 120, 255, 0.52);
    box-shadow: 0 12px 24px rgba(54, 120, 255, 0.12);
    outline: none;
}

.token-card-option.selected,
.method-row.selected {
    border-color: var(--game-blue);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    box-shadow: 0 0 0 3px rgba(54, 120, 255, 0.13), 0 12px 26px rgba(54, 120, 255, 0.12);
}

.brand-badge {
    border-color: rgba(54, 120, 255, 0.22);
    border-radius: 4px;
}

.method-row img,
.method-row .card-method-logo {
    width: 54px;
    height: 38px;
}

.component-method img {
    width: 64px;
    height: 34px;
}

.method-label,
.card-mask {
    color: #111827;
    font-weight: 850;
}

.add-card-plus,
.method-radio,
.token-radio {
    border-color: #c8d7eb;
}

.method-row.selected .method-radio::after,
.token-card-option.selected .token-radio::after {
    background: var(--game-blue);
}

.add-card-row {
    border-color: rgba(54, 120, 255, 0.38);
    background: linear-gradient(135deg, rgba(54, 120, 255, 0.05), rgba(45, 212, 191, 0.06));
}

.card-input-container {
    padding: 14px;
    border-color: rgba(54, 120, 255, 0.20);
    background: rgba(247, 250, 255, 0.96);
}

.bottom-bar {
    position: sticky;
    right: auto;
    bottom: 0;
    left: auto;
    z-index: 90;
    width: auto;
    min-height: 78px;
    margin: 16px -16px 0;
    padding: 14px 16px 16px;
    border: 0;
    border-top: 1px solid rgba(212, 223, 239, 0.92);
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -18px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.order-info {
    min-width: 0;
}

.order-item {
    color: #64748b;
    font-size: 13px;
    font-weight: 780;
}

.order-amount {
    color: #12a150;
    font-size: 22px;
    font-weight: 900;
}

.pay-button,
.modal-button {
    min-height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--game-blue), #22b8cf);
    box-shadow: 0 16px 28px rgba(54, 120, 255, 0.24);
}

.pay-button:hover,
.modal-button:hover {
    box-shadow: 0 18px 34px rgba(54, 120, 255, 0.30);
}

.pay-button:disabled {
    background: #cfd7e6;
    color: #8792a5;
    box-shadow: none;
}

.component-pay-button {
    min-height: 48px;
}

.right-panel {
    width: 384px;
    flex: 0 0 384px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid rgba(45, 212, 191, 0.18);
    background:
        linear-gradient(180deg, #08111f 0%, #0d1728 100%);
    color: #dbeafe;
    font-family: Monaco, Menlo, Consolas, monospace;
    font-size: 13px;
}

.api-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(129, 157, 199, 0.24);
    background: rgba(3, 9, 18, 0.74);
    color: #f8fbff;
    font-weight: 800;
}

.api-header i {
    margin-right: 8px;
    color: var(--game-teal);
}

.clear-btn {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(251, 77, 117, 0.26);
    border-radius: 8px;
    background: rgba(251, 77, 117, 0.10);
    color: #ffd6df;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.clear-btn:hover,
.clear-btn:focus-visible {
    border-color: rgba(251, 77, 117, 0.54);
    background: rgba(251, 77, 117, 0.18);
    color: #ffffff;
    outline: none;
}

.log-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(45, 212, 191, 0.30);
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.10);
    color: #ecfeff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.log-toggle-icon {
    display: inline-flex;
    font-size: 13px;
    line-height: 1;
    transition: transform var(--ease);
}

.log-toggle-btn:hover,
.log-toggle-btn:focus-visible {
    border-color: rgba(45, 212, 191, 0.58);
    background: rgba(45, 212, 191, 0.18);
    box-shadow: 0 12px 24px rgba(45, 212, 191, 0.12);
    outline: none;
}

body.log-expanded .log-toggle-btn {
    border-color: rgba(45, 212, 191, 0.62);
    background: rgba(45, 212, 191, 0.22);
}

body.log-expanded .log-toggle-icon {
    transform: rotate(90deg);
}

.api-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-width: 0;
}

.empty-log {
    margin-top: 12px;
    padding: 18px;
    border: 1px dashed rgba(129, 157, 199, 0.30);
    border-radius: 8px;
    color: #9fb0c8;
    line-height: 1.6;
    text-align: center;
}

.log-entry {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(129, 157, 199, 0.20);
    border-left: 3px solid var(--game-teal);
    border-radius: 8px;
    background: rgba(4, 11, 22, 0.92);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.log-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--game-gold);
    font-weight: 800;
}

.log-method {
    color: var(--game-teal);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.log-url,
.log-status {
    color: #9fb0c8;
    font-size: 11px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.log-req,
.log-res {
    margin: 8px 0;
    padding: 9px;
    overflow-x: hidden;
    border: 1px solid rgba(129, 157, 199, 0.16);
    border-radius: 6px;
    background: #030914;
    color: #d7e2f1;
    font-size: 11px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.log-res {
    border-left: 2px solid var(--game-blue);
}

.log-status .loading {
    display: none;
}

.log-status .done {
    color: var(--game-teal);
}

.log-status .error {
    color: #ff8aa0;
}

.integration-doc-float {
    position: fixed;
    top: 98px;
    right: 504px;
    z-index: 95;
    width: 250px;
    min-height: 244px;
    padding: 16px;
    border: 1px solid rgba(129, 157, 199, 0.30);
    border-radius: 8px;
    background: rgba(10, 20, 35, 0.88);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
}

.device-landscape .left-panel {
    padding-right: 24px;
}

.device-landscape .integration-doc-float {
    top: 84px;
    right: 504px;
    bottom: auto;
}

.doc-float-kicker {
    min-height: 22px;
    margin-bottom: 10px;
    border: 1px solid rgba(45, 212, 191, 0.26);
    background: rgba(45, 212, 191, 0.10);
    color: var(--game-teal);
}

.integration-doc-float h2 {
    margin: 0 0 8px;
    color: #f8fbff;
    font-size: 16px;
    font-weight: 850;
}

.integration-doc-float p {
    margin: 0 0 14px;
    color: #aebbd0;
    font-size: 12px;
    line-height: 1.55;
}

.doc-float-links {
    display: grid;
    gap: 9px;
}

.doc-float-links a {
    min-height: 40px;
    border-color: rgba(129, 157, 199, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #eff6ff;
    box-shadow: none;
}

.doc-float-links a:hover,
.doc-float-links a:focus-visible {
    border-color: rgba(45, 212, 191, 0.46);
    background: rgba(45, 212, 191, 0.12);
    box-shadow: 0 12px 24px rgba(45, 212, 191, 0.12);
    outline: none;
}

.doc-link-arrow {
    color: var(--game-teal);
}

.modal-overlay {
    background: rgba(3, 9, 18, 0.62);
}

.modal-content {
    border: 1px solid rgba(129, 157, 199, 0.24);
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.modal-title[hidden],
.modal-order[hidden],
.modal-amount[hidden] {
    display: none;
}

.modal-message.show {
    line-height: 1.65;
}

.modal-danger-text {
    color: #dc2626;
    font-weight: 900;
}

@media (max-width: 1180px) {
    body {
        height: auto;
        overflow: auto;
    }

    .best-practice-layout {
        height: auto;
        min-height: 100vh;
    }

    .left-panel {
        padding: 20px;
    }

    .integration-doc-float {
        position: static;
        width: auto;
        min-height: 0;
        margin: 16px 20px 20px;
    }

    .doc-float-links {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 980px) {
    .best-practice-layout {
        display: block;
    }

    .left-panel {
        min-height: auto;
        border-right: 0;
    }

    .right-panel {
        width: 100%;
        min-height: 430px;
        flex-basis: auto;
        border-left: 0;
        border-top: 1px solid rgba(45, 212, 191, 0.18);
    }
}

@media (max-width: 760px) {
    .navbar {
        align-items: stretch;
        flex-direction: column;
    }

    .navbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .orientation-toggle,
    .card-mode-selector,
    .card-mode-selector select,
    .country-selector,
    .country-selector select {
        width: 100%;
    }

    .orientation-btn {
        flex: 1;
    }

    .phone-checkout,
    .phone-checkout.landscape {
        display: block;
        width: min(462px, 100%);
        height: min(760px, calc(100vh - 188px));
        border-radius: 30px;
    }

    .phone-checkout.landscape::before {
        top: 13px;
        left: 50%;
        width: 74px;
        height: 6px;
        transform: translateX(-50%);
    }

    .phone-checkout.landscape::after {
        top: 12px;
        left: calc(50% + 48px);
    }
}

@media (max-width: 520px) {
    .left-panel {
        padding: 12px;
    }

    .navbar {
        margin-bottom: 12px;
    }

    .phone-checkout,
    .phone-checkout.landscape {
        height: min(738px, calc(100vh - 206px));
        padding-inline: 12px;
        border-width: 8px;
    }

    .sku-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bottom-bar {
        flex-wrap: wrap;
        gap: 12px;
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .pay-button,
    .component-pay-button {
        width: 100%;
        justify-content: center;
    }

    .integration-doc-float {
        margin: 12px;
    }
}

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

/* Scheme G: ticket carousel + native game checkout sheet */
:root {
    --game-night: #08111f;
    --game-violet: #6554ff;
    --game-cyan: #23c7d9;
    --game-lime: #9be15d;
    --game-orange: #ffb545;
    --game-pink: #f55386;
    --game-soft: #f5f7fb;
    --game-paper: #ffffff;
    --game-ink-strong: #101828;
    --game-ink-soft: #667085;
    --game-rule: #d8e2f0;
}

.left-panel {
    padding: 22px 318px 24px 24px;
    background:
        radial-gradient(circle at 14% 18%, rgba(35, 199, 217, 0.18), transparent 28%),
        radial-gradient(circle at 82% 10%, rgba(245, 83, 134, 0.14), transparent 30%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(135deg, #071221 0%, #0f1d36 48%, #19132c 100%);
}

.phone-checkout {
    display: block;
    width: min(430px, 100%);
    height: min(780px, calc(100vh - 172px));
    padding: 18px 14px 0;
    border: 14px solid #030712;
    border-radius: 46px;
    outline: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 18% 8%, rgba(101, 84, 255, 0.16), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.48),
        0 0 0 2px #101827,
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        -19px 120px 0 -15px #111827,
        -19px 174px 0 -15px #111827,
        19px 146px 0 -15px #111827;
}

.phone-checkout::before {
    top: 13px;
    width: 92px;
    height: 24px;
    border-radius: 999px;
    background:
        radial-gradient(circle at calc(100% - 18px) 50%, #1db9d0 0 3px, #07111f 4px 7px, transparent 8px),
        linear-gradient(180deg, #070d16, #121927);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.26);
}

.phone-checkout::after {
    top: auto;
    right: auto;
    bottom: 8px;
    left: 50%;
    width: 118px;
    height: 4px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.28);
    box-shadow: none;
    transform: translateX(-50%);
}

.game-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    padding: 0 12px;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
}

.game-status-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-status-icons span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111827;
    opacity: 0.86;
}

.game-status-icons span:nth-child(2) {
    width: 14px;
    border-radius: 999px;
}

.game-store-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    min-height: 112px;
    margin: 10px 0 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(101, 84, 255, 0.92), rgba(35, 199, 217, 0.86)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.36), transparent 28%);
    color: #ffffff;
    box-shadow: 0 22px 42px rgba(61, 86, 212, 0.24);
}

.game-store-kicker {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.game-store-hero h1 {
    max-width: 230px;
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 900;
}

.game-store-balance {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(7, 17, 31, 0.22);
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.section {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.section:hover {
    box-shadow: none;
}

.section h2 {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    color: var(--game-ink-strong);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
}

.section h2::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--game-cyan);
    box-shadow: 0 0 0 5px rgba(35, 199, 217, 0.12);
}

.payment-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    max-width: 100%;
    margin: 0 0 12px;
}

.payment-title-row h2 {
    min-width: 0;
    margin: 0;
}

.duplicate-token-help {
    max-width: 100%;
    min-height: 34px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.duplicate-token-help:hover,
.duplicate-token-help:focus-visible {
    color: #1d4ed8;
    outline: none;
}

.duplicate-token-help[hidden] {
    display: none;
}

.sku-section {
    margin-bottom: 14px;
}

.sku-list {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin: 0 -14px;
    padding: 0 14px 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sku-list::-webkit-scrollbar {
    display: none;
}

.sku-item {
    position: relative;
    flex: 0 0 148px;
    min-height: 176px;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(216, 226, 240, 0.96);
    border-radius: 24px;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 181, 69, 0.32), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 14px 28px rgba(16, 24, 40, 0.10);
    scroll-snap-align: start;
}

.sku-item::before {
    content: "Pack";
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(101, 84, 255, 0.10);
    color: #4f46e5;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sku-item:nth-child(2)::before {
    content: "Popular";
    background: rgba(35, 199, 217, 0.12);
    color: #087c8e;
}

.sku-item:nth-child(3)::before {
    content: "Value";
    background: rgba(155, 225, 93, 0.18);
    color: #3f7a16;
}

.sku-item:nth-child(4)::before {
    content: "3DS";
    background: rgba(245, 83, 134, 0.12);
    color: #be2455;
}

.sku-item:hover,
.sku-item:focus-visible {
    border-color: rgba(101, 84, 255, 0.52);
    box-shadow: 0 20px 36px rgba(101, 84, 255, 0.18);
    outline: none;
    transform: translateY(-2px);
}

.sku-item.selected {
    border-color: #6554ff;
    background:
        radial-gradient(circle at 76% 18%, rgba(255, 181, 69, 0.38), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
    box-shadow: 0 0 0 4px rgba(101, 84, 255, 0.16), 0 22px 40px rgba(101, 84, 255, 0.22);
}

.sku-item img {
    width: 72px;
    height: 72px;
    margin: 8px auto 10px;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px rgba(147, 100, 22, 0.30));
}

.sku-info {
    display: grid;
    gap: 6px;
    text-align: left;
}

.sku-item .name,
.sku-item .price {
    display: block;
    line-height: 1.16;
}

.sku-item .name {
    min-height: 34px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.sku-item .price {
    margin: 0;
    color: #13823d;
    font-size: 18px;
    font-weight: 950;
}

.payment-section {
    position: relative;
    margin: 0 -14px;
    padding: 14px 14px 0;
    border-radius: 30px 30px 0 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -16px 36px rgba(16, 24, 40, 0.12);
    backdrop-filter: blur(18px);
}

.payment-sheet-handle {
    width: 48px;
    height: 5px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: #cbd5e1;
}

.method-list,
.local-method-list,
.token-card-list {
    display: grid;
    gap: 10px;
}

.token-card-option,
.method-row {
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid rgba(210, 221, 236, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06);
}

.token-card-option:hover,
.method-row:hover,
.token-card-option:focus-visible,
.method-row:focus-visible {
    border-color: rgba(101, 84, 255, 0.46);
    box-shadow: 0 14px 26px rgba(101, 84, 255, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.token-card-option.selected,
.method-row.selected {
    border-color: #6554ff;
    background: linear-gradient(180deg, #ffffff, #f4f6ff);
    box-shadow: 0 0 0 4px rgba(101, 84, 255, 0.14), 0 14px 30px rgba(101, 84, 255, 0.16);
}

.method-row img,
.method-row .card-method-logo {
    width: 46px;
    height: 36px;
    object-fit: contain;
}

.component-method img {
    width: 58px;
    height: 32px;
}

.method-label,
.card-mask {
    color: var(--game-ink-strong);
    font-size: 15px;
    font-weight: 900;
}

.add-card-row {
    border-style: dashed;
    border-color: rgba(101, 84, 255, 0.34);
    background:
        linear-gradient(135deg, rgba(101, 84, 255, 0.06), rgba(35, 199, 217, 0.08)),
        #ffffff;
}

.add-card-plus,
.method-radio,
.token-radio {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #cad7ea;
    border-radius: 50%;
    color: #6554ff;
    font-weight: 900;
}

.method-row.selected .method-radio::after,
.token-card-option.selected .token-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6554ff;
}

.brand-badge {
    border-radius: 7px;
}

.remove-token-button {
    min-height: 34px;
    border-radius: 999px;
}

.card-input-container {
    padding: 14px;
    border: 1px solid rgba(101, 84, 255, 0.20);
    border-radius: 20px;
    background: #f7f9ff;
}

.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 80px;
    margin: 0 -14px;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(216, 226, 240, 0.95);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 24px rgba(16, 24, 40, 0.08);
}

.order-item {
    color: #667085;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 850;
}

.order-amount {
    color: #139447;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 950;
}

.pay-button,
.modal-button {
    min-width: 138px;
    min-height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6554ff, #23c7d9);
    box-shadow: 0 16px 28px rgba(71, 99, 255, 0.26);
}

.pay-button:hover,
.modal-button:hover,
.pay-button:focus-visible,
.modal-button:focus-visible {
    box-shadow: 0 20px 34px rgba(71, 99, 255, 0.32);
    outline: none;
}

.pay-button:disabled {
    background: #d2d8e6;
    color: #8d98aa;
    box-shadow: none;
}

.phone-checkout.landscape {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12px 14px;
    width: min(928px, 100%);
    height: min(500px, calc(100vh - 112px));
    padding: 16px 18px 0 44px;
    border-width: 14px;
    border-radius: 42px;
    overflow: auto;
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.50),
        0 0 0 2px #101827,
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        -20px 122px 0 -15px #111827,
        20px 122px 0 -15px #111827;
}

.phone-checkout.landscape::before {
    top: 50%;
    left: 12px;
    width: 24px;
    height: 92px;
    background: linear-gradient(180deg, #070d16, #121927);
    transform: translateY(-50%);
}

.phone-checkout.landscape::after {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 8px;
    width: 4px;
    height: 118px;
    transform: translateY(-50%);
}

.phone-checkout.landscape .game-statusbar {
    grid-column: 1 / -1;
    height: 22px;
}

.phone-checkout.landscape .game-store-hero {
    grid-column: 1;
    min-height: 116px;
    margin: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
}

.phone-checkout.landscape .game-store-hero h1 {
    max-width: 250px;
    font-size: 21px;
}

.phone-checkout.landscape .sku-section {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    margin-left: -8px;
    padding: 8px 0 0 10px;
    border-radius: 22px 0 0 22px;
    background: linear-gradient(90deg, rgba(244, 248, 255, 0.92), rgba(244, 248, 255, 0));
}

.phone-checkout.landscape .sku-section h2::before {
    width: 14px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--game-cyan), rgba(101, 84, 255, 0.84));
    box-shadow: 0 0 0 4px rgba(35, 199, 217, 0.10);
}

.phone-checkout.landscape .sku-list {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    margin: 0 -6px;
    padding: 0 6px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(101, 84, 255, 0.42) rgba(203, 213, 225, 0.54);
    scrollbar-width: thin;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

.phone-checkout.landscape .sku-list::-webkit-scrollbar {
    display: block;
    height: 5px;
}

.phone-checkout.landscape .sku-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.54);
}

.phone-checkout.landscape .sku-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(101, 84, 255, 0.42);
}

.phone-checkout.landscape .sku-item {
    flex: 0 0 132px;
    min-height: 104px;
    padding: 12px;
}

.phone-checkout.landscape .sku-item img {
    width: 30px;
    height: 30px;
    margin: 2px auto 4px;
}

.phone-checkout.landscape .sku-item .name {
    min-height: 0;
    font-size: 11px;
}

.phone-checkout.landscape .sku-item .price {
    font-size: 13px;
}

.phone-checkout.landscape .payment-section {
    grid-column: 2;
    grid-row: 2 / span 2;
    min-height: 0;
    margin: 0;
    padding: 14px;
    overflow-y: auto;
    border-radius: 28px;
}

.phone-checkout.landscape .bottom-bar {
    grid-column: 1 / -1;
    margin: 0 -18px 0 -44px;
    border-radius: 24px 24px 0 0;
}

@media (max-width: 1180px) {
    .left-panel {
        padding: 20px;
    }
}

@media (max-width: 760px) {
    .phone-checkout,
    .phone-checkout.landscape {
        display: block;
        width: min(430px, 100%);
        height: min(780px, calc(100vh - 210px));
        padding: 18px 14px 0;
        border-width: 10px;
        border-radius: 38px;
    }

    .phone-checkout.landscape::before {
        top: 13px;
        left: 50%;
        width: 92px;
        height: 24px;
        transform: translateX(-50%);
    }

    .phone-checkout.landscape::after {
        top: auto;
        right: auto;
        bottom: 8px;
        left: 50%;
        width: 118px;
        height: 4px;
        transform: translateX(-50%);
    }

    .game-store-hero {
        min-height: 102px;
    }
}

@media (max-width: 520px) {
    .phone-checkout,
    .phone-checkout.landscape {
        height: min(752px, calc(100vh - 226px));
        padding-inline: 12px;
        border-width: 8px;
    }

    .game-store-hero {
        padding: 16px;
        border-radius: 24px;
    }

    .game-store-hero h1 {
        font-size: 23px;
    }

    .game-store-balance {
        display: none;
    }

    .sku-list {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    .sku-item {
        flex-basis: 140px;
    }

    .payment-section,
    .bottom-bar {
        margin-inline: -12px;
    }

    .pay-button,
    .component-pay-button {
        width: auto;
        min-width: 132px;
    }
}

/* Keep the phone shell chrome outside the scrollable screen content. */
.phone-checkout,
.phone-checkout.landscape {
    display: block;
    overflow: hidden;
    padding: 0;
}

/* Keep the top control bar visually fixed while switching device previews. */
.left-panel,
.device-landscape .left-panel,
.device-pc .left-panel {
    padding-top: 92px;
    padding-right: 318px;
}

.navbar {
    position: fixed;
    top: 8px;
    right: 400px;
    left: 8px;
    margin: 0;
}

@media (max-width: 1180px) {
    .navbar {
        right: 20px;
    }
}

.phone-screen-scroll {
    height: 100%;
    padding: 18px 14px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 30px;
    scrollbar-width: thin;
    scrollbar-color: #b7c4d7 transparent;
}

.phone-checkout.landscape .phone-screen-scroll {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12px 14px;
    padding: 16px 18px 0 44px;
    overflow: auto;
}

.orientation-btn[data-orientation="pc"] {
    min-width: 82px;
}

.device-pc .integration-doc-float {
    top: 84px;
    right: 408px;
    bottom: auto;
}

.phone-checkout.pc {
    width: min(1120px, 100%);
    height: min(770px, calc(100vh - 112px));
    border: 1px solid rgba(161, 182, 216, 0.34);
    border-radius: 18px;
    outline: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 253, 0.98)),
        var(--game-soft);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.phone-checkout.pc::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    border-radius: 17px 17px 0 0;
    background:
        radial-gradient(circle at 22px 24px, #fb7185 0 5px, transparent 6px),
        radial-gradient(circle at 42px 24px, #fbbf24 0 5px, transparent 6px),
        radial-gradient(circle at 62px 24px, #34d399 0 5px, transparent 6px),
        linear-gradient(180deg, rgba(8, 17, 31, 0.98), rgba(15, 29, 54, 0.98));
    box-shadow: inset 0 -1px 0 rgba(161, 182, 216, 0.20);
    transform: none;
}

.phone-checkout.pc::after {
    top: 14px;
    right: 18px;
    bottom: auto;
    left: 92px;
    width: auto;
    height: 20px;
    border: 1px solid rgba(161, 182, 216, 0.20);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.18), rgba(54, 120, 255, 0.14)),
        rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: none;
}

.phone-checkout.pc .phone-screen-scroll {
    display: grid;
    grid-template-columns: minmax(330px, 0.92fr) minmax(430px, 1.08fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    height: 100%;
    padding: 72px 24px 24px;
    overflow: auto;
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 14%, rgba(101, 84, 255, 0.12), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(35, 199, 217, 0.14), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.phone-checkout.pc .game-statusbar {
    display: none;
}

.phone-checkout.pc .game-store-hero {
    grid-column: 1;
    min-height: 172px;
    margin: 0;
    padding: 28px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.86)),
        radial-gradient(circle at 88% 18%, rgba(35, 199, 217, 0.50), transparent 32%);
    box-shadow: 0 24px 48px rgba(30, 58, 138, 0.24);
}

.phone-checkout.pc .game-store-kicker {
    color: rgba(226, 232, 240, 0.78);
    font-size: 12px;
}

.phone-checkout.pc .game-store-hero h1 {
    max-width: 360px;
    font-size: 34px;
    line-height: 1.08;
}

.phone-checkout.pc .game-store-balance {
    align-self: flex-start;
    font-size: 12px;
}

.phone-checkout.pc .sku-section {
    grid-column: 1;
    grid-row: 2 / span 2;
    min-height: 0;
    margin: 0;
    padding: 18px;
    overflow-y: auto;
    border: 1px solid rgba(216, 226, 240, 0.94);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.phone-checkout.pc .sku-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
}

.phone-checkout.pc .sku-item {
    flex: initial;
    min-height: 136px;
    padding: 16px;
    border-radius: 18px;
}

.phone-checkout.pc .sku-item img {
    width: 56px;
    height: 56px;
}

.phone-checkout.pc .payment-section {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 0;
    margin: 0;
    padding: 22px;
    overflow-y: auto;
    border: 1px solid rgba(216, 226, 240, 0.96);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.phone-checkout.pc .payment-sheet-handle {
    display: none;
}

.phone-checkout.pc .payment-section h2 {
    font-size: 20px;
}

.phone-checkout.pc .method-list,
.phone-checkout.pc .local-method-list,
.phone-checkout.pc .token-card-list {
    gap: 12px;
}

.phone-checkout.pc .token-card-option,
.phone-checkout.pc .method-row {
    min-height: 66px;
    border-radius: 16px;
}

.phone-checkout.pc .bottom-bar {
    grid-column: 2;
    grid-row: 3;
    position: static;
    min-height: 88px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid rgba(216, 226, 240, 0.96);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.phone-checkout.pc .pay-button,
.phone-checkout.pc .component-pay-button {
    min-width: 172px;
}

.modal-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

@media (max-width: 1380px) {
    .device-pc .integration-doc-float {
        position: fixed;
        top: 84px;
        right: 408px;
        bottom: auto;
        width: 250px;
        min-height: 244px;
        margin: 0;
    }
}

@media (max-width: 980px) {
    .device-landscape .integration-doc-float,
    .device-pc .integration-doc-float {
        position: static;
        width: auto;
        min-height: 0;
        margin: 16px 20px 20px;
    }
}

@media (max-width: 760px) {
    .left-panel,
    .device-landscape .left-panel,
    .device-pc .left-panel {
        padding-top: 206px;
        padding-right: 12px;
    }

    .navbar {
        right: 12px;
        left: 12px;
    }

    .phone-screen-scroll,
    .phone-checkout.landscape .phone-screen-scroll {
        display: block;
        padding: 18px 14px 0;
    }

    .phone-checkout.pc {
        width: min(430px, 100%);
        height: min(780px, calc(100vh - 226px));
        border-width: 10px;
        border-radius: 38px;
    }

    .phone-checkout.pc::before {
        top: 13px;
        left: 50%;
        width: 92px;
        height: 24px;
        border-radius: 999px;
        background:
            radial-gradient(circle at calc(100% - 18px) 50%, #1db9d0 0 3px, #07111f 4px 7px, transparent 8px),
            linear-gradient(180deg, #070d16, #121927);
        transform: translateX(-50%);
    }

    .phone-checkout.pc::after {
        top: auto;
        right: auto;
        bottom: 8px;
        left: 50%;
        width: 118px;
        height: 4px;
        border: 0;
        background: rgba(17, 24, 39, 0.28);
        transform: translateX(-50%);
    }

    .phone-checkout.pc .phone-screen-scroll {
        display: block;
        padding: 18px 14px 0;
        border-radius: 30px;
    }

    .phone-checkout.pc .game-statusbar {
        display: flex;
    }

    .phone-checkout.pc .game-store-hero {
        min-height: 102px;
        margin: 10px 0 12px;
        padding: 16px;
        border-radius: 24px;
    }

    .phone-checkout.pc .game-store-hero h1 {
        font-size: 23px;
    }

    .phone-checkout.pc .sku-section,
    .phone-checkout.pc .payment-section {
        border: 0;
        box-shadow: none;
    }

    .phone-checkout.pc .sku-section {
        margin: 0 0 14px;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .phone-checkout.pc .payment-section {
        margin: 0 -14px;
        padding: 14px 14px 0;
        border-radius: 30px 30px 0 0;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 -16px 36px rgba(16, 24, 40, 0.12);
    }

    .phone-checkout.pc .sku-list {
        display: flex;
        gap: 12px;
        margin: 0 -14px;
        padding: 0 14px 5px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .phone-checkout.pc .sku-item {
        flex: 0 0 148px;
        min-height: 176px;
        border-radius: 24px;
    }

    .phone-checkout.pc .bottom-bar {
        position: sticky;
        bottom: 0;
        min-height: 80px;
        margin: 0 -14px;
        border: 0;
        border-top: 1px solid rgba(216, 226, 240, 0.95);
        border-radius: 0;
    }
}

@media (max-width: 520px) {
    .phone-screen-scroll,
    .phone-checkout.landscape .phone-screen-scroll {
        padding-inline: 12px;
    }
}

body.log-collapsed .right-panel {
    display: none;
}

body.log-expanded .right-panel {
    display: flex;
    width: 384px;
    flex: 0 0 384px;
}

body.log-collapsed .navbar {
    right: 8px;
}

body.log-expanded .navbar {
    right: 400px;
}

body.log-collapsed .integration-doc-float,
body.log-collapsed.device-landscape .integration-doc-float,
body.log-collapsed.device-pc .integration-doc-float {
    right: 20px;
}

body.log-expanded .integration-doc-float,
body.log-expanded.device-landscape .integration-doc-float,
body.log-expanded.device-pc .integration-doc-float {
    right: 408px;
}

@media (max-width: 1180px) {
    body.log-collapsed .navbar,
    body.log-expanded .navbar {
        right: 20px;
    }
}

@media (max-width: 980px) {
    body.log-expanded .right-panel {
        width: 100%;
        flex: 0 0 auto;
        min-height: 360px;
    }

    body.log-collapsed .integration-doc-float,
    body.log-expanded .integration-doc-float,
    body.log-collapsed.device-landscape .integration-doc-float,
    body.log-expanded.device-landscape .integration-doc-float,
    body.log-collapsed.device-pc .integration-doc-float,
    body.log-expanded.device-pc .integration-doc-float {
        right: auto;
    }
}

@media (max-width: 760px) {
    .log-toggle-btn {
        flex: 1 1 120px;
    }
}

/* Final layout guardrails for log panel, floating docs and device chrome. */
.phone-checkout.portrait,
.phone-checkout.landscape {
    position: relative;
    height: calc(100vh - 112px);
    min-height: 620px;
    max-height: none;
    overflow: hidden;
}

.phone-checkout.portrait::before,
.phone-checkout.portrait::after,
.phone-checkout.landscape::before,
.phone-checkout.landscape::after {
    z-index: 120;
    pointer-events: none;
}

.phone-screen-scroll,
.phone-checkout.landscape .phone-screen-scroll {
    position: relative;
    z-index: 1;
    height: 100%;
    overflow: auto;
}

.phone-checkout.landscape {
    width: min(928px, 100%);
    height: min(540px, calc(100vh - 112px));
    min-height: 500px;
}

.device-landscape .left-panel {
    padding-right: 318px;
}

body.log-expanded.device-landscape .left-panel {
    padding-right: 318px;
}

@media (max-width: 1180px) {
    .phone-checkout.portrait,
    .phone-checkout.landscape {
        height: calc(100vh - 112px);
        min-height: 560px;
    }

    .phone-checkout.landscape {
        height: min(520px, calc(100vh - 112px));
        min-height: 460px;
    }
}

@media (max-width: 760px) {
    .phone-checkout.portrait,
    .phone-checkout.landscape,
    .phone-checkout.pc {
        height: calc(100vh - 226px);
        min-height: 560px;
    }
}

/* PayerMax fresh light theme override. */
:root {
    --game-bg: #f6fbff;
    --game-bg-2: #ecf8f7;
    --game-panel: rgba(255, 255, 255, 0.92);
    --game-panel-solid: #ffffff;
    --game-screen: #f8fbff;
    --game-card: #ffffff;
    --game-line: #d9e7f4;
    --game-teal: #00b8a9;
    --game-cyan: #23c7d9;
    --game-blue: #256dff;
    --game-rose: #ff6f8d;
    --game-gold: #f5b53f;
    --game-ink: #13243a;
    --game-ink-strong: #0b1f3a;
    --game-muted: #64748b;
    --game-soft: #eef8ff;
    --game-shadow: 0 26px 70px rgba(31, 96, 148, 0.14);
}

body {
    background:
        radial-gradient(circle at 16% 16%, rgba(0, 184, 169, 0.14), transparent 28%),
        radial-gradient(circle at 82% 10%, rgba(37, 109, 255, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #eefaf7 100%);
    color: var(--game-ink);
}

.left-panel {
    background:
        linear-gradient(90deg, rgba(37, 109, 255, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(0deg, rgba(0, 184, 169, 0.045) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 248, 0.92));
    border-right-color: rgba(37, 109, 255, 0.12);
}

.navbar {
    border-color: rgba(203, 220, 238, 0.86);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 44px rgba(31, 96, 148, 0.12);
    color: var(--game-ink);
}

.home-logo-link {
    border-color: rgba(0, 184, 169, 0.26);
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 184, 169, 0.12);
}

.nav-title span {
    color: #008f84;
}

.nav-title strong {
    color: var(--game-ink-strong);
}

.orientation-toggle {
    border-color: rgba(203, 220, 238, 0.95);
    background: #f3f8ff;
}

.orientation-btn {
    color: #607086;
}

.orientation-btn:hover,
.orientation-btn:focus-visible {
    color: var(--game-blue);
}

.orientation-btn.active {
    background: linear-gradient(135deg, var(--game-blue), var(--game-teal));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 109, 255, 0.20);
}

.card-mode-selector select,
.country-selector select {
    border-color: rgba(203, 220, 238, 0.96);
    background: #ffffff;
    color: var(--game-ink);
    box-shadow: 0 8px 20px rgba(31, 96, 148, 0.08);
}

.card-mode-selector select:hover,
.country-selector select:hover {
    border-color: rgba(0, 184, 169, 0.42);
    background: #f8fcff;
}

.phone-checkout {
    border-width: 4px;
    border-color: #050b14;
    outline-color: rgba(255, 255, 255, 0.44);
    background-clip: padding-box;
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 184, 169, 0.10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow:
        var(--game-shadow),
        0 0 0 2px #101827,
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.phone-checkout::before,
.phone-checkout.landscape::before {
    background:
        radial-gradient(circle at calc(100% - 18px) 50%, #2ff5ce 0 3px, #0f766e 4px 6px, transparent 7px),
        linear-gradient(180deg, #020617, #111827);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 3px 10px rgba(2, 6, 23, 0.28),
        inset -18px 0 14px rgba(47, 245, 206, 0.18);
}

.phone-checkout::after,
.phone-checkout.landscape::after {
    background: rgba(98, 122, 148, 0.24);
}

.phone-checkout.landscape {
    box-shadow:
        var(--game-shadow),
        0 0 0 2px #101827,
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.phone-checkout.pc {
    border-color: rgba(196, 214, 235, 0.86);
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    box-shadow:
        0 28px 70px rgba(31, 96, 148, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.76),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.phone-checkout.pc::before {
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 56px;
    border-radius: 17px 17px 0 0;
    background:
        radial-gradient(circle at 24px 28px, #ff6f8d 0 5px, transparent 6px),
        radial-gradient(circle at 44px 28px, #f5b53f 0 5px, transparent 6px),
        radial-gradient(circle at 64px 28px, #00b8a9 0 5px, transparent 6px),
        linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    box-shadow:
        inset 0 -1px 0 rgba(170, 195, 222, 0.68),
        0 12px 26px rgba(31, 96, 148, 0.08);
    pointer-events: none;
}

.phone-checkout.pc::after {
    top: 15px;
    left: 104px;
    right: 22px;
    z-index: 21;
    height: 26px;
    border-color: rgba(170, 195, 222, 0.76);
    background:
        radial-gradient(circle at 16px 50%, rgba(0, 184, 169, 0.78) 0 4px, transparent 5px),
        linear-gradient(90deg, rgba(0, 184, 169, 0.10), rgba(37, 109, 255, 0.08)),
        #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 8px 18px rgba(31, 96, 148, 0.10);
    pointer-events: none;
}

.phone-checkout.pc .phone-screen-scroll,
.phone-screen-scroll {
    background:
        radial-gradient(circle at 18% 14%, rgba(0, 184, 169, 0.08), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(37, 109, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, #f1f8ff 100%);
}

.phone-checkout.pc .phone-screen-scroll {
    padding-top: 84px;
    background:
        linear-gradient(180deg, #eef6ff 0 56px, rgba(170, 195, 222, 0.68) 56px 57px, transparent 57px),
        radial-gradient(circle at 18% 14%, rgba(0, 184, 169, 0.08), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(37, 109, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #fbfdff 0%, #f1f8ff 100%);
}

.game-statusbar,
.game-status-icons span {
    color: var(--game-ink-strong);
}

.game-status-icons span {
    background: var(--game-ink-strong);
}

.game-store-hero,
.phone-checkout.pc .game-store-hero {
    border-color: rgba(255, 255, 255, 0.62);
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.40), transparent 30%),
        linear-gradient(135deg, #256dff 0%, #00b8a9 100%);
    box-shadow: 0 22px 46px rgba(37, 109, 255, 0.18);
}

.game-store-kicker,
.phone-checkout.pc .game-store-kicker {
    color: rgba(255, 255, 255, 0.82);
}

.game-store-balance {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.20);
}

.section h2::before,
.phone-checkout.landscape .sku-section h2::before {
    background: linear-gradient(90deg, var(--game-teal), var(--game-blue));
    box-shadow: 0 0 0 5px rgba(0, 184, 169, 0.12);
}

.sku-item::before {
    background: rgba(37, 109, 255, 0.10);
    color: #2558c9;
}

.sku-item:hover,
.sku-item:focus-visible,
.token-card-option:hover,
.method-row:hover,
.token-card-option:focus-visible,
.method-row:focus-visible {
    border-color: rgba(0, 184, 169, 0.46);
    box-shadow: 0 14px 28px rgba(0, 184, 169, 0.12);
}

.sku-item.selected,
.token-card-option.selected,
.method-row.selected {
    border-color: var(--game-teal);
    background: linear-gradient(180deg, #ffffff, #f0fbfa);
    box-shadow: 0 0 0 4px rgba(0, 184, 169, 0.13), 0 16px 32px rgba(31, 96, 148, 0.12);
}

.sku-item .price,
.order-amount {
    color: #088f62;
}

.add-card-row,
.card-input-container {
    border-color: rgba(0, 184, 169, 0.24);
    background: linear-gradient(135deg, rgba(0, 184, 169, 0.05), rgba(37, 109, 255, 0.05)), #ffffff;
}

.method-row.selected .method-radio::after,
.token-card-option.selected .token-radio::after {
    background: var(--game-teal);
}

.pay-button,
.modal-button {
    background: linear-gradient(135deg, var(--game-blue), var(--game-teal));
    box-shadow: 0 16px 30px rgba(37, 109, 255, 0.20);
}

.pay-button:hover,
.modal-button:hover,
.pay-button:focus-visible,
.modal-button:focus-visible {
    box-shadow: 0 20px 36px rgba(37, 109, 255, 0.26);
}

@media (max-width: 760px) {
    .phone-checkout.pc {
        border-width: 4px;
        border-color: #050b14;
        outline-color: rgba(255, 255, 255, 0.44);
        box-shadow:
            var(--game-shadow),
            0 0 0 2px #101827,
            inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    .phone-checkout.pc::before {
        background:
            radial-gradient(circle at calc(100% - 18px) 50%, #2ff5ce 0 3px, #0f766e 4px 6px, transparent 7px),
            linear-gradient(180deg, #020617, #111827);
    }

    .phone-checkout.pc::after {
        background: rgba(98, 122, 148, 0.24);
    }
}

.right-panel {
    --game-teal: #2dd4bf;
    --game-blue: #3678ff;
    --game-gold: #f7c948;
}

@media (min-width: 761px) {
    .left-panel,
    .device-landscape .left-panel,
    .device-pc .left-panel,
    body.log-expanded.device-landscape .left-panel {
        padding-top: 144px;
    }

    .phone-checkout.portrait {
        height: calc(100vh - 168px);
        min-height: 500px;
    }

    .phone-checkout.landscape {
        height: min(500px, calc(100vh - 168px));
        min-height: 420px;
    }

    .phone-checkout.pc {
        height: min(720px, calc(100vh - 168px));
        min-height: 500px;
    }
}

/* Main layout polish: center device previews in the left panel and keep result overlays off the log panel. */
.left-panel,
.device-landscape .left-panel,
.device-pc .left-panel,
body.log-expanded.device-landscape .left-panel {
    padding-right: 24px;
    padding-left: 24px;
}

.phone-checkout,
.phone-checkout.portrait,
.phone-checkout.landscape,
.phone-checkout.pc {
    margin-right: auto;
    margin-left: auto;
}

.phone-checkout.pc {
    width: min(1260px, calc(100% - 48px));
}

body[data-log-layout="split"].log-expanded .modal-overlay {
    right: var(--common-log-panel-width, 384px);
}

body[data-log-layout="split"].log-collapsed .modal-overlay {
    right: var(--common-log-rail-width, 60px);
}

@media (max-width: 1180px) {
    .left-panel,
    .device-landscape .left-panel,
    .device-pc .left-panel,
    body.log-expanded.device-landscape .left-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .phone-checkout.pc {
        width: min(100%, calc(100% - 32px));
    }
}

@media (max-width: 980px) {
    body[data-log-layout="split"].log-expanded .modal-overlay,
    body[data-log-layout="split"].log-collapsed .modal-overlay {
        right: 0;
    }
}
