/* ═══════════════════════════════════════════
   In The Groove Music (ITGM) — Design System
   Core Brand Styling & Layout Framework
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Instrument+Sans:ital,wdth,wght@0,75..100,400..900;1,75..100,400..900&family=Instrument+Serif:ital,wght@0,400;1,400&display=swap');

:root {
    /* Font Families */
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Brand Palette */
    --brand-red: #1c1c1f;
    --brand-red-rgb: 28, 28, 31;
    --brand-red-light: #333;
    --brand-red-glow: rgba(28, 28, 31, 0.18);
    --brand-red-subtle: rgba(28, 28, 31, 0.05);

    /* Backgrounds */
    --bg-deep: #fcfcfd;
    --bg-base: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8fa;
    --bg-elevated: #ffffff;
    --bg-input: #f0f0f4;
    --bg-overlay: rgba(255, 255, 255, 0.9);

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.04);
    --border-base: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.16);
    --border-focus: rgba(229, 35, 32, 0.4);

    /* Typography Hues */
    --text-white: #0c0c0e;
    --text-primary: #1c1c1f;
    --text-secondary: #55555c;
    --text-muted: #8e8e93;

    /* Spacing & Sizing */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --header-h: 70px;
    --max-w: 1280px;

    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.35s var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-deep);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-deep);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* ─── Scrollbar ─── */
:not(html):not(body)::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
:not(html):not(body)::-webkit-scrollbar-track {
    background: transparent;
}
:not(html):not(body)::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
:not(html):not(body)::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 35, 32, 0.4);
}

/* ─── Global Layout ─── */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.content-wrapper {
    flex: 1;
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 24px 100px;
    animation: fade-in 0.6s var(--ease-out);
}

/* ─── Typography Utility ─── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 600; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
    letter-spacing: 0;
}

/* ─── Custom Layout Grid & Flex ─── */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── Abstract Wave Background ─── */
.radial-wave-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(229, 35, 32, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(229, 35, 32, 0.025) 0%, transparent 40%),
        radial-gradient(ellipse at 50% -30%, rgba(229, 35, 32, 0.06) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

/* ─── Shared Header Styling ─── */
itgm-header {
    display: block;
    width: 100%;
}

.nav-header {
    position: sticky;
    top: 0;
    height: var(--header-h);
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    z-index: 1000;
    transition: background var(--transition-fast);
}

.nav-header-inner {
    width: 100%;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* ── Logo: stacked wordmark ── */
.brand-logo {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.logo-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.logo-subtitle {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ── Center Navigation — absolutely centered in the full header ── */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 0;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Right: Actions ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.nav-login-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.nav-login-link:hover,
.nav-login-link.active {
    color: var(--text-primary);
}

.nav-quote-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    background: transparent;
    border: 1.5px solid var(--text-primary);
    padding: 7px 16px;
    border-radius: 0;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
}

.nav-quote-btn:hover {
    background: var(--text-primary);
    color: #ffffff;
}

/* Legacy portal btn — keep for any remaining usages */
.nav-portal-btn {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    background: transparent;
    border: 1.5px solid var(--text-primary);
    padding: 7px 16px;
    border-radius: 0;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-portal-btn:hover {
    background: var(--text-primary);
    color: #ffffff;
}

.nav-portal-btn.active {
    background: var(--text-primary);
    color: #ffffff;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-h));
    background: var(--bg-deep);
    z-index: 999;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    border-top: 1px solid var(--border-subtle);
}

.mobile-nav-panel.open {
    transform: translateX(0);
}

.mobile-nav-panel .nav-link {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 0;
}

/* ─── Shared Footer Styling ─── */
itgm-footer {
    display: block;
    width: 100%;
}
.site-footer {
    background: #1c1c1f;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 64px 5% 40px;
    margin-top: auto;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 52px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Logo wordmark overrides for dark footer */
.site-footer .logo-title {
    color: rgba(255,255,255,0.95);
}

.site-footer .logo-subtitle {
    color: rgba(255,255,255,0.4);
}

.footer-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.45);
    max-width: 300px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.footer-contacts span strong {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.15s;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.9);
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.3px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* ─── Premium Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--brand-red-rgb), 0.25);
}

.btn-primary:hover {
    background: var(--brand-red-light);
    box-shadow: 0 4px 24px rgba(var(--brand-red-rgb), 0.4);
    transform: translateY(-1.5px);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-base);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--border-hover);
    color: var(--text-white);
    transform: translateY(-1.5px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.03);
}

