/* ==========================================================================
   HAAA.IN — FLAGSHIP APPLE ECOSYSTEM PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   08 — MONOCHROME DESIGN LANGUAGE TOKENS
   -------------------------------------------------------------------------- */
:root, [data-theme="dark"] {
    --bg: #000000;
    --bg-soft: #09090b;
    --surface: #101012;
    --surface-elevated: #151518;
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --white-soft: rgba(255, 255, 255, 0.08);

    --svg-bg: #ffffff;
    --svg-stroke: #000000;
    --svg-dot: #000000;

    --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    --stage-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --active-aura: 0 0 35px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 09 — LIGHT MODE TOKENS */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f7f7f8;
    --surface: #ffffff;
    --surface-elevated: #f4f4f5;
    --text: #000000;
    --text-secondary: #52525b;
    --text-tertiary: #71717a;
    --border: rgba(0, 0, 0, 0.09);
    --border-strong: rgba(0, 0, 0, 0.18);
    --white-soft: rgba(0, 0, 0, 0.05);

    --svg-bg: #000000;
    --svg-stroke: #ffffff;
    --svg-dot: #ffffff;

    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --stage-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(0, 0, 0, 0.08);
    --active-aura: 0 0 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 10px;
    --radius-ctrl: 12px;
    --radius-card: 20px;
    --radius-stage: 28px;
    --radius-ios-squircle: 22.5%;
}

/* --------------------------------------------------------------------------
   02 — PRIMARY 100VH MANDATORY RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body.haaa-studio-body {
    height: 100dvh;
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.35s ease, color 0.35s ease;
    position: relative;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
}

/* 26 — PREMIUM MICROSCOPIC FILM GRAIN */
.film-grain-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 18 — AMBIENT MOUSE SPOTLIGHT FOLLOWER */
.mouse-spotlight {
    position: fixed;
    top: 0; left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 45%, transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(calc(var(--mouse-x, 50vw) - 300px), calc(var(--mouse-y, 50vh) - 300px));
    transition: transform 0.08s ease-out;
}

[data-theme="light"] .mouse-spotlight {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, transparent 70%);
}

/* 29 — TOAST NOTIFICATION CONTAINER */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: var(--surface-elevated);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 10px 18px;
    border-radius: var(--radius-ctrl);
    font-size: clamp(0.78rem, 1dvw, 0.85rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    transition: all 0.35s var(--ease-spring);
}

.toast-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-item i {
    width: 16px;
    height: 16px;
    color: var(--text);
}

/* --------------------------------------------------------------------------
   11 — ULTRA-THIN FLOATING HEADER
   -------------------------------------------------------------------------- */
.studio-header {
    height: clamp(54px, 7dvh, 64px);
    width: 100%;
    padding: 0 clamp(14px, 2dvw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}

[data-theme="light"] .studio-header {
    background: rgba(255, 255, 255, 0.7);
}

.header-left {
    display: flex;
    align-items: center;
}

.brand-monogram-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s var(--ease-spring);
}

.brand-monogram-link:hover {
    transform: scale(1.03);
}

.brand-monogram-svg {
    width: 30px;
    height: 30px;
}

.svg-rect-bg { fill: var(--svg-bg); }
.svg-path-h { stroke: var(--svg-stroke); }
.svg-circle-dot { fill: var(--svg-dot); }

.brand-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.8dvw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* 12 — CATEGORY FILTERING NAV */
.category-filter-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--white-soft);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: clamp(0.74rem, 0.9dvw, 0.8rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
}

.cat-pill:hover {
    color: var(--text);
    background: var(--white-soft);
}

.cat-pill.active {
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.pill-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Header Right Controls */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    height: 32px;
    padding: 0 10px;
    background: var(--white-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-ctrl);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    position: relative;
    transition: all 0.25s var(--ease-spring);
}

.header-action-btn i {
    width: 14px;
    height: 14px;
}

.search-kbd-hint {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-tertiary);
    background: var(--white-soft);
    padding: 1px 4px;
    border-radius: 4px;
}

.header-action-btn:hover {
    background: var(--surface-elevated);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

.mac-story-header-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
}

.mac-story-header-pill i {
    width: 13px; height: 13px;
}

.mac-story-header-pill:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   03 — PAGE ARCHITECTURE: TWO-TIER STAGE WORKSPACE
   -------------------------------------------------------------------------- */
