/* =====================================================================
   BIZGROWTH360 — AUTHORITATIVE MASTER DESIGN SYSTEM
   Production Stylesheet: assets/css/style.css
   Mobile-first & Desktop-optimized. Zero layout overflow.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --primary: #0b1220;          /* Deep Navy Base */
    --primary-light: #162033;    /* Slate Navy 800 */
    --accent: #2563eb;           /* Electric Blue 600 */
    --accent-hover: #1d4ed8;     /* Blue 700 */
    --accent-light: #eff6ff;     /* Blue 50 */
    --accent-border: #bfdbfe;    /* Blue 200 */

    /* Neutral Backgrounds */
    --bg-main: #f8fafc;          /* Slate 50 */
    --bg-alt: #f1f5f9;           /* Slate 100 */
    --bg-white: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --surface-card: #ffffff;

    /* Text Colors */
    --text-heading: #0f172a;     /* Slate 900 */
    --text-main: #334155;        /* Slate 700 */
    --text-muted: #64748b;       /* Slate 500 */
    --text-light: #94a3b8;       /* Slate 400 */
    --text-white: #ffffff;

    /* Structural Borders & Lines */
    --border: #e2e8f0;           /* Slate 200 */
    --border-light: #f1f5f9;     /* Slate 100 */

    /* State & Semantic Colors */
    --success: #10b981;          /* Emerald 500 */
    --success-bg: #ecfdf5;       /* Emerald 50 */
    --success-border: #a7f3d0;   /* Emerald 200 */
    --warning: #f59e0b;          /* Amber 500 */
    --warning-bg: #fffbeb;       /* Amber 50 */
    --danger: #ef4444;           /* Red 500 */
    --danger-bg: #fef2f2;        /* Red 50 */
    --danger-border: #fecaca;    /* Red 200 */

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.10), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 32px -6px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.05);

    /* Layout & Dimensions */
    --container-max: 1240px;
    --gutter-desktop: 24px;
    --gutter-mobile: 16px;
    --header-h: 76px;
}

/* ---------------------------------------------------------------------
   2. RESET, BASE & GLOBAL OVERFLOWS
   --------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Images & Media */
img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Links & Interactive */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
a:hover {
    color: var(--accent);
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

/* Accessible focus ring */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

::selection {
    background: var(--accent-light);
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.h1, h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.25rem); font-weight: 800; }
.h2, h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); font-weight: 700; }
.h3, h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); font-weight: 700; }
.h4, h4 { font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem); font-weight: 600; }
.h5, h5 { font-size: 1rem; font-weight: 600; }

.text-lg { font-size: 1.125rem; line-height: 1.65; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-xs { font-size: 0.78rem; line-height: 1.4; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---------------------------------------------------------------------
   4. LAYOUT, CONTAINER & SECTION SPACING
   --------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter-desktop);
    padding-right: var(--gutter-desktop);
}
@media (max-width: 640px) {
    .container {
        padding-left: var(--gutter-mobile);
        padding-right: var(--gutter-mobile);
    }
}

.section {
    padding: 5rem 0;
}
.section-sm {
    padding: 3rem 0;
}
.section-alt {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-dark {
    background-color: var(--primary);
    color: var(--text-white);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--text-white);
}
.section-dark .text-muted {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .section-sm { padding: 2.25rem 0; }
}

/* Flexible Grid System (with min-width: 0 to prevent overflow) */
.grid {
    display: grid;
    gap: 1.75rem;
}
.grid > * {
    min-width: 0;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* ---------------------------------------------------------------------
   5. BUTTON SYSTEM
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    text-align: center;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0);
}
.btn:disabled, .btn[aria-disabled="true"] {
    opacity: 0.6;
    pointer-events: none;
    transform: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff !important;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-heading);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: var(--accent-light);
}

.btn-light {
    background-color: #ffffff;
    color: var(--primary) !important;
    border-color: #ffffff;
}
.btn-light:hover {
    background-color: var(--bg-alt);
    border-color: var(--bg-alt);
    color: var(--accent) !important;
}

.btn-dark {
    background-color: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
}
.btn-dark:hover {
    background-color: var(--primary-light);
    color: #ffffff !important;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff !important;
    border-color: var(--danger);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 38px;
}
.btn-lg {
    padding: 0.95rem 2.25rem;
    font-size: 1.05rem;
    min-height: 50px;
}
.btn-block {
    display: flex;
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}
.btn-row.center {
    justify-content: center;
}

/* ---------------------------------------------------------------------
   6. FORM SYSTEM (Universal & Reusable)
   --------------------------------------------------------------------- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.35rem;
    min-width: 0;
}
.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.required {
    color: var(--danger);
    font-weight: 700;
    margin-left: 2px;
}
.form-control, .input, .select, .textarea, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-heading);
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 48px;
    line-height: 1.5;
    transition: all 0.16s ease;
    box-sizing: border-box;
}
.form-control::placeholder, .input::placeholder, .textarea::placeholder, .form-textarea::placeholder {
    color: var(--text-light);
    opacity: 1;
}
.form-control:hover, .input:hover, .select:hover, .textarea:hover, .form-select:hover, .form-textarea:hover {
    border-color: #cbd5e1;
}
.form-control:focus, .input:focus, .select:focus, .textarea:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-control:disabled, .form-control[readonly], .input:disabled, .input[readonly] {
    background: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border);
}
.form-select, select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 16px;
    padding-right: 2.75rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}
.form-textarea, .textarea, textarea.form-control {
    min-height: 130px;
    resize: vertical;
    line-height: 1.55;
}
.form-help, .form-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 0.25rem;
}
.form-error {
    font-size: 0.82rem;
    color: var(--danger);
    font-weight: 600;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.form-success {
    font-size: 0.82rem;
    color: var(--success);
    font-weight: 600;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}
.form-col-full {
    grid-column: 1 / -1;
}
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.15rem;
    }
}
.form-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 2vw, 3rem);
    box-shadow: var(--shadow-lg);
    min-width: 0;
}
.form-radio-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.form-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-main);
    user-select: none;
}
.form-radio-label input[type="radio"],
.form-radio-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* ---------------------------------------------------------------------
   7. BADGES & CHIPS
   --------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-free { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-accent { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-neutral { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.badge-dark { background: rgba(255, 255, 255, 0.12); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.2); }
.badge-success { background: #d1fae5; color: #047857; border: 1px solid #6ee7b7; }

.tech-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   8. HEADER & NAVIGATION
   --------------------------------------------------------------------- */
.header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
}
.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
    flex-shrink: 0;
}
.logo:hover {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    background: transparent;
    padding: 0.35rem 0.2rem;
    text-decoration: none;
    border-radius: 0;
    position: relative;
    transition: color 0.18s ease;
}
.nav-links a:hover {
    color: var(--accent);
    background: transparent;
}
.nav-links a.active {
    color: var(--accent);
    font-weight: 700;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.nav-links .btn {
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.15rem;
    color: #ffffff !important;
}
.nav-links .btn.btn-primary {
    background-color: var(--accent);
    color: #ffffff !important;
}
.nav-links .btn.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff !important;
}
.nav-links .btn.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-heading) !important;
}
.nav-links .btn::after {
    display: none !important;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.25rem 2rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 1rem;
    }
    .nav-links a:hover {
        background: var(--bg-alt);
    }
    .mobile-toggle {
        display: block;
    }
}

/* ---------------------------------------------------------------------
   9. HERO SECTIONS (HOME & INNER)
   --------------------------------------------------------------------- */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at top center, var(--accent-light) 0%, var(--bg-white) 70%);
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 1.5rem auto 2.5rem;
    max-width: 620px;
    line-height: 1.65;
}

