@import './core/vars.css';
@import './core/layout.css';

/* 🎨 MASTER THEME REFINEMENT */
[data-theme="dark"] .sidebar-logo,
[data-theme="dark"] .mobile-top-header img,
[data-theme="dark"] .logo-container img,
[data-theme="dark"] .navbar img,
[data-theme="dark"] .auth-logo img {
    filter: brightness(0) invert(1) !important;
}

body {
    font-family: var(--font-body);
}

h1, h2, h3, h4, .section-title {
    font-family: var(--font-heading);
}

/* ── COMPONENT: NAVBAR ───────────────────────────────────────────────────── */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--topbar-height);
}

.mobile-menu-btn {
    display: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.nav-links a.btn {
    color: white !important;
}

.nav-links a.btn:hover {
    color: white !important;
    opacity: 0.9;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ── COMPONENT: MODERN FORMS ────────────────────────────────────────────── */

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.modern-input {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(36, 96, 209, 0.1);
}

/* ── COMPONENT: BUTTONS ──────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

/* ── SECTION: HERO ───────────────────────────────────────────────────────── */

.hero {
    padding: 160px 20px 80px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 auto 40px;
    max-width: 650px;
    line-height: 1.6;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text-main);
}

body::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    top: -100px;
    left: -100px;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: #ec4899;
    filter: blur(150px);
    bottom: 0;
    right: 0;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#login-card {
    max-width: 480px;
    margin: 8vh auto;
    position: relative;
    z-index: 10;
}

.back-to-home {
    position: fixed;
    top: 30px;
    left: 30px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-to-home:hover {
    color: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    height: 60px;
    margin-bottom: 10px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer {
    padding: 10px 5% 40px;
    background: #0f172a;
    color: #94a3b8;
    /* border-top: 1px solid rgba(255, 255, 255, 0.05); */
}

/* .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
} */

/* .footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
} */

.footer-bottom {
    /* margin-top: 60px; */
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* .social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
} */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.fa-icon {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text-main);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-body);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(30, 64, 175, 0.3);
}

.btn-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.btn-outline {
    background: transparent !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline:hover {
    background: var(--primary) !important;
    color: white !important;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.loading .spinner {
    display: inline-block;
}

.link-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.link-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.link-text a:hover {
    text-decoration: underline;
}

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    display: none;
}

/* Password Toggle Styles */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Landing Page Specific Sections */
.pricing-section {
    padding: 120px 20px 60px;
    background: var(--bg-body);
    text-align: center;
}

[data-theme="dark"] .pricing-section {
    background: rgba(15, 23, 42, 0.3);
}

.pricing-toggle-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-top: 30px;
    flex-wrap: nowrap !important;
}

.toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--primary);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background: var(--primary-gradient);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.save-badge {
    background: #fef08a;
    color: #854d0e;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 5px;
}

