/* ============================================
   BYLLR Design System
   Modern, bold, dark color palette + Dark Mode
   ============================================ */

/* --- CSS Custom Properties (Light) --- */
:root {
    --byllr-black: #0a0a0a;
    --byllr-charcoal: #1a1a2e;
    --byllr-navy: #16213e;
    --byllr-deep-blue: #0f3460;
    --byllr-electric: #e94560;
    --byllr-electric-hover: #d63851;
    --byllr-surface: #e4e6ed;
    --byllr-surface-alt: #d8dae3;
    --byllr-border: #c5c8d4;
    --byllr-text: #1a1a2e;
    --byllr-text-muted: #5a5e6e;
    --byllr-success: #10b981;
    --byllr-warning: #f59e0b;
    --byllr-danger: #ef4444;
    --byllr-info: #3b82f6;
    --byllr-white: #f0f1f5;
    --byllr-card-bg: #eff0f4;
    --byllr-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --byllr-gradient-accent: linear-gradient(135deg, #e94560 0%, #d63851 100%);
    --byllr-shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.1);
    --byllr-shadow: 0 4px 12px rgba(10, 10, 10, 0.12);
    --byllr-shadow-lg: 0 8px 30px rgba(10, 10, 10, 0.16);
    --byllr-shadow-glow: 0 0 30px rgba(233, 69, 96, 0.15);
    --byllr-radius: 10px;
    --byllr-radius-lg: 16px;
    --byllr-radius-xl: 24px;
    --byllr-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode Variables --- */
[data-bs-theme="dark"] {
    --byllr-surface: #0f0f17;
    --byllr-surface-alt: #1a1a28;
    --byllr-border: #2a2a3d;
    --byllr-text: #e4e4ec;
    --byllr-text-muted: #8b8ba0;
    --byllr-white: #16161f;
    --byllr-card-bg: #16161f;
    --byllr-charcoal: #e4e4ec;
    --byllr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --byllr-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --byllr-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --byllr-shadow-glow: 0 0 30px rgba(233, 69, 96, 0.25);
    --bs-body-bg: #0f0f17;
    --bs-body-color: #e4e4ec;
}

[data-bs-theme="dark"] body {
    background: #0f0f17;
    color: #e4e4ec;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .card {
    background: var(--byllr-card-bg);
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .card-header {
    background: #1a1a28;
    border-bottom-color: var(--byllr-border);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #1a1a28;
    border-color: var(--byllr-border);
    color: #e4e4ec;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #1a1a28;
    border-color: var(--byllr-electric);
    color: #e4e4ec;
}

[data-bs-theme="dark"] .form-label {
    color: #c4c4d4;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(233, 69, 96, 0.06);
    --bs-table-color: #e4e4ec;
    --bs-table-border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .table thead th {
    color: var(--byllr-text-muted);
    border-bottom-color: var(--byllr-border);
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #1a1a28;
    --bs-table-color: #e4e4ec;
}

[data-bs-theme="dark"] .modal-content {
    background: #16161f;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .list-group-item {
    background: transparent;
    border-color: var(--byllr-border);
    color: #e4e4ec;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: var(--byllr-border) !important;
    color: #8b8ba0 !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: #1a1a28 !important;
    color: #e4e4ec !important;
}

[data-bs-theme="dark"] .stat-card {
    background: var(--byllr-card-bg);
}

[data-bs-theme="dark"] .stat-card .stat-value {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .auth-card {
    background: #16161f;
}

[data-bs-theme="dark"] .auth-brand {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .feature-card {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .pricing-card {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .pricing-card .price {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .pricing-card ul li {
    color: #c4c4d4;
}

[data-bs-theme="dark"] .btn-dark {
    background: #2a2a3d !important;
    border-color: #2a2a3d !important;
    color: #e4e4ec !important;
}

[data-bs-theme="dark"] .btn-dark:hover {
    background: #3a3a50 !important;
    border-color: #3a3a50 !important;
}

[data-bs-theme="dark"] .comparison-item div {
    color: #c4c4d4;
}

[data-bs-theme="dark"] .comparison-item strong {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .byllr-footer {
    background: #0f0f17;
    border-top-color: var(--byllr-border);
}

[data-bs-theme="dark"] #timer-card {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] #timer-display {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .progress {
    background: #1a1a28;
}

[data-bs-theme="dark"] .alert {
    background: #1a1a28;
    color: #e4e4ec;
}

[data-bs-theme="dark"] .text-muted {
    color: #8b8ba0 !important;
}

/* Dark mode toggle button */
.theme-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    padding: 0.4rem;
    cursor: pointer;
    transition: var(--byllr-transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.theme-toggle:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Landing page dark mode toggle (kept for backwards compat) */
.theme-toggle-landing {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    background: var(--byllr-card-bg);
    border: 1px solid var(--byllr-border);
    color: var(--byllr-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--byllr-shadow);
}

.theme-toggle-landing:hover {
    background: var(--byllr-surface-alt);
    color: var(--byllr-electric);
}

/* Testimonial styles */
.testimonial-card {
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    padding: 1.75rem;
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--byllr-shadow);
    transform: translateY(-2px);
}

.testimonial-card .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--byllr-text);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--byllr-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-card .author-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--byllr-text);
}

.testimonial-card .author-role {
    font-size: 0.75rem;
    color: var(--byllr-text-muted);
}

.testimonial-stars {
    color: var(--byllr-warning);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* Comparison section */
.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.comparison-item .comparison-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.comparison-icon-yes {
    background: rgba(16, 185, 129, 0.1);
    color: var(--byllr-success);
}

.comparison-icon-no {
    background: rgba(239, 68, 68, 0.1);
    color: var(--byllr-danger);
}

/* Stats bar on landing */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 0;
}

.stats-bar .stat-item {
    text-align: center;
}

.stats-bar .stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--byllr-electric);
    letter-spacing: -0.03em;
    font-family: 'JetBrains Mono', monospace;
}

.stats-bar .stat-desc {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
}

/* How it works steps */
.how-it-works-step {
    padding: 2rem 1.5rem;
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
    height: 100%;
}

.how-it-works-step:hover {
    box-shadow: var(--byllr-shadow);
    transform: translateY(-2px);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--byllr-gradient-accent);
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

[data-bs-theme="dark"] .how-it-works-step {
    background: #16161f;
    border-color: var(--byllr-border);
}

/* CTA section */
.cta-section {
    background: var(--byllr-gradient);
    border-radius: var(--byllr-radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2,
.cta-section p,
.cta-section .btn {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--byllr-surface);
    color: var(--byllr-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--byllr-charcoal);
    letter-spacing: -0.025em;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 900;
    letter-spacing: -0.04em;
}

/* --- Navbar --- */
.navbar-byllr {
    background: var(--byllr-gradient) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0;
}

.navbar-byllr .navbar-brand {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--byllr-white) !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[data-bs-theme="dark"] .navbar-byllr .navbar-brand {
    color: white !important;
}

.navbar-byllr .navbar-brand .brand-dot {
    width: 8px;
    height: 8px;
    background: var(--byllr-electric);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--byllr-electric);
}

.navbar-byllr .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--byllr-radius);
    transition: var(--byllr-transition);
}

.navbar-byllr .nav-link:hover,
.navbar-byllr .nav-link.active {
    color: var(--byllr-white) !important;
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-byllr .nav-link:hover,
[data-bs-theme="dark"] .navbar-byllr .nav-link.active {
    color: white !important;
}

.navbar-byllr .nav-link.active {
    background: rgba(233, 69, 96, 0.2);
}

/* Tier badges in navbar */
.badge-tier-free {
    background: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 6px;
}

.badge-tier-pro {
    background: var(--byllr-gradient-accent) !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(233, 69, 96, 0.3);
}

.badge-tier-team {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 6px;
}

/* --- Cards --- */
.card {
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    box-shadow: var(--byllr-shadow-sm);
    transition: var(--byllr-transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--byllr-shadow);
    transform: translateY(-1px);
}

.card-header {
    background: var(--byllr-white);
    border-bottom: 1px solid var(--byllr-border);
    padding: 1rem 1.25rem;
}

.card-header h5 {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--byllr-gradient-accent) !important;
    border: none !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
    transition: var(--byllr-transition);
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);
}

