@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/**
 * ====================================================================
 * Modern Minimalist Light SaaS Design System (White Background & Black Font)
 * Powered by Tailwind CSS, CSS Custom Tokens & Ultra-Mobile Optimization
 * ====================================================================
 */

:root {
    /* Color Tokens - Modern Light Monochrome (White Background, Black Font) */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-input: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.92);

    --primary: #09090b;
    --primary-foreground: #ffffff;
    --primary-hover: #1e293b;
    --primary-light: rgba(9, 9, 11, 0.06);

    --accent: #0f172a;
    --accent-hover: #1e293b;

    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;

    --text-heading: #09090b;
    --text-main: #18181b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: #09090b;

    --font-main: 'Prompt', 'Inter', system-ui, -apple-system, sans-serif;
    --glass-blur: blur(16px);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

/* Base Styles with High-Fidelity Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

input, button, select, textarea, optgroup {
    font-family: inherit;
}

/* Explicit FontAwesome Protection */
.fa, .fas, .fa-solid, .fab, .fa-brands, .far, .fa-regular {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
.fab, .fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
}
.fa-solid, .fas {
    font-weight: 900 !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Diffused Ambient Glow Orbs (Subtle Cool Grey / Slate in Light Mode) */
.bg-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e2e8f0 0%, rgba(241,245,249,0) 70%);
    top: -150px;
    right: -100px;
}

.bg-glow-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #cbd5e1 0%, rgba(241,245,249,0) 70%);
    bottom: -100px;
    left: -100px;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 1;
}

/* Modern Clean White Cards */
.card {
    background: var(--bg-card);
    border: none !important;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border: none !important;
    box-shadow: var(--shadow-glow);
}

/**
 * ====================================================================
 * CHECKLIST.DESIGN: UNIVERSAL BUTTON DESIGN SYSTEM (5 CRITERIA)
 * 1. Base Styles (Filled, Outlined, Ghost, Link)
 * 2. Geometry & Shapes (Padding, Border Radius, Touch Target >= 44px)
 * 3. Variants (Primary, Secondary, Success, Warning, Danger, Ghost)
 * 4. Microcopy (Action Verbs with Icon Alignment)
 * 5. Interactive 5-States (Default, Hover, Focus-Visible, Active, Disabled)
 * ====================================================================
 */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-main);
    line-height: 1.25;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    min-height: 44px; /* Touch target criteria */
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* 1. Primary Variant (High-Contrast Solid Black) */
.btn-primary {
    background-color: #09090b !important;
    color: #ffffff !important;
    border-color: #09090b !important;
    box-shadow: 0 2px 6px rgba(9, 9, 11, 0.12), 0 1px 2px rgba(9, 9, 11, 0.08);
}
.btn-primary:hover:not(:disabled) {
    background-color: #27272a !important;
    border-color: #27272a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 9, 11, 0.2);
}
.btn-primary:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 1px 3px rgba(9, 9, 11, 0.15);
}

/* 2. Secondary Variant (Clean Neutral Outlined) */
.btn-secondary {
    background-color: #ffffff !important;
    color: #09090b !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover:not(:disabled) {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #09090b !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}
.btn-secondary:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
    background-color: #f1f5f9 !important;
}

/* 3. Success Variant (Emerald Green) */
.btn-success {
    background-color: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
}
.btn-success:hover:not(:disabled) {
    background-color: #047857 !important;
    border-color: #047857 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}
.btn-success:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
}

/* 4. Danger / Destructive Variant (Crimson Red) */
.btn-danger {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}
.btn-danger:hover:not(:disabled) {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.btn-danger:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
}

/* 5. Ghost & Outline Variants */
.btn-ghost {
    background-color: transparent !important;
    color: #09090b !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.btn-ghost:hover:not(:disabled) {
    background-color: #f1f5f9 !important;
    color: #09090b !important;
}

.btn-outline {
    background-color: transparent !important;
    color: #09090b !important;
    border-color: #e2e8f0 !important;
}
.btn-outline:hover:not(:disabled) {
    border-color: #09090b !important;
    background-color: #09090b !important;
    color: #ffffff !important;
}

/* 5. Focus-Visible State (Accessibility Standard) */
.btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.18) !important;
}
.btn-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
}
.btn-success:focus-visible {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25) !important;
}

/* 5. Disabled State */
.btn:disabled,
.btn[disabled],
.btn.disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Button Sizing Variants */
.btn-sm {
    min-height: 34px !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    gap: 0.35rem !important;
}

.btn-md {
    min-height: 44px !important;
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
}

.btn-lg {
    min-height: 52px !important;
    padding: 0.85rem 1.85rem !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    gap: 0.6rem !important;
}

.btn-pill {
    border-radius: 9999px !important;
}

.btn-icon {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
}
.btn-icon.btn-sm {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
}
.btn-icon.btn-pill {
    border-radius: 50% !important;
}

/* 5-State Form Controls */
.form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

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

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    font-family: var(--font-main);
    color: #0f172a;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control:hover {
    border-color: #94a3b8;
}

.form-control:focus {
    border-color: #09090b;
    box-shadow: 0 0 0 2px rgba(9, 9, 11, 0.12);
}

