/* ================================================================
   SIMPLE TAXES — DESIGN SYSTEM v2.1
   st-theme.css
   Vibrant dark · Electric gradients · Youthful energy
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    /* Background layers */
    --st-bg: #0c0e1a;
    --st-bg-raised: #121428;
    --st-bg-card: #171a2e;
    --st-bg-card-hover: #1d2040;
    --st-bg-input: #0f1124;
    --st-bg-subtle: rgba(255,255,255,0.03);

    /* Surfaces */
    --st-surface-1: #171a2e;
    --st-surface-2: #1e2140;
    --st-surface-3: #262a4a;

    /* Text */
    --st-text: #e4e6f0;
    --st-text-secondary: #a0a5c0;
    --st-text-muted: #6b70a0;
    --st-text-heading: #f4f5ff;

    /* Primary: Electric Cyan */
    --st-primary: #06d6a0;
    --st-primary-hover: #05c090;
    --st-primary-light: rgba(6, 214, 160, 0.12);
    --st-primary-glow: rgba(6, 214, 160, 0.3);
    --st-primary-text: #3dffc4;

    /* Accent 1: Vivid Violet */
    --st-accent-violet: #a855f7;
    --st-accent-violet-light: rgba(168, 85, 247, 0.12);
    --st-accent-violet-text: #c084fc;

    /* Accent 2: Hot Coral */
    --st-accent-coral: #ff6b6b;
    --st-accent-coral-light: rgba(255, 107, 107, 0.1);

    /* Accent 3: Electric Blue */
    --st-accent-blue: #38bdf8;
    --st-accent-blue-light: rgba(56, 189, 248, 0.12);

    /* Accent 4: Warm Amber */
    --st-accent-amber: #fbbf24;
    --st-accent-amber-light: rgba(251, 191, 36, 0.1);

    /* Semantic */
    --st-success: #06d6a0;
    --st-success-bg: rgba(6, 214, 160, 0.1);
    --st-warning: #fbbf24;
    --st-warning-bg: rgba(251, 191, 36, 0.1);
    --st-danger: #ff6b6b;
    --st-danger-bg: rgba(255, 107, 107, 0.1);
    --st-info: #38bdf8;
    --st-info-bg: rgba(56, 189, 248, 0.1);

    /* Borders */
    --st-border: rgba(255,255,255,0.06);
    --st-border-strong: rgba(255,255,255,0.1);
    --st-border-focus: var(--st-primary);

    /* Shadows */
    --st-shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
    --st-shadow-md: 0 4px 14px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
    --st-shadow-lg: 0 14px 44px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.25);
    --st-shadow-glow: 0 0 0 3px var(--st-primary-glow);
    --st-shadow-card: 0 4px 28px rgba(0,0,0,0.3), 0 0 0 1px var(--st-border);

    /* Radius */
    --st-radius-sm: 8px;
    --st-radius-md: 12px;
    --st-radius-lg: 16px;
    --st-radius-xl: 20px;
    --st-radius-full: 9999px;

    /* Transitions */
    --st-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradient presets */
    --st-gradient-primary: linear-gradient(135deg, #06d6a0, #38bdf8);
    --st-gradient-accent: linear-gradient(135deg, #a855f7, #ec4899);
    --st-gradient-warm: linear-gradient(135deg, #fbbf24, #ff6b6b);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: var(--st-bg) !important;
    color: var(--st-text) !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Vibrant atmospheric background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% -5%, rgba(6, 214, 160, 0.07), transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 5%, rgba(168, 85, 247, 0.06), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(56, 189, 248, 0.04), transparent 45%),
        radial-gradient(circle at 75% 60%, rgba(255, 107, 107, 0.02), transparent 35%);
    pointer-events: none;
    z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, .st-heading {
    font-family: 'Sora', sans-serif !important;
    color: var(--st-text-heading);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* ── CARDS ── */
.simple-card, .st-card {
    background: var(--st-bg-card) !important;
    border: 1px solid var(--st-border) !important;
    border-radius: var(--st-radius-xl) !important;
    box-shadow: var(--st-shadow-card) !important;
    color: var(--st-text) !important;
    transition: border-color var(--st-transition), box-shadow var(--st-transition), transform var(--st-transition);
}

.simple-card:hover {
    border-color: var(--st-border-strong) !important;
}

.simple-card[class*="border-t-4"], .st-card-accent {
    border-top: 3px solid transparent !important;
    border-image: var(--st-gradient-primary) 1 !important;
    border-image-slice: 1 !important;
    border-left: 1px solid var(--st-border) !important;
    border-right: 1px solid var(--st-border) !important;
    border-bottom: 1px solid var(--st-border) !important;
}

/* ── INPUTS ── */
.custom-input, input[type="text"], input[type="number"], input[type="email"],
input[type="password"], input[type="date"], input[type="time"],
input[type="tel"], select, textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--st-bg-input) !important;
    border: 1.5px solid var(--st-border-strong) !important;
    border-radius: var(--st-radius-md) !important;
    color: var(--st-text) !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--st-transition);
    outline: none;
}

