/* ECLYPSE visual theme — espelha eclypse-system-8.co */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&display=swap");

:root {
    --eclypse-bg: #060a0e;
    --eclypse-bg-mid: #0a0e13;
    --eclypse-primary: #dc3545;
    --eclypse-primary-hover: #c82333;
    --eclypse-text: #f2f3f5;
    --eclypse-muted: #b5bac1;
    --eclypse-border: #1e1f22;
    --eclypse-input-bg: #1e1f22;
    --eclypse-radius: 4px;
    --eclypse-font: 'Fira Code', 'Consolas', monospace;
    --main-color: #dc3545;
    --secondary-color: #c82333;
    --accent-glow: rgba(220, 53, 69, 0.18);
    --bg-dark: #060a0e;
    --border-rose: rgba(220, 53, 69, 0.25);
}

html.eclypse-theme,
html.eclypse-theme body {
    font-family: var(--eclypse-font) !important;
    background: var(--eclypse-bg) !important;
    color: var(--eclypse-text) !important;
}

/* Scanlines + grid global (login) */
html.eclypse-theme body.guest-login::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(220, 53, 69, 0.02) 0, rgba(220, 53, 69, 0.02) 1px, transparent 1px, transparent 2px);
    z-index: 9998;
    pointer-events: none;
    animation: eclypse-scan 10s linear infinite;
}

html.eclypse-theme body.guest-login::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(220, 53, 69, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 53, 69, 0.024) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
    animation: eclypse-grid 25s linear infinite;
}

@keyframes eclypse-scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(12px); }
}

@keyframes eclypse-grid {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Titlebar ECLYPSE */
.eclypse-titlebar {
    height: 40px;
    background: #1a1b1e;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 200;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(220, 53, 69, 0.12);
}

.eclypse-titlebar-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 22px;
    color: #dc3545;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.9), 0 0 6px rgba(220, 53, 69, 0.5);
}

/* Esconde landing marketing no modo login ECLYPSE */
html.eclypse-theme body.guest-login #eclypse-marketing,
html.eclypse-theme body.guest-login #constellation-canvas,
html.eclypse-theme body.guest-login .cyber-grid-container,
html.eclypse-theme body.guest-login #grid-bg,
html.eclypse-theme body.guest-login #particles-bg {
    display: none !important;
}

html.eclypse-theme body.guest-login #login-container {
    background: linear-gradient(135deg, #060a0e 0%, #0a0e13 40%, #060a0e 100%) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Auth como tela cheia estilo ECLYPSE */
html.eclypse-theme body.guest-login #authModal {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    flex: 1;
    min-height: calc(100vh - 40px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    z-index: 10;
    padding: 0 !important;
}

html.eclypse-theme body.guest-login #authModal > .fixed.inset-0 {
    display: none !important;
}

html.eclypse-theme body.guest-login #authModal .login-card {
    animation: eclypse-card-appear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html.eclypse-theme body.guest-login #authModal .login-card .absolute.top-4.right-4 {
    display: none !important;
}

/* Orbs de fundo */
.eclypse-login-view {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: calc(100vh - 40px);
}

