/* ==========================================
   WhatsList - Premium Design System (CSS)
   ========================================== */

/* Variables & Tokens */
:root {
    --bg-main: #000000;
    --bg-card: rgba(26, 26, 26, 0.65);
    --bg-card-hover: rgba(38, 38, 38, 0.85);
    --bg-header: rgba(10, 10, 10, 0.85);
    --border-color: rgba(255, 255, 255, 0.05);
    
    --color-primary: #ff7417; /* Principal Laranja */
    --color-primary-hover: #e85f08;
    --color-secondary: #27272a; /* Secundárias Preto / Cinza Escuro */
    --color-secondary-hover: #3f3f46;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Input backgrounds to match theme nicely */
    --bg-input: #121214;
    --bg-input-focus: #18181b;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar for modern look */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Buttons & Inputs */
button {
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1.5px);
    border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary:active {
    transform: translateY(0);
}

.btn-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-success {
    background-color: #10b981;
    color: white;
}
.btn-success:hover {
    background-color: #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.w-100 { width: 100%; }
.mt-15 { margin-top: 15px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-warning { color: #f59e0b !important; }

/* Padrão visual obrigatório para todos os campos editáveis. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), textarea, select {
    min-height: 48px;
    background: var(--bg-input) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: var(--transition-smooth);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus, textarea:focus, select:focus {
    background: var(--bg-input-focus) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
input::placeholder, textarea::placeholder { color: #5f6b86; opacity: 1; }

/* Header Design */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    color: var(--color-primary);
    width: 28px;
    height: 28px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
}

.logo-text span {
    color: var(--color-primary);
}

.badge-saas {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    margin-left: 8px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.nav-link:hover {
    color: var(--text-main);
}

/* MAIN WRAPPER & SECTIONS */
.main-content {
    min-height: calc(100vh - 140px);
}

.page-section {
    display: none;
}
.page-section.active {
    display: block;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ================= LANDING PAGE ELEMENTS ================= */

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.h-feat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.h-feat i {
    color: var(--color-primary);
}

/* Mockup Windows */
.hero-mockup {
    perspective: 1000px;
}

.window-mockup {
    background: #151d30;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}
.window-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.window-header {
    background: #0f1626;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.window-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.window-header .dot.red { background: #ef4444; }
.window-header .dot.yellow { background: #f59e0b; }
.window-header .dot.green { background: #10b981; }

.window-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 10px;
}

.window-body {
    background: #0b0f19;
    padding: 20px;
}

/* Chat Mockup */
.mockup-chat {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-header {
    background: #075e54; /* Old WhatsApp Green */
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #128c7e;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-info h4 {
    font-size: 14px;
    color: white;
}

.chat-info p {
    font-size: 11px;
    color: #d1fae5;
}

.poll-message {
    background: #111b21; /* WhatsApp web msg bubble dark */
    padding: 15px;
    border-radius: 8px;
    margin: 15px;
    max-width: 85%;
    border: 1px solid rgba(255,255,255,0.03);
}

.poll-question {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.poll-option {
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.opt-name {
    font-size: 13px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.opt-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(16, 185, 129, 0.15);
    z-index: 1;
    border-radius: 6px;
}

.opt-votes {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

.poll-sync-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

.spin {
    animation: spin-anim 2s linear infinite;
}

@keyframes spin-anim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Simulator Grid */
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.simulator-input-card, .simulator-output-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

textarea#poll-raw-input {
    height: 250px;
    resize: none;
}

.preview-table-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: auto;
    height: 250px;
    background: #090e1a;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #0f1524;
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge.success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge.info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge.warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(16, 185, 129, 0.2);
}

.feat-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feat-icon-box.green { background: rgba(16, 185, 129, 0.1); color: var(--color-primary); }
.feat-icon-box.blue { background: rgba(59, 130, 246, 0.1); color: var(--color-secondary); }
.feat-icon-box.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.feature-card h3 {
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    transition: var(--transition-smooth);
}

.price-card.popular {
    border-color: var(--color-primary);
    background: rgba(16, 185, 129, 0.03);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
}

.badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
}

.price-header h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.price-val {
    font-size: 40px;
    font-family: var(--font-display);
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1;
}

.price-period {
    color: var(--text-muted);
    font-size: 13px;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.price-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.price-features li i {
    color: var(--color-primary);
    width: 16px;
    height: 16px;
}

/* ================= DASHBOARD ELEMENTS ================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 140px);
}

/* Sidebar */
.dash-sidebar {
    background: #0d1322;
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.user-profile-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-profile-box .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.user-details h4 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.badge-status {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.badge-status.trial { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-status.active { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-status.expired { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

.ext-status-widget {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.widget-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.widget-title .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}
.widget-title .indicator.active {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.widget-desc {
    font-size: 11.5px;
    color: var(--text-muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    background: transparent;
    padding: 10px 14px;
    border-radius: 6px;
    width: 100%;
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    justify-content: flex-start;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}
.sidebar-link.active {
    border-left: 3px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
}

/* Admin Simulator Control Panel */
.admin-control-box {
    background: rgba(239, 68, 68, 0.04);
    border: 1px dashed rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: auto;
}
.admin-control-box h4 {
    color: #ef4444;
    font-size: 12.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.admin-control-box p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.admin-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.admin-btns button {
    font-size: 11px;
    padding: 6px 10px;
    justify-content: flex-start;
}
.btn-admin-danger { background: rgba(239,68,68,0.15); color: #f87171; }
.btn-admin-danger:hover { background: rgba(239,68,68,0.3); }
.btn-admin-success { background: rgba(16,185,129,0.15); color: #34d399; }
.btn-admin-success:hover { background: rgba(16,185,129,0.3); }
.btn-admin-warning { background: rgba(59,130,246,0.15); color: #60a5fa; }
.btn-admin-warning:hover { background: rgba(59,130,246,0.3); }
.btn-admin-action { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); color: white; }
.btn-admin-action:hover { background: rgba(255,255,255,0.1); }

/* Main Dashboard Window & Tabs */
.dash-main-window {
    padding: 40px;
    position: relative;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tab-header h2 {
    font-size: 26px;
    margin-bottom: 5px;
}
.tab-header p {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    gap: 12px;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.poll-selector-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}
.poll-selector-bar label {
    font-weight: 600;
}
.poll-selector-bar select {
    max-width: 400px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
}

.table-wrapper {
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #090e1a;
    max-height: 400px;
}

/* Billing Lock Overlay */
.billing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.95);
    backdrop-filter: blur(12px);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.billing-overlay-card {
    background: #131929;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.lock-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.lock-icon i {
    width: 30px;
    height: 30px;
}

.billing-overlay-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.billing-overlay-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 14.5px;
}

/* Checkout Box */
.checkout-sim-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    text-align: left;
}

.checkout-sim-box h3 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.pix-code-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.fake-qrcode {
    background: white;
    padding: 10px;
    border-radius: 8px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
}
.fake-qrcode i {
    width: 80px;
    height: 80px;
}

.pix-key-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pix-key-box label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pix-key-box input {
    font-size: 12px;
    padding: 8px;
}

/* Token Box in configs */
.token-container {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}
.token-container label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.token-input-box {
    display: flex;
    gap: 10px;
}
.token-input-box input {
    font-family: monospace;
    font-size: 13px;
    background: #070a12;
}

/* Billing Status Widget in billing settings */
.billing-status-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.billing-status-card h3 span {
    color: var(--color-secondary);
}

/* Tutorial */
.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
}
.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer styling */
.app-footer {
    background: #070a12;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive fixes */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-features {
        justify-content: center;
    }
    .window-mockup {
        transform: none;
    }
    .simulator-grid, .dashboard-grid, .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dash-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .pix-code-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .fake-qrcode {
        align-self: center;
    }
}

/* ==========================================
   Admin SPA Layout - Passo 1
   ========================================== */
.admin-app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-main);
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-menu-toggle,
.admin-menu-backdrop {
    display: none;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 10px;
    gap: 6px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-nav .nav-item .menu-icon,
.btn-logout .menu-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-menu-button .menu-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.mobile-menu-button .mobile-menu-glyph {
    display: inline-block;
    width: 18px;
    font-size: 20px;
    line-height: 18px;
    font-weight: 700;
}

.sidebar-toggle-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-toggle-btn {
  color: #ffffff;
  position: relative;
}

.sidebar-toggle-btn::before {
  content: '‹';
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 22px;
  height: 22px;
  width: 18px;
  text-align: center;
}

.sidebar-toggle-btn .sidebar-toggle-icon {
  display: none;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.sidebar-nav .nav-item.active {
    background: rgba(249, 115, 22, 0.1); /* Admin Orange alpha */
    color: var(--admin-orange);
    border-left: 3px solid var(--admin-orange);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
}
.user-info strong { color: var(--text-main); }
.user-info span { color: var(--text-muted); font-size: 11px; word-break: break-all; }

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}
.btn-logout:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.3);
}

.admin-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-topbar {
    height: 70px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    flex-shrink: 0;
}
.admin-client-toolbar { display:flex; align-items:center; gap:12px; margin:0 0 20px; }
.admin-client-toolbar .global-search-container { flex:1; max-width:none; }
.admin-client-toolbar > .btn-primary { flex:0 0 auto; white-space:nowrap; }

.global-search-container {
    position: relative;
    flex: 1;
    max-width: 480px;
}
.global-search-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.global-search-container input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px 10px 42px;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition-smooth);
}
.global-search-container input:focus {
    border-color: var(--admin-orange);
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.admin-content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}
.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Admin Page Specific Styles
   ========================================== */
:root { --admin-orange:#f97316; --admin-orange-dark:#ea6a05; --admin-bg:#0a0a0a; --admin-card:rgba(20,10,5,.82); --admin-border:rgba(249,115,22,.18); }
body.admin-page { background:var(--admin-bg); font-family:Inter,system-ui,sans-serif; }
.admin-page h1,.admin-page h2,.admin-page h3 { font-family:Outfit,Inter,sans-serif; }
.admin-page .app-header { background:rgba(10,10,10,.9); border-bottom:1px solid var(--admin-border); }
.admin-page .header-container { max-width:1200px; }
.admin-page .logo-text { font-family:Outfit,Inter,sans-serif; }
.admin-page .logo-text span { color:var(--admin-orange); }
.admin-shell { max-width:1200px; margin:0 auto; padding:34px 20px 60px; }
.admin-heading { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:28px; }
.admin-heading h1 { margin:0 0 8px; font-size:clamp(28px,4vw,42px); }
.admin-heading p { margin:0; color:var(--text-muted); max-width:680px; }
.admin-badge { display:inline-flex; padding:4px 9px; border-radius:5px; font-size:11px; background:rgba(220,38,38,.16); color:#fca5a5; vertical-align:middle; }
.admin-metrics-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; }
.metric-card { display:flex; align-items:center; gap:14px; padding:22px; border:1px solid var(--admin-border); border-radius:14px; background:var(--admin-card); box-shadow:0 10px 30px -10px rgba(0,0,0,.7); }
.metric-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:12px; background:rgba(249,115,22,.16); color:var(--admin-orange); font-size:22px; flex:none; }
.metric-value { font:800 27px Outfit,Inter,sans-serif; color:#f3f4f6; }
.metric-label { color:var(--text-muted); font-size:12px; margin-top:3px; }
.admin-card { padding:22px; border:1px solid var(--admin-border); border-radius:14px; background:var(--admin-card); margin-top:20px; box-shadow:0 10px 30px -10px rgba(0,0,0,.7); }
.admin-card h2,.admin-card h3 { margin:0 0 8px; }
.admin-card > p { color:var(--text-muted); margin:0 0 16px; }
.admin-create-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.admin-create-grid input,.admin-create-grid select { min-width:0; }
.admin-create-grid button { grid-column:span 3; }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; min-width:760px; border-collapse:collapse; margin-top:14px; }
.admin-table th { text-align:left; background:#111827; color:#93c5fd; padding:12px 10px; font-size:13px; }
.admin-table td { padding:14px 10px; border-bottom:1px solid rgba(255,255,255,.08); }
.admin-table select { background:#1d1918; color:#fff; border:1px solid rgba(255,255,255,.12); border-radius:8px; padding:9px; }
.admin-note { color:var(--text-muted); font-size:13px; }
.admin-connection-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:18px; }
.admin-connection-filters label { min-width:160px; flex:1; color:var(--text-muted); font-size:13px; }
.admin-connection-filters select,.admin-connection-filters input { width:100%; box-sizing:border-box; margin-top:6px; }
.connection-pagination { display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
#admin-message { min-height:22px; margin-top:10px; }
#admin-message.error { color:#fca5a5; } #admin-message.success { color:#86efac; }
.admin-page .btn-primary { background:var(--admin-orange); }
.admin-page .btn-primary:hover { background:var(--admin-orange-dark); }
.admin-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; max-width:1200px; margin:0 auto; padding:18px 20px 24px; color:var(--text-muted); font-size:12px; border-top:1px solid var(--admin-border); }
@media (max-width:760px) { .admin-metrics-grid { grid-template-columns:repeat(2,1fr); } .admin-shell { padding:24px 14px 44px; } .admin-create-grid { grid-template-columns:1fr; } .admin-create-grid button { grid-column:auto; } .admin-heading { align-items:start; flex-direction:column; } }

@media (max-width:900px) {
    .admin-app-layout { min-height:100vh; height:auto; overflow-x:hidden; overflow-y:auto; }
    .admin-sidebar {
        position:fixed;
        inset:0 auto 0 0;
        width:min(280px, calc(100vw - 56px));
        z-index:1000;
        transform:translateX(-105%);
        transition:transform .2s ease;
        box-shadow:16px 0 40px rgba(0,0,0,.45);
    }
    body.admin-menu-open .admin-sidebar { transform:translateX(0); }
    .admin-main-wrapper { width:100%; min-width:0; overflow:visible; }
    .admin-topbar { position:relative; height:auto; min-height:70px; gap:12px; padding:12px 16px 12px 58px; }
    .admin-client-toolbar { align-items:stretch; flex-direction:column; }
    .admin-client-toolbar > .btn-primary { width:100%; }
    .admin-menu-toggle {
        display:inline-flex;
        position:absolute;
        left:14px;
        top:50%;
        transform:translateY(-50%);
        align-items:center;
        justify-content:center;
        width:36px;
        height:36px;
        padding:0;
        border:1px solid var(--border-color);
        border-radius:8px;
        background:var(--bg-card);
        color:var(--text-main);
        cursor:pointer;
    }
    .admin-menu-toggle svg { width:20px; height:20px; }
    .admin-menu-backdrop {
        position:fixed;
        inset:0;
        z-index:999;
        border:0;
        background:rgba(0,0,0,.58);
        cursor:pointer;
    }
    body.admin-menu-open .admin-menu-backdrop { display:block; }
    .global-search-container { max-width:none; min-width:0; }
    .topbar-actions { flex-shrink:0; }
    .topbar-actions .btn-primary { padding:9px 10px; font-size:12px; }
    .admin-content-area { padding:20px 14px 32px; }
}
/* Preferencias individuais do Dashboard */
.dashboard-preferences{border:1px solid var(--border-color);border-radius:14px;background:rgba(255,255,255,.02);overflow:hidden}.dashboard-preferences summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:14px 16px;font-weight:700}.dashboard-preferences summary::-webkit-details-marker{display:none}.dashboard-preferences summary::after{content:'+';font-size:22px;color:var(--color-primary)}.dashboard-preferences[open] summary::after{content:'−'}.dashboard-preferences summary small{margin-left:auto;color:var(--text-muted);font-weight:500}.dashboard-preferences-body{padding:0 16px 16px}.dashboard-preferences-body>p{margin:0 0 14px;color:var(--text-muted)}.dashboard-preferences-form fieldset{border:1px solid var(--border-color);border-radius:12px;padding:12px;margin:0 0 14px}.dashboard-preferences-form legend{padding:0 8px;font-weight:700}.dashboard-preferences-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}.dashboard-preferences-toolbar button{font-size:12px;padding:7px 10px}.dashboard-preferences-options{display:flex;flex-direction:column;gap:8px;max-height:220px;overflow-y:auto;padding:4px}.dashboard-preferences-form label{display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 10px;border:1px solid var(--border-color);border-radius:9px;color:var(--text-primary);font-size:13px}.dashboard-preferences-form input[type="checkbox"]{width:16px;height:16px;margin:0}.dashboard-preferences-form button{width:auto}.dashboard-preferences-form p{margin:12px 0 0}@media(max-width:600px){.dashboard-preferences summary{align-items:flex-start;flex-wrap:wrap}.dashboard-preferences summary small{width:100%;margin-left:0}.dashboard-preferences-options{grid-template-columns:1fr}}
.monitoring-groups-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.monitoring-groups-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:280px;overflow-y:auto;padding:4px}.monitoring-group-option{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:9px 11px;border:1px solid var(--border-color);border-radius:10px;color:var(--text-primary);font-size:13px}.monitoring-group-option span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monitoring-group-option small{display:block;color:var(--text-muted);font-size:11px;margin-top:2px}.monitoring-group-option input[type="checkbox"]{width:18px;height:18px;flex:0 0 auto;margin:0}.monitoring-groups-empty{grid-column:1/-1;color:var(--text-muted);margin:4px 0}.monitoring-groups-toolbar button{font-size:12px;padding:7px 10px}@media(max-width:600px){.monitoring-groups-options{grid-template-columns:1fr}}
 .client-audit-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}.client-audit-extra-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.client-audit-toolbar input,.client-audit-toolbar select{min-width:130px}.client-audit-toolbar input[type=month]{width:150px}.client-audit-date{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:132px;height:42px;padding:0 10px;border:1px solid var(--border-color);border-radius:10px;cursor:pointer;overflow:hidden}.client-audit-date span{font-size:.85rem;color:var(--text-color);pointer-events:none;white-space:nowrap}.client-audit-date input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.client-audit-toolbar [data-audit-range].is-selected{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary)}.client-audit-table-wrap{overflow:auto;margin-top:18px}.client-audit-table{width:100%;border-collapse:collapse}.client-audit-table th,.client-audit-table td{padding:11px 10px;border-bottom:1px solid var(--border-color);text-align:left;white-space:nowrap}.client-audit-table td:last-child{white-space:normal;min-width:240px}.client-audit-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:16px}.client-audit-pagination button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:700px){.client-audit-toolbar input,.client-audit-toolbar select,.client-audit-toolbar button{width:100%}.client-audit-extra-filters{width:100%}.client-audit-extra-filters .client-audit-date{width:100%;justify-content:flex-start}.client-audit-table{font-size:.85rem}}
