/* ==========================================================================
   calakan.work Enterprise Portal - Design Tokens & System Variables
   Modern, Premium, Enterprise-Grade Design System
   ========================================================================== */

:root {
    /* ---- Brand Palette ---- */
    --brand-1: #2563eb;       /* Primary Royal Blue */
    --brand-2: #1d4ed8;       /* Deep Blue */
    --brand-3: #1e40af;       /* Navy */
    --brand-4: #3b82f6;       /* Bright Blue */
    --brand-5: #60a5fa;       /* Light Blue */
    --brand-light: #eff6ff;   /* Soft Blue Tint */
    --brand-glow: rgba(37, 99, 235, 0.15);
    --grad-brand: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --grad-cool:  linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --grad-warm:  linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --accent: #2563eb;

    /* ---- Status & Functional Colors ---- */
    --ok: #10b981;            /* Emerald */
    --ok-light: #ecfdf5;
    --ok-glow: rgba(16, 185, 129, 0.15);
    
    --warn: #f59e0b;          /* Amber */
    --warn-light: #fffbeb;
    --warn-glow: rgba(245, 158, 11, 0.15);
    
    --err: #ef4444;           /* Rose Red */
    --err-light: #fef2f2;
    --err-glow: rgba(239, 68, 68, 0.15);
    
    --info: #0ea5e9;          /* Sky Blue */
    --info-light: #f0f9ff;
    
    --gold: #f59e0b;
    --gold-soft: #fef3c7;

    /* ---- Typography ---- */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, 'Courier New', monospace;
    
    --fs-2xs: 0.6875rem;     /* 11px */
    --fs-xs:  0.75rem;       /* 12px */
    --fs-sm:  0.875rem;      /* 14px */
    --fs-md:  1rem;          /* 16px */
    --fs-lg:  1.125rem;      /* 18px */
    --fs-xl:  1.25rem;       /* 20px */
    --fs-2xl: 1.5rem;        /* 24px */
    --fs-3xl: 1.875rem;      /* 30px */
    --fs-4xl: 2.25rem;       /* 36px */
    --fs-5xl: 3rem;          /* 48px */

    --fw-light: 300;
    --fw-reg:   400;
    --fw-med:   500;
    --fw-semi:  600;
    --fw-bold:  700;
    --fw-black: 800;

    --lh-tight: 1.2;
    --lh-snug:  1.35;
    --lh-norm:  1.55;
    --lh-relax: 1.7;

    /* ---- Spacing Scale ---- */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-7:  32px;
    --sp-8:  40px;
    --sp-9:  48px;
    --sp-10: 64px;

    /* ---- Border Radius ---- */
    --r-xs:  4px;
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  14px;
    --r-xl:  18px;
    --r-2xl: 24px;
    --r-pill: 9999px;

    /* ---- Motion & Transitions ---- */
    --ease:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:    cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast:  120ms;
    --dur:       220ms;
    --dur-slow:  350ms;

    /* ---- Z-Index Scale ---- */
    --z-bg:       0;
    --z-base:     1;
    --z-card:     2;
    --z-nav:      50;
    --z-drawer:   60;
    --z-dropdown: 70;
    --z-modal:    100;
    --z-toast:    120;

    /* ---- Layout Dimensions ---- */
    --shell-max: 1600px;
    --topbar-h:  64px;
}

/* ==========================================================================
   LIGHT THEME (Soothing, Eye-Friendly Modern SaaS - No Glare)
   ========================================================================== */
:root,
[data-theme="light"] {
    --bg-base:       #edf2f7;  /* Soft soothing slate - easy on the eyes */
    --bg-elevated:   #ffffff;
    --bg-subtle:     #e2e8f0;
    
    --surface:       #ffffff;
    --surface-2:     #e8edf4;
    --surface-solid: #ffffff;
    --surface-hover: #e2e8f2;
    
    --glass-bg:      rgba(245, 248, 252, 0.92);
    --glass-border:  #d2dce8;
    --glass-blur:    16px;

    --text:          #1e293b;  /* Slate 800 - crisp and comfortable */
    --text-soft:     #475569;  /* Slate 600 */
    --text-muted:    #64748b;  /* Slate 500 */
    --text-invert:   #ffffff;

    --border:        #d5dfea;  /* Balanced, soft border */
    --border-strong: #bac7d5;  /* Defined border */
    --border-hover:  #8da2b8;

    --shadow-xs: 0 1px 2px rgba(30, 41, 59, 0.04);
    --shadow-sm: 0 1px 3px rgba(30, 41, 59, 0.06), 0 1px 2px rgba(30, 41, 59, 0.03);
    --shadow:    0 4px 12px -2px rgba(30, 41, 59, 0.05), 0 2px 4px -1px rgba(30, 41, 59, 0.02);
    --shadow-md: 0 8px 20px -4px rgba(30, 41, 59, 0.07), 0 4px 8px -2px rgba(30, 41, 59, 0.03);
    --shadow-lg: 0 14px 28px -6px rgba(30, 41, 59, 0.08), 0 6px 12px -3px rgba(30, 41, 59, 0.03);
    --shadow-xl: 0 20px 40px -10px rgba(30, 41, 59, 0.1);
    --shadow-glow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 6px 20px -4px rgba(37, 99, 235, 0.15);

    --chip-bg:     #e2e8f0;
    --chip-hover:  #cbd5e1;
    --chip-active: #dbeafe;

    --electric:     #2563eb;
    --electric-glow: rgba(37, 99, 235, 0.12);
}

/* ==========================================================================
   DARK THEME (Deep Obsidian / Slate Cyber)
   ========================================================================== */
[data-theme="dark"] {
    --bg-base:       #0b0f19;
    --bg-elevated:   #111827;
    --bg-subtle:     #172033;
    
    --surface:       #111827;
    --surface-2:     #172033;
    --surface-solid: #111827;
    --surface-hover: #1e293b;

    --glass-bg:      rgba(17, 24, 39, 0.85);
    --glass-border:  rgba(255, 255, 255, 0.09);
    --glass-blur:    16px;

    --text:          #f8fafc;  /* Slate 50 */
    --text-soft:     #cbd5e1;  /* Slate 300 */
    --text-muted:    #94a3b8;  /* Slate 400 */
    --text-invert:   #0b0f19;

    --border:        rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --border-hover:  rgba(255, 255, 255, 0.28);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow:    0 4px 14px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.85);
    --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 8px 28px rgba(37, 99, 235, 0.25);

    --chip-bg:     #172033;
    --chip-hover:  #1e293b;
    --chip-active: #1e3a8a;

    --electric:     #3b82f6;
    --electric-glow: rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   HIGH CONTRAST / ACCESSIBILITY
   ========================================================================== */
@media (forced-colors: active) {
    :root {
        --glass-blur: 0;
        --surface:    Canvas;
        --surface-2:  Canvas;
        --text:       CanvasText;
        --border:     CanvasText;
    }
}

/* ==========================================================================
   calakan.work Enterprise Portal - Base / Reset
   Modern, Clean, Accessible Reset with Refined Typography
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: clip;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: var(--lh-norm);
    color: var(--text);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 100% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 80% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 60%),
        radial-gradient(at 10% 80%, rgba(30, 58, 138, 0.08) 0px, transparent 60%);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--text);
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

p {
    margin: 0;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

a {
    color: var(--brand-1);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

a:hover {
    color: var(--brand-2);
}

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

input, select, textarea {
    font: inherit;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 14px;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px var(--electric-glow);
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

:focus-visible {
    outline: 2px solid var(--brand-1);
    outline-offset: 2px;
}

::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text);
}

/* Skip link for keyboard accessibility */
.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: var(--z-toast);
    padding: 10px 18px;
    background: var(--brand-1);
    color: #ffffff;
    font-weight: var(--fw-semi);
    font-size: var(--fs-sm);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    transition: top var(--dur) var(--ease);
}

