/* ═══════════════════════════════════════════════════════════════
   FuzilCenter — La Casa de Papel Theme
   Tema Cinematográfico com Red (#b3132d), Gold (#e9c98a), Dark (#0a0a14)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg: #070707;
    --bg-soft: #111111;
    --card: rgba(16, 16, 16, 0.74);
    --border: rgba(255,255,255,.10);
    --text: #f7f2eb;
    --text-muted: rgba(247,242,235,.70);
    --red: #b3132d;
    --red-dark: #8c0d22;
    --gold: #e9c98a;
    --gold-dark: #c8a56a;
    --shadow: 0 30px 80px rgba(0,0,0,.55);
    --radius-xl: 30px;
    --radius-lg: 18px;
}

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

html, body {
    background: #050505;
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

/* ═══ BACKGROUND & PARTICLES ═══ */
.bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,.48), rgba(0,0,0,.78)),
        linear-gradient(135deg, rgba(179,19,45,.26), rgba(0,0,0,.20) 35%, rgba(233,201,138,.10) 100%),
        url('/static/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.08);
    animation: cinematicZoom 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(255,216,160,.12), transparent 18%),
        radial-gradient(circle at 15% 50%, rgba(179,19,45,.18), transparent 30%),
        radial-gradient(circle at 85% 60%, rgba(179,19,45,.16), transparent 28%);
    mix-blend-mode: screen;
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    background:
        linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.22)),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.00) 0px,
            rgba(255,255,255,.00) 2px,
            rgba(255,255,255,.018) 3px,
            rgba(255,255,255,.00) 4px
        );
    opacity: .5;
}

@keyframes cinematicZoom {
    0%   { transform: scale(1.04) translate3d(0, 0, 0); }
    50%  { transform: scale(1.09) translate3d(0, -6px, 0); }
    100% { transform: scale(1.14) translate3d(0, 4px, 0); }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,201,138,.95), rgba(233,201,138,.15));
    box-shadow: 0 0 14px rgba(233,201,138,.45);
    animation: floatUp linear infinite;
    opacity: .55;
}

.particle:nth-child(1) { left: 8%;  bottom: -10px; animation-duration: 10s; animation-delay: -2s; }
.particle:nth-child(2) { left: 18%; bottom: -20px; animation-duration: 13s; animation-delay: -8s; width: 4px; height: 4px; }
.particle:nth-child(3) { left: 30%; bottom: -16px; animation-duration: 11s; animation-delay: -4s; }
.particle:nth-child(4) { left: 42%; bottom: -24px; animation-duration: 15s; animation-delay: -6s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 55%; bottom: -12px; animation-duration: 12s; animation-delay: -3s; }
.particle:nth-child(6) { left: 68%; bottom: -16px; animation-duration: 16s; animation-delay: -7s; width: 4px; height: 4px; }
.particle:nth-child(7) { left: 78%; bottom: -18px; animation-duration: 14s; animation-delay: -5s; }
.particle:nth-child(8) { left: 88%; bottom: -10px; animation-duration: 11s; animation-delay: -1s; width: 5px; height: 5px; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(.8); opacity: 0; }
    15% { opacity: .7; }
    100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* ═══ LOGIN PAGE ═══ */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding: 22px 14px;
}

.login-container {
    width: min(100%, 390px);
    perspective: 1400px;
}

.card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 22px 20px 16px;
    background:
        linear-gradient(180deg, rgba(18, 18, 18, .52), rgba(8, 8, 8, .62)),
        linear-gradient(145deg, rgba(179,19,45,.08), rgba(233,201,138,.03));
    border: 1px solid var(--border);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transform-style: preserve-3d;
    animation: cardFloat 6s ease-in-out infinite;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(179,19,45,.20), transparent 30%),
        radial-gradient(circle at bottom left, rgba(233,201,138,.10), transparent 28%),
        linear-gradient(140deg, rgba(255,255,255,.05), transparent 24%);
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-xl) - 1px);
    border: 1px solid rgba(255,255,255,.04);
    pointer-events: none;
}

