/* ============================================================
   SADFLOW - Premium Bouquet Management System
   Theme: Pink Elegan + Glassmorphism + Modern Premium
   ============================================================ */

:root {
    /* Palette */
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-300: #f9a8d4;
    --pink-400: #f472b6;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --pink-700: #be185d;
    --pink-800: #9d174d;
    --pink-900: #831843;

    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --black: #0a0a0f;
    --white: #ffffff;
    --cream: #fefcfd;

    /* Semantic */
    --primary: var(--pink-500);
    --primary-dark: var(--pink-700);
    --primary-light: var(--pink-300);
    --accent: var(--purple-500);
    --bg: var(--pink-50);
    --bg-alt: var(--gray-50);
    --surface: rgba(255, 255, 255, 0.7);
    --surface-solid: #ffffff;
    --text: var(--gray-800);
    --text-muted: var(--gray-500);
    --border: rgba(236, 72, 153, 0.15);
    --border-strong: rgba(236, 72, 153, 0.3);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(236, 72, 153, .08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 20px 50px rgba(236, 72, 153, .12), 0 8px 16px rgba(0,0,0,.06);
    --shadow-glow: 0 0 40px rgba(236, 72, 153, .25);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --gradient-primary: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-soft: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #4c1d95 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.5) 100%);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --transition: all .25s cubic-bezier(.4,0,.2,1);
    --transition-slow: all .4s cubic-bezier(.4,0,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 14px; }
::selection { background: var(--pink-200); color: var(--pink-900); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Glass effect */
.glass, .glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow);
}
.glass-card { border-radius: var(--radius-lg); background: var(--gradient-glass); }

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gradient-primary); color: white; box-shadow: 0 4px 14px rgba(236,72,153,.4); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(236,72,153,.5); }
.btn-outline { background: transparent; border-color: var(--pink-300); color: var(--pink-700); }
.btn-outline:hover { background: var(--pink-50); border-color: var(--pink-500); }
.btn-glass { background: var(--gradient-glass); color: var(--pink-700); border-color: rgba(255,255,255,.5); backdrop-filter: blur(10px); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.btn-info { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.btn-dark { background: var(--gray-800); color: white; }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); transform: none; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-700);
}
.form-group label i { color: var(--pink-500); margin-right: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    transition: var(--transition);
    color: var(--gray-800);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.form-error { color: var(--danger); font-size: 13px; padding: 8px 12px; background: rgba(239,68,68,.08); border-radius: var(--radius-sm); margin: 8px 0; }
.form-hint { font-size: 13px; color: var(--gray-500); margin: 4px 0 12px; }

.input-group { position: relative; display: flex; }
.input-group input { width: 100%; padding-right: 48px; }
.input-addon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    color: var(--gray-500);
    background: transparent;
}
.input-group select { width: 100%; }

.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--pink-500);
    cursor: pointer;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.alert i { margin-top: 2px; }
