/* ─────────────────────────────────────────────────────────────────────────
   HOME PAGE — CSS UI ILLUSTRATIONS
   Prefix: hm-
   Three illustrations:
     01. Hero       → Browser-frame app dashboard
     02. Dashboard  → Analytics / P&L chart card
     03. Solutions  → Module launcher grid
   ───────────────────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════
   01. HERO — Browser-Frame App Illustration
   ══════════════════════════════════════════════════════════════════════════ */

/* Glow decoration behind the browser */
.hm-browser-wrap {
    position: relative;
}

.hm-browser-wrap::before {
    content: '';
    position: absolute;
    inset: -40px -30px;
    background:
        radial-gradient(ellipse 60% 40% at 70% 30%, rgba(16, 185, 129, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 30% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(20px);
}

.hm-browser {
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.16),
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
    transform: perspective(1400px) rotateY(-3deg);
    transform-origin: center center;
    transition: transform 0.4s ease;
}

.hm-browser:hover {
    transform: perspective(1400px) rotateY(-1deg);
}

/* ── Top Bar ── */
.hm-browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
}

.hm-browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.hm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.hm-dot--red    { background: #FF5F57; }
.hm-dot--yellow { background: #FEBC2E; }
.hm-dot--green  { background: #28C840; }

.hm-browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 0.65rem;
    color: #6B7280;
    font-family: var(--font-body);
    font-weight: 500;
}

.hm-browser-url svg {
    flex-shrink: 0;
    color: #10B981;
}

.hm-browser-tabs {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.hm-browser-tab {
    width: 22px;
    height: 5px;
    background: #D1D5DB;
    border-radius: 2px;
}

/* ── App Body ── */
.hm-app-body {
    display: flex;
    height: 420px;
    overflow: hidden;
}

/* ── Sidebar ── */
.hm-sidebar {
    width: 128px;
    flex-shrink: 0;
    background: #0F172A;
    padding: 14px 0;
    display: flex;
    flex-direction: column;
}

.hm-sidebar-brand {
    padding: 0 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}

.hm-sidebar-logo {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.hm-sidebar-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.hm-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0 6px;
}

.hm-snav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.38);
    cursor: default;
}

.hm-snav--active {
    background: rgba(16, 185, 129, 0.14);
    color: #10B981;
}

/* ── Dashboard Main ── */
.hm-dash-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #F8FAFC;
    overflow: hidden;
}

/* Stat cards row — 2×2 grid for breathing room */
.hm-dash-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    flex-shrink: 0;
}