.skip-link:focus {
    top: 16px;
}

/* Status utilities */
.text-ok   { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-err  { color: var(--err); }
.text-info { color: var(--info); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

/* Glass surface utility */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

/* Gradient text accent */
.grad-text {
    background: linear-gradient(135deg, var(--brand-1) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--r-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

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

/* ==========================================================================
   calakan.work Enterprise Portal - Layout & Structure
   Modern, Rich, Dimensional Enterprise Architecture
   ========================================================================== */

/* ==========================================================================
   BACKGROUND ATMOSPHERE & AMBIENT LAYERS
   ========================================================================== */
.bg-video,
.bg-gradient,
.bg-particles,
.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
}

/* Video Background */
.bg-video {
    object-fit: cover;
    opacity: 1;
    z-index: var(--z-bg);
}

[data-theme="dark"] .bg-video {
    opacity: 0.9;
}

/* Dynamic Ambient Glow Mesh */
.bg-gradient {
    display: block;
    background: 
        radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 45%);
    background-size: 200% 200%;
    filter: blur(50px);
    animation: bgShift 20s ease-in-out infinite;
}

[data-theme="dark"] .bg-gradient {
    background: 
        radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(30, 58, 138, 0.12) 0%, transparent 50%);
    background-size: 200% 200%;
    filter: blur(50px);
    animation: bgShift 20s ease-in-out infinite;
}

/* Subtle Geometric Dot Grid */
.bg-overlay {
    display: block;
    background-image: radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
}

[data-theme="dark"] .bg-overlay {
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    opacity: 0.6;
}

/* Veil layer: semi-transparent wash for text readability over video */
.bg-veil {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(237, 242, 247, 0.75) 0%, rgba(237, 242, 247, 0.85) 40%, rgba(237, 242, 247, 0.92) 100%);
}

[data-theme="dark"] .bg-veil {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.78) 0%, rgba(11, 15, 25, 0.88) 40%, rgba(11, 15, 25, 0.94) 100%);
}

/* Floating Light Particles */
.bg-particles {
    display: block;
    overflow: hidden;
}

.bg-particles .particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.5), transparent 70%);
    opacity: 0.3;
    animation: floatUp linear infinite;
    will-change: transform, opacity;
}

[data-theme="dark"] .bg-particles .particle {
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.6), transparent 70%);
    opacity: 0.5;
}

/* Typing Terminal Code Lines */
.bg-particles .code-line {
    position: absolute;
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre;
    pointer-events: none;
    z-index: 1;
    text-shadow: 0 0 8px currentColor;
    letter-spacing: 0.02em;
}

.bg-particles .code-cursor {
    display: inline-block;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ---- Shell Container ---- */
.shell {
    position: relative;
    z-index: var(--z-base);
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.main {
    min-height: calc(100vh - 180px);
}

/* ==========================================================================
   TOPBAR NAVIGATION — Premium Glass Header
   ========================================================================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid transparent;
    box-shadow: 0 1px 0 0 var(--border), 0 4px 24px -8px rgba(15, 23, 42, 0.08);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.topbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--bg-base);
    z-index: -1;
    pointer-events: none;
}

.topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-1) 20%, var(--brand-4) 50%, var(--brand-1) 80%, transparent 100%);
    opacity: 0.3;
    pointer-events: none;
}

[data-theme="dark"] .topbar::after {
    opacity: 0.5;
}

.topbar-inner {
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
}

/* ---- Brand Logo — Premium Badge ---- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    padding: 4px 12px 4px 4px;
    border-radius: var(--r-pill);
    transition: all var(--dur-fast) var(--ease);
}

.brand:hover {
    text-decoration: none;
    background: var(--chip-bg);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.2);
    transition: all var(--dur-fast) var(--ease);
}

.brand:hover .brand-mark {
    box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

[data-theme="dark"] .brand-mark {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, var(--surface) 100%);
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
    letter-spacing: -0.025em;
    color: var(--text);
}

.brand-dot {
    color: var(--brand-1);
    font-weight: var(--fw-black);
}

.brand-sub {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: var(--fw-semi);
}

/* ---- Topbar Search (Command-Palette Premium) ---- */
.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    max-width: 420px;
    width: 100%;
    height: 40px;
    padding: 0 var(--sp-3);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: all var(--dur-fast) var(--ease);
}

.topbar-search:focus-within {
    border-color: var(--brand-1);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--electric-glow), var(--shadow-sm);
}

.topbar-search .search-icon {
    color: var(--text-muted);
    display: grid;
    place-items: center;
    transition: color var(--dur-fast) var(--ease);
}

.topbar-search:focus-within .search-icon {
    color: var(--brand-1);
}

.topbar-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text);
    font-size: var(--fs-sm);
    padding: 0;
}

.topbar-search input::placeholder {
    color: var(--text-muted);
}

.topbar-search kbd {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: var(--fw-semi);
    padding: 2px 7px;
    border-radius: var(--r-xs);
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border-strong);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    user-select: none;
}

/* ---- Topbar Actions ---- */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}

/* Base Icon Button — Premium */
.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.icon-btn:hover {
    background: var(--chip-active);
    border-color: var(--brand-1);
    color: var(--brand-1);
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

/* Clock Button — Premium Pill */
.clock-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    height: 38px;
    padding: 0 var(--sp-3);
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    color: var(--text-soft);
    font-family: var(--font-sans);
    cursor: default;
    transition: all var(--dur-fast) var(--ease);
}

.clock-btn:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.clock-pulse {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--ok);
}

.clock-pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--ok);
    opacity: 0.4;
    animation: pulseRadar 2s ease-out infinite;
}

.clock-time {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.clock-date {
    font-size: 11px;
    font-weight: var(--fw-med);
    color: var(--text-muted);
    padding-left: var(--sp-2);
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

/* Notification Badge */
.has-badge .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--err);
    box-shadow: 0 0 0 2px var(--surface), 0 0 6px var(--err);
    animation: pulseDot 2s var(--ease) infinite;
}

/* Language Toggle — Premium */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    color: var(--text-soft);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.lang-toggle:hover {
    background: var(--chip-active);
    border-color: var(--brand-1);
    color: var(--brand-1);
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.lang-flag {
    display: flex;
    align-items: center;
}

.lang-code {
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Theme Toggle Icons */
.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline-block;
}

/* Sign In Button — Premium Gradient */
.signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: var(--r-pill);
    background: var(--grad-brand);
    color: #ffffff;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25), 0 4px 14px -2px rgba(37, 99, 235, 0.2);
    transition: all var(--dur-fast) var(--ease);
}

.signin-btn:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3), 0 8px 24px -4px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

/* Profile Menu — Premium */
.profile-menu {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    height: 38px;
    padding: 0 12px 0 4px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.profile-trigger:hover {
    background: var(--chip-active);
    border-color: var(--brand-1);
    box-shadow: 0 2px 8px -2px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.avatar {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-1);
    color: #ffffff;
    font-weight: var(--fw-bold);
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.profile-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.profile-name {
    font-weight: var(--fw-semi);
    font-size: 12px;
    color: var(--text);
}

.profile-role {
    font-size: 10px;
    color: var(--text-muted);
}

.profile-trigger .chev {
    color: var(--text-muted);
    transition: transform var(--dur-fast) var(--ease);
}

.profile-trigger[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transform-origin: top right;
    transition: all var(--dur) var(--ease);
    z-index: var(--z-dropdown);
}

.profile-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 8px 12px;
    border-radius: var(--r-md);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease);
}

.dropdown-item:hover {
    background: var(--surface-hover);
    color: var(--brand-1);
    text-decoration: none;
}