/* Inner Page Hero (.page-hero) — Controlled height, responsive, professional */
.page-hero {
    background: linear-gradient(135deg, #070d18 0%, #0b1220 50%, #162238 100%);
    color: #e2e8f0;
    padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 clamp(2.5rem, 1.5rem + 2.5vw, 3.75rem);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero h1 {
    color: #ffffff;
    font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    max-width: 24ch;
}
.page-hero .section-lead {
    color: #cbd5e1;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    max-width: 720px;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    list-style: none;
}
.breadcrumbs a {
    color: #cbd5e1;
}
.breadcrumbs a:hover {
    color: var(--accent);
}
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.45rem;
    color: #64748b;
    opacity: 0.7;
}
.breadcrumbs [aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   10. PORTFOLIO SHOWCASE & CATEGORY FILTERS
   --------------------------------------------------------------------- */
.portfolio-section {
    background: var(--bg-main);
    padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
}
.portfolio-filter-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: 2.75rem;
    scrollbar-width: thin;
}
.portfolio-filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    padding: 0.25rem 0;
}
@media (max-width: 820px) {
    .portfolio-filter-bar {
        justify-content: flex-start;
        padding-inline: 0.25rem;
    }
}
.filter-tab {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 18, 32, 0.18);
}
.filter-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Browser Mockup Frame (Professional visual frame — no empty gray placeholder) */
.browser-mockup {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border);
    border-bottom: 0;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}
.browser-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
}
.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.browser-address {
    flex: 1;
    background: #ffffff;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.72rem;
    color: #64748b;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.browser-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}
.browser-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.35s ease;
}
.portfolio-card:hover .browser-screen img,
.featured-card:hover .browser-screen img {
    transform: scale(1.025);
}

/* Portfolio Placeholder Fallback (Used only when an image is missing) */
.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #e2e8f0 100%);
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
}
.portfolio-placeholder-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}
.portfolio-placeholder-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Portfolio Project Card (Equal visual height via Flexbox) */
.portfolio-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}
.portfolio-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}
.portfolio-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.85rem;
}
.portfolio-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.portfolio-card-title {
    font-size: 1.22rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}
.portfolio-card-title a {
    color: var(--text-heading);
}
.portfolio-card-title a:hover {
    color: var(--accent);
}
.portfolio-card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex-grow: 1;
}
.portfolio-card-tags {
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.portfolio-card-features {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.85rem;
}
.portfolio-card-features ul {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.portfolio-card-features li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-main);
}
.portfolio-card-actions {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Featured Project Card (2-Column Desktop: 55% visual / 45% info) */
.featured-section-wrap {
    margin-bottom: 3.5rem;
}
.featured-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.featured-header-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.featured-header-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.featured-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.22s ease;
    align-items: center;
}
.featured-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}
.featured-visual {
    padding: 1.5rem;
}
.featured-info {
    padding: 2rem 2.25rem 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.featured-title {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
    margin: 0;
    line-height: 1.25;
}
.featured-title a {
    color: inherit;
    text-decoration: none;
}
.featured-title a:hover {
    color: var(--accent);
}
.featured-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}
.featured-challenge-solution {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.featured-challenge-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.featured-challenge-item.solution {
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
}
.featured-challenge-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.featured-solution-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.featured-challenge-text {
    font-size: 0.88rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}
.featured-actions {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

@media (max-width: 960px) {
    .featured-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .featured-info {
        padding: 0 1.5rem 1.75rem;
    }
}

/* Portfolio Grid & Empty State */
.portfolio-grid-header {
    margin-bottom: 2rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}
.portfolio-empty-state {
    display: none;
    text-align: center;
    background: #ffffff;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(3rem, 2rem + 4vw, 5rem) 2rem;
    margin: 2rem 0;
}
.portfolio-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
}

/* ---------------------------------------------------------------------
   11. CASE STUDY DETAIL SYSTEM (portfolio/detail.php)
   --------------------------------------------------------------------- */
.case-study-hero {
    background: linear-gradient(135deg, #070d18 0%, #0b1220 50%, #162238 100%);
    color: #e2e8f0;
    padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 clamp(2.5rem, 1.5rem + 2.5vw, 3.75rem);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.case-study-hero::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
    pointer-events: none;
}
.case-study-hero-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.case-study-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}
.case-study-preview {
    background: var(--bg-main);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}
.case-study-preview .browser-mockup {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
}
.case-study-preview .browser-screen {
    aspect-ratio: 16 / 9;
}
.case-study-content {
    min-width: 0;
}
.case-study-section {
    margin-bottom: 3.5rem;
}
.case-study-section-title {
    font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.85rem);
    margin-bottom: 1.25rem;
}
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.section-eyebrow.danger { color: #dc2626; }
.section-eyebrow.success { color: var(--success); }
.section-eyebrow.accent { color: var(--accent); }

/* Challenge & Solution Alert Boxes */
.challenge-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    color: #7f1d1d;
    line-height: 1.7;
    font-size: 1.025rem;
}
.solution-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid var(--success);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    color: #14532d;
    line-height: 1.7;
    font-size: 1.025rem;
}

/* Feature Grid & Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.feature-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-card-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}
.feature-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.feature-card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 1.9rem;
}

/* Workflow Diagram Pipeline */
.case-study-workflow-wrap {
    margin-bottom: 3.5rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.workflow-pipeline {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin: 1.25rem 0;
    scrollbar-width: thin;
}
.workflow-node {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.15rem;
    min-width: 125px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.workflow-node-step {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
}
.workflow-node-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-top: 0.2rem;
}
.workflow-node-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
.workflow-arrow {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Tech Stack Groups & Lists */
.tech-stack-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.tech-stack-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Outcome Card */
.outcome-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
}

/* 2-Column Detail Layout: Desktop 70% / 30% (minmax 1fr, 340px) */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}
.detail-aside {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

@media (max-width: 960px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.25rem;
    }
    .detail-aside {
        position: static;
    }
}

.summary-card, .project-summary {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.project-summary {
    border-top: 4px solid var(--accent);
}
.summary-card-title, .project-summary-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-heading);
}
.summary-list, .project-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.88rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.summary-item, .project-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.summary-item-label {
    color: var(--text-muted);
}
.summary-item-value {
    font-weight: 700;
    color: var(--text-heading);
}

.case-study-cta {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.case-study-related-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-main);
    transition: all 0.2s ease;
}
.case-study-related-item:hover {
    border-color: var(--accent);
    background: #ffffff;
    transform: translateX(3px);
}

/* ---------------------------------------------------------------------
   12. CARDS & GENERAL COMPONENTS
   --------------------------------------------------------------------- */