@keyframes cardFloat {
    0%, 100% { transform: rotateX(0deg) rotateY(0deg) translateY(0px); }
    50% { transform: rotateX(3deg) rotateY(-3deg) translateY(-6px); }
}

.top-glow {
    position: absolute;
    inset: -40px -60px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(179,19,45,.30), transparent 68%);
    filter: blur(26px);
    opacity: .85;
    pointer-events: none;
}

.bottom-glow {
    position: absolute;
    inset: auto auto -80px -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233,201,138,.18), transparent 72%);
    filter: blur(28px);
    opacity: .75;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(233,201,138,.24);
    background: rgba(255,255,255,.04);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px rgba(179,19,45,.8);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: .65; }
}

.brand {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 12px;
    margin-bottom: 16px;
}

.brand h1 {
    font-size: clamp(38px, 9vw, 54px);
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff6eb;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0,0,0,.45);
    margin-bottom: 10px;
}

.brand-line {
    width: 118px;
    height: 6px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--gold), var(--red), var(--gold), var(--red));
    background-size: 300% 100%;
    box-shadow: 0 0 16px rgba(179,19,45,.30);
    animation: brandLineMove 4s ease-in-out infinite;
}

@keyframes brandLineMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand p {
    max-width: 300px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.field {
    position: relative;
    z-index: 2;
    margin-top: 16px;
}

.field label {
    display: block;
    margin-bottom: 10px;
    color: #f3e7d3;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 64px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
    color: var(--text);
    padding: 0 52px 0 18px;
    font-size: 17px;
    font-weight: 600;
    outline: none;
    transition: .24s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.input-wrap input::placeholder {
    color: rgba(247,242,235,.42);
}

.input-wrap input:focus {
    border-color: rgba(233,201,138,.48);
    box-shadow:
        0 0 0 4px rgba(233,201,138,.10),
        0 10px 24px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.06);
    transform: translateY(-1px);
}

.icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    opacity: .7;
    color: var(--gold);
}

.actions {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.btn {
    height: 64px;
    border: 0;
    border-radius: var(--radius-lg);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
    text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    color: #fff8ef;
    background: linear-gradient(180deg, #c51a36, #8f1026);
    box-shadow:
        0 16px 34px rgba(179,19,45,.30),
        inset 0 1px 0 rgba(255,255,255,.16);
}

.btn-primary:hover {
    filter: brightness(1.04);
}

.btn-secondary {
    color: var(--gold);
    background: linear-gradient(180deg, rgba(233,201,138,.10), rgba(233,201,138,.04));
    border: 1px solid rgba(233,201,138,.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.btn-secondary:hover {
    background: linear-gradient(180deg, rgba(233,201,138,.14), rgba(233,201,138,.06));
}

.footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34,197,94,.80);
    animation: pulseGreen 1.8s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 12px rgba(34,197,94,.80); }
    50% { transform: scale(1.4); opacity: .65; box-shadow: 0 0 20px rgba(34,197,94,1); }
}

/* ═══ DASHBOARD ═══ */
.dashboard-container {
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.main-content {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, rgba(11, 11, 17, 0.95), rgba(7, 7, 10, 0.98));
    border-right: 1px solid rgba(179, 19, 45, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(179, 19, 45, 0.2);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

.sidebar-group {
    border-bottom: 1px solid rgba(179, 19, 45, 0.15);
}

.sidebar-group h5 {
    cursor: pointer;
    padding: 14px 20px;
    color: rgba(247, 242, 235, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.sidebar-group h5:hover {
    color: var(--gold);
}

.sidebar-group h5 i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    color: var(--red);
}

.sidebar-group ul {
    display: none;
    list-style: none;
    padding: 0 0 8px 0;
}

.sidebar-group.active ul {
    display: block;
}

.sidebar-group.active h5 {
    color: var(--gold);
}

.sidebar-group ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 30px;
    color: rgba(247, 242, 235, 0.6);
    font-size: 0.9rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-group ul li a:hover {
    color: var(--gold);
    background: rgba(179, 19, 45, 0.08);
    border-left-color: var(--red);
}

.sidebar-group ul li a i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.sidebar-nav-bottom {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(179, 19, 45, 0.2);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    justify-content: center;
    cursor: pointer;
    background: transparent;
}

.btn-logout:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

.content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 14, 0.8), rgba(15, 12, 18, 0.8));
}

.content-section {
    animation: fadeIn 0.3s ease;
}

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

.time-box {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.7), rgba(16, 16, 22, 0.8));
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.time-box h2 {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-box span {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 600;
}

.tempo_expira, #tempoExpira {
    font-size: 1.6rem !important;
    font-weight: 700;
    color: var(--red) !important;
    font-family: 'Courier New', monospace;
}

