/* ================================================
   VAIDIK INDIA - Master Stylesheet
   Theme: Black & White (matches logo)
   Responsive: Mobile + Desktop equal priority
   ================================================ */

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50:  #fafafa;
    --gray-100: #f4f4f4;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --danger: #b91c1c;
    --warn:   #b45309;
    --success:#15803d;
    --info:   #1e40af;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
    --shadow:    0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 18px 40px rgba(0,0,0,0.18);

    --transition: 200ms ease;
    --sidebar-w: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* =============== Typography =============== */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }
.muted { color: var(--gray-500); }
.small { font-size: 0.875rem; }
.tiny  { font-size: 0.78rem; }

/* =============== Layout helpers =============== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.flex   { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; gap: 8px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }

/* =============== Top Nav =============== */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    height: 72px;
    display: flex; align-items: center;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.mobile-cart-slot { display: none; }
.mobile-auth-links { display: none; }
#mobile-auth-bar { display: none; }
.brand-name { font-weight: 900; letter-spacing: 0.04em; font-size: 1rem; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
    padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600;
    color: var(--gray-700); transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--black); color: var(--white); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.hamburger {
    display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
    align-items: center; justify-content: center; background: var(--gray-100);
}

/* =============== Buttons =============== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius); font-weight: 700;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    border: 2px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--gray-800); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-ghost { color: var(--black); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #991b1b; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* =============== Cards =============== */
.card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 22px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--black); }
.card-flat { transition: none; }
.card-flat:hover { transform: none; box-shadow: none; border-color: var(--gray-200); }
.card-dark { background: var(--black); color: var(--white); border-color: var(--black); }

/* =============== Hero =============== */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-900) 100%);
    color: var(--white); padding: 80px 0 100px;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 40%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow { display: inline-block; padding: 6px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); margin-bottom: 16px; }
.hero p { color: var(--gray-300); font-size: 1.1rem; margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-outline { color: var(--white); border-color: var(--white); }
.hero-cta .btn-outline:hover { background: var(--white); color: var(--black); }
.hero-img { display: flex; justify-content: center; align-items: center; }
.hero-img img { max-height: 480px; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.4)); }

/* =============== Product cards =============== */
/* Products catalogue grid — exactly 2 cols desktop, 1 col mobile */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 680px) { .products-grid { grid-template-columns: 1fr; gap: 16px; } }

.product-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--black); }
.product-card .img-wrap {
    background: var(--gray-100); height: 240px; display: flex; align-items: center;
    justify-content: center; padding: 24px; overflow: hidden; position: relative;
    transition: background var(--transition);
}
.product-card:hover .img-wrap { background: var(--gray-200); }
.product-card .img-link { display:flex; align-items:center; justify-content:center; width:100%; height:100%; text-decoration:none; }
.product-card .img-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform var(--transition); }
.product-card:hover .img-wrap img { transform: scale(1.06); }
/* Card image slider controls */
.card-arrow { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,.88); border:none; border-radius:50%; width:30px; height:30px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1.15rem; font-weight:700; z-index:3; box-shadow:0 1px 6px rgba(0,0,0,.18); transition:background .12s, opacity .12s; color:#333; opacity:0; }
.product-card:hover .card-arrow { opacity:1; }
.card-arrow:hover { background:#fff; }
.card-arrow.prev { left:8px; }
.card-arrow.next { right:8px; }
.card-dots { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); display:flex; gap:5px; pointer-events:none; z-index:2; }
.card-dot { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.5); transition:background .15s; }
.card-dot.active { background:#fff; box-shadow:0 0 4px rgba(0,0,0,.3); }
.product-card .body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.prod-name-link { text-decoration: none; color: inherit; display: block; }
.prod-name-link:hover h3 { text-decoration: underline; }
.product-card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 4px; }
.prod-rating { color: #f59e0b; font-size: 0.88rem; margin-bottom: 6px; }
.prod-tagline { font-size: 0.82rem; color: var(--gray-500); margin: 0 0 6px; }
.prod-desc {
    font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price { font-size: 1.35rem; font-weight: 900; margin: 8px 0 4px; }
.product-card .price del { color: var(--gray-400); font-weight: 500; font-size: 0.88rem; margin-left: 6px; text-decoration-color: var(--gray-400); }
.product-card .price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.product-card .price-row .save-badge { font-size: 0.72rem; font-weight: 700; background: #dcfce7; color: #15803d; padding: 2px 7px; border-radius: 100px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.spec { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--gray-100); border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.product-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.product-actions .btn { flex: 1; padding: 10px 12px; font-size: 0.88rem; }

/* =============== Sidebar (dashboards) =============== */
.app-layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: calc(100vh - 72px); }
.sidebar {
    background: var(--black); color: var(--white);
    padding: 24px 16px;
    border-right: 1px solid var(--gray-800);
    display: flex; flex-direction: column;
    position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto;
}
.sidebar h4 { color: var(--gray-400); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; margin: 18px 12px 8px; font-weight: 700; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: var(--radius);
    color: var(--gray-300); font-weight: 600; font-size: 0.93rem;
    transition: background var(--transition), color var(--transition);
}
.sidebar-link:hover { background: var(--gray-800); color: var(--white); }
.sidebar-link.active { background: var(--white); color: var(--black); }
.sidebar-link .icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 100px; min-width: 18px; text-align: center; line-height: 1.5; }
.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--gray-800); }
.sidebar-user-card { display: flex; align-items: center; gap: 10px; background: var(--gray-900); border-radius: 10px; padding: 12px 14px; margin-bottom: 4px; }
.sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; flex-shrink: 0; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-weight: 700; font-size: .88rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .7rem; color: var(--gray-400); margin-top: 1px; }
.content { padding: 32px; background: var(--gray-50); }

