:root {
    --primary: #064e3b;
    --primary-hover: #043e2e;
    --primary-light: #0a5c36;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #ecfdf5;
    --secondary: #f1f5f9;
    --secondary-hover: #e2e8f0;
    --bg-main: #f6f8f6;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-dim: #64748b;
    --glass-border: #e2e8f0;
    --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px -2px rgba(6, 78, 59, 0.08);
    --shadow-lg: 0 12px 30px -4px rgba(6, 78, 59, 0.12);
    --radius-lg: 20px;
    --radius-md: 14px;
    --sidebar-w: 260px;
    
    /* Glassmorphism Tokens */
    --glass-bg: #ffffff;
    --glass-bg-hover: #ffffff;
    --glass-blur: 12px;
    --glass-shadow: 0 4px 24px 0 rgba(6, 78, 59, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ===================== Tasko Cards & Metrics ===================== */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.glass:hover {
    box-shadow: var(--shadow-md);
}

/* Featured Solid Dark Green Metric Card */
.stat-card-featured {
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card-featured .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.stat-card-featured .stat-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.stat-card-featured .stat-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.stat-card-featured .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1.25rem 0 1rem;
    color: #ffffff;
}

.stat-card-featured .stat-trend {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Standard White Metric Card */
.stat-card-standard {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card-standard:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-standard .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.stat-card-standard .stat-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.stat-card-standard .stat-arrow:hover {
    transform: scale(1.1);
}

.stat-card-standard .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 1.25rem 0 1rem;
    color: var(--text-main);
}

.stat-card-standard .stat-trend {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ===================== Tasko Bar Chart Widget ===================== */
.chart-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-top: 1.5rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    padding-bottom: 1.75rem;
}

.chart-bars-area {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 38px;
    border-radius: 12px;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chart-bar.fill-dark {
    background: #064e3b;
}

.chart-bar.fill-accent {
    background: #10b981;
}

.chart-day-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ===================== Buttons ===================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(6, 78, 59, 0.25);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-accent {
    background: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

/* ============ Tasko Sidebar & Navigation ============ */
.floating-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: #ffffff;
    border-right: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: var(--sidebar-w);
    padding: 2.25rem 3rem;
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    transition: all 0.3s ease;
}

.nav-section-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: #a1a1aa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 1.5rem 0 0.5rem 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 9999px;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--accent-light);
}

.nav-link.active {
    background: var(--primary);
    color: #ffffff;
}

.nav-link.active i {
    color: #ffffff;
}

.nav-link .badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.nav-link.active .badge {
    background: #ffffff;
    color: var(--primary);
}
/* ===================== Mobile Navigation System ===================== */

/* Mobile Top Header (Fixed at top for screens ≤ 992px) */
.mobile-top-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.mobile-top-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(6, 78, 59, 0.2);
}

.mobile-top-logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.mobile-top-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-top-icon-btn:hover {
    background: #e2e8f0;
}

.mobile-top-avatar-link {
    display: block;
    text-decoration: none;
}

.mobile-top-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    display: block;
}

/* Mobile Slide-Over Drawer Navigation */
.mobile-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-drawer-backdrop.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-width: 86vw;
    background: #ffffff;
    z-index: 10001;
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.mobile-drawer-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.mobile-drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.mobile-drawer-close-btn:hover {
    background: #cbd5e1;
}

.mobile-drawer-nav {
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Mobile Bottom Bar (Floating) */
.mobile-bottom-bar {
    display: none !important;
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    transition: all 0.2s;
    flex: 1;
    height: 100%;
    position: relative;
    border-radius: 12px;
}

.bottom-nav-link i {
    font-size: 1.15rem;
    transition: transform 0.2s;
}

.bottom-nav-link:active i {
    transform: scale(0.9);
}

.bottom-nav-link.active {
    color: var(--primary);
}

.bottom-nav-link.active::after {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 2px;
}

.bottom-badge-dot {
    position: absolute;
    top: 10px;
    right: calc(50% - 14px);
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
}

/* Hide legacy sidebar */
.sidebar { display: none; }

/* Mobile Hamburger Toggle */
.mobile-toggle {
    display: none;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.25rem;
    position: sticky;
    top: 1rem;
    left: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* ===================== Stats Grid ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===================== Typography ===================== */
h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.text-dim    { color: var(--text-dim); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent-dark); }

/* ===================== Navigation ===================== */
.nav-link:hover   { background: var(--accent-light); color: var(--primary); }
.nav-link.active  { background: var(--primary) !important; color: #ffffff !important; }
.nav-link.active i, .nav-link.active span { color: #ffffff !important; }

/* ===================== Modal ===================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    max-width: 540px;
    width: 100%;
    position: relative;
}

/* ===================== Forms ===================== */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(224, 94, 54, 0.12);
}

/* ===================== Layout Helpers ===================== */
.responsive-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.responsive-grid {
    display: grid;
    gap: 1.5rem;
}

/* ===================== Animations ===================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeIn 0.45s ease forwards; }

/* ===================== Utility ===================== */
.hide-desktop { display: none; }

/* ===================== BREAKPOINTS ===================== */

/* --- Tablet & Below (≤ 992px) --- */
@media (max-width: 992px) {
    .floating-sidebar {
        display: none !important;
    }

    .mobile-top-header {
        display: flex !important;
    }

    .mobile-bottom-bar {
        display: flex !important;
        flex-direction: row !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: calc(60px + 1.5rem) 1.5rem 5.5rem !important; /* Top clears header, bottom clears bottom bar */
    }

    .hide-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: flex !important;
    }

    /* 2-Column splits collapse gracefully on tablet */
    .responsive-grid,
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns: 1fr 1.8fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- Standard Mobile (≤ 768px) --- */
@media (max-width: 768px) {
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.05rem; }

    .main-content {
        padding: calc(60px + 1rem) 1rem 5.5rem !important;
    }

    .mobile-toggle {
        display: flex;
        margin-bottom: 1rem;
    }

    /* Stack responsive flex containers */
    .responsive-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }

    .responsive-flex > div,
    .responsive-flex > button,
    .responsive-flex > a {
        width: 100%;
    }

    /* Dashboard Stats 2x2 grid on mobile */
    .stats-grid,
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .stat-card-featured,
    .stat-card-standard,
    .stat-card {
        padding: 1.1rem !important;
        border-radius: 16px !important;
    }

    .stat-card-featured .stat-value,
    .stat-card-standard .stat-value {
        font-size: 1.85rem !important;
        margin: 0.75rem 0 0.5rem !important;
    }

    /* Calendar Day Grid on mobile */
    .calendar-grid {
        gap: 0.35rem !important;
        margin-top: 1rem !important;
    }

    .calendar-day {
        font-size: 0.82rem !important;
        border-radius: 8px !important;
    }

    .calendar-header {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }

    /* Task Card Mobile Optimization */
    .task-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        gap: 1rem !important;
    }

    .task-card > div:first-child {
        flex-direction: column !important;
        gap: 0.85rem !important;
    }

    /* Task action buttons wrap */
    .task-actions-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .task-actions-row > .btn {
        flex: 1 1 120px;
    }

    /* Modal: Mobile Bottom Sheet */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 1.75rem 1.25rem 2rem !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Buttons stay touch-friendly (min 44px) */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Chat layout for mobile */
    .chat-container {
        height: calc(100vh - 13rem) !important;
        border-radius: 16px !important;
    }

    .chat-header {
        padding: 0.75rem 1rem !important;
    }

    .chat-messages {
        padding: 1rem 0.75rem !important;
    }

    .message-bubble {
        max-width: 86% !important;
        font-size: 0.9rem !important;
    }

    .chat-input-container {
        padding: 0.75rem 0.85rem !important;
        gap: 0.5rem !important;
    }

    .chat-input {
        padding: 0.65rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .chat-send-btn {
        width: 42px !important;
        height: 42px !important;
    }

    /* Analytics filters stack */
    .analytics-select {
        width: 100% !important;
    }

    /* Landing dark hero links drawer */
    .dark-hero-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0d1527;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .dark-hero-links.mobile-open {
        display: flex !important;
    }

    .dark-hero-links li {
        width: 100%;
        text-align: center;
    }

    .dark-hero-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.05rem;
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* --- Compact Phone (≤ 480px) --- */
@media (max-width: 480px) {
    h1 { font-size: 1.45rem !important; }
    h2 { font-size: 1.15rem !important; }
    
    .main-content {
        padding: calc(60px + 0.75rem) 0.75rem 5.5rem !important;
    }

    /* Single Column Stats on small phones */
    .stats-grid,
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .chart-wrapper {
        gap: 0.5rem !important;
    }

    .chart-bar {
        width: 22px !important;
        border-radius: 6px !important;
    }

    .modal-content {
        padding: 1.25rem 1rem 1.75rem !important;
    }

    .timeline-slider-labels span {
        font-size: 0.65rem !important;
    }

    /* Profile page adjustments */
    .profile-header-banner {
        height: 100px !important;
    }

    .avatar-large, .avatar-edit-overlay {
        width: 88px !important;
        height: 88px !important;
        bottom: -44px !important;
        border-radius: 20px !important;
    }

    .profile-card div[style*="padding: 5rem"] {
        padding: 3.5rem 1rem 1.25rem !important;
    }

    .profile-stats-row {
        gap: 0.75rem !important;
        justify-content: space-around !important;
    }

    .profile-stats-row > div > div:first-child {
        font-size: 1.5rem !important;
    }

    .profile-stats-row > div > div:last-child {
        font-size: 0.65rem !important;
    }

    .profile-edit-btn {
        top: 0.75rem !important;
        right: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
    }

    /* Login container */
    .login-container {
        padding: 2rem 1.25rem !important;
        margin-top: 3.5rem !important;
    }

    .back-landing-btn {
        top: 1rem !important;
        left: 1rem !important;
        padding: 0.45rem 0.85rem !important;
        font-size: 0.8rem !important;
    }

    /* Table scrolling on small screens */
    .member-table {
        min-width: 480px;
    }
}

/* Explicit Calendar Grid protection */
.calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
}

/* Global mobile tap enhancements */
button, a, input, select {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   Team setup & Chat Interface (WhatsApp-style group chat) Styles
   ========================================================================== */

/* Guard overlay for non-team users */
.team-guard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    background: rgba(248, 250, 252, 0.85);
    padding: 1.5rem;
}

.team-guard-card {
    max-width: 500px;
    width: 100%;
    padding: 3rem;
    background: white;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-guard-card i {
    font-size: 3rem;
    color: var(--primary-light);
    background: var(--accent-light);
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dual Option Cards (teams.html) */
.team-setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

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

.team-setup-card {
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.team-setup-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-setup-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--accent-light);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Code Display Badge */
.code-display-badge {
    background: #f8fafc;
    border: 2px dashed var(--primary-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 1rem 0;
}

.code-text {
    font-family: 'JetBrains Mono', 'Monaco', monospace;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-hover);
    letter-spacing: 0.1em;
}

/* Chat Layout Styles (chat.html) */
.chat-container {
    display: flex;
    height: calc(100vh - 8rem);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .chat-container {
        height: calc(100vh - 12rem);
    }
}

.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    background: white;
}

@media (max-width: 768px) {
    .chat-sidebar {
        display: none; /* Hide sidebar list on mobile to maximize chat space */
    }
}

.chat-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: #f8fafc;
}

.chat-member-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-member-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}