.form-control:disabled {
    background-color: #f1f5f9;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Clean Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.badge-primary {
    background: #09090b;
    color: #ffffff;
    border: 1px solid #09090b;
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.badge-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Modern Top Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: #09090b;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand i {
    color: #09090b;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: #09090b;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-balance-badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #09090b;
    border: 1px solid #e2e8f0;
    font-weight: 700;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #09090b;
    width: 38px;
    height: 38px;
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.25rem;
    width: 100%;
}
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-cols-4, .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .grid-cols-4, 
    .grid-cols-3, 
    .grid-cols-2, 
    .grid-cols-1,
    [class*="grid-cols-"] {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

/* Hero Section */
.hero-section {
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(1.85rem, 5vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #09090b;
}

.gradient-text {
    background: linear-gradient(180deg, #09090b 30%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

/* ========================================================= */
/* 📱 MOBILE RESPONSIVE & BOTTOM DOCK BAR (CHECKLIST.DESIGN)  */
/* 7 Criteria: Tab Count, Icon+Label, Active/Default, Badges, */
/* Persistent Fixed, Touch Target >=44px, Haptic/Spring      */
/* ========================================================= */
.mobile-nav-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.07);
    user-select: none;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.2rem;
    flex: 1;
    min-width: 44px;
    min-height: 44px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease, transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    position: relative;
}

/* Active State Top Indicator Pill & Typography */
.mobile-nav-item.active {
    color: #09090b;
    font-weight: 700;
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: #09090b;
    border-radius: 0 0 4px 4px;
    animation: activePillDrop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes activePillDrop {
    from { width: 0; opacity: 0; }
    to { width: 32px; opacity: 1; }
}

.mobile-nav-item.active i {
    transform: translateY(-2px) scale(1.1);
    color: #09090b;
}

/* Badge Indicator on Mobile Nav */
.mobile-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 9999px;
    border: 1.5px solid #ffffff;
}

.mobile-nav-badge.count {
    min-width: 16px;
    height: 16px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #ffffff;
    background: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    top: -6px;
    right: -10px;
}

/* Mobile Slide-out Drawer Menu */
/* ========================================================= */
/* 🗄️ UNIVERSAL DRAWER / SLIDE-OVER DESIGN SYSTEM            */
/* 7 Criteria: Placement (L/R), Dimensions, Frosted Overlay,  */
/* Header, Scrollable Content, Trigger/Dismiss, Sticky Footer*/
/* ========================================================= */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.active,
.drawer-overlay.is-open {
    display: block;
    opacity: 1;
}

.universal-drawer, .mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(88vw, 420px);
    background: #ffffff;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Placement Left vs Right */
.drawer-right, .mobile-drawer {
    right: 0;
    border-left: 1px solid #e2e8f0;
    transform: translateX(100%);
}

.drawer-left {
    left: 0;
    border-right: 1px solid #e2e8f0;
    transform: translateX(-100%);
}

.universal-drawer.active, .universal-drawer.is-open,
.mobile-drawer.active, .mobile-drawer.is-open {
    transform: translateX(0);
}

/* Reset Sidebar Card when inside Universal / Mobile Drawer */
.universal-drawer .admin-sidebar-card,
.mobile-drawer .admin-sidebar-card {
    position: static !important;
    max-height: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.universal-drawer .admin-brand-header,
.mobile-drawer .admin-brand-header {
    display: none !important;
}

.universal-drawer .admin-nav-list,
.mobile-drawer .admin-nav-list {
    overflow-y: visible !important;
    max-height: none !important;
    padding-right: 0 !important;
}

/* 4. Drawer Header */
.drawer-header, .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
}

.drawer-title-wrap strong {
    font-size: 1.12rem;
    font-weight: 800;
    color: #09090b;
    display: block;
}

.drawer-title-wrap span {
    font-size: 0.8rem;
    color: #64748b;
}

.drawer-close-btn, .mobile-drawer-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.drawer-close-btn:hover, .mobile-drawer-close:hover {
    background: #09090b;
    color: #ffffff;
    border-color: #09090b;
}

/* 5. Scrollable Content Area */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

/* 7. Sticky Footer for Actions */
.drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
}

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: 0.35rem;
    transition: all 0.15s ease;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
    background: #f1f5f9;
    color: #09090b;
    font-weight: 600;
}

.mobile-drawer-divider {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem 0.35rem 1rem;
}

/* Media Queries for Mobile & Tablet */
@media (max-width: 991px) {
    body {
        padding-bottom: 80px;
    }
    .nav-links, .desktop-actions {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: inline-flex;
    }
    .mobile-nav-bottom {
        display: flex;
    }
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Modern iOS-Style Switch Toggle */
.form-switch-modern {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}
.form-switch-modern input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.form-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
}
.form-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.form-switch-modern input:checked + .form-switch-slider {
    background-color: #09090b;
}
.form-switch-modern input:checked + .form-switch-slider:before {
    transform: translateX(22px);
}

/* Site Detail Tabs */
.site-tabs-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0.5rem;
    gap: 0.25rem;
}
.site-tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}
.site-tab-btn.active {
    color: #09090b !important;
    border-bottom-color: #09090b !important;
}

/* ========================================================= */
/* 🌟 ULTRA-MODERN LUXURY SAAS WEBSITE DASHBOARD (V2)        */
/* ========================================================= */