/* =============== Stat cards =============== */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat {
    display: block;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: 22px;
    transition: transform var(--transition), border-color var(--transition);
    color: inherit;
}
.stat:hover { transform: translateY(-3px); border-color: var(--black); }
.stat .label { color: var(--gray-500); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.stat .value { font-size: 2rem; font-weight: 900; margin-top: 6px; }
.stat .delta { margin-top: 6px; font-size: 0.85rem; font-weight: 600; }
.stat .delta.up { color: var(--success); }
.stat .delta.down { color: var(--danger); }

/* =============== Tables =============== */
.table-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 14px 18px; background: var(--gray-100); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); }
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); font-size: 0.93rem; vertical-align: middle; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--gray-50); }
tbody tr:last-child td { border-bottom: 0; }

/* =============== Forms =============== */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 0.88rem; }
/* Password show/hide wrapper */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 2px; display: flex; align-items: center; line-height: 1; }
.pw-eye:hover { color: var(--gray-700); }
.input, .select, .textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: var(--radius);
    background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }
.textarea { min-height: 100px; resize: vertical; }

/* =============== Badges & Pills =============== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; }
.badge-black { background: var(--black); color: var(--white); }
.badge-light { background: var(--gray-100); color: var(--gray-700); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-warn { background: #fef3c7; color: var(--warn); }
.badge-danger { background: #fee2e2; color: var(--danger); }
.badge-info { background: #dbeafe; color: var(--info); }

/* =============== Auth =============== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left {
    background: var(--black); color: var(--white); padding: 60px;
    display: flex; flex-direction: column; justify-content: space-between;
    background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 50%);
}
.auth-left .brand img { filter: invert(0); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 420px; }

/* =============== Footer =============== */
.footer { background: var(--black); color: var(--gray-400); padding: 50px 0 24px; }
.footer .grid { gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer h5 { color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.88rem; }
.footer a { display: block; padding: 4px 0; transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--gray-800); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
@media (max-width: 880px) {
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* =============== Modal =============== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 24px 16px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); padding: 28px; max-width: 480px; width: 100%; margin: auto; }
.modal h3 { margin-bottom: 14px; }
.modal-close { position: absolute; }
/* Keep close (✕) button visible while scrolling inside any modal */
.modal > .flex-between:first-child {
    position: sticky;
    top: 0;
    margin: -28px -28px 16px -28px;
    padding: 20px 28px 16px 28px;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 2;
}

