/* ============================================================
   style.css - Sistem Forecasting Penjualan UMKM
   Design: Dark glassmorphism dengan gradient premium
   ============================================================ */

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

/* ============================================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================================ */
:root {
    /* Base Colors - Same for both themes */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Theme-specific variables (Dark - Default) */
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface2: #263347;
    --bg-elevated: #334155;
    --bg-glass: rgba(30, 41, 59, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
    
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface2: #f1f5f9;
    --bg-elevated: #e2e8f0;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(99, 102, 241, 0.5);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.15);
}


/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.app-body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.brand-icon {
    width: 40px; height: 40px;
    background: transparent;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    /* Menyembunyikan scrollbar tapi tetap bisa scroll */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Chrome, Safari and Opera */
.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 12px 8px 6px;
}

.sidebar-menu { list-style: none; }

.menu-item { margin-bottom: 2px; }

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.menu-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    transform: translateX(3px);
}

.menu-item.active .menu-link {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

.menu-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface2);
}

.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.user-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); display: block; }
.user-role { font-size: 0.7rem; color: var(--text-muted); display: block; }

.user-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-menu-btn:hover { color: var(--text-primary); }

.dropdown-menu-dark {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    backdrop-filter: blur(10px);
}
.dropdown-item {
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
    transition: var(--transition) !important;
    color: var(--text-secondary) !important;
}
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-light) !important;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
    background: var(--bg-base);
}

.main-content.full-width {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Sidebar Collapsed (Desktop) */
.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    overflow-x: hidden;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .brand-tagline,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .menu-link span,
.sidebar.collapsed .user-info,
.sidebar.collapsed .badge,
.sidebar.collapsed .user-menu-btn {
    display: none;
}
.sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 18px 0;
}
.sidebar.collapsed .brand-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    border-radius: 12px;
}
.sidebar.collapsed .sidebar-nav {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sidebar.collapsed .sidebar-menu {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sidebar.collapsed .menu-item {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}
.sidebar.collapsed .menu-link {
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 4px 0;
    justify-content: center;
    border-radius: 8px;
}
.sidebar.collapsed .menu-item.active .menu-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
.sidebar.collapsed .menu-link:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}
.sidebar.collapsed .menu-icon {
    margin: 0;
    font-size: 1rem;
    width: auto;
}
.sidebar.collapsed .sidebar-user {
    justify-content: center;
    padding: 15px 0;
    width: 100%;
}
.sidebar.collapsed .sidebar-user > div {
    justify-content: center;
    width: 100%;
}
.sidebar.collapsed .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    margin: 0;
}
.sidebar.collapsed .drawer-actions {
    display: none;
}

/* Mobile Sidebar Sidebar (Shown) */
@media (max-width: 768px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.show {
        left: 0;
    }
    .main-content {
        margin-left: 0 !important;
    }
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed);
}

.top-navbar {
    position: sticky; top: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1050;
}

.sidebar-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    width: 36px; height: 36px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.sidebar-toggle:hover { border-color: var(--primary); color: var(--primary-light); }

.navbar-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-action-btn {
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}
.nav-action-btn:hover { color: var(--primary-light); background: rgba(99, 102, 241, 0.1); }

/* Redesigned Theme Switcher */
.theme-switcher {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-surface2);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 5px;
    transition: var(--transition);
    overflow: hidden;
}

.theme-switcher:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

.theme-switcher .switcher-dot {
    position: absolute;
    left: 4px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

[data-theme="light"] .theme-switcher .switcher-dot {
    left: calc(100% - 26px);
}

.theme-switcher .switcher-icons {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 1;
}

[data-theme="light"] .theme-switcher {
    background: #e2e8f0;
}

.action-badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 16px; height: 16px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 700;
}

.page-content {
    padding: 28px;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    padding: 0 28px;
    margin-top: 12px;
}

.flash-alert {
    border-radius: 12px;
    border: none;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
}

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

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: 0.05;
    transform: translate(20px, -20px);
}

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

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.stat-card-success .stat-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-card-info .stat-icon { background: rgba(6, 182, 212, 0.15); color: var(--info); }
.stat-card-warning .stat-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.stat-card-primary { border-top: 3px solid var(--primary); }
.stat-card-success { border-top: 3px solid var(--success); }
.stat-card-info { border-top: 3px solid var(--info); }
.stat-card-warning { border-top: 3px solid var(--warning); }

.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.stat-sub a { color: var(--text-muted); }

/* ============================================================
   CHART CARDS
   ============================================================ */
.chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.chart-card:hover { border-color: rgba(255,255,255,0.12); }

