:root {
    /* Color Palette - Stocky x Clean SaaS */
    --primary: #2ecc71;
    /* Stocky Green */
    --primary-hover: #27ae60;
    --secondary: #1e293b;
    /* Dark Slate for Headings */
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    /* Very light gray for sections */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --container-max: 1200px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 50px;
    /* Pill shape */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.site-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Navbar */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.language-btn:hover {
    border-color: var(--primary);
    background-color: rgba(46, 204, 113, 0.05);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: var(--bg-light);
}

.language-option:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.language-option:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.modal-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: row; /* Changed from column to row */
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.privacy-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.under-construction {
    font-size: 0.85rem;
    color: #f59e0b;
    text-align: center;
    font-weight: 600;
}

.pill-label {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    max-width: 800px;
    margin: 0 auto;
}

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

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

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    max-width: 100%;
    margin: 0 auto;
}

/* Waitlist Form - Centered */
.waitlist-container {
    background: var(--bg-main);
    padding: 10px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 500px;
    width: 100%;
    margin-top: var(--spacing-md);
}

.waitlist-form {
    display: flex;
    width: 100%;
    gap: 10px;
}

.email-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    outline: none;
    color: var(--text-main);
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    white-space: nowrap;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Hero Image */
.hero-visual {
    margin-top: var(--spacing-lg);
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    border: 8px solid rgba(255, 255, 255, 0.5);
}

/* Features Grid */
.features-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) var(--spacing-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-main);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

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

.icon-container {
    width: 50px;
    height: 50px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Detailed Features (Zig-Zag) */
.detailed-features-wrapper {
    background-color: var(--bg-light);
    width: 100%;
    padding: var(--spacing-xl) 0;
}

.detailed-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    /* Standardize spacing between cards */
    padding: 0 var(--spacing-md);
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    justify-content: space-between;
    /* Card Styles */
    background-color: var(--bg-main);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
    max-width: 500px;
}

.feature-pill {
    background-color: #e0f2f1;
    /* Soft teal/primary bg */
    color: var(--primary-hover);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-content h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--secondary);
    font-weight: 800;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-img:hover {
    transform: translateY(-5px);
}

/* Responsive Features */
@media (max-width: 900px) {
    .detailed-features {
        padding: 0 var(--spacing-sm);
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .feature-content h2 {
        font-size: 2rem;
    }

    .feature-img {
        max-width: 100%;
        /* Full width on mobile inside card */
    }
}

/* Final CTA Section */
.final-cta-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xxl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    text-align: center;
    width: 100%;
    /* Continue the light background from features */
}

/* Main Footer */
.main-footer {
    background-color: #0f172a; /* Deeper dark for footer */
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    border-top: 8px solid var(--primary); /* Green top border from image */
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-transform: none;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    height: 48px;
    width: auto;
    border-radius: var(--radius-sm);
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 240px;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

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

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-muted);
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: var(--container-max);
    margin: var(--spacing-xl) auto 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: var(--spacing-lg);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom-content .copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Legal Pages Styling */
.legal-page {
    background-color: var(--bg-light);
}

.legal-content {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 800;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    font-weight: 700;
}

.legal-content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    line-height: 1.8;
}

.back-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column.brand, .footer-logo, .footer-tagline {
        align-items: center;
        margin: 0 auto;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility */
.hidden {
    display: none;
}

.success-message {
    color: var(--success);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

/* Download Badges */
.download-badges {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: flex-start;
}

.badge-container {
    position: relative;
    cursor: default;
}

.store-badge {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.badge-container:hover .store-badge {
    opacity: 0.8;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: var(--text-main);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: var(--shadow-soft);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-main) transparent transparent transparent;
}

.badge-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
        padding: 0 var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 var(--spacing-sm);
    }

    /* Responsive Nav Links */
    .nav-links {
        display: none;
        /* Hide text links on mobile, only show CTA button */
    }

    /* Ensure CTA is hidden or maybe show it? keeping it hidden as per default mobile-first approach if defined earlier, 
       but actually let's make sure the Header doesn't look empty. 
       Just Logo is fine for MVP mobile.
    */

    .waitlist-container {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--spacing-sm);
    }

    .app-screenshot {
        border-width: 4px;
        /* Thinner border on mobile */
    }
}

.status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.status-badge.warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.status-badge.info {
    background-color: #e0f2fe;
    color: #075985;
}

.has-profile {
    opacity: 0.7;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #f1f5f9;
}

/* Admin Modals */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    width: 95%;
    max-width: 1320px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