/* =============== Tabs =============== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--gray-200); margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 10px 18px; font-weight: 600; color: var(--gray-500); border-bottom: 3px solid transparent; transition: color var(--transition), border-color var(--transition); cursor: pointer; }
.tab:hover { color: var(--black); }
.tab.active { color: var(--black); border-bottom-color: var(--black); }

/* =============== Chat =============== */
.chat-shell { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 72px - 64px); background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; }
.chat-list { background: var(--gray-50); border-right: 1px solid var(--gray-200); overflow-y: auto; }
.chat-list-item { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); cursor: pointer; transition: background var(--transition); }
.chat-list-item:hover, .chat-list-item.active { background: var(--white); }
.chat-window { display: flex; flex-direction: column; }
.chat-header { padding: 14px 18px; border-bottom: 1px solid var(--gray-200); font-weight: 700; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--gray-50); display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 0.93rem; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--black); color: var(--white); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--white); border: 1px solid var(--gray-200); border-bottom-left-radius: 4px; }
.bubble .ts { font-size: 0.7rem; opacity: 0.7; margin-top: 4px; display: block; }
.bubble.voice { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.voice-wave { display: flex; gap: 2px; align-items: center; height: 22px; }
.voice-wave span { width: 3px; background: currentColor; border-radius: 100px; display: inline-block; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--gray-200); background: var(--white); }
.chat-input input { flex: 1; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 100px; }
.chat-input input:focus { outline: none; border-color: var(--black); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-100); display: inline-flex; align-items: center; justify-content: center; transition: background var(--transition), color var(--transition); }
.icon-btn:hover { background: var(--black); color: var(--white); }
.icon-btn.recording { background: var(--danger); color: var(--white); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* =============== Progress / subscription =============== */
.progress { height: 8px; background: var(--gray-200); border-radius: 100px; overflow: hidden; }
.progress .bar { height: 100%; background: var(--black); transition: width var(--transition); }
.progress .bar.warn { background: var(--warn); }
.progress .bar.danger { background: var(--danger); }

/* =============== Notification banner =============== */
.notif {
    background: var(--black); color: var(--white); padding: 10px 16px;
    font-size: 0.85rem; line-height: 1.5;
    display: flex; align-items: center; justify-content: center;
    gap: 12px; text-align: center; flex-wrap: wrap;
}
.notif .dot { opacity: 0.45; }
.notif a, .notif .notif-link {
    color: #fff; text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
    transition: opacity var(--transition);
}
.notif a:hover, .notif .notif-link:hover { opacity: 0.7; }
.notif .wa-ic { color: #25d366; }
@media (max-width: 520px) {
    .notif { font-size: 0.78rem; padding: 8px 12px; gap: 8px; }
}

/* =============== Pricing/subscription =============== */
.plan {
    background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
}
.plan:hover { transform: translateY(-6px); border-color: var(--black); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: var(--black); background: var(--black); color: var(--white); }
.plan.featured:hover { transform: translateY(-6px) scale(1.02); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--white); color: var(--black); padding: 4px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; }
.plan h3 { margin-bottom: 6px; }
.plan .price { font-size: 2.5rem; font-weight: 900; margin: 14px 0; }
.plan .price small { font-size: 1rem; font-weight: 500; color: inherit; opacity: 0.7; }
.plan ul { list-style: none; padding: 0; margin: 18px 0; }
.plan li { padding: 6px 0; display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; font-weight: 900; color: inherit; }

/* =============== Feature strip =============== */
.feature-strip { background: var(--gray-100); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { width: 42px; height: 42px; background: var(--black); color: var(--white); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.feature h4 { font-size: 0.95rem; margin-bottom: 4px; }
.feature p { font-size: 0.82rem; color: var(--gray-600); }

/* =============== Date filter =============== */
.date-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.date-filter button {
    padding: 8px 14px; background: var(--white); border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
    transition: all var(--transition);
}
.date-filter button:hover { border-color: var(--black); color: var(--black); }
.date-filter button.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* =============== OTP input =============== */
.otp-row { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-row input {
    width: 56px; height: 64px; text-align: center; font-size: 1.5rem; font-weight: 800;
    border: 2px solid var(--gray-300); border-radius: var(--radius); transition: border-color var(--transition);
}
.otp-row input:focus { outline: none; border-color: var(--black); }

/* =============== Page header =============== */
.page-head {
    background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 28px 0;
}
.page-head h2 { margin-bottom: 4px; }
.page-head .breadcrumb { color: var(--gray-500); font-size: 0.85rem; }
.page-head .breadcrumb a:hover { color: var(--black); }

/* =============== Drop zone =============== */
.dropzone {
    border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 30px;
    text-align: center; background: var(--gray-50); transition: border-color var(--transition), background var(--transition);
    cursor: pointer;
}
.dropzone:hover { border-color: var(--black); background: var(--white); }

/* =============== Responsive =============== */
@media (max-width: 1024px) {
    .footer .grid { grid-template-columns: 1fr 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-left { display: none; }
}

@media (max-width: 880px) {
    .footer .grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer .grid > div:first-child { grid-column: 1 / -1; }

    /* Mobile header: [hamburger-left] [logo-center] [cart-right] */
    .topbar .container { position: relative; justify-content: space-between; }
    .brand {
        position: absolute;
        left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: auto;
    }
    .brand img { height: 44px; width: auto; object-fit: contain; border-radius: 0; }
    /* Cart slot sits on the right as last flex child */
    .mobile-cart-slot { display: flex; align-items: center; z-index: 2; }
    /* Hide cart from right nav-actions and hide sign-in/up buttons — hamburger only on left */
    .nav-actions .cart-btn { display: none; }
    .nav-actions [data-auth-slot] { display: none; }

    /* Auth bar below navbar */
    #mobile-auth-bar {
        display: block;
        background: #f8f9fa;
        border-bottom: 1px solid var(--gray-200);
    }
    .mobile-auth-bar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        flex-wrap: wrap;
    }
    .mobile-auth-bar-text {
        font-size: .78rem;
        color: var(--gray-600);
        font-weight: 500;
        flex: 1;
        min-width: 0;
    }
    .mobile-auth-bar-btns {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }
    .mobile-auth-bar-btns .btn-sm {
        font-size: .78rem;
        padding: 7px 16px;
    }


    .app-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; top: 72px; left: -100%; width: 80%; max-width: 320px; height: calc(100vh - 72px);
        transition: left var(--transition); z-index: 40;
    }
    .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
    .content { padding: 18px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
        border-bottom: 1px solid var(--gray-200); padding: 12px; gap: 4px;
        box-shadow: var(--shadow);
    }
    .hamburger { display: inline-flex; }
    .hide-mobile { display: none !important; }
    .show-mobile { display: initial; }
    .hero { padding: 48px 0 64px; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-img { order: -1; }
    .hero-img img { max-height: 280px; }
    .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 72px); }
    .chat-list { display: none; }
    .section { padding: 40px 0; }
}

@media (max-width: 520px) {
    .stat .value { font-size: 1.5rem; }
    .otp-row input { width: 44px; height: 52px; font-size: 1.2rem; }
    .btn { padding: 11px 18px; }
}

/* =============== Toast =============== */
.toast-host {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
    pointer-events: none;
}
.toast {
    background: #000; color: #fff; padding: 12px 22px; border-radius: 100px;
    font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-lg);
    animation: toast-in 220ms cubic-bezier(.2,.9,.2,1);
    pointer-events: auto; max-width: 90vw; text-align: center;
}
.toast.success { background: var(--success); }
.toast.danger  { background: var(--danger); }
.toast.warn    { background: var(--warn); }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =============== Chat attachment bubbles =============== */
.bubble.image { padding: 6px; background: #000; }
.bubble.image img { max-width: 240px; max-height: 240px; border-radius: 8px; display: block; object-fit: cover; }
.bubble.image .ts { color: #aaa; padding: 0 8px 4px; }
.bubble.pdf { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.bubble.pdf .pdf-icon {
    width: 38px; height: 38px; background: rgba(255,255,255,0.15);
    color: inherit; border-radius: 6px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.7rem; flex-shrink: 0; letter-spacing: 0.04em;
}
.bubble.them.pdf .pdf-icon { background: var(--gray-200); }
.bubble.pdf a { color: inherit; }
.attach-input { display: none; }

/* =============== Cart drawer =============== */
.cart-drawer { position: fixed; inset: 0; z-index: 110; display: none; }
.cart-drawer.open { display: block; }
.cart-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.4);
    animation: cart-fade 200ms ease;
}
@keyframes cart-fade { from { opacity: 0; } to { opacity: 1; } }
.cart-panel {
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 100%; max-width: 420px; background: #fff;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    animation: cart-slide 250ms cubic-bezier(.2,.9,.2,1) forwards;
    box-shadow: var(--shadow-lg);
}
@keyframes cart-slide { to { transform: translateX(0); } }
.cart-head {
    padding: 18px 20px; border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-foot { padding: 18px 20px; border-top: 1px solid var(--gray-200); background: var(--gray-50); }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--gray-100); border-radius: 6px; flex-shrink: 0; }