.dropdown-item.danger:hover {
    background: var(--err-light);
    color: var(--err);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Notification Drawer */
.notif-drawer {
    position: absolute;
    top: calc(100% + 8px);
    right: var(--sp-6);
    width: 340px;
    max-width: calc(100vw - 32px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transform-origin: top right;
    transition: all var(--dur) var(--ease);
    z-index: var(--z-drawer);
    overflow: hidden;
}

.notif-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
}

.notif-header strong {
    color: var(--text);
}

.notif-header .link-btn {
    color: var(--brand-1);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    cursor: pointer;
}

.notif-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
}

.notif-item {
    display: flex;
    gap: var(--sp-3);
    padding: 10px;
    border-radius: var(--r-md);
    transition: background-color var(--dur-fast) var(--ease);
}

.notif-item:hover {
    background: var(--surface-hover);
}

.notif-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--fs-xs);
}

.notif-footer a {
    color: var(--brand-1);
    font-weight: var(--fw-semi);
}

/* ==========================================================================
   HERO SECTION (Dimensional Executive Card Layout)
   ========================================================================== */
.hero {
    padding: var(--sp-6) 0 var(--sp-4);
    position: relative;
}

.hero-shell {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}

.hero-card-pro {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--sp-8);
    align-items: center;
    padding: var(--sp-7) var(--sp-8);
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--r-xl);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 8px 24px -8px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero-card-pro {
    background: linear-gradient(135deg, #0f172a 0%, #111827 50%, #0c1326 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow:
        0 4px 20px -2px rgba(0, 0, 0, 0.5),
        0 8px 28px -8px rgba(37, 99, 235, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Hero Card Media - Gradient Background */
.hero-card-pro-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 40%, #3b82f6 70%, #60a5fa 100%);
    display: block;
}

[data-theme="dark"] .hero-card-pro-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, #2563eb 70%, #3b82f6 100%);
}

.hero-card-pro-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(96,165,250,0.2) 0%, transparent 50%);
}

/* Hero Card Media - Background Photo */
.hero-card-pro-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    overflow: hidden;
    z-index: 0;
}

.hero-card-pro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85);
}

.hero-card-pro-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f4ff 0%, rgba(240, 244, 255, 0.7) 25%, transparent 60%);
    pointer-events: none;
}

[data-theme="dark"] .hero-card-pro-media-overlay {
    background: linear-gradient(90deg, #0f172a 0%, rgba(15, 23, 42, 0.7) 25%, transparent 60%);
}

.hero-card-pro-main,
.hero-card-pro-stats {
    position: relative;
    z-index: 1;
}

/* Top Accent Bar - Refined Monochromatic Blue */
.hero-card-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-1) 20%, var(--brand-4) 50%, var(--brand-1) 80%, transparent 100%);
    opacity: 0.85;
}

.hero-card-pro-main {
    max-width: 600px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    background: var(--brand-light);
    color: var(--brand-1);
    font-size: 11px;
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--sp-3);
    border: 1px solid color-mix(in srgb, var(--brand-1) 18%, transparent);
}

[data-theme="dark"] .hero-eyebrow {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    color: #93c5fd;
}

.hero-title {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: 1.2;
    margin-bottom: var(--sp-3);
    letter-spacing: -0.025em;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-title-greeting {
    font-size: var(--fs-md);
    font-weight: var(--fw-med);
    color: var(--text-muted);
    letter-spacing: 0;
}

.brand-hero {
    color: #0a0a0a;
    -webkit-text-fill-color: #0a0a0a;
    display: inline-block;
    font-weight: 900;
    letter-spacing: -0.03em;
}

[data-theme="dark"] .brand-hero {
    color: #f8f8f8;
    -webkit-text-fill-color: #f8f8f8;
}

.brand-hero-dot {
    color: var(--brand-1);
}

.hero-desc {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: var(--lh-relax);
    max-width: 54ch;
    margin: 0;
}

/* Hero Stats - Elevated Frosted Micro-Cards */
.hero-card-pro-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: var(--sp-3);
    padding-left: var(--sp-7);
    border-left: 1px solid var(--border);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: all var(--dur-fast) var(--ease);
}

.hero-stat-item:hover {
    background: var(--surface);
    border-color: var(--brand-1);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
}

.hero-stat-num {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ==========================================================================
   SECTIONS & GRID ARCHITECTURE
   ========================================================================== */
.section {
    padding: var(--sp-7) 0;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    letter-spacing: -0.015em;
}

.section-icon {
    color: var(--brand-1);
}

.section-sub {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    font-weight: var(--fw-reg);
}

/* Filter Chips / Tabs */
.section-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 14px;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: var(--fw-med);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.chip:hover {
    border-color: var(--brand-1);
    color: var(--brand-1);
    background: var(--surface-hover);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.1);
}

.chip.is-active {
    background: linear-gradient(135deg, var(--brand-1) 0%, #3b82f6 100%);
    color: #ffffff;
    border-color: var(--brand-1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ---- App Grid ---- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-5);
}

/* Skeleton Loading */
.skeleton-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-5);
}

.skeleton-card {
    padding: var(--sp-5);
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border);
}

.skeleton-shine {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--chip-bg) 50%, var(--surface-2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-sm);
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    margin-bottom: var(--sp-3);
}

.skeleton-line {
    height: 12px;
    margin-bottom: var(--sp-2);
}

.skeleton-line-title { width: 60%; height: 16px; }
.skeleton-line-desc { width: 90%; }
.skeleton-line-short { width: 40%; }

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

/* ---- Status Grid ---- */
.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}

/* ---- Split Layout (Announcements + Quick Actions) ---- */
.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-7);
    align-items: start;
}

.split-col {
    min-width: 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-5);
}

/* ---- By the Numbers Grid ---- */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
}

.number-card {
    text-align: center;
    padding: var(--sp-5);
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-fast) var(--ease);
}

.number-card:hover {
    border-color: var(--brand-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.number-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--sp-3);
    display: grid;
    place-items: center;
    border-radius: var(--r-lg);
    background: color-mix(in srgb, var(--brand-1) 12%, var(--surface));
    color: var(--brand-1);
}

.number-val {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    display: inline;
}

.number-suffix {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--brand-1);
    display: inline;
}

.number-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: var(--sp-2);
}

/* ---- Testimonial Grid ---- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-5);
}

.testimonial-card {
    padding: var(--sp-5);
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-fast) var(--ease);
}

.testimonial-card:hover {
    border-color: var(--brand-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--gold);
    font-size: var(--fs-md);
    letter-spacing: 2px;
    margin-bottom: var(--sp-3);
}

.testimonial-text {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: var(--lh-relax);
    margin: 0 0 var(--sp-4);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-1);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}

.testimonial-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--text);
}

.testimonial-role {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.services-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.services-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--brand-light);
    color: var(--brand-1);
    font-size: 11px;
    font-weight: var(--fw-semi);
    margin-bottom: var(--sp-2);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .services-eyebrow {
    background: rgba(37, 99, 235, 0.15);
}

.services-cta-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    background: var(--surface);
    color: var(--brand-1);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease);
}

.services-cta-top:hover {
    border-color: var(--brand-1);
    background: var(--chip-active);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Services CTA Banner */
.services-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-5);
    padding: var(--sp-7) var(--sp-8);
    margin-top: var(--sp-7);
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.06),
        0 12px 32px -4px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .services-banner {
    box-shadow: 
        0 4px 24px -2px rgba(0, 0, 0, 0.5),
        0 12px 40px -4px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.services-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-1), #38bdf8);
}

.services-banner-text {
    flex: 1;
    min-width: 260px;
}

.services-banner-text h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin-bottom: 4px;
}