.site-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.back-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.site-status-pill-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.status-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.status-indicator-pill.online {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.status-indicator-pill.expired {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}
.plan-tag-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #09090b;
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Hero Card */
.modern-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.hero-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.hero-info-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 260px;
    flex: 1;
}
.domain-avatar-box {
    width: 52px;
    height: 52px;
    border-radius: 0.85rem;
    background: #09090b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.domain-heading {
    font-size: clamp(1.25rem, 3.5vw, 1.65rem);
    font-weight: 800;
    color: #09090b;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    word-break: break-all;
}
.domain-meta-sub {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.dot-sep {
    color: #cbd5e1;
}
.hero-actions-grid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-act-btn {
    font-size: 0.82rem;
    padding: 0.5rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* KPI Strip */
.kpi-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.kpi-stat-item {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid #e2e8f0;
    text-align: left;
}
.kpi-stat-item:last-child {
    border-right: none;
}
.kpi-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.kpi-value {
    font-size: clamp(1.4rem, 3.5vw, 1.85rem);
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    color: #09090b;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}
.kpi-sub {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Split Dashboard Layout */
.dashboard-split-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}
.dash-column-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.dash-column-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

/* Side Control Cards */
.side-control-card, .contract-info-card {
    padding: 1.25rem;
}
.control-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.control-card-header h3, .contract-info-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #09090b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.quota-block {
    margin-bottom: 1.15rem;
}
.quota-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}
.quota-name {
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.quota-count {
    font-size: 0.78rem;
    color: #64748b;
}
.quota-progress-track {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}
.quota-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}
.quota-progress-fill.bg-dark { background-color: #09090b; }
.quota-progress-fill.bg-emerald { background-color: #059669; }
.quota-progress-fill.bg-danger { background-color: #dc2626; }
.quota-daily-info {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.3rem;
    display: flex;
    justify-content: space-between;
}

.toggle-control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid #f1f5f9;
}
.toggle-text-block strong {
    display: block;
    font-size: 0.82rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}
.toggle-text-block p {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0;
    line-height: 1.25;
}

.info-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f8fafc;
}
.info-kv-row:last-child {
    border-bottom: none;
}
.info-kv-row span {
    color: #64748b;
}
.info-kv-row strong {
    color: #09090b;
}

/* Tab Feed Card */
.tab-feed-card {
    padding: 0;
    overflow: hidden;
}
.segmented-tabs-bar {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.5rem 0 0.5rem;
    gap: 0.25rem;
}
.seg-tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    color: #64748b;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-main);
}
.seg-tab-btn.active {
    color: #09090b;
    border-bottom-color: #09090b;
}
.tab-pane-content {
    padding: 1.25rem;
}

/* Modern Data Table */
.modern-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 480px;
}
.modern-data-table thead tr {
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    text-align: left;
}
.modern-data-table th {
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.modern-data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.modern-data-table tbody tr:hover {
    background-color: #f8fafc;
}
.table-empty-row {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #94a3b8;
}
.table-empty-row i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.5;
}
.table-empty-row p {
    font-size: 0.82rem;
    margin: 0;
}

/* Responsive Rules for Mobile */
@media (max-width: 1023px) {
    .dashboard-split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .kpi-metrics-row {
        grid-template-columns: 1fr;
    }
    .kpi-stat-item {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem 1.25rem;
    }
    .kpi-stat-item:last-child {
        border-bottom: none;
    }
    .hero-actions-grid {
        width: 100%;
    }
    .hero-act-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

@media (max-width: 1023px) {
    .lg\:col-span-2 {
        grid-column: span 1 / span 1 !important;
    }
    .grid.grid-cols-1.lg\:grid-cols-3,
    .grid.grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .grid-cols-4, .grid-cols-3, .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .hero-section {
        padding: 2.5rem 0 1.5rem 0;
    }
    .card {
        padding: 1.25rem 1rem;
        border-radius: 0.85rem;
    }
}

/* Core Flex Utilities */
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.w-100 { width: 100% !important; }
.flex-1 { flex: 1 1 0% !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }

.site-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.page-title-main {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle-main {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0 0;
}

/* ========================================================= */
/* 🚀 PREMIUM CLOUD HOSTING CENTER DASHBOARD STYLES          */
/* ========================================================= */

.hosting-center-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}
.hosting-center-title {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    color: #09090b;
    margin: 0;
    line-height: 1.2;
}
.hosting-center-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0.35rem 0 0 0;
}
.back-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Service Card */
.hosting-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.hosting-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.card-domain-ext-link {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.card-domain-ext-link:hover {
    color: #09090b;
}
.card-service-domain {
    font-size: 1.3rem;
    font-weight: 800;
    color: #09090b;
    margin: 0 0 1rem 0;
    word-break: break-all;
}

/* Specs Matrix */
.hosting-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
}
.spec-grid-item {
    display: flex;
    flex-direction: column;
}
.spec-grid-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}
.spec-grid-val {
    font-size: 0.82rem;
    color: #0f172a;
}