.card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 2.25rem;
    border: 1px solid var(--border);
    transition: all 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.card-flat {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.18s ease;
}
.card-flat:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Price Tag */
.price-tag {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.85rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: right;
    flex-shrink: 0;
}
.price-tag .price-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-heading);
    white-space: nowrap;
}
.price-tag .price-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* CTA Band — High impact, clean gradient */
.cta-band {
    background: linear-gradient(135deg, #0b1220 0%, #172554 50%, #1e3a8a 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band h2 {
    color: #ffffff;
    font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
    margin-bottom: 1rem;
}
.cta-band p {
    color: #cbd5e1;
    font-size: 1.125rem;
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

/* Interactive Tabs */
.tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-pill);
    background: var(--bg-main);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ---------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------- */
footer, .footer {
    background-color: var(--primary-light);
    color: #ffffff;
    padding: 5rem 0 2rem;
    margin-top: auto;
}
footer a:hover, .footer a:hover {
    color: #ffffff !important;
}
.footer-grid {
    margin-bottom: 4rem;
}
.footer-logo {
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    display: block;
}
.footer-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.footer-heading {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}
.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-list a {
    color: #94a3b8;
    transition: color 0.2s;
}
.footer-list a:hover {
    color: #ffffff !important;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}
.footer-bottom a {
    color: #64748b;
}
.footer-bottom a:hover {
    color: #ffffff !important;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

/* ---------------------------------------------------------------------
   14. COMPONENT UTILITIES (Replacing excessive inline styles)
   --------------------------------------------------------------------- */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.4);
    padding: 0.35rem 1.15rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.hero-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    margin-top: 2.5rem;
}
.hero-stat-item {
    text-align: center;
    padding: 0.5rem;
}
.hero-stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: #60a5fa;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.hero-stat-label {
    font-size: 0.82rem;
    color: #cbd5e1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Responsive Overrides */
@media (max-width: 480px) {
    .btn-row .btn {
        width: 100%;
    }
    .hero-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    .hero-stat-val {
        font-size: 1.5rem;
    }
}

/* ---------------------------------------------------------------------
   15. HOMEPAGE DASHBOARD MOCKUP
   --------------------------------------------------------------------- */
.hero-dashboard-mockup {
    margin-top: 3.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ---------------------------------------------------------------------
   16. FLASH MESSAGES & CALLOUTS (Migrated from main.css)
   --------------------------------------------------------------------- */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
}
.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    animation: flashIn 0.25s ease;
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.flash-success { background: var(--success-bg); color: #065f46; border-color: var(--success-border); }
.flash-error   { background: var(--danger-bg); color: #9f1239; border-color: var(--danger-border); }
.flash-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.flash-info    { background: var(--accent-light); color: #1e3a8a; border-color: var(--accent-border); }
.flash-close {
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.55;
    padding: 0 0.2rem;
    flex-shrink: 0;
    cursor: pointer;
}
.flash-close:hover { opacity: 1; }

.callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    font-size: 0.875rem;
    color: #1e3a8a;
    line-height: 1.6;
}
.callout-warning { background: var(--warning-bg); border-color: #fde68a; color: #92400e; }
.callout-neutral { background: var(--bg-alt); border-color: var(--border); color: var(--text-main); }
.callout strong { display: block; margin-bottom: 0.2rem; }

/* ---------------------------------------------------------------------
   17. PROCESS TIMELINE (Migrated from main.css)
   --------------------------------------------------------------------- */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(37, 99, 235, 0.12));
}
.timeline-step {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.timeline-num {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.875rem;
    box-shadow: 0 0 0 5px var(--bg-white);
}
.section-dark .timeline-num {
    background: var(--primary);
    box-shadow: 0 0 0 5px var(--primary);
}
.timeline-body {
    padding-top: 0.35rem;
    min-width: 0;
}
.timeline-body h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}
.timeline-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.section-dark .timeline-body p {
    color: #94a3b8;
}

/* ---------------------------------------------------------------------
   18. TABLES & GENERAL UTILITIES
   --------------------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    min-width: 560px;
}
table.data th, table.data td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
table.data th {
    background: var(--bg-alt);
    font-weight: 800;
    color: var(--text-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg-alt); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-dark .eyebrow { color: #60a5fa; }
.section-head {
    max-width: 760px;
    margin-bottom: 2rem;
}
.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.badge-popular { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-info    { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); }

.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.nowrap { white-space: nowrap; }
.full { width: 100%; }

/* Specialized Case Study & Hero Helper Classes */
.btn-hero-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}
.card-404 {
    max-width: 500px;
    margin: 0 auto;
}
.badge-404 {
    margin-bottom: 1rem;
}
.badge-lg {
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
}
.summary-item-value.accent { color: var(--accent); }
.summary-item-value.success { color: var(--success); }
.workflow-node-step.success { color: var(--success); }
.case-study-related-item .eyebrow {
    margin-bottom: 0;
    font-size: 0.72rem;
}
.case-study-related-item strong {
    color: var(--text-heading);
    font-size: 0.92rem;
    line-height: 1.3;
}
.outcome-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* =====================================================================
   MODULE 2: AUTHENTICATION & DASHBOARDS
   ===================================================================== */

/* Auth Layout */
.auth-page {
    background: var(--bg-main);
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    padding: clamp(2rem, 1rem + 3vw, 4rem) 0;
}
.auth-split-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 600px;
}
@media (max-width: 900px) {
    .auth-split-card {
        grid-template-columns: 1fr;
    }
}

/* Auth Visual Left Column */
.auth-visual-col {
    background: linear-gradient(145deg, #0b1220 0%, #162033 60%, #1e293b 100%);
    color: #ffffff;
    padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-visual-col::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #93c5fd;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    width: fit-content;
}
.auth-visual-title {
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.auth-visual-desc {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.auth-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.auth-checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}
.auth-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Dashboard Mockup Card in Visual Col */
.auth-mockup-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    margin-top: auto;
}
.auth-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    margin-right: 6px;
}
.auth-mockup-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

/* Auth Form Right Column */
.auth-form-col {
    padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-header {
    margin-bottom: 2rem;
}
.auth-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}
.auth-title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem);
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.25;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Form Section Styling (Registration) */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
}
.form-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Password Toggle & Strength Meter */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field-wrapper .form-control {
    padding-right: 4.5rem;
}
.password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: color 0.15s ease, background 0.15s ease;
}
.password-toggle-btn:hover {
    color: var(--accent);
    background: var(--bg-alt);
}
.password-meter-wrap {
    margin-top: 0.5rem;
}
.password-meter-track {
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    display: flex;
    gap: 3px;
}
.password-meter-seg {
    flex: 1;
    height: 100%;
    background: transparent;
    transition: background 0.25s ease;
}
.password-meter-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    justify-content: space-between;
}

/* Alerts / Flash Notices */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.4;
}
.alert-error {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid var(--danger-border);
}
.alert-success {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success-border);
}
.alert-warning {
    background: var(--warning-bg);
    color: #92400e;
    border: 1px solid #fde68a;
}
.alert-info {
    background: var(--accent-light);
    color: #1e40af;
    border: 1px solid var(--accent-border);
}

/* ---------------------------------------------------------------------
   DASHBOARD ARCHITECTURE (Client SaaS & Admin)
   --------------------------------------------------------------------- */
.dash-page-wrapper {
    background: var(--bg-main);
    min-height: calc(100vh - var(--header-h));
    padding: 0;
}

/* SaaS Layout with Sidebar on Desktop */
.dashboard-layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--header-h));
    background: var(--bg-main);
}
.dashboard-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (max-width: 1199px) {
    .dashboard-sidebar {
        display: none;
    }
}

.dash-sidebar-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.dash-sidebar-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.75rem;
}
.dash-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dash-user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    font-weight: 750;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dash-user-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-user-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.dash-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}
.dash-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.16s ease;
}
.dash-sidebar-link:hover {
    background: var(--bg-alt);
    color: var(--accent);
}
.dash-sidebar-link.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
}
.dash-sidebar-link.link-logout {
    color: var(--danger);
}
.dash-sidebar-link.link-logout:hover {
    background: var(--danger-bg);
    color: var(--danger);
}
.dash-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}
.dash-menu-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent);
    color: #ffffff;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
}
.dash-sidebar-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.5rem 0;
}

/* Dashboard Main Content Area */
.dashboard-main-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-main);
}
.dashboard-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }
}

/* Compact Dashboard Header */
.dash-header-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.dash-header-welcome {
    flex: 1;
    min-width: 260px;
}
.dash-greeting-title {
    font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.dash-greeting-sub {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}
.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.dash-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    position: relative;
    transition: all 0.16s ease;
}
.dash-icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.dash-icon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #ffffff;
}
.dash-user-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px 12px 3px 3px;
}
.dash-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    font-weight: 750;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.dash-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.dash-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .dash-user-info {
        display: none;
    }
    .dash-user-chip {
        padding: 0;
        border: none;
        background: transparent;
    }
}

/* Profile Completion Card */
.profile-completion-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.profile-completion-body {
    flex: 1;
    min-width: 240px;
}
.profile-completion-eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.profile-completion-pct {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.95rem;
}
.profile-progress-track {
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.profile-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #10b981 100%);
    border-radius: var(--radius-pill);
    transition: width 0.4s ease;
}
.profile-completion-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}
.profile-completion-action {
    flex-shrink: 0;
}