.services-banner-text p {
    font-size: var(--fs-sm);
    color: var(--text-soft);
    line-height: var(--lh-norm);
}

.services-banner-actions {
    display: flex;
    gap: var(--sp-3);
    flex-shrink: 0;
}

/* Action Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 10px 22px;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    background: linear-gradient(135deg, var(--brand-1) 0%, #3b82f6 100%);
    color: #ffffff;
    border: 1px solid var(--brand-1);
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all var(--dur-fast) var(--ease);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    border-color: var(--brand-2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 10px 22px;
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    background: var(--surface);
    color: var(--text-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
}

.btn-ghost:hover {
    border-color: var(--brand-1);
    color: var(--brand-1);
    background: var(--surface-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ==========================================================================
   SECONDARY NAVIGATION (Sub-nav bar)
   ========================================================================== */
.subnav {
    position: sticky;
    top: var(--topbar-h);
    z-index: var(--z-nav);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav-inner {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--sp-5);
    display: flex;
    align-items: center;
    gap: 4px;
    height: 44px;
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    font-size: var(--fs-xs);
    font-weight: var(--fw-med);
    color: var(--text-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--dur-fast) var(--ease);
}

.subnav-link:hover {
    background: var(--chip-bg);
    color: var(--brand-1);
    text-decoration: none;
}

.subnav-link.is-active {
    background: var(--chip-active);
    color: var(--brand-1);
    font-weight: var(--fw-semi);
    box-shadow: 0 1px 4px -1px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    margin-top: var(--sp-9);
    padding: var(--sp-7) 0 var(--sp-8);
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -4px 20px -2px rgba(15, 23, 42, 0.03);
}

.footer-inner {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-6);
}

.footer-col {
    min-width: 0;
}

.footer-tagline {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin: var(--sp-2) 0 var(--sp-3);
    line-height: var(--lh-norm);
    max-width: 36ch;
}

.footer-col-title {
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 var(--sp-3);
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.footer-col-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: var(--fs-xs);
    transition: color var(--dur-fast) var(--ease);
}

.footer-col-links a:hover {
    color: var(--brand-1);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    font-weight: var(--fw-med);
}

.footer-hex {
    color: var(--brand-1);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover {
    color: var(--brand-1);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--dur-fast) var(--ease);
}

.footer-social a:hover {
    background: var(--brand-1);
    color: #ffffff;
    border-color: var(--brand-1);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.footer-meta {
    color: var(--text-muted);
    font-size: 11px;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
    margin-bottom: var(--sp-5);
    padding-top: var(--sp-4);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    font-size: var(--fs-xs);
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

.breadcrumb-item a:hover {
    color: var(--brand-1);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: var(--fw-semi);
}

.breadcrumb-sep {
    color: var(--border-strong);
    user-select: none;
}

/* ==========================================================================
   LOGIN MODAL
   ========================================================================== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    padding: var(--sp-4);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}

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

.login-modal {
    width: 100%;
    max-width: 400px;
    padding: var(--sp-7);
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 
        0 20px 50px -10px rgba(15, 23, 42, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition: all var(--dur) var(--ease-out);
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.login-modal-close {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all var(--dur-fast) var(--ease);
}

.login-modal-close:hover {
    background: var(--err-light);
    color: var(--err);
    border-color: var(--err);
    transform: rotate(90deg);
}

.login-modal-body {
    display: flex;
    flex-direction: column;
}

.login-modal-logo {
    display: grid;
    place-items: center;
    margin-bottom: var(--sp-4);
}

.login-modal-logo-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.2));
}

.login-modal-title {
    text-align: center;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin-bottom: 2px;
}

.login-modal-subtitle {
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: var(--sp-5);
}

.login-modal-error {
    padding: 10px 14px;
    border-radius: var(--r-md);
    background: var(--err-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--err);
    font-size: var(--fs-xs);
    font-weight: var(--fw-med);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-modal-field {
    margin-bottom: var(--sp-4);
}

.login-modal-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: var(--text-soft);
    margin-bottom: 6px;
}

.login-modal-input-wrap {
    position: relative;
}

.login-modal-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: grid;
    place-items: center;
}

.login-modal-input {
    width: 100%;
    padding: 10px 40px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: var(--fs-sm);
    font-family: var(--font-sans);
    transition: all var(--dur-fast) var(--ease);
    box-sizing: border-box;
}

.login-modal-input:focus {
    outline: none;
    border-color: var(--brand-1);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--electric-glow);
}

.login-modal-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: grid;
    place-items: center;
}

.login-modal-pw-toggle:hover {
    color: var(--brand-1);
}

.login-modal-submit {
    width: 100%;
    padding: 12px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-1) 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    border: 1px solid var(--brand-1);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    margin-top: var(--sp-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--dur-fast) var(--ease);
}

.login-modal-submit:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    border-color: var(--brand-2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.login-modal-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.login-modal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    font-size: var(--fs-xs);
}

.login-modal-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: var(--fw-med);
    transition: color var(--dur-fast) var(--ease);
}

.login-modal-link:hover {
    color: var(--brand-1);
    text-decoration: underline;
}

.login-modal-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.login-modal-link-btn:hover {
    text-decoration: underline;
}

.login-modal-links-sep {
    color: var(--border-strong);
    user-select: none;
}

/* ==========================================================================
   CONTACT PAGE LAYOUT
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: var(--sp-7);
    align-items: start;
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
}

.contact-info-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin: 0 0 var(--sp-4) 0;
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--brand-light);
    color: var(--brand-1);
    flex-shrink: 0;
}

[data-theme="dark"] .contact-info-icon {
    background: rgba(37, 99, 235, 0.15);
}

.contact-info-label {
    font-size: 10px;
    font-weight: var(--fw-semi);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-value {
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: var(--fw-med);
    text-decoration: none;
    word-break: break-word;
}

a.contact-info-value:hover {
    color: var(--brand-1);
}

.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-7);
    box-shadow: var(--shadow-sm);
}

.contact-form-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0 0 4px 0;
}

.contact-form-sub {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0 0 var(--sp-5) 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: var(--text-soft);
}

.contact-form-label .req {
    color: var(--err);
}

.contact-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-family: var(--font-sans);
    background: var(--surface);
    color: var(--text);
    transition: all var(--dur-fast) var(--ease);
    box-sizing: border-box;
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px var(--electric-glow);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 12px 28px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-1) 0%, #3b82f6 100%);
    color: #ffffff;
    border: 1px solid var(--brand-1);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    cursor: pointer;
    align-self: flex-start;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all var(--dur-fast) var(--ease);
}

.contact-form-submit:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    border-color: var(--brand-2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

/* ==========================================================================
   CLIENT LOGO WALL (brand strip)
   ========================================================================== */
.client-wall-section {
    padding-block: var(--sp-8) var(--sp-4);
}

.client-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.client-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-md);
    transition: all var(--dur-fast) var(--ease);
    opacity: 0.65;
    filter: grayscale(0.4);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    background: var(--brand-light);
    transform: translateY(-2px);
}

.client-logo-icon {
    color: var(--brand-1);
    display: inline-flex;
    align-items: center;
}

.client-logo-name {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--text-soft);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .client-wall {
        gap: var(--sp-3);
        padding: var(--sp-4) var(--sp-3);
    }

    .client-logo {
        padding: var(--sp-2) var(--sp-3);
    }

    .client-logo-name {
        font-size: var(--fs-xs);
    }
}

/* ==========================================================================
   UTILITY CLASSES (replacing common inline styles)
   ========================================================================== */
.text-center { text-align: center; }
.justify-center { justify-content: center; }

.empty-state-box {
    padding: var(--sp-6);
    text-align: center;
}

.empty-state-box .empty-icon {
    margin-bottom: var(--sp-2);
}