/* Expire Track */
.hosting-expire-track-box {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
}
.progress-track-sleek {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill-sleek {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}
.progress-fill-sleek.bg-dark { background-color: #09090b; }
.progress-fill-sleek.bg-danger { background-color: #dc2626; }
.progress-fill-sleek.bg-warning { background-color: #d97706; }

/* Detail ID View Elements */
.premium-hero-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}
.hero-server-icon {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: #09090b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.hero-domain-title {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    color: #09090b;
    margin: 0;
    line-height: 1.2;
}
.hero-ext-link {
    color: #94a3b8;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.hero-ext-link:hover { color: #09090b; }
.hero-domain-subtext {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.sep-dot { color: #cbd5e1; }

.kpi-card-box {
    padding: 1.35rem 1.5rem;
    border-radius: 1rem;
}
.kpi-box-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.kpi-box-number {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 800;
    font-family: var(--font-mono, monospace);
    color: #09090b;
    line-height: 1.1;
}
.kpi-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}
.kpi-box-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.side-card-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #09090b;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}
.spec-table-list {
    display: flex;
    flex-direction: column;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #f8fafc;
}
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: #64748b; }
.spec-row strong { color: #09090b; }

.hosting-tool-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.hosting-tool-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}
.tool-icon-circle {
    font-size: 1.5rem;
    color: #09090b;
    margin-bottom: 0.5rem;
}
.tool-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #09090b;
    margin-bottom: 0.25rem;
}
.tool-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 640px) {
    .hosting-center-hero {
        padding: 1.25rem;
    }
    .hosting-specs-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 0.85rem;
    }
    .btn-block, form .btn[type="submit"] {
        width: 100%;
    }
    .shop-card-actions {
        width: 100% !important;
    }
    .shop-card-actions .btn {
        flex: 1;
    }
    .brand {
        font-size: 1.15rem;
    }
    .user-balance-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-desc {
        font-size: 0.9rem;
    }
    .form-control, input, select, textarea {
        font-size: 16px !important; /* Prevents iOS auto-zoom */
    }
}

/**
 * ====================================================================
 * CHECKLIST.DESIGN: UNIVERSAL INPUT FIELD DESIGN SYSTEM (6 CRITERIA)
 * 1. Input Fields (Touch Target >= 44px, Readable 16px, Focus Ring)
 * 2. Labels (Human-case, Avoid ALL CAPS, Required/Optional Indicators)
 * 3. Placeholders (Distinct Muted Tone #94a3b8)
 * 4. Data Format & Constraints (Type, Inputmode, Pattern)
 * 5. Input Icons (Prefix & Suffix Action Icons)
 * 6. Hints & Helper Text (Contextual Descriptions)
 * ====================================================================
 */

.form-group {
    margin-bottom: 1.15rem;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
    color: #09090b;
    margin-bottom: 0.4rem;
    text-transform: none; /* Avoid ALL CAPS per Checklist.design */
    letter-spacing: normal;
}

.form-label-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.form-label .req-star {
    color: #dc2626;
    font-weight: 700;
    margin-left: 0.2rem;
}

.form-label .opt-badge {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Base Interactive Input Controls */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="search"],
select.form-control,
textarea.form-control {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    font-size: 0.92rem;
    font-family: var(--font-main);
    color: #09090b;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    -webkit-appearance: none;
    appearance: none;
}

/* Placeholder Contrast Hierarchy (Checklist.design 3) */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
    font-size: 0.88rem;
    font-weight: 400;
}

/* Hover State */
.form-control:hover:not(:disabled):not([readonly]),
input:hover:not(:disabled):not([readonly]),
textarea:hover:not(:disabled):not([readonly]),
select:hover:not(:disabled) {
    border-color: #cbd5e1;
    background-color: #fafafa;
}

/* Focus State (Checklist.design 1) */
.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #09090b !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08) !important;
    outline: none !important;
}