/* Next Action Card */
.next-action-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f1f5f9 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.next-action-badge-row {
    margin-bottom: 0.5rem;
}
.next-action-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.next-action-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.next-action-content {
    flex: 1;
    min-width: 260px;
}
.next-action-content h4 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.next-action-content p {
    color: #334155;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.45;
}
.next-action-btn-wrap {
    flex-shrink: 0;
}
@media (max-width: 480px) {
    /* Let the CTA shrink/wrap so the card never exceeds a 320px viewport */
    .next-action-content { min-width: 0; }
    .next-action-btn-wrap { flex-shrink: 1; min-width: 0; max-width: 100%; }
    .next-action-btn-wrap .btn { white-space: normal; width: 100%; }
}

/* 4-Card Summary Grid (Desktop: 4 cols, Tablet: 2 cols, Mobile: 1 col) */
.stat-cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
@media (max-width: 1199px) {
    .stat-cards-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .stat-cards-grid-4 {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}
.dash-stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 165px;
}
.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}
.dash-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.dash-stat-label {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dash-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-stat-val {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.dash-stat-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.85rem;
    flex-grow: 1;
}

/* Dashboard Section Cards */
.dash-section-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
    overflow: hidden;
}
.dash-card-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.dash-card-title {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--text-heading);
    margin: 0;
}
.dash-card-body {
    padding: 1.5rem;
}

/* Central Business Profile Meta */
.dash-biz-title {
    margin: 0 0 0.35rem;
    color: var(--text-heading);
    font-size: 1.15rem;
    font-weight: 750;
}
.dash-biz-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.dash-biz-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: var(--bg-alt);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.dash-biz-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    gap: 1rem;
}
.dash-biz-meta-label {
    color: var(--text-muted);
}
.dash-biz-meta-val {
    font-weight: 600;
    text-align: right;
    color: var(--text-heading);
}

/* Account Credentials Card Meta */
.dash-acc-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dash-acc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
    font-size: 0.88rem;
    gap: 1rem;
}
.dash-acc-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.dash-acc-label {
    color: var(--text-muted);
}
.dash-acc-val {
    font-weight: 600;
    color: var(--text-heading);
    text-align: right;
}

/* Quick Actions Grid */
.dash-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.dash-quick-btn {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-decoration: none;
    transition: all 0.16s ease;
}
.dash-quick-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.dash-quick-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-quick-btn-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.2rem;
}
.dash-quick-btn-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Empty State Component */
.dash-empty-state {
    text-align: center;
    padding: clamp(2rem, 1.5rem + 2vw, 3rem) 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}
.dash-empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.dash-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}
.dash-empty-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Navigation Drawer & Tabs */
.dash-nav-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
}
.dash-nav-tab {
    padding: 0.6rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.16s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.dash-nav-tab:hover {
    background: var(--bg-alt);
    color: var(--text-heading);
}
.dash-nav-tab.active {
    background: var(--accent);
    color: #ffffff;
}
.badge-soon {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Mobile Bottom Navigation for Clients */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.4rem 0.5rem;
    justify-content: space-around;
    align-items: center;
}
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    .dash-page-wrapper {
        padding-bottom: 5.5rem;
    }
}
.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    gap: 0.2rem;
    min-width: 56px;
    border-radius: var(--radius-xs);
}
.mobile-bottom-nav-item.active {
    color: var(--accent);
}
.mobile-bottom-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Responsive Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.dash-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    font-size: 0.9rem;
    text-align: left;
}
.dash-table th {
    background: var(--bg-alt);
    color: var(--text-heading);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dash-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    vertical-align: middle;
}
.dash-table tr:hover td {
    background: var(--bg-main);
}

/* =====================================================================
   SERVICE DISCOVERY COMPONENT STYLES
   ===================================================================== */
.service-discovery-section {
    padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
    background: #ffffff;
}
.service-discovery-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}
.service-discovery-title {
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.service-discovery-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Category Navigation: Desktop wrapping without scrollbar, Mobile touch scrolling */
.category-nav-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto 2.5rem;
    padding: 0;
}
@media (max-width: 860px) {
    .category-nav-wrap {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
}
.cat-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: #ffffff;
    color: var(--text-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    text-decoration: none;
    line-height: 1.3;
}
.cat-pill-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.cat-pill-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.cat-pill-btn.active .cat-icon {
    filter: none;
}

/* Grid Layouts for Different Service Counts */
.service-grid-multi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: stretch;
}
@media (max-width: 1024px) {
    .service-grid-multi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
@media (max-width: 680px) {
    .service-grid-multi {
        grid-template-columns: 1fr;
    }
}

.service-grid-double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    max-width: 880px;
    margin: 0 auto;
    align-items: stretch;
}
@media (max-width: 680px) {
    .service-grid-double {
        grid-template-columns: 1fr;
    }
}

/* Single Service Expanded Layout (Eliminates empty whitespace) */
.service-card-expanded {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    align-items: center;
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) {
    .service-card-expanded {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }
}

/* Service Card Components */
.service-item-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}
.service-item-card.is-recommended {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.service-badge-rec {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 0.75rem;
}
.service-badge-cat {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
    margin-bottom: 0.65rem;
}
.service-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.service-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    min-height: 2.75rem;
}
.service-card-audience {
    font-size: 0.8rem;
    color: var(--text-main);
    background: var(--bg-alt);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-light);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}
.service-card-audience strong {
    color: var(--text-heading);
}
.service-card-price-wrap {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.service-card-price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.service-card-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.service-card-timeline {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-xs);
}
.service-card-includes-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.service-card-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.service-card-feature-list li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.86rem;
    color: var(--text-main);
    line-height: 1.45;
}
.feature-check-icon {
    color: var(--success);
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1.2;
}
.service-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: auto;
}

/* Empty Category State */
.service-empty-card {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================================
   SECTION 1: NOT SURE WHAT YOUR BUSINESS NEEDS? (SMART RECOMMENDATION CTA)
   ===================================================================== */
.cta-smart-recommendation {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #090e1a 0%, #0f172a 50%, #172554 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 20px 45px -12px rgba(11, 18, 32, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 56px 64px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.cta-smart-recommendation::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -25%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 68%);
    pointer-events: none;
    z-index: 1;
}

.cta-smart-recommendation::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-layout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.35);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.cta-heading {
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.cta-desc {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    max-width: 520px;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.85rem 1.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff !important;
    background: #2563eb;
    border: 1px solid #3b82f6;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta-primary:hover {
    background: #1d4ed8;
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-cta-primary:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.6);
    outline-offset: 2px;
}

.btn-cta-primary:active {
    transform: translateY(0);
}

.btn-cta-primary .arrow-icon {
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}

.btn-cta-primary:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-cta-secondary:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.btn-cta-secondary:active {
    transform: translateY(0);
}

/* Right Side: Compact Process Flow Card */
.cta-flow-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-flow-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cta-flow-step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
}

.cta-step-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cta-step-icon-wrap.goal {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cta-step-icon-wrap.recommend {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.cta-step-icon-wrap.estimate {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cta-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px 0;
}

.cta-step-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}

.cta-flow-arrow {
    display: flex;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .cta-layout-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .cta-smart-recommendation {
        padding: 44px 32px;
    }
    .cta-content-col {
        order: 1;
    }
    .cta-flow-card {
        order: 2;
    }
    .cta-actions {
        order: 3;
        margin-top: 0.5rem;
    }
}

@media (max-width: 600px) {
    .cta-smart-recommendation {
        padding: 40px 20px;
        border-radius: 16px;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        text-align: center;
    }
}

/* =====================================================================
   SECTION 2: HOW BIZGROWTH360 WORKS (HORIZONTAL 4-STEP PROCESS)
   ===================================================================== */
.section-how-it-works {
    padding: 88px 0;
    background: var(--bg-alt);
    position: relative;
}

.section-header-works {
    text-align: center;
    margin-bottom: 56px;
}

.works-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.works-container-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

/* Horizontal Track Line on Desktop */
.works-track-line {
    position: absolute;
    top: 48px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, #bfdbfe 0%, #3b82f6 50%, #10b981 100%);
    z-index: 1;
}

.works-grid-desktop {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.works-step-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    height: 100%;
}

.works-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
    border-color: #93c5fd;
}