.empty-state-box p {
    margin-top: var(--sp-2);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.section-head-center {
    text-align: center;
}

.section-head-center .services-eyebrow {
    justify-content: center;
}

/* ==========================================================================
   calakan.work Enterprise Portal - Components
   Modern, Rich, Dimensional Enterprise UI Components
   ========================================================================== */

/* ==========================================================================
   APPLICATION CARD
   ========================================================================== */
.app-card {
    position: relative;
    padding: var(--sp-5);
    background: linear-gradient(160deg, #ffffff 0%, #f8faff 60%, #f0f4ff 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--r-xl);
    box-shadow: 
        0 2px 8px -1px rgba(15, 23, 42, 0.04),
        0 1px 3px 0 rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
    overflow: hidden;
}

[data-theme="dark"] .app-card {
    background: linear-gradient(160deg, #1a1f2e 0%, #161b29 60%, #121622 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 
        0 4px 16px -2px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-card:hover,
.app-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent, var(--brand-1)) 40%, var(--border));
    box-shadow: 
        0 10px 24px -6px color-mix(in srgb, var(--accent, var(--brand-1)) 16%, rgba(15, 23, 42, 0.08)),
        0 3px 8px -2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    outline: none;
}

[data-theme="dark"] .app-card:hover,
[data-theme="dark"] .app-card:focus-visible {
    box-shadow: 
        0 10px 28px -6px color-mix(in srgb, var(--accent, var(--brand-1)) 28%, rgba(0, 0, 0, 0.8)),
        0 3px 10px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Refined Top Accent Bar */
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent, var(--brand-1)), color-mix(in srgb, var(--accent, var(--brand-1)) 40%, var(--brand-4)));
    opacity: 0.6;
    transition: opacity var(--dur) var(--ease);
}

.app-card:hover::before {
    opacity: 1;
}

/* Pin / Favorite Button */
.pin-btn {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease);
    z-index: 5;
}

.pin-btn:hover {
    color: var(--warn);
    background: var(--surface);
    border-color: var(--warn);
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.2);
    transform: scale(1.08);
}

.pin-btn.is-pinned {
    color: var(--warn);
    background: var(--warn-light);
    border-color: var(--warn);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    opacity: 1;
}

.pin-btn.is-pinned .pin-star {
    fill: var(--warn);
    stroke: var(--warn);
}

/* App Card Refined Icon Container */
.app-card-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--brand-1)) 14%, transparent), color-mix(in srgb, var(--accent, var(--brand-1)) 5%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent, var(--brand-1)) 22%, transparent);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 2px 8px color-mix(in srgb, var(--accent, var(--brand-1)) 12%, transparent);
    color: var(--accent, var(--brand-1));
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.app-card:hover .app-card-icon {
    transform: scale(1.06);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 6px 16px color-mix(in srgb, var(--accent, var(--brand-1)) 22%, transparent);
}

/* App Card Body */
.app-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.app-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    padding-right: var(--sp-5);
}

.app-card-name {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    letter-spacing: -0.015em;
}

.app-card-badge {
    font-size: 10px;
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
    flex-shrink: 0;
}

.app-card-desc {
    font-size: var(--fs-xs);
    color: var(--text-soft);
    line-height: var(--lh-norm);
    margin: 0;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-top: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
    font-size: 11px;
}

.app-version {
    color: var(--text-muted);
    font-weight: var(--fw-med);
}

.app-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--fw-med);
    font-size: 11px;
}

.app-status.is-online      { color: var(--ok); }
.app-status.is-maintenance { color: var(--warn); }
.app-status.is-development { color: var(--brand-1); }
.app-status.is-offline     { color: var(--err); }

.app-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.app-status.is-online .status-dot {
    box-shadow: 0 0 8px var(--ok);
    animation: pulseDot 2s var(--ease) infinite;
}

/* App Card Features Action */
.app-card-features {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--brand-1) 8%, transparent);
    color: var(--brand-1);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--brand-1) 20%, transparent);
    transition: all var(--dur-fast) var(--ease);
    margin-top: auto;
    margin-bottom: 4px;
}
.app-card-features:hover {
    background: color-mix(in srgb, var(--brand-1) 15%, transparent);
    border-color: var(--brand-1);
    text-decoration: none;
}

/* App Card Launch Action */
.app-card-launch {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--brand-1);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    text-decoration: none;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: all var(--dur-fast) var(--ease);
    margin-top: auto;
}

.app-card-launch:hover {
    background: var(--brand-1);
    color: #ffffff;
    border-color: var(--brand-1);
    box-shadow: 0 3px 10px -2px rgba(37, 99, 235, 0.25);
    text-decoration: none;
}

.app-card-launch .launch-arrow {
    transition: transform var(--dur-fast) var(--ease);
}

.app-card-launch:hover .launch-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   SYSTEM STATUS WIDGET
   ========================================================================== */
.status-widget {
    padding: var(--sp-4) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 
        0 2px 6px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .status-widget {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.status-widget:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--icon-color, var(--brand-1)) 40%, var(--border));
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.07);
}

.status-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--icon-color, var(--brand-1)), transparent);
}

.status-widget-head {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.status-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--icon-color, var(--brand-1)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-color, var(--brand-1)) 22%, transparent);
    color: var(--icon-color, var(--brand-1));
    flex-shrink: 0;
}

.status-label {
    flex: 1;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: var(--text-soft);
}

.status-pill {
    display: inline-flex;
    align-items: center;
}

.status-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--icon-color, var(--brand-1));
    box-shadow: 0 0 6px var(--icon-color, var(--brand-1));
}

.status-pill.is-ok .status-pill-dot   { background: var(--ok); animation: pulseDot 2s var(--ease) infinite; }
.status-pill.is-warn .status-pill-dot { background: var(--warn); }
.status-pill.is-err .status-pill-dot  { background: var(--err); }

.status-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.status-unit {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: var(--fw-reg);
}

.status-bar {
    height: 6px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    overflow: hidden;
    position: relative;
    margin-top: 4px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.status-bar-fill {
    display: block;
    height: 100%;
    border-radius: var(--r-pill);
    background: var(--icon-color, var(--brand-1));
    transition: width 1.2s var(--ease-out);
}

/* ==========================================================================
   ANNOUNCEMENT CARD
   ========================================================================== */
.announcement {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    padding: var(--sp-4) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 
        0 2px 6px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all var(--dur-fast) var(--ease);
}

[data-theme="dark"] .announcement {
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.announcement:hover {
    border-color: color-mix(in srgb, var(--type-color, var(--brand-1)) 40%, var(--border));
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

.announcement-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--type-color, var(--brand-1)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--type-color, var(--brand-1)) 22%, transparent);
    color: var(--type-color, var(--brand-1));
    box-shadow: 0 2px 6px color-mix(in srgb, var(--type-color, var(--brand-1)) 15%, transparent);
    flex-shrink: 0;
}

.announcement-body {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: var(--lh-snug);
}

.announcement-text {
    font-size: var(--fs-xs);
    color: var(--text-soft);
    line-height: var(--lh-norm);
    margin: 0 0 var(--sp-2) 0;
}

.announcement-meta {
    display: flex;
    gap: var(--sp-4);
    font-size: 11px;
    color: var(--text-muted);
}

.announcement-author,
.announcement-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   QUICK ACTION TILE
   ========================================================================== */
.quick-action {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 
        0 2px 6px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: var(--text);
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease);
    position: relative;
}

[data-theme="dark"] .quick-action {
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.quick-action:hover {
    border-color: var(--brand-1);
    box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.14);
    transform: translateY(-2px);
    color: var(--brand-1);
    text-decoration: none;
}