.key-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.key-container span {
    font-family: monospace;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 1px;
}

.toggle-key {
    padding: 6px 16px;
    background: rgba(179, 19, 45, 0.15);
    border: 1px solid rgba(233, 201, 138, 0.3);
    border-radius: 6px;
    color: var(--gold);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.toggle-key:hover {
    background: rgba(179, 19, 45, 0.25);
    border-color: var(--gold);
}

.tool-box {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.7), rgba(16, 16, 22, 0.8));
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.tool-box h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.tool-box h2 i {
    color: var(--red);
}

.tool-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.tool-input-row input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(20, 20, 26, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.tool-input-row input:focus {
    outline: none;
    border-color: var(--gold);
}

.btn-tool {
    padding: 10px 18px;
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(179, 19, 45, 0.3);
}

.btn-tool:hover {
    background: linear-gradient(180deg, #c91f3e, #9a1429);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(179, 19, 45, 0.4);
}

.btn-danger-sm {
    background: #ff6b6b;
    color: #fff;
}

.btn-danger-sm:hover {
    background: #ff5252;
}

.tool-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    color: var(--text);
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-top: 10px;
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.tool-result {
    margin-top: 14px;
}

/* ═══ CHECKER ═══ */
.checker-wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.checker-main, .checker-stats {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.7), rgba(16, 16, 22, 0.8));
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.form-checker {
    width: 100%;
    padding: 12px;
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    color: var(--text);
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 14px;
}

.form-checker:focus {
    outline: none;
    border-color: var(--gold);
}

.checker-selects select {
    width: 100%;
    padding: 10px;
    background: rgba(20, 20, 26, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    text-align: center;
}

.checker-selects select:focus {
    outline: none;
    border-color: var(--gold);
}

.checker-buttons {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.checker-buttons .btn {
    flex: 1;
}

.test-item {
    background: rgba(20, 20, 26, 0.7);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.test-item:hover {
    transform: translateY(-2px);
    border-color: var(--red);
}

.test-item.approved {
    border-left: 4px solid #22c55e;
}

.test-item.reproved {
    border-left: 4px solid #ff6b6b;
}

.test-item.warning {
    border-left: 4px solid var(--gold);
}

.test-body {
    padding: 12px 14px;
    color: rgba(247, 242, 235, 0.8);
    font-size: 0.9rem;
    font-family: monospace;
    word-break: break-all;
}

/* ═══ ALERTS & TOASTS ═══ */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    backdrop-filter: blur(5px);
}

.custom-alert.show {
    opacity: 1;
    transform: translateX(0);
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.alert-error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.toast-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(233, 201, 138, 0.15);
    border: 1px solid rgba(233, 201, 138, 0.4);
    color: var(--gold);
    border-radius: 8px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toast-msg.show {
    opacity: 1;
    transform: translateX(0);
}

/* ═══ BUY MODAL ═══ */
.btn-buy-plan {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(179, 19, 45, 0.2), rgba(179, 19, 45, 0.1));
    border: 1px solid rgba(179, 19, 45, 0.4);
    color: var(--gold);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
}

.btn-buy-plan:hover {
    background: linear-gradient(180deg, rgba(179, 19, 45, 0.3), rgba(179, 19, 45, 0.15));
    border-color: var(--red);
}

.buy-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.buy-modal {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.95), rgba(16, 16, 22, 0.98));
    border: 1px solid rgba(179, 19, 45, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.buy-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(247, 242, 235, 0.5);
    font-size: 24px;
    cursor: pointer;
}

.buy-close:hover {
    color: var(--red);
}

.buy-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    text-align: center;
}

.buy-title i {
    color: var(--gold);
    margin-right: 8px;
}

.buy-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.buy-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.buy-plan-card {
    background: rgba(179, 19, 45, 0.1);
    border: 1px solid rgba(179, 19, 45, 0.3);
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}

.buy-plan-card:hover {
    border-color: var(--gold);
    background: rgba(233, 201, 138, 0.08);
    transform: translateY(-2px);
}

.buy-plan-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background: rgba(179, 19, 45, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--red);
}