.works-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.works-step-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(11, 18, 32, 0.25);
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.works-step-icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 220ms ease;
    flex-shrink: 0;
}

.works-step-card:hover .works-step-icon-pill {
    transform: scale(1.1);
    background: #dbeafe;
}

.works-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.6rem 0;
    line-height: 1.35;
}

.works-step-desc {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

/* Compact CTA after Process */
.works-cta-bottom {
    margin-top: 48px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Tablet (2x2) */
@media (max-width: 1024px) and (min-width: 641px) {
    .works-track-line {
        display: none;
    }
    .works-grid-desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile (Vertical Timeline with Left Line & Circles) */
@media (max-width: 640px) {
    .section-how-it-works {
        padding: 56px 0;
    }
    .section-header-works {
        margin-bottom: 40px;
    }
    .works-track-line {
        display: none;
    }
    .works-grid-desktop {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        padding-left: 28px;
    }
    /* Vertical connector line on left */
    .works-grid-desktop::before {
        content: '';
        position: absolute;
        top: 24px;
        bottom: 40px;
        left: 20px;
        width: 2px;
        background: linear-gradient(180deg, #3b82f6 0%, #10b981 100%);
        z-index: 1;
    }
    .works-step-card {
        margin-bottom: 24px;
        margin-left: 12px;
        padding: 20px;
        position: relative;
        z-index: 2;
    }
    /* Move step number circle over the vertical line */
    .works-step-card::before {
        content: '';
        position: absolute;
        top: 24px;
        left: -40px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #2563eb;
        border: 3px solid #ffffff;
        box-shadow: 0 0 0 2px #3b82f6;
        z-index: 3;
    }
    .works-cta-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1.25rem;
    }
    .works-cta-bottom .btn {
        width: 100%;
    }
}

/* =====================================================================
   SERVICES MARKETPLACE PAGE (.services-hero, grid transitions, filters)
   ===================================================================== */
.services-hero {
    background: radial-gradient(circle at 50% 20%, #eff6ff 0%, #f8fafc 60%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
    padding: clamp(3.25rem, 2.5rem + 2.5vw, 4.5rem) 0 clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.services-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.services-hero-title {
    font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.services-hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.services-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.services-filter-bar {
    padding: 1.5rem 0 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    backdrop-filter: blur(8px);
}
.service-card-anim {
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.service-card-anim.filtering-out {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

/* =====================================================================
   MODULE 3: CLIENT BUSINESS PROFILE + LOCATION + ADMIN CLIENTS
   ===================================================================== */
.profile-page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.profile-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.profile-header-meta {
    max-width: 680px;
}
.profile-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.profile-header-title {
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}
.profile-header-sub {
    font-size: 0.95rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.profile-header-sub .dot-sep {
    color: #475569;
}
.profile-header-progress-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px);
    min-width: 260px;
}
.profile-header-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}
.profile-header-progress-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #60a5fa;
}
.profile-header-progress-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    overflow: hidden;
}
.profile-header-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Two-column editor layout */
.profile-editor-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    padding: 2.5rem 0 4rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .profile-editor-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Navigation & Quick Summary */
.profile-sidebar-sticky {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.profile-nav-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.profile-nav-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.profile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.profile-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-heading);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.profile-nav-item a:hover {
    background: var(--bg-alt);
    color: var(--accent);
    transform: translateX(3px);
}
.profile-nav-item a.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
}
.profile-nav-icon {
    font-size: 1rem;
    margin-right: 0.6rem;
}

/* Profile Form Sections */
.profile-form-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
@media (max-width: 768px) {
    .profile-form-container {
        padding: 16px;
    }
}

.profile-section-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 2rem);
    transition: border-color 0.2s;
}
.profile-section-card:hover {
    border-color: #cbd5e1;
}
.profile-section-header {
    padding: 1.25rem 1.75rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.profile-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.profile-section-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.profile-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.2rem;
}
.profile-section-title {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--text-heading);
    margin: 0;
}
.profile-section-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
    line-height: 1.4;
}
.profile-section-body {
    padding: 1.75rem;
}

/* Location Consent Banner & State Box */
.location-consent-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.location-consent-icon {
    font-size: 1.5rem;
    color: #2563eb;
    flex-shrink: 0;
}
.location-consent-body {
    flex-grow: 1;
}
.location-consent-title {
    font-weight: 750;
    color: #1e3a8a;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
.location-consent-text {
    font-size: 0.85rem;
    color: #3b82f6;
    margin-bottom: 0.85rem;
    line-height: 1.5;
}
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    background: #ffffff;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-sm);
    transition: all 0.16s ease;
    cursor: pointer;
}
.location-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.location-btn.btn-granted {
    border-color: #10b981;
    color: #15803d;
    background: #ecfdf5;
}
.location-btn.btn-denied {
    border-color: #ef4444;
    color: #b91c1c;
    background: #fef2f2;
}
.location-btn.btn-requesting {
    border-color: #f59e0b;
    color: #b45309;
    background: #fffbeb;
    cursor: wait;
}

.location-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.state-granted { background: #dcfce7; color: #15803d; }
.state-denied { background: #fee2e2; color: #b91c1c; }
.state-requesting { background: #fef3c7; color: #b45309; }
.state-idle { background: #f1f5f9; color: #475569; }

/* Interactive Map Preview */
.location-map-preview {
    margin-top: 1.25rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 220px;
    background: #f1f5f9;
    position: relative;
}
.location-map-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.location-map-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
}

/* Service selection cards */
.service-select-category {
    margin-bottom: 1.75rem;
}
.service-select-cat-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.service-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}
.service-select-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    user-select: none;
}
.service-select-card:hover {
    border-color: var(--accent);
    background: #fafafa;
    transform: translateY(-1px);
}
.service-select-card.selected {
    border-color: var(--accent);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--accent);
}
.service-select-card input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--accent);
    width: 17px;
    height: 17px;
    cursor: pointer;
}
.service-select-info {
    flex-grow: 1;
}
.service-select-name {
    font-weight: 700;
    color: var(--text-heading);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.service-select-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Business Goals Checkboxes Grid */
.goals-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.goal-option-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.goal-option-card:hover {
    border-color: var(--accent);
    background: #fafafa;
}
.goal-option-card.selected {
    border-color: var(--accent);
    background: #eff6ff;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}
.goal-option-card input[type="checkbox"] {
    accent-color: var(--accent);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* Radio Cards (Budget & Timeline) */
.radio-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.radio-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.radio-card:hover {
    border-color: var(--accent);
    background: #fafafa;
}
.radio-card.selected {
    border-color: var(--accent);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--accent);
    font-weight: 700;
    color: var(--accent);
}
.radio-card input[type="radio"] {
    accent-color: var(--accent);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* Profile Form Helper Sub-components */
.stored-logo-preview {
    height: 38px;
    max-width: 120px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 2px;
    background: #ffffff;
}
.form-badge-success {
    font-size: 0.8rem;
    color: #15803d;
    font-weight: 600;
}
.form-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--text-heading);
}
.radio-group-wrap {
    margin-bottom: 1.5rem;
}
.form-group-date {
    max-width: 320px;
}
.badge-popular {
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    margin-left: 0.25rem;
}
.profile-readiness-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.profile-readiness-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}
.readiness-track {
    height: 8px;
    margin-bottom: 1rem;
    background: #e2e8f0;
}
.readiness-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Floating Save Action Bar on Mobile/Sticky */
.profile-save-action-bar {
    position: sticky;
    bottom: 1rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    z-index: 100;
    margin-top: 2rem;
}
.profile-save-status {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}
.profile-save-status.saved {
    color: #4ade80;
    font-weight: 700;
}
.profile-save-status.saving {
    color: #60a5fa;
}
.profile-save-status.error {
    color: #f87171;
    font-weight: 700;
}

/* Admin Client Management */
.admin-clients-filter-bar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: end;
}
.admin-detail-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.admin-tab-btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    margin-bottom: -2px;
}
.admin-tab-btn:hover {
    color: var(--text-heading);
}
.admin-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}


