/* ════════════════════════════════════════════════════════
   Raey Tech Resources — Main Stylesheet
   ════════════════════════════════════════════════════════ */

/* ── CSS Variables (tweak to match logo at any time) ─── */
:root {
    --brand-cyan:    #00d4ff;
    --brand-purple:  #6c63ff;
    --brand-pink:    #ff6b9d;
    --brand-navy:    #1a1a2e;
    --brand-dark:    #16213e;
    --brand-mid:     #0f3460;

    --gradient-h:    linear-gradient(135deg, var(--brand-cyan), var(--brand-purple), var(--brand-pink));
    --gradient-v:    linear-gradient(180deg, var(--brand-cyan), var(--brand-purple));

    --sidebar-w:        240px;
    --sidebar-w-mini:   62px;
    --sidebar-bg:    var(--brand-navy);
    --sidebar-text:  #cdd6f4;
    --sidebar-hover: rgba(108, 99, 255, .25);
    --sidebar-active:var(--brand-purple);

    --surface:       #f4f6fb;
    --card-bg:       #ffffff;
    --border:        #e2e8f0;

    --text-primary:  #1a1a2e;
    --text-muted:    #64748b;

    --success:       #22c55e;
    --warning:       #f59e0b;
    --danger:        #ef4444;
    --info:          #3b82f6;

    --radius:        10px;
    --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
    --shadow-md:     0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:     0 8px 40px rgba(0,0,0,.15);
    --transition:    .2s ease;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--surface);
    color: var(--text-primary);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ════════════════════════════════════════════════════════
   PUBLIC LANDING PAGE
   ════════════════════════════════════════════════════════ */

/* ── Public layout: left-side vertical navbar ──────────── */
.public-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* ── Left-side Navbar ──────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,.3);
    transition: width .25s ease;
    overflow: hidden;
}

/* ── Toggle button ─────────────────────────────────────── */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: .6rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.toggle-btn {
    background: rgba(255,255,255,.07);
    border: none;
    color: var(--sidebar-text);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition);
    flex-shrink: 0;
}
.toggle-btn:hover { background: rgba(108,99,255,.35); color: #fff; }

/* Flip the arrow when collapsed */
.sidebar.collapsed .toggle-btn { transform: rotate(180deg); }

.sidebar-logo {
    padding: 1.25rem 1.25rem .9rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: center;
    transition: opacity .2s ease, padding .25s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-logo img {
    width: 80px;
    margin: 0 auto .45rem;
    transition: width .25s ease;
}

.sidebar-logo .brand-name {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity .15s ease;
}

.sidebar-nav {
    flex: 1;
    padding: .75rem 0;
    list-style: none;
    overflow: hidden;
}

.sidebar-nav li {
    position: relative;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .72rem 1.25rem;
    color: var(--sidebar-text);
    font-size: .9rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav li a:hover {
    background: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--brand-cyan);
}

.sidebar-nav li a.active {
    background: rgba(108,99,255,.3);
    color: #fff;
    border-left-color: var(--brand-purple);
}

.sidebar-nav .nav-icon {
    font-size: 1.1rem;
    width: 22px;
    min-width: 22px;
    text-align: center;
}

.nav-label { transition: opacity .15s ease; }

.sidebar-footer {
    padding: .9rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .78rem;
    color: #555b7e;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity .15s ease;
}

/* ── Collapsed state ───────────────────────────────────── */
.sidebar.collapsed {
    width: var(--sidebar-w-mini);
}

.sidebar.collapsed .sidebar-logo {
    padding: .9rem .5rem;
}

.sidebar.collapsed .sidebar-logo img {
    width: 36px;
}

.sidebar.collapsed .sidebar-logo .brand-name,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-footer {
    opacity: 0;
    pointer-events: none;
}

.sidebar.collapsed .sidebar-nav li a {
    padding: .72rem 0;
    justify-content: center;
    border-left-color: transparent !important;
}

.sidebar.collapsed .sidebar-nav li a.active,
.sidebar.collapsed .sidebar-nav li a:hover {
    border-left-color: transparent !important;
}

/* Tooltip on collapsed icons */
.sidebar.collapsed .sidebar-nav li a::after {
    content: attr(data-label);
    position: absolute;
    left: calc(var(--sidebar-w-mini) + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-dark);
    color: #fff;
    padding: .3rem .75rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-md);
    transition: opacity .15s ease;
    z-index: 200;
}
.sidebar.collapsed .sidebar-nav li:hover a::after {
    opacity: 1;
}

.sidebar.collapsed .sidebar-toggle {
    justify-content: center;
    padding: .6rem 0;
}

/* ── Main content ──────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    transition: margin-left .25s ease;
}

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

/* ── Hero ──────────────────────────────────────────────── */
.hero {
    background: var(--brand-navy);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0,212,255,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,107,157,.12) 0%, transparent 60%);
    padding: 5rem 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c63ff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 700px; }