.btn-primary:hover {
    background: var(--byllr-electric-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--byllr-electric) !important;
    border-color: var(--byllr-electric) !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
    transition: var(--byllr-transition);
}

.btn-outline-primary:hover {
    background: var(--byllr-electric) !important;
    border-color: var(--byllr-electric) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.25);
}

.btn-dark {
    background: #1a1a2e !important;
    border-color: #1a1a2e !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
}

.btn-dark:hover {
    background: #16213e !important;
    border-color: #16213e !important;
}

.btn-outline-secondary {
    border-color: var(--byllr-border) !important;
    color: var(--byllr-text-muted) !important;
    font-weight: 500;
    border-radius: var(--byllr-radius);
}

.btn-outline-secondary:hover {
    background: var(--byllr-surface-alt) !important;
    border-color: var(--byllr-border) !important;
    color: var(--byllr-text) !important;
}

.btn-success {
    background: var(--byllr-success) !important;
    border-color: var(--byllr-success) !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
}

.btn-outline-danger {
    border-color: var(--byllr-danger) !important;
    color: var(--byllr-danger) !important;
    border-radius: var(--byllr-radius);
}

.btn-outline-danger:hover {
    background: var(--byllr-danger) !important;
    border-color: var(--byllr-danger) !important;
}

/* --- Forms --- */
.form-control, .form-select {
    border: 1.5px solid var(--byllr-border);
    border-radius: var(--byllr-radius);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--byllr-transition);
    background: var(--byllr-white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--byllr-electric);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--byllr-charcoal);
    letter-spacing: 0.01em;
}

