/* ============================================================
   NexaHostID Design System — Modern, Clean, Blue & White
   Tech, Trustworthy, Minimalist, Responsive
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand Colors: Strict Blue & White Identity */
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-dark: #1E40AF;
    --primary-deep: #0B5CFF;
    --primary-light: #EFF6FF;
    --primary-subtle: #DBEAFE;
    --primary-border: #BFDBFE;

    /* Neutrals & Surfaces */
    --bg-white: #FFFFFF;
    --bg-body: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-soft: #F1F5F9;

    /* Typography Neutrals */
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Borders & Dividers */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-focus: #93C5FD;

    /* States */
    --success: #16A34A;
    --success-light: #DCFCE7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --info: #0284C7;
    --info-light: #E0F2FE;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 9999px;
    --radius-full: 9999px;

    /* Shadows: Very subtle & soft */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 12px 20px -3px rgba(37, 99, 235, 0.09), 0 4px 6px -4px rgba(37, 99, 235, 0.05);
    /* Fluid Spring Easing & Transition Tokens (iOS / Stripe / Linear style) */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-back: cubic-bezier(0.34, 1.3, 0.64, 1);

    --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1, .display-1, .display-2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
}

h2, .section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-body);
}

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

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

/* ============================================================
   Buttons & Action Elements
   ============================================================ */
.btn {
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.btn:active, 
.btn-saas-primary:active, 
.btn-saas-secondary:active, 
.btn-saas-light:active, 
.btn-saas-danger:active, 
.btn-primary:active,
.btn-white:active {
    transform: scale(0.96) !important;
    transition: transform 0.08s var(--ease-spring) !important;
}

.btn-primary, .btn-nexa-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover, .btn-nexa-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.btn-outline-primary, .btn-nexa-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary) !important;
}

.btn-outline-primary:hover, .btn-nexa-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-hover) !important;
    transform: translateY(-1px);
}

.btn-secondary-light {
    background-color: var(--primary-light);
    border-color: var(--primary-subtle);
    color: var(--primary) !important;
}

.btn-secondary-light:hover {
    background-color: var(--primary-subtle);
    color: var(--primary-dark) !important;
}

.btn-white {
    background-color: #FFFFFF;
    border-color: var(--border);
    color: var(--text-heading) !important;
    box-shadow: var(--shadow-xs);
}

.btn-white:hover {
    background-color: var(--bg-surface-soft);
    border-color: var(--border);
    color: var(--primary) !important;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ============================================================
   Navbar — Modern, Clean, Sticky, Blue & White
   ============================================================ */
.navbar-clean {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.navbar-clean .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.navbar-clean .navbar-brand img {
    height: 38px;
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.navbar-clean .brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.navbar-clean .brand-text span {
    color: var(--primary);
}

.navbar-clean .nav-link {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

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

.navbar-clean .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    background-color: var(--primary-light);
}

.navbar-clean .navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-md);
    color: var(--text-heading);
}

.navbar-clean .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

@media (max-width: 1199.98px) {
    .navbar-clean .navbar-collapse {
        display: none;
        background: #FFFFFF;
        padding: 1.25rem;
        border-radius: var(--radius-lg);
        margin-top: 0.75rem;
        border: 1px solid var(--border);
        box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.16);
    }

    .navbar-clean .navbar-collapse.show {
        display: block !important;
        animation: navBloomIn 0.28s var(--ease-spring) forwards;
    }

    .navbar-clean .navbar-collapse .nav-link {
        padding: 0.65rem 0.85rem;
        border-radius: var(--radius-md);
        margin-bottom: 0.2rem;
        transition: background-color var(--transition-fast), color var(--transition-fast);
    }

    .navbar-clean .navbar-collapse .nav-link:hover,
    .navbar-clean .navbar-collapse .nav-link.active {
        background-color: var(--primary-light);
        color: var(--primary);
    }

    .navbar-clean .navbar-toggler {
        cursor: pointer;
        padding: 0.4rem 0.65rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
        background: #FFFFFF;
        color: var(--text-heading);
    }
}

@keyframes navBloomIn {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-clean {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-bottom: 1px solid var(--border);
    padding: 4.5rem 0 3.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 1.25rem;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

/* ============================================================
   Cards & Surfaces
   ============================================================ */
.nexa-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nexa-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--primary-subtle);
}

/* Section Header Typography */
.section-subtitle {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.section-title {
    color: var(--text-heading);
    margin-bottom: 0.85rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Product Cards & Catalog Styling
   ============================================================ */
.product-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xs);
    position: relative;
    height: 100%;
}