/* Disabled & Readonly States */
.form-control:disabled,
.form-control[readonly],
input:disabled,
input[readonly] {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

/* 5. Input Wrapper with Leading & Trailing Icons */
.input-icon-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon-group .input-icon-lead {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.input-icon-group .input-icon-trail {
    position: absolute;
    right: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon-group .input-icon-trail:hover {
    color: #09090b;
}

.input-icon-group .form-control.has-lead-icon {
    padding-left: 2.6rem !important;
}

.input-icon-group .form-control.has-trail-icon {
    padding-right: 2.6rem !important;
}

.input-icon-group:focus-within .input-icon-lead {
    color: #09090b;
}

/* 6. Contextual Hints & Helper Text */
.form-hint,
.form-text {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.4;
}

.form-hint i {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Validation Feedback Messages */
.invalid-feedback {
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fffafb !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}

.form-control.is-valid {
    border-color: #059669 !important;
    background-color: #f7fee7 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08) !important;
}

/**
 * ====================================================================
 * CHECKLIST.DESIGN: UNIVERSAL CHECKBOX DESIGN SYSTEM (4 CRITERIA)
 * 1. Labels (Bound click target, Title & Subtitle hierarchy)
 * 2. Default Selection (Predictable user-first default states)
 * 3. Styles & Grouping (Standalone Checkbox & Boxed Checkbox Cards)
 * 4. Interactive 5-States (Default, Hover, Focus-Visible, Checked, Disabled)
 * ====================================================================
 */

/* 1. Base Custom Checkbox Element */
.form-checkbox,
input[type="checkbox"].form-checkbox,
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    cursor: pointer;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background-color: #ffffff;
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Checkmark Icon via SVG background */
.form-checkbox:checked,
input[type="checkbox"]:checked {
    background-color: #09090b !important;
    border-color: #09090b !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* 4. Hover State */
.form-checkbox:hover:not(:disabled),
input[type="checkbox"]:hover:not(:disabled) {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.form-checkbox:checked:hover:not(:disabled),
input[type="checkbox"]:checked:hover:not(:disabled) {
    background-color: #27272a !important;
    border-color: #27272a !important;
}

/* 4. Focus-Visible State */
.form-checkbox:focus-visible,
input[type="checkbox"]:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.15) !important;
}

/* 4. Disabled State */
.form-checkbox:disabled,
input[type="checkbox"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

/* 1 & 3. Standalone Checkbox Row with Label */
.form-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.75rem;
}

.form-checkbox-row .checkbox-label-text {
    font-size: 0.88rem;
    color: #09090b;
    line-height: 1.4;
    font-weight: 500;
}

.form-checkbox-row .checkbox-subtext {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
    display: block;
    line-height: 1.4;
}

/* 3. Boxed Checkbox Card Component (Grouping / High-Value Choices) */
.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.checkbox-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.checkbox-card:has(.form-checkbox:checked),
.checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: #09090b;
    background-color: #fafafa;
    box-shadow: 0 2px 8px -2px rgba(9, 9, 11, 0.08);
}

.checkbox-card .checkbox-card-content {
    flex: 1;
}

.checkbox-card .checkbox-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #09090b;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-card .checkbox-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/**
 * ====================================================================
 * CHECKLIST.DESIGN: UNIVERSAL LOADING DESIGN SYSTEM (5 CRITERIA)
 * 1. Visual Indicators (Spinners, Shimmer Skeletons, Progress Lines)
 * 2. Contextual Text (Informative status beyond generic loading)
 * 3. Timing & Smoothness (Transitions & Debounce thresholds)
 * 4. Accessibility (High Contrast, ARIA Live, Boxed Overlays)
 * 5. Illustrations & Micro-Animations (Pulsing badges, Wave Shimmer)
 * ====================================================================
 */

/* 1. High-Performance CSS Spinners */
@keyframes spinAround {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner,
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinAround 0.65s linear infinite;
    vertical-align: middle;
}

.spinner-dark {
    border-color: rgba(9, 9, 11, 0.15);
    border-top-color: #09090b;
}

.spinner-sm {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
}

.spinner-lg {
    width: 28px;
    height: 28px;
    border-width: 3px;
}

/**
 * ====================================================================
 * CHECKLIST.DESIGN: UNIVERSAL SKELETON DESIGN SYSTEM (5 CRITERIA)
 * 1. Content Structure Matching (Layout parity: Avatar, Text, Cards, Tables)
 * 2. Subtle Animation (Subtle wave shimmer @ 1.5s)
 * 3. Flat Style (No misleading drop shadows, smooth radii)
 * 4. Neutral Color Palette (Neutral light gray gradient #f1f5f9 <-> #e2e8f0)
 * 5. Smooth Transition to Real Content (Fade-in opacity switch)
 * ====================================================================
 */

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

.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    border-radius: 8px;
    border: none !important;
    box-shadow: none !important;
    user-select: none;
    pointer-events: none;
}

/* Shapes & Geometry (Checklist.design 3) */
.skeleton-circle {
    border-radius: 50% !important;
    flex-shrink: 0;
}

.skeleton-pill {
    border-radius: 9999px !important;
}

.skeleton-rect {
    border-radius: 12px;
}

/* Typography Line Placeholders (Checklist.design 1) */
.skeleton-text {
    height: 14px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    width: 100%;
}
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-25 { width: 25%; }

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 0.85rem;
    border-radius: 6px;
}

.skeleton-btn {
    height: 44px;
    border-radius: 10px;
    width: 120px;
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* Composite Layout Skeletons (Checklist.design 1) */
.skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
}

.skeleton-card-img {
    height: 180px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.skeleton-kpi-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    flex: 1;
}

/* Smooth Transition to Real Content (Checklist.design 5) */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-content {
    animation: contentFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 4 & 5. Processing / Syncing Pulse Badge */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.97);
    }
}

.loading-pulse-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: pulseGlow 1.6s ease-in-out infinite;
}

/* Accessible Loading Container Overlay */
.loading-box-overlay {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

/**
 * ====================================================================
 * CHECKLIST.DESIGN: UNIVERSAL EMPTY STATE DESIGN SYSTEM (6 CRITERIA)
 * 1. Illustrations / Contextual Icons (Context-matching graphics)
 * 2. Clear Headlines (Specific to what is missing)
 * 3. Explanatory Descriptions (Actionable guidance)
 * 4. Primary Action / CTA (Direct path to create the 1st item)
 * 5. Zero State vs No Results State (Search reset & filter clear options)
 * 6. Error State Variant (Distinct failure vs empty handling)
 * ====================================================================
 */

.empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 20px;
    background-color: #ffffff;
    margin: 1.5rem 0;
    width: 100%;
}

.empty-state-box.bordered-solid {
    border-style: solid;
    border-color: #e2e8f0;
}

.empty-state-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

/* Error Variant */
.empty-state-box.is-error {
    border-color: #fecaca;
    background-color: #fffafb;
}

.empty-state-box.is-error .empty-state-icon-wrap {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #09090b;
    margin: 0 0 0.45rem 0;
    line-height: 1.3;
}

.empty-state-box.is-error .empty-state-title {
    color: #991b1b;
}

.empty-state-desc {
    font-size: 0.9rem;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.55;
}