.chart-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin: 0; }
.chart-subtitle { font-size: 0.75rem; color: var(--text-muted); margin: 0; }

.chart-actions { display: flex; gap: 6px; }

.chart-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}
.chart-btn:hover, .chart-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

.chart-body { padding: 16px 20px 20px; }

/* ============================================================
   TOP PRODUCTS
   ============================================================ */
.top-products-list { display: flex; flex-direction: column; gap: 12px; }

.top-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-surface2);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.product-rank {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: white; }
.rank-3 { background: linear-gradient(135deg, #cd7c2f, #a45f18); color: white; }
.rank-4, .rank-5 { background: var(--bg-elevated); color: var(--text-muted); }

.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-qty { font-size: 0.7rem; color: var(--text-muted); display: block; }
.product-revenue { font-size: 0.78rem; font-weight: 600; color: var(--success); white-space: nowrap; }

/* ============================================================
   STOCK ALERT
   ============================================================ */
.stock-alert-list { display: flex; flex-direction: column; gap: 10px; }

.stock-alert-item {
    padding: 10px 12px;
    background: var(--bg-surface2);
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.stock-alert-item.stock-empty { border-color: rgba(239, 68, 68, 0.3); }

.stock-info { flex: 1; min-width: 0; }
.stock-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); display: block; }
.stock-category { font-size: 0.7rem; color: var(--text-muted); display: block; }

.stock-level { display: flex; align-items: center; gap: 8px; }
.stock-progress { width: 70px; height: 6px; background: var(--bg-elevated); border-radius: 4px; overflow: hidden; }
.stock-bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.stock-count { font-size: 0.78rem; font-weight: 600; white-space: nowrap; }

/* ============================================================
   RECOMMENDATIONS
   ============================================================ */
.rec-list { display: flex; flex-direction: column; gap: 10px; }

.rec-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 3px solid;
}

.rec-item.rec-high { background: rgba(239, 68, 68, 0.08); border-color: var(--danger); }
.rec-item.rec-medium { background: rgba(245, 158, 11, 0.08); border-color: var(--warning); }
.rec-item.rec-low { background: rgba(16, 185, 129, 0.08); border-color: var(--success); }

.rec-badge {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

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

.rec-priority {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}
.rec-priority.high { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.rec-priority.medium { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.rec-priority.low { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.rec-message { font-size: 0.78rem; color: var(--text-secondary); margin: 4px 0; line-height: 1.5; }
.rec-product { font-size: 0.7rem; color: var(--text-muted); }

/* ============================================================
   DATA CARD (Tables)
   ============================================================ */
.data-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.data-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface2);
}

.table-custom {
    color: var(--text-primary);
    margin: 0;
    background: transparent !important;
}

.table-custom thead th {
    background: var(--bg-surface2) !important;
    border-bottom: 2px solid var(--border) !important;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    white-space: nowrap;
}

.table-custom tbody tr {
    background: transparent;
    transition: var(--transition);
}

.table-custom thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.table-custom thead th.sortable:hover {
    background: var(--bg-elevated) !important;
    color: var(--primary-light);
}

.table-custom thead th.sortable i {
    font-size: 0.7rem;
    margin-left: 5px;
    opacity: 0.5;
}

.table-custom thead th.sortable.active {
    color: var(--primary-light);
}

.table-custom thead th.sortable.active i {
    opacity: 1;
}

.table-custom tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
    vertical-align: middle;
    background: transparent !important;
    color: var(--text-primary) !important;
}

.table-custom tbody tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* ============================================================
   PRODUCT TABLE CELLS
   ============================================================ */
.product-cell { display: flex; align-items: center; gap: 10px; }
.product-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: white;
    flex-shrink: 0;
}
.product-cell-name { font-weight: 600; font-size: 0.875rem; display: block; }
.product-cell-unit { font-size: 0.7rem; color: var(--text-muted); }
.product-avatar-sm {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.7rem; color: white;
    flex-shrink: 0;
}
.badge-sku {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
}
.stock-cell { display: flex; align-items: center; gap: 4px; }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.status-active { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-inactive { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); border: 1px solid var(--border); }
.action-btns { display: flex; gap: 6px; }
.date-badge { font-size: 0.8rem; color: var(--text-secondary); }
.transaction-code { font-family: monospace; font-size: 0.78rem; color: var(--primary-light); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

.pagination-custom .page-link {
    background: var(--bg-surface2);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
    padding: 6px 12px;
    transition: var(--transition);
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-custom .page-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}
.pagination-info { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   FILTER CARD
   ============================================================ */
.filter-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
}

/* ============================================================
   FORM CARDS
   ============================================================ */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.form-card-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 3px;
}

