/* Softventas Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --primary: #00d1b2;
    --primary-dark: #00b89c;
    --secondary: #1d2c35;
    --accent: #ff4757;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    
    /* Spacing */
    --section-padding: 100px 0;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 209, 178, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #10191e;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--bg-white);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    /* Removed gap to avoid splitting text nodes */
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

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

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 250px;
    display: none;
    z-index: 100;
    margin-top: 10px;
}

/* Invisible bridge to keep hover state active over the margin gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    color: var(--text-main);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* User Menu */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-info {
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 209, 178, 0.1);
    border-radius: 50px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 100;
    margin-top: 10px;
}

/* Invisible bridge to keep hover state active over the margin gap */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.user-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.user-dropdown li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.user-dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.user-dropdown .divider {
    height: 1px;
    background: #edf2f7;
    margin: 8px 0;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--secondary);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: translateY(20px);
}

.stat-item {
    text-align: center;
    border-right: 1px solid #edf2f7;
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features Section */
.features {
    padding: var(--section-padding);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    border: 1px solid #edf2f7;
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 209, 178, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

/* Business Types */
.business-types {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.business-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.business-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.business-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.business-card:hover img {
    transform: scale(1.1);
}

/* Pricing */
.pricing {
    padding: var(--section-padding);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    padding: 40px;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    border: 1px solid #edf2f7;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 24px 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-features {
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features i {
    color: var(--primary);
}

/* FAQ */
.faq {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 1000px; /* Increased to allow longer content */
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: white;
    margin-bottom: 24px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    color: #a0aec0;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #a0aec0;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal {
    background: white;
    width: 95%;
    max-width: 500px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    display: none;
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#register-modal {
    max-width: 650px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-content h2 {
    margin-bottom: 8px;
    color: var(--secondary);
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    font-family: inherit;
    font-size: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.divider-text {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider-text::before, .divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #edf2f7;
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.btn-google {
    width: 100%;
    background: white;
    color: var(--secondary);
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background: var(--bg-light);
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
}

.modal-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Verification Code */
.verify-code-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #edf2f7;
    border-radius: 8px;
}

/* User Section Overlay - Professional Dashboard Look */
.user-section-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    z-index: 5000;
    display: none;
    overflow-y: auto; /* Let the entire overlay scroll if needed */
}

.dashboard-layout {
    display: flex; /* Back to flex but with rigid widths */
    min-height: 100vh;
    width: 100%;
    background: #f8fafc;
    overflow-x: hidden;
}

.dashboard-sidebar {
    width: 260px;
    min-width: 260px;
    background: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 10000;
}

.sidebar-logo {
    padding: 30px 24px;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-logo span {
    color: var(--primary);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column; /* CRITICAL: Vertical links */
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav a i {
    font-size: 1.2rem;
}

.dashboard-main {
    flex: 1;
    margin-left: 260px; /* Matching new sidebar width */
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 20px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 9000;
}

.section-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
}

.section-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dashboard-content {
    padding: 40px 48px;
    max-width: 1200px;
    margin: 0;
}

/* User Sections */
.user-section {
    display: none;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns for symmetry */
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #eef2f7;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.green { background: #f0fdf4; color: #22c55e; }

.stat-info h4 {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 0 4px 0; /* Clear margins */
    line-height: 1.2;
}

.stat-info .value {
    display: block; /* Ensure it's on a new line */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.1;
}

/* Dash Cards */
.dash-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #eef2f7;
    margin-bottom: 24px;
}

.dash-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.dash-card .card-header {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

.dash-card .card-header span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

/* Table Styling */
.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th {
    text-align: left;
    padding: 12px 16px;
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
}

.payment-table td {
    padding: 16px;
    border-bottom: 1px solid #f8fafc;
    color: var(--text-main);
    font-size: 0.95rem;
}

.payment-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.paid, .paid {
    background: #dcfce7;
    color: #166534;
}

/* Account Container */
.account-container {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Form Styles */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 209, 178, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

@media (max-width: 1024px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    .dashboard-main {
        margin-left: 0;
        width: 100%;
    }
    .nav-links {
        gap: 20px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links, .nav-cta {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--bg-white);
        position: absolute;
        top: 80px;
        left: 0;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active, .nav-cta.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .dropdown-menu {
        position: relative;
        box-shadow: none;
        background: transparent;
    }
    .form-grid, .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .dashboard-content {
        padding: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