.product-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.product-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.15);
}

.product-badge-featured {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.product-category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    border: 1px solid var(--primary-subtle);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.product-price-box {
    margin: 1.25rem 0;
    padding: 0.85rem 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    vertical-align: top;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1;
}

.price-strike {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

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

.product-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 1.25rem 0 1.75rem;
}

.product-feature-list li {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.product-feature-list li i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Category Filter Pills */
.category-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.category-pill {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #FFFFFF;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.category-pill:hover {
    color: var(--primary);
    border-color: var(--primary-subtle);
    background: var(--primary-light);
}

.category-pill.active {
    color: #FFFFFF !important;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* ============================================================
   Checkout & Orders
   ============================================================ */
.checkout-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.order-summary-box {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

/* ============================================================
   Universal Executive SaaS Admin Layout & System
   Clean, Modern, Blue & White, 100% Fully Responsive
   ============================================================ */

.admin-wrapper,
.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-body);
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Backdrop Overlay for Mobile Drawer */
.admin-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s var(--ease-spring), visibility 0.32s var(--ease-spring);
}

.admin-wrapper.sidebar-mobile-show .admin-sidebar-overlay,
.admin-layout-wrapper.sidebar-mobile-show .admin-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    will-change: transform;
    transition: transform 0.36s var(--ease-spring), box-shadow 0.36s var(--ease-spring), width 0.36s var(--ease-spring);
}

.admin-sidebar-header {
    height: 64px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.admin-sidebar-header .brand-img {
    height: 32px;
    width: auto;
}

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
}

.admin-nav-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding: 0.75rem 0.75rem 0.35rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-md);
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    margin-bottom: 0.2rem;
}

.admin-nav-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.admin-nav-item:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.admin-nav-item:hover i {
    color: var(--primary);
}

.admin-nav-item.active {
    color: var(--primary) !important;
    background-color: var(--primary-light);
    font-weight: 600;
}

.admin-nav-item.active i {
    color: var(--primary);
}

/* Desktop Sidebar Collapse */
.admin-wrapper.sidebar-collapsed .admin-sidebar,
.admin-layout-wrapper.sidebar-collapsed .admin-sidebar {
    transform: translateX(-100%);
}

.admin-wrapper.sidebar-collapsed .admin-main-wrapper,
.admin-layout-wrapper.sidebar-collapsed .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Admin Main Content Wrapper */
.admin-main-wrapper,
.admin-main {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: calc(100% - 260px);
    max-width: calc(100% - 260px);
    background-color: var(--bg-body);
    transition: margin-left var(--transition-normal), width var(--transition-normal);
}

/* Admin Top Header & Topbar */
.admin-top-header,
.admin-topbar {
    height: 64px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
    flex-shrink: 0;
}

/* Admin Content Body */
.admin-content-body,
.admin-content {
    padding: 1.75rem 1.5rem;
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Mobile & Tablet Responsive Behavior (< 992px) */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
        max-width: 86vw;
        box-shadow: none;
        z-index: 1050;
    }

    .admin-wrapper.sidebar-mobile-show .admin-sidebar,
    .admin-layout-wrapper.sidebar-mobile-show .admin-sidebar,
    .admin-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 20px 48px -8px rgba(15, 23, 42, 0.32);
    }

    .admin-main-wrapper,
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .admin-top-header,
    .admin-topbar {
        padding: 0 1rem;
        height: 60px;
    }

    .admin-content-body,
    .admin-content {
        padding: 1.25rem 1rem;
    }
}

/* ============================================================
   SaaS Executive Components — Cards, Buttons, Tables & Pills
   ============================================================ */

/* SaaS Card */
.saas-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    margin-bottom: 1.5rem;
}

.saas-card:hover {
    box-shadow: var(--shadow-sm);
}

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

.saas-card-body {
    padding: 1.25rem;
}

/* SaaS Buttons */
.btn-saas-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF !important;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
    line-height: 1.4;
}

.btn-saas-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-saas-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body) !important;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-xs);
    line-height: 1.4;
}

.btn-saas-secondary:hover {
    background: var(--bg-body);
    border-color: var(--border-focus);
    color: var(--text-heading) !important;
}

.btn-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #25D366;
    color: #FFFFFF !important;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-whatsapp-direct:hover {
    background: #20BD5A;
    color: #FFFFFF !important;
}

/* SaaS Table */
.table-saas {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-body);
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.table-saas th {
    background-color: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-top: none;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table-saas td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    background-color: #FFFFFF;
    transition: background-color var(--transition-fast);
}