/* ─── Cards & Staggered Elements ─── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-fast);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Staggered Portfolio Card layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

.portfolio-card {
    grid-column: span 6;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.portfolio-card:nth-child(odd) {
    grid-column: span 7;
}

.portfolio-card:nth-child(even) {
    grid-column: span 5;
    margin-top: 40px; /* creates staggered editorial rhythm */
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: all var(--transition-base);
}

.portfolio-card:hover .portfolio-card-img {
    opacity: 0.95;
    transform: scale(1.03);
}

.portfolio-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-red-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.portfolio-client {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── Form Inputs ─── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-white);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px var(--brand-red-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ─── Animations ─── */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 1024px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 1.85rem; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .portfolio-grid { gap: 24px; }
    .portfolio-card:nth-child(even) { margin-top: 0; }
    .portfolio-card:nth-child(odd), .portfolio-card:nth-child(even) { grid-column: span 6; }
}

@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    .brand-logo {
        margin-right: auto !important;
    }
    .main-navigation { display: none; }
    .nav-actions {
        display: flex !important;
        align-items: center !important;
    }
    .nav-actions > a,
    .nav-actions #navQuoteBtn,
    .nav-actions #navLoginBtn,
    .nav-actions .nav-login-link-abc {
        display: none !important;
    }
    .user-nav {
        align-items: center !important;
        margin-right: 16px !important;
    }
    .user-nav-btn {
        align-items: center !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .user-nav-name,
    .user-nav-btn svg {
        display: none !important;
    }
    .user-nav-avatar {
        border: 2px solid #ffffff !important;
        box-sizing: border-box !important;
    }
    .hamburger-menu {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 20px; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .portfolio-card:nth-child(odd), .portfolio-card:nth-child(even) { grid-column: span 12; }

    .mobile-nav-panel .nav-quote-btn {
        margin-left: 0;
        text-align: center;
        width: 100%;
        display: block;
        padding: 12px 16px;
        border: 1.5px solid var(--text-primary);
        border-radius: 0;
    }

    .nav-header-inner {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }
}

/* ─── Shared Hero Backdrop & Canvas EQ ─── */
.hero-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-backdrop canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.95) 80%);
    pointer-events: none;
}

/* ─── Scroll Down Indicator ─── */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    z-index: 2;
}

.mouse-wheel {
    width: 20px;
    height: 32px;
    border: 1px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.mouse-wheel::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: var(--brand-red-light);
    border-radius: 1px;
    animation: wheel-pulse 1.6s infinite;
}

@keyframes wheel-pulse {
    0% { top: 6px; opacity: 1; }
    100% { top: 18px; opacity: 0; }
}

/* ─── Request a Quote Modal ─── */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: qrFadeIn 0.2s ease;
}

.qr-modal-overlay.hidden {
    display: none;
}

@keyframes qrFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.qr-modal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0;
    width: 100%;
    max-width: 740px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    animation: qrSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
}

.qr-modal.lm-modal {
    max-width: 460px;
}

@keyframes qrSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    border-radius: 0;
    transition: color 0.15s, background 0.15s;
    padding: 0;
}

.qr-modal-close:hover {
    color: #1c1c1f;
    background: rgba(0, 0, 0, 0.05);
}

.qr-modal-header {
    margin-bottom: 28px;
}

.qr-modal-eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
    margin-bottom: 8px;
}

.qr-modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: #1c1c1f;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.qr-modal-sub {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.45);
    line-height: 1.5;
    margin: 0;
}

