:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #e94560;
    --gold: #f5a623;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --light: #f8f9fa;
    --dark: #1a1a2e;
    --text: #2d3748;
    --text-muted: #718096;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: #f7f8fc;
    line-height: 1.6;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ============ NAVBAR ============ */
.navbar {
    background: var(--primary);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1280px;
    margin: 0 auto;
}
.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.navbar-brand span { color: var(--accent); }
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.navbar-nav a:hover { color: #fff; }
.navbar-nav .btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.navbar-nav .btn-nav:hover { background: #c73652; transform: translateY(-1px); }
.navbar-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #0a3d62 100%);
    color: #fff;
    padding: 7rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(233,69,96,0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(52,152,219,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: rgba(233,69,96,0.2);
    color: var(--accent);
    border: 1px solid rgba(233,69,96,0.4);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.hero-stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c73652; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.95rem 2.4rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============ SECTIONS ============ */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.section-title h2 span { color: var(--accent); }
.section-title p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}
.divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ============ CARDS ============ */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-body { padding: 1.5rem; }
.card-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============ FEATURES GRID ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--info));
    transform: scaleX(0);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, rgba(233,69,96,0.15), rgba(52,152,219,0.15));
    color: var(--accent);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ============ PRICING ============ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}
.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(233,69,96,0.2);
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 1.2rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.pricing-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1.2rem 0 0.2rem;
    line-height: 1;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.6rem; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-period { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pricing-features { margin: 1.5rem 0; }
.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); font-size: 0.9rem; }
.pricing-features li.disabled { color: var(--text-muted); text-decoration: line-through; }
.pricing-features li.disabled i { color: var(--border); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 1.2rem; }
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    transition: var(--transition);
    background: #fff;
    outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233,69,96,0.12); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
.form-text { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input[type=checkbox], .form-check input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* ============ ALERTS ============ */
.alert {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid var(--success); }
.alert-danger { background: #f8d7da; color: #721c24; border-left: 4px solid var(--danger); }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid var(--info); }

/* ============ TABLES ============ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
tbody tr:hover { background: #f8faff; }
tbody td { padding: 0.85rem 1rem; color: var(--text); vertical-align: middle; }
tbody tr:last-child { border-bottom: none; }

/* ============ BADGES ============ */
.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e9ecef; color: #495057; }
.badge-primary { background: rgba(233,69,96,0.15); color: var(--accent); }

/* ============ DASHBOARD LAYOUT ============ */
.dashboard-wrap { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 500;
    transition: var(--transition);
}
.sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.4rem;
    font-weight: 800;
}
.sidebar-logo span { color: var(--accent); }
.sidebar-user {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.sidebar-user-info .name { font-weight: 600; font-size: 0.9rem; }
.sidebar-user-info .role { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    margin-top: 0.8rem;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-left-color: var(--accent);
}
.sidebar-nav a i { font-size: 1.05rem; width: 20px; }
.sidebar-nav .badge { margin-left: auto; background: var(--accent); color: #fff; }
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.top-bar {
    background: #fff;
    padding: 0 2rem;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 400;
}
.top-bar-left h1 { font-size: 1.2rem; font-weight: 700; }
.top-bar-right { display: flex; align-items: center; gap: 1rem; }
.page-content { padding: 2rem; flex: 1; }

/* ============ STAT CARDS ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
    border-left: 4px solid var(--accent);
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.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-icon.red { background: rgba(233,69,96,0.12); color: var(--accent); }
.stat-icon.blue { background: rgba(52,152,219,0.12); color: var(--info); }
.stat-icon.green { background: rgba(39,174,96,0.12); color: var(--success); }
.stat-icon.orange { background: rgba(243,156,18,0.12); color: var(--warning); }
.stat-info .value { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--dark); }
.stat-info .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info .change { font-size: 0.78rem; font-weight: 600; margin-top: 0.2rem; }
.stat-info .change.up { color: var(--success); }
.stat-info .change.down { color: var(--danger); }

/* ============ FOOTER ============ */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 4rem 2rem 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1200px; margin: 0 auto 3rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.footer-brand span { color: var(--accent); }
.footer-desc { font-size: 0.88rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { font-size: 0.88rem; transition: var(--transition); }
.footer ul li a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}
.social-links { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: #fff; }

/* ============ MODAL ============ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius);
    width: 90%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
@keyframes modalIn { from { opacity:0; transform:scale(0.92) translateY(20px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; justify-content: flex-end; }

/* ============ UTILS ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--accent); }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.row { display: grid; gap: 1.5rem; }
.col-2 { grid-template-columns: 1fr 1fr; }
.col-3 { grid-template-columns: 1fr 1fr 1fr; }
.col-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

/* ============ POS ============ */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; height: calc(100vh - 130px); }
.pos-products { overflow-y: auto; }
.pos-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; padding: 1rem; }
.pos-product-item {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}
.pos-product-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.pos-product-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-bottom: 0.5rem; }
.pos-product-name { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.pos-product-price { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.pos-cart { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pos-cart-header { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); font-weight: 700; }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-name { flex: 1; font-size: 0.88rem; font-weight: 500; }
.cart-item-qty { display: flex; align-items: center; gap: 0.4rem; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); background: var(--light); cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cart-item-total { font-weight: 700; font-size: 0.9rem; min-width: 70px; text-align: right; }
.remove-item { color: var(--danger); cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: var(--transition); }
.remove-item:hover { background: rgba(231,76,60,0.1); }
.pos-cart-footer { padding: 1rem 1.2rem; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.cart-grand-total { font-size: 1.3rem; font-weight: 800; color: var(--accent); }

/* ============ AI CHAT ============ */
.ai-chat-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 520px;
}
.ai-chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ai-message { max-width: 80%; }
.ai-message.user { align-self: flex-end; }
.ai-message.bot { align-self: flex-start; }
.ai-bubble {
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.ai-message.user .ai-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ai-message.bot .ai-bubble { background: var(--light); color: var(--text); border-bottom-left-radius: 4px; }
.ai-chat-input { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.8rem; }
.ai-chat-input input { flex: 1; }

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.05); } }
.animate-fade { animation: fadeInUp 0.5s ease forwards; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .pos-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--primary); padding: 1rem; gap: 0.5rem; }
    .navbar-toggle { display: block; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .section { padding: 3rem 1.5rem; }
    .row.col-2, .row.col-3, .row.col-4 { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card.featured { transform: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .page-content { padding: 1.2rem; }
}