.quick-action-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--accent, var(--brand-1)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, var(--brand-1)) 22%, transparent);
    color: var(--accent, var(--brand-1));
    box-shadow: 0 2px 6px color-mix(in srgb, var(--accent, var(--brand-1)) 15%, transparent);
    flex-shrink: 0;
    transition: transform var(--dur-fast) var(--ease);
}

.quick-action:hover .quick-action-icon {
    transform: scale(1.05);
}

.quick-action-label {
    flex: 1;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: var(--text);
    line-height: var(--lh-snug);
}

.quick-action:hover .quick-action-label {
    color: var(--brand-1);
}

.quick-action-arrow {
    color: var(--text-muted);
    transition: transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.quick-action:hover .quick-action-arrow {
    transform: translateX(4px);
    color: var(--brand-1);
}

/* ==========================================================================
   IT SERVICE CARD
   ========================================================================== */
.service-card {
    padding: var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: 
        0 2px 8px -1px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    transition: all var(--dur) var(--ease);
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent, var(--brand-1)) 40%, var(--border));
    box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.09);
}

.service-card-head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.service-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--r-lg);
    background: color-mix(in srgb, var(--accent, var(--brand-1)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, var(--brand-1)) 22%, transparent);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent, var(--brand-1)) 15%, transparent);
    color: var(--accent, var(--brand-1));
    flex-shrink: 0;
    transition: transform var(--dur-fast) var(--ease);
}

.service-card:hover .service-card-icon {
    transform: scale(1.05);
}

.service-card-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    letter-spacing: -0.015em;
}

.service-card-desc {
    font-size: var(--fs-xs);
    color: var(--text-soft);
    line-height: var(--lh-relax);
    margin: 0;
}

.service-card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--sp-3) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-feature {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--text-soft);
}

.service-check {
    color: var(--ok);
    display: flex;
    align-items: center;
    filter: drop-shadow(0 1px 2px var(--ok-glow));
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: var(--brand-1);
    text-decoration: none;
    margin-top: auto;
    transition: gap var(--dur-fast) var(--ease);
}

.service-card-cta:hover {
    gap: 10px;
    color: var(--brand-2);
}

/* ==========================================================================
   SERVICE CARD MEDIA (Thumbnail Image)
   ========================================================================== */
.service-card-media {
    position: relative;
    margin: calc(var(--sp-6) * -1) calc(var(--sp-6) * -1) 0;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
    filter: saturate(0.9);
}

.service-card:hover .service-card-img {
    transform: scale(1.06);
    filter: saturate(1);
}

.service-card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
}

[data-theme="dark"] .service-card-media-overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(11, 15, 25, 0.5) 100%);
}

.service-card-icon-float {
    position: absolute;
    bottom: -16px;
    left: var(--sp-5);
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 2px solid var(--surface);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

[data-theme="dark"] .service-card-icon-float {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* When media exists, adjust head spacing */
.service-card:has(.service-card-media) .service-card-head {
    padding-top: var(--sp-4);
}

/* ==========================================================================
   ABOUT PAGE HERO BANNER
   ========================================================================== */
.about-hero-banner {
    position: relative;
    height: 320px;
    border-radius: var(--r-2xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.9);
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.75) 0%, rgba(37, 99, 235, 0.5) 50%, rgba(15, 23, 42, 0.4) 100%);
}

[data-theme="dark"] .about-hero-overlay {
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.8) 0%, rgba(30, 58, 138, 0.5) 50%, rgba(11, 15, 25, 0.6) 100%);
}

.about-hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-7);
    color: #ffffff;
}

.about-hero-title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.about-hero-tagline {
    font-size: var(--fs-md);
    margin: 0;
    opacity: 0.9;
    font-weight: var(--fw-med);
}

/* ==========================================================================
   RECENTLY ACCESSED CHIPS
   ========================================================================== */
.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.recent-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    color: var(--text-soft);
    font-size: var(--fs-xs);
    font-weight: var(--fw-med);
    text-decoration: none;
    transition: all var(--dur-fast) var(--ease);
}

.recent-chip:hover {
    transform: translateY(-2px);
    border-color: var(--brand-1);
    color: var(--brand-1);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
    text-decoration: none;
}

.recent-chip .recent-remove {
    margin-left: 4px;
    color: var(--text-muted);
    cursor: pointer;
}

.recent-chip .recent-remove:hover {
    color: var(--err);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: var(--sp-9) var(--sp-4);
    color: var(--text-muted);
    font-size: var(--fs-md);
}

.empty-icon {
    display: block;
    margin: 0 auto var(--sp-3);
    color: var(--brand-1);
    opacity: 0.6;
}

/* ==========================================================================
   FREE TOOLS  (reuses .app-card styles — only the grid is unique)
   ========================================================================== */
.free-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-5);
}

/* ==========================================================================
   TRIAL REGISTRATION
   ========================================================================== */
.trial-section-title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0 0 var(--sp-2) 0;
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--border);
}

.trial-section-title .ui-icon {
    color: var(--brand-1);
    flex-shrink: 0;
}

.contact-form-input[type="date"],
.contact-form-input select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

[data-theme="dark"] .contact-form-input select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Success Card */
.trial-success-card {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--sp-8);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

.trial-success-icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 15%, transparent), color-mix(in srgb, var(--ok) 5%, transparent));
    border: 2px solid color-mix(in srgb, var(--ok) 30%, transparent);
    color: var(--ok);
    flex-shrink: 0;
}

.trial-success-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0;
}

.trial-success-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-norm);
    margin: 0;
    max-width: 420px;
}

.trial-reg-number-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--sp-4) var(--sp-6);
    background: var(--surface-2);
    border: 1px dashed color-mix(in srgb, var(--brand-1) 40%, var(--border));
    border-radius: var(--r-lg);
    margin: var(--sp-2) 0;
}

.trial-reg-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trial-reg-value {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--brand-1);
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.5px;
}

.trial-back-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 12px 28px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-1) 0%, #3b82f6 100%);
    color: #ffffff;
    border: 1px solid var(--brand-1);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all var(--dur-fast) var(--ease);
}

.trial-back-btn:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    border-color: var(--brand-2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Trial CTA Banner on homepage */
.trial-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-5);
    padding: var(--sp-5) var(--sp-6);
    margin-top: var(--sp-5);
    border-radius: var(--r-xl);
    flex-wrap: wrap;
}

.trial-cta-text h3 {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0 0 4px 0;
}

.trial-cta-text p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0;
}

.trial-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 10px 24px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--brand-1) 0%, #3b82f6 100%);
    color: #ffffff;
    border: 1px solid var(--brand-1);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all var(--dur-fast) var(--ease);
    white-space: nowrap;
    flex-shrink: 0;
}

.trial-cta-btn:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-1) 100%);
    border-color: var(--brand-2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ==========================================================================
   TRIAL REGISTRATION MODAL
   ========================================================================== */
.trial-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    padding: var(--sp-4);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}

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

.trial-modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-2xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow:
        0 20px 60px -10px rgba(15, 23, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition: all var(--dur) var(--ease-out);
}

.trial-modal-overlay.active .trial-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

[data-theme="dark"] .trial-modal {
    box-shadow:
        0 20px 60px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Sticky header */
.trial-modal-header {
    flex-shrink: 0;
    text-align: center;
    padding: var(--sp-6) var(--sp-6) var(--sp-4);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: relative;
}

.trial-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--sp-2);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-1) 15%, transparent), color-mix(in srgb, var(--brand-1) 5%, transparent));
    border: 2px solid color-mix(in srgb, var(--brand-1) 25%, transparent);
    color: var(--brand-1);
}

.trial-modal-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin: 0 0 4px 0;
}

.trial-modal-subtitle {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: var(--lh-norm);
    margin: 0;
}