.form-text {
    color: var(--byllr-text-muted);
    font-size: 0.78rem;
}

/* --- Tables --- */
.table {
    --bs-table-hover-bg: rgba(233, 69, 96, 0.03);
}

.table td, .table th {
    vertical-align: middle;
    padding: 0.85rem 1rem;
}

.table thead th {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
    border-bottom: 2px solid var(--byllr-border);
}

.table-light {
    --bs-table-bg: var(--byllr-surface);
}

/* --- Badges --- */
.badge {
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.bg-success { background: var(--byllr-success) !important; }
.bg-warning { background: var(--byllr-warning) !important; }
.bg-danger { background: var(--byllr-danger) !important; }
.bg-info { background: var(--byllr-info) !important; }
.bg-secondary { background: var(--byllr-text-muted) !important; }

/* --- Alerts --- */
.alert {
    border: none;
    border-radius: var(--byllr-radius);
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Timer --- */
#timer-display {
    min-width: 110px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--byllr-charcoal);
    letter-spacing: -0.02em;
}

#timer-card {
    border: 2px solid var(--byllr-border);
    background: var(--byllr-white);
}

#timer-card.timer-running {
    border-color: var(--byllr-electric);
    box-shadow: var(--byllr-shadow-glow);
}

/* --- Floating Timer Bar --- */
.floating-timer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-top: 2px solid var(--byllr-electric);
    padding: 0.55rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.floating-timer-pulse {
    width: 10px;
    height: 10px;
    background: var(--byllr-electric);
    border-radius: 50%;
    flex-shrink: 0;
    animation: timer-pulse 1.5s ease-in-out infinite;
}

@keyframes timer-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(233, 69, 96, 0); }
}

.floating-timer-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    max-width: 300px;
    font-size: 0.82rem !important;
}

.floating-timer-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.floating-timer-input:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--byllr-electric) !important;
    box-shadow: none !important;
}

body.has-floating-timer {
    padding-bottom: 56px;
}

@media (max-width: 575px) {
    .floating-timer .container-fluid {
        flex-wrap: wrap;
    }
    .floating-timer-input {
        max-width: 100%;
        order: 10;
    }
}

/* --- Progress bars --- */
.progress {
    background: var(--byllr-surface-alt);
    border-radius: var(--byllr-radius);
    overflow: hidden;
}

.progress-bar {
    background: var(--byllr-gradient-accent);
    font-weight: 600;
    font-size: 0.75rem;
}

/* --- Landing page hero --- */
.byllr-hero {
    background: var(--byllr-gradient);
    border-radius: var(--byllr-radius-xl);
    padding: 5rem 2rem 4rem;
    margin: -1.5rem -0.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.byllr-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.byllr-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.byllr-hero h1 {
    color: white !important;
    position: relative;
    z-index: 1;
}

.byllr-hero p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.byllr-hero .btn {
    position: relative;
    z-index: 1;
}

.byllr-hero .hero-brand {
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.byllr-hero .hero-brand .brand-dot {
    width: 8px;
    height: 8px;
    background: var(--byllr-electric);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--byllr-electric);
}

/* --- Feature cards on landing --- */
.feature-card {
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    padding: 2rem;
    text-align: center;
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
}

.feature-card:hover {
    box-shadow: var(--byllr-shadow-lg);
    transform: translateY(-4px);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-icon-time {
    background: rgba(233, 69, 96, 0.1);
    color: var(--byllr-electric);
}

.feature-icon-invoice {
    background: rgba(59, 130, 246, 0.1);
    color: var(--byllr-info);
}

.feature-icon-email {
    background: rgba(16, 185, 129, 0.1);
    color: var(--byllr-success);
}

.feature-icon-report {
    background: rgba(245, 158, 11, 0.1);
    color: var(--byllr-warning);
}

.feature-icon-template {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.feature-icon-expense {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

/* --- Pricing cards --- */
.pricing-card {
    border: 2px solid var(--byllr-border);
    border-radius: var(--byllr-radius-xl);
    padding: 2rem;
    text-align: center;
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
}

.pricing-card:hover {
    box-shadow: var(--byllr-shadow-lg);
}

.pricing-card.pricing-featured {
    border-color: var(--byllr-electric);
    box-shadow: var(--byllr-shadow-glow);
    position: relative;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--byllr-charcoal);
    line-height: 1;
}

.pricing-card .price-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--byllr-text-muted);
}

.pricing-card ul {
    text-align: left;
}

.pricing-card ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--byllr-text);
}