.qr-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.qr-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.qr-form-row .qr-form-group {
    margin-bottom: 0;
}

.qr-form-group label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.5);
}

.qr-required { color: var(--brand-red); }

.qr-form-group input,
.qr-form-group select,
.qr-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: 0;
    background: #fafafa;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: #1c1c1f;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.qr-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fafafa;
    padding-right: 36px;
    cursor: pointer;
}

.qr-form-group input:focus,
.qr-form-group select:focus,
.qr-form-group textarea:focus {
    border-color: #1c1c1f;
    background: #fff;
}

.qr-form-group textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

.qr-form-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.qr-submit-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: #1c1c1f;
    border: none;
    padding: 12px 28px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    white-space: nowrap;
    flex-shrink: 0;
}

.qr-submit-btn:hover { background: var(--brand-red); }
.qr-submit-btn:active { transform: scale(0.98); }

.qr-privacy {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.35);
    line-height: 1.4;
}

.qr-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px;
    gap: 12px;
}

.qr-success svg { color: #16a34a; }

.qr-success p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.65);
    margin: 0;
}

.qr-success.hidden { display: none; }

/* Login modal extras */
.lm-demo-btn {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-red);
    background: rgba(229, 35, 32, 0.05);
    border: 1.5px solid rgba(229, 35, 32, 0.2);
    padding: 11px 16px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    width: 100%;
    text-align: center;
}

.lm-demo-btn:hover {
    background: rgba(229, 35, 32, 0.1);
    border-color: var(--brand-red);
}

.lm-footer-note {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.4);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    line-height: 1.5;
}

.lm-footer-note a {
    color: #1c1c1f;
    text-decoration: underline;
}

/* Switch / back buttons (inline text triggers) */
.lm-switch-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: inherit;
    color: #1c1c1f;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.lm-switch-btn:hover { color: #000; }

/* Back row */
.lm-back-row {
    margin-bottom: 16px;
}

.lm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: color 0.15s;
}

.lm-back-btn:hover { color: #1c1c1f; }

/* OAuth buttons */
.lm-oauth-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.lm-oauth-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: 0;
    background: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: #1c1c1f;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-align: left;
}

.lm-oauth-btn:hover {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.25);
}

/* OR divider */
.lm-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(0, 0, 0, 0.3);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.lm-divider::before,
.lm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

/* Two-col name row */
.lm-reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .lm-reg-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .qr-modal { padding: 28px 20px; }
    .qr-form-row { grid-template-columns: 1fr; }
    .qr-form-row .qr-form-group { margin-bottom: 16px; }
    .qr-form-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    .qr-submit-btn { width: 100%; text-align: center; }
}

/* Custom thumbnail position overrides */
img[src*="brave-together-thumb"] {
    object-position: left center !important;
}

/* ─── Stage Form / Multi-step Wizard ─── */
.qr-form-step {
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.qr-form-step.hidden {
    display: none !important;
}

/* Steps Indicator */
.qr-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.qr-step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.35;
    transition: opacity 0.25s ease;
}
.qr-step-dot.active {
    opacity: 1;
}
.qr-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1c1c1f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: background-color 0.25s ease;
}
.qr-step-dot.active .qr-step-num {
    background: var(--brand-red, #e52320);
}
.qr-step-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1c1c1f;
}
.qr-step-line {
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

/* Step 2 Layout: Left Column (Media) & Right Column (Fields) */
.qr-step2-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    margin-bottom: 16px;
}
.qr-media-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qr-media-column-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}
.qr-media-checkboxes-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qr-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: normal;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.75);
    transition: color 0.15s;
    user-select: none;
}
.qr-checkbox-label:hover {
    color: #000;
}
.qr-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    cursor: pointer;
    margin: 0;
    -webkit-appearance: checkbox;
    appearance: checkbox;
}

/* Right column licensing grid */
.qr-licensing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

/* Spanning styles */
.qr-full-width {
    grid-column: span 2;
}

