@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700&display=swap');

/* ─────────────────────────────────────────────────
   paywall-style.css  –  Login / Access-Seite
   Designbasis: device-select.css / setup-new.css
   ───────────────────────────────────────────────── */

:root {
    --bg-0:        #07090d;
    --bg-1:        #0b0f14;
    --panel-top:   #2f343b;
    --panel-mid:   #1e2228;
    --panel-bot:   #14181d;
    --border:      rgba(228, 214, 180, 0.20);
    --border-hi:   rgba(228, 214, 180, 0.38);
    --text:        #ece6d7;
    --muted:       #a8a395;
    --accent:      #64d06c;
    --accent-hi:   #8df25f;
    --danger:      #ef5757;
    --radius-lg:   20px;
    --radius-md:   12px;
    --radius-sm:   8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100dvh;
    font-family: 'Orbitron', sans-serif;
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(1200px 520px at 50% -20%, rgba(255, 173, 76, 0.10), transparent 60%),
        radial-gradient(700px  300px at   0% 50%, rgba( 83, 255, 175, 0.10), transparent 70%),
        radial-gradient(700px  300px at 100% 50%, rgba(255,  91,  91, 0.10), transparent 70%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

/* ── Layout shell ──────────────────────────────── */
.pw-shell {
    width: min(960px, calc(100vw - 24px));
    margin: 0 auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 24px;
}

/* ── Metal panel surface ───────────────────────── */
.metal-panel {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
        linear-gradient(180deg, var(--panel-top) 0%, #262b31 16%, var(--panel-mid) 50%, var(--panel-bot) 100%);
    box-shadow:
        inset 0  1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0,   0,   0,   0.50),
        0 12px 26px       rgba(0,   0,   0,   0.42);
}

/* ── Header ────────────────────────────────────── */
.pw-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.pw-header-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    flex-shrink: 0;
}

.pw-header-text h1 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text);
    line-height: 1.2;
}

.pw-header-text p {
    margin-top: 5px;
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

/* ── Main card ─────────────────────────────────── */
.pw-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

/* ── Intro / title area ────────────────────────── */
.pw-card-intro {
    padding: 28px 30px 4px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.pw-card-intro h2 {
    font-size: 1.0rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
    margin-bottom: 8px;
}

.pw-card-intro p {
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    line-height: 1.65;
    margin-bottom: 22px;
}

/* ── Two-column section grid ───────────────────── */
.pw-sections {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    padding: 26px 26px 30px;
    gap: 0;
}

/* ── Individual section panel ──────────────────── */
.pw-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 55%),
        rgba(8, 11, 16, 0.38);
}

.pw-section--premium {
    border-color: rgba(100, 208, 108, 0.28);
    background:
        radial-gradient(circle at 50% 0%, rgba(100, 208, 108, 0.07) 0%, transparent 55%),
        rgba(8, 11, 16, 0.38);
}

/* ── Section label badge ───────────────────────── */
.pw-section-label {
    display: inline-block;
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(100, 208, 108, 0.38);
    background: rgba(100, 208, 108, 0.09);
    margin-bottom: 10px;
}

.pw-section h3 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 6px;
}

.pw-section p {
    font-size: 0.73rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    line-height: 1.65;
}

/* ── PayPal wrapper ────────────────────────────── */
.pw-paypal-wrap {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#paypal-button-container {
    width: 100%;
}

/* ── Vertical OR divider ───────────────────────── */
.pw-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    align-self: stretch;
    gap: 8px;
}

.pw-divider::before,
.pw-divider::after {
    content: '';
    flex: 1;
    width: 1px;
    background: var(--border);
    display: block;
}

.pw-divider span {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--muted);
    opacity: 0.70;
}

/* ── Access code form ──────────────────────────── */
.pw-code-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pw-code-form input[type="text"] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 11, 16, 0.78);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
}

.pw-code-form input[type="text"]::placeholder {
    text-transform: none;
    color: var(--muted);
    opacity: 0.60;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
}

.pw-code-form input[type="text"]:focus {
    border-color: rgba(100, 208, 108, 0.55);
    box-shadow: 0 0 0 3px rgba(100, 208, 108, 0.12);
}