.empty-state-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========================================================= */
/* 🔽 UNIVERSAL DROPDOWN MENU DESIGN SYSTEM (CHECKLIST.DESIGN)*/
/* 8 Criteria: Trigger, Item Anatomy, Dividers, Destructive,  */
/* Submenus, Disabled+Reason, Viewport Bounds, Shortcuts     */
/* ========================================================= */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 0.4rem;
    z-index: 1100;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-container.is-open .dropdown-menu-panel {
    display: block;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-header-group {
    padding: 0.5rem 0.75rem 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.dropdown-item-btn .item-lead {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dropdown-item-btn .item-lead i {
    font-size: 1rem;
    color: #64748b;
    width: 18px;
    text-align: center;
    transition: color 0.15s ease;
}

.dropdown-item-btn:hover {
    background: #f8fafc;
    color: #09090b;
}

.dropdown-item-btn:hover .item-lead i {
    color: #09090b;
}

/* Keyboard Shortcut Hint */
.dropdown-shortcut {
    font-size: 0.72rem;
    font-family: inherit;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Destructive Action Item */
.dropdown-item-btn.is-destructive {
    color: #dc2626;
}

.dropdown-item-btn.is-destructive .item-lead i {
    color: #dc2626;
}

.dropdown-item-btn.is-destructive:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Disabled State with Reason */
.dropdown-item-btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
}

.dropdown-item-btn.is-disabled .reason-tag {
    font-size: 0.68rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

/* Divider */
.dropdown-divider-line {
    height: 1px;
    background: #f1f5f9;
    margin: 0.35rem 0;
}

/* Submenu Flyout */
.dropdown-submenu-wrap {
    position: relative;
}

.dropdown-submenu-wrap .submenu-flyout {
    display: none;
    position: absolute;
    top: 0;
    right: calc(100% + 4px);
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.12);
    padding: 0.35rem;
    z-index: 1200;
}

.dropdown-submenu-wrap:hover .submenu-flyout {
    display: block;
}

/* ========================================================= */
/* 🪗 UNIVERSAL ACCORDION DESIGN SYSTEM (CHECKLIST.DESIGN)   */
/* 5 Criteria: Clickable Header, Expand/Collapse Icon,       */
/* Rich Content Area, 5 States (Default/Active/Hover/Focus/  */
/* Disabled), Expansion Logic (Single vs Multi)              */
/* ========================================================= */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.accordion-item {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4. State: Hover */
.accordion-item:hover:not(.is-disabled) {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

/* 4. State: Active / Expanded */
.accordion-item.is-expanded {
    border-color: #09090b;
    box-shadow: 0 4px 20px -4px rgba(9, 9, 11, 0.08);
}

/* 1. Clickable Header */
.accordion-trigger {
    width: 100%;
    padding: 1.15rem 1.35rem;
    background: #ffffff;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #09090b;
    transition: background-color 0.15s ease, color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.accordion-item.is-expanded .accordion-trigger {
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
}

/* 4. State: Focus (Keyboard Accessibility) */
.accordion-trigger:focus-visible {
    outline: 2px solid #09090b;
    outline-offset: -2px;
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

/* 2. Expand/Collapse Indicator Icon */
.accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.accordion-item:hover:not(.is-disabled) .accordion-icon {
    background: #f1f5f9;
    color: #09090b;
}

.accordion-item.is-expanded .accordion-icon {
    transform: rotate(180deg);
    background: #09090b;
    color: #ffffff;
    border-color: #09090b;
}

/* 3. Rich Content Area */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.35rem;
    background: #ffffff;
}

.accordion-item.is-expanded .accordion-body {
    max-height: 800px;
    padding: 1.25rem 1.35rem;
}

.accordion-body-inner {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #475569;
}

/* 4. State: Disabled */
.accordion-item.is-disabled {
    opacity: 0.55;
    background: #f8fafc;
    border-style: dashed;
}

.accordion-item.is-disabled .accordion-trigger {
    cursor: not-allowed;
    background: #f8fafc;
}

/* ========================================================= */
/* 🍞 UNIVERSAL TOAST NOTIFICATION SYSTEM (CHECKLIST.DESIGN) */
/* 6 Criteria: Concise Copy, Corner Placement, Triggered,    */
/* 4 Variants (Success/Error/Warning/Info), Duration/Progress,*/
/* Dismissible (Auto + Manual Close + Hover Pause)           */
/* ========================================================= */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 400px;
    width: calc(100vw - 32px);
}

@media (max-width: 768px) {
    .toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

.toast-box {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast-box.is-leaving {
    animation: toastSlideOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(50px) scale(0.9); }
}

.toast-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-text-wrap {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #09090b;
    margin: 0 0 0.15rem 0;
    line-height: 1.3;
}

.toast-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem;
    line-height: 1;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.toast-close-btn:hover {
    color: #09090b;
}

/* Linear Countdown Progress Bar */
.toast-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.04);
}

.toast-progress-fill {
    height: 100%;
    width: 100%;
    background: #09090b;
    transform-origin: left center;
}

/* 4 Variants */
/* 1. Success Variant */
.toast-box.variant-success {
    border-color: #a7f3d0;
}
.toast-box.variant-success .toast-icon-circle {
    background: #ecfdf5;
    color: #059669;
}
.toast-box.variant-success .toast-progress-fill {
    background: #059669;
}

/* 2. Error Variant */
.toast-box.variant-error {
    border-color: #fecaca;
}
.toast-box.variant-error .toast-icon-circle {
    background: #fee2e2;
    color: #dc2626;
}
.toast-box.variant-error .toast-progress-fill {
    background: #dc2626;
}

/* 3. Warning Variant */
.toast-box.variant-warning {
    border-color: #fde68a;
}
.toast-box.variant-warning .toast-icon-circle {
    background: #fef3c7;
    color: #d97706;
}
.toast-box.variant-warning .toast-progress-fill {
    background: #d97706;
}

/* 4. Info Variant */
.toast-box.variant-info {
    border-color: #bfdbfe;
}
.toast-box.variant-info .toast-icon-circle {
    background: #eff6ff;
    color: #2563eb;
}
.toast-box.variant-info .toast-progress-fill {
    background: #2563eb;
}

/* ========================================================= */
/* ⚠️ UNIVERSAL ALERT NOTIFICATION SYSTEM (CHECKLIST.DESIGN) */
/* 6 Criteria: Descriptive Copy, Placement/Stacking,         */
/* Dismissible, Icon Reinforcement, 4 Semantic Variants,     */
/* Inline Action Call-to-Actions (Links & Buttons)           */
/* ========================================================= */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease, margin 0.25s ease, max-height 0.25s ease;
}

.alert-box.is-dismissed {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.alert-icon {
    font-size: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    min-width: 0;
}

/* 1. Descriptive Copy */
.alert-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.2rem 0;
    line-height: 1.35;
}

.alert-message {
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
    color: #475569;
}

/* 3. Dismissible Close Button */
.alert-dismiss-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #94a3b8;
    padding: 0.15rem;
    line-height: 1;
    margin-left: 0.5rem;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.alert-dismiss-btn:hover {
    color: #09090b;
}

/* 6. Inline Actions */
.alert-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.alert-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.alert-action-link {
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* 5. Semantic Variants */
/* 1. Success Variant */
.alert-box.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}
.alert-box.alert-success .alert-icon {
    color: #16a34a;
}
.alert-box.alert-success .alert-title {
    color: #15803d;
}
.alert-box.alert-success .alert-message {
    color: #166534;
}
.alert-box.alert-success .alert-action-btn {
    background: #16a34a;
    color: #ffffff;
}
.alert-box.alert-success .alert-action-btn:hover {
    background: #15803d;
}
.alert-box.alert-success .alert-action-link {
    color: #15803d;
}

/* 2. Danger / Error Variant */
.alert-box.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
}
.alert-box.alert-danger .alert-icon {
    color: #dc2626;
}
.alert-box.alert-danger .alert-title {
    color: #b91c1c;
}
.alert-box.alert-danger .alert-message {
    color: #991b1b;
}
.alert-box.alert-danger .alert-action-btn {
    background: #dc2626;
    color: #ffffff;
}
.alert-box.alert-danger .alert-action-btn:hover {
    background: #b91c1c;
}
.alert-box.alert-danger .alert-action-link {
    color: #b91c1c;
}

/* 3. Warning Variant */
.alert-box.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
}
.alert-box.alert-warning .alert-icon {
    color: #d97706;
}
.alert-box.alert-warning .alert-title {
    color: #b45309;
}
.alert-box.alert-warning .alert-message {
    color: #92400e;
}
.alert-box.alert-warning .alert-action-btn {
    background: #d97706;
    color: #ffffff;
}
.alert-box.alert-warning .alert-action-btn:hover {
    background: #b45309;
}
.alert-box.alert-warning .alert-action-link {
    color: #b45309;
}

/* 4. Info Variant */
.alert-box.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}
.alert-box.alert-info .alert-icon {
    color: #2563eb;
}
.alert-box.alert-info .alert-title {
    color: #1d4ed8;
}
.alert-box.alert-info .alert-message {
    color: #1e40af;
}
.alert-box.alert-info .alert-action-btn {
    background: #2563eb;
    color: #ffffff;
}
.alert-box.alert-info .alert-action-btn:hover {
    background: #1d4ed8;
}
.alert-box.alert-info .alert-action-link {
    color: #1d4ed8;
}