[data-theme="dark"] .save-badge {
    background: rgba(254, 240, 138, 0.1);
    color: #fef08a;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.pricing-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.03);
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 99px;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.price-tag {
    margin: 25px 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-tag .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.price-tag .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-tag .period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .pricing-features li {
    border-bottom-color: var(--glass-border);
}

.pricing-features li i {
    color: #22c55e;
    font-size: 0.8rem;
}

.features-section {
    padding: 100px 20px;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 40px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Landing Page Specific Styles */
.pill-badge {
    background: rgba(30, 64, 175, 0.05);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 30px;
    gap: 10px;
    border: 1px solid rgba(30, 64, 175, 0.15);
    backdrop-filter: blur(4px);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    /* Reduced from original suggestion */
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 30px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .hero h1 {
    color: #f8fafc;
}

.hero h1 span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    display: block;
    /* Break to new line for better balance */
    margin-top: 10px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.btn-teal {
    background: #2dd4bf;
    color: #0f172a;
}

.btn-teal:hover {
    background: #14b8a6;
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.3);
}

.btn-dark {
    background: #0f172a;
    color: white;
}

.btn-dark:hover {
    background: #000;
}

.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
    z-index: 1000;
    text-decoration: none;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 15px 20px;
        position: fixed;
    }

    .mobile-menu-btn {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-main);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-navbar);
        flex-direction: column;
        padding: 30px 20px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .btn {
        margin-top: 10px !important;
        text-align: center;
    }

    .hero {
        padding: 150px 20px 50px;
    }

    .hero h1,
    .hero h1 span {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .btn {
        width: 100% !important;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-section,
    .pricing-section {
        padding: 60px 20px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr !important;
        margin-top: 40px;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .glass-card {
        padding: 25px;
    }

    .wa-chat-widget {
        left: 15px;
        bottom: 90px;
        width: calc(100vw - 30px);
    }
}

/* Auth Pages Back Button */
.back-to-home {
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.back-to-home:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .back-to-home {
        top: 20px;
        left: 20px;
        font-size: 0.85rem;
    }
}

/* WhatsApp Chat Widget */
.wa-chat-widget {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom left;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
}

[data-theme="dark"] .wa-chat-widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
}

.wa-chat-widget.active {
    transform: scale(1);
    opacity: 1;
}

.wa-chat-header {
    background: #075e54;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-chat-body {
    padding: 20px;
    background: #e5ddd5;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23000000" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    height: 180px;
    overflow-y: auto;
}

[data-theme="dark"] .wa-chat-body {
    background-color: #0b141a;
    background-image: none;
}

.wa-message {
    background: white;
    padding: 12px 15px;
    border-radius: 0 10px 10px 10px;
    color: #111b21;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    max-width: 85%;
    position: relative;
}

[data-theme="dark"] .wa-message {
    background: #202c33;
    color: #e9edef;
}

.wa-chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .wa-chat-footer {
    background: var(--bg-body);
    border-color: var(--glass-border);
}

.wa-chat-footer .btn-teal {
    background: #25d366 !important;
    color: white !important;
    font-weight: 600;
}

.wa-chat-footer .btn-teal:hover {
    background: #128c7e !important;
}

/* Dashboard Responsiveness */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-top-header {
    display: none;
}

@media (max-width: 1024px) {
    body {
        flex-direction: column !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        width: 100vw !important;
    }

    .dashboard-container {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: 300px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2) !important;
        background: #ffffff !important;
        /* Solid background for mobile */
        backdrop-filter: none !important;
        /* Disable blur for legibility */
    }

    .sidebar.mobile-active {
        transform: translateX(0) !important;
    }

    .main-content {
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        padding: 20px !important;
        padding-top: 85px !important;
        /* Space for mobile header */
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
        display: none !important;
        /* Hide redundant desktop header info on mobile */
    }

    /* Re-enable header parts for mobile in a controlled way if needed, or hide */
    .header h1 {
        font-size: 1.5rem !important;
    }

    .mobile-top-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(15px) !important;
        padding: 12px 20px;
        justify-content: space-between;
        align-items: center;
        z-index: 99;
        border-bottom: 1px solid var(--glass-border);
    }

    [data-theme="dark"] .mobile-top-header {
        background: rgba(15, 23, 42, 0.8) !important;
    }

    .mobile-burger-btn {
        background: var(--primary);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .mobile-only-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.05);
    }

    #sidebar-toggle {
        display: none !important;
    }
}

/* Global Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 35px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.modal-success .modal-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.modal-error .modal-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #f43f5e;
}

.modal-info .modal-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.modal-body {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-success .modal-btn {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.modal-error .modal-btn {
    background: #f43f5e;
    color: white;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Contacts Page Enhancements */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.contact-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-card .card-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.contact-card h4 {
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    font-size: 1.1rem;
}

.contact-card .card-info {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-card .card-info span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card .card-info i {
    width: 16px;
    text-align: center;
    color: var(--primary);
    opacity: 0.8;
}

.contact-card .card-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.view-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 8px;
    margin-right: 12px;
}