.hm-dstat {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 9px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.hm-dstat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hm-dstat-body { min-width: 0; flex: 1; }

.hm-dstat-label {
    font-size: 0.62rem;
    color: #9CA3AF;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-dstat-val {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-dstat-change {
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Chart card */
.hm-chart-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    padding: 9px 10px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hm-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.hm-chart-title {
    font-size: 0.6rem;
    font-weight: 600;
    color: #374151;
}

.hm-chart-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.52rem;
    color: #9CA3AF;
}

.hm-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

/* Bars container */
.hm-chart-bars-wrap {
    display: flex;
    align-items: stretch;
    gap: 5px;
    flex: 1;
    min-height: 0;
    height: 100px;
}

.hm-cbar-grp {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
}

.hm-cbars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.hm-cbar {
    flex: 1;
    height: var(--h, 20px);
    border-radius: 3px 3px 0 0;
    align-self: flex-end;
    animation: hm-bar-grow 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}

.hm-cbar--rev {
    background: rgba(16, 185, 129, 0.25);
}

.hm-cbar--rev.hm-cbar--active {
    background: linear-gradient(to top, #059669, #10B981, #34D399);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.4);
}

.hm-cbar--exp {
    background: #E5E7EB;
}

.hm-cbar-lbl {
    font-size: 0.46rem;
    color: #9CA3AF;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

/* Invoice list */
.hm-invoice-list {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}

.hm-inv-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.58rem;
}

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

.hm-inv-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hm-inv-dot--paid    { background: #10B981; }
.hm-inv-dot--pending { background: #F59E0B; }

.hm-inv-name {
    flex: 1;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hm-inv-amt {
    color: #111827;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.hm-inv-badge {
    font-size: 0.47rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.hm-inv-badge--paid    { background: rgba(16, 185, 129, 0.1); color: #059669; }
.hm-inv-badge--pending { background: rgba(245, 158, 11, 0.1); color: #D97706; }


/* ══════════════════════════════════════════════════════════════════════════
   02. DASHBOARD SECTION — P&L Analytics Card
   ══════════════════════════════════════════════════════════════════════════ */

.hm-analytics-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}

/* Subtle green glow top-right */
.hm-analytics-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hm-ac-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hm-ac-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
    font-family: var(--font-display);
}

.hm-ac-sub {
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.hm-ac-period {
    display: flex;
    gap: 3px;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 3px;
}

.hm-period-tab {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 5px;
    color: #6B7280;
    cursor: default;
    line-height: 1;
}

.hm-period-tab--active {
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Legend */
.hm-ac-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.hm-ac-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6B7280;
    font-weight: 500;
}

.hm-ac-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Chart bars */
.hm-ac-bars-wrap {
    display: flex;
    align-items: stretch;
    gap: 10px;
    height: 170px;
    margin-bottom: 20px;
    position: relative;
}

/* Horizontal grid lines */
.hm-ac-bars-wrap::before {
    content: '';
    position: absolute;
    inset: 0 0 22px 0;
    background: repeating-linear-gradient(
        to top,
        #F3F4F6 0px, #F3F4F6 1px,
        transparent 1px, transparent 36px
    );
    pointer-events: none;
    z-index: 0;
}

.hm-ac-bar-grp {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.hm-ac-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.hm-ac-bar {
    flex: 1;
    height: var(--h, 40px);
    border-radius: 6px 6px 0 0;
    align-self: flex-end;
}

.hm-ac-bar--rev {
    background: rgba(16, 185, 129, 0.22);
}

.hm-ac-bar--rev.hm-ac-bar--active {
    background: linear-gradient(to top, #059669, #10B981, #34D399);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.hm-ac-bar--exp {
    background: #E5E7EB;
}

.hm-ac-bar-lbl {
    font-size: 0.68rem;
    color: #9CA3AF;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

/* KPI strip */
.hm-ac-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.hm-ac-kpi {
    background: #F8FAFC;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hm-ac-kpi:first-child { border-radius: 12px 0 0 12px; }
.hm-ac-kpi:last-child  { border-radius: 0 12px 12px 0; }

.hm-ac-kpi-label {
    font-size: 0.72rem;
    color: #6B7280;
    font-weight: 500;
}

.hm-ac-kpi-val {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    font-family: var(--font-display);
}

.hm-ac-kpi-val--green { color: #059669; }


/* ══════════════════════════════════════════════════════════════════════════
   03. SOLUTIONS SECTION — Module Launcher Grid
   ══════════════════════════════════════════════════════════════════════════ */

.hm-module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.hm-module-card {
    background: #ffffff;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    cursor: default;
}

.hm-module-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
    border-color: var(--mc-border, #CBD5E1);
}

.hm-mc-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--mc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--mc-color);
}

.hm-mc-body {
    min-width: 0;
    flex: 1;
}

.hm-mc-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-mc-desc {
    font-size: 0.7rem;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-mc-badge {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.hm-mc-badge--amber {
    background: rgba(245, 158, 11, 0.1);
    color: #D97706;
}

.hm-mc-badge--blue {
    background: rgba(99, 102, 241, 0.1);
    color: #4F46E5;
}


/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE OVERRIDES
   ══════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] .hm-browser {
    background: #1A2035;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hm-browser-bar {
    background: #111827;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hm-browser-url {
    background: #1F2937;
    border-color: rgba(255, 255, 255, 0.08);
    color: #9CA3AF;
}

[data-theme="dark"] .hm-browser-tab { background: #374151; }

[data-theme="dark"] .hm-dash-main { background: #111827; }

[data-theme="dark"] .hm-dstat,
[data-theme="dark"] .hm-chart-card,
[data-theme="dark"] .hm-invoice-list {
    background: #1F2937;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hm-dstat-label,
[data-theme="dark"] .hm-chart-legend { color: #6B7280; }

[data-theme="dark"] .hm-dstat-val { color: #F9FAFB; }

[data-theme="dark"] .hm-chart-title { color: #E5E7EB; }

[data-theme="dark"] .hm-cbar--exp { background: #374151; }

[data-theme="dark"] .hm-inv-row { border-bottom-color: rgba(255, 255, 255, 0.04); }

[data-theme="dark"] .hm-inv-name { color: #D1D5DB; }

[data-theme="dark"] .hm-inv-amt { color: #F9FAFB; }

[data-theme="dark"] .hm-analytics-card {
    background: #1A2035;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hm-ac-title { color: #F9FAFB; }

[data-theme="dark"] .hm-ac-period { background: #111827; }

[data-theme="dark"] .hm-period-tab--active {
    background: #1F2937;
    color: #F9FAFB;
}

[data-theme="dark"] .hm-ac-bars-wrap::before {
    background: repeating-linear-gradient(
        to top,
        rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px,
        transparent 1px, transparent 36px
    );
}

[data-theme="dark"] .hm-ac-bar--exp { background: #374151; }

[data-theme="dark"] .hm-ac-kpis { background: rgba(255, 255, 255, 0.04); }

[data-theme="dark"] .hm-ac-kpi { background: #1F2937; }

[data-theme="dark"] .hm-ac-kpi-label { color: #6B7280; }

[data-theme="dark"] .hm-ac-kpi-val { color: #F9FAFB; }

[data-theme="dark"] .hm-module-card {
    background: #1F2937;
    border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .hm-module-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hm-mc-name { color: #F9FAFB; }

[data-theme="dark"] .hm-mc-desc { color: #6B7280; }


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   04. HERO — Watch Demo Play Button Animation
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Browser URL Bar — Typewriter Animation ── */
@keyframes hm-url-type {
    from { max-width: 0; }
    to   { max-width: 200px; }
}

.hm-url-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    vertical-align: bottom;
    /* 18 chars in "app.vigorbooks.com", delay syncs after hero fade-in */
    animation: hm-url-type 1.6s steps(18, end) forwards;
    animation-delay: 0.9s;
}


/* ── Watch Demo — Play Icon Wrap ── */
.play-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Triangle bounce nudge ── */
@keyframes play-nudge {
    0%, 78%, 100% { transform: translateX(0) scale(1); }
    84%           { transform: translateX(4px) scale(1.12); }
    90%           { transform: translateX(-1px) scale(0.97); }
    96%           { transform: translateX(2px) scale(1.04); }
}

.btn-watch-demo .play-icon {
    animation: play-nudge 3.5s ease-in-out infinite;
    transform-origin: center;
}

.btn-watch-demo:hover .play-icon {
    animation-play-state: paused;
    transform: translateX(3px) scale(1.12);
    transition: transform 0.2s ease;
}


/* ══════════════════════════════════════════════════════════════════════════
   04. HERO — Dot Grid Background Overlay
   ══════════════════════════════════════════════════════════════════════════ */

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero::before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
}


/* ══════════════════════════════════════════════════════════════════════════
   05. HERO — Stat Icon Cards
   ══════════════════════════════════════════════════════════════════════════ */

.hm-hero-stats {
    display: flex;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
}

.hm-hero-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.hm-hero-stat:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.hm-hs-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hm-hs-body { min-width: 0; }

.hm-hs-num {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1.1;
}

/* Override the large default .stat-number styles inside our icon cards */
.hm-hero-stat .stat-number {
    font-family: var(--font-display) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.hm-hero-stat .stat-suffix {
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.hm-hs-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    white-space: nowrap;
}


/* ══════════════════════════════════════════════════════════════════════════
   06. HERO BROWSER — Bar Chart Entry Animation
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes hm-bar-grow {
    from { height: 0; opacity: 0; }
    to   { height: var(--h, 20px); opacity: 1; }
}

/* Staggered grow-up animation — delays account for hero fade-in (delay-2 = 0.2s) */
.hm-cbar-grp:nth-child(1) .hm-cbar { animation-delay: 0.7s; }
.hm-cbar-grp:nth-child(2) .hm-cbar { animation-delay: 0.85s; }
.hm-cbar-grp:nth-child(3) .hm-cbar { animation-delay: 1.0s; }
.hm-cbar-grp:nth-child(4) .hm-cbar { animation-delay: 1.15s; }
.hm-cbar-grp:nth-child(5) .hm-cbar { animation-delay: 1.3s; }
.hm-cbar-grp:nth-child(6) .hm-cbar { animation-delay: 1.45s; }


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .hm-browser {
        transform: perspective(1400px) rotateY(-1.5deg);
    }
    .hm-browser:hover {
        transform: perspective(1400px) rotateY(0deg);
    }
}

@media (max-width: 900px) {
    .hm-sidebar { width: 88px; }
    .hm-snav-item span { display: none; }
    /* stat grid stays 2×2 — already correct */
    .hm-ac-kpis { grid-template-columns: repeat(2, 1fr); }
    .hm-ac-kpi:first-child { border-radius: 12px 0 0 0; }
    .hm-ac-kpi:last-child  { border-radius: 0 0 12px 0; }
}

@media (max-width: 768px) {
    .hm-hero-stats { gap: 8px; }
    .hm-hero-stat { padding: 11px 12px; gap: 9px; }
    .hm-hs-icon { width: 34px; height: 34px; }
    .hm-hero-stat .stat-number { font-size: 1.2rem !important; }
    .hm-hero-stat .stat-suffix { font-size: 0.9rem !important; }
    .hm-hs-label { font-size: 0.65rem; }

    .hm-browser {
        transform: none;
    }
    .hm-browser:hover {
        transform: none;
    }
    .hm-app-body { height: 320px; }
    .hm-sidebar { width: 56px; }
    .hm-sidebar-nav { padding: 0 4px; }
    .hm-snav-item { justify-content: center; padding: 7px 4px; }
    .hm-sidebar-brand { padding: 0 8px 10px; }
    .hm-browser-url .hm-url-text { display: none; }
    .hm-chart-card { display: none; }

    .hm-analytics-card { padding: 20px 18px; }
    .hm-ac-bars-wrap { height: 120px; }
    .hm-ac-kpis { grid-template-columns: repeat(2, 1fr); }

    .hm-module-grid { grid-template-columns: 1fr; gap: 10px; }
}