.studio-workspace {
    height: calc(100dvh - clamp(54px, 7dvh, 64px));
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2dvh, 14px);
    padding: clamp(8px, 1.2dvh, 14px) clamp(12px, 1.8dvw, 24px);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   TOP TIER: CINEMATIC PRODUCT SPOTLIGHT STAGE (56–60% Height)
   -------------------------------------------------------------------------- */
.product-spotlight-stage {
    height: 58%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-stage);
    padding: clamp(14px, 2.2dvh, 26px) clamp(16px, 2.5dvw, 32px);
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: clamp(14px, 2dvw, 28px);
    align-items: center;
    box-shadow: var(--stage-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.35s var(--ease-spring);
}

/* 21 — STAGE TRANSITION STAGGERED FADE-SLIDE */
.stage-animate-entrance {
    animation: fadeSlideUp 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Left Area: Icon & Title */
.stage-left-area {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.2dvh, 14px);
}

.stage-icon-wrap {
    position: relative;
    width: clamp(90px, 11dvh, 140px);
    height: clamp(90px, 11dvh, 140px);
}

/* 07 — APP ICON SYSTEM (Mandatory Apple Continuous Squircle Rule) */
.app-icon {
    border-radius: 22.5%;
    object-fit: cover;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 18px 50px rgba(0,0,0,.35);
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.35s var(--ease-spring);
}

.stage-icon-wrap:hover .app-icon {
    transform: scale(1.05) rotate(-2deg);
}

.stage-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stage-app-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.8dvw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
}

.stage-category-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-mono-pill {
    font-size: clamp(0.68rem, 0.8dvw, 0.74rem);
    padding: 3px 10px;
    background: var(--white-soft);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Center Area: Overview & Specifications */
.stage-center-area {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.5dvh, 18px);
}

.stage-overview-text {
    font-size: clamp(0.85rem, 1.1dvw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Specification Grid */
.stage-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.spec-tile {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-ctrl);
    padding: clamp(6px, 1dvh, 10px) clamp(10px, 1dvw, 14px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 0.64rem;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-val-mono {
    font-family: var(--font-mono);
    font-size: clamp(0.78rem, 0.95dvw, 0.88rem);
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Capabilities List */
.stage-capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cap-row-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.78rem, 0.95dvw, 0.85rem);
    color: var(--text);
}

.cap-row-item i {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Right Area: Ghost Branding & Action Bar */
.stage-right-area {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.stage-ghost-watermark {
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8dvw, 7rem);
    font-weight: 900;
    color: var(--text);
    opacity: 0.035;
    pointer-events: none;
    user-select: none;
    line-height: 0.9;
}

.stage-action-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    width: 100%;
    z-index: 2;
}

.btn-primary-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(10px, 1.4dvh, 14px);
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(0.85rem, 1dvw, 0.92rem);
    border-radius: var(--radius-ctrl);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.25s var(--ease-spring);
}

.btn-primary-store:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-primary-store:active {
    transform: scale(0.97);
}

.btn-sub-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(8px, 1.1dvh, 11px);
    background: var(--white-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: clamp(0.78rem, 0.9dvw, 0.84rem);
    font-weight: 600;
    border-radius: var(--radius-ctrl);
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
}

.btn-sub-action:hover {
    background: var(--surface-elevated);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.btn-sub-action:active {
    transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   39 — FEATURED MAC STORY SPOTLIGHT LAYOUT
   -------------------------------------------------------------------------- */
.mac-story-stage-layout {
    grid-template-columns: 1fr 1fr;
}

.mac-story-hero-graphic {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    padding: 24px;
}

.mac-story-hero-graphic i {
    width: 48px;
    height: 48px;
}

/* --------------------------------------------------------------------------
   04 — BOTTOM TIER: APPLICATION DECK (40–44% Height)
   -------------------------------------------------------------------------- */
.application-bento-deck-section {
    height: 42%;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1dvh, 10px);
    overflow: hidden;
}

.deck-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.deck-section-label {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 1.1dvw, 0.95rem);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.deck-count-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    background: var(--white-soft);
    padding: 2px 7px;
    border-radius: 4px;
}

.deck-kbd-nav-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.kbd-key {
    font-family: var(--font-mono);
    background: var(--white-soft);
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 3px;
}

/* Bento Deck Grid */
.bento-deck-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(8px, 1dvh, 12px);
    overflow: hidden;
}

