/* ========================================================
   ESTRUTURA ORIGINAL MELHORADA (ULTRA PREMIUM)
   ======================================================== */
:root {
    --bg-dark: #070b14; /* Escurecido para contraste OLED premium */
    --bg-card: rgba(30, 41, 59, 0.4); /* Efeito Glassmorphism */
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --emerald: #10b981;
    --emerald-dark: #059669;
    --emerald-glow: 0 0 20px rgba(16, 185, 129, 0.3); /* Novo: Brilho Premium */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08); /* Bordas mais sutis */
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.6); /* Sombra mais profunda */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Transição suave e orgânica */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 50%); /* Ambient Light */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(7, 11, 20, 0.7); /* Glass atualizado */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}
.logo i {
    -webkit-text-fill-color: var(--emerald); /* Mantém ícone verde */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Botoes */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
    color: #fff;
    box-shadow: var(--emerald-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--emerald);
    color: var(--emerald);
}

.btn-outline:hover {
    background-color: rgba(16, 185, 129, 0.1);
    box-shadow: var(--emerald-glow);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Views de Seção */
.view {
    display: none;
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.view.active {
    display: block;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 5% 6rem;
    background: radial-gradient(circle at top, rgba(30, 41, 59, 0.5) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* Cards de Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 5%;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--bg-card-hover);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--emerald), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

/* Tabela de Planos */
.section-header {
    text-align: center;
    padding: 5rem 5% 3rem;
}
.section-header h2 { font-size: 2.5rem; font-weight: 800; }

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 5% 5rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    width: 340px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.premium {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.25);
    z-index: 2;
}
.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--emerald-glow);
    letter-spacing: 0.5px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: #fff;
}

.price span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-card ul li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
}

.pricing-card ul li i {
    color: var(--emerald);
    font-size: 1.1rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px;
    border-radius: 50%;
}

/* Dashboard UI */
.dashboard-layout {
    display: flex;
    min-height: 90vh;
}

.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    padding: 2.5rem 0;
    border-right: 1px solid var(--border-color);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 1.2rem 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    transition: var(--transition);
    font-weight: 500;
}

.sidebar ul li:hover, .sidebar ul li.active {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    color: #fff;
    border-right: 3px solid var(--emerald);
}
.sidebar ul li.active i {
    color: var(--emerald);
}

.dashboard-content {
    flex: 1;
    padding: 3rem 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--emerald), transparent);
    opacity: 0;
    transition: var(--transition);
}
.stat-card:hover::before { opacity: 1; }

.stat-card h4 { color: var(--text-muted); font-weight: 500; }

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1rem 0;
    letter-spacing: -1px;
}

.text-emerald {
    color: var(--emerald);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.trend { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px;}
.trend i { color: var(--emerald); }

.recent-activity {
    margin-top: 3rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.activity-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
}

.activity-table th {
    color: var(--text-muted);
    font-weight: 500;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.activity-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-weight: 500;
}
.activity-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.badge-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

footer {
    background: rgba(7, 11, 20, 0.9);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* ========================================================
   NOVAS ADIÇÕES: LOGIN, REGISTRO, MODAL, TOAST E FORMS
   ======================================================== */

/* Auth Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-premium);
}

/* Inputs Premium */
.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-premium {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.input-premium:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

/* Modal PIX / Geral */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111827;
    padding: 3rem;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-premium), var(--emerald-glow);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.close-modal:hover { color: #fff; }

/* Sistema de Toasts (Notificações) */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
}

.toast {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--emerald);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }

/* Responsividade Aprimorada */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .dashboard-content { padding: 2rem; }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero { padding: 4rem 5% 3rem; }
    
    .dashboard-layout { flex-direction: column; }
    
    .sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        white-space: nowrap;
    }
    .sidebar ul { display: flex; }
    .sidebar ul li { padding: 0.8rem 1.5rem; border-right: none; border-bottom: 3px solid transparent; }
    .sidebar ul li.active { border-right: none; border-bottom-color: var(--emerald); background: transparent;}
    
    .dashboard-content { padding: 1.5rem; }
    .pricing-card { width: 100%; }
    .pricing-card.premium { transform: scale(1); }
    .pricing-card.premium:hover { transform: translateY(-5px); }
    
    #toast-container {
        bottom: 1rem; right: 1rem; left: 1rem;
    }
    .toast { width: 100%; justify-content: center; }
}