.pw-code-form button {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(87, 174, 77, 0.75);
    background: linear-gradient(180deg, #9dea7c 0%, #74d84f 52%, #56b73a 100%);
    color: #0e2b0e;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: opacity 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.pw-code-form button:hover {
    opacity: 0.90;
    box-shadow: 0 4px 18px rgba(100, 208, 108, 0.28);
}

.pw-code-form button:active {
    transform: scale(0.974);
    opacity: 0.80;
    transition-duration: 0.07s;
}

/* ── Error / info message ──────────────────────── */
#code-message {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    background: rgba(239, 87, 87, 0.10);
    border: 1px solid rgba(239, 87, 87, 0.28);
    color: #f08080 !important;  /* override inline style */
    line-height: 1.5;
}

/* ── Access-code display panel (post-payment) ──── */
#access-code-display {
    margin: 0 26px 28px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(100, 208, 108, 0.38);
    background:
        radial-gradient(circle at 50% 0%, rgba(100, 208, 108, 0.07) 0%, transparent 55%),
        rgba(8, 11, 16, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#access-code-display p {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

#generated-access-code {
    display: block;
    margin-top: 6px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
}

#access-code-display button {
    min-height: 48px;
    padding: 0 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(87, 174, 77, 0.75);
    background: linear-gradient(180deg, #9dea7c 0%, #74d84f 52%, #56b73a 100%);
    color: #0e2b0e;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.14s ease;
    -webkit-tap-highlight-color: transparent;
}

#access-code-display button:hover  { opacity: 0.90; }
#access-code-display button:active { transform: scale(0.975); }

/* ── Ausgewählter Pass (pw-product-wrap) ───────── */
.pw-product-wrap {
    padding: 22px 30px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(100, 208, 108, 0.05) 0%, transparent 60%),
        transparent;
}

.pw-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pw-product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-product-name {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.3;
}

.pw-product-price {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--accent);
    line-height: 1.1;
}

/* Jetzt-kaufen-Button */
.pw-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(87, 174, 77, 0.75);
    background: linear-gradient(180deg, #9dea7c 0%, #74d84f 52%, #56b73a 100%);
    color: #0e2b0e;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.pw-checkout-btn:hover {
    opacity: 0.90;
    box-shadow: 0 4px 18px rgba(100, 208, 108, 0.30);
}
.pw-checkout-btn:active {
    transform: scale(0.975);
    opacity: 0.80;
    transition-duration: 0.07s;
}

/* Feature-Liste */
.pw-product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-product-features li {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.pw-product-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* Hinweis-Box */
.pw-product-note {
    font-size: 0.70rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    line-height: 1.75;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(100, 208, 108, 0.05);
    border: 1px solid rgba(100, 208, 108, 0.18);
}

/* ── Footer ────────────────────────────────────── */
.pw-footer {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.pw-footer-brand {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.75;
}

.pw-footer-hint {
    font-size: 0.63rem;
    color: var(--muted);
    opacity: 0.45;
    letter-spacing: 0.04em;
}

/* ── Responsive: tablet / phone ────────────────── */
@media (max-width: 680px) {
    .pw-sections {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 18px 18px 22px;
    }

    .pw-divider {
        flex-direction: row;
        padding: 16px 0;
        align-self: auto;
        gap: 12px;
    }

    .pw-divider::before,
    .pw-divider::after {
        flex: 1;
        width: auto;
        height: 1px;
    }

    .pw-card-intro {
        padding: 22px 20px 4px;
    }

    #access-code-display {
        margin: 0 18px 20px;
    }

    .pw-product-wrap {
        padding: 18px 18px 16px;
    }

    .pw-product-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pw-checkout-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .pw-shell {
        width: calc(100vw - 12px);
        padding: 6px 0 16px;
        gap: 7px;
    }

    .pw-header {
        padding: 13px 16px;
    }

    .pw-header-text h1 {
        font-size: 1.0rem;
    }

    .pw-section {
        padding: 18px 16px;
    }

    .pw-sections {
        padding: 14px 14px 18px;
    }
}

/* ── Tight landscape phone ─────────────────────── */
@media (orientation: landscape) and (max-height: 500px) {
    .pw-card-intro {
        padding: 14px 24px 4px;
    }

    .pw-card-intro p {
        display: none;
    }

    .pw-sections {
        padding: 16px 22px 18px;
    }
}