.alert-success { background: rgba(16,185,129,.1); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.alert-error { background: rgba(239,68,68,.1); color: #991b1b; border: 1px solid rgba(239,68,68,.2); }
.alert-warning { background: rgba(245,158,11,.1); color: #92400e; border: 1px solid rgba(245,158,11,.2); }
.alert-info { background: rgba(59,130,246,.1); color: #1e40af; border: 1px solid rgba(59,130,246,.2); }

/* ============ LANDING PAGE ============ */
.landing-body {
    background: 
        radial-gradient(circle at 20% 0%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        var(--bg);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-display);
    transition: var(--transition);
}
.nav-brand:hover { opacity: .85; }
.nav-brand .logo-icon {
    width: 40px; height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(236, 72, 153, .4);
}
.nav-brand .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    padding: 8px 14px;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover { background: var(--pink-50); color: var(--pink-700); }
.nav-toggle { display: none; font-size: 22px; color: var(--gray-700); }

/* Hero */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}
.hero-bg-decorations { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .4;
}
.blob-1 { width: 400px; height: 400px; background: var(--pink-300); top: -100px; right: -100px; }
.blob-2 { width: 300px; height: 300px; background: var(--purple-500); bottom: -100px; left: -50px; opacity: .25; }
.blob-3 { width: 250px; height: 250px; background: var(--pink-200); top: 40%; left: 40%; opacity: .3; }

.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(236, 72, 153, .1);
    color: var(--pink-700);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    font-family: var(--font-display);
}
.hero-subtitle {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 28px;
    max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}
.stat-item .stat-number {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-item .stat-label { font-size: 13px; color: var(--gray-500); }
.stat-divider { width: 1px; height: 36px; background: var(--gray-200); }

.hero-visual { position: relative; }
.hero-card-stack { position: relative; min-height: 400px; }
.hero-card-main {
    position: absolute;
    top: 30px; left: 50%;
    transform: translateX(-50%);
    width: 280px;
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.hero-card-image {
    height: 200px;
    background: var(--gradient-soft);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--pink-500);
    margin-bottom: 16px;
}
.hero-card-info h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.hero-card-info p { font-size: 13px; color: var(--gray-500); margin-bottom: 8px; }
.hero-card-price { font-size: 20px; font-weight: 700; color: var(--pink-600); }
.hero-card-float, .hero-card-float-2 {
    position: absolute;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 3;
}
.hero-card-float { top: 0; right: 0; }
.hero-card-float-2 { bottom: 30px; left: 0; }
.hero-card-float i, .hero-card-float-2 i { font-size: 24px; color: var(--pink-500); }
.hero-card-float strong, .hero-card-float-2 strong { display: block; font-size: 14px; color: var(--gray-900); }
.hero-card-float small, .hero-card-float-2 small { font-size: 12px; color: var(--gray-500); }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: linear-gradient(180deg, transparent 0%, var(--pink-50) 50%, transparent 100%); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-family: var(--font-display);
}
.section-subtitle { font-size: 16px; color: var(--gray-500); }

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.category-card {
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}
.category-card h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.category-card p { font-size: 13px; color: var(--gray-500); }

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    overflow: hidden;
    transition: var(--transition);
    background: white;
    border-radius: var(--radius-lg);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gradient-soft);
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
    color: var(--pink-300);
}
.badge-promo {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--danger);
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.product-info { padding: 16px; }
.product-name { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.product-meta { display: flex; gap: 12px; font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.product-meta .rating { color: #f59e0b; }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-original { font-size: 13px; color: var(--gray-400); text-decoration: line-through; }
.price-discount { font-size: 18px; font-weight: 700; color: var(--pink-600); }
.price-current { font-size: 18px; font-weight: 700; color: var(--gray-900); }

/* Promo */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.promo-card { padding: 24px; position: relative; overflow: hidden; }
.promo-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: .1;
}
.promo-badge {
    display: inline-flex;
    width: 48px; height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
    align-items: center; justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.promo-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.promo-card p { color: var(--gray-500); font-size: 14px; margin-bottom: 16px; }
.promo-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--pink-50);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--pink-300);
    margin-bottom: 12px;
}
.promo-code span { font-size: 13px; color: var(--gray-500); }
.promo-code code { font-family: var(--font-mono); font-weight: 700; color: var(--pink-700); }
.promo-meta { font-size: 12px; color: var(--gray-400); }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step-card { padding: 28px 20px; position: relative; text-align: center; }
.step-number {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.step-icon {
    width: 64px; height: 64px;
    background: var(--pink-50);
    color: var(--pink-500);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.step-card p { font-size: 13px; color: var(--gray-500); }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.contact-icon {
    width: 48px; height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--gray-900); margin-bottom: 4px; }
.contact-item p { color: var(--gray-500); font-size: 14px; }
.contact-cta { padding: 32px; text-align: center; }
.cta-icon {
    width: 64px; height: 64px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}
.contact-cta h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.contact-cta p { color: var(--gray-500); margin-bottom: 20px; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: white;
    margin-bottom: 12px;
}
.footer-brand .footer-logo i { color: var(--pink-400); }
.footer-brand p { color: var(--gray-400); font-size: 14px; max-width: 320px; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--gray-400); padding: 6px 0; font-size: 14px; transition: var(--transition); }
.footer-col a:hover { color: var(--pink-400); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 20px; text-align: center; color: var(--gray-500); font-size: 13px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); grid-column: 1 / -1; }
.empty-state.full-width { grid-column: 1 / -1; }
.empty-state i { font-size: 56px; color: var(--pink-200); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--gray-700); margin-bottom: 8px; font-weight: 600; }
.empty-state p { font-size: 14px; }