.buy-plan-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 14px;
}

.buy-plan-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 16px;
}

.buy-key-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0;
    justify-content: center;
}

.buy-key-box code {
    font-family: monospace;
    font-size: 15px;
    color: #22c55e;
    word-break: break-all;
}

.buy-warn {
    text-align: center;
    color: var(--gold);
    font-size: 13px;
    margin-top: 12px;
}

.buy-status {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
}

.pix-qr-box {
    background: rgba(10, 10, 14, 0.8);
    border: 2px solid rgba(179, 19, 45, 0.3);
    border-radius: 8px;
    padding: 16px;
    display: inline-block;
}

.pix-copy-area {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pix-copy-area input {
    flex: 1;
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-family: monospace;
}

.btn-copy-pix {
    background: rgba(179, 19, 45, 0.2);
    border: 1px solid rgba(179, 19, 45, 0.4);
    color: var(--gold);
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-copy-pix:hover {
    background: rgba(179, 19, 45, 0.3);
    border-color: var(--red);
}

/* ═══ ADMIN PANELS ═══ */
.admin-wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(179, 19, 45, 0.2);
}

.admin-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
}

.admin-header h2 i {
    color: var(--red);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-card {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.7), rgba(16, 16, 22, 0.8));
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.admin-card h4 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--gold);
}

.admin-card h4 i {
    color: var(--red);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-form select,
.admin-form input {
    padding: 10px 14px;
    background: rgba(20, 20, 26, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
}

.admin-form select:focus,
.admin-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.generated-keys {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gen-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--gold);
}

.btn-copy-key {
    background: none;
    border: none;
    color: rgba(233, 201, 138, 0.5);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    transition: color 0.2s;
}

.btn-copy-key:hover {
    color: var(--gold);
}

.keys-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.keys-table th {
    background: rgba(10, 10, 14, 0.6);
    color: var(--gold);
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid rgba(179, 19, 45, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keys-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(179, 19, 45, 0.1);
    color: rgba(247, 242, 235, 0.7);
}

.keys-table tr:hover {
    background: rgba(179, 19, 45, 0.05);
}

.key-cell {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gold);
}

.status-active {
    color: #22c55e;
    font-weight: 600;
}

.status-expired {
    color: #ff6b6b;
    font-weight: 600;
}

.btn-del {
    background: none;
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-del:hover {
    background: rgba(255, 107, 107, 0.15);
}

/* ═══ RENEWAL & PAYMENT ═══ */
.renew-container {
    padding: 10px 0;
    position: relative;
    z-index: 2;
}

.renew-title {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 6px;
}

.renew-title i {
    color: var(--red);
    margin-right: 8px;
}

.renew-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.renew-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.renew-plan-card {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.7), rgba(16, 16, 22, 0.8));
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.renew-plan-card:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(233, 201, 138, 0.08), rgba(233, 201, 138, 0.05));
    transform: translateY(-2px);
}

.renew-plan-icon {
    font-size: 1.6rem;
    color: var(--red);
}