.hero-eyebrow {
    display: inline-block;
    background: var(--gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero h1 span {
    background: var(--gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.4rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-h);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108,99,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108,99,255,.5); }

.btn-outline {
    background: transparent;
    color: var(--brand-cyan);
    border: 1.5px solid var(--brand-cyan);
}
.btn-outline:hover { background: rgba(0,212,255,.1); transform: translateY(-2px); }

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: #1fba59; transform: translateY(-2px); }

.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1.5px solid var(--danger);
}
.btn-danger-outline:hover { background: rgba(239,68,68,.08); }

/* ── Stats Bar ─────────────────────────────────────────── */
.stats-bar {
    display: flex;
    gap: 0;
    background: var(--brand-dark);
    border-top: 1px solid rgba(255,255,255,.06);
}
.stat-item {
    flex: 1;
    padding: 1.1rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.06);
}
.stat-item:last-child { border-right: none; }
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-h);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: .75rem; color: #64748b; letter-spacing: .05em; text-transform: uppercase; }

/* ── Section ───────────────────────────────────────────── */
.section { padding: 3.5rem 2.5rem; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gradient-v);
    border-radius: 4px;
}

/* ── Product Cards Grid ────────────────────────────────── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-card-header {
    background: var(--brand-navy);
    padding: 1.25rem 1.25rem .75rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .2rem .65rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.badge-refurbished { background: rgba(108,99,255,.3); color: var(--brand-cyan); }
.badge-new         { background: rgba(34,197,94,.25); color: #4ade80; }
.badge-featured    { background: var(--gradient-h); color: #fff; }

.product-brand {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--brand-cyan);
    font-weight: 700;
    margin-bottom: .2rem;
}
.product-model {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.product-body { padding: 1.1rem 1.25rem; flex: 1; }

.product-specs { list-style: none; display: flex; flex-direction: column; gap: .4rem; }

.product-specs li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--text-muted);
}
.product-specs li .spec-icon { width: 16px; text-align: center; color: var(--brand-purple); }
.product-specs li .spec-val { color: var(--text-primary); font-weight: 600; }

.product-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-navy);
}
.product-price .currency { font-size: .75rem; font-weight: 600; color: var(--text-muted); }

/* ── Filter bar ────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    padding: .55rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .88rem;
    background: #fff;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--brand-purple);
}

/* ════════════════════════════════════════════════════════
   AUTH PAGES (Login)
   ════════════════════════════════════════════════════════ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-navy);
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(0,212,255,.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(255,107,157,.1) 0%, transparent 60%);
}

.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo img { width: 80px; margin: 0 auto .75rem; }
.auth-logo h2 { font-size: 1.25rem; font-weight: 700; color: var(--brand-navy); }
.auth-logo p  { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Form elements ─────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }

.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.form-control {
    width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(108,99,255,.15);
}

select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }

/* ── Alerts ────────────────────────────────────────────── */
.alert {
    padding: .8rem 1.1rem;
    border-radius: var(--radius);
    font-size: .88rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ════════════════════════════════════════════════════════
   ADMIN / AGENT DASHBOARD LAYOUT
   ════════════════════════════════════════════════════════ */
.dashboard-body {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* Dashboard sidebar reuses all .sidebar rules above */
.dashboard-sidebar {
    width: var(--sidebar-w);
    position: fixed;
    left: 0; top: 0; bottom: 0;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0,0,0,.3);
    transition: width .25s ease;
    overflow: hidden;
}

/* Collapsed state for dashboard sidebar */
.dashboard-sidebar.collapsed { width: var(--sidebar-w-mini); }

.dashboard-sidebar.collapsed .sidebar-logo          { padding: .9rem .5rem; }
.dashboard-sidebar.collapsed .sidebar-logo img      { width: 36px; }
.dashboard-sidebar.collapsed .sidebar-logo .brand-name,
.dashboard-sidebar.collapsed .nav-label,
.dashboard-sidebar.collapsed .sidebar-footer        { opacity: 0; pointer-events: none; }

.dashboard-sidebar.collapsed .sidebar-nav li a      { padding: .72rem 0; justify-content: center; }
.dashboard-sidebar.collapsed .sidebar-toggle        { justify-content: center; padding: .6rem 0; }
.dashboard-sidebar.collapsed .toggle-btn            { transform: rotate(180deg); }

.dashboard-sidebar.collapsed .sidebar-nav li a::after {
    content: attr(data-label);
    position: absolute;
    left: calc(var(--sidebar-w-mini) + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-dark);
    color: #fff;
    padding: .3rem .75rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-md);
    transition: opacity .15s ease;
    z-index: 200;
}
.dashboard-sidebar.collapsed .sidebar-nav li:hover a::after { opacity: 1; }