.custom-input:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--st-primary) !important;
    box-shadow: var(--st-shadow-glow) !important;
    background: var(--st-surface-1) !important;
}

.custom-input::placeholder, input::placeholder, textarea::placeholder {
    color: var(--st-text-muted) !important;
    font-weight: 400;
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b70a0' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

select option { background: var(--st-surface-2); color: var(--st-text); }

.input-label, label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--st-text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

input[type="checkbox"] { accent-color: var(--st-primary); width: auto; padding: 0; }

/* ── BUTTONS ── */
.action-btn, button[type="submit"], .st-btn-primary {
    background: var(--st-gradient-primary) !important;
    color: #0c0e1a !important;
    font-family: 'Sora', sans-serif !important;
    font-weight: 700;
    border: none !important;
    border-radius: var(--st-radius-md) !important;
    cursor: pointer;
    transition: all var(--st-transition);
    text-shadow: none;
}

.action-btn:hover, button[type="submit"]:hover, .st-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.3), 0 4px 12px rgba(56, 189, 248, 0.15) !important;
}

.action-btn:active, button[type="submit"]:active { transform: translateY(0); filter: brightness(0.95); }

.secondary-btn, .st-btn-secondary {
    background: var(--st-surface-2) !important;
    color: var(--st-text) !important;
    border: 1px solid var(--st-border-strong) !important;
}

.secondary-btn:hover, .st-btn-secondary:hover {
    background: var(--st-surface-3) !important;
    border-color: var(--st-text-muted) !important;
    transform: translateY(-1px);
    box-shadow: var(--st-shadow-md) !important;
}

.add-btn { background: var(--st-gradient-primary) !important; color: #0c0e1a !important; }
.add-btn:hover { filter: brightness(1.1); }

.back-btn {
    background: var(--st-surface-2) !important;
    color: var(--st-text-secondary) !important;
    border: 1px solid var(--st-border-strong) !important;
    border-radius: var(--st-radius-md) !important;
    transition: all var(--st-transition);
}
.back-btn:hover { background: var(--st-surface-3) !important; color: var(--st-text) !important; }

/* ── TABS ── */
.tab-btn {
    background: transparent !important;
    color: var(--st-text-muted) !important;
    border-bottom: 2px solid transparent !important;
    font-weight: 700;
    transition: all var(--st-transition);
    padding: 1rem;
    cursor: pointer;
}
.tab-btn:hover { color: var(--st-text-secondary) !important; background: var(--st-bg-subtle) !important; }
.tab-btn.active {
    color: var(--st-primary-text) !important;
    border-bottom-color: var(--st-primary) !important;
    background: var(--st-primary-light) !important;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: st-fadeIn 0.35s ease-out; }

.sub-tab-btn { color: var(--st-text-muted) !important; border-radius: var(--st-radius-sm); transition: all var(--st-transition); }
.sub-tab-btn:hover { background: var(--st-surface-2) !important; }
.sub-tab-btn.active { background: var(--st-primary-light) !important; color: var(--st-primary-text) !important; }

/* ── TABLES ── */
.result-table, table { width: 100%; border-collapse: collapse; }
.result-table th, thead th {
    background: var(--st-surface-2) !important;
    color: var(--st-text-secondary) !important;
    font-family: 'Sora', sans-serif !important;
    font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.75rem 1rem; text-align: left;
    border-bottom: 1px solid var(--st-border-strong) !important;
}
.result-table td, tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--st-border) !important;
    color: var(--st-text) !important;
    font-size: 0.85rem;
}
tbody tr { transition: background var(--st-transition); }
tbody tr:hover { background: rgba(6, 214, 160, 0.03) !important; }
tbody tr:last-child td { border-bottom: none !important; }
.sub-table td { border: none !important; color: var(--st-text-muted) !important; padding: 2px 0; }

