/* ==========================================================================
   Components — Shared styles across pages
   ========================================================================== */

/* ── Auth pages (login, register, forgot-password, reset-password) ── */
.auth-wrap {
    max-width: 420px;
    margin: 1rem auto 0;
}
.auth-logo {
    display: block;
    margin: 0 auto 1.2rem;
    max-height: 56px;
    width: auto;
}
.auth-card {
    background: rgba(14, 18, 14, .52);
    border: 1px solid rgba(203, 194, 155, .25);
    border-radius: 16px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.auth-card h1 {
    margin: 0 0 .2rem;
    font-size: 1.35rem;
    text-align: center;
}
.auth-card .auth-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 1.2rem;
}
.auth-card label {
    display: block;
    font-size: .85rem;
    color: rgba(220,228,211,.75);
    margin-bottom: .1rem;
}
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    margin-bottom: .85rem;
}
.auth-remember {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    font-size: .86rem;
    color: var(--muted);
}
.auth-remember input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.auth-card button[type="submit"] {
    width: 100%;
    margin-top: .4rem;
}
.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: .88rem;
}
.auth-forgot {
    display: block;
    text-align: right;
    font-size: .82rem;
    margin-top: -.5rem;
    margin-bottom: .8rem;
}

/* ── Error pages (404, 500) ── */
.error-page {
    text-align: center;
    display: grid;
    gap: 1rem;
    justify-items: center;
}
.error-page h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3rem);
}
.error-page__image {
    width: min(100%, 560px);
    border-radius: 12px;
    border: 1px solid rgba(203, 194, 155, 0.25);
    box-shadow: var(--shadow);
}

/* ── Language switch ── */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(203, 194, 155, 0.2);
    border-radius: 6px;
    padding: 2px;
}
.lang-switch__btn {
    all: unset;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--muted);
    transition: background 0.15s, color 0.15s;
}
.lang-switch__btn:hover {
    background: rgba(203, 194, 155, 0.12);
    color: var(--khaki);
}
.lang-switch__btn--active {
    background: rgba(203, 194, 155, 0.18);
    color: var(--khaki);
}

/* ── Status pills / badges (shared across bffa, admin, dashboard) ── */
.status-pill {
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}
.status-active { background: rgba(94, 161, 100, .2); border: 1px solid rgba(94, 161, 100, .45); color: #8fcf8f; }
.status-closed { background: rgba(148, 163, 168, .15); border: 1px solid rgba(148, 163, 168, .3); color: var(--steel); }
.status-pending { background: rgba(200, 160, 60, .2); border: 1px solid rgba(200, 160, 60, .4); color: #e8c87a; }

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: .4; }
}
.status-active::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8fcf8f;
    margin-right: .3rem;
    animation: pulseDot 1.5s ease-in-out infinite;
}

/* ── Pulse glow on claimable button ── */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(163, 174, 113, .3); }
    50% { box-shadow: 0 0 20px rgba(163, 174, 113, .6), 0 0 40px rgba(163, 174, 113, .2); }
}

/* ── Shared small buttons ── */
.btn-sm {
    padding: .3rem .65rem;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    border: 1px solid;
    transition: filter .15s, transform .1s;
    white-space: nowrap;
}
.btn-sm:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── Section titles (shared pattern) ── */
.section-label {
    margin: 1.4rem 0 .8rem;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(203,194,155,.72);
}

/* ── Secondary button ── */
.btn-secondary {
    display: inline-block;
    padding: .62rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(203, 194, 155, .45);
    color: #f7f2db;
    background: rgba(203, 194, 155, .12);
    font-weight: 700;
}
.btn-secondary:hover { background: rgba(203, 194, 155, .22); }

/* ── Confirm modal (shared by admin/bffa and admin/bonus-codes) ── */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}
.confirm-overlay.active { display: flex; }
.confirm-box {
    background: rgba(20, 25, 20, .97);
    border: 1px solid rgba(185, 192, 177, .3);
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.confirm-box p {
    margin: 0 0 1.2rem;
    font-size: .95rem;
    color: #f3eccf;
}
.confirm-actions {
    display: flex;
    gap: .6rem;
    justify-content: center;
}

/* ── Ad containers (Google AdSense) ── */
.ad-container {
    margin: 1.2rem auto;
    text-align: center;
    max-width: 728px;
    min-height: 90px;
}
.ad-container--sidebar {
    max-width: 160px;
    min-height: 600px;
}
.ad-container--rectangle {
    max-width: 300px;
    min-height: 250px;
}

/* ── Modal (bc-modal) ── */
.bc-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}
.bc-modal-backdrop.open { display: flex; }
.bc-modal {
    background: rgba(23,31,22,.97);
    border: 1px solid rgba(203,194,155,.28);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    max-width: 360px;
    width: calc(100% - 2rem);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    animation: bcModalIn .18s ease;
}
@keyframes bcModalIn { from { opacity:0; transform:scale(.94) translateY(-6px); } to { opacity:1; transform:none; } }
.bc-modal-icon { font-size: 1.8rem; margin-bottom: .7rem; }
.bc-modal h3 { margin: 0 0 .5rem; font-size: 1rem; color: #f3eccf; }
.bc-modal p  { margin: 0 0 1.2rem; color: #b9c0b1; font-size: .88rem; line-height: 1.5; }
.bc-modal-actions { display: flex; justify-content: flex-end; gap: .6rem; }
.btn-modal-cancel {
    padding: .5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(185,192,177,.3);
    background: rgba(185,192,177,.1);
    color: #b9c0b1;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}
.btn-modal-cancel:hover { background: rgba(185,192,177,.18); }
.btn-modal-confirm {
    padding: .5rem 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(198,75,63,.45);
    background: rgba(198,75,63,.22);
    color: #ffd8d4;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}
.btn-modal-confirm:hover { background: rgba(198,75,63,.32); }
.bc-modal-actions button {
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    border-image: none;
    min-width: auto;
}