/* =====================================================================
   ADMIN CONSOLE SHELL — BizGrowth360
   Sidebar + topbar layout, responsive drawer on mobile, card tables.
   Appended to the single authoritative stylesheet (no duplicate CSS).
   ===================================================================== */

/* --- Layout shell --------------------------------------------------- */
.adm-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

/* --- Sidebar -------------------------------------------------------- */
.adm-sidebar {
    width: 268px;
    flex: 0 0 268px;
    background: var(--primary);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.adm-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.adm-brand-mark {
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #1e40af);
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 0.95rem;
    letter-spacing: -0.02em;
}
.adm-brand-name {
    color: #fff; font-weight: 800; font-size: 1.02rem;
    letter-spacing: -0.01em; line-height: 1.1;
}
.adm-brand-sub {
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.09em; color: #64748b; font-weight: 600;
}

/* Navigation */
.adm-nav {
    padding: 0.85rem 0.7rem 1.5rem;
    flex: 1;
}
.adm-nav-group { margin-bottom: 0.3rem; }

.adm-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.8rem;
    border-radius: 9px;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
    min-height: 42px;
}
.adm-nav-link:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.adm-nav-link.active { background: var(--accent); color: #fff; font-weight: 600; }
.adm-nav-icon { flex-shrink: 0; display: grid; place-items: center; width: 18px; height: 18px; }
.adm-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-nav-badge {
    font-size: 0.66rem; font-weight: 700;
    padding: 0.12rem 0.42rem; border-radius: 999px;
    background: var(--warning); color: #1f2937;
    min-width: 20px; text-align: center;
}

.adm-sidebar-foot {
    padding: 0.85rem 0.7rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.adm-logout-btn {
    display: flex; align-items: center; gap: 0.7rem;
    width: 100%; padding: 0.65rem 0.8rem;
    border-radius: 9px; border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12); color: #fca5a5;
    font-size: 0.875rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    font-family: inherit;
}
.adm-logout-btn:hover { background: rgba(239, 68, 68, 0.22); color: #fecaca; }

/* --- Main column ---------------------------------------------------- */
.adm-main {
    flex: 1;
    min-width: 0;            /* prevents horizontal overflow */
    margin-left: 268px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.adm-topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    min-height: 64px;
}
.adm-burger {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: 9px;
    background: #fff; cursor: pointer;
    place-items: center; color: var(--text-heading);
    flex-shrink: 0;
}
.adm-topbar-title { font-size: 1.02rem; font-weight: 700; color: var(--text-heading); line-height: 1.2; }
.adm-topbar-sub { font-size: 0.76rem; color: var(--text-muted); }
.adm-topbar-spacer { flex: 1; min-width: 0; }
.adm-topbar-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }

.adm-icon-btn {
    position: relative;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--text-main);
    cursor: pointer; text-decoration: none;
    transition: background 0.14s ease;
}
.adm-icon-btn:hover { background: var(--bg-alt); }
.adm-dot {
    position: absolute; top: 6px; right: 6px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: var(--danger);
    color: #fff; font-size: 0.6rem; font-weight: 800;
    display: grid; place-items: center; line-height: 1;
    border: 2px solid #fff;
}

/* Profile dropdown */
.adm-profile { position: relative; }
.adm-profile-btn {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.3rem 0.5rem 0.3rem 0.3rem;
    border: 1px solid var(--border); border-radius: 999px;
    background: #fff; cursor: pointer; font-family: inherit;
    max-width: 190px;
}
.adm-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #1e40af);
    color: #fff; display: grid; place-items: center;
    font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
}
.adm-profile-name {
    font-size: 0.82rem; font-weight: 600; color: var(--text-heading);
    max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 224px; background: #fff;
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.4rem; z-index: 70;
    display: none;
}
.adm-dropdown.open { display: block; }
.adm-dropdown-head { padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border-light); margin-bottom: 0.3rem; }
.adm-dropdown-head .n { font-weight: 700; font-size: 0.87rem; color: var(--text-heading); }
.adm-dropdown-head .e { font-size: 0.75rem; color: var(--text-muted); word-break: break-all; }
.adm-dropdown a, .adm-dropdown button {
    display: flex; align-items: center; gap: 0.55rem;
    width: 100%; padding: 0.55rem 0.7rem;
    border-radius: 8px; font-size: 0.85rem;
    color: var(--text-main); text-decoration: none;
    background: none; border: none; cursor: pointer;
    font-family: inherit; text-align: left;
}
.adm-dropdown a:hover, .adm-dropdown button:hover { background: var(--bg-alt); }
.adm-dropdown .danger { color: var(--danger); }
.adm-dropdown .danger:hover { background: var(--danger-bg); }

/* --- Content -------------------------------------------------------- */
.adm-content {
    flex: 1;
    padding: 1.5rem 1.25rem 3rem;
    max-width: 100%;
}
.adm-page-head { margin-bottom: 1.4rem; }
.adm-page-title { font-size: 1.55rem; font-weight: 800; color: var(--text-heading); letter-spacing: -0.02em; }
.adm-page-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* Stat cards */
.adm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.adm-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.15rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 0.55rem;
    text-decoration: none; color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.adm-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.adm-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.adm-stat-label { font-size: 0.76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.adm-stat-val { font-size: 2rem; font-weight: 800; color: var(--text-heading); line-height: 1; letter-spacing: -0.03em; }
.adm-stat-desc { font-size: 0.78rem; color: var(--text-light); }
.adm-stat-ico {
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center; flex-shrink: 0;
    background: var(--accent-light); color: var(--accent);
}
.adm-stat-ico.g-success { background: var(--success-bg); color: var(--success); }
.adm-stat-ico.g-warning { background: var(--warning-bg); color: var(--warning); }
.adm-stat-ico.g-danger  { background: var(--danger-bg);  color: var(--danger); }
.adm-stat-ico.g-dark    { background: #e2e8f0;           color: var(--text-heading); }

/* Cards / sections */
.adm-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.adm-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border-light);
}
.adm-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-heading); }
.adm-card-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.adm-card-body { padding: 1.15rem; }

/* Tables -> cards on mobile */
.adm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 620px; }
.adm-table th {
    text-align: left; padding: 0.7rem 0.85rem;
    font-size: 0.71rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted);
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.adm-table td { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--border-light); color: var(--text-main); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: var(--surface-alt); }
.adm-mono { font-family: var(--font-mono); font-size: 0.8rem; }
.adm-nowrap { white-space: nowrap; }