/* Scrollable form area */
.trial-modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-5) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

/* Sticky footer */
.trial-modal-footer {
    flex-shrink: 0;
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.trial-modal-footer .login-modal-submit {
    width: 100%;
    margin-top: 0;
}

.trial-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.trial-modal-field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.trial-modal-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

[data-theme="dark"] .trial-modal-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.trial-modal-textarea {
    resize: vertical;
    min-height: 60px;
    font-family: var(--font-sans);
}

.trial-modal .trial-section-title {
    font-size: var(--fs-sm);
    margin-top: var(--sp-2);
    padding-bottom: var(--sp-2);
}

.trial-modal .trial-section-title--contact {
    margin-top: var(--sp-4);
}

/* Success view inside scroll area */
.trial-modal-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
    padding: var(--sp-6) 0;
}

.trial-modal-success .trial-success-icon {
    width: 64px;
    height: 64px;
}

.trial-modal-success .trial-success-title {
    font-size: var(--fs-md);
}

.trial-modal-success .trial-success-desc {
    font-size: var(--fs-xs);
    max-width: 380px;
}

.trial-modal-success .trial-reg-number-box {
    margin: var(--sp-2) 0;
    padding: var(--sp-3) var(--sp-5);
}

.trial-modal-success .trial-reg-value {
    font-size: var(--fs-md);
}

/* Custom scrollbar for the form area */
.trial-modal-scroll::-webkit-scrollbar {
    width: 6px;
}
.trial-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.trial-modal-scroll::-webkit-scrollbar-thumb {
    background: var(--border-strong, #cbd5e1);
    border-radius: var(--r-pill);
}

/* Responsive: stack form rows on small screens */
@media (max-width: 560px) {
    .trial-modal-row {
        grid-template-columns: 1fr;
    }
    .trial-modal {
        max-height: 95vh;
    }
    .trial-modal-header {
        padding: var(--sp-5) var(--sp-5) var(--sp-3);
    }
    .trial-modal-scroll {
        padding: var(--sp-4) var(--sp-5);
    }
    .trial-modal-footer {
        padding: var(--sp-3) var(--sp-5);
    }
}

/* ==========================================================================
   calakan.work Enterprise Portal - 3D Icon System Styles
   Styles for the SVG-based 3D icon tiles and flat UI icons.
   ========================================================================== */

/* ---- 3D Icon tiles ---- */
.icon-3d {
    display: block;
    border-radius: 28%;
    flex: none;
    transition: transform var(--dur) var(--ease-spring), filter var(--dur) var(--ease);
    will-change: transform;
}
.icon-3d:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: brightness(1.08);
}

/* App card icon container — floating animation */
.app-card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--sp-4);
    animation: floatY 4s var(--ease) infinite;
}
.app-card:hover .app-icon-3d {
    transform: scale(1.12) rotate(-5deg);
    filter: brightness(1.12) drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}
.app-icon-3d { animation: floatY 4s var(--ease) infinite; }

/* Status widget 3D mini icon */
.status-icon {
    width: 32px;
    height: 32px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.status-icon-3d {
    border-radius: 30%;
}
.status-widget:hover .status-icon-3d {
    transform: scale(1.1) rotate(-4deg);
}

/* Quick action 3D mini icon */
.qa-icon-3d {
    border-radius: 30%;
    transition: transform var(--dur) var(--ease-spring);
}
.quick-action:hover .qa-icon-3d {
    transform: scale(1.1) rotate(-4deg);
    filter: brightness(1.1);
}

/* Announcement 3D mini icon */
.ann-icon-3d {
    border-radius: 30%;
    transition: transform var(--dur) var(--ease-spring);
}
.announcement:hover .ann-icon-3d {
    transform: scale(1.08) rotate(-3deg);
}

/* ---- Flat UI icons (topbar, dropdowns, meta) ---- */
.ui-icon {
    display: inline-block;
    vertical-align: middle;
    flex: none;
}
.icon-btn .ui-icon { display: block; }

/* Theme toggle icon visibility */
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark  { display: inline-block; }

/* Search icon in topbar */
.search-icon {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    flex: none;
}

/* Chevron in profile trigger */
.profile-trigger .chev {
    color: var(--text-muted);
    transition: transform var(--dur) var(--ease);
}
.profile-trigger[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

/* Dropdown item icons */
.dd-icon {
    color: var(--text-soft);
    flex: none;
}
.dropdown-item:hover .dd-icon { color: var(--brand-1); }
.dropdown-item.danger:hover .dd-icon { color: var(--err); }

/* Meta icons (announcement author/date) */
.meta-icon {
    color: var(--text-muted);
    margin-right: 4px;
    vertical-align: -2px;
}

/* Footer hexagon */
.footer-hex { color: var(--brand-1); vertical-align: -2px; margin-right: 6px; }

/* Eyebrow icon */
.eyebrow-icon { color: var(--brand-1); }

/* ---- Status dot (replaces bi-circle-fill) ---- */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.status-dot.text-ok { color: var(--ok); }

/* App card status dot */
.app-status .status-dot {
    width: 7px;
    height: 7px;
}
.app-status.is-online .status-dot      { color: var(--ok); }
.app-status.is-maintenance .status-dot { color: var(--warn); animation: pulseDot 1.6s var(--ease) infinite; }
.app-status.is-offline .status-dot     { color: var(--err); }

/* Status widget pill dot */
.status-pill {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.status-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.status-pill.is-ok   { color: var(--ok); }
.status-pill.is-warn { color: var(--warn); }
.status-pill.is-err  { color: var(--err); }
.status-pill.is-ok .status-pill-dot { animation: pulseDot 1.6s var(--ease) infinite; }

/* ---- Pin star icon ---- */
.pin-star {
    fill: none;
    stroke: currentColor;
    transition: fill var(--dur-fast) var(--ease), stroke var(--dur-fast) var(--ease);
}

/* ---- Launch arrow icon ---- */
.launch-arrow {
    transition: transform var(--dur-fast) var(--ease);
}
.app-card-launch:hover .launch-arrow { transform: translateX(3px); }

/* ---- Recent chip icon ---- */
.recent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.recent-icon .icon-3d {
    width: 24px !important;
    height: 24px !important;
    border-radius: 30%;
}
.recent-label { flex: 1; }

/* ---- Quick action external icon ---- */
.ext-icon { color: var(--text-muted); }

/* ---- Notification drawer icon ---- */
.notif-icon .icon-3d {
    width: 32px !important;
    height: 32px !important;
    border-radius: 30%;
}

/* ---- Language toggle ---- */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    height: 36px;
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
    flex: none;
    letter-spacing: 0.5px;
}
.lang-flag {
    font-size: 18px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}
.lang-code {
    font-size: var(--fs-xs);
}
.lang-toggle:hover {
    background: var(--chip-bg);
    color: var(--brand-1);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

/* ---- Section title icons ---- */
.section-icon {
    color: var(--brand-1);
    vertical-align: -3px;
    margin-right: 2px;
}

/* ---- Empty state icon ---- */
.empty-icon {
    display: block;
    margin: 0 auto var(--sp-3);
    color: var(--brand-1);
    opacity: 0.5;
}

/* ==========================================================================
   calakan.work Enterprise Portal - Animations & Micro-Interactions
   High-Performance, Smooth Transitions & Ambient Keyframes
   ========================================================================== */

/* Background gradient shift */
@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles */
@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(30px) scale(1.15); opacity: 0; }
}

/* Card entrance */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Section fade-in */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* Floating Y */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

/* Pulse dot - refined, subtle */
@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.2); opacity: 0.8; }
}

/* Radar pulse wave */
@keyframes pulseRadar {
    0%   { transform: scale(0.95); opacity: 0.8; }
    70%  { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Ambient glow pulse */
@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.75; transform: scale(1.05); }
}