.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
}

.dashboard-main.sidebar-collapsed {
    margin-left: var(--sidebar-w-mini);
}

/* ── Top bar ───────────────────────────────────────────── */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-h);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
}

.role-badge {
    padding: .2rem .65rem;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.role-admin { background: rgba(108,99,255,.15); color: var(--brand-purple); }
.role-agent { background: rgba(0,212,255,.12); color: #0891b2; }

.page-body { padding: 2rem; flex: 1; }

/* ── Dashboard stat cards ──────────────────────────────── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-h);
}

.stat-card-icon {
    font-size: 1.75rem;
    margin-bottom: .5rem;
}

.stat-card-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: .2rem;
}

.stat-card-label {
    font-size: .8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Data Table ────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body { padding: 1.5rem; }

.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

thead th {
    background: var(--surface);
    padding: .75rem 1rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f8fafc; }

.table-brand { font-weight: 700; }
.table-price { font-weight: 800; color: var(--brand-navy); }
.table-commission { font-weight: 700; color: var(--success); }

.action-btns { display: flex; gap: .4rem; }

/* ── Commission highlight (agent only) ─────────────────── */
.commission-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: rgba(34,197,94,.12);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,.25);
    padding: .25rem .7rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
}

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }

/* ── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--brand-purple); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ── Misc ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }

.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar, .dashboard-sidebar {
        width: var(--sidebar-w-mini);
    }
    .sidebar .sidebar-logo .brand-name,
    .sidebar .nav-label,
    .sidebar .sidebar-footer,
    .dashboard-sidebar .sidebar-logo .brand-name,
    .dashboard-sidebar .nav-label,
    .dashboard-sidebar .sidebar-footer { opacity: 0; pointer-events: none; }
    .sidebar .sidebar-nav li a,
    .dashboard-sidebar .sidebar-nav li a { padding: .72rem 0; justify-content: center; }
    .sidebar .sidebar-toggle,
    .dashboard-sidebar .sidebar-toggle { justify-content: center; padding: .6rem 0; }
    .main-content, .dashboard-main {
        margin-left: var(--sidebar-w-mini);
    }
    .hero { padding: 3rem 1.5rem; }
    .section { padding: 2rem 1.25rem; }
    .products-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .topbar { padding: 0 1rem; }
    .page-body { padding: 1rem; }
}