#login-modal .modal-card,
#confirm-modal .modal-card {
    max-width: 500px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: row-reverse; /* Moved close button to the left */
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    max-height: 300px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 24px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .tier-select, .cycle-select, .search-input, .filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--secondary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-save.hidden {
    display: none;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .pill-label {
        font-size: 0.8rem;
    }
}

/* New Styles (Added for Landing Page Update) */

/* Hero Buttons */
.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

/* Comparison Section (Problem vs Solution) */
.comparison-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: white;
}

.comparison-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.comparison-column {
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.comparison-column h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
}



.problems h3 {
    color: var(--secondary);
}

.solutions h3 {
    color: var(--secondary);
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.comparison-item.problem {
    background-color: #fff1f2;
    /* Very light red */
    border-left: 4px solid #e11d48;
}

.comparison-item.solution {
    background-color: #f0fdf4;
    /* Very light green */
    border-left: 4px solid var(--primary);
}

.icon-box {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comparison-item p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

/* Perfect For Section */
.perfect-for-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-light);
    text-align: center;
}

.perfect-for-header h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.perfect-for-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
}

.perfect-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.perfect-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.perfect-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.perfect-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.perfect-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: var(--spacing-xs);
}

.perfect-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px -5px rgba(46, 204, 113, 0.5);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.sticky-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(46, 204, 113, 0.6);
}

.sticky-cta.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }

    .sticky-cta {
        bottom: 20px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 90%;
        text-align: center;
        transform: none;
    }

    /* .sticky-cta.hidden uses the default transform: translateY(100px) which works fine now */
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: white;
    width: 95%;
    max-width: 1320px; /* 3x wider */
    padding: var(--spacing-xl);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlide 0.3s ease-out;
}

#loginModal .modal-card {
    max-width: 660px; /* Half width for login */
}

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

.close-modal {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md); /* Moved from right to left */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--secondary);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.2;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.4;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.login-view.hidden {
    display: none;
}

.error-text.hidden {
    display: none;
}