/* Card shimmer sweep */
@keyframes cardShimmerSweep {
    0%   { transform: translateX(-100%) rotate(25deg); opacity: 0; }
    50%  { opacity: 0.35; }
    100% { transform: translateX(200%) rotate(25deg); opacity: 0; }
}

/* Page transition */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

body {
    animation: pageIn 0.4s var(--ease-out) both;
}

/* Stagger entrance for app cards */
.app-grid > .app-card:nth-child(1) { animation: cardIn 0.4s var(--ease-out) 0.03s both; }
.app-grid > .app-card:nth-child(2) { animation: cardIn 0.4s var(--ease-out) 0.06s both; }
.app-grid > .app-card:nth-child(3) { animation: cardIn 0.4s var(--ease-out) 0.09s both; }
.app-grid > .app-card:nth-child(4) { animation: cardIn 0.4s var(--ease-out) 0.12s both; }
.app-grid > .app-card:nth-child(5) { animation: cardIn 0.4s var(--ease-out) 0.15s both; }
.app-grid > .app-card:nth-child(6) { animation: cardIn 0.4s var(--ease-out) 0.18s both; }
.app-grid > .app-card:nth-child(7) { animation: cardIn 0.4s var(--ease-out) 0.21s both; }
.app-grid > .app-card:nth-child(8) { animation: cardIn 0.4s var(--ease-out) 0.24s both; }
.app-grid > .app-card:nth-child(9) { animation: cardIn 0.4s var(--ease-out) 0.27s both; }

.free-tools-grid > .app-card:nth-child(1) { animation: cardIn 0.4s var(--ease-out) 0.03s both; }
.free-tools-grid > .app-card:nth-child(2) { animation: cardIn 0.4s var(--ease-out) 0.06s both; }
.free-tools-grid > .app-card:nth-child(3) { animation: cardIn 0.4s var(--ease-out) 0.09s both; }
.free-tools-grid > .app-card:nth-child(4) { animation: cardIn 0.4s var(--ease-out) 0.12s both; }
.free-tools-grid > .app-card:nth-child(5) { animation: cardIn 0.4s var(--ease-out) 0.15s both; }
.free-tools-grid > .app-card:nth-child(6) { animation: cardIn 0.4s var(--ease-out) 0.18s both; }

/* ==========================================================================
   Scroll Reveal Animations (IntersectionObserver-driven)
   Elements with [data-reveal] start hidden and animate in when visible
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s var(--ease-out),
        transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="scale"] {
    transform: scale(0.94);
}

[data-reveal="scale"].is-revealed {
    transform: scale(1);
}

[data-reveal="left"] {
    transform: translateX(-30px);
}

[data-reveal="left"].is-revealed {
    transform: translateX(0);
}

[data-reveal="right"] {
    transform: translateX(30px);
}

[data-reveal="right"].is-revealed {
    transform: translateX(0);
}

/* Stagger delays for children inside a [data-reveal-stagger] container */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s var(--ease-out),
        transform 0.5s var(--ease-out);
    will-change: opacity, transform;
}

[data-reveal-stagger].is-revealed > * {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-stagger].is-revealed > *:nth-child(1)  { transition-delay: 0.05s; }
[data-reveal-stagger].is-revealed > *:nth-child(2)  { transition-delay: 0.10s; }
[data-reveal-stagger].is-revealed > *:nth-child(3)  { transition-delay: 0.15s; }
[data-reveal-stagger].is-revealed > *:nth-child(4)  { transition-delay: 0.20s; }
[data-reveal-stagger].is-revealed > *:nth-child(5)  { transition-delay: 0.25s; }
[data-reveal-stagger].is-revealed > *:nth-child(6)  { transition-delay: 0.30s; }
[data-reveal-stagger].is-revealed > *:nth-child(7)  { transition-delay: 0.35s; }
[data-reveal-stagger].is-revealed > *:nth-child(8)  { transition-delay: 0.40s; }
[data-reveal-stagger].is-revealed > *:nth-child(9)  { transition-delay: 0.45s; }
[data-reveal-stagger].is-revealed > *:nth-child(10) { transition-delay: 0.50s; }
[data-reveal-stagger].is-revealed > *:nth-child(11) { transition-delay: 0.55s; }
[data-reveal-stagger].is-revealed > *:nth-child(12) { transition-delay: 0.60s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   calakan.work Enterprise Portal - Responsive Styles
   Mobile-First & Fluid Breakpoints
   ========================================================================== */

/* ---- Large Desktop (<= 1400px) ---- */
@media (max-width: 1400px) {
    :root {
        --shell-max: 1480px;
    }
}

/* ---- Laptop / Small Desktop (<= 1200px) ---- */
@media (max-width: 1200px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .free-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .status-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---- Tablet Landscape (<= 992px) ---- */
@media (max-width: 992px) {
    .hero-card-pro {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
        padding: var(--sp-6);
    }

    .hero-card-pro-media {
        position: relative;
        width: 100%;
        height: 200px;
        margin-bottom: var(--sp-4);
        border-radius: var(--r-lg);
    }

    .hero-card-pro-media-overlay {
        background: linear-gradient(180deg, transparent 40%, var(--surface) 100%);
    }

    [data-theme="dark"] .hero-card-pro-media-overlay {
        background: linear-gradient(180deg, transparent 40%, var(--surface) 100%);
    }

    .hero-card-pro-stats {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: var(--sp-5);
        grid-template-columns: repeat(4, 1fr);
    }

    .login-split {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .login-aside {
        display: none;
    }

    .split {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .topbar-search {
        max-width: 320px;
    }
}

/* ---- Tablet Portrait (<= 768px) ---- */
@media (max-width: 768px) {
    :root {
        --topbar-h: auto;
    }

    .shell {
        padding: 0 var(--sp-4);
    }

    .about-hero-banner {
        height: 220px;
    }

    .about-hero-title {
        font-size: var(--fs-2xl);
    }

    .about-hero-caption {
        padding: var(--sp-5);
    }

    .hero-shell {
        padding: 0 var(--sp-4);
    }

    .topbar {
        padding: var(--sp-3) 0;
    }

    .topbar-inner {
        flex-wrap: wrap;
        gap: var(--sp-3);
        padding: 0 var(--sp-4);
    }

    .topbar-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .clock-date {
        display: none;
    }

    .brand-sub {
        display: none;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-4);
    }

    .free-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-4);
    }

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-3);
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-3);
    }

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

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

    .hero-card-pro-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }

    .section-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-4);
        padding: 0 var(--sp-4);
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-5);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-2);
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--sp-3);
    }
}

/* ---- Mobile (<= 560px) ---- */
@media (max-width: 560px) {
    .app-grid {
        grid-template-columns: 1fr;
    }

    .free-tools-grid {
        grid-template-columns: 1fr;
    }

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

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

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

    /* WhatsApp floating button - smaller on mobile, hide tooltip */
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 18px;
        right: 18px;
    }

    .wa-float-icon {
        width: 28px;
        height: 28px;
    }

    .wa-float-tooltip {
        display: none;
    }

    .services-banner {
        padding: var(--sp-5);
    }

    .services-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .services-banner-actions .btn-primary,
    .services-banner-actions .btn-ghost {
        width: 100%;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .hero-card-pro {
        padding: var(--sp-5);
    }

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

/* ---- Print Styles ---- */
@media print {
    .topbar, .footer, .skip-link, .pin-btn, .theme-toggle, .lang-toggle, .clock-btn {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .app-card, .status-widget, .service-card, .announcement, .hero-card-pro {
        box-shadow: none !important;
        border: 1px solid #cccccc !important;
        break-inside: avoid;
    }
}