/* Floating WhatsApp */
.fab-whatsapp {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
    z-index: 100;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}
.fab-whatsapp:hover { transform: scale(1.1) rotate(5deg); }
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 8px 24px rgba(37, 211, 102, .4), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8 24px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Notification container */
.notification-container {
    position: fixed;
    top: 80px; right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    width: calc(100% - 40px);
    pointer-events: none;
}
.toast {
    background: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
    animation: slide-in .3s ease-out;
    border-left: 4px solid var(--pink-500);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }
.toast-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}
.toast.success .toast-icon { background: var(--success); }
.toast.error .toast-icon { background: var(--danger); }
.toast.warning .toast-icon { background: var(--warning); }
.toast.info .toast-icon { background: var(--info); }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: 14px; color: var(--gray-900); margin-bottom: 2px; }
.toast-message { font-size: 13px; color: var(--gray-600); }
.toast-close { color: var(--gray-400); cursor: pointer; padding: 4px; }
@keyframes slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slide-out {
    to { transform: translateX(120%); opacity: 0; }
}

/* ============ MODAL ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 5, 20, 0.6);
    backdrop-filter: blur(8px);
}
.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: modal-in .3s ease-out;
}
.modal-sm { max-width: 420px; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1100px; }
@keyframes modal-in {
    from { transform: scale(.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); display: flex; align-items: center; gap: 8px; }
.modal-header h3 i { color: var(--pink-500); }
.modal-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.secret-warning {
    background: rgba(239, 68, 68, .08);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(239,68,68,.2);
}

/* ============ AUTH PAGES ============ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, .15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, .15) 0%, transparent 40%),
        var(--bg);
}
.auth-container { width: 100%; max-width: 480px; }
.auth-card { padding: 36px 32px; border-radius: var(--radius-xl); }
.auth-header { text-align: center; margin-bottom: 28px; position: relative; }
.auth-back {
    position: absolute;
    top: 0; left: 0;
    width: 36px; height: 36px;
    background: var(--pink-50);
    color: var(--pink-600);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.auth-back:hover { background: var(--pink-100); }
.auth-logo {
    width: 64px; height: 64px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, .3);
}
.auth-header h1 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; font-family: var(--font-display); }
.auth-header p { color: var(--gray-500); font-size: 14px; }
.auth-form { margin-top: 8px; }
.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer { text-align: center; font-size: 14px; color: var(--gray-500); }
.link, .link-bold { color: var(--pink-600); font-weight: 500; }
.link-bold { font-weight: 700; }
.link:hover, .link-bold:hover { color: var(--pink-700); text-decoration: underline; }
.auth-note {
    margin-top: 20px;
    padding: 12px;
    background: var(--pink-50);
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 12px;
    display: flex;
    gap: 8px;
}
.auth-note i { color: var(--pink-500); margin-top: 2px; }

/* ============ INSTALLER ============ */
.installer-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gradient-primary);
}
.installer-container { width: 100%; max-width: 560px; }
.installer-card { background: white; padding: 40px 32px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); text-align: center; }
.installer-card-lg { max-width: 720px; margin: 0 auto; text-align: left; }
.installer-logo {
    width: 72px; height: 72px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(236, 72, 153, .3);
}
.installer-card h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; font-family: var(--font-display); background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.installer-tagline { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.installer-msg { color: var(--gray-600); margin-bottom: 24px; font-size: 15px; }
.installer-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.installer-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px 0 8px; }
.step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}
.step-dot.active { background: var(--gradient-primary); color: white; box-shadow: 0 4px 12px rgba(236,72,153,.4); }
.step-line { width: 40px; height: 2px; background: var(--gray-200); }
.step-line.active { background: var(--pink-500); }
.step-label { color: var(--pink-600); font-weight: 600; font-size: 14px; margin-bottom: 16px; text-align: center; }
.installer-form { text-align: left; }
.form-section { margin-bottom: 24px; padding: 20px; background: var(--gray-50); border-radius: var(--radius); }
.form-section h3 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.form-section h3 i { color: var(--pink-500); }
.installer-success { text-align: center; padding: 20px 0; }
.success-icon {
    width: 80px; height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: bounce-in .5s ease-out;
}
@keyframes bounce-in {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.installer-success h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.installer-success p { color: var(--gray-500); margin-bottom: 24px; }
.info-card { background: var(--gray-50); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; text-align: left; }
.info-card.warning { background: rgba(245, 158, 11, .08); }
.info-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); display: flex; align-items: center; gap: 6px; }
.info-card h4 i { color: var(--pink-500); }
.info-card.warning h4 i { color: var(--warning); }
.info-card ol, .info-card ul { padding-left: 20px; color: var(--gray-600); font-size: 13px; }
.info-card li { margin-bottom: 4px; }
.info-card code { background: var(--gray-200); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 12px; }
.installer-debug { margin-top: 16px; background: var(--gray-100); padding: 12px; border-radius: var(--radius); font-size: 12px; }
.installer-debug summary { cursor: pointer; font-weight: 600; }