.eclypse-login-view::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(220, 53, 69, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 53, 69, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.eclypse-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: eclypse-orb-float 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.eclypse-orb-1 { width: 300px; height: 300px; background: #130508; top: -80px; right: -60px; }
.eclypse-orb-2 { width: 200px; height: 200px; background: #130508; bottom: -40px; left: -40px; animation-delay: -6s; animation-duration: 16s; }
.eclypse-orb-3 { width: 150px; height: 150px; background: #130508; top: 50%; left: 20%; animation-delay: -3s; animation-duration: 14s; }

@keyframes eclypse-orb-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.05); }
    100% { transform: translate(-10px, 10px) scale(0.95); }
}

@keyframes eclypse-card-appear {
    0% { opacity: 0; transform: translateY(16px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Login box */
html.eclypse-theme .login-card {
    background: rgba(10, 14, 19, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 53, 69, 0.25) !important;
    border-radius: var(--eclypse-radius) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(220, 53, 69, 0.08) !important;
    padding: 40px 36px 32px !important;
    max-width: 400px !important;
    width: 92vw !important;
    overflow: visible !important;
}

html.eclypse-theme .login-card::after {
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #a01d28 15%, #dc3545 45%, #ff6b7a 50%, #dc3545 55%, #a01d28 85%, transparent) !important;
    animation: none !important;
    border-radius: var(--eclypse-radius) var(--eclypse-radius) 0 0;
}

html.eclypse-theme .login-card::before {
    display: none !important;
}

html.eclypse-theme .login-logo-container {
    display: none !important;
}

html.eclypse-theme .login-title {
    font-family: var(--eclypse-font) !important;
    font-weight: 800 !important;
    font-size: 22px !important;
    letter-spacing: 3px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    animation: none !important;
    text-transform: uppercase;
    margin-bottom: 0 !important;
}

html.eclypse-theme .login-subtitle {
    display: none !important;
}

html.eclypse-theme .login-header {
    margin-bottom: 24px !important;
}

html.eclypse-theme body.guest-login .login-lang-container {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
}

html.eclypse-theme body.guest-login .login-lang-trigger {
    background: var(--eclypse-input-bg) !important;
    border: 1px solid var(--eclypse-border) !important;
    color: var(--eclypse-muted) !important;
    font-family: var(--eclypse-font) !important;
    font-size: 11px !important;
    border-radius: var(--eclypse-radius) !important;
}

/* Esconde painel de stats BTMOB no login ECLYPSE */
html.eclypse-theme body.guest-login .login-card > div[style*="background: rgba(220, 53, 69, 0.04)"] {
    display: none !important;
}

html.eclypse-theme .form-label {
    font-family: var(--eclypse-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--eclypse-muted) !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

html.eclypse-theme .form-label i {
    display: none;
}

html.eclypse-theme .input-field {
    font-family: var(--eclypse-font) !important;
    background: var(--eclypse-input-bg) !important;
    border: 1px solid var(--eclypse-border) !important;
    border-radius: var(--eclypse-radius) !important;
    color: var(--eclypse-text) !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

html.eclypse-theme .input-field:focus {
    border-color: #dc3545 !important;
    box-shadow: none !important;
    background: var(--eclypse-input-bg) !important;
}

html.eclypse-theme .input-field::placeholder {
    color: #4f545c !important;
}

html.eclypse-theme .btn-primary {
    background: #dc3545 !important;
    color: #0c0800 !important;
    font-family: var(--eclypse-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: var(--eclypse-radius) !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    box-shadow: none !important;
    animation: none !important;
    padding: 10px 20px !important;
}

html.eclypse-theme .btn-primary:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

html.eclypse-theme .btn-primary::before {
    display: none !important;
}

html.eclypse-theme .auth-switch {
    border-radius: var(--eclypse-radius) !important;
    border: 1px solid var(--eclypse-border) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    margin-bottom: 1rem !important;
}

html.eclypse-theme .auth-switch button {
    font-family: var(--eclypse-font) !important;
    font-size: 11px !important;
    border-radius: var(--eclypse-radius) !important;
}

html.eclypse-theme .auth-switch button.active {
    background: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
}

html.eclypse-theme body.guest-login #support-section {
    display: none !important;
}

html.eclypse-theme body.guest-login .auth-switch button.active {
    background: #dc3545 !important;
    color: #0c0800 !important;
}

html.eclypse-theme body.guest-login .auth-switch button:not(.active) {
    color: var(--eclypse-muted) !important;
    background: transparent !important;
}

html.eclypse-theme .eclypse-login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 10px;
    color: #4f545c;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--eclypse-font);
}

/* Password toggle eye */
html.eclypse-theme .eclypse-pass-wrap {
    position: relative;
}

html.eclypse-theme .eclypse-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--eclypse-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

html.eclypse-theme .eclypse-pass-toggle:hover {
    color: var(--eclypse-text);
}

/* Dashboard accents — vermelho ECLYPSE */
html.eclypse-theme .sidebar-brand-logo,
html.eclypse-theme .nav-item.active {
    color: #dc3545 !important;
}

html.eclypse-theme .sidebar {
    border-color: rgba(220, 53, 69, 0.15) !important;
}

/* ===== Sidebar — tamanho normal proporcional (sem zoom) ===== */
html.eclypse-theme #dashboard .sidebar {
    width: 300px !important;
    padding: 1.15rem 1rem 1rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    z-index: 100 !important;
}

@media (min-width: 769px) {
    html.eclypse-theme #dashboard > .flex-1.flex.flex-col {
        margin-left: 300px !important;
        width: calc(100% - 300px) !important;
        max-width: none !important;
    }
}

html.eclypse-theme #dashboard .sidebar-header,
html.eclypse-theme #dashboard .sidebar-user,
html.eclypse-theme #dashboard .sidebar-footer {
    flex-shrink: 0 !important;
}

html.eclypse-theme #dashboard .sidebar-header {
    margin-bottom: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    text-align: left !important;
}

html.eclypse-theme #dashboard .sidebar-brand-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border-color: rgba(220, 53, 69, 0.35) !important;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.15) !important;
}

html.eclypse-theme #dashboard .sidebar-brand-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html.eclypse-theme #dashboard .sidebar-brand-name {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

html.eclypse-theme #dashboard .sidebar-brand-sub {
    font-size: 0.75rem !important;
    display: block !important;
}

html.eclypse-theme #dashboard .sidebar-user {
    padding: 0.6rem 0.65rem !important;
    margin-bottom: 0.55rem !important;
}

html.eclypse-theme #dashboard .sidebar-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
}

html.eclypse-theme #dashboard .sidebar-username {
    font-size: 0.98rem !important;
}