.pricing-card ul li.disabled {
    color: var(--byllr-text-muted);
    text-decoration: line-through;
}

/* --- Pricing comparison table --- */
.comparison-table-wrap {
    background: var(--byllr-card-bg);
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-xl);
    overflow: hidden;
}

.comparison-table {
    margin: 0;
}

.comparison-table thead th {
    border-bottom: 2px solid var(--byllr-border) !important;
    padding: 1.5rem 1rem 1.25rem !important;
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
    vertical-align: bottom;
}

.comparison-table .feature-col {
    width: 45%;
}

.comparison-table .plan-col {
    width: 27.5%;
}

.comparison-table .plan-col-featured {
    background: rgba(233, 69, 96, 0.04);
}

.comparison-table .plan-header .plan-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.comparison-table .plan-header .plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.comparison-table .plan-header .plan-period {
    font-size: 0.82rem;
    color: var(--byllr-text-muted);
    font-weight: 500;
}

.comparison-table tbody td {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--byllr-border);
    vertical-align: middle;
}

.comparison-table tfoot td {
    border: none !important;
    padding: 1rem 1rem 1.5rem !important;
}

[data-bs-theme="dark"] .comparison-table-wrap {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .comparison-table .plan-col-featured {
    background: rgba(233, 69, 96, 0.08);
}

/* --- Stat cards on dashboard --- */
.stat-card {
    border: none;
    border-radius: var(--byllr-radius-lg);
    background: var(--byllr-card-bg);
    box-shadow: var(--byllr-shadow-sm);
    transition: var(--byllr-transition);
}

.stat-card:hover {
    box-shadow: var(--byllr-shadow);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--byllr-charcoal);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
}

/* --- Auth cards --- */
.auth-card {
    border: none;
    border-radius: var(--byllr-radius-xl);
    box-shadow: var(--byllr-shadow-lg);
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-brand {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: var(--byllr-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.auth-brand .brand-dot {
    width: 10px;
    height: 10px;
    background: var(--byllr-electric);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--byllr-electric);
}

/* --- Footer --- */
.byllr-footer {
    background: var(--byllr-white);
    border-top: 1px solid var(--byllr-border);
    padding: 1.5rem 0;
}

.byllr-footer small {
    color: var(--byllr-text-muted);
    font-weight: 500;
}

/* --- Misc --- */
.cursor-pointer {
    cursor: pointer;
}

.text-electric {
    color: var(--byllr-electric) !important;
}

.bg-electric {
    background: var(--byllr-electric) !important;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--byllr-radius-lg);
    box-shadow: var(--byllr-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--byllr-border);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid var(--byllr-border);
    padding: 1rem 1.5rem;
}

/* Empty states */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    color: var(--byllr-border);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--byllr-text-muted);
    font-weight: 500;
}

/* Invoice view table header */
.table-byllr-dark {
    --bs-table-bg: #1a1a2e;
    --bs-table-color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--byllr-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--byllr-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--byllr-text-muted);
}

/* --- Flatpickr dark mode --- */
[data-bs-theme="dark"] .flatpickr-calendar {
    background: var(--byllr-charcoal);
    border-color: var(--byllr-border);
    box-shadow: var(--byllr-shadow-lg);
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-month,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
[data-bs-theme="dark"] .flatpickr-weekdays,
[data-bs-theme="dark"] span.flatpickr-weekday {
    background: var(--byllr-charcoal);
    color: var(--byllr-text-muted);
}
[data-bs-theme="dark"] .flatpickr-day {
    color: #ccc;
}
[data-bs-theme="dark"] .flatpickr-day:hover {
    background: var(--byllr-navy);
    border-color: var(--byllr-navy);
}
[data-bs-theme="dark"] .flatpickr-day.selected {
    background: var(--byllr-electric);
    border-color: var(--byllr-electric);
    color: #fff;
}
[data-bs-theme="dark"] .flatpickr-day.today {
    border-color: var(--byllr-electric);
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month {
    fill: #ccc;
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover svg,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--byllr-electric);
}
[data-bs-theme="dark"] .flatpickr-current-month input.cur-year {
    color: #ccc;
}
[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay,
[data-bs-theme="dark"] .flatpickr-day.nextMonthDay {
    color: #555;
}