[data-theme="dark"] .view-toggle {
    background: rgba(255, 255, 255, 0.08);
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .view-btn.active {
    background: var(--primary);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.page-link:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ── Print Media Query ───────────────────────────────────────────────────── */
@media print {

    /* Hide all navigation & interactive UI chrome */
    .sidebar,
    .top-nav,
    .navbar,
    .header,
    .filter-bar,
    .filter-pill,
    .btn,
    .btn-primary,
    .btn-sm,
    .action-btn,
    .action-btn-group,
    .dropdown,
    .dropdown-content,
    .modal,
    #quick-expense-modal,
    #overdue-banner,
    #kb-tip,
    button:not([data-print]),
    a.btn {
        display: none !important;
    }

    /* Reset colors for print */
    body,
    .main-content,
    .content-area {
        background: white !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 11pt;
    }

    .glass-card,
    .stat-card,
    .table-container,
    .secondary-card,
    .chart-container {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        break-inside: avoid;
        margin-bottom: 12px;
    }

    /* Ensure tables print cleanly */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 9pt;
    }

    th,
    td {
        border: 1px solid #ccc !important;
        padding: 6px 8px !important;
        color: #000 !important;
    }

    thead {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Layout: collapse sidebar and go full width */
    .dashboard-layout,
    .layout-wrapper {
        display: block !important;
        width: 100% !important;
    }

    /* Badges: keep color for status */
    .badge {
        border: 1px solid #aaa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Page break helpers */
    .stats-grid,
    .bottom-grid {
        break-inside: avoid;
    }

    /* Add print header */
    .main-content::before {
        content: "OzmosisBill — Financial Report";
        display: block;
        font-size: 18pt;
        font-weight: 800;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
        margin-bottom: 20px;
    }
}

/* ── SOCIAL PROOF & TRUST SIGNALS ─────────────────────────────────────────── */

.trust-section {
    padding: 60px 20px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--glass-border);
}

.trust-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.logo-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s;
}

.logo-strip:hover {
    opacity: 0.9;
}

.trust-item {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stats Bar */
.stats-section {
    padding: 80px 20px;
    background: #0f172a;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .stat-item h2 {
        font-size: 2.2rem;
    }
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Testimonials */
.testimonials-section {
    padding: 50px 20px 100px;
    background: var(--bg-body);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .logo-strip {
        gap: 30px;
    }

    .stat-item h2 {
        font-size: 2.2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ── INTERACTIVE DEMO ────────────────────────────────────────────────────── */

.demo-section {
    padding: 120px 20px;
    background: var(--bg-alt);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 50px auto 0;
    align-items: center;
}

.demo-controls {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.demo-input-group {
    margin-bottom: 25px;
}

.demo-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-input-group input {
    width: 100%;
    padding: 15px;
    border: 1.5px solid var(--glass-border);
    background: var(--bg-body);
    color: var(--text-main);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.demo-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(36, 96, 209, 0.1);
}

/* Paper Invoice Preview */
.demo-preview {
    perspective: 1000px;
}

.paper-invoice {
    background: var(--bg-card);
    width: 100%;
    aspect-ratio: 1 / 1.414;
    /* A4 Ratio */
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    position: relative;
    transform: rotateX(2deg) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.paper-invoice:hover {
    transform: rotateX(0deg) rotateY(0deg);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.preview-biz-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    text-transform: uppercase;
}

.preview-client-box {
    margin-bottom: 40px;
}

.preview-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.preview-client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.preview-table-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    padding: 12px 0;
    border-bottom: 1.5px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.preview-item-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.preview-item-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.preview-item-amount {
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
}

.preview-total-row {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--text-main);
}

.preview-total-label {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.preview-total-val {
    text-align: right;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.preview-footer {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
}

.preview-watermark {
    font-size: 0.7rem;
    text-align: center;
    color: #cbd5e1;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
}

@media (max-width: 1024px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .paper-invoice {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .paper-invoice {
        padding: 25px;
    }
}

/* ── COMPARISON TABLE ────────────────────────────────────────────────────── */

.comparison-section {
    padding: 80px 20px;
    background: var(--bg-main);
}

.comparison-container {
    max-width: 1000px;
    margin: 50px auto 0;
    overflow-x: auto;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.comp-table th,
.comp-table td {
    padding: 25px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}

.comp-table th {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--bg-body);
}

.comp-table .feature-col {
    font-weight: 700;
    color: var(--text-main);
    width: 35%;
}

.comp-table .tradition-col {
    color: var(--text-muted);
}

.comp-table .ozmosis-col {
    background: rgba(36, 96, 209, 0.05);
    border-left: 2px solid rgba(36, 96, 209, 0.1);
    border-right: 2px solid rgba(36, 96, 209, 0.1);
}

[data-theme="dark"] .comp-table .ozmosis-col {
    background: rgba(36, 96, 209, 0.15);
}

.comp-table .checked {
    color: #10b981;
    font-weight: 700;
}

.comp-table .crossed {
    color: #ef4444;
    font-weight: 700;
}

/* FAQ Accordion */
.faq-section {
    padding: 100px 20px;
    background: var(--bg-body);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-header {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    color: #2460d1;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
    padding: 0 25px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active {
    border-color: #2460d1;
    box-shadow: 0 10px 20px rgba(36, 96, 209, 0.05);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 25px;
}

@media (max-width: 768px) {

    .comp-table th,
    .comp-table td {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* ── UI/UX REFINEMENTS ─────────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

/* Sticky Navbar Scrolled State */
.navbar.scrolled {
    padding: 12px 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.08);
}

.navbar.scrolled .nav-brand img {
    height: 32px;
}

/* Scroll Reveal Animations */
.reveal {
    position: relative;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* Back-to-top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: white;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Premium Footer Upgrade */
.footer-main {
    padding: 80px 5% 40px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .back-to-top {
        bottom: 100px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }

    .footer-col:nth-child(1) {
        grid-column: span 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .footer-col:nth-child(1) .social-links {
        justify-content: center;
    }

    .footer-col:nth-child(4) {
        grid-column: span 2;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 10px;
        margin-top: 40px;
    }
}

/* ROI Calculator Responsive */
.roi-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.roi-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.roi-stat-box {
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.3s ease;
}

.roi-stat-box i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.roi-stat-box h3 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin: 0 0 5px;
    font-weight: 800;
}

.roi-stat-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

.roi-stat-box.hours {
    background: rgba(36, 96, 209, 0.05);
    border: 1px solid rgba(36, 96, 209, 0.1);
}

.roi-stat-box.hours i {
    color: var(--primary);
}

.roi-stat-box.money {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.roi-stat-box.money i {
    color: #10b981;
}

@media (max-width: 768px) {
    .roi-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .roi-card {
        padding: 25px;
    }

    .roi-stat-box h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .roi-card {
        padding: 20px 15px;
    }
}

/* ── SECURITY & COMPLIANCE ─────────────────────────────────────────────── */

.security-bar {
    background: #0f172a;
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.security-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.security-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.security-trust-item i {
    font-size: 2rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.security-trust-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.security-trust-item p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Hero Security Badge */
.hero-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(36, 96, 209, 0.05);
    border: 1px solid rgba(36, 96, 209, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-top: 20px;
}

.hero-security-badge i {
    color: #10b981;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: auto;
    right: 30px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    z-index: 10000;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: none !important;
    border: none !important;
    font-size: 1.1rem !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.cookie-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.cookie-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.cookie-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .security-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .security-trust-grid {
        grid-template-columns: 1fr;
    }
}


/* ── LEGAL & CONTENT PAGES ─────────────────────────────────────────────── */

.legal-section {
    padding: 160px 20px 100px;
    background: var(--bg-body);
    min-height: 80vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow);
}

.legal-container h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: block;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.legal-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #0f172a;
}

.legal-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
}

.legal-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.legal-content ul li {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 120px 15px 60px;
    }

    .legal-container {
        padding: 30px 20px;
    }

    .legal-container h1 {
        font-size: 2rem;
    }
}

/* 📱 PWA INSTALL MODAL ─────────────────────────────────────────────────── */

.install-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.install-modal-overlay.active {
    opacity: 1;
}

.install-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.install-modal-overlay.active .install-modal-card {
    transform: scale(1) translateY(0);
}

.install-icon-box {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(36, 96, 209, 0.3);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #475569;
}

[data-theme="dark"] .benefit-item {
    color: #94a3b8;
}

.benefit-item i {
    color: #10b981;
    font-size: 1.1rem;
}

.benefit-item span {
    font-weight: 600;
}

@media (max-width: 480px) {
    .install-modal-card {
        padding: 30px 20px;
    }

    .install-icon-box {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .btn-save-cta {
        font-size: 0.85rem !important;
        padding: 15px !important;
    }
}