:root {
    --qa30-gold: #b4862d;
    --qa30-gold-dark: #8d6419;
    --qa30-gold-light: #d6b56c;
    --qa30-cream: #fffaf0;
    --qa30-ink: #17130d;
}

.qa30-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 13, 8, .66);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.qa30-overlay.qa30-open { display: flex; }

.qa30-popup {
    position: relative;
    width: min(460px, calc(100vw - 30px));
    padding: 34px 30px 27px;
    overflow: hidden;
    border: 1px solid rgba(180, 134, 45, .45);
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% -20%, rgba(214,181,108,.28), transparent 42%),
        linear-gradient(145deg, #fffdf8 0%, #f8eedc 100%);
    box-shadow: 0 24px 70px rgba(0,0,0,.32);
    color: var(--qa30-ink);
    text-align: center;
    animation: qa30In .26s ease-out both;
}

.qa30-popup::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--qa30-gold-dark), var(--qa30-gold-light), var(--qa30-gold-dark));
}

.qa30-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(180,134,45,.38);
    border-radius: 50%;
    background: rgba(255,255,255,.8);
    color: var(--qa30-ink);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}
.qa30-close:hover { background: var(--qa30-gold); color: #fff; border-color: var(--qa30-gold); }

.qa30-kicker {
    margin-bottom: 14px;
    color: var(--qa30-gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .17em;
}

.qa30-badge {
    width: 118px;
    height: 118px;
    margin: 0 auto 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff5dc;
    border-radius: 50%;
    background: linear-gradient(145deg, #c99a3b, #8d6419);
    box-shadow: 0 10px 28px rgba(141,100,25,.28), inset 0 0 0 5px rgba(255,255,255,.13);
    color: #fff;
}
.qa30-badge span { font-size: 42px; font-weight: 900; line-height: .95; }
.qa30-badge small { margin-top: 7px; font-size: 14px; font-weight: 800; letter-spacing: .16em; }

.qa30-popup h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.08;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
}

.qa30-copy {
    margin: 0 auto;
    max-width: 360px;
    color: #574d3d;
    font-size: 15px;
    line-height: 1.65;
}
.qa30-copy strong { color: var(--qa30-gold-dark); }

.qa30-rule {
    width: 72px;
    height: 2px;
    margin: 21px auto;
    background: linear-gradient(90deg, transparent, var(--qa30-gold), transparent);
}

.qa30-claim {
    width: 100%;
    min-height: 62px;
    padding: 12px 22px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #c99a3b 0%, #a97820 55%, #8d6419 100%);
    box-shadow: 0 8px 20px rgba(141,100,25,.28);
    color: #fff;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.qa30-claim:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(141,100,25,.34); filter: brightness(1.04); }
.qa30-claim:disabled { opacity: .65; cursor: wait; transform: none; }
.qa30-claim-main { display: block; font-size: 17px; font-weight: 900; letter-spacing: .04em; }
.qa30-claim-sub { display: block; margin-top: 3px; font-size: 11px; opacity: .88; }

.qa30-note {
    margin: 13px 0 0;
    color: #7a6b55;
    font-size: 11px;
    line-height: 1.45;
}

.qa30-message { min-height: 0; margin-top: 10px; font-size: 13px; font-weight: 700; }
.qa30-message.qa30-success { color: #216e39; }
.qa30-message.qa30-error { color: #a72626; }

body.qa30-lock { overflow: hidden !important; }

@keyframes qa30In {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .qa30-overlay { padding: 12px; }
    .qa30-popup { padding: 30px 20px 22px; border-radius: 15px; }
    .qa30-badge { width: 104px; height: 104px; }
    .qa30-badge span { font-size: 37px; }
    .qa30-popup h2 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
    .qa30-popup, .qa30-claim, .qa30-close { animation: none !important; transition: none !important; }
}