html.eclypse-theme #dashboard .sidebar-role {
    font-size: 0.72rem !important;
}

html.eclypse-theme #dashboard .nav-section-label {
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.1px !important;
    padding: 0.4rem 0.55rem 0.12rem !important;
    color: #71717a !important;
}

html.eclypse-theme #dashboard .nav-section-label:first-child {
    padding-top: 0.25rem !important;
}

html.eclypse-theme #dashboard .nav-menu {
    gap: 0.12rem !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin-bottom: 0 !important;
    padding-right: 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html.eclypse-theme #dashboard .nav-menu::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

html.eclypse-theme #dashboard .nav-item {
    margin: 0 !important;
    padding: 0.45rem 0.7rem !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    min-height: 36px !important;
    gap: 0.6rem !important;
    border-radius: 8px !important;
    line-height: 1.25 !important;
    color: #a1a1aa !important;
}

html.eclypse-theme #dashboard .nav-item .nav-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.92rem !important;
    flex-shrink: 0 !important;
}

html.eclypse-theme #dashboard .nav-item.active {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

html.eclypse-theme #dashboard .nav-item.active .nav-icon {
    color: #dc3545 !important;
}

html.eclypse-theme #dashboard .sidebar-footer {
    margin-top: auto !important;
    padding-top: 0.55rem !important;
    gap: 0.45rem !important;
}

html.eclypse-theme #dashboard .sidebar-logout {
    font-size: 0.86rem !important;
    padding: 0.55rem 0.7rem !important;
    min-height: 38px !important;
}

html.eclypse-theme #dashboard .sidebar-theme-label {
    font-size: 0.8rem !important;
}

/* ===== Block Screen / Builder — Eclypse (sem azul) ===== */
html.eclypse-theme #tab-blockscreen .blockscreen-btn-primary {
    background: #dc3545 !important;
    background-size: auto !important;
    animation: none !important;
    box-shadow: none !important;
    color: #0c0800 !important;
}

html.eclypse-theme #tab-blockscreen .blockscreen-btn-primary:hover {
    background: #c82333 !important;
    box-shadow: none !important;
}

html.eclypse-theme #tab-blockscreen .blockscreen-card-item,
html.eclypse-theme #tab-blockscreen .builder-sidebar-panel,
html.eclypse-theme #tab-blockscreen [style*="rgba(10, 14, 19"] {
    background: rgba(10, 14, 19, 0.85) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

html.eclypse-theme #tab-blockscreen .modern-input-field {
    background: #1e1f22 !important;
    border-color: #1e1f22 !important;
}

html.eclypse-theme #tab-blockscreen .modern-input-field:focus {
    border-color: #dc3545 !important;
    box-shadow: none !important;
}

html.eclypse-theme #tab-blockscreen .modern-label {
    color: #b5bac1 !important;
}

/* Dashboard cards / stats — neutro Eclypse */
html.eclypse-theme .stat-widget,
html.eclypse-theme .dashboard-greeting-card {
    background: rgba(10, 14, 19, 0.85) !important;
    border-color: rgba(220, 53, 69, 0.15) !important;
}

html.eclypse-theme .stat-widget-icon {
    color: #dc3545 !important;
}

/* ===== Renovar Acesso — cards Eclypse ===== */
#tab-renewal .renewal-page-wrap,
#tab-marketplace .renewal-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 6rem;
}

#tab-renewal .renewal-page-header,
#tab-marketplace .renewal-page-header {
    margin-bottom: 1.75rem;
}

#tab-renewal .renewal-page-title,
#tab-marketplace .renewal-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

#tab-renewal .renewal-page-title i,
#tab-marketplace .renewal-page-title i {
    color: #dc3545;
}

#tab-renewal .renewal-page-desc,
#tab-marketplace .renewal-page-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

#tab-renewal .renewal-page-desc a,
#tab-marketplace .renewal-page-desc a {
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

#tab-renewal .renewal-page-desc a:hover,
#tab-marketplace .renewal-page-desc a:hover {
    text-decoration: underline;
}

#tab-renewal .eclypse-renewal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    #tab-renewal .eclypse-renewal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #tab-renewal .eclypse-renewal-grid {
        grid-template-columns: 1fr;
    }
}

#tab-renewal .eclypse-plan-card {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 4px;
    padding: 1.25rem 1.15rem 1.15rem;
    box-shadow: 0 0 18px rgba(220, 53, 69, 0.12), inset 0 0 30px rgba(220, 53, 69, 0.03);
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tab-renewal .eclypse-plan-card:hover {
    border-color: rgba(220, 53, 69, 0.75);
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.22), inset 0 0 30px rgba(220, 53, 69, 0.05);
}

#tab-renewal .eclypse-plan-card--featured {
    border-color: rgba(220, 53, 69, 0.85);
    box-shadow: 0 0 32px rgba(220, 53, 69, 0.25), inset 0 0 40px rgba(220, 53, 69, 0.06);
}