.renew-plan-label {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.renew-plan-price {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 700;
}

.pix-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pix-modal {
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.95), rgba(16, 16, 22, 0.98));
    border: 1px solid rgba(179, 19, 45, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.pix-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(247, 242, 235, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
}

.pix-modal-close:hover {
    color: var(--red);
}

.pix-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.pix-modal-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.pix-modal-header h3 {
    color: var(--text);
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.pix-plan-name {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pix-plan-price {
    background: rgba(179, 19, 45, 0.2);
    color: var(--red);
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    border: 1px solid rgba(179, 19, 45, 0.4);
}

.pix-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 0;
    color: var(--text-muted);
}

.pix-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(179, 19, 45, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pix-instruction {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.pix-status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 5px;
}

.pix-status-dot {
    width: 10px;
    height: 10px;
    background: #ffa500;
    border-radius: 50%;
    animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

#modalStatusText {
    color: #ffa500;
    font-size: 0.9rem;
}

.pix-modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
    text-align: center;
}

.pix-success-icon {
    font-size: 3.5rem;
    color: #22c55e;
    animation: successPop 0.4s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pix-modal-success h3 {
    color: #22c55e;
    margin: 0;
    font-size: 1.3rem;
}

.pix-modal-success p {
    color: var(--text-muted);
    margin: 0;
}

.pix-new-expires {
    color: #22c55e !important;
    font-weight: 600;
    font-size: 0.95rem;
}

.pix-expired-icon {
    font-size: 3rem;
    color: #ff6b6b;
}

.pix-modal-expired h3 {
    color: #ff6b6b;
    margin: 0;
}

.pix-modal-expired p {
    color: var(--text-muted);
    margin: 0;
}

/* ═══ ONLINE USERS ═══ */
.online-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.online-badge {
    background: #22c55e;
    color: #000;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.online-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(179, 19, 45, 0.08);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px #22c55e;
}

.online-info {
    flex: 1;
}

.online-key {
    font-weight: 600;
    color: var(--text);
    font-family: monospace;
    font-size: 14px;
}

.online-detail {
    color: var(--text-muted);
    font-size: 12px;
}

/* ═══ PLAN EDITOR ═══ */
.plan-editor-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    background: rgba(179, 19, 45, 0.08);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 8px;
    padding: 18px;
}

.plan-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.plan-field label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.plan-field input {
    background: rgba(20, 20, 26, 0.8);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 14px;
}

.plan-field input:focus {
    border-color: var(--gold);
    outline: none;
}

.icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.icon-opt {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 19, 45, 0.1);
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}

.icon-opt:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.icon-opt.selected {
    background: rgba(179, 19, 45, 0.2);
    border-color: var(--red);
    color: var(--red);
}

.plan-preview-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(179, 19, 45, 0.2);
}

.preview-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.plan-preview-card {
    width: 180px;
    background: linear-gradient(135deg, rgba(179, 19, 45, 0.15), rgba(233, 201, 138, 0.08));
    border: 1px solid rgba(179, 19, 45, 0.3);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
}

.plan-pv-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: rgba(179, 19, 45, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--red);
}

.plan-pv-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.plan-pv-duration {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.plan-pv-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
}

.plans-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.plan-mgmt-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(22, 22, 28, 0.7), rgba(16, 16, 22, 0.8));
    border: 1px solid rgba(179, 19, 45, 0.2);
    border-radius: 10px;
    padding: 16px;
    transition: all .25s;
}

.plan-mgmt-card:hover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(179, 19, 45, 0.12), rgba(233, 201, 138, 0.08));
}

.plan-mgmt-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(179, 19, 45, 0.2), rgba(233, 201, 138, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gold);
    flex-shrink: 0;
}

.plan-mgmt-body {
    flex: 1;
}

.plan-mgmt-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.plan-mgmt-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.plan-mgmt-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold);
    margin-top: 4px;
}

.plan-mgmt-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
}

.btn-edit-icon {
    background: rgba(179, 19, 45, 0.2);
    color: var(--gold);
}

.btn-edit-icon:hover {
    background: rgba(179, 19, 45, 0.3);
}

