
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app { display: flex; flex-direction: column; min-height: 100vh; }


.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 10, 6, .88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding-block: .85rem;
}

.app-header__nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.app-header__nav a:not(.btn):hover { color: var(--gold); }


@media (max-width: 640px) {
    .app-header .brand__tag { display: none; }
}

@media (max-width: 400px) {
    .app-header__nav a:not(.btn) { display: none; }
}


.demo-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: .6rem var(--space-3);
    background: #1b1208;
    border-bottom: 1px dashed var(--border);
    font-size: .8rem;
    color: var(--text-muted);
}

.demo-bar a {
    padding: .25rem .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.demo-bar a.is-active { background: var(--gold); color: #2a1a08; border-color: var(--gold); }


.app-main {
    flex: 1;
    padding: var(--space-4) var(--space-2) var(--space-5);
    background:
        radial-gradient(ellipse at 50% -10%, rgba(212, 175, 124, .10), transparent 60%),
        var(--bg);
}

.ap-card {
    max-width: 640px;
    margin-inline: auto;
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.ap-card--narrow { max-width: 460px; }

@media (min-width: 720px) {
    .ap-card { padding: var(--space-4); }
}

.ap-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 .6rem;
}

.ap-lead {
    margin: 0 0 var(--space-3);
    color: var(--text-muted);
    font-size: .98rem;
    line-height: 1.7;
}

.ap-lead strong { color: var(--text); word-break: break-all; }

.ap-note {
    margin: var(--space-2) 0 0;
    font-size: .82rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.ap-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: .88rem;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ap-link:hover { color: var(--text); }

.ap-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
}

.ap-icon svg { width: 30px; height: 30px; }

.ap-hints {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: var(--space-2) 0 0;
    border-top: 1px solid var(--border-soft);
    font-size: .85rem;
    color: var(--text-muted);
}

.ap-hints li { padding: .25rem 0 .25rem 1.4rem; position: relative; }
.ap-hints li::before { content: "•"; position: absolute; left: .3rem; color: var(--gold); }

.ap-actions { display: grid; gap: var(--space-2); justify-items: center; }
.ap-actions .btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }


.ap-alert {
    margin-bottom: var(--space-3);
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    font-size: .9rem;
    line-height: 1.55;
}

.ap-alert--err { color: #f0c4bb; background: rgba(201, 106, 90, .12); border: 1px solid rgba(201, 106, 90, .5); }
.ap-alert--ok  { color: var(--text); background: rgba(212, 175, 124, .12); border: 1px solid rgba(212, 175, 124, .45); }

.ap-error { margin: .5rem 0 0; font-size: .82rem; color: #e0897a; }


.ap-form { display: grid; gap: var(--space-3); }

.ap-field { display: grid; gap: .45rem; }
.ap-field label { font-size: .85rem; font-weight: 500; }

.ap-field input[type="email"],
.ap-field input[type="text"],
.ap-field textarea {
    width: 100%;
    padding: .9rem 1rem;
    font: inherit;
    font-size: 1rem; 
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ap-field textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.ap-field input:focus,
.ap-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 124, .18);
}

.ap-counter { margin: 0; text-align: right; font-size: .75rem; color: var(--text-muted); }

.ap-check label {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--text-muted);
    cursor: pointer;
}

.ap-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--gold); }
.ap-check a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }


.ap-step { border: 0; margin: 0; padding: 0; min-width: 0; }

.ap-step legend {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 0;
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.ap-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: .9rem;
    font-weight: 500;
}


.ap-drop {
    position: relative;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    transition: border-color .2s ease, background .2s ease;
}

.ap-drop:hover, .ap-drop.is-over { border-color: var(--gold); background: rgba(212, 175, 124, .05); }
.ap-drop.has-error { border-color: #c96a5a; }

.ap-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ap-drop__label {
    display: grid;
    justify-items: center;
    gap: .35rem;
    padding: var(--space-4) var(--space-2);
    text-align: center;
    color: var(--gold);
    pointer-events: none;
}

.ap-drop__main { color: var(--text); font-size: .95rem; font-weight: 500; }
.ap-drop__sub  { color: var(--text-muted); font-size: .8rem; }

.ap-preview {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
}

.ap-preview[hidden] { display: none; }

.ap-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.ap-preview__name { margin: 0 0 .3rem; font-size: .88rem; word-break: break-all; }

.ap-drop.has-file input[type="file"] { pointer-events: none; }
.ap-drop.has-file .ap-drop__label { display: none; }

.ap-tips {
    list-style: none;
    margin: var(--space-2) 0 0;
    padding: 0;
    font-size: .82rem;
    color: var(--text-muted);
}

.ap-tips li { padding: .15rem 0 .15rem 1.4rem; position: relative; }
.ap-tips li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }


.ap-plans { display: grid; gap: .6rem; }

.ap-plan { display: block; cursor: pointer; }
.ap-plan input { position: absolute; opacity: 0; pointer-events: none; }

.ap-plan__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: .9rem 1rem .9rem 2.9rem;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s ease, background .2s ease;
}

.ap-plan__body::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    border: 1.5px solid var(--text-muted);
    border-radius: 50%;
}

.ap-plan input:checked + .ap-plan__body { border-color: var(--gold); background: rgba(212, 175, 124, .07); }
.ap-plan input:checked + .ap-plan__body::before { border-color: var(--gold); background: radial-gradient(var(--gold) 45%, transparent 50%); }
.ap-plan input:focus-visible + .ap-plan__body { outline: 2px solid var(--gold); outline-offset: 2px; }

.ap-plan__text { display: grid; gap: .1rem; }
.ap-plan__name { font-weight: 600; font-size: .95rem; }
.ap-plan__desc { font-size: .8rem; color: var(--text-muted); }
.ap-plan__price { font-family: var(--font-heading); font-weight: 600; white-space: nowrap; text-align: right; }
.ap-eur { display: block; font-family: var(--font-body, inherit); font-weight: 400; font-size: .72rem; color: var(--text-muted); margin-top: 2px; }


.app-footer { border-top: 1px solid var(--border-soft); background: #0a0703; }

.app-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: var(--space-3);
    font-size: .8rem;
    color: var(--text-muted);
}

.app-footer__inner p { margin: 0; }
.app-footer__inner nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.app-footer__inner a:hover { color: var(--gold); }



.ap-center { text-align: center; }
.ap-center .ap-actions { margin-top: var(--space-3); }


.ap-icon--ok  { color: #9fd3a6; border-color: #9fd3a6; }
.ap-icon--err { color: #e0897a; border-color: #e0897a; }


.ap-spinner {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto var(--space-3);
    display: grid;
    place-items: center;
    color: var(--gold);
}

.ap-spinner::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: ap-spin 1.2s linear infinite;
}

.ap-spinner svg { width: 40px; height: 40px; }

@keyframes ap-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .ap-spinner::before { animation: none; }
}


.ap-progress {
    list-style: none;
    margin: var(--space-3) auto 0;
    padding: 0;
    display: grid;
    gap: .7rem;
    max-width: 300px;
    text-align: left;
}

.ap-progress li {
    position: relative;
    padding-left: 1.9rem;
    font-size: .9rem;
    color: var(--text-muted);
    transition: color .3s ease;
}

.ap-progress li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3rem;
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
}

.ap-progress li.is-active { color: var(--text); }
.ap-progress li.is-active::before {
    border-color: var(--gold);
    background: radial-gradient(var(--gold) 40%, transparent 45%);
}

.ap-progress li.is-done { color: var(--text); }
.ap-progress li.is-done::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 15px;
    height: 15px;
    top: .3rem;
    font-size: .6rem;
    font-weight: 700;
    color: #2a1a08;
    background: var(--gold);
    border-color: var(--gold);
}


.ap-qbox {
    margin: 0 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
}

.ap-qbox__label {
    display: block;
    margin-bottom: .25rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

.ap-qbox p { margin: 0; font-size: 1rem; line-height: 1.6; }

.ap-reading p {
    margin: 0 0 var(--space-2);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}


.ap-locked {
    position: relative;
    margin-top: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
}

.ap-locked__body {
    padding: var(--space-3);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.ap-locked__body p { margin: 0 0 var(--space-2); }

.ap-locked__cta {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: var(--space-3);
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 10, 6, .55), rgba(15, 10, 6, .9));
}