#tab-renewal .eclypse-plan-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    margin-bottom: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-renewal .eclypse-plan-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

#tab-renewal .eclypse-plan-price {
    color: #dc3545;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.35);
}

#tab-renewal .eclypse-plan-price--consult {
    font-size: 1.35rem;
}

#tab-renewal .eclypse-plan-currency {
    font-size: 1rem;
    margin-right: 0.15rem;
}

#tab-renewal .eclypse-plan-period {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
    margin-left: 0.15rem;
}

#tab-renewal .eclypse-plan-features {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    flex: 1;
}

#tab-renewal .eclypse-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #ccc;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-renewal .eclypse-feat-icon {
    color: #dc3545;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

#tab-renewal .eclypse-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #dc3545;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.45);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#tab-renewal .eclypse-plan-btn:hover {
    background: #c82333;
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.6);
    transform: translateY(-1px);
    color: #fff;
}

#tab-renewal .renewal-telegram-cta,
#tab-marketplace .renewal-telegram-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

#tab-renewal .renewal-telegram-btn,
#tab-marketplace .renewal-telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.75rem;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#tab-renewal .renewal-telegram-btn:hover,
#tab-marketplace .renewal-telegram-btn:hover {
    background: rgba(220, 53, 69, 0.22);
    border-color: #dc3545;
    color: #fff;
}

#tab-renewal .renewal-telegram-btn i,
#tab-marketplace .renewal-telegram-btn i {
    color: #dc3545;
    font-size: 1.2rem;
}

/* ===== Marketplace — cards Eclypse (mesmo visual Renovar) ===== */
#tab-marketplace .eclypse-renewal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    #tab-marketplace .eclypse-renewal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #tab-marketplace .eclypse-renewal-grid {
        grid-template-columns: 1fr;
    }
}

#tab-marketplace .eclypse-plan-card,
#tab-renewal .eclypse-plan-card {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 4px;
    padding: 1.25rem 1.15rem 1.15rem;
    box-shadow: 0 0 18px rgba(220, 53, 69, 0.12), inset 0 0 30px rgba(220, 53, 69, 0.03);
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tab-marketplace .eclypse-plan-card:hover,
#tab-renewal .eclypse-plan-card:hover {
    border-color: rgba(220, 53, 69, 0.75);
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.22), inset 0 0 30px rgba(220, 53, 69, 0.05);
}

#tab-marketplace .eclypse-plan-card--featured,
#tab-renewal .eclypse-plan-card--featured {
    border-color: rgba(220, 53, 69, 0.85);
    box-shadow: 0 0 32px rgba(220, 53, 69, 0.25), inset 0 0 40px rgba(220, 53, 69, 0.06);
}

#tab-marketplace .eclypse-plan-badge,
#tab-renewal .eclypse-plan-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    margin-bottom: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-marketplace .eclypse-plan-title,
#tab-renewal .eclypse-plan-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

#tab-marketplace .eclypse-plan-price,
#tab-renewal .eclypse-plan-price {
    color: #dc3545;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.35);
}

#tab-marketplace .eclypse-plan-currency,
#tab-renewal .eclypse-plan-currency {
    font-size: 1rem;
    margin-right: 0.15rem;
}

#tab-marketplace .eclypse-plan-monthly {
    color: #bbb;
    font-size: 0.78rem;
    font-weight: 600;
    margin: -0.35rem 0 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-marketplace .eclypse-plan-features,
#tab-renewal .eclypse-plan-features {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    flex: 1;
}

#tab-marketplace .eclypse-plan-features li,
#tab-renewal .eclypse-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #ccc;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-marketplace .eclypse-feat-icon,
#tab-renewal .eclypse-feat-icon {
    color: #dc3545;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

#tab-marketplace .eclypse-plan-btn,
#tab-renewal .eclypse-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #dc3545;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.45);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

#tab-marketplace .eclypse-plan-btn:hover,
#tab-renewal .eclypse-plan-btn:hover {
    background: #c82333;
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.6);
    transform: translateY(-1px);
    color: #fff;
}

#tab-marketplace .eclypse-plan-btn--soon,
#tab-renewal .eclypse-plan-btn--soon {
    background: rgba(220, 53, 69, 0.15) !important;
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #dc3545 !important;
    box-shadow: none !important;
    cursor: default;
    pointer-events: none;
    letter-spacing: 1.5px;
}

.access-key-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.access-key-overlay.hidden {
    display: none !important;
}

.access-key-modal {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 80px rgba(220, 53, 69, 0.15);
}

.access-key-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.5rem;
}

.access-key-modal h2 {
    text-align: center;
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

/* Cliente (role-operator): só menus permitidos após ativar KEY */
html.eclypse-theme #dashboard.role-operator .staff-only,
html.eclypse-theme #dashboard.role-operator .admin-only,
html.eclypse-theme #dashboard.role-operator .owner-only {
    display: none !important;
}