/* ── BADGES ── */
.period-badge {
    background: var(--st-primary-light) !important;
    color: var(--st-primary-text) !important;
    padding: 0.2rem 0.6rem; border-radius: var(--st-radius-full);
    font-size: 0.7rem; font-weight: 700;
}

/* ── ALERTS ── */
.alert-box {
    background: var(--st-danger-bg) !important;
    border-left: 4px solid var(--st-accent-coral) !important;
    color: #ffa0a0 !important;
    padding: 1rem; border-radius: var(--st-radius-md);
}

/* ── FILE UPLOAD ── */
.file-drop-area {
    border: 2px dashed var(--st-border-strong) !important;
    border-radius: var(--st-radius-lg) !important;
    background: var(--st-bg-input) !important;
    transition: all var(--st-transition);
}
.file-drop-area:hover { border-color: var(--st-primary) !important; background: var(--st-primary-light) !important; }

/* ── WEEKLY PLANNER ── */
.week-row { border-bottom: 1px solid var(--st-border) !important; }
.day-name { color: var(--st-text) !important; font-weight: 700; }
.date-display { color: var(--st-text-muted) !important; }
.festivo-badge { background: var(--st-danger-bg) !important; color: #ffa0a0 !important; font-size: 0.65rem; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

/* ── GUIDE STEPS ── */
.guide-step::before { background-color: var(--st-border-strong) !important; }
.step-icon { background: var(--st-gradient-primary) !important; color: #0c0e1a !important; border-color: var(--st-bg) !important; }

/* ── PAYMENT CARDS ── */
.payment-card {
    background: var(--st-surface-1) !important;
    border: 2px solid var(--st-border) !important;
    border-radius: var(--st-radius-lg) !important;
    transition: all var(--st-transition);
}
.payment-card:hover, .payment-card.active {
    border-color: var(--st-primary) !important;
    background: var(--st-primary-light) !important;
    box-shadow: 0 0 20px rgba(6, 214, 160, 0.1) !important;
}

/* ── MODALS ── */
[class*="bg-slate-900/"], [class*="backdrop-blur"] { background-color: rgba(0, 0, 0, 0.75) !important; }

/* ── NAVBAR ── */
.absolute.top-4.right-4 {
    background: var(--st-bg-card) !important;
    border: 1px solid var(--st-border) !important;
    border-radius: var(--st-radius-md) !important;
    box-shadow: var(--st-shadow-md) !important;
}
.absolute.top-4.right-4 a {
    border-color: var(--st-border-strong) !important;
    color: var(--st-text-secondary) !important;
    transition: all var(--st-transition);
}
.absolute.top-4.right-4 a:hover {
    color: var(--st-primary-text) !important;
    background: var(--st-primary-light) !important;
    border-color: transparent !important;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--st-bg); }
::-webkit-scrollbar-thumb { background: var(--st-surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--st-text-muted); }

/* ── ANIMATIONS ── */
@keyframes st-fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes st-slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes st-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--st-primary-glow); }
    50% { box-shadow: 0 0 0 10px rgba(6, 214, 160, 0); }
}
@keyframes st-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.st-animate-in { animation: st-slideUp 0.4s ease-out; }