.chat-member-item:hover {
    background: #f8fafc;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    background-image: radial-gradient(rgba(5, 150, 105, 0.04) 1.5px, transparent 1.5px), 
                      radial-gradient(rgba(5, 150, 105, 0.04) 1.5px, #f1f5f9 1.5px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    position: relative;
}

.chat-header {
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-bubble {
    max-width: 65%;
    padding: 0.75rem 1.25rem;
    border-radius: 1.25rem;
    line-height: 1.5;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    animation: bubbleFadeIn 0.3s ease-out forwards;
}

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

@media (max-width: 480px) {
    .message-bubble {
        max-width: 85%;
    }
}

.message-bubble.received {
    background: white;
    color: var(--text-main);
    border-bottom-left-radius: 0.25rem;
    align-self: flex-start;
}

.message-bubble.sent {
    background: var(--accent-light);
    color: var(--text-main);
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
}

/* Fallback theme for sent if user prefers app matching brand primary */
.message-bubble.sent-brand {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
    align-self: flex-end;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-hover);
    margin-bottom: 0.25rem;
}

.message-text {
    word-break: break-word;
    font-weight: 500;
}

.message-time {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: right;
    margin-top: 0.35rem;
    opacity: 0.6;
    align-self: flex-end;
}

.chat-input-container {
    padding: 1.25rem;
    background: white;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input-form {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.chat-input {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: 100px;
    outline: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.chat-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(224, 94, 54, 0.12);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* ==========================================================================
   Video Calling & Modal Overlay Styles
   ========================================================================== */

/* Video Call Trigger Button in Header */
.chat-call-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--primary-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    margin-right: 0.75rem;
}

.chat-call-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Call Modal Overlay */
.video-call-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.video-call-content {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 960px;
    height: 100%;
    max-height: 640px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Minimized Floating Picture-in-Picture Call Card */
.video-call-content.minimized {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 340px;
    height: 250px;
    max-height: 250px;
    z-index: 2100;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    animation: slideIn 0.3s ease-out;
}

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

.video-call-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.video-call-body {
    flex: 1;
    position: relative;
    background: #0f172a;
}

/* Pulsing Video Call Invite Chat Bubble */
.meeting-invite-card {
    background: linear-gradient(135deg, var(--accent-light), #ffffff);
    border: 1.5px solid var(--primary-light);
    border-radius: 1rem;
    padding: 1.25rem;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
    box-shadow: var(--shadow-sm);
}

.meeting-invite-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meeting-invite-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    flex-shrink: 0;
}

.meeting-invite-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: var(--primary);
    opacity: 0.4;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}

.meeting-invite-btn {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

/* ==========================================================================
   Responsive Refinements for Mobile Screens
   ========================================================================== */

/* Slider handle hit target enlargement for touch */
.slider-handle {
    position: absolute;
    cursor: ew-resize;
}
.slider-handle::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -15px;
    right: -15px;
    bottom: -10px;
    cursor: ew-resize;
}

/* General Layout adjustments for mobile down to 320px */
@media (max-width: 768px) {
    /* Fullscreen video call modal on mobile */
    .video-call-modal {
        padding: 0 !important;
    }
    .video-call-content {
        max-height: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
    }
    .video-call-content.minimized {
        bottom: 85px !important; /* clear bottom mobile nav bar height */
        right: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        height: 180px !important;
    }

    /* Mobile Drawer Sidebar for Chat */
    .chat-sidebar {
        position: fixed !important;
        left: -290px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1500;
        background: white;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        display: flex !important; /* override hide */
    }
    
    .chat-sidebar.active {
        left: 0;
    }

    /* Backdrop for chat sidebar drawer */
    .chat-sidebar-backdrop {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        z-index: 1400;
        display: none;
    }
    
    .chat-sidebar-backdrop.active {
        display: block;
    }
}

@media (max-width: 480px) {
    /* Grid collapse fallback for custom inline style grid configurations */
    .responsive-grid, 
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Padding offsets for mobile comfort */
    .main-content {
        padding: 0.75rem 0.75rem 6.5rem !important;
    }
    
    /* Shrink the size of range slider labels for tiny devices */
    .timeline-slider-labels span {
        font-size: 0.65rem;
    }
    
    /* Chat message size adjustments */
    .message-bubble {
        max-width: 90% !important;
    }
}

/* ==========================================================================
   AI Writing Assistant Popover Styles
   ========================================================================== */

.ai-popover {
    position: absolute;
    bottom: 80px;
    left: 20px;
    width: 380px;
    max-height: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15), 0 0 20px rgba(224, 94, 54, 0.04);
    border-radius: 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    animation: aiFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

@keyframes aiFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(254, 240, 234, 0.8), rgba(255, 255, 255, 0.8));
}

.ai-popover-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-popover-title i {
    background: linear-gradient(135deg, var(--primary-light), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

.ai-popover-close, .ai-popover-settings {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-popover-close:hover {
    color: #ef4444;
    background: #fee2e2;
}

.ai-popover-settings:hover {
    color: var(--primary);
    background: var(--accent-light);
}

.ai-popover-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.ai-tone-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.ai-tone-btn {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.ai-tone-btn i {
    font-size: 0.95rem;
    color: var(--primary);
}

.ai-tone-btn:hover {
    border-color: var(--primary-light);
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(224, 94, 54, 0.05);
}

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

.ai-prompt-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-prompt-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    outline: none;
    font-size: 0.85rem;
    resize: none;
    min-height: 70px;
    transition: all 0.2s;
    font-family: inherit;
}

.ai-prompt-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224, 94, 54, 0.1);
}

.ai-generate-btn {
    align-self: flex-end;
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

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

/* Setup Screen */
.ai-setup-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0.5rem 0;
}

.ai-setup-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-light);
    color: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.ai-setup-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.45;
}