.table-saas tbody tr:hover td {
    background-color: var(--primary-light);
}

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

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.status-pill-active,
.status-pill-approved {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.status-pill-contacted,
.status-pill-pending {
    background-color: #FEF3C7;
    color: #B45309;
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.status-pill-expired,
.status-pill-cancelled {
    background-color: #FEE2E2;
    color: #B91C1C;
    border: 1px solid rgba(185, 28, 28, 0.2);
}

.status-pill-new {
    background-color: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid rgba(29, 78, 216, 0.2);
}

/* Avatar Initials */
.avatar-initials {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.avatar-initials-emerald { background: #DCFCE7; color: #15803D; }
.avatar-initials-purple  { background: #F3E8FF; color: #7E22CE; }
.avatar-initials-blue    { background: #DBEAFE; color: #1D4ED8; }
.avatar-initials-amber   { background: #FEF3C7; color: #B45309; }

/* Stat Icon Wrappers */
.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-primary { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.stat-icon-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.stat-icon-danger  { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.stat-icon-warning { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.stat-icon-info    { background: #F0F9FF; color: #0284C7; border: 1px solid #BAE6FD; }

/* SEO Live Preview Simulator */
.seo-preview-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-family: Arial, sans-serif;
    max-width: 600px;
}

.seo-preview-url {
    font-size: 0.8rem;
    color: #202124;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seo-preview-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #1A0DAB;
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
    line-height: 1.3;
    cursor: pointer;
}

.seo-preview-title:hover {
    text-decoration: underline;
}

.seo-preview-snippet {
    font-size: 0.85rem;
    color: #4D5156;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-helper-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Kanban CRM Board */
.kanban-board-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    min-height: calc(100vh - 250px);
}

.kanban-column {
    flex: 0 0 300px;
    width: 300px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 240px);
}

.kanban-column-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #FFFFFF;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-cards-container {
    padding: 0.75rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.kanban-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* Status Indicator Pulse Animation */
.status-indicator-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Admin Stat Cards */
.admin-stat-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-normal);
}

.admin-stat-card:hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-sm);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border: 1px solid var(--primary-subtle);
}

/* Admin Tables — Responsive & Clean */
.table-clean {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-body);
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.table-clean th {
    background-color: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.table-clean td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    background-color: #FFFFFF;
    transition: background-color var(--transition-fast);
}

.table-clean tbody tr:hover td {
    background-color: var(--primary-light);
}

/* Forms & Inputs */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    font-size: 0.9375rem;
    color: var(--text-body);
    background-color: #FFFFFF;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Badges */
.badge-clean {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-clean-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
}

.badge-clean-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge-clean-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-clean-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.badge-clean-neutral {
    background-color: var(--bg-surface-soft);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Empty State */
.empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: #FFFFFF;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-subtle);
}

.empty-state-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.empty-state-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto 1.25rem;
}

/* Footer — Clean White with subtle top border */
.footer-clean {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 1.5rem;
}

.footer-clean .footer-brand img {
    height: 36px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-clean h6 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.footer-clean ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-clean ul li {
    margin-bottom: 0.65rem;
}

.footer-clean ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   Responsive Design Breakpoints & Mobile First Polish
   Tested for: 320px, 375px, 425px, 768px, 1024px, 1366px, 1440px
   ============================================================ */

/* Global Anti-Overflow */
html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip !important;
    position: relative;
}

/* ============================================================
   Fluid Micro-Animations: Dropdowns, Modals, Tabs & Accordions
   ============================================================ */

/* Smooth spring entrance for Dropdowns */
.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    font-size: 0.875rem;
}

.dropdown-menu.show {
    animation: dropdownSpringIn 0.22s var(--ease-spring) forwards;
}

@keyframes dropdownSpringIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-weight: 500;
    transition: background-color 0.15s var(--ease-spring), color 0.15s var(--ease-spring);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown-item:active {
    background-color: var(--primary);
    color: #FFFFFF;
}

/* Modal Smooth Spring Animation */
.modal.fade .modal-dialog {
    transform: scale(0.93) translateY(18px);
    transition: transform 0.32s var(--ease-spring), opacity 0.25s ease-out;
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.28s var(--ease-spring);
}

.modal-backdrop.show {
    opacity: 0.5;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Tab Smooth Spring Switching */
.tab-content > .tab-pane {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s var(--ease-spring), transform 0.22s var(--ease-spring);
}

.tab-content > .tab-pane.active.show {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion Smooth Springs */
.accordion-button {
    transition: background-color 0.24s var(--ease-spring), color 0.24s var(--ease-spring), box-shadow 0.24s var(--ease-spring);
}

.accordion-button::after {
    transition: transform 0.28s var(--ease-spring) !important;
}

.accordion-collapse {
    transition: height 0.32s var(--ease-spring) !important;
}

/* Client Portal Sidebar Styling */
.client-sidebar {
    min-height: 100vh;
}

@media (max-width: 767.98px) {
    .client-sidebar {
        min-height: auto !important;
        border-bottom: 1px solid var(--border);
    }
}

/* Touch targets & Mobile form improvements (Phones: <= 767.98px) */
@media (max-width: 767.98px) {
    .container, .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .row {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
    }
    .row > * {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .g-5, .gx-5 {
        --bs-gutter-x: 1rem !important;
        --bs-gutter-y: 1.5rem !important;
    }
    .g-4, .gx-4 {
        --bs-gutter-x: 0.85rem !important;
        --bs-gutter-y: 1.25rem !important;
    }
    .hero-title, .hero-clean h1 {
        font-size: clamp(1.75rem, 5.5vw, 2.15rem) !important;
        line-height: 1.22 !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }
    .hero-card {
        padding: 1.25rem 1rem !important;
    }
    .btn, .btn-saas-primary, .btn-saas-secondary {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    input, select, textarea, .form-control, .form-select {
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    }
    textarea.form-control {
        max-height: 320px;
    }
    .hero-clean {
        padding: 3rem 0 2rem;
    }
    .section-title {
        font-size: 1.65rem;
    }
    .product-card {
        padding: 1.25rem;
    }
    .checkout-card {
        padding: 1.25rem;
    }
    .admin-content, .admin-content-body {
        padding: 1rem 0.75rem;
    }
    .admin-topbar, .admin-top-header {
        padding: 0 0.85rem;
        height: 58px;
    }
    .admin-stat-card {
        padding: 1rem;
    }
    .category-filter-pills {
        gap: 0.35rem;
    }
    .category-pill {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
    /* Compact Table padding for mobile */
    .table-saas th, .table-clean th {
        padding: 0.65rem 0.75rem;
        font-size: 0.72rem;
    }
    .table-saas td, .table-clean td {
        padding: 0.75rem 0.75rem;
        font-size: 0.82rem;
    }
}

/* Extra Small Phones: 320px - 575.98px (Ergonomic full-width action buttons) */
@media (max-width: 575.98px) {
    .admin-content-body > .d-flex.flex-column > .btn,
    .admin-content-body > .d-flex.flex-column > .btn-saas-primary,
    .admin-content-body > .d-flex.flex-column > .btn-saas-secondary,
    .admin-content-body > .d-flex.flex-column > div > .btn,
    .admin-content-body .page-header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .saas-card {
        border-radius: var(--radius-md);
        margin-bottom: 1rem !important;
    }
    .saas-card-header {
        padding: 0.75rem 0.85rem;
    }
    .saas-card-body {
        padding: 0.85rem;
    }
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    .modal-content {
        border-radius: var(--radius-lg);
    }
}

/* Extra Small Phones: 320px - 375px */
@media (max-width: 375px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .brand-text {
        font-size: 1.15rem;
    }
    .hero-clean h1 {
        font-size: 1.75rem;
    }
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.85rem;
    }
    .pricing-price {
        font-size: 1.75rem;
    }
    .product-title {
        font-size: 1.1rem;
    }
}

/* Tablets & Small Laptops: 768px - 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-clean h1 {
        font-size: 2.5rem;
    }
    .admin-content, .admin-content-body {
        padding: 1.5rem;
    }
}

/* Responsive Table Wrapper with Smooth Momentum Scrolling */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
}

/* Universal Helper & Typography Utilities */
.extra-small {
    font-size: 0.75rem !important;
    line-height: 1.35;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

.max-w-500 {
    max-width: 500px !important;
}

.max-w-600 {
    max-width: 600px !important;
}

.max-w-900 {
    max-width: 900px !important;
}

.badge-clean {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-clean-primary {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
}

.gap-1\.5 {
    gap: 0.375rem !important;
}

.gap-2\.5 {
    gap: 0.625rem !important;
}

.p-3\.5 {
    padding: 0.875rem !important;
}

.max-w-700 {
    max-width: 700px !important;
}

.max-w-800 {
    max-width: 800px !important;
}