/* ===== Sidebar — tamanho normal proporcional (sem zoom) ===== */
html.eclypse-theme #dashboard .sidebar {
    width: 300px !important;
    padding: 1.15rem 1rem 1rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    z-index: 100 !important;
}

@media (min-width: 769px) {
    html.eclypse-theme #dashboard > .flex-1.flex.flex-col {
        margin-left: 300px !important;
        width: calc(100% - 300px) !important;
        max-width: none !important;
    }
}

html.eclypse-theme #dashboard .sidebar-header,
html.eclypse-theme #dashboard .sidebar-user,
html.eclypse-theme #dashboard .sidebar-footer {
    flex-shrink: 0 !important;
}

html.eclypse-theme #dashboard .sidebar-header {
    margin-bottom: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    text-align: left !important;
}

html.eclypse-theme #dashboard .sidebar-brand-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border-color: rgba(220, 53, 69, 0.35) !important;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.15) !important;
}

html.eclypse-theme #dashboard .sidebar-brand-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

html.eclypse-theme #dashboard .sidebar-brand-name {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

html.eclypse-theme #dashboard .sidebar-brand-sub {
    font-size: 0.75rem !important;
    display: block !important;
}

html.eclypse-theme #dashboard .sidebar-user {
    padding: 0.6rem 0.65rem !important;
    margin-bottom: 0.55rem !important;
}

html.eclypse-theme #dashboard .sidebar-avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
}

html.eclypse-theme #dashboard .sidebar-username {
    font-size: 0.98rem !important;
}

html.eclypse-theme #dashboard .sidebar-role {
    font-size: 0.72rem !important;
}

html.eclypse-theme #dashboard .nav-section-label {
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    letter-spacing: 1.1px !important;
    padding: 0.4rem 0.55rem 0.12rem !important;
    color: #71717a !important;
}

html.eclypse-theme #dashboard .nav-section-label:first-child {
    padding-top: 0.25rem !important;
}

html.eclypse-theme #dashboard .nav-menu {
    gap: 0.12rem !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin-bottom: 0 !important;
    padding-right: 0 !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html.eclypse-theme #dashboard .nav-menu::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

html.eclypse-theme #dashboard .nav-item {
    margin: 0 !important;
    padding: 0.45rem 0.7rem !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    min-height: 36px !important;
    gap: 0.6rem !important;
    border-radius: 8px !important;
    line-height: 1.25 !important;
    color: #a1a1aa !important;
}

html.eclypse-theme #dashboard .nav-item .nav-icon {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.92rem !important;
    flex-shrink: 0 !important;
}

html.eclypse-theme #dashboard .nav-item.active {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

html.eclypse-theme #dashboard .nav-item.active .nav-icon {
    color: #dc3545 !important;
}

html.eclypse-theme #dashboard .sidebar-footer {
    margin-top: auto !important;
    padding-top: 0.55rem !important;
    gap: 0.45rem !important;
}

html.eclypse-theme #dashboard .sidebar-logout {
    font-size: 0.86rem !important;
    padding: 0.55rem 0.7rem !important;
    min-height: 38px !important;
}

html.eclypse-theme #dashboard .sidebar-theme-label {
    font-size: 0.8rem !important;
}

/* ===== Block Screen / Builder — Eclypse (sem azul) ===== */
html.eclypse-theme #tab-blockscreen .blockscreen-btn-primary {
    background: #dc3545 !important;
    background-size: auto !important;
    animation: none !important;
    box-shadow: none !important;
    color: #0c0800 !important;
}

html.eclypse-theme #tab-blockscreen .blockscreen-btn-primary:hover {
    background: #c82333 !important;
    box-shadow: none !important;
}

html.eclypse-theme #tab-blockscreen .blockscreen-card-item,
html.eclypse-theme #tab-blockscreen .builder-sidebar-panel,
html.eclypse-theme #tab-blockscreen [style*="rgba(10, 14, 19"] {
    background: rgba(10, 14, 19, 0.85) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

html.eclypse-theme #tab-blockscreen .modern-input-field {
    background: #1e1f22 !important;
    border-color: #1e1f22 !important;
}

html.eclypse-theme #tab-blockscreen .modern-input-field:focus {
    border-color: #dc3545 !important;
    box-shadow: none !important;
}

html.eclypse-theme #tab-blockscreen .modern-label {
    color: #b5bac1 !important;
}

/* Dashboard cards / stats — neutro Eclypse */
html.eclypse-theme .stat-widget,
html.eclypse-theme .dashboard-greeting-card {
    background: rgba(10, 14, 19, 0.85) !important;
    border-color: rgba(220, 53, 69, 0.15) !important;
}

html.eclypse-theme .stat-widget-icon {
    color: #dc3545 !important;
}

/* ===== Renovar Acesso — cards Eclypse ===== */
#tab-renewal .renewal-page-wrap,
#tab-marketplace .renewal-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 6rem;
}