.btn-del-icon {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
}

.btn-del-icon:hover {
    background: rgba(255, 107, 107, 0.2);
}

/* ═══ AVISO TEMPO ═══ */
.aviso-tempo {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 193, 7, 0.2);
    padding: 6px;
    text-align: center;
    font-size: 12px;
    color: #ffc107;
    border-bottom: 1px solid #ffc10755;
    z-index: 9999;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid rgba(179, 19, 45, 0.2);
    }

    .sidebar-header {
        width: 100%;
        padding: 12px;
    }

    .sidebar-group {
        flex: 1;
        min-width: 140px;
        border-bottom: none;
    }

    .sidebar-group h5 {
        padding: 10px 14px;
        font-size: 0.75rem;
    }

    .sidebar-group ul li a {
        padding: 8px 14px 8px 18px;
        font-size: 0.8rem;
    }

    .content-area {
        padding: 16px;
        max-height: unset;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .renew-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans-card-grid {
        grid-template-columns: 1fr;
    }

    .plan-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .card {
        padding: 22px 18px 18px;
        border-radius: 24px;
    }

    .brand h1 {
        font-size: 44px;
    }

    .btn {
        height: 60px;
    }

    .buy-modal {
        width: 95%;
    }

    .pix-modal {
        max-width: 95%;
    }
}

/* ═══ LOGIN FORM (login.html / admin_login.html) ═══ */
.login-container h1 {
    font-size: clamp(38px, 9vw, 54px);
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff6eb;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0,0,0,.45);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-container h1 i {
    color: var(--gold);
    margin-right: 6px;
}

.login-form {
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 14px;
}