.cart-item-body { flex: 1; min-width: 0; }
.qty-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty-btn {
    width: 28px; height: 28px; border: 1px solid var(--gray-300); border-radius: 6px;
    cursor: pointer; background: #fff; font-weight: 700; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--transition), border-color var(--transition);
}
.qty-btn:hover { background: var(--gray-100); border-color: var(--black); }
.qty-val { min-width: 24px; text-align: center; font-weight: 700; }
.cart-remove {
    font-size: 0.78rem; color: var(--danger); margin-left: auto;
    padding: 4px 8px; background: none; cursor: pointer;
    transition: opacity var(--transition);
}
.cart-remove:hover { opacity: 0.7; }

.cart-btn { font-size: 1.1rem; }
.cart-btn:hover { background: var(--gray-100); }

/* Service picker buttons */
.svc-pick {
    background: #fff; border: 1px solid var(--gray-200); border-radius: 10px;
    padding: 14px; width: 100%; cursor: pointer; font-family: inherit;
    transition: border-color var(--transition), transform var(--transition);
}
.svc-pick:hover { border-color: var(--black); transform: translateY(-1px); }

/* =============== Skeleton loading =============== */
.skeleton {
    background: var(--gray-200);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.skeleton-text  { height: 1em; margin-bottom: 8px; }
.skeleton-title { height: 1.5em; width: 60%; margin-bottom: 12px; }
.skeleton-card  { height: 120px; margin-bottom: 16px; }
.skeleton-row   { height: 48px; margin-bottom: 8px; }

/* =============== Utilities =============== */
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.scroll-x { overflow-x: auto; }
.no-scroll { overflow: hidden; }
.sticky-top { position: sticky; top: 72px; z-index: 10; }
.center-page { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 30px 20px; }