/* ============ DASHBOARD LAYOUT (Customer & Admin) ============ */
.dash-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.dash-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
}
.dash-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.dash-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.dash-brand .logo-icon {
    width: 36px; height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 16px;
}
.dash-brand .logo-text { font-weight: 700; font-size: 18px; font-family: var(--font-display); background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-page-title { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.dash-actions { display: flex; align-items: center; gap: 8px; }
.dash-search {
    position: relative;
    width: 280px;
}
.dash-search input {
    width: 100%;
    padding: 8px 14px 8px 38px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-50);
    font-size: 13px;
}
.dash-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}
.icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: var(--transition);
}
.icon-btn:hover { background: var(--pink-100); color: var(--pink-700); }
.icon-btn .badge {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--gray-100);
    border-radius: 100px;
    cursor: pointer;
}
.user-avatar {
    width: 32px; height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.user-chip .user-name { font-size: 13px; font-weight: 600; color: var(--gray-700); }

.dash-layout {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.dash-sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    padding: 16px 12px;
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
    overflow-y: auto;
}
.dash-main {
    flex: 1;
    padding: 24px;
    min-width: 0;
}
.sidebar-section { margin-bottom: 16px; }
.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 6px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--pink-50); color: var(--pink-700); }
.sidebar-link.active { background: var(--gradient-primary); color: white; box-shadow: 0 4px 12px rgba(236,72,153,.3); }
.sidebar-link i { width: 18px; text-align: center; }
.sidebar-link .badge { margin-left: auto; }

/* Mobile sidebar */
.dash-sidebar { transition: transform .3s; }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
}
.sidebar-overlay.active { display: block; }