.ai-input-group {
    position: relative;
    width: 100%;
}

.ai-key-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.ai-key-input:focus {
    background: white;
    border-color: var(--primary);
}

.ai-key-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.9rem;
}

.ai-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.ai-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Loading Shimmer State */
.ai-loader {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
}

.ai-shimmer-bar {
    height: 15px;
    width: 100%;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.ai-shimmer-bar.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Suggestion Card Layout */
.ai-suggestion-card {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.01);
}

.ai-suggestion-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-actions-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.ai-action-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s;
    background: white;
    color: var(--text-dim);
}

.ai-action-btn.apply-btn {
    background: var(--primary);
    color: white;
    border: none;
}

.ai-action-btn.apply-btn:hover {
    background: var(--primary-hover);
}

.ai-action-btn:hover:not(.apply-btn) {
    background: #f1f5f9;
    color: var(--text-main);
}

/* Settings back/header banner */
.ai-settings-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.2s;
}

.ai-settings-banner:hover {
    color: var(--primary);
}

/* Responsive adjust for mobile */
@media (max-width: 768px) {
    .ai-popover {
        position: fixed;
        bottom: 85px; /* offset for bottom mobile navigation bar */
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-height: 400px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    }
}

/* ==========================================================================
   Smart Assistant Chat Global Styles
   ========================================================================== */