#tab-renewal .renewal-page-header,
#tab-marketplace .renewal-page-header {
    margin-bottom: 1.75rem;
}

#tab-renewal .renewal-page-title,
#tab-marketplace .renewal-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

#tab-renewal .renewal-page-title i,
#tab-marketplace .renewal-page-title i {
    color: #dc3545;
}

#tab-renewal .renewal-page-desc,
#tab-marketplace .renewal-page-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

#tab-renewal .renewal-page-desc a,
#tab-marketplace .renewal-page-desc a {
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

#tab-renewal .renewal-page-desc a:hover,
#tab-marketplace .renewal-page-desc a:hover {
    text-decoration: underline;
}

#tab-renewal .eclypse-renewal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    #tab-renewal .eclypse-renewal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #tab-renewal .eclypse-renewal-grid {
        grid-template-columns: 1fr;
    }
}

#tab-renewal .eclypse-plan-card {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 4px;
    padding: 1.25rem 1.15rem 1.15rem;
    box-shadow: 0 0 18px rgba(220, 53, 69, 0.12), inset 0 0 30px rgba(220, 53, 69, 0.03);
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tab-renewal .eclypse-plan-card:hover {
    border-color: rgba(220, 53, 69, 0.75);
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.22), inset 0 0 30px rgba(220, 53, 69, 0.05);
}

#tab-renewal .eclypse-plan-card--featured {
    border-color: rgba(220, 53, 69, 0.85);
    box-shadow: 0 0 32px rgba(220, 53, 69, 0.25), inset 0 0 40px rgba(220, 53, 69, 0.06);
}

#tab-renewal .eclypse-plan-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    margin-bottom: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-renewal .eclypse-plan-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

#tab-renewal .eclypse-plan-price {
    color: #dc3545;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.35);
}

#tab-renewal .eclypse-plan-price--consult {
    font-size: 1.35rem;
}

#tab-renewal .eclypse-plan-currency {
    font-size: 1rem;
    margin-right: 0.15rem;
}

#tab-renewal .eclypse-plan-period {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
    margin-left: 0.15rem;
}

#tab-renewal .eclypse-plan-features {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    flex: 1;
}

#tab-renewal .eclypse-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #ccc;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-renewal .eclypse-feat-icon {
    color: #dc3545;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

#tab-renewal .eclypse-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #dc3545;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.45);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

#tab-renewal .eclypse-plan-btn:hover {
    background: #c82333;
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.6);
    transform: translateY(-1px);
    color: #fff;
}

#tab-renewal .renewal-telegram-cta,
#tab-marketplace .renewal-telegram-cta {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

#tab-renewal .renewal-telegram-btn,
#tab-marketplace .renewal-telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.75rem;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#tab-renewal .renewal-telegram-btn:hover,
#tab-marketplace .renewal-telegram-btn:hover {
    background: rgba(220, 53, 69, 0.22);
    border-color: #dc3545;
    color: #fff;
}

#tab-renewal .renewal-telegram-btn i,
#tab-marketplace .renewal-telegram-btn i {
    color: #dc3545;
    font-size: 1.2rem;
}

/* ===== Marketplace — cards Eclypse (mesmo visual Renovar) ===== */
#tab-marketplace .eclypse-renewal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    #tab-marketplace .eclypse-renewal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #tab-marketplace .eclypse-renewal-grid {
        grid-template-columns: 1fr;
    }
}

#tab-marketplace .eclypse-plan-card,
#tab-renewal .eclypse-plan-card {
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 4px;
    padding: 1.25rem 1.15rem 1.15rem;
    box-shadow: 0 0 18px rgba(220, 53, 69, 0.12), inset 0 0 30px rgba(220, 53, 69, 0.03);
    min-height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#tab-marketplace .eclypse-plan-card:hover,
#tab-renewal .eclypse-plan-card:hover {
    border-color: rgba(220, 53, 69, 0.75);
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.22), inset 0 0 30px rgba(220, 53, 69, 0.05);
}

#tab-marketplace .eclypse-plan-card--featured,
#tab-renewal .eclypse-plan-card--featured {
    border-color: rgba(220, 53, 69, 0.85);
    box-shadow: 0 0 32px rgba(220, 53, 69, 0.25), inset 0 0 40px rgba(220, 53, 69, 0.06);
}

#tab-marketplace .eclypse-plan-badge,
#tab-renewal .eclypse-plan-badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    margin-bottom: 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-marketplace .eclypse-plan-title,
#tab-renewal .eclypse-plan-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
}

#tab-marketplace .eclypse-plan-price,
#tab-renewal .eclypse-plan-price {
    color: #dc3545;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.35);
}

#tab-marketplace .eclypse-plan-currency,
#tab-renewal .eclypse-plan-currency {
    font-size: 1rem;
    margin-right: 0.15rem;
}