.dash-toggle { display: none; }

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.card-body { font-size: 14px; color: var(--gray-600); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon-bg {
    position: absolute;
    top: -10px; right: -10px;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: .1;
}
.stat-card .stat-icon-bg i { font-size: 60px; position: absolute; top: 10px; right: 10px; }
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--gray-900); font-family: var(--font-display); }
.stat-card .stat-trend { font-size: 12px; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* Tables */
.table-wrap {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}
.table-scroll { overflow-x: auto; }
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th {
    background: var(--gray-50);
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--pink-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.badge-pink { background: var(--pink-100); color: var(--pink-700); }
.badge-red { background: rgba(239,68,68,.15); color: var(--danger); }
.badge-green { background: rgba(16,185,129,.15); color: var(--success); }
.badge-blue { background: rgba(59,130,246,.15); color: var(--info); }
.badge-amber { background: rgba(245,158,11,.15); color: #92400e; }
.badge-purple { background: rgba(139,92,246,.15); color: var(--purple-600); }
.badge-cyan { background: rgba(6,182,212,.15); color: #0e7490; }
.badge-teal { background: rgba(20,184,166,.15); color: #115e59; }
.badge-orange { background: rgba(249,115,22,.15); color: #9a3412; }
.badge-indigo { background: rgba(99,102,241,.15); color: #4338ca; }

/* Kanban */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    min-height: 500px;
}
.kanban-col {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}
.kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 4px 4px 12px;
    border-bottom: 2px solid var(--gray-200);
}
.kanban-col-title { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.kanban-col-count {
    background: var(--gray-200);
    color: var(--gray-700);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}
.kanban-cards { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 50px; }
.kanban-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--pink-500);
    cursor: grab;
    transition: var(--transition);
}
.kanban-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kanban-card.dragging { opacity: .5; }
.kanban-card.overdue {
    border-left-color: var(--danger);
    animation: blink 1.5s infinite;
}
.kanban-card.critical { border-left-color: var(--warning); }
@keyframes blink {
    0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 0 rgba(239,68,68,.4); }
    50% { box-shadow: var(--shadow-sm), 0 0 0 6px rgba(239,68,68,0); }
}
.kanban-card-title { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.kanban-card-meta { font-size: 11px; color: var(--gray-500); margin-bottom: 8px; }
.kanban-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-day-name {
    text-align: center;
    padding: 8px 4px;
    font-weight: 700;
    color: var(--gray-600);
    font-size: 12px;
    text-transform: uppercase;
}
.calendar-cell {
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 6px;
    font-size: 12px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}
.calendar-cell:hover { background: var(--pink-50); }
.calendar-cell.today { background: var(--pink-100); border: 2px solid var(--pink-500); }
.calendar-cell.empty { background: transparent; }
.calendar-cell.has-event.green { background: rgba(16,185,129,.1); }
.calendar-cell.has-event.blue { background: rgba(59,130,246,.1); }
.calendar-cell.has-event.yellow { background: rgba(245,158,11,.1); }
.calendar-cell.has-event.red { background: rgba(239,68,68,.1); }
.calendar-cell .day-num { font-weight: 700; color: var(--gray-700); }
.calendar-cell .events { margin-top: 4px; font-size: 10px; }
.calendar-event { 
    background: var(--pink-500); 
    color: white; 
    padding: 2px 4px; 
    border-radius: 3px; 
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 180px); gap: 16px; }
.chat-sidebar { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.chat-list { overflow-y: auto; height: 100%; }
.chat-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}
.chat-item:hover { background: var(--pink-50); }
.chat-item.active { background: var(--pink-100); }
.chat-item-avatar {
    width: 40px; height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name { font-weight: 600; font-size: 13px; color: var(--gray-900); }
.chat-item-preview { font-size: 12px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-time { font-size: 11px; color: var(--gray-400); }
.chat-item-badge {
    background: var(--pink-500);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
}

.chat-main {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gradient-soft);
}
.chat-message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
}
.chat-message.sent {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-message.received {
    background: white;
    color: var(--gray-800);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-message-time { font-size: 10px; opacity: .7; margin-top: 4px; }
.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    font-size: 14px;
}

/* Progress timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px; bottom: 8px;
    width: 2px;
    background: var(--gray-200);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 3px solid white;
}
.timeline-item.done::before { background: var(--success); }
.timeline-item.active::before { background: var(--pink-500); box-shadow: 0 0 0 4px rgba(236,72,153,.2); }
.timeline-item-title { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.timeline-item-time { font-size: 12px; color: var(--gray-500); }
.timeline-item-body { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--gray-900); font-family: var(--font-display); }
.page-subtitle { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}
.filter-bar select, .filter-bar input {
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    background: white;
    font-size: 13px;
}
.filter-bar .search-input { min-width: 200px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.pagination button, .pagination a {
    min-width: 36px; height: 36px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.pagination button:hover, .pagination a:hover { background: var(--pink-50); border-color: var(--pink-300); color: var(--pink-700); }
.pagination .active { background: var(--gradient-primary); color: white; border-color: transparent; }
.pagination button:disabled { opacity: .5; cursor: not-allowed; }

/* Action menu (3-dot) */
.action-menu { position: relative; }
.action-menu-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: transparent;
    color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.action-menu-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.action-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 180px;
    z-index: 50;
    display: none;
}
.action-menu-dropdown.show { display: block; animation: slide-down .15s ease-out; }
@keyframes slide-down {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.action-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}
.action-menu-item:hover { background: var(--pink-50); color: var(--pink-700); }
.action-menu-item.danger:hover { background: rgba(239,68,68,.1); color: var(--danger); }
.action-menu-item i { width: 16px; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(236, 72, 153, .2);
    border-top-color: var(--pink-500);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.loading-overlay .spinner { width: 48px; height: 48px; border-width: 4px; }
.loading-overlay p { color: var(--gray-600); font-size: 14px; font-weight: 500; }

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-pink { color: var(--pink-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.hidden { display: none; }
.w-full { width: 100%; }
.relative { position: relative; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .nav-actions .nav-link { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .kanban-board { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav-container { gap: 8px; }
    .nav-actions { gap: 4px; }
    .nav-actions .nav-link { display: none; }
    .nav-actions .btn { padding: 8px 12px; font-size: 12px; }
    .nav-actions .btn span, .nav-actions .btn i { display: inline; }
    .nav-toggle { display: block; }
    .nav-actions.mobile-open { 
        position: fixed; 
        top: 64px; left: 0; right: 0;
        background: white; 
        flex-direction: column; 
        padding: 16px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
    }
    .nav-actions.mobile-open .nav-link { display: block; width: 100%; padding: 12px; }

    .hero-section { padding: 40px 0; }
    .hero-container { grid-template-columns: 1fr; gap: 30px; }
    .hero-visual { display: none; }
    .hero-title { font-size: 30px; }
    .hero-stats { gap: 12px; }
    .stat-item .stat-number { font-size: 22px; }
    
    .section { padding: 50px 0; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    .auth-card { padding: 28px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    
    /* Dashboard */
    .dash-sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        z-index: 95;
        width: 260px;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    .dash-sidebar.show { transform: translateX(0); }
    .dash-toggle { display: flex; }
    .dash-main { padding: 16px; width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .kanban-board { grid-template-columns: 1fr; }
    .chat-layout { grid-template-columns: 1fr; height: auto; }
    .chat-sidebar { height: 300px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .dash-search { display: none; }
    .user-chip .user-name { display: none; }
}

@media (max-width: 480px) {
    .category-grid, .product-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .modal-dialog { margin: 10px; }
}

/* Print */
@media print {
    .top-nav, .fab-whatsapp, .dash-sidebar, .dash-header, .page-actions, .filter-bar, .pagination { display: none !important; }
    .dash-main { padding: 0; }
    body { background: white; }
    .card, .table-wrap { box-shadow: none; border: 1px solid #ddd; }
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .3s ease-out; }
.slide-up { animation: slideUp .3s ease-out; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