.error-text {
    display: block;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Google Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: 14px 20px;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

/* Divider */
.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    margin: var(--spacing-sm) 0;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.modal-divider span {
    padding: 0 var(--spacing-md);
}

/* Email Login */
.email-login {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.email-login input {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.email-login input:focus {
    border-color: var(--primary);
}

.login-submit-btn {
    background-color: var(--primary);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.login-submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Modal Footer */
.modal-footer {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.privacy-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.privacy-notice a {
    color: var(--primary);
    text-decoration: underline;
}

.under-construction {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .modal-card {
        padding: var(--spacing-lg);
        border-radius: 20px;
    }
}

/* Dashboard Styles */
.dashboard-body {
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 88px;
}

.sidebar-header {
    padding: 24px;
    cursor: pointer;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo .logo-box {
    background-color: var(--primary);
    color: white;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-logo .logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-logo span {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
    transition: opacity 0.2s;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-logo span {
    opacity: 0;
    pointer-events: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    gap: 12px;
    white-space: nowrap;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: var(--secondary);
}

.nav-item.active {
    background-color: #f0fdf4;
    color: var(--primary);
}

.nav-item span {
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    pointer-events: none;
}

.nav-item .badge {
    margin-left: auto;
    background-color: #f1f5f9;
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-item .badge {
    opacity: 0;
}

.nav-item.active .badge {
    background-color: #dcfce7;
}

/* Dashboard Header */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-header {
    background: white;
    height: 80px;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-bar {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 16px;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--secondary);
}

.search-bar input::placeholder {
    color: #94a3b8;
}

/* Icons */
.nav-icon { 
    display: block; 
    min-width: 20px; 
    height: 20px; 
    background-color: currentColor; 
    mask-repeat: no-repeat; 
    mask-size: contain; 
    mask-position: center;
}

.search-icon { 
    display: block; 
    min-width: 20px; 
    height: 20px; 
    background-color: #64748b; 
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg>');
    mask-repeat: no-repeat;
    mask-size: contain;
}

.dash { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/></svg>'); }
.products { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m7.5 4.27 9 5.15"/><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/></svg>'); }
.sales { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="21" r="1"/><circle cx="19" cy="21" r="1"/><path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"/></svg>'); }
.preorders { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>'); }
.customers { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg>'); }
.analytics { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3v18h18"/><path d="m19 9-5 5-4-4-3 3"/></svg>'); }
.settings { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>'); }
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-container {
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.avatar:hover {
    background-color: #e2e8f0;
}

.avatar-icon { 
    display: block; 
    width: 24px; 
    height: 24px; 
    background-color: #64748b; /* Changed from white to visible color */
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'); 
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    padding: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.profile-dropdown.hidden {
    display: none;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    text-align: left;
}

.logout-link:hover {
    background-color: #fef2f2;
}

.logout-icon { 
    display: block; 
    width: 18px; 
    height: 18px; 
    background-color: currentColor; 
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/><polyline points="16 17 21 12 16 7"/><line x1="21" x2="9" y1="12" y2="12"/></svg>'); 
}

/* Admin Section Styles */
.admin-container {
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
}

.admin-tab {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--secondary);
    font-size: 0.95rem;
}

.placeholder-view {
    padding: 60px;
    text-align: center;
    color: var(--text-muted);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--secondary);
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Email Tray */
.email-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-item {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: all 0.2s;
}

.email-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.email-item.unread {
    background-color: #f0fdf4;
    border-left: 4px solid var(--primary);
}

.email-item.unread .email-subject {
    font-weight: 700;
}

.email-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-sender {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Figures Grid */
.figures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.figure-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid #f1f5f9;
    display: flex;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.figure-img {
    width: 80px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.figure-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figure-info {
    flex: 1;
}

.figure-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.figure-title h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--secondary);
}

.figure-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    position: relative;
}

.figure-status.approved {
    border-color: var(--primary);
    background: var(--primary);
}

.figure-status.approved::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -51%);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge.secondary {
    background: #f1f5f9;
    color: var(--secondary);
}

.btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.figure-status-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.figure-status-toggle.approved {
    background: var(--primary);
    border-color: var(--primary);
}

.figure-status-toggle.approved::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.placeholder-text {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}
@media (max-width: 1024px) {
    /* Relaxing strict collapsed state for tablet */
    .sidebar { width: 88px; }
    /* Only hide text if explicitly collapsed or if we want icon-only mode. 
       User complained about lack of text, so let's allow text but maybe in a cleaner way 
       OR just rely on the mobile toggle logic for smaller screens. 
       For now, let's REMOVE the forcing of hiding text to see if it fixes the user's "icon only" complaint. 
       Actually, if width is 88px, text won't fit. 
       I will set width to auto or 260px to show text, or let it rely on the 'open' class behavior I added later. */
    .sidebar { width: 260px; } 
    /* removed display:none for spans */
    .nav-item { justify-content: flex-start; padding: 14px 18px; }
}

@media (max-width: 768px) {
    /* Sidebar handled by general mobile query now */
    .dash-header { padding: 0 16px; }
    .admin-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
/* =========================================
   Scraper UI Redesign
   ========================================= */

.scraper-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.scraper-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg); /* 32px */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* --- Search Card --- */
.search-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.search-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.search-icon-green {
    color: var(--primary);
    font-size: 1.2rem;
    /* You might need an SVG or icon font here. Using a placeholder for now */
}
.main-search-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.search-input-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-box input {
    width: 100%;
    height: 50px; /* Explicit height to match button/select */
    padding: 0 16px 0 48px; /* Use vertical centering instead of padding */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    background: #f8fafc; /* Very light gray bg */
    outline: none;
    transition: all 0.2s;
}

.search-input-box input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.search-input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn-search-main {
    padding: 0 32px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-search-main:hover {
    background-color: var(--primary-hover);
}

/* --- Suggestions --- */
.suggestions-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.suggestions-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.chip {
    background: #f1f5f9;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 6px; /* Slightly rounded rects as in image */
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    background: #e2e8f0;
    color: var(--secondary);
}

/* --- Empty State --- */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    gap: var(--spacing-md);
}

.empty-icon-circle {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.empty-state-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.empty-state-card p {
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.6;
}

.tip-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    color: #3b82f6; /* Blue */
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================
   Scraper Results List
   ========================================= */

.scraper-results-header-box {
    margin-bottom: var(--spacing-md);
}

.scraper-results-header-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.scraper-results-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.scraper-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.scraper-item {
    display: flex;
    align-items: flex-start; /* Align top */
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: white;
    border: 1px solid var(--border-color); /* Subtle border like mock */
    border-radius: var(--radius-lg); /* Rounded corners */
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9; /* Separator feel if needed, but mock has cards */
}

/* Remove separate card look if they are in a container card? 
   The mock shows them as rows inside a white card OR separate cards. 
   "Resultados Encontrados" looks like it might be in the container card. 
   Let's make them list items inside the content area. 
*/
.scraper-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 24px 0;
}
.scraper-item:last-child {
    border-bottom: none;
}

/* Checkbox Column */
.scraper-checkbox-col {
    padding-top: 8px; /* Align with title */
}

.scraper-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    accent-color: var(--primary);
}

/* Image Column */
.scraper-img-wrapper {
    position: relative;
    width: 100px; /* Approx width */
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.scraper-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Content Column */
.scraper-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scraper-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.scraper-item-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.scraper-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.meta-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace; /* For ID */
}

/* Tags */
.scraper-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.scraper-tag {
    background-color: #4ade80; /* Brighter green like mock */
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.scraper-tag.primary { background-color: #2ecc71; }
.scraper-tag.secondary { background-color: #10b981; }
.scraper-tag.info { background-color: #34d399; }

/* Action Column */
.scraper-action-col {
    padding-top: 8px;
    color: #94a3b8; /* Light gray icon */
    transform: scale(1.2); /* Bigger icon */
    cursor: pointer;
}
.scraper-action-col:hover {
    color: var(--primary);
}

/* Clear Search Link (Below Search Bar) */
.clear-search-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-top: var(--spacing-lg);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
}
.clear-search-link:hover {
    color: var(--secondary);
}


/* --- Text Button & Action Row --- */
.scraper-actions-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.btn-text {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-text:hover {
    background: #f8fafc;
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Pagination Controls */
.search-input-box {
    flex: 1; /* Keep taking available space */
}

/* Pagination Controls */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.page-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0fdf4;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.page-indicator {
    background: var(--primary); /* Green like mock */
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 24px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    box-shadow: 0 4px 6px -1px rgba(46, 204, 113, 0.2);
}

/* Scraper Result Table Styles */
.scraper-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.scraper-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-color);
}

.scraper-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.scraper-row-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.result-img-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.result-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

/* Editable Fields */
[contenteditable]:hover {
    outline: 1px dashed var(--primary);
    background: rgba(46, 204, 113, 0.05);
}

[contenteditable]:focus {
    outline: 2px solid var(--primary);
    background: white;
    color: var(--text-main); /* Fix invisible text on focus */
    padding: 2px 4px;
    margin: -2px -4px;
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Add depth when editing */
}

[contenteditable].badge-pill:focus {
    margin: 0;
    padding: 4px 12px;
    background: white; /* Keep white bg but ensure text logic above handles color */
    color: var(--text-main);
}

.result-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-code {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.badge-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
    background: #e2e8f0;
    color: var(--text-muted);
}

.badge-tag.info {
    background: #e0f2fe;
    color: #0284c7;
}

.badge-tag.line {
    background: #dcfce7;
    color: #16a34a;
}

.source-link {
    font-size: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    margin-left: 8px;
}
.source-link:hover {
    text-decoration: underline;
}

/* Floating Save Bar */
.floating-save-bar {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through empty space */
}

.floating-save-content {
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    pointer-events: auto; /* Re-enable clicks on content */
    transform: translateY(100px);
    animation: slideUp 0.3s forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.selection-info {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-count {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-floating-save {
    padding: 10px 24px;
    border-radius: 24px;
    box-shadow: none;
    font-size: 0.95rem;
}

.btn-floating-save:disabled {
    background: #475569;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

/* Suggestion/Clear Button Row */
.scraper-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Badges Container inside name column */
.result-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Scraper Result Item Details */
.result-main-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.result-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-barcode-row {
    margin-top: 4px;
}

.barcode-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Badge Grid with Labels */
.result-badges-grid {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.badge-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8; /* Muted text */
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--primary); /* Green brand color */
    color: white;
    white-space: nowrap;
}

/* Badge Loading Spinner */
.badge-pill.loading {
    background: #e2e8f0;
    color: #94a3b8;
    position: relative;
    padding-left: 28px;
}

.badge-pill.loading::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid #94a3b8;
    border-top-color: transparent;
    border-radius: 50%;
    animation: badge-spin 0.6s linear infinite;
}

@keyframes badge-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Image Carousel Styles */
.result-img-box {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border-color);
}

.result-img-box img.scraper-img-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
}

.img-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0,0,0,0.02); /* Slight tint on hover */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    pointer-events: none; /* Let clicks pass unless on buttons */
}

.result-img-box:hover .img-controls {
    opacity: 1;
}

.img-nav-btn {
    pointer-events: auto;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.img-nav-btn:hover {
    background: rgba(0,0,0,0.8);
}

.img-counter {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* Mobile Dashboard Layout */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    padding: 0;
    margin-right: 16px;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-xl);
        width: 260px; /* Ensure width is fixed when open */
    }

    .sidebar.open {
        transform: translateX(0);
        width: 260px; /* Ensure full width when open */
    }
    
    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1500;
        display: none;
        backdrop-filter: blur(2px);
    }
    
    .sidebar-overlay.show {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }
    

    .dash-header {
        padding: 0 16px;
    }
}

/* Refined Scraper List Styles */
.scraper-results-table td {
    padding: 24px 16px !important;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}

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

.result-img-box {
    width: 100px;
    height: 100px; 
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.scraper-img-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Bottom Navigation (< 768px) */
@media (max-width: 768px) {
    /* Reset Sidebar for Bottom Bar */
    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100% !important; /* Override explicit widths */
        height: auto;
        transform: none !important; /* Override slide-in */
        z-index: 2000;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background-color: #ffffff;
        padding: 0;
        display: block !important;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
        border-radius: 20px 20px 0 0; /* Optional: Rounded top corners like premium apps */
    }
    
    .sidebar.open {
        width: 100% !important;
        transform: none !important;
    }

    /* Hide Sidebar Header (Logo) */
    .sidebar-header {
        display: none;
    }

    /* Horizontal Nav Layout */
    .sidebar-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between; /* Changed from space-around for scroll behavior */
        align-items: center;
        padding: 8px 4px;
        margin: 0;
        gap: 0;
        overflow-x: auto; /* Enable scrolling */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .sidebar-nav::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    /* Nav Item Styling */
    .nav-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 8px; /* Slightly more side padding */
        gap: 4px;
        border-radius: 12px;
        margin: 0;
        flex: 0 0 auto; /* Don't shrink, allow scroll */
        min-width: 64px; /* Minimum touch target width */
        text-align: center;
        background-color: transparent;
    }
    
    .nav-item:hover {
        background-color: transparent;
        color: var(--primary);
    }
    
    .nav-item.active {
        background-color: transparent; /* No background for active */
        color: var(--primary);
    }

    /* Icons */
    .nav-icon {
        width: 24px;
        height: 24px;
        margin: 0;
        /* Keep existing mask properties */
    }
    
    /* Text */
    .nav-item span:not(.badge) {
        font-size: 0.7rem;
        display: block;
        opacity: 1 !important; /* Ensure visible even if 'collapsed' parent class exists */
        pointer-events: auto !important;
    }
    
    /* Badge styling for bottom bar */
    .badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 16px); /* Align relative to icon center */
        padding: 0;
        width: 16px;
        height: 16px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid white;
    }
    
    /* Hide specific desktop toggles */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Adjust Main Content to layout correctly */
    .dashboard-wrapper {
        padding-bottom: 80px; /* Space for the navbar */
    }
    
    .main-container {
        margin-left: 0 !important;
        width: 100%;
        padding-bottom: 20px; /* Internal padding */
    }
    
    /* Disable Overlay */
    .sidebar-overlay {
        display: none !important;
        pointer-events: none;
    }
    
    /* Ensure header padding */
    .dash-header {
        padding: 12px 16px;
    }
}

/* Responsive Admins Tables */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .admin-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px; /* For scrollbar */
        justify-content: flex-start;
    }

    .admin-tab {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    /* Waitlist Table Responsive */
    #waitlist-rows tr {
        display: flex;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid #f1f5f9;
        gap: 8px;
    }

    #waitlist-rows td {
        display: block;
        padding: 4px 0 !important;
        border: none;
    }
    
    #waitlist-rows td:last-child {
        margin-top: 8px;
        display: flex;
        justify-content: flex-end;
    }

    #waitlist-rows thead {
        display: none; /* Hide headers on mobile */
    }

    /* Profiles Table Responsive */
    #profiles-rows tr {
        display: flex;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid #f1f5f9;
        gap: 8px;
        position: relative;
    }

    #profiles-rows td {
        display: block;
        padding: 4px 0 !important;
        border: none;
        width: 100%;
    }

    #profiles-rows thead {
        display: none;
    }

    #profiles-rows td:nth-child(1)::before { content: "Fecha: "; font-weight: 600; color: #64748b; }
    #profiles-rows td:nth-child(2)::before { content: "Email: "; font-weight: 600; color: #64748b; }
    #profiles-rows td:nth-child(3)::before { content: "Plan: "; font-weight: 600; color: #64748b; }
    #profiles-rows td:nth-child(4)::before { content: "Ciclo: "; font-weight: 600; color: #64748b; }

    .tier-select, .cycle-select {
        width: 100%;
        margin-top: 4px;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .view-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .view-actions input, 
    .view-actions select, 
    .view-actions button {
        width: 100%;
    }
}