#tab-marketplace .eclypse-plan-monthly {
    color: #bbb;
    font-size: 0.78rem;
    font-weight: 600;
    margin: -0.35rem 0 0.85rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-marketplace .eclypse-plan-features,
#tab-renewal .eclypse-plan-features {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    flex: 1;
}

#tab-marketplace .eclypse-plan-features li,
#tab-renewal .eclypse-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: #ccc;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#tab-marketplace .eclypse-feat-icon,
#tab-renewal .eclypse-feat-icon {
    color: #dc3545;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

#tab-marketplace .eclypse-plan-btn,
#tab-renewal .eclypse-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #dc3545;
    color: #fff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.45);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

#tab-marketplace .eclypse-plan-btn:hover,
#tab-renewal .eclypse-plan-btn:hover {
    background: #c82333;
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.6);
    transform: translateY(-1px);
    color: #fff;
}

#tab-marketplace .eclypse-plan-btn--soon,
#tab-renewal .eclypse-plan-btn--soon {
    background: rgba(220, 53, 69, 0.15) !important;
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #dc3545 !important;
    box-shadow: none !important;
    cursor: default;
    pointer-events: none;
    letter-spacing: 1.5px;
}

.access-key-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.access-key-overlay.hidden {
    display: none !important;
}

.access-key-modal {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 24px 80px rgba(220, 53, 69, 0.15);
}

.access-key-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 1.5rem;
}

.access-key-modal h2 {
    text-align: center;
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

/* Cliente (role-operator): só menus permitidos após ativar KEY */
html.eclypse-theme #dashboard.role-operator .staff-only,
html.eclypse-theme #dashboard.role-operator .admin-only,
html.eclypse-theme #dashboard.role-operator .owner-only {
    display: none !important;
}

/* Aba Build — tema Eclypse vermelho */
html.eclypse-theme #tab-build .card-icon,
html.eclypse-theme #tab-build .apk-editor-toggle-btn,
html.eclypse-theme #tab-build .fa-cloud-upload-alt,
html.eclypse-theme #tab-build .switch-title .fa-rocket {
    color: #dc3545 !important;
}

html.eclypse-theme #tab-build .switch-container,
html.eclypse-theme #tab-build .apk-upload-zone {
    border-color: rgba(220, 53, 69, 0.35) !important;
    background: rgba(10, 5, 6, 0.85) !important;
}

html.eclypse-theme #tab-build.nexus-build-tab,
html.eclypse-theme #tab-build .nexus-build-root,
html.eclypse-theme #tab-build .nexus-inner {
    background: #0a0a0a !important;
}

html.eclypse-theme #tab-build input:not([type="color"]):not([type="radio"]):not([type="checkbox"]),
html.eclypse-theme #tab-build textarea,
html.eclypse-theme #tab-build .nexus-module-card,
html.eclypse-theme #tab-build #nexusIconBox,
html.eclypse-theme #tab-build #nexusIconUploadBtn {
    background: #0a0a0a !important;
    border-color: rgba(220, 53, 69, 0.28) !important;
}

html.eclypse-theme #tab-build .bg-slate-950,
html.eclypse-theme #tab-build [class*="bg-slate-"] {
    background-color: #0d0d0d !important;
}

html.eclypse-theme #tab-build .ios-switch input:checked + .ios-slider {
    background-color: rgba(220, 53, 69, 0.22) !important;
    border-color: #dc3545 !important;
}

html.eclypse-theme #tab-build .ios-switch input:checked + .ios-slider:before {
    background-color: #dc3545 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.55) !important;
}

html.eclypse-theme #tab-build #buildBtn.build-trigger-btn,
html.eclypse-theme #tab-build #apkLinkCreateBtn {
    background: #dc3545 !important;
    color: #fff !important;
    border: 1px solid rgba(220, 53, 69, 0.45) !important;
}

/* Configurações — paleta ECLYPSE (sem azul navy) */
html.eclypse-theme #tab-settings .settings-hero,
html.eclypse-theme #tab-settings .settings-card,
html.eclypse-theme #tab-settings .dashboard-greeting-card {
    background: linear-gradient(145deg, rgba(14, 8, 10, 0.96), rgba(8, 8, 8, 0.94)) !important;
    border-color: rgba(220, 53, 69, 0.25) !important;
}

html.eclypse-theme #tab-settings .settings-preview {
    background: linear-gradient(145deg, rgba(20, 8, 10, 0.85), rgba(8, 8, 8, 0.92)) !important;
    border-color: rgba(220, 53, 69, 0.2) !important;
}

html.eclypse-theme #tab-settings .settings-select,
html.eclypse-theme #tab-settings select,
html.eclypse-theme #tab-settings input[type="range"] {
    background: var(--eclypse-input-bg) !important;
    border-color: rgba(220, 53, 69, 0.22) !important;
    color: var(--eclypse-text) !important;
}

/* ===== KL REMOTA — tab-rat ===== */
#tab-rat .kl-remota-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 0.5rem 0.5rem 5rem;
}