/* 2. Top Banner Variant */
.alert-box.alert-banner {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    margin-bottom: 0;
    padding: 0.75rem 1.5rem;
    justify-content: center;
    text-align: center;
}

/* ========================================================= */
/* 📑 UNIVERSAL TAB NAVIGATION DESIGN SYSTEM (CHECKLIST.DESIGN)*/
/* 5 Criteria: Concise Labels, Content Panels (H/V),         */
/* Styles (Underline/Pill/Vertical), Hierarchy, 5 States     */
/* ========================================================= */

/* Tab Container */
.tab-container {
    width: 100%;
}

/* 3. Style 1: Pill / Segmented Style (Horizontal) */
.tab-nav-pills {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 12px;
    gap: 0.25rem;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-nav-pills::-webkit-scrollbar {
    display: none;
}

.tab-nav-pills .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* 5. States: Hover, Active, Focus */
.tab-nav-pills .tab-btn:hover:not(.is-disabled):not(.is-active) {
    color: #09090b;
    background: rgba(255, 255, 255, 0.6);
}

.tab-nav-pills .tab-btn.is-active {
    color: #09090b;
    background: #ffffff;
    box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.tab-nav-pills .tab-btn:focus-visible {
    outline: 2px solid #09090b;
    outline-offset: -1px;
}

/* 3. Style 2: Underline Style (Horizontal) */
.tab-nav-underline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-nav-underline::-webkit-scrollbar {
    display: none;
}

.tab-nav-underline .tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.25rem;
    border: none;
    background: none;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.18s ease;
    text-decoration: none;
}

.tab-nav-underline .tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    border-radius: 2px 2px 0 0;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-nav-underline .tab-btn:hover:not(.is-disabled):not(.is-active) {
    color: #09090b;
}

.tab-nav-underline .tab-btn.is-active {
    color: #09090b;
}

.tab-nav-underline .tab-btn.is-active::after {
    background: #09090b;
}

.tab-nav-underline .tab-btn:focus-visible {
    outline: 2px solid #09090b;
    outline-offset: 2px;
}

/* 3. Style 3: Vertical Sidebar Tabs */
.tab-nav-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.tab-nav-vertical .tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: all 0.15s ease;
    width: 100%;
}