.form-control-custom, .form-control, .form-select {
    background: var(--bg-surface2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    color: var(--text-primary) !important;
    padding: 10px 14px;
    font-size: 0.875rem;
    width: 100%;
    transition: var(--transition);
}

.form-control-custom:focus, .form-control:focus, .form-select:focus {
    background: var(--bg-surface2) !important;
    border-color: var(--primary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none;
}

.form-control-custom::placeholder, .form-control::placeholder { color: var(--text-muted); }
.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

.input-group-text {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   TRANSACTION FORM SPECIFIC
   ============================================================ */
.product-info-card {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.info-label { font-size: 0.8rem; color: var(--text-muted); }
.info-value { font-size: 0.85rem; color: var(--text-primary); }

.promo-toggle-card {
    background: var(--bg-surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-input { display: none; }

.toggle-switch {
    width: 44px; height: 24px;
    background: var(--bg-elevated);
    border-radius: 12px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-input:checked + .toggle-switch { background: var(--success); }
.toggle-input:checked + .toggle-switch::after { transform: translateX(20px); }

.toggle-text { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); }

.total-preview {
    background: var(--bg-surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.total-row:last-child { border-bottom: none; }

.total-final {
    background: rgba(99, 102, 241, 0.08);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

#preview-total { color: var(--success); }

/* ============================================================
   FORECAST PAGE SPECIFIC
   ============================================================ */
.forecast-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.forecast-type-option { cursor: pointer; }
.forecast-type-option input { display: none; }

.forecast-type-card {
    background: var(--bg-surface2);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.forecast-type-card i { font-size: 1.3rem; }

.forecast-type-option input:checked + .forecast-type-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.period-badge {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.ai-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.ai-info-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    border-bottom: 1px solid var(--border);
}

.ai-info-body { padding: 12px 16px; }

.ai-info-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
}
.ai-info-item:last-child { border-bottom: none; }
.ai-label { color: var(--text-muted); }
.ai-value { color: var(--text-primary); font-weight: 500; }

/* ============================================================
   HOW IT WORKS CARD
   ============================================================ */
.howto-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.howto-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.howto-steps { display: flex; flex-direction: column; gap: 16px; }

.howto-step {
    display: flex;
    gap: 14px;
}

.step-num {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.step-content strong { font-size: 0.875rem; color: var(--text-primary); display: block; margin-bottom: 4px; }
.step-content p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* ============================================================
   FORECAST RESULTS
   ============================================================ */
.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.metric-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.metric-primary .metric-icon { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.metric-success .metric-icon { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.metric-info .metric-icon { background: rgba(6, 182, 212, 0.15); color: var(--info); }
.metric-warning .metric-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.metric-label { font-size: 0.72rem; color: var(--text-muted); }
.metric-value { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.metric-sub { font-size: 0.68rem; color: var(--text-muted); }

.summary-list { display: flex; flex-direction: column; gap: 2px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); }
.summary-value { font-weight: 600; color: var(--text-primary); }

/* ============================================================
   RECOMMENDATION CARDS
   ============================================================ */
.rec-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

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

.rec-card-high { border-top: 3px solid var(--danger); }
.rec-card-medium { border-top: 3px solid var(--warning); }
.rec-card-low { border-top: 3px solid var(--success); }

.rec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-surface2);
    border-bottom: 1px solid var(--border);
}

.rec-type-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.rec-type-low_stock { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.rec-type-restock { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }
.rec-type-slow_moving { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.rec-type-overstock { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

.rec-priority-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.priority-high { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.priority-medium { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.priority-low { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

.rec-card-body { padding: 16px; }
.rec-product-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.rec-message-full { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.rec-action-info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    color: var(--primary-light);
}

.rec-card-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface2);
}

.rec-time { font-size: 0.72rem; color: var(--text-muted); }
.rec-qty { font-size: 0.75rem; color: var(--info); }

/* ============================================================
   PAGE HEADINGS
   ============================================================ */
.page-heading { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.page-sub { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 0; }

/* ============================================================
   EMPTY STATES & ERRORS
   ============================================================ */
.empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.empty-page-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    --webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary-light);
    background: transparent;
}
.btn-outline-primary:hover { background: rgba(99, 102, 241, 0.1); border-color: var(--primary); color: var(--primary-light); }

.btn-outline-secondary {
    border-color: var(--border);
    color: var(--text-secondary);
    background: transparent;
}
.btn-outline-secondary:hover { background: var(--bg-surface2); color: var(--text-primary); }

.btn-success { background: linear-gradient(135deg, var(--success), #059669); border: none; }
.btn-outline-danger { border-color: rgba(239, 68, 68, 0.3); color: var(--danger); background: transparent; }
.btn-outline-danger:hover { background: rgba(239, 68, 68, 0.1); border-color: var(--danger); color: var(--danger); }
.btn-outline-info { border-color: rgba(6, 182, 212, 0.3); color: var(--info); background: transparent; }
.btn-outline-info:hover { background: rgba(6, 182, 212, 0.1); border-color: var(--info); color: var(--info); }
.btn-outline-warning { border-color: rgba(245, 158, 11, 0.3); color: var(--warning); background: transparent; }
.btn-outline-warning:hover { background: rgba(245, 158, 11, 0.1); border-color: var(--warning); color: var(--warning); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}

.login-bg { position: absolute; inset: 0; pointer-events: none; }

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -100px; left: -100px;
}

.shape-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--secondary), transparent);
    bottom: -80px; right: -80px;
    animation-delay: -3s;
}

.shape-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--info), transparent);
    top: 40%; right: 20%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.login-container {
    display: flex;
    width: 900px;
    max-width: 95vw;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.login-branding {
    flex: 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    border-right: 1px solid var(--border);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.feature-list { display: flex; flex-direction: column; gap: 16px; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.feature-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--primary-light);
    flex-shrink: 0;
}

.feature-text strong { font-size: 0.85rem; color: var(--text-primary); display: block; }
.feature-text span { font-size: 0.75rem; color: var(--text-muted); }

.login-form-wrapper {
    width: 380px;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header { margin-bottom: 28px; }
.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.login-header p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.form-group-custom { margin-bottom: 18px; }
.form-label-custom {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.form-control-custom {
    padding-left: 42px !important;
}

.password-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    transition: var(--transition);
}
.password-toggle:hover { color: var(--primary-light); }

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark), #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
}

/* ============================================================
   FORM RANGE SLIDER
   ============================================================ */
.form-range { accent-color: var(--primary); }

/* ============================================================
   BOOTSTRAP OVERRIDES
   ============================================================ */
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #67e8f9;
}

.btn-close { filter: invert(1); }

.badge { font-weight: 500; }

/* SweetAlert2 Dark Design */
.swal2-popup {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(10px);
}
.swal2-title, .swal2-html-container { color: var(--text-primary) !important; }
.swal2-confirm { background: linear-gradient(135deg, var(--primary), var(--secondary)) !important; border-radius: 12px !important; padding: 12px 30px !important; }
.swal2-cancel { background: var(--bg-surface2) !important; border: 1px solid var(--border) !important; border-radius: 12px !important; color: var(--text-secondary) !important; }

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    background-color: var(--bg-surface2);
    border-color: var(--border);
    color: var(--text-primary);
}

.form-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .login-container { flex-direction: column; }
    .login-branding { display: none; }
    .login-form-wrapper { width: 100%; padding: 32px 24px; }
    .stat-value { font-size: 1.1rem; }
}

/* ============================================================
   LANDING PAGE STYLES
   ============================================================ */
.landing-page {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Landing Nav */
.landing-nav {
    padding: 24px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary) !important;
}

.brand-logo-small {
    width: 36px; height: 36px;
    background: transparent;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
}

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}
.landing-nav-links a:hover { color: var(--text-primary); }

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.1), transparent 70%);
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    max-width: 900px;
    margin: 20px auto;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-preview-container {
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    perspective: 1000px;
}

.hero-preview-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: rotateX(5deg);
    transition: var(--transition);
}

.hero-preview-glow {
    position: absolute;
    inset: -20px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}

/* Feature Cards */
.feature-card {
    padding: 40px 30px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon-box {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* Pricing Cards */
.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pricing-card.active {
    border-width: 2px;
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-tag {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 8px; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-desc { font-size: 0.85rem; color: var(--text-muted); margin: 12px 0 32px; }

.plan-features { list-style: none; padding: 0; margin: 0 0 40px; }
.plan-features li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 0.925rem; color: var(--text-secondary); }
.plan-features i { color: var(--success); font-size: 1.2rem; }
.plan-features .disabled { opacity: 0.4; color: var(--text-muted); }
.plan-features .disabled i { color: var(--danger); }

/* Helpers */
.landing-footer .text-muted { color: var(--text-muted) !important; }
.landing-footer .social-links a { color: var(--text-secondary); font-size: 1.2rem; transition: var(--transition); }
.landing-footer .social-links a:hover { color: var(--primary); }