.input-group input {
    width: 100%;
    height: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
    color: var(--text);
    padding: 0 18px;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: .24s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.input-group input::placeholder {
    color: rgba(247,242,235,.42);
}

.input-group input:focus {
    border-color: rgba(233,201,138,.48);
    box-shadow: 0 0 0 4px rgba(233,201,138,.10), 0 10px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
    transform: translateY(-1px);
}

.btn-login {
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: var(--radius-lg);
    color: #fff8ef;
    background: linear-gradient(180deg, #c51a36, #8f1026);
    box-shadow: 0 16px 34px rgba(179,19,45,.30), inset 0 1px 0 rgba(255,255,255,.16);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    margin-top: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.btn-login:active {
    transform: translateY(0);
}

/* ═══ CHECKER PAGE ═══ */
.checker-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    margin-bottom: 16px;
}

.card-body {
    padding: 20px;
    position: relative;
}

.card-body h4,
.card-body h5 {
    color: var(--text);
    margin-bottom: 6px;
}

.card-body h4 strong {
    color: var(--gold);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-center { text-align: center; }

.text-success { color: #22c55e; }
.text-danger { color: #ff6b6b; }

.float-right { float: right; }

.back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(179,19,45,.15);
    border: 1px solid rgba(179,19,45,.3);
    color: var(--gold);
    text-decoration: none;
    transition: all .2s;
}

.back-btn:hover {
    background: rgba(179,19,45,.25);
    border-color: var(--red);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.badge-success {
    background: rgba(34,197,94,.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.3);
}

.badge-danger {
    background: rgba(255,107,107,.15);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,.3);
}

.badge-info {
    background: rgba(59,130,246,.15);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,.3);
}

.badge-primary {
    background: rgba(179,19,45,.15);
    color: var(--gold);
    border: 1px solid rgba(179,19,45,.3);
}

.badge-expire {
    background: rgba(255,165,0,.15);
    color: #ffa500;
    border: 1px solid rgba(255,165,0,.3);
    font-family: 'Courier New', monospace;
}

.btn-success {
    color: #fff;
    background: linear-gradient(180deg, #16a34a, #15803d);
    box-shadow: 0 6px 16px rgba(22,163,74,.3);
}

.btn-success:hover {
    filter: brightness(1.1);
}

.btn-danger {
    color: #fff;
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 16px rgba(220,38,38,.3);
}

.btn-danger:hover {
    filter: brightness(1.1);
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-play, .btn-stop {
    border-radius: 8px;
}

.btn-play:disabled, .btn-stop:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.results-section {
    margin-top: 16px;
}

.results-section .card {
    animation: none;
}

.checker-main hr,
.checker-stats hr {
    border: none;
    border-top: 1px solid rgba(179,19,45,.15);
    margin: 8px 0;
}

/* ═══ DASHBOARD SECTIONS ═══ */
.time-section {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.time-section .time-box {
    flex: 1;
    min-width: 180px;
}

.database-info {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(22,22,28,.7), rgba(16,16,22,.8));
    border: 1px solid rgba(179,19,45,.2);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.database-info h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--gold);
}

.hist-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hist-filters select,
.hist-filters input {
    padding: 8px 12px;
    background: rgba(20,20,26,.8);
    border: 1px solid rgba(179,19,45,.2);
    border-radius: 6px;
    color: var(--text);
    font-size: .9rem;
}

.hist-filters select:focus,
.hist-filters input:focus {
    outline: none;
    border-color: var(--gold);
}

.historico-list {
    max-height: 500px;
    overflow-y: auto;
}

.hist-item {
    background: rgba(20,20,26,.5);
    border: 1px solid rgba(179,19,45,.15);
    border-left: 4px solid var(--red);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 8px;
    transition: transform .15s;
}

.hist-item:hover {
    transform: translateX(4px);
}

.hist-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.hist-status {
    font-weight: 700;
    font-size: .9rem;
}

.hist-date {
    color: var(--text-muted);
    font-size: .8rem;
}

.hist-card {
    font-family: monospace;
    font-size: .85rem;
    color: var(--text);
    word-break: break-all;
    margin-bottom: 6px;
}

.hist-bottom {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--text-muted);
}

.hist-retorno {
    flex: 1;
    word-break: break-all;
}

.hist-gate {
    flex-shrink: 0;
    color: var(--gold);
    padding-left: 10px;
}

.hist-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

/* ═══ SEPARATOR OPTIONS ═══ */
.sep-options {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 10px 0;
    align-items: center;
}

.sep-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .9rem;
    cursor: pointer;
}

.sep-opt input[type="checkbox"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
}

.sep-stats {
    margin-top: 10px;
    font-size: .85rem;
    color: var(--text-muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ═══ BIN INFO GRID ═══ */
.bin-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    padding: 14px;
    background: rgba(10,10,14,.6);
    border: 1px solid rgba(179,19,45,.2);
    border-radius: 8px;
    font-size: .9rem;
}

.bin-info-grid strong {
    color: var(--gold);
}

/* ═══ TOOL ACTIONS ═══ */
.tool-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-actions .btn-sm {
    padding: 8px 14px;
    font-size: .85rem;
}

/* ═══ PIX EXTRAS ═══ */
.pix-copy-btn {
    background: rgba(179,19,45,.2);
    border: 1px solid rgba(179,19,45,.4);
    color: var(--gold);
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
    transition: all .2s;
}

.pix-copy-btn:hover {
    background: rgba(179,19,45,.3);
    border-color: var(--red);
}

.pix-qr-container {
    text-align: center;
    margin-bottom: 16px;
}

.pix-modal-content {
    padding-top: 10px;
}

.pix-reload-btn {
    margin-top: 12px;
}

.pix-modal-expired {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
    text-align: center;
}

/* ═══ MISC HELPERS ═══ */
.dim {
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.renew-loading, .renew-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

a { text-decoration: none; color: inherit; }

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(10,10,14,.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(179,19,45,.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* ═══ RESPONSIVE EXTRAS ═══ */
@media (max-width: 768px) {
    .checker-row {
        grid-template-columns: 1fr;
    }

    .time-section {
        flex-direction: column;
    }

    .bin-info-grid {
        grid-template-columns: 1fr;
    }

    .hist-filters {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .login-container h1 {
        font-size: 36px;
    }
}