.tab-nav-vertical .tab-btn:hover:not(.is-disabled):not(.is-active) {
    background: #f8fafc;
    color: #09090b;
}

.tab-nav-vertical .tab-btn.is-active {
    background: #09090b;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px -2px rgba(9, 9, 11, 0.15);
}

.tab-nav-vertical .tab-btn:focus-visible {
    outline: 2px solid #09090b;
    outline-offset: 2px;
}

/* 5. State: Disabled Tab */
.tab-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* 1. Tab Badge Indicator */
.tab-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #475569;
}

.tab-btn.is-active .tab-badge {
    background: #09090b;
    color: #ffffff;
}

.tab-nav-vertical .tab-btn.is-active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* 2. Content Panel Area */
.tab-panel-container {
    width: 100%;
}

.tab-panel {
    display: none;
    animation: tabContentFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.is-active {
    display: block;
}

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

/* ========================================================= */
/* ✍️ INPUT ERROR & VALIDATION LIFECYCLE (CHECKLIST.DESIGN)  */
/* 4 Criteria: 1. Keep Default, 2. Uninterrupted Typing,     */
/* 3. Signal Error on Blur + Visual Icon, 4. Revert on Focus */
/* ========================================================= */

/* 1. Default Input State */
.form-control {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* 3. Signal Error State on Blur */
.form-control.is-invalid {
    border-color: #dc2626 !important;
    background-color: #fffaf0;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.input-icon-group.is-invalid .input-icon-lead {
    color: #dc2626;
}

/* Error Message with Icon (Visual Accessibility) */
.form-error-msg {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: 0.35rem;
    line-height: 1.4;
    animation: errorMsgSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-error-msg.show {
    display: flex;
}

@keyframes errorMsgSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Valid State (Optional Confirmation) */
.form-control.is-valid {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08) !important;
}

.form-valid-msg {
    display: none;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    margin-top: 0.35rem;
    animation: errorMsgSlideDown 0.2s ease;
}

/* ====================================================================
 * 🚀 ENTERPRISE CORE UI COMPONENT SUITE (STANDALONE & ZERO-DEPENDENCY)
 * ==================================================================== */

/* Container & Layout */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
    max-width: 1400px;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1440px) { .container { max-width: 1440px; } }

/* Cards */
.card {
    background: #ffffff;
    border: none !important;
    border-radius: 18px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    border: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    line-height: 1.4;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #09090b;
    color: #ffffff !important;
    border-color: #09090b;
    box-shadow: 0 4px 14px -2px rgba(9, 9, 11, 0.25);
}

.btn-primary:hover {
    background: #18181b;
    border-color: #18181b;
    color: #ffffff !important;
    box-shadow: 0 6px 20px -2px rgba(9, 9, 11, 0.35);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155 !important;
    border-color: #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #09090b !important;
}

.btn-success {
    background: #059669;
    color: #ffffff !important;
    border-color: #059669;
    box-shadow: 0 4px 12px -2px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
    background: #047857;
    border-color: #047857;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff !important;
    border-color: #dc2626;
    box-shadow: 0 4px 12px -2px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.btn-warning {
    background: #f59e0b;
    color: #ffffff !important;
    border-color: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-outline-primary {
    background: transparent;
    color: #09090b;
    border: 1.5px solid #09090b;
}

.btn-outline-primary:hover {
    background: #09090b;
    color: #ffffff !important;
}

.btn-sm {
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.75rem 1.65rem;
    font-size: 1rem;
    border-radius: 14px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-primary { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-info { background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0; }

/* Display & Responsive Utilities */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 576px) {
    .d-sm-flex { display: flex !important; }
    .d-sm-block { display: block !important; }
    .d-sm-none { display: none !important; }
}

@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
    .py-md-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .p-md-4 { padding: 1.5rem !important; }
}

@media (min-width: 992px) {
    .d-lg-flex { display: flex !important; }
    .d-lg-block { display: block !important; }
    .d-lg-none { display: none !important; }
}

/* Spacing Helpers */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.85rem !important; }
.p-4 { padding: 1.25rem !important; }
.p-5 { padding: 1.75rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.85rem !important; padding-bottom: 0.85rem !important; }
.py-4 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }

.w-100 { width: 100% !important; }
.w-full { width: 100% !important; }
.h-100 { height: 100% !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

.text-primary { color: #09090b !important; }
.text-muted { color: #64748b !important; }
.text-success { color: #059669 !important; }
.text-danger { color: #dc2626 !important; }
.text-warning { color: #d97706 !important; }













/* Universal Card Border Removal */
.card, .card:hover, .card:focus, .service-card, .country-card {
    border: none !important;
}