.assistant-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(224, 94, 54, 0.4), 0 0 0 0 rgba(224, 94, 54, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fabPulse 2s infinite;
}

.assistant-fab:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(224, 94, 54, 0.5);
}

.assistant-fab:active {
    transform: scale(0.95);
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 8px 30px rgba(224, 94, 54, 0.4), 0 0 0 0 rgba(224, 94, 54, 0.4);
    }
    70% {
        box-shadow: 0 8px 30px rgba(224, 94, 54, 0.4), 0 0 0 15px rgba(224, 94, 54, 0);
    }
    100% {
        box-shadow: 0 8px 30px rgba(224, 94, 54, 0.4), 0 0 0 0 rgba(224, 94, 54, 0);
    }
}

.assistant-panel {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 380px;
    height: 520px;
    max-height: 80vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.assistant-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.assistant-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(224, 94, 54, 0.08), rgba(255, 255, 255, 0.05));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assistant-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assistant-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.assistant-header-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
}

.assistant-header-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.assistant-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-close:hover {
    color: #ef4444;
    background: #fee2e2;
}

.assistant-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
}

.assistant-msg-row {
    display: flex;
    width: 100%;
}

.assistant-msg-row.user {
    justify-content: flex-end;
}

.assistant-msg-row.ai {
    justify-content: flex-start;
}