/* ── FOOTER ── */
footer, .st-footer { color: var(--st-text-muted) !important; }
footer a { color: var(--st-primary-text) !important; }
footer a:hover { color: var(--st-primary) !important; }

/* ================================================================
   TAILWIND OVERRIDES — Vibrant dark theme
   ================================================================ */

/* Backgrounds */
.bg-white, [class*="bg-white"] { background-color: var(--st-bg-card) !important; }
body[class*="bg-slate"], body.bg-slate-100, .bg-slate-100 { background-color: var(--st-bg) !important; }
.bg-slate-50 { background-color: var(--st-surface-1) !important; }
[class*="bg-slate-900"]:not([class*="/"]) { background-color: var(--st-surface-3) !important; }
.bg-white.p-6, .bg-white.p-8, .bg-white.rounded-xl, .bg-white.rounded-2xl {
    background-color: var(--st-bg-card) !important;
    border: 1px solid var(--st-border) !important;
}
.bg-slate-50.p-5, .bg-slate-50.p-4, .bg-slate-50.p-3 { background-color: var(--st-surface-1) !important; }

/* Text */
.text-slate-900, .text-slate-800 { color: var(--st-text-heading) !important; }
.text-slate-700, .text-slate-600 { color: var(--st-text) !important; }
.text-slate-500, .text-slate-400 { color: var(--st-text-secondary) !important; }
.text-slate-300 { color: var(--st-text-muted) !important; }
.text-white { color: #fff !important; }

/* Blue → Cyan/Emerald primary */
.bg-blue-600, .bg-blue-700, [class*="bg-blue-6"], [class*="bg-blue-7"] { background: var(--st-gradient-primary) !important; color: #0c0e1a !important; }
.bg-blue-600:hover, .hover\:bg-blue-700:hover { filter: brightness(1.1); }
.bg-blue-50, .bg-blue-100, [class*="bg-blue-50"], [class*="bg-blue-1"] { background-color: var(--st-primary-light) !important; }
.text-blue-600, .text-blue-700, .text-blue-800 { color: var(--st-primary-text) !important; }
.text-blue-400, .text-blue-500 { color: var(--st-accent-blue) !important; }
.border-blue-600, .border-blue-500, [class*="border-blue-6"], [class*="border-blue-5"] { border-color: var(--st-primary) !important; }
.border-blue-100, .border-blue-200 { border-color: rgba(6, 214, 160, 0.2) !important; }

/* Indigo → Vivid violet */
.bg-indigo-600, [class*="bg-indigo-6"] { background: var(--st-gradient-accent) !important; color: #fff !important; }
.hover\:bg-indigo-700:hover { filter: brightness(1.1); }
.bg-indigo-100, [class*="bg-indigo-1"] { background-color: var(--st-accent-violet-light) !important; }
.text-indigo-600, .text-indigo-700 { color: var(--st-accent-violet-text) !important; }
.border-indigo-600, .border-indigo-100 { border-color: rgba(168, 85, 247, 0.3) !important; }

/* Green */
.bg-green-600, .bg-green-500 { background: var(--st-gradient-primary) !important; color: #0c0e1a !important; }
.bg-green-600:hover, .hover\:bg-green-700:hover, .bg-green-500:hover { filter: brightness(1.1); }
.bg-green-50, .bg-green-100 { background-color: var(--st-success-bg) !important; }
.text-green-600, .text-green-700, .text-green-800 { color: var(--st-primary-text) !important; }
.border-green-200, .border-green-400 { border-color: rgba(6, 214, 160, 0.25) !important; }

/* Red → Hot coral */
.bg-red-50, .bg-red-100 { background-color: var(--st-danger-bg) !important; }
.text-red-600, .text-red-700, .text-red-800 { color: var(--st-accent-coral) !important; }
.text-red-500, .text-red-400 { color: #ffa0a0 !important; }
.border-red-100, .border-red-200, .border-red-400 { border-color: rgba(255, 107, 107, 0.2) !important; }
.bg-red-600 { background-color: var(--st-accent-coral) !important; }
.hover\:bg-red-700:hover { background-color: #e85d5d !important; }

/* Yellow / Orange → Warm amber */
.bg-yellow-50, .bg-yellow-100 { background-color: var(--st-warning-bg) !important; }
.text-yellow-600, .text-yellow-700, .text-yellow-800 { color: var(--st-accent-amber) !important; }
.border-yellow-200 { border-color: rgba(251, 191, 36, 0.25) !important; }
.bg-orange-50, .bg-orange-100 { background-color: rgba(255, 107, 107, 0.08) !important; }
.text-orange-600, .text-orange-700, .text-orange-800 { color: #ff9b6b !important; }
.border-orange-200, .border-orange-500 { border-color: rgba(255, 107, 107, 0.25) !important; }
.bg-yellow-400 { background: var(--st-gradient-warm) !important; }

/* Purple */
.bg-purple-50 { background-color: var(--st-accent-violet-light) !important; }
.text-purple-800 { color: var(--st-accent-violet-text) !important; }
.border-purple-200 { border-color: rgba(168, 85, 247, 0.25) !important; }

/* Emerald */
.bg-emerald-50 { background-color: var(--st-primary-light) !important; }
.bg-emerald-500 { background: var(--st-gradient-primary) !important; }
.text-emerald-600, .text-emerald-800 { color: var(--st-primary-text) !important; }
.border-emerald-100 { border-color: rgba(6, 214, 160, 0.2) !important; }

/* Borders */
.border-slate-100, .border-slate-200 { border-color: var(--st-border) !important; }
.border-slate-300 { border-color: var(--st-border-strong) !important; }
.border { border-color: var(--st-border) !important; }
.divide-slate-100 > * + * { border-color: var(--st-border) !important; }
.border-t, .border-b, .border-l, .border-r { border-color: var(--st-border) !important; }

/* Shadows */
.shadow, .shadow-sm { box-shadow: var(--st-shadow-sm) !important; }
.shadow-md, .shadow-lg { box-shadow: var(--st-shadow-md) !important; }
.shadow-xl, .shadow-2xl { box-shadow: var(--st-shadow-lg) !important; }
[class*="shadow-blue-600"], [class*="shadow-indigo-600"], [class*="shadow-green-600"] {
    box-shadow: 0 8px 28px rgba(6, 214, 160, 0.2), 0 4px 10px rgba(56, 189, 248, 0.1) !important;
}

/* Hover states */
.hover\:bg-slate-50:hover, .hover\:bg-slate-100:hover, .hover\:bg-white:hover { background-color: var(--st-surface-2) !important; }
.hover\:bg-blue-50:hover { background-color: var(--st-primary-light) !important; }
.hover\:bg-red-50:hover { background-color: var(--st-danger-bg) !important; }
.hover\:bg-slate-200:hover { background-color: var(--st-surface-3) !important; }
.hover\:bg-slate-900\:hover { background-color: var(--st-surface-3) !important; }

/* Focus */
.focus\:border-blue-500:focus, .focus\:border-blue-600:focus { border-color: var(--st-primary) !important; }

/* ReCaptcha */
.g-recaptcha { filter: brightness(0.82) contrast(1.1); border-radius: var(--st-radius-md); overflow: hidden; }

/* Selection */
::selection { background: rgba(6, 214, 160, 0.3); color: #fff; }

/* Links */
a { transition: color var(--st-transition); }

/* Preview box */
.preview-box { border-color: var(--st-border-strong) !important; }

/* Responsive */
@media (max-width: 640px) {
    .simple-card { border-radius: var(--st-radius-lg) !important; }
}

/* Print */
@media print {
    body { background: #fff !important; color: #000 !important; }
    body::before { display: none; }
    .simple-card, .st-card, .bg-white { background: #fff !important; box-shadow: none !important; border: 1px solid #ddd !important; }
    .result-table th, thead th { background: #f5f5f5 !important; color: #333 !important; }
    .result-table td, tbody td { color: #333 !important; border-color: #ddd !important; }
    .tab-btn, .action-btn, button { color: #333 !important; background: #eee !important; }
}