/* Status pills */
.adm-pill {
    display: inline-block; padding: 0.2rem 0.55rem;
    border-radius: 999px; font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.03em; text-transform: uppercase;
    background: var(--bg-alt); color: var(--text-muted);
    border: 1px solid var(--border); white-space: nowrap;
}
.adm-pill.s-success { background: var(--success-bg); color: #047857; border-color: var(--success-border); }
.adm-pill.s-warning { background: var(--warning-bg); color: #b45309; border-color: #fde68a; }
.adm-pill.s-danger  { background: var(--danger-bg);  color: #b91c1c; border-color: var(--danger-border); }
.adm-pill.s-info    { background: var(--accent-light); color: var(--accent); border-color: var(--accent-border); }
.adm-pill.s-dark    { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Progress bar */
.adm-progress { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; min-width: 70px; }
.adm-progress span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Empty state */
.adm-empty { text-align: center; padding: 2.5rem 1rem; }
.adm-empty-ico { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.55; }
.adm-empty-title { font-weight: 700; color: var(--text-heading); margin-bottom: 0.25rem; }
.adm-empty-text { font-size: 0.85rem; color: var(--text-muted); max-width: 340px; margin: 0 auto; }

/* Small action buttons inside tables */
.adm-mini {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.34rem 0.65rem; border-radius: 7px;
    font-size: 0.76rem; font-weight: 700;
    border: 1px solid var(--border); background: #fff;
    color: var(--text-main); text-decoration: none; cursor: pointer;
    font-family: inherit; white-space: nowrap;
}
.adm-mini:hover { background: var(--bg-alt); }
.adm-mini.is-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.adm-mini.is-primary:hover { background: var(--accent-hover); }
.adm-mini.is-success { background: var(--success); border-color: var(--success); color: #fff; }
.adm-mini.is-danger  { background: var(--danger);  border-color: var(--danger);  color: #fff; }

/* Filter bar */
.adm-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.adm-filter { display: flex; flex-direction: column; gap: 0.28rem; flex: 1 1 165px; min-width: 0; }
.adm-filter label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-filter .form-control { padding: 0.5rem 0.7rem; font-size: 0.85rem; }

/* Activity feed */
.adm-feed { display: flex; flex-direction: column; }
.adm-feed-item { display: flex; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border-light); }
.adm-feed-item:last-child { border-bottom: none; }
.adm-feed-ico {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--accent-light); color: var(--accent);
}
.adm-feed-body { min-width: 0; flex: 1; }
.adm-feed-title { font-size: 0.85rem; font-weight: 600; color: var(--text-heading); }
.adm-feed-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }

/* Notification list */
.adm-notif { display: flex; gap: 0.7rem; padding: 0.8rem 0.95rem; border-bottom: 1px solid var(--border-light); text-decoration: none; color: inherit; }
.adm-notif:hover { background: var(--surface-alt); }
.adm-notif.unread { background: var(--accent-light); }
.adm-notif-body { min-width: 0; flex: 1; }
.adm-notif-title { font-size: 0.85rem; font-weight: 700; color: var(--text-heading); }
.adm-notif-msg { font-size: 0.79rem; color: var(--text-muted); margin-top: 0.1rem; word-break: break-word; }
.adm-notif-time { font-size: 0.71rem; color: var(--text-light); margin-top: 0.22rem; }

/* Metrics grid for reports */
.adm-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.adm-metric { border: 1px solid var(--border); border-radius: 10px; padding: 0.85rem 0.95rem; background: var(--surface-alt); }
.adm-metric-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.adm-metric-value { font-size: 1.4rem; font-weight: 800; color: var(--text-heading); margin-top: 0.25rem; letter-spacing: -0.02em; }

/* Sidebar scrim (mobile) */
.adm-scrim {
    display: none;
    position: fixed; inset: 0;
    background: rgba(11, 18, 32, 0.55);
    z-index: 55;
}

/* =====================================================================
   ADMIN LOGIN PAGE
   ===================================================================== */
.adm-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--bg-main);
}

.adm-login-aside {
    background:
        radial-gradient(1100px 460px at 12% 8%, rgba(37, 99, 235, 0.30), transparent 60%),
        linear-gradient(160deg, var(--primary) 0%, #0f1c34 100%);
    color: #e2e8f0;
    padding: 3rem 3rem;
    display: flex; flex-direction: column; justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
}
.adm-login-badge {
    display: inline-flex; align-items: center; gap: 0.45rem;
    align-self: flex-start;
    padding: 0.35rem 0.8rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.72rem; font-weight: 700; color: #fff !important;
    letter-spacing: 0.07em; text-transform: uppercase;
}
.adm-login-page .adm-login-h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 800; color: #fff !important;
    letter-spacing: -0.03em; line-height: 1.12;
}
.adm-login-page .adm-login-p { color: #94a3b8 !important; font-size: 0.98rem; margin-top: 1rem; max-width: 42ch; line-height: 1.65; }
.adm-login-page .adm-login-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 2rem; }
.adm-login-page .adm-login-li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: #cbd5e1 !important; }
.adm-login-check {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7; display: grid; place-items: center; font-size: 0.7rem;
}
.adm-login-page .adm-login-foot { font-size: 0.76rem; color: #64748b !important; }

.adm-login-main {
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem 1.5rem;
    min-width: 0;
}
.adm-login-box { width: 100%; max-width: 412px; }

.adm-login-head { margin-bottom: 1.75rem; }
.adm-login-head h2 { font-size: 1.6rem; font-weight: 800; color: var(--text-heading); letter-spacing: -0.02em; }
.adm-login-head p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.35rem; }

.adm-field { margin-bottom: 1.05rem; }
.adm-label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-heading); margin-bottom: 0.4rem; }
.adm-wrap { position: relative; display: flex; align-items: center; }
.adm-input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    font-size: 0.94rem;
    font-family: inherit;
    color: var(--text-heading);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}
.adm-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.adm-input.has-toggle { padding-right: 4.3rem; }
.adm-eye {
    position: absolute; right: 0.5rem;
    border: none; background: none; cursor: pointer;
    font-size: 0.7rem; font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--accent);
    padding: 0.45rem 0.55rem;
    border-radius: 7px;
}
.adm-eye:hover { background: var(--accent-light); }

.adm-alert {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.75rem 0.9rem; border-radius: 10px;
    font-size: 0.85rem; margin-bottom: 1.1rem;
    border: 1px solid;
}
.adm-alert.is-error   { background: var(--danger-bg);  color: #b91c1c; border-color: var(--danger-border); }
.adm-alert.is-success { background: var(--success-bg); color: #047857; border-color: var(--success-border); }
.adm-alert.is-info    { background: var(--accent-light); color: #1e40af; border-color: var(--accent-border); }

.adm-btn-primary {
    width: 100%;
    padding: 0.92rem 1rem;
    font-size: 0.95rem; font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--accent);
    border: none; border-radius: 10px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: background 0.15s ease;
    min-height: 48px;
}
.adm-btn-primary:hover { background: var(--accent-hover); }
.adm-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.adm-spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: admSpin 0.7s linear infinite;
    display: none;
}
.adm-btn-primary.is-loading .adm-spinner { display: block; }

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

.adm-login-alt {
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.5rem;
    font-size: 0.85rem; color: var(--text-muted);
}
.adm-login-alt a { color: var(--accent); font-weight: 700; text-decoration: none; }
.adm-login-alt a:hover { text-decoration: underline; }

/* =====================================================================
   RESPONSIVE — Admin shell
   ===================================================================== */
@media (max-width: 1024px) {
    .adm-main { margin-left: 0; }
    .adm-sidebar {
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        box-shadow: var(--shadow-xl);
    }
    .adm-sidebar.open { transform: translateX(0); }
    .adm-scrim.open { display: block; }
    .adm-burger { display: grid; }
    .adm-profile-name { display: none; }
    .adm-profile-btn { max-width: none; }
}

@media (max-width: 900px) {
    .adm-login-page { grid-template-columns: 1fr; }
    .adm-login-aside { padding: 2rem 1.5rem; }
    .adm-login-list { display: none; }
    .adm-login-main { padding: 2rem 1.25rem 3rem; }
}

@media (max-width: 640px) {
    .adm-content { padding: 1.1rem 0.85rem 2.5rem; }
    .adm-topbar { padding: 0.65rem 0.85rem; }
    .adm-topbar-sub { display: none; }
    .adm-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; }
    .adm-stat { padding: 0.85rem 0.9rem; }
    .adm-stat-val { font-size: 1.6rem; }
    .adm-page-title { font-size: 1.3rem; }
    .adm-card-head, .adm-card-body { padding: 0.85rem; }

    /* Tables become stacked cards — no horizontal overflow */
    .adm-table { min-width: 0; display: block; }
    .adm-table thead { display: none; }
    .adm-table tbody { display: block; }
    .adm-table tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 10px;
        margin-bottom: 0.6rem;
        padding: 0.55rem 0.75rem;
        background: #fff;
    }
    .adm-table tbody tr:hover { background: #fff; }
    .adm-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        padding: 0.42rem 0;
        border-bottom: 1px dashed var(--border-light);
        text-align: right;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .adm-table td:last-child { border-bottom: none; }
    .adm-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        text-align: left;
        flex-shrink: 0;
    }
}

@media (max-width: 420px) {
    .adm-stats { grid-template-columns: 1fr 1fr; }
    .adm-stat-desc { display: none; }
}