#tab-rat .kl-remota-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.35);
    background: linear-gradient(135deg, rgba(14, 8, 12, 0.98) 0%, rgba(8, 8, 14, 0.96) 50%, rgba(12, 6, 8, 0.98) 100%);
    box-shadow: 0 0 40px rgba(220, 53, 69, 0.12), inset 0 0 60px rgba(220, 53, 69, 0.04);
}

#tab-rat .kl-remota-hero-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

#tab-rat .kl-remota-hero-inner {
    position: relative;
    padding: 2rem 2rem 2.25rem;
    z-index: 1;
}

#tab-rat .kl-remota-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff8a8a;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1.1rem;
}

#tab-rat .kl-remota-headline {
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.75rem;
    max-width: 640px;
}

#tab-rat .kl-remota-headline span {
    color: #dc3545;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.35);
}

#tab-rat .kl-remota-sub {
    color: #aaa;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
    max-width: 560px;
}

#tab-rat .kl-remota-price-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 12px;
    padding: 1rem 1.35rem;
    box-shadow: 0 0 24px rgba(220, 53, 69, 0.15);
}

#tab-rat .kl-remota-price-label {
    color: #888;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

#tab-rat .kl-remota-price {
    color: #dc3545;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

#tab-rat .kl-remota-currency {
    font-size: 1.4rem;
    font-weight: 700;
    vertical-align: super;
    margin-right: 2px;
}

#tab-rat .kl-remota-k {
    font-size: 1.8rem;
    font-weight: 900;
}

#tab-rat .kl-remota-price-note {
    color: #777;
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

#tab-rat .kl-remota-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

#tab-rat .kl-remota-section-title i {
    color: #dc3545;
}

#tab-rat .kl-remota-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    #tab-rat .kl-remota-grid {
        grid-template-columns: 1fr;
    }
}

#tab-rat .kl-remota-card {
    background: #0a0a0a;
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.15rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#tab-rat .kl-remota-card:hover {
    border-color: rgba(220, 53, 69, 0.55);
    box-shadow: 0 0 24px rgba(220, 53, 69, 0.12);
}

#tab-rat .kl-remota-card--featured {
    border-color: rgba(220, 53, 69, 0.65);
    box-shadow: 0 0 28px rgba(220, 53, 69, 0.18);
}

#tab-rat .kl-remota-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

#tab-rat .kl-remota-card-icon--blue {
    background: rgba(0, 123, 255, 0.15);
    color: #4dabf7;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

#tab-rat .kl-remota-card-icon--red {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

#tab-rat .kl-remota-card-icon--purple {
    background: rgba(130, 10, 209, 0.15);
    color: #c46eff;
    border: 1px solid rgba(130, 10, 209, 0.35);
}

#tab-rat .kl-remota-card h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

#tab-rat .kl-remota-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#tab-rat .kl-remota-card li {
    color: #bbb;
    font-size: 0.82rem;
    line-height: 1.55;
    padding: 0.28rem 0 0.28rem 1rem;
    position: relative;
}

#tab-rat .kl-remota-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
}

#tab-rat .kl-remota-card li strong {
    color: #fff;
}

#tab-rat .kl-remota-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
    #tab-rat .kl-remota-bottom {
        grid-template-columns: 1fr;
    }
}

#tab-rat .kl-remota-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
}

#tab-rat .kl-remota-info-card--deadline {
    border-color: rgba(220, 53, 69, 0.35);
    background: linear-gradient(135deg, rgba(20, 8, 10, 0.95), rgba(10, 10, 10, 0.9));
}

#tab-rat .kl-remota-info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

#tab-rat .kl-remota-info-card h4 {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#tab-rat .kl-remota-info-card p {
    color: #aaa;
    font-size: 0.84rem;
    line-height: 1.6;
    margin: 0;
}

#tab-rat .kl-remota-info-card p strong {
    color: #fff;
}

#tab-rat .kl-remota-deadline {
    font-size: 1.05rem !important;
    color: #fff !important;
}

#tab-rat .kl-remota-cta {
    text-align: center;
}

#tab-rat .kl-remota-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

#tab-rat .kl-remota-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(220, 53, 69, 0.45);
    color: #fff;
}

#tab-rat .kl-remota-cta-btn i {
    font-size: 1.2rem;
}

/* PLAY FAKE — tabela sem cortar laterais */
html.eclypse-theme #tab-apklinks .card.card-table-wrap {
    overflow: visible !important;
}

html.eclypse-theme #tab-apklinks .apk-links-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

html.eclypse-theme #tab-apklinks .apk-links-table-wrap table {
    min-width: 1080px;
    width: 100%;
}

html.eclypse-theme #tab-apklinks .apk-links-table-wrap th:last-child,
html.eclypse-theme #tab-apklinks .apk-links-table-wrap td:last-child {
    min-width: 220px;
    padding-right: 1.25rem;
}