/* Premium Fee Input with Inline Prefix/Suffix */
.qr-fee-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    background: #fafafa;
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    transition: border-color 0.15s, background-color 0.15s;
}
.qr-fee-wrapper input {
    border: none !important;
    background: transparent !important;
    flex: 1;
    padding: 0 8px;
    height: 100%;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: #1c1c1f;
    outline: none;
    box-shadow: none !important;
    width: auto !important;
    margin-bottom: 0 !important;
}
.qr-fee-prefix {
    padding-left: 12px;
    color: rgba(0,0,0,0.4);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    user-select: none;
}
.qr-fee-suffix {
    padding-right: 12px;
    margin-left: 8px;
    color: rgba(0,0,0,0.45);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    user-select: none;
}
.qr-fee-wrapper:focus-within {
    border-color: #1c1c1f;
    background: #fff;
}

/* Navigation buttons */
.qr-back-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(0,0,0,0.5);
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.15);
    padding: 11px 28px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s;
}
.qr-back-btn:hover {
    color: #1c1c1f;
    border-color: #1c1c1f;
    background: rgba(0,0,0,0.02);
}
.qr-next-btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: #1c1c1f;
    border: none;
    padding: 12px 28px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}
.qr-next-btn:hover {
    background: var(--brand-red, #e52320);
}
.qr-next-btn:active {
    transform: scale(0.98);
}

/* Invalid highlighting */
.qr-form-group input.invalid,
.qr-form-group select.invalid,
.qr-form-group textarea.invalid,
.qr-fee-wrapper.invalid {
    border-color: var(--brand-red, #e52320) !important;
    background: rgba(229, 35, 32, 0.02);
}

@media (max-width: 1024px) {
    .qr-step2-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .qr-licensing-grid {
        grid-template-columns: 1fr;
    }
    .qr-full-width {
        grid-column: span 1;
    }
}

.qr-form-group input:not([type="checkbox"]),
.qr-form-group select {
    height: 42px;
}

.qr-form-group input[type="date"] {
    background-color: #fafafa !important;
    font-family: var(--font-sans) !important;
    font-size: 0.92rem !important;
    color: #1c1c1f !important;
    padding: 10px 14px !important;
    height: 42px !important;
    box-sizing: border-box !important;
    border: 1.5px solid rgba(0, 0, 0, 0.14) !important;
    border-radius: 0 !important;
}

.qr-form-group input[type="date"]:focus {
    background-color: #fff !important;
    border-color: #1c1c1f !important;
}

.qr-form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.qr-form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════
   User Nav — Avatar Dropdown
   ═══════════════════════════════════════════ */

.user-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.user-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: var(--text-primary);
    font-family: var(--font-sans);
}
.user-nav-btn:hover {
    background: none;
    transform: scale(1.05);
}

.user-nav-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    user-select: none !important;
    flex-shrink: 0 !important;
    background: var(--bg-base);
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.user-nav-btn:hover .user-nav-avatar,
.user-nav-avatar:hover {
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.05);
}

.user-nav-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
}

.user-nav-name {
    display: none !important;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.05);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.12s ease;
    text-align: left;
    width: 100%;
}
.user-dropdown-item svg { color: var(--text-muted); flex-shrink: 0; }
.user-dropdown-item:hover { background: var(--bg-base); }

.user-dropdown-logout { color: #dc2626; }
.user-dropdown-logout svg { color: #dc2626; }
.user-dropdown-logout:hover { background: rgba(239,68,68,0.05); }

/* ─── Role Badge (used on profile page) ─── */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(28,28,31,0.06);
    border: 1px solid rgba(28,28,31,0.1);
    color: var(--text-secondary);
}
.role-badge.admin  { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.15); color: #b91c1c; }
.role-badge.editor { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.15); color: #1d4ed8; }

/* Placeholder Styles */
.qr-form-group select.unselected-placeholder,
.qr-form-group input[type="date"].unselected-placeholder {
    color: rgba(11, 11, 13, 0.35) !important;
}