/* =====================================================================
   ADMIN CONSOLE v2 — LAYOUT HARDENING & REDESIGN
   Scoped strictly to .adm-* so public/client pages are untouched.
   ===================================================================== */

/* --- 1. Overflow hardening (real fixes, not just overflow-x:hidden) -- */
.adm-shell,
.adm-shell *,
.adm-shell *::before,
.adm-shell *::after {
    box-sizing: border-box;
}

/* The shell is the horizontal clipping boundary. Nothing inside it may
   push the document wider than the viewport. */
.adm-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;           /* contains any stray wide child */
}

/* Flex/grid children must be allowed to shrink below content size,
   otherwise long emails/URLs force the page sideways. */
.adm-main,
.adm-content,
.adm-card,
.adm-card-body,
.adm-table-wrap,
.adm-stats,
.adm-split > *,
.adm-stat,
.adm-notif-body,
.adm-feed-body {
    min-width: 0;
    max-width: 100%;
}

/* Sidebar is fixed, so it must not also occupy flex flow. */
.adm-sidebar {
    width: 260px;
    flex: 0 0 260px;
    max-width: 260px;
}

/* Tables scroll inside their own wrapper only — never page-wide. */
.adm-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Long unbroken strings (emails, tokens, URLs) must wrap. */
.adm-shell td,
.adm-shell .adm-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* --- 2. Content width ---------------------------------------------- */
.adm-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.75rem 1.75rem 3rem;
}

/* --- 3. Topbar: compact, never tall -------------------------------- */
.adm-topbar {
    min-height: 60px;
    padding: 0.6rem 1.5rem;
}
.adm-topbar-title { font-size: 1.05rem; }
.adm-breadcrumb {
    font-size: 0.74rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}
.adm-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.adm-breadcrumb a:hover { color: var(--accent); }
.adm-breadcrumb span { margin: 0 0.3rem; }

/* --- 4. Welcome / page head ---------------------------------------- */
.adm-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
}
.adm-welcome-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-heading);
    line-height: 1.2;
}
.adm-welcome-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }
.adm-welcome-date {
    font-size: 0.84rem;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* --- 5. KPI grid: 4 / 2 / 1 ---------------------------------------- */
.adm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.adm-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
a.adm-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.14);
    border-color: var(--accent-border);
}
.adm-stat-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}
.adm-stat-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.055em;
}
.adm-stat-val {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
    letter-spacing: -0.035em;
}
.adm-stat-desc { font-size: 0.79rem; color: var(--text-light); }
.adm-stat-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
}
.adm-stat-link:hover { color: var(--accent-hover); }

/* --- 6. Quick actions ---------------------------------------------- */
.adm-quick {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1.6rem;
}
.adm-quick-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 600;
    min-width: 0;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.adm-quick-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    transform: translateY(-1px);
}
.adm-quick-ico {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--bg-alt);
    color: var(--text-heading);
}
.adm-quick-btn:hover .adm-quick-ico { background: #fff; color: var(--accent); }
.adm-quick-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- 7. Two-column section split ----------------------------------- */
.adm-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.adm-split > .adm-card { margin-bottom: 0; }
.adm-split-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.adm-split-stack > .adm-card { margin-bottom: 0; }

/* --- 8. Section titles --------------------------------------------- */
.adm-card-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.adm-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.015em;
    margin-bottom: 0.9rem;
}

/* --- 9. Status badge: consistent, readable ------------------------- */
.adm-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;          /* already title-cased server-side */
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adm-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    opacity: 0.75;
}
.adm-pill.s-success { background: var(--success-bg); color: #047857; border-color: var(--success-border); }
.adm-pill.s-warning { background: var(--warning-bg); color: #b45309; border-color: #fde68a; }
.adm-pill.s-danger  { background: var(--danger-bg);  color: #b91c1c; border-color: var(--danger-border); }
.adm-pill.s-info    { background: var(--accent-light); color: var(--accent); border-color: var(--accent-border); }
.adm-pill.s-dark    { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- 10. Timeline (activity) --------------------------------------- */
.adm-timeline { position: relative; padding-left: 1.6rem; }
.adm-timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 6px; bottom: 6px;
    width: 2px;
    background: var(--border);
}
.adm-tl-item { position: relative; padding: 0.55rem 0; }
.adm-tl-item::before {
    content: '';
    position: absolute;
    left: -1.6rem; top: 0.95rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-light);
}
.adm-tl-item.tl-auth::before { background: var(--text-muted); box-shadow: 0 0 0 2px var(--bg-alt); }
.adm-tl-title { font-size: 0.87rem; font-weight: 700; color: var(--text-heading); }
.adm-tl-meta  { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.12rem; }
.adm-tl-time  { font-size: 0.72rem; color: var(--text-light); margin-top: 0.1rem; }

/* --- 11. Empty state with CTA -------------------------------------- */
.adm-empty { padding: 2rem 1.25rem; }
.adm-empty-actions { margin-top: 1rem; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }

/* --- 12. Project cards --------------------------------------------- */
.adm-proj {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 0.7rem;
}
.adm-proj:last-child { margin-bottom: 0; }
.adm-proj-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.adm-proj-name { font-weight: 700; color: var(--text-heading); font-size: 0.92rem; }
.adm-proj-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.adm-proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablet: 2-column KPI grid, collapsed sidebar */
@media (max-width: 1199px) {
    .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .adm-split { grid-template-columns: minmax(0, 1fr); }
    .adm-split-stack { gap: 1.25rem; }
}

@media (max-width: 1024px) {
    .adm-main { margin-left: 0; }
    .adm-sidebar {
        transform: translateX(-100%);
        transition: transform 0.24s ease;
        box-shadow: var(--shadow-xl);
        max-width: 270px;
        width: 270px;
        flex-basis: 270px;
    }
    .adm-sidebar.open { transform: translateX(0); }
    .adm-scrim.open { display: block; }
    .adm-burger { display: grid; }
    .adm-profile-name { display: none; }
    .adm-profile-btn { max-width: none; }
}

/* Mobile: single column, drawer navigation */
@media (max-width: 767px) {
    .adm-content { padding: 1rem 0.9rem 2.5rem; }
    .adm-topbar { padding: 0.6rem 0.9rem; min-height: 56px; }
    .adm-topbar-sub, .adm-breadcrumb { display: none; }
    .adm-stats { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
    .adm-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-welcome-title { font-size: 1.3rem; }
    .adm-welcome { margin-bottom: 1.1rem; padding-bottom: 0.9rem; }
    .adm-welcome-date { font-size: 0.78rem; padding: 0.4rem 0.8rem; }

    /* Tables become stacked cards */
    .adm-table { min-width: 0; display: block; }
    .adm-table thead { display: none; }
    .adm-table tbody { display: block; }
    .adm-table tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 0.6rem;
        padding: 0.6rem 0.8rem;
        background: #fff;
    }
    .adm-table tbody tr:hover { background: #fff; }
    .adm-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        padding: 0.4rem 0;
        border-bottom: 1px dashed var(--border-light);
        text-align: right;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .adm-table td:last-child { border-bottom: none; }
    .adm-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        text-align: left;
        flex-shrink: 0;
    }
}

@media (max-width: 400px) {
    .adm-quick { grid-template-columns: minmax(0, 1fr); }
    .adm-stat-val { font-size: 1.7rem; }
}

/* --- Sidebar section headings ------------------------------------- */
.adm-nav-section {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #64748b;
    padding: 1rem 0.85rem 0.4rem;
}
.adm-nav-section:first-child { padding-top: 0.25rem; }

/* Active link gets a clear premium accent + left rail */
.adm-nav-link.active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.6);
}
.adm-nav-link.active .adm-nav-icon { color: #fff; }

/* Sidebar scrollbar, subtle */
.adm-sidebar::-webkit-scrollbar { width: 6px; }
.adm-sidebar::-webkit-scrollbar-track { background: transparent; }
.adm-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 999px; }
.adm-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.24); }
