/* Variables & global settings */
:root {
    --bg-dark: #0f1115;
    --bg-card: #161920;
    --gold-primary: #c4a065;
    --gold-light: #e6c589;
    --gold-dark: #8f7241;
    --text-main: #e0e0e0;
    --text-muted: #848a96;
    --border: #2a2e38;
    --success: #4caf50;
    --danger: #f44336;
}

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

/* Avoids a white flash behind the body during the page fade */
html {
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    background-image: radial-gradient(circle at 50% 0%, #1b1e26 0%, #0f1115 60%);
    overflow-x: hidden;
    animation: fadeInPage 0.5s ease-out forwards;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-dark);
}

/* Custom scrollbar (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

h1, h2, h3, .logo-text, .btn {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.text-gold { color: var(--gold-primary); }
.text-center { text-align: center !important; }

/* Buttons */
.btn {
    padding: 15px 40px; border-radius: 4px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #111; border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(196, 160, 101, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(196, 160, 101, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent; color: var(--gold-primary); border-color: var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(196, 160, 101, 0.1); color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(196, 160, 101, 0.4);
}

.btn-block { width: 100%; padding: 15px; font-size: 1rem; }
.btn-glow { box-shadow: 0 0 20px rgba(196, 160, 101, 0.4); }
.btn-glow:hover { box-shadow: 0 0 30px rgba(196, 160, 101, 0.6); }

/* Forms & inputs */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: var(--text-muted); margin-bottom: 8px; font-size: 0.85rem; letter-spacing: 1px; }

.input-field {
    width: 100%;
    padding: 12px;
    background: #0b0d10;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(196, 160, 101, 0.1);
}

.input-field:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border-style: dashed;
    cursor: not-allowed;
    opacity: 0.7;
}

/* User panel layout */
.page-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../../img/bg-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 30px 0;
}

.panel-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15,17,21,0.9);
    z-index: 1;
}

.panel-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

/* Logged-in panel uses the same width as the site containers */
.panel-wrapper.panel-wrapper-wide {
    max-width: 1200px;
}

.panel-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: rgba(22, 25, 32, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    min-height: 500px;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold-primary);
}

.panel-card.panel-card-wide {
    min-height: 600px;
}