.ap-locked__cta .ap-icon { width: 52px; height: 52px; margin-bottom: 0; }
.ap-locked__cta .ap-icon svg { width: 24px; height: 24px; }

.ap-locked__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
}

.ap-locked__cta .ap-tips { margin: 0 0 .4rem; text-align: left; }


@media (max-width: 560px) {
    .ap-locked__body { max-height: 90px; overflow: hidden; }
    .ap-locked__cta { position: static; background: none; padding-top: var(--space-2); }
    .ap-locked { background: var(--bg); }
}


.ap-plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.ap-plan__badge {
    padding: .1rem .55rem;
    background: var(--gold);
    color: #2a1a08;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ap-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: .92rem;
}

.ap-summary strong { text-align: right;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}


.ap-facts {
    margin: 0 0 var(--space-2);
    padding: var(--space-2) var(--space-3);
    display: grid;
    gap: .6rem;
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ap-facts div { display: flex; justify-content: space-between; gap: var(--space-2); font-size: .92rem; }
.ap-facts dt { color: var(--text-muted); }
.ap-facts dd { margin: 0; font-weight: 500; text-align: right; }



.ap-card--wide { max-width: 760px; }

.ap-acc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.ap-acc-head .ap-title { margin-bottom: .3rem; }
.ap-acc-mail { margin: 0; color: var(--text-muted); font-size: .92rem; word-break: break-all; }

.ap-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: .2rem .7rem;
    background: rgba(212, 175, 124, .15);
    border: 1px solid rgba(212, 175, 124, .45);
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--gold);
}

.ap-badge--muted {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}


.ap-pack {
    padding: var(--space-3);
    display: grid;
    gap: var(--space-2);
    background: linear-gradient(180deg, var(--surface-2), var(--bg));
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
}

.ap-pack.is-expired { border-color: var(--border); }

.ap-pack__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }

.ap-pack__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
}

.ap-pack__text { margin: 0; color: var(--text-muted); font-size: .94rem; line-height: 1.7; }


.ap-meter {
    height: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.ap-meter__fill {
    display: block;
    height: 100%;
    background: var(--gold);
    border-radius: var(--radius-pill);
}

.ap-pack.is-expired .ap-meter__fill { background: var(--text-muted); }

.ap-stats {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
}

@media (min-width: 560px) {
    .ap-stats { grid-template-columns: repeat(3, 1fr); }
}

.ap-stats div { display: grid; gap: .1rem; }
.ap-stats dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ap-stats dd { margin: 0; font-weight: 500; font-size: .98rem; }


.ap-section {
    margin: var(--space-4) 0 var(--space-2);
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
}


.ap-history { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }

.ap-history__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: .9rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .2s ease;
}

.ap-history__item:hover { border-color: var(--gold); }

.ap-history__main { display: grid; gap: .15rem; min-width: 0; }
.ap-history__q { font-size: .95rem; line-height: 1.45; }
.ap-history__meta { font-size: .78rem; color: var(--text-muted); }


.ap-note--left { text-align: left; margin: 0 0 var(--space-2); }
.ap-note--left a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.ap-link--danger { color: #e0897a; }



.lang-menu { position: relative; }

.lang-menu summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text);
    transition: border-color .2s ease, color .2s ease;
}

.lang-menu summary::-webkit-details-marker { display: none; }

.lang-menu summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.lang-menu[open] summary,
.lang-menu summary:hover { border-color: var(--gold); color: var(--gold); }

.lang-menu__list {
    position: absolute;
    right: 0;
    top: calc(100% + .4rem);
    z-index: 60;
    min-width: 140px;
    display: grid;
    padding: .35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

.lang-menu__list a {
    padding: .55rem .75rem;
    border-radius: 10px;
    font-size: .88rem;
    color: var(--text-muted);
}

.lang-menu__list a:hover { color: var(--gold); background: rgba(212, 175, 124, .08); }
.lang-menu__list a[aria-current="true"] { color: var(--gold); }

@media (max-width: 480px) {
    .app-header__help { display: none; }
    .app-header__nav { gap: .6rem; }
}


.ap-hint { margin: 0; font-size: .8rem; color: var(--text-muted); line-height: 1.5; }