/* 23 — APP CARD DESIGN & 20 — ACTIVE CARD AURA */
.app-bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: clamp(10px, 1.4dvh, 14px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.3s var(--ease-spring), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-bento-card:hover {
    background: var(--surface-elevated);
    border-color: var(--border-strong);
    transform: translateY(-3px) scale(1.015);
}

.app-bento-card.active {
    background: var(--surface-elevated);
    border-color: var(--border-strong);
    box-shadow: var(--active-aura);
    animation: monoGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes monoGlowPulse {
    0% { box-shadow: 0 0 18px rgba(255, 255, 255, 0.16); }
    100% { box-shadow: 0 0 35px rgba(255, 255, 255, 0.32); }
}

[data-theme="light"] .app-bento-card.active {
    animation: monoGlowPulseLight 4s ease-in-out infinite alternate;
}

@keyframes monoGlowPulseLight {
    0% { box-shadow: 0 0 15px rgba(0, 0, 0, 0.12); }
    100% { box-shadow: 0 0 28px rgba(0, 0, 0, 0.22); }
}

.card-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-squircle-box {
    width: clamp(40px, 5dvh, 52px);
    height: clamp(40px, 5dvh, 52px);
    flex-shrink: 0;
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.card-app-title {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 1.2dvw, 1.1rem);
    font-weight: 700;
}

.card-app-cat {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.card-purpose-text {
    font-size: clamp(0.75rem, 0.9dvw, 0.8rem);
    color: var(--text-secondary);
    line-height: 1.3;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--white-soft);
}

.card-quick-view {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 600;
}

.card-arrow-icon {
    width: 13px;
    height: 13px;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.app-bento-card:hover .card-arrow-icon {
    transform: translateX(3px);
    color: var(--text);
}

/* Distinct Editorial Card for Featured Mac Story */
.mac-story-editorial-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-strong);
}

.mac-story-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   15 & 16 — MODAL DIALOGS (COMMAND PALETTE & QR SCANNER)
   -------------------------------------------------------------------------- */
.modal-backdrop-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cmd-palette-modal {
    background: var(--surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-stage);
    width: 90%;
    max-width: 580px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: translateY(-12px) scale(0.97);
    transition: transform 0.3s var(--ease-spring);
}

.modal-backdrop-overlay.active .cmd-palette-modal {
    transform: translateY(0) scale(1);
}

.cmd-search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.cmd-input-icon {
    width: 20px;
    height: 20px;
    color: var(--text);
}

.cmd-search-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
}

.cmd-esc-hint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    background: var(--white-soft);
    padding: 2px 6px;
    border-radius: 4px;
}

.cmd-results-container {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmd-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-ctrl);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cmd-item-row:hover, .cmd-item-row.selected {
    background: var(--white-soft);
    transform: translateX(3px);
}

.cmd-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.cmd-item-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.cmd-item-cat {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.cmd-palette-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.cmd-palette-footer kbd {
    font-family: var(--font-mono);
    background: var(--white-soft);
    padding: 1px 4px;
    border-radius: 3px;
}

/* QR Modal */
.qr-modal-dialog {
    background: var(--surface-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-stage);
    width: 90%;
    max-width: 380px;
    padding: 26px;
    text-align: center;
    position: relative;
    transform: translateY(-12px) scale(0.97);
    transition: transform 0.3s var(--ease-spring);
}

.modal-backdrop-overlay.active .qr-modal-dialog {
    transform: translateY(0) scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
}

.qr-modal-body img {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-card);
    background: #fff;
    padding: 8px;
    margin: 16px 0;
}

/* --------------------------------------------------------------------------
   30 & 31 — RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    html, body {
        height: auto;
        overflow-y: auto;
    }

    .studio-header {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 10px;
    }

    .category-filter-nav {
        overflow-x: auto;
        max-width: 100%;
    }

    .studio-workspace {
        height: auto;
        padding: 12px;
    }

    .product-spotlight-stage {
        height: auto;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .application-bento-deck-section {
        height: auto;
    }

    .bento-deck-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 600px) {
    .bento-deck-grid {
        grid-template-columns: 1fr;
    }
}