/* Left sidebar */
.panel-sidebar {
    background: linear-gradient(180deg, #121419 0%, #0b0d10 100%);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo { text-align: center; margin-bottom: 40px; }
.sidebar-logo img { max-width: 120px; filter: drop-shadow(0 0 10px rgba(196, 160, 101, 0.3)); }

.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #0b0d10;
    border: 1px solid var(--gold-primary);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(196, 160, 101, 0.4);
}
.sidebar-user-left { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.sidebar-user i.fa-circle-user { font-size: 1.8rem; color: var(--gold-primary); }
.sidebar-user-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.sidebar-user-info strong { color: #fff; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { color: var(--gold-primary); font-size: 0.75rem; font-weight: bold; display: flex; align-items: center; gap: 5px; }
.sidebar-user-info span i.fa-coins { color: var(--gold-primary); }

.sidebar-user-add {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 160, 101, 0.15);
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 0.8rem;
    transition: 0.3s;
}
.sidebar-user-add:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 12px rgba(196, 160, 101, 0.5);
}

.panel-nav { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.panel-nav a {
    padding: 12px 15px; border-radius: 6px; color: var(--text-muted);
    font-size: 0.9rem; font-weight: 500; transition: 0.3s;
    display: flex; align-items: center; gap: 12px;
}
.panel-nav a:hover, .panel-nav a.active {
    background: rgba(196, 160, 101, 0.1); color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}
.panel-nav a i { width: 20px; text-align: center; }

.nav-group { display: flex; flex-direction: column; }

.nav-group-toggle {
    padding: 12px 15px; border-radius: 6px; color: var(--text-muted);
    font-size: 0.9rem; font-weight: 500; transition: 0.3s;
    display: flex; align-items: center; gap: 12px;
    background: none; border: none; cursor: pointer; width: 100%;
    text-align: left; font-family: inherit;
}
.nav-group-toggle i:first-child { width: 20px; text-align: center; }
.nav-group-toggle span { flex-grow: 1; }
.nav-group-toggle:hover {
    background: rgba(196, 160, 101, 0.1); color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}
.nav-group-toggle.active {
    background: rgba(196, 160, 101, 0.1); color: var(--gold-primary);
}
.nav-group-arrow { font-size: 0.75rem; transition: transform 0.3s; }
.nav-group.open .nav-group-arrow { transform: rotate(180deg); }

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    transition: max-height 0.3s ease;
}
.nav-group.open .nav-submenu { max-height: 300px; }

.nav-submenu a {
    padding: 10px 15px 10px 42px; border-radius: 6px; color: var(--text-muted);
    font-size: 0.85rem; font-weight: 500; transition: 0.3s;
    display: flex; align-items: center; gap: 10px;
}
.nav-submenu a:hover {
    background: rgba(196, 160, 101, 0.1); color: var(--gold-primary);
}
.nav-submenu a.active {
    background: rgba(196, 160, 101, 0.1); color: var(--gold-primary);
}
.nav-submenu a i { width: 16px; text-align: center; font-size: 0.8rem; }

.server-status-mini {
    margin-top: auto; background: #000; padding: 15px; border-radius: 6px;
    text-align: center; border: 1px solid var(--border);
}
.server-status-mini small { display: block; color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }

.status-online {
    color: var(--success) !important; text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 1.1rem; font-weight: 700; font-family: 'Cinzel', serif;
}
.status-online i { font-size: 0.8rem; }

/* Right content */
.panel-content {
    padding: 40px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.panel-content::-webkit-scrollbar { width: 6px; }
.panel-content::-webkit-scrollbar-track { background: transparent; }
.panel-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.panel-content::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

.login-header { margin-bottom: 30px; text-align: center; }
.login-header h2 { font-size: 1.8rem; color: #fff; margin-bottom: 5px; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }
.login-logo-mobile { display: none; }

.panel-form label { font-size: 0.75rem; font-weight: bold; color: var(--gold-primary); }
.forgot-link { display: block; text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.forgot-link:hover { color: #fff; text-decoration: underline; }

/* Password recovery / extra details */
.icon-large-circle {
    width: 80px; height: 80px; background: rgba(196, 160, 101, 0.1);
    border: 1px solid var(--gold-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px auto; font-size: 2rem; box-shadow: 0 0 20px rgba(196, 160, 101, 0.2);
}

.alert-box {
    background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--text-muted);
    padding: 15px; border-radius: 4px; margin-bottom: 25px;
    display: flex; align-items: flex-start; gap: 15px; font-size: 0.85rem; color: #ccc; line-height: 1.5;
}
.alert-box i { color: var(--gold-primary); font-size: 1.1rem; margin-top: 2px; }

.back-link-simple { color: var(--text-muted); font-size: 0.85rem; transition: 0.3s; }
.back-link-simple:hover { color: var(--gold-primary); text-decoration: none; }

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(196, 160, 101, 0.3);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 999;
}
.sidebar-backdrop.open { display: block; }

/* Responsive (mobile) */
@media (max-width: 768px) {
    .page-panel {
        background-image: url('../../../img/bg-hero-mobile.png');
        background-position: center top;
        background-attachment: scroll;
    }
    .page-panel {
        padding-top: 70px !important;
        padding-bottom: 20px;
    }
    .panel-wrapper {
        width: 95% !important;
        max-width: 400px !important;
        padding: 0;
    }
    .panel-card {
        display: flex !important;
        flex-direction: column;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        backdrop-filter: none !important;
    }
    .sidebar-toggle { display: flex; }
    .panel-sidebar {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 260px;
        max-width: 80vw;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 0 30px rgba(0,0,0,0.8);
    }
    .panel-sidebar.open { transform: translateX(0); }
    .panel-content { padding: 30px 20px !important; padding-top: 60px !important; justify-content: flex-start !important; }
    /* The login page nests one .panel-content inside another; without this the menu button offset is applied twice */
    .panel-content .panel-content { padding-top: 10px !important; }
    .login-logo-mobile { display: block; max-width: 180px; margin: 0 auto 20px; filter: drop-shadow(0 0 10px rgba(196, 160, 101, 0.3)); }
    .login-header h2 { font-size: 1.4rem !important; }
    .login-header p { font-size: 0.8rem !important; margin-bottom: 20px; }
    .input-field { padding: 10px !important; font-size: 0.9rem !important; }
    .btn-block { padding: 12px !important; font-size: 0.9rem !important; margin-top: 10px; }
    .donate-row { grid-template-columns: 1fr !important; }
}

/* Page transitions */
@keyframes fadeInPage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body.fade-out {
    animation: fadeOutPage 0.4s ease-in forwards;
    pointer-events: none;
}

@keyframes fadeOutPage {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Alerts & modals */
.rmsg {
    display: block; width: 100%; margin: 0 auto 20px auto; padding: 15px;
    border-radius: 4px; text-align: center; font-size: 0.9rem;
    background: rgba(76, 175, 80, 0.1); border-left: 3px solid var(--success); color: #fff;
}
.rmsg.error { background: rgba(244, 67, 54, 0.1) !important; border-left-color: var(--danger) !important; }
.rmsg.warn { background: rgba(255, 193, 7, 0.1) !important; border-left-color: #ffc107 !important; color: #fff !important; }

/* Submit button locked after success */
.btn.sucesso, input.default.sucesso {
    background: var(--success) !important; border-color: var(--success) !important;
    color: #fff !important; box-shadow: 0 0 20px rgba(76, 175, 80, 0.4) !important; pointer-events: none;
}

/* Keeps reCAPTCHA from breaking the mobile layout */
@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Dashboard */
.dash-section {
    margin-bottom: 35px;
}

.dash-subtitle {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.dash-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 15px;
    text-align: center;
    border-radius: 6px;
    transition: 0.3s;
}
.dash-box:hover { border-color: var(--gold-primary); }
.dash-box span { display: block; font-size: 0.7rem; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 1px; }
.dash-box strong { display: block; font-size: 1.1rem; color: var(--gold-primary); font-family: 'Cinzel', serif; }

.dash-table-wrap { overflow-x: auto; border-radius: 6px; border: 1px solid var(--border); }
.dash-table { width: 100%; border-collapse: collapse; min-width: 480px; background: #0b0d10; }
.dash-table th {
    background: #0b0d10; color: var(--gold-primary); padding: 12px 15px;
    text-align: center; text-transform: uppercase; font-size: 0.75rem;
    border-bottom: 2px solid var(--border); font-family: 'Cinzel', serif;
}
.dash-table td { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; color: var(--text-main); text-align: center; }
.dash-table tr:last-child td { border-bottom: none; }

/* Phones: each table row becomes a card (labels come from the header, see main.js) */
@media (max-width: 600px) {
    .dash-table-wrap { border: none; overflow: visible; }
    .dash-table { min-width: 0; background: transparent; }
    .dash-table thead { display: none; }
    .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
    .dash-table tbody tr, .dash-table tbody tr:nth-child(even) {
        background: #0b0d10; border: 1px solid var(--border); border-radius: 8px;
        margin-bottom: 10px; padding: 6px 12px;
    }
    .dash-table td {
        display: flex; justify-content: space-between; align-items: center; gap: 12px;
        padding: 8px 0; text-align: right;
    }
    .dash-table tr td:last-child { border-bottom: none; }
    .dash-table td[data-label]::before {
        content: attr(data-label); flex-shrink: 0; text-align: left;
        color: var(--gold-primary); font-family: 'Cinzel', serif; font-size: 0.7rem; text-transform: uppercase;
    }
    .dash-table td .cell-v br { display: none; }
    .dash-table td[colspan] { justify-content: center; text-align: center; }
    .dash-table td[colspan]::before { display: none; }
}
.dash-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.dash-table tbody tr:hover { background: rgba(196, 160, 101, 0.08); }

.status-link {
    color: var(--gold-primary);
    text-decoration: underline;
    font-weight: bold;
    transition: 0.3s;
}
.status-link:hover {
    color: var(--gold-light);
}

/* Order invoice */
.invoice-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.invoice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(196, 160, 101, 0.06);
    border-bottom: 1px solid var(--border);
}

.invoice-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(196, 160, 101, 0.1);
    border: 1px solid var(--gold-primary);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.invoice-header-info { flex-grow: 1; overflow: hidden; }
.invoice-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.invoice-protocol { font-size: 1.2rem; color: #fff; font-family: 'Cinzel', serif; }

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.status-badge-pending { background: rgba(230, 162, 60, 0.15); color: #e6a23c; border: 1px solid #e6a23c; }
.status-badge-paid { background: rgba(196, 160, 101, 0.15); color: var(--gold-primary); border: 1px solid var(--gold-primary); }
.status-badge-delivered { background: rgba(76, 175, 80, 0.15); color: var(--success); border: 1px solid var(--success); }
.status-badge-cancelled { background: rgba(244, 67, 54, 0.15); color: var(--danger); border: 1px solid var(--danger); }

.invoice-body { padding: 20px; }

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.invoice-row strong { color: #fff; font-weight: 600; }
.invoice-row-bonus strong { color: var(--success); }
.invoice-row-total strong { color: var(--gold-light); font-size: 1.5rem; font-family: 'Cinzel', serif; text-shadow: 0 0 12px rgba(196, 160, 101, 0.4); }

.invoice-divider { height: 1px; background: var(--border); margin: 5px 0; }

.payment-method-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.payment-method-label strong { color: var(--gold-primary); }

/* Register form */
.login-row {
    display: grid; grid-template-columns: 2fr 1fr; gap: 15px;
}

.donate-row {
    display: grid;
    grid-template-columns: 1fr 1fr 210px;
    gap: 15px;
    align-items: start;
    margin-bottom: 25px;
}

.dash-box-total span {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}
#valor_symbol {
    display: inline;
}
#bonus {
    display: inline;
    color: var(--gold-primary);
    font-size: 1.05rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(196, 160, 101, 0.4);
}
.bonus-label {
    color: var(--text-muted);
    font-weight: normal;
}
.dash-box-total strong {
    font-size: 2.2rem;
    color: var(--gold-light);
    text-shadow: 0 0 15px rgba(196, 160, 101, 0.5);
}

.terms-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}
.terms-box-title { display: block; color: #fff; margin-bottom: 10px; font-size: 0.9rem; }
.terms-box-content {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-right: 10px;
}
.terms-box-content::-webkit-scrollbar { width: 6px; }
.terms-box-content::-webkit-scrollbar-track { background: transparent; }
.terms-box-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.terms-box-content::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

select.input-field {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c4a065%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 10px auto;
}

.final-login-preview {
    text-align: center; margin-top: 10px; font-size: 0.9rem;
    color: var(--gold-primary); font-weight: bold;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 22px;
    width: 22px;
    margin: 0;
}

.custom-checkbox .checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    background-color: #0b0d10;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(196, 160, 101, 0.2);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(196, 160, 101, 0.4);
}

.custom-checkbox .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #000;
    font-size: 13px;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
    animation: zoomIn 0.2s ease-out forwards;
}

.custom-checkbox .checkbox-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.3s;
}

.custom-checkbox .checkbox-text a {
    color: var(--gold-primary);
    font-weight: bold;
}

.custom-checkbox .checkbox-text a:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes zoomIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Store: promotions, purchase type and full pack */
.shop-promo {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px 18px;
    border: 1px solid var(--gold-primary); border-radius: 10px;
    background: linear-gradient(90deg, rgba(196,160,101,0.18), rgba(22,25,32,0.9) 70%);
}
.shop-promo-tag {
    font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #111; white-space: nowrap;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); padding: 6px 12px; border-radius: 6px;
}
.shop-promo div { display: flex; flex-direction: column; gap: 2px; }
.shop-promo strong { color: var(--gold-light); }
.shop-promo span, .shop-promo small { color: var(--text-muted); }
.shop-pack-alert { border-left-color: var(--gold-primary); margin-bottom: 20px; }
.shop-pack-alert a { color: var(--gold-light); font-weight: 700; }
.shop-type { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.shop-type-option {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
    padding: 14px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: #ddd; font: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.shop-type-option i { color: var(--gold-primary); font-size: 1.2rem; }
.shop-type-option span { color: var(--text-muted); font-size: 0.8rem; }
.shop-type-option.active { border-color: var(--gold-primary); box-shadow: 0 0 0 1px var(--gold-primary) inset; }
.shop-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.shop-quick button {
    padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: #ccc; cursor: pointer; font: inherit; font-size: 0.8rem;
}
.shop-quick button:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.shop-hint { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 6px; }
.shop-full-list { margin: 0; padding-left: 18px; color: #ccc; font-size: 0.85rem; line-height: 1.6; }
.shop-summary { margin: 20px 0; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); }
.shop-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; color: #ccc; }
.shop-summary-row s { color: var(--text-muted); }
.shop-summary-discount strong { color: var(--success); }
.shop-summary-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; }
.shop-summary-total strong { color: var(--gold-primary); font-size: 1.5rem; }
.shop-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.shop-pack-slot { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); }
.shop-pack-slot label { display: block; margin-bottom: 8px; color: var(--gold-light); font-weight: 700; }
.shop-pack-slot label small { color: var(--text-muted); font-weight: 400; }
.shop-pack-included { color: #ccc; font-size: 0.9rem; }
.shop-pack-included i { color: var(--success); }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-primary); color: #111; font-size: 0.7rem; text-align: center; }
@media (max-width: 600px) { .shop-type { grid-template-columns: 1fr; } .shop-promo { flex-direction: column; align-items: flex-start; } }

/* Waiting for payment */
.pay-wait { text-align: center; max-width: 460px; margin: 0 auto; padding: 10px 0; }
.pay-wait-icon { font-size: 3.2rem; margin-bottom: 12px; }
.pay-wait-icon i { display: none; }
.pay-wait[data-state="pending"] [data-icon="pending"] { display: inline-block; color: var(--gold-primary); }
.pay-wait[data-state="approved"] [data-icon="approved"] { display: inline-block; color: var(--success); }
.pay-wait[data-state="rejected"] [data-icon="rejected"] { display: inline-block; color: var(--danger); }
.pay-wait h3 { margin: 0 0 8px; color: #fff; }
.pay-wait p { color: var(--text-muted); margin: 0 0 20px; }
.pay-wait-order {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: #ccc;
}
.pay-wait-order strong { color: var(--gold-primary); font-size: 1.2rem; }
.pay-wait-link { display: inline-block; margin-top: 6px; color: var(--text-muted); font-size: 0.85rem; }
.pay-wait-link:hover { color: var(--gold-primary); }

/* Invoice: Pix and card */
.pay-box { margin-top: 10px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pay-method {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; cursor: pointer; font: inherit;
    border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: #ddd; transition: border-color .2s, box-shadow .2s;
}
.pay-method i { font-size: 1.5rem; color: var(--gold-primary); width: 28px; text-align: center; }
.pay-method span { display: flex; flex-direction: column; }
.pay-method small { color: var(--text-muted); font-size: 0.78rem; }
.pay-method.active { border-color: var(--gold-primary); box-shadow: 0 0 0 1px var(--gold-primary) inset; }
.pay-panel { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); }
.pay-panel > p, .pix-start > p { color: var(--text-muted); margin: 0 0 14px; }
.pix-code { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.pix-code img { width: 190px; height: 190px; background: #fff; padding: 8px; border-radius: 8px; }
.pix-steps { flex: 1; min-width: 220px; }
.pix-steps p { color: #ccc; margin: 0 0 10px; }
.pix-steps small { color: var(--text-muted); display: block; margin-top: 8px; }
.pix-copy { display: flex; gap: 8px; }
.pix-copy .input-field { flex: 1; min-width: 0; font-size: 0.8rem; }
.pix-copy .btn { white-space: nowrap; padding: 10px 14px; }
.pix-error { color: var(--danger); margin: 12px 0 0 !important; }
.pay-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-muted); font-size: 0.88rem; }
.pay-status i { color: var(--gold-primary); }
.pay-done { text-align: center; padding: 25px 10px; }
.pay-done > i { font-size: 3.2rem; color: var(--success); margin-bottom: 10px; }
.pay-done h3 { color: #fff; margin: 0 0 6px; }
.pay-done p { color: var(--text-muted); margin: 0 0 18px; }
@media (max-width: 600px) { .pix-code { flex-direction: column; } .pix-code img { width: 170px; height: 170px; } }

/* Full pack page */
.pack-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pack-head-buy { white-space: nowrap; }
.pack-offer {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; padding: 18px 20px;
    border: 1px solid var(--gold-primary); border-radius: 10px;
    background: linear-gradient(100deg, rgba(196,160,101,0.16), rgba(22,25,32,0.92) 65%);
}
.pack-offer-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-primary); color: var(--gold-primary); font-size: 1.3rem; }
.pack-offer-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.pack-offer-text strong { color: #fff; font-size: 1.05rem; }
.pack-offer-text span { color: var(--text-muted); font-size: 0.85rem; }
.pack-offer-price { display: flex; flex-direction: column; align-items: flex-end; }
.pack-offer-price small { color: var(--text-muted); }
.pack-offer-price small b { color: #e57373; }
.pack-offer-price strong { color: var(--gold-primary); font-size: 1.5rem; }
.pack-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #fff; font-weight: 700; }
.pack-section-title span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-primary); color: #111; font-size: 0.8rem; }
.pack-section-title small { margin-left: auto; color: var(--text-muted); font-weight: 400; }
.pack-claim .input-group { margin-bottom: 24px; }
.shop-pack-fixed { opacity: 0.85; }
.pack-history-title { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin: 10px 0 12px; }
.pack-card { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); margin-bottom: 16px; overflow: hidden; }
.pack-card-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pack-card-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-dark); color: var(--gold-primary); }
.pack-card-info { flex: 1; display: flex; flex-direction: column; }
.pack-card-info small { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.pack-card-info strong { color: #fff; font-size: 1.05rem; }
.pack-card-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--border); }
.pack-card-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 18px; background: var(--bg-card); }
.pack-card-item small { color: var(--text-muted); font-size: 0.75rem; }
.pack-card-item span { color: #e8e8e8; font-size: 0.9rem; font-weight: 600; }
.pack-card-foot { padding: 12px 18px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }
.pack-card-foot:empty { display: none; }
.pack-ok { color: var(--success); }
@media (max-width: 600px) { .pack-offer-price { align-items: flex-start; } .pack-head-buy { width: 100%; text-align: center; } }

/* Full pack banner (same as the site store) */
.bundle-section { margin-bottom: 60px; }

.bundle-card {
    background: linear-gradient(135deg, #1a1d24 0%, #0f1115 100%);
    border: 2px solid var(--gold-dark);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(196, 160, 101, 0.15);
}

.bundle-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(196, 160, 101, 0.1) 0%, transparent 60%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.bundle-content {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center;
}

.bundle-tag {
    display: inline-block; background: var(--gold-primary); color: #000;
    font-weight: 800; padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; margin-bottom: 15px;
}

.bundle-title { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }
.bundle-desc { color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; }

.bundle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bundle-list li { color: #ddd; font-size: 0.95rem; }
.bundle-list li i { margin-right: 10px; }

.bundle-action { text-align: center; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 40px; }
.old-price { text-decoration: line-through; color: var(--text-muted); font-size: 1.2rem; margin-bottom: 5px; }
.final-price { font-family: 'Cinzel'; font-size: 2.5rem; color: var(--gold-primary); font-weight: bold; margin-bottom: 20px; }

.btn-large { padding: 15px 30px; font-size: 1.1rem; width: 100%; }

.wobble-effect:hover { animation: pulse 1s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 160, 101, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(196, 160, 101, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 160, 101, 0); }
}
.bundle-card .text-gold { color: var(--gold-primary); }
.bundle-card .price-was { margin-bottom: 5px; }
.bundle-card .old-price { display: inline; }
.bundle-card .discount-badge { display: inline-block; background: #c0392b; color: #fff; font-weight: 700; font-size: 0.85rem; padding: 3px 8px; border-radius: 6px; vertical-align: middle; }
.bundle-card .bundle-list { list-style: none; padding: 0; margin: 0; }
.bundle-section { margin-bottom: 30px; }
@media (max-width: 900px) {
    .bundle-content { grid-template-columns: 1fr; text-align: center; }
    .bundle-action { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 30px; }
    .bundle-list { text-align: left; }
    .bundle-card { padding: 25px; }
    .bundle-title { font-size: 1.8rem; }
}
@media (max-width: 600px) { .bundle-list { grid-template-columns: 1fr; } }
.pix-loading { color: var(--text-muted); margin: 0 0 4px !important; display: flex; align-items: center; gap: 10px; }
.pix-loading i { color: var(--gold-primary); }
#pixRetry { margin-top: 12px; }
/* Pix: centered initial state, before the QR code is generated */
.pay-box [hidden], .pay-done[hidden] { display: none !important; }
.pix-start { text-align: center; padding: 18px 10px 10px; }
.pix-start-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-dark); background: rgba(196,160,101,0.08); color: var(--gold-primary); font-size: 1.7rem; }
.pix-start h4 { margin: 0 0 6px; color: #fff; font-size: 1.1rem; }
.pix-start p { max-width: 380px; margin: 0 auto 18px !important; color: var(--text-muted); }
.pix-start .btn { min-width: 240px; }
.pix-start .pix-error { margin: 14px auto 0 !important; }

/* Full pack claim: builder with item icons */
.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.pb-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pb-step { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); padding: 18px 20px; transition: border-color .2s; }
.pb-step.is-complete { border-color: rgba(196,160,101,0.45); }
.pb-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pb-step-head > div { flex: 1; min-width: 180px; }
.pb-step-head h3 { margin: 0; font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-step-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 0.82rem; }
.pb-num { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: var(--gold-primary); border: 1px solid var(--gold-dark); background: rgba(196,160,101,0.08); }
.pb-step.is-complete .pb-num, .pb-num.is-done { background: var(--gold-primary); color: #111; border-color: var(--gold-primary); }
.pb-tag { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--gold-light); border: 1px solid var(--gold-dark); border-radius: 4px; padding: 2px 6px; }
.pb-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: #0f1218; width: 220px; max-width: 100%; }
.pb-search i { color: var(--text-muted); font-size: 0.8rem; }
.pb-search input { background: transparent; border: 0; outline: 0; color: #ddd; padding: 9px 0; width: 100%; font: inherit; font-size: 0.85rem; }
.pb-empty, .pb-no-results { color: var(--text-muted); margin: 0; font-size: 0.85rem; }
.pb-no-results { margin-top: 10px; }

.pb-chars { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-char input, .pb-option input { position: absolute; opacity: 0; pointer-events: none; }
.pb-char span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; color: #ddd; cursor: pointer; transition: border-color .2s, background .2s; }
.pb-char span i { color: var(--text-muted); }
.pb-char:hover span { border-color: var(--gold-dark); }
.pb-char.is-selected span { border-color: var(--gold-primary); background: rgba(196,160,101,0.12); color: #fff; }
.pb-char.is-selected span i { color: var(--gold-primary); }

.pb-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pb-options.is-many { max-height: 430px; overflow-y: auto; padding-right: 4px; }
.pb-options.is-augment { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pb-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #12151c; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; min-height: 62px; }
.pb-option:hover { border-color: var(--gold-dark); transform: translateY(-1px); }
.pb-option.is-selected { border-color: var(--gold-primary); background: linear-gradient(120deg, rgba(196,160,101,0.16), #12151c 75%); box-shadow: 0 0 0 1px var(--gold-primary) inset; }
.pb-option[hidden] { display: none; }
.pb-option.is-fixed { cursor: default; }
.pb-option.is-fixed:hover { transform: none; border-color: var(--border); }
.pb-label { flex: 1; min-width: 0; color: #e6e6e6; font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.pb-label small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }
.pb-tick { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: transparent; font-size: 0.7rem; }
.pb-option.is-selected .pb-tick { background: var(--gold-primary); border-color: var(--gold-primary); color: #111; }
.pb-included { font-size: 0.72rem; color: var(--success); white-space: nowrap; }
.pb-stat { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gold-primary); border: 1px solid var(--gold-dark); background: rgba(196,160,101,0.08); }

.pb-icons { display: flex; flex-shrink: 0; gap: 3px; }
.pb-icons.is-multi { flex-wrap: wrap; max-width: 98px; }
.pb-icon { border-radius: 5px; border: 1px solid #2b2f38; background: #0b0d12; image-rendering: auto; object-fit: contain; }
.pb-icon-lg { width: 40px; height: 40px; }
.pb-icon-md { width: 32px; height: 32px; }
.pb-icon-sm { width: 30px; height: 30px; }
.pb-icon-xs { width: 24px; height: 24px; }
.pb-option.is-fixed .pb-icons.is-multi { max-width: none; }

.pb-summary { position: sticky; top: 20px; }
.pb-summary-card { border: 1px solid var(--gold-dark); border-radius: 12px; background: linear-gradient(160deg, #1b1f27, #12151c); padding: 18px; }
.pb-eyebrow { font-size: 0.68rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-primary); }
.pb-summary-head h3 { margin: 4px 0 12px; color: #fff; font-size: 1.15rem; }
.pb-progress { height: 6px; border-radius: 3px; background: #262b35; overflow: hidden; }
.pb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); transition: width .25s; }
.pb-summary-head small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.75rem; }
.pb-summary-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pb-summary-list li { display: flex; align-items: center; gap: 10px; }
.pb-summary-list li > div { min-width: 0; display: flex; flex-direction: column; }
.pb-summary-list small { color: var(--text-muted); font-size: 0.7rem; }
.pb-summary-list span { color: #e6e6e6; font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-summary-list span.is-empty { color: #6f7684; font-weight: 400; font-style: italic; }
.pb-summary-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px; border: 1px solid #2b2f38; background: #0b0d12; object-fit: contain; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-primary); font-size: 0.85rem; }
.pb-note { color: var(--text-muted); font-size: 0.75rem; line-height: 1.5; margin: 0 0 14px; }
.pb-note i { color: var(--gold-primary); }
#pbSubmit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.pack-card-item { flex-direction: row !important; align-items: center; gap: 10px !important; }
.pack-card-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pack-card-icons { display: flex; gap: 2px; flex-shrink: 0; color: var(--gold-primary); }

@media (max-width: 600px) { .pb-options { grid-template-columns: 1fr; } .pb-search { width: 100%; } }
/* Claim: tabs and character select */
.pb-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.pb-tab { padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: #c9ced8; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600; transition: all .15s; }
.pb-tab:hover { border-color: var(--gold-dark); color: #fff; }
.pb-tab.is-active { background: var(--gold-primary); border-color: var(--gold-primary); color: #111; }
.pb-tab.is-dimmed { opacity: .45; }
.pb-select { position: relative; max-width: 380px; }
.pb-select i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold-primary); pointer-events: none; }
.pb-select select { padding-left: 40px !important; margin: 0; }

/* Claim: single column based on the form width + sticky bottom bar */
.pb { container-type: inline-size; }
.pb-bar { display: none; }
.pb-step { scroll-margin-top: 16px; }
@container (max-width: 820px) {
    .pb-layout { grid-template-columns: 1fr; }
    .pb-summary { position: static; }
    .pb-summary-card #pbSubmit { display: none; }
    .pb-bar {
        display: flex; align-items: center; gap: 12px; position: sticky; bottom: 0; z-index: 20; margin-top: 18px;
        padding: 12px 14px; border: 1px solid var(--gold-dark); border-radius: 12px;
        background: rgba(18, 21, 28, 0.96); backdrop-filter: blur(6px); box-shadow: 0 -10px 30px rgba(0,0,0,0.55);
    }
}
.pb-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pb-bar-info strong { color: #fff; font-size: 0.9rem; }
.pb-bar-info span { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-bar-info .pb-progress { height: 4px; }
.pb-bar .btn { white-space: nowrap; padding: 10px 16px; margin: 0; width: auto; }
.pb-bar .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pb-bar-next[hidden] { display: none; }
@container (max-width: 480px) { .pb-bar-next span { display: none; } .pb-bar { gap: 8px; } }
/* .panel-card uses overflow:hidden, which breaks position:sticky; clip crops the same way without breaking it */
.panel-card:has(.pb), .panel-content:has(.pb) { overflow: clip !important; }
.pb-option.is-fixed { grid-column: 1 / -1; }

/* Coupon field */
.shop-coupon { margin: 20px 0 0; }
.shop-coupon > label { display: block; color: #ddd; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
.shop-coupon > label i { color: var(--gold-primary); }
.shop-coupon-row { display: flex; gap: 8px; }
.shop-coupon-row[hidden], .shop-coupon-applied[hidden], .shop-coupon-msg[hidden] { display: none !important; }
.shop-coupon-row .input-field { flex: 1; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.shop-coupon-row .btn { white-space: nowrap; width: auto; padding: 10px 20px; margin: 0; }
.shop-coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px dashed var(--success); border-radius: 8px; background: rgba(76,175,80,0.08); }
.shop-coupon-applied i { color: var(--success); }
.shop-coupon-applied strong { color: #fff; letter-spacing: 1px; }
.shop-coupon-applied small { color: var(--text-muted); margin-left: 6px; }
.shop-coupon-applied button { background: none; border: 0; color: var(--text-muted); cursor: pointer; font: inherit; font-size: 0.8rem; }
.shop-coupon-applied button:hover { color: var(--danger); }
.shop-coupon-msg { margin: 8px 0 0; font-size: 0.82rem; }
.shop-coupon-msg.is-error { color: var(--danger); }
.shop-coupon-msg.is-ok { color: var(--success); }
/* Pix QR code gold frame */
.pix-code img { border: 2px solid var(--gold-primary); box-shadow: 0 0 0 4px rgba(196,160,101,0.12), 0 0 22px rgba(196,160,101,0.18); }
/* Promotion tag: dark text on solid gold (the generic .shop-promo span rule was greying it out) */
.shop-promo .shop-promo-tag { color: #16130d; background: linear-gradient(135deg, #e6c589, #c9a462); text-shadow: none; font-size: 0.95rem; box-shadow: 0 2px 10px rgba(196,160,101,0.25); }