.assistant-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: var(--shadow-sm);
    animation: bubbleFadeIn 0.25s ease forwards;
}

.assistant-bubble.user {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.25rem;
}

.assistant-bubble.ai {
    background: white;
    color: var(--text-main);
    border-bottom-left-radius: 0.25rem;
    border: 1px solid var(--glass-border);
}

.assistant-bubble p {
    margin-bottom: 0.5rem;
}
.assistant-bubble p:last-child {
    margin-bottom: 0;
}

.assistant-bubble ul, .assistant-bubble ol {
    margin-left: 1.25rem;
    margin-bottom: 0.5rem;
}
.assistant-bubble ul:last-child, .assistant-bubble ol:last-child {
    margin-bottom: 0;
}

.assistant-bubble li {
    margin-bottom: 0.25rem;
}

.assistant-bubble code {
    font-family: Consolas, Monaco, monospace;
    background: #f1f5f9;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    color: #ef4444;
}

.assistant-bubble blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
    color: var(--text-dim);
    margin: 0.5rem 0;
}

.assistant-chips-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
    align-self: flex-start;
    width: 100%;
}

.assistant-chip-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.assistant-chips {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.assistant-chip {
    background: white;
    border: 1.5px solid var(--glass-border);
    padding: 0.5rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-hover);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.assistant-chip i {
    color: var(--primary);
}

.assistant-chip:hover {
    border-color: var(--primary-light);
    background: var(--accent-light);
    transform: translateX(3px);
}

.assistant-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--glass-border);
    background: white;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.assistant-input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: 100px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.assistant-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224, 94, 54, 0.12);
}

