:root {
    /* --- PALETA NOVA (ROXO/DARK) --- */
    --bg-body: #050505;       /* Fundo Principal (Mais escuro) */
    --bg-panel: #0F0F11;      /* Fundo de Cards/Sidebar */
    --bg-input: #18181b;      /* Campos de formulário */
    --border: #27272a;        /* Bordas sutis */
    
    --primary: #8b5cf6;       /* Roxo Principal (Violet 500) */
    --primary-hover: #7c3aed; /* Roxo Escuro */
    --secondary: #3b82f6;     /* Azul (para degradês) */
    
    --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;    /* Cinza Azulado */
    --danger: #ef4444;

    --header-height: 70px;
    --sidebar-width: 260px;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-main); font-size: 14px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- COMPONENTES GLOBAIS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
    border: none;
}
.btn-primary, .btn-gradient {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--gradient-glow);
}
.btn-primary:hover, .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}
.btn-outline {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted);
}
.btn-outline:hover {
    border-color: var(--primary); color: white; background: rgba(139, 92, 246, 0.05);
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 6px; }

/* --- SISTEMA: LAYOUT (DASHBOARD/ADMIN) --- */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; padding: 25px;
    overflow-y: auto;
}
.logo-area { 
    font-size: 1.2rem; font-weight: 800; color: var(--text-main); 
    margin-bottom: 40px; display: flex; align-items: center; gap: 10px; 
}
.filter-group { margin-bottom: 30px; }
.filter-title { 
    color: var(--text-muted); font-size: 0.75rem; font-weight: 700; 
    margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.05em; 
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-btn {
    background: var(--bg-input); color: var(--text-muted);
    padding: 8px 14px; border-radius: 8px; font-size: 0.85rem;
    border: 1px solid transparent; transition: 0.2s;
}
.tag-btn:hover { background: #27272a; color: white; }
.tag-btn.active { 
    background: rgba(139, 92, 246, 0.1); 
    border-color: var(--primary); color: var(--primary); 
}

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; position: relative; background: var(--bg-body); }

/* Header */
.top-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px); z-index: 10;
}
.search-bar {
    display: flex; align-items: center; background: var(--bg-input);
    padding: 10px 15px; border-radius: 8px; width: 350px;
    border: 1px solid var(--border); transition: 0.2s;
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2); }
.search-bar input { background: transparent; border: none; color: white; margin-left: 10px; flex: 1; }

.user-actions { display: flex; align-items: center; gap: 20px; }
.btn-new {
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-main); padding: 8px 16px; border-radius: 8px;
    font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
}
.user-avatar { 
    width: 38px; height: 38px; background: var(--gradient-main); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    color: white; font-weight: bold; border: 2px solid var(--bg-body);
}

/* Grid & Cards */
.scroll-area { flex: 1; overflow-y: auto; padding: 40px; }
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px;
}
.card {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: 0.3s; position: relative;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5); }
.card-thumb { height: 180px; overflow: hidden; position: relative; background: #000; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.3s; }
.card:hover .card-thumb img { opacity: 1; }
.card-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    opacity: 0; transition: 0.2s; backdrop-filter: blur(2px);
}
.card:hover .card-overlay { opacity: 1; }
.card-info { padding: 20px; }
.card-title { font-weight: 600; font-size: 1rem; margin-bottom: 5px; color: white; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between; }

/* --- LANDING PAGE --- */
.hero { padding: 140px 5% 100px; text-align: center; background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 60%); }
.hero h1 { 
    font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; line-height: 1.1; 
    background: linear-gradient(to right, #fff, #9ca3af); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto 40px; }

.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }

.pricing-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 100px; }
.price-card { 
    background: var(--bg-panel); padding: 40px; border-radius: 24px; width: 350px;
    border: 1px solid var(--border); position: relative;
}
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 40px rgba(139, 92, 246, 0.1); }
.price-tag { font-size: 2.5rem; font-weight: 700; margin: 20px 0; color: white; }
.check-list li { margin-bottom: 15px; display: flex; gap: 10px; color: var(--text-muted); }

/* --- AUTH PAGES --- */
.auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-box { 
    background: var(--bg-panel); padding: 40px; border-radius: 20px; 
    border: 1px solid var(--border); width: 100%; max-width: 420px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.auth-input { 
    width: 100%; padding: 12px 15px; margin-bottom: 15px; 
    background: var(--bg-input); border: 1px solid var(--border); 
    color: white; border-radius: 8px; transition: 0.2s;
}
.auth-input:focus { border-color: var(--primary); outline: none; }

/* Toast Notification */
.toast { 
    position: fixed; bottom: 30px; right: 30px; 
    background: #10b981; color: white; padding: 15px 25px; 
    border-radius: 10px; font-weight: 600; display: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 999; 
}