* { margin:0;padding:0;box-sizing:border-box;font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif; }
body { background:#0b0e14;display:flex;justify-content:center;align-items:center;min-height:100vh;padding:20px; }
.login-page { width:100%;max-width:440px;background:#151b26;border-radius:48px;padding:40px 32px;border:1px solid #2a3346;box-shadow:0 20px 60px rgba(0,0,0,0.7);transition:.3s;text-align:center; }
.login-page.hidden { display:none; }
.login-logo { display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:32px; }
.login-logo img { height:68px;width:auto;display:block; }
.login-logo .system-name { font-size:28px;font-weight:700;color:white;letter-spacing:-.5px; }
.login-logo .system-name span { color:#820AD1; }
.login-sub { color:#94a3b8;font-size:15px;margin-bottom:28px;letter-spacing:1px; }
.login-form label { display:block;color:#cbd5e1;font-weight:500;font-size:14px;margin-bottom:6px;text-align:left; }
.login-form input { width:100%;padding:14px 18px;background:#1e2635;border:1px solid #2f3a4e;border-radius:18px;color:white;font-size:15px;transition:.15s;margin-bottom:18px; }
.login-form input:focus { outline:none;border-color:#820AD1;box-shadow:0 0 0 3px rgba(130,10,209,.25); }
.login-btn { width:100%;background:#820AD1;border:none;padding:16px;border-radius:40px;font-weight:700;font-size:16px;color:white;cursor:pointer;transition:.15s;display:flex;align-items:center;justify-content:center;gap:10px;margin-top:6px; }
.login-btn:hover { background:#6b08b0;transform:scale(1.02); }
.login-links { display:flex;justify-content:space-between;margin-top:22px;font-size:14px; }
.login-links a { color:#94a3b8;text-decoration:none;transition:.15s;cursor:pointer; }
.login-links a:hover { color:#820AD1; }
.app { max-width:1400px;width:100%;background:#111821;border-radius:40px;padding:24px 28px 32px;border:1px solid #293241;box-shadow:0 20px 60px rgba(0,0,0,.6);display:none;transition:.3s; }
.app.active { display:flex;flex-direction:column;height:100vh;max-width:none;border-radius:0;overflow:hidden;position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;border:none; }
.topbar { display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:0;padding:16px 28px;background:#111821;border-bottom:1px solid #293241;flex-shrink:0; }
.logo-area { display:flex;align-items:center;gap:12px; }
.logo-area img { height:44px;width:auto; }
.logo-area .system-name { font-size:24px;font-weight:700;color:white;letter-spacing:-.3px; }
.logo-area .system-name span { color:#820AD1; }
.nav-menu { display:flex;flex-wrap:wrap;align-items:center;gap:4px;background:#1a2330;padding:6px 10px;border-radius:60px;border:1px solid #2b364a; }
.nav-item { padding:8px 18px;border-radius:40px;font-weight:600;font-size:14px;color:#94a3b8;cursor:pointer;transition:.15s;background:transparent;border:none;display:flex;align-items:center;gap:8px; }
.nav-item i { font-size:15px; }
.nav-item:hover { background:#2a3448;color:#e2e8f0; }
.nav-item.active { background:#820AD1;color:white;box-shadow:0 4px 16px rgba(130,10,209,.35); }
.user-area { display:flex;align-items:center;gap:12px; }
.user-btn { background:#1a2330;border:1px solid #2b364a;padding:8px 16px 8px 18px;border-radius:40px;font-weight:600;color:#e2e8f0;display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer;transition:.15s; }
.user-btn i { font-size:18px;color:#820AD1; }
.user-btn:hover { background:#2a3448; }
.logout-btn { background:transparent;border:1px solid #2b364a;color:#94a3b8;padding:8px 16px;border-radius:40px;cursor:pointer;transition:.15s;font-weight:500; }
.logout-btn:hover { background:#2a3448;color:#e2e8f0; }
.stats-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:28px; }
.stat-card { background:linear-gradient(135deg,#1a1f35 0%,#151d2a 100%);border-radius:20px;padding:20px 18px 14px;border:1px solid rgba(130,10,209,.12);transition:all .25s ease;position:relative;overflow:hidden; }
.stat-card:hover { border-color:rgba(130,10,209,.35);box-shadow:0 8px 30px rgba(130,10,209,.08);transform:translateY(-2px); }
.stat-card::before { content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#820AD1,#a855f7);opacity:0;border-radius:20px 20px 0 0;transition:opacity .25s; }
.stat-card:hover::before { opacity:1; }
.stat-card-icon { width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:16px;margin-bottom:12px; }
.stat-card-icon.purple { background:rgba(130,10,209,.15);color:#a78bfa; }
.stat-card-icon.green { background:rgba(34,197,94,.15);color:#4ade80; }
.stat-card-icon.amber { background:rgba(245,158,11,.15);color:#fbbf24; }
.stat-card-icon.blue { background:rgba(96,165,250,.15);color:#60a5fa; }
.stat-card-icon.rose { background:rgba(251,113,133,.15);color:#fb7185; }
.stat-card-icon.cyan { background:rgba(34,211,238,.15);color:#22d3ee; }
.stat-card-icon.red { background:rgba(239,68,68,.15);color:#ef4444; }
.stat-label { font-size:12px;font-weight:500;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px; }
.stat-number { font-size:26px;font-weight:700;color:white;letter-spacing:-.5px;line-height:1.1; }
.stat-sub { font-size:12px;color:#820AD1;font-weight:600;margin-top:6px;display:flex;align-items:center;gap:4px; }
.stat-sub i { font-size:10px; }
.stat-sparkline { position:absolute;bottom:-2px;right:-2px;width:90px;height:42px;opacity:.45; }
.stat-sparkline svg { width:100%;height:100%;display:block; }
.positive { color:#4ade80; }
.negative { color:#f87171; }
.filtro-periodo { display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px; }
.filtro-periodo select,.filtro-periodo input { background:#1a2330;border:1px solid #2b364a;padding:8px 16px;border-radius:40px;color:#e2e8f0;font-size:13px; }
.filtro-periodo select:focus,.filtro-periodo input:focus { outline:none;border-color:#820AD1; }
.chart-row { display:grid;grid-template-columns:2fr 1fr;gap:24px;margin-bottom:28px; }
@media(max-width:860px){.chart-row{grid-template-columns:1fr;}.nav-menu{width:100%;justify-content:center;}}
.card { background:#151d2a;border:1px solid #26303f;border-radius:28px;padding:18px 20px 22px; }
.card-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;flex-wrap:wrap; }
.card-header h3 { font-size:17px;font-weight:600;color:#f1f5f9;display:flex;align-items:center;gap:8px; }
.card-header h3 i { color:#820AD1; }
.card-header .action-link { font-size:13px;font-weight:500;color:#820AD1;background:#1f2a3b;padding:4px 16px;border-radius:40px;text-decoration:none;transition:.15s;border:1px solid #2b364a;cursor:pointer; }
.line-chart { position:relative;height:120px;margin:8px 0; }
.line-chart svg { width:100%;height:100%; }
.line-chart .line { fill:none;stroke:#820AD1;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round; }
.line-chart .area { fill:url(#grad);opacity:.2; }
.list-item { display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #1f2a3b; }
.list-item:last-child { border-bottom:none; }
.item-info { display:flex;flex-direction:column;gap:2px; }
.item-title { font-weight:600;color:#f1f5f9; }
.item-sub { font-size:13px;color:#94a3b8;display:flex;align-items:center;gap:6px; }
.item-value { font-weight:700;color:#f1f5f9;text-align:right; }
.item-value small { font-weight:400;font-size:12px;color:#94a3b8;display:block; }
.status-badge { font-size:11px;font-weight:600;padding:3px 12px;border-radius:40px;background:#1f2a3b;color:#94a3b8; }
.status-badge.pago { background:#0d2818;color:#4ade80; }
.status-badge.pendente { background:#2a1f0a;color:#fbbf24; }
.status-badge.ativo { background:#1f1f3a;color:#a78bfa; }
.status-badge.active { background:#1f1f3a;color:#a78bfa; }
.status-badge.inativo { background:#2a1f1f;color:#f87171; }
.status-badge.inactive { background:#2a1f1f;color:#f87171; }
.status-badge.pausado { background:#1f2a3b;color:#fbbf24; }
.status-badge.paused { background:#1f2a3b;color:#fbbf24; }
.status-badge.aguardando { background:#1f2a3b;color:#60a5fa; }
.status-badge.pending { background:#2a1f0a;color:#fbbf24; }
.status-badge.paid { background:#0d2818;color:#4ade80; }
.filtros { display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px; }
.filtros input,.filtros select { background:#1a2330;border:1px solid #2b364a;padding:10px 16px;border-radius:40px;color:#e2e8f0;font-size:13px;flex:1 1 140px; }
.filtros input::placeholder { color:#64748b; }
.filtros input:focus,.filtros select:focus { outline:none;border-color:#820AD1; }
.table-wrap { overflow-x:auto; }
table { width:100%;border-collapse:collapse;font-size:14px; }
th { text-align:left;padding:8px 4px 12px 0;color:#94a3b8;font-weight:600;border-bottom:1px solid #1f2a3b; }
td { padding:12px 4px 12px 0;border-bottom:1px solid #1f2a3b;color:#e2e8f0; }
tr:last-child td { border-bottom:none; }
.page-content { flex:1;overflow-y:auto;padding:24px 28px 40px;scroll-behavior:smooth; }
.footer-note { margin-top:0;text-align:center;font-size:13px;color:#64748b;border-top:1px solid #1f2a3b;padding:14px 28px;display:flex;justify-content:center;gap:28px;flex-wrap:wrap; }
.footer-note i { color:#820AD1;margin-right:4px; }
.btn-criar { background:#820AD1;color:white;border:none;padding:6px 18px;border-radius:40px;font-weight:600;font-size:13px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;transition:.15s; }
.btn-criar:hover { background:#6b08b0; }
.btn-icon { background:transparent;border:none;color:#94a3b8;cursor:pointer;padding:4px 8px;border-radius:8px;transition:.15s;font-size:14px; }
.btn-icon:hover { background:#1f2a3b;color:white; }
.btn-icon.danger:hover { color:#f87171; }
.btn-icon.pause:hover { color:#fbbf24; }
.btn-icon.eye:hover { color:#60a5fa; }
.perfil-card { display:flex;flex-direction:column;align-items:center;padding:20px 0;background:#0f1620;border-radius:28px; }
.perfil-avatar { background:#820AD1;width:80px;height:80px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-size:36px;color:white;margin-bottom:12px; }
.perfil-nome { font-size:20px;font-weight:700;color:white; }
.perfil-email { color:#94a3b8;font-size:14px; }
.perfil-telefone { color:#94a3b8;font-size:14px;margin-top:4px; }
.perfil-stats { display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:400px;margin-top:18px; }
.perfil-stats .stat-item { background:#0f1620;border-radius:20px;padding:12px;border:1px solid #26303f;text-align:center; }
.perfil-stats .stat-item i { color:#820AD1; }
.perfil-stats .stat-item .stat-label { color:#94a3b8;font-size:13px; }
.perfil-stats .stat-item .stat-value { color:white;font-weight:700;font-size:18px; }
.partner-row { display:grid;grid-template-columns:1.2fr 1.5fr 0.8fr 0.8fr 1fr;gap:8px;align-items:center;background:#0f1620;padding:10px 16px;border-radius:18px;border-left:4px solid #820AD1;margin-bottom:6px; }
.partner-row .partner-name { font-weight:600;color:white;font-size:14px; }
.partner-row .partner-email { font-size:12px;color:#94a3b8; }
.partner-row .partner-status { font-size:12px; }
.venda-actions { display:flex;gap:6px;align-items:center;justify-content:flex-end; }
.modal-overlay { position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.7);display:none;justify-content:center;align-items:center;z-index:1000;backdrop-filter:blur(4px); }
.modal-overlay.active { display:flex; }
.modal { background:#151b26;border:1px solid #2a3346;border-radius:32px;padding:24px 36px;max-width:560px;width:100%;max-height:85vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#820AD1 transparent;box-shadow:0 20px 60px rgba(0,0,0,.8); } }
.modal h2 { color:#ffffff !important;font-size:22px;margin-bottom:20px;display:flex;align-items:center;gap:10px; }
.modal h2 i { color:#820AD1; }
.modal .close-modal { background:transparent;border:none;color:#94a3b8;font-size:24px;cursor:pointer;margin-left:auto; }
.modal .close-modal:hover { color:white; }
.modal label { display:block;color:#cbd5e1;font-weight:500;font-size:13px;margin-bottom:4px;margin-top:8px; }
.modal input,.modal select { width:100%;padding:12px 16px;background:#1e2635;border:1px solid #2f3a4e;border-radius:14px;color:white;font-size:14px;transition:.15s; }
.modal input:focus,.modal select:focus { outline:none;border-color:#820AD1; }
.btn-submit { width:100%;margin-top:20px;background:#820AD1;border:none;padding:14px;border-radius:40px;font-weight:700;font-size:16px;color:white;cursor:pointer;transition:.15s; }
.btn-submit:hover { background:#6b08b0; }
.modal .btn-submit { width:100%;margin-top:20px;background:#820AD1;border:none;padding:14px;border-radius:40px;font-weight:700;font-size:16px;color:white;cursor:pointer;transition:.15s; }
.modal .btn-submit:hover { background:#6b08b0; }
.btn-add-partner { background:linear-gradient(135deg,#820AD1 0%,#6b08b0 100%);color:white;border:none;padding:12px 28px;border-radius:16px;font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:10px;cursor:pointer;transition:all .25s ease;box-shadow:0 4px 20px rgba(130,10,209,.35);position:relative;overflow:hidden; }
.btn-add-partner::before { content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.15),transparent);transition:left .5s ease; }
.btn-add-partner:hover::before { left:100%; }
.btn-add-partner:hover { transform:translateY(-2px);box-shadow:0 8px 30px rgba(130,10,209,.5); }
.btn-add-partner:active { transform:translateY(0); }
.btn-add-partner i { font-size:16px; }
.modal .row-2col { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.sub-nav { display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px; }
.sub-nav button { background:#1f2a3b;color:#94a3b8;border:none;padding:8px 20px;border-radius:40px;font-weight:600;font-size:13px;cursor:pointer;transition:.15s; }
.sub-nav button.active { background:#820AD1;color:white; }
.sub-nav button:hover { background:#2a3448;color:#e2e8f0; }
.sub-nav button.active:hover { background:#6b08b0; }
.sub-page { display:block; }
.sub-page.hidden { display:none; }
.financeiro-highlights { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px; }
.financeiro-highlights .highlight-card { background:#0f1620;border-radius:20px;padding:16px 20px;border:1px solid #26303f;text-align:center; }
.highlight-card .value { font-size:28px;font-weight:700;color:white; }
.highlight-card .label { color:#94a3b8;font-size:14px; }
.highlight-card .sub { font-size:13px;color:#4ade80;margin-top:4px; }
.ranking-item { display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #1f2a3b; }
.ranking-item:last-child { border-bottom:none; }
.rank-pos { color:#94a3b8;font-weight:600;width:28px; }
.rank-name { color:white;font-weight:500; }
.rank-value { color:#94a3b8;font-size:13px; }
.meta-progress { background:#1a2330;border-radius:20px;padding:16px;margin-top:8px; }
.meta-progress .meta-bar { width:100%;height:8px;background:#2a3448;border-radius:20px;overflow:hidden;margin-top:8px; }
.meta-progress .meta-bar .fill { height:100%;background:#820AD1;border-radius:20px;transition:width .3s; }
.meta-progress .meta-label { display:flex;justify-content:space-between;color:#94a3b8;font-size:13px; }
.coupon-row { display:grid;grid-template-columns:1fr 1.5fr 0.8fr 1fr;gap:8px;align-items:center;background:#0f1620;padding:10px 16px;border-radius:18px;border-left:4px solid #820AD1;margin-bottom:6px; }
.coupon-code { font-weight:700;color:white;font-size:14px; }
.coupon-meta { font-size:12px;color:#94a3b8;display:flex;gap:10px;align-items:center;flex-wrap:wrap; }
.coupon-meta i { margin-right:2px;color:#820AD1; }
.coupon-actions { display:flex;gap:4px;align-items:center;justify-content:flex-end; }
@media(max-width:600px){.app{padding:16px;}.stats-grid{grid-template-columns:1fr 1fr;}.login-page{padding:28px 20px;}.partner-row{grid-template-columns:1fr;gap:4px;}.modal{padding:24px 20px;}.modal .row-2col{grid-template-columns:1fr;}.financeiro-highlights{grid-template-columns:1fr;}}