.assistant-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.assistant-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.assistant-send:disabled {
    background: var(--text-dim);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* API setup card inside assistant body */
.assistant-setup-card {
    background: white;
    border: 1px dashed var(--primary-light);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

/* Responsive adjust for mobile */
@media (max-width: 768px) {
    .assistant-fab {
        bottom: 5.5rem; /* raise fab to clear mobile bottom bar */
        right: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    
    .assistant-panel {
        bottom: 9.25rem; /* raise panel to clear mobile bottom bar and fab */
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: 420px;
        max-height: 70vh;
    }
}

/* ==========================================================================
   LANDING PAGE STYLES (TeamSync Product Landing Page)
   ========================================================================== */

/* Announcement Bar */
.top-announcement-bar {
    background: linear-gradient(90deg, #064e3b, #047857, #10b981);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 1rem;
    position: relative;
    z-index: 1001;
}

.top-announcement-bar a {
    color: #a7f3d0;
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Landing Navigation Header */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.landing-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-logo-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 8px 16px rgba(6, 78, 59, 0.2);
}

.landing-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.landing-nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav-outline {
    background: transparent;
    border: 1.5px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-nav-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--accent-light);
}

.btn-nav-primary {
    background: var(--primary);
    color: white;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(6, 78, 59, 0.2);
}

.btn-nav-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(6, 78, 59, 0.25);
}

/* Mobile Hamburger Menu */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Landing Section Wrapper */
.landing-section {
    padding: 5rem 1.5rem;
    max-width: 1240px;
    margin: 0 auto;
}

.landing-section-alt {
    background: #ffffff;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-light);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Hero Section */
.landing-hero {
    padding: 4rem 1.5rem 6rem;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    padding: 0.9rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(6, 78, 59, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(6, 78, 59, 0.35);
}

.btn-hero-secondary {
    padding: 0.9rem 1.8rem;
    background: white;
    border: 1.5px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.avatar-group img:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.88rem;
    color: var(--text-dim);
    font-weight: 600;
}

.trust-stars {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

/* Interactive Hero Preview Window */
.hero-preview-container {
    position: relative;
}

.hero-window {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(6, 78, 59, 0.15);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.hero-window:hover {
    transform: translateY(-5px);
}

.window-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.window-content {
    padding: 1.5rem;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.hero-mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-mock-card {
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.floating-badge-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 0.9rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: floatAnim 4s ease-in-out infinite;
}

.floating-ai-card {
    position: absolute;
    top: 40px;
    right: -25px;
    background: var(--primary);
    color: white;
    padding: 0.9rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.25);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: floatAnim 4s ease-in-out infinite 2s;
    font-size: 0.85rem;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(6, 78, 59, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.feature-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--accent-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.feature-card-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.feature-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Interactive Tab Showcase */
.tab-showcase-container {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.tab-buttons {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.4rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--accent-light);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 16px rgba(6, 78, 59, 0.2);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.tab-pane-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.tab-pane-text p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tab-pane-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tab-pane-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.tab-pane-list li i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Impact Stat Counter Grid */
.impact-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.impact-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.impact-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.impact-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* Steps / Workflow */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 14px rgba(6, 78, 59, 0.2);
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

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

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.98rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.testimonial-user img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Pricing Section */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pricing-toggle-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.pricing-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}

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

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 34px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

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

input:checked + .slider-round:before {
    transform: translateX(26px);
}

.discount-badge {
    padding: 0.25rem 0.6rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(6, 78, 59, 0.15);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.35rem 1.2rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.25);
}

.pricing-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pricing-subtitle {
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 1.75rem;
}

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

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2.25rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-main);
}

.pricing-features li i {
    color: var(--accent);
    font-size: 1rem;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-question {
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.35rem;
}

/* High Conversion CTA Banner */
.cta-banner-box {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #065f46 100%);
    border-radius: 28px;
    padding: 4rem 2.5rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 50px rgba(6, 78, 59, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-banner-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.8px;
}

.cta-banner-desc {
    font-size: 1.15rem;
    color: #a7f3d0;
    max-width: 620px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}

.cta-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-white {
    padding: 0.9rem 2.2rem;
    background: white;
    color: var(--primary);
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-cta-white:hover {
    background: #ecfdf5;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Landing Footer */
.landing-footer {
    background: #0b1329;
    color: #94a3b8;
    padding: 4.5rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.footer-socials a:hover {
    background: var(--primary);
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column ul a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column ul a:hover {
    color: white;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.newsletter-input-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    color: white;
    font-size: 0.85rem;
    width: 100%;
}

.newsletter-input-group button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    cursor: pointer;
    font-weight: 700;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

/* Modal Overlay for Landing Page Login/Register */
.landing-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.landing-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.landing-modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.landing-modal-overlay.active .landing-modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* Responsive Styles for Landing Page */
@media (max-width: 1024px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .landing-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-md);
    }

    .landing-nav-links.mobile-open {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.25rem;
    }

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

    .tab-pane-content {
        grid-template-columns: 1fr;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   CLEVORA-STYLE DARK HERO & 3D FANNING CARDS WITH SVG CURVE
   ========================================================================== */

.dark-hero-wrapper {
    background: linear-gradient(180deg, #052219 0%, #093326 65%, #0c3d2f 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-bottom: 1.5rem;
}

.dark-hero-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark-hero-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.dark-hero-logo-icon {
    width: 38px;
    height: 38px;
    background: #a3e635;
    color: #06231a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(163, 230, 53, 0.25);
}

.dark-hero-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.dark-hero-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.dark-hero-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dark-hero-links a:hover {
    color: #a3e635;
}

.btn-lime-pill {
    background: #a3e635;
    color: #06231a;
    padding: 0.65rem 1.6rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.25);
    text-decoration: none;
    display: inline-block;
}

.btn-lime-pill:hover {
    background: #bef264;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(163, 230, 53, 0.35);
}

.clevora-hero-content {
    max-width: 880px;
    margin: 3rem auto 2.5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.clevora-hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.clevora-hero-sub {
    font-size: 1.15rem;
    color: #9cb8af;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 2.25rem;
}

.clevora-main-btn {
    background: #ffffff;
    color: #06231a;
    padding: 0.9rem 2.6rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.clevora-main-btn:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* 3D Fanning Cards Showcase (Adaptive & Responsive) */
.clevora-cards-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
    position: relative;
    z-index: 10;
}

.clevora-cards-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25rem;
    perspective: 1200px;
    padding: 2.25rem 1rem 3.5rem;
    /* Smooth touch scrolling on smaller screens */
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.clevora-cards-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

.clevora-card {
    flex: 1 1 0;
    max-width: 235px;
    min-width: 175px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    cursor: pointer;
    scroll-snap-align: center;
    isolation: isolate;
}

.clevora-card:hover {
    transform: translateY(-18px) scale(1.05) rotate(0deg) !important;
    z-index: 30 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.clevora-card.lime {
    background: #a3e635;
    color: #06231a;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.clevora-card.teal {
    background: #0d382b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.clevora-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}
.dark-hero-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark-hero-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.dark-hero-logo-icon {
    width: 38px;
    height: 38px;
    background: #a3e635;
    color: #06231a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(163, 230, 53, 0.25);
}

.dark-hero-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.dark-hero-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.dark-hero-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dark-hero-links a:hover {
    color: #a3e635;
}

@media (max-width: 992px) {
    .dark-hero-nav {
        position: relative;
        padding: 1rem 1.25rem;
    }

    .dark-hero-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #06231a;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
        z-index: 1000;
    }

    .dark-hero-links.mobile-open {
        display: flex !important;
    }

    .dark-hero-links li {
        width: 100%;
        text-align: center;
    }

    .dark-hero-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.05rem;
        color: white;
    }

    .mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .dark-hero-nav {
        padding: 0.85rem 0.75rem;
    }
    .dark-hero-logo-text {
        font-size: 1.15rem;
    }
    .dark-hero-nav .btn-lime-pill {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }
    .dark-hero-nav #authBtnLogin {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }
}

.btn-lime-pill {
    background: #a3e635;
    color: #06231a;
    padding: 0.65rem 1.6rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.25);
    text-decoration: none;
    display: inline-block;
}

.btn-lime-pill:hover {
    background: #bef264;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(163, 230, 53, 0.35);
}

.clevora-hero-content {
    max-width: 880px;
    margin: 3rem auto 2.5rem;
    text-align: center;
    padding: 0 1.5rem;
}

.clevora-hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.clevora-hero-sub {
    font-size: 1.15rem;
    color: #9cb8af;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 2.25rem;
}

.clevora-main-btn {
    background: #ffffff;
    color: #06231a;
    padding: 0.9rem 2.6rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.clevora-main-btn:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

/* 3D Fanning Cards Showcase (Adaptive & Responsive) */
.clevora-cards-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
    position: relative;
    z-index: 10;
}

.clevora-cards-grid {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25rem;
    perspective: 1200px;
    padding: 2.25rem 1rem 3.5rem;
    /* Smooth touch scrolling on smaller screens */
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.clevora-cards-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}

.clevora-card {
    flex: 1 1 0;
    max-width: 235px;
    min-width: 175px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    cursor: pointer;
    scroll-snap-align: center;
    isolation: isolate;
}

.clevora-card:hover {
    transform: translateY(-18px) scale(1.05) rotate(0deg) !important;
    z-index: 30 !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.clevora-card.lime {
    background: #a3e635;
    color: #06231a;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.clevora-card.teal {
    background: #0d382b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.clevora-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.clevora-card.lime .clevora-card-title {
    color: #06231a;
}

.clevora-card.teal .clevora-card-title {
    color: #ffffff;
}

.card-video-btn {
    background: #ffffff;
    color: #06231a;
    border: none;
    border-radius: 100px;
    padding: 0.5rem 1.1rem;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
}

.card-img-box {
    width: 100%;
    flex: 1;
    min-height: 190px;
    max-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
    display: block;
}

.clevora-card:hover .card-img-box img {
    transform: scale(1.05);
}

/* 3D Arc Positioning for Desktop - Perfect Curved Alignment */
.clevora-card-1 {
    border-radius: 38px 20px 22px 26px;
    transform: rotate(-6deg) translateY(14px);
}

.clevora-card-2 {
    border-radius: 22px;
    transform: rotate(-3deg) translateY(4px);
}

.clevora-card-3 {
    border-radius: 24px;
    transform: rotate(0deg) translateY(-14px) scale(1.04);
    z-index: 5;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
}

.clevora-card-4 {
    border-radius: 22px;
    transform: rotate(3deg) translateY(4px);
}

.clevora-card-5 {
    border-radius: 20px 38px 26px 22px;
    transform: rotate(6deg) translateY(14px);
}

/* Bottom Organic SVG Curve Transition */
.clevora-curve-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -60px;
    z-index: 1;
}

.clevora-curve-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 120px;
}

.clevora-curve-divider path {
    fill: #ffffff;
}

/* Responsive 3D Fanning Arc & Hero Curve for Tablet & Mobile */
@media (max-width: 1100px) {
    .clevora-cards-container {
        padding: 1rem 0.5rem 0;
    }

    .clevora-cards-grid {
        justify-content: center;
        gap: 0.75rem;
        padding: 2rem 0.5rem 3rem;
    }

    .clevora-card {
        flex: 1 1 0;
        max-width: 190px;
        min-width: 135px;
        height: 310px;
        padding: 1.1rem 0.85rem 0.85rem;
    }

    .clevora-card-title {
        font-size: 0.88rem;
        margin-bottom: 0.5rem;
    }

    .card-video-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.68rem;
        margin-bottom: 0.5rem;
    }

    .card-img-box {
        min-height: 140px;
        max-height: 170px;
        border-radius: 12px;
    }

    .clevora-card-1 {
        border-radius: 30px 16px 18px 22px;
        transform: rotate(-6deg) translateY(10px);
    }

    .clevora-card-2 {
        border-radius: 18px;
        transform: rotate(-3deg) translateY(3px);
    }

    .clevora-card-3 {
        border-radius: 20px;
        transform: rotate(0deg) translateY(-10px) scale(1.03);
    }

    .clevora-card-4 {
        border-radius: 18px;
        transform: rotate(3deg) translateY(3px);
    }

    .clevora-card-5 {
        border-radius: 16px 30px 22px 18px;
        transform: rotate(6deg) translateY(10px);
    }

    .clevora-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .dark-hero-wrapper {
        padding-bottom: 1rem;
    }

    .clevora-hero-title {
        font-size: 2.1rem;
        letter-spacing: -0.8px;
        margin-bottom: 0.85rem;
    }

    .clevora-hero-sub {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .clevora-cards-container {
        padding: 0.5rem 0.25rem 0;
    }

    .clevora-cards-grid {
        justify-content: center;
        gap: 0.35rem;
        padding: 1.5rem 0.25rem 2.25rem;
    }

    .clevora-card {
        flex: 1 1 0;
        max-width: 135px;
        min-width: 60px;
        height: 230px;
        padding: 0.65rem 0.45rem 0.45rem;
    }

    .clevora-card-title {
        font-size: 0.62rem;
        line-height: 1.25;
        margin-bottom: 0.35rem;
        letter-spacing: -0.2px;
    }

    .card-video-btn {
        padding: 0.22rem 0.5rem;
        font-size: 0.52rem;
        gap: 0.25rem;
        margin-bottom: 0.35rem;
    }

    .card-img-box {
        min-height: 100px;
        max-height: 130px;
        border-radius: 8px;
    }

    .clevora-card-1 {
        border-radius: 22px 12px 14px 16px;
        transform: rotate(-6deg) translateY(8px);
    }

    .clevora-card-2 {
        border-radius: 12px;
        transform: rotate(-3deg) translateY(2px);
    }

    .clevora-card-3 {
        border-radius: 14px;
        transform: rotate(0deg) translateY(-8px) scale(1.03);
    }

    .clevora-card-4 {
        border-radius: 12px;
        transform: rotate(3deg) translateY(2px);
    }

    .clevora-card-5 {
        border-radius: 12px 22px 16px 14px;
        transform: rotate(6deg) translateY(8px);
    }

    .clevora-curve-divider {
        margin-top: -35px;
    }

    .clevora-curve-divider svg {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .clevora-cards-grid {
        gap: 0.25rem;
        padding: 1.25rem 0.15rem 1.85rem;
    }

    .clevora-card {
        height: 200px;
        padding: 0.5rem 0.35rem 0.35rem;
    }

    .clevora-card-title {
        font-size: 0.54rem;
        margin-bottom: 0.25rem;
    }

    .card-video-btn {
        padding: 0.18rem 0.4rem;
        font-size: 0.48rem;
        margin-bottom: 0.25rem;
    }

    .card-img-box {
        min-height: 85px;
        max-height: 110px;
        border-radius: 6px;
    }

    .clevora-curve-divider {
        margin-top: -28px;
    }

    .clevora-curve-divider svg {
        height: 55px;
    }
}