:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --red: #ff0000;
    --red-hover: #cc0000;
    --blue: #0088ff;
    --blue-hover: #0066cc;
    --border: #222222;
    --shadow: rgba(255, 0, 0, 0.2);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    transition: background 0.3s, color 0.2s;
    overflow-x: hidden;
}

body.light {
    --bg-dark: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s;
}
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-right-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-bar-container {
    width: 80%;
    max-width: 300px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin-top: 25px;
    overflow: hidden;
}
.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--blue));
    transition: width 0.2s;
}
.loading-text {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}
.cookie-buttons {
    display: flex;
    gap: 10px;
}
.btn-primary {
    background: var(--red);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: var(--red-hover);
    transform: scale(1.02);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,0,0,0.1);
}
.hidden {
    display: none !important;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}
.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}
.theme-btn:hover {
    transform: scale(1.05);
    border-color: var(--red);
}

/* Menu Hamburguer */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}
.menu-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}
.menu-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    border-right: 2px solid var(--red);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    overflow-y: auto;
}
.sidebar.open {
    transform: translateX(0);
}
.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-header h3 {
    color: var(--red);
    font-size: 1.5rem;
}
.close-sidebar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
}
.sidebar ul {
    list-style: none;
    padding: 20px;
}
.sidebar li {
    margin: 15px 0;
}
.sidebar a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
}
.sidebar a:hover {
    background: linear-gradient(90deg, rgba(255,0,0,0.1), transparent);
    color: var(--red);
    padding-left: 15px;
}

/* Main Content */
#app {
    padding: 100px 24px 80px;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100vh;
}
#tab-content {
    animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography */
h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--red), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-left: 4px solid var(--red);
    padding-left: 15px;
}
h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.section-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Cards Grid */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    flex: 1;
    min-width: 220px;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: 0 8px 25px var(--shadow);
}
.card h3 {
    color: var(--red);
}
.card p {
    color: var(--text-secondary);
    margin: 10px 0;
}
.card .status {
    font-size: 0.8rem;
    color: #ffaa00;
    margin: 8px 0;
}
.card button {
    margin-top: 12px;
}

/* Bots Grid */
.bots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}
.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    width: calc(33% - 16px);
    min-width: 200px;
    transition: all 0.3s;
    text-align: center;
}
.bot-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
    box-shadow: 0 8px 25px rgba(0,136,255,0.2);
}
.bot-card h3 {
    color: var(--blue);
}
.bot-card .status {
    font-size: 0.75rem;
    color: #ffaa00;
    margin: 8px 0;
}
.bot-card button {
    margin-top: 12px;
}

/* Planos Grid */
.planos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}
.plano-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: all 0.3s;
}
.plano-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
}
.plano-card.destaque {
    border: 2px solid var(--red);
    box-shadow: 0 0 20px var(--shadow);
}
.plano-card h3 {
    color: var(--red);
    font-size: 1.5rem;
}
.preco {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 15px 0;
}
.preco small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.plano-card ul {
    list-style: none;
    margin: 20px 0;
}
.plano-card li {
    padding: 8px 0;
    color: var(--text-secondary);
}
.plano-card .btn-primary {
    width: 100%;
}

/* Parceiros Grid */
.parceiros-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}
.parceiro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    transition: all 0.2s;
}
.parceiro-card:hover {
    border-color: var(--red);
}
.parceiro-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.parceiro-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--red), var(--blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.parceiro-detalhes strong {
    font-size: 1rem;
}
.parceiro-detalhes p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.btn-ir {
    background: var(--red);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-ir:hover {
    background: var(--red-hover);
    transform: scale(1.02);
}

/* Status e API */
.status-card, .api-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.status-badge {
    background: #ffaa00;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}
.status-badge.offline {
    background: #ff0000;
}
.badge-dev {
    background: #0088ff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-block;
    margin-top: 15px;
}

/* Contato */
.contato-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 20px;
}
.contato-card .email {
    font-size: 1.2rem;
    color: var(--blue);
    margin: 15px 0;
}
.contato-card button {
    margin-top: 10px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.7;
    transition: all 0.2s;
}
.back-to-top:hover {
    opacity: 1;
    transform: scale(1.05);
}
.back-to-top.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    #app { padding: 90px 16px 60px; }
    .bot-card { width: 100%; }
    .parceiro-card { flex-direction: column; text-align: center; }
    .parceiro-info { flex-direction: column; }
    .cookie-banner { flex-direction: column; text-align: center; }
}
