/* =========================================================================
   Holiday Bright Lights Designer — global theme
   -------------------------------------------------------------------------
   Tenant brand colors are injected by _Layout.cshtml as CSS custom
   properties on :root (var(--hbl-*)). Everything in this file consumes
   those tokens so every deployment can be re-themed without rebuilding
   styles. Layout is mobile-first; desktop tweaks live in @media queries.
   ========================================================================= */

:root {
    /* Fallbacks — overridden per-tenant inline in _Layout.cshtml */
    --hbl-primary: #0b3d2e;
    --hbl-primary-contrast: #ffffff;
    --hbl-secondary: #c8102e;
    --hbl-accent: #f5b301;
    --hbl-surface: #ffffff;
    --hbl-bg: #f7f5f0;
    --hbl-text: #111827;
    --hbl-muted: #5f6b7a;

    --hbl-radius-sm: 0.5rem;
    --hbl-radius: 0.875rem;
    --hbl-radius-lg: 1.25rem;
    --hbl-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.06);
    --hbl-shadow: 0 6px 24px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.06);
    --hbl-shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.16);
    --hbl-transition: 180ms cubic-bezier(.2,.7,.3,1);
}

html { font-size: 15px; }

@media (min-width: 768px) {
    html { font-size: 16px; }
}

.hbl-body {
    background-color: var(--hbl-bg);
    color: var(--hbl-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    line-height: 1.6;
}

.hbl-main {
    flex: 1 0 auto;
    padding-bottom: 3rem;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

p {
    line-height: 1.65;
}

/* Focus styles: keep accessible, override Bootstrap blue with brand color. */
.btn:focus, .btn:active:focus,
.form-control:focus, .form-check-input:focus,
a:focus-visible {
    box-shadow: 0 0 0 0.1rem var(--hbl-surface), 0 0 0 0.25rem var(--hbl-primary);
    outline: none;
}

.hbl-skip-link {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: var(--hbl-primary);
    color: var(--hbl-primary-contrast);
    padding: 0.5rem 0.875rem;
    border-radius: var(--hbl-radius-sm);
    z-index: 1080;
}

/* ============================ Header / Nav ============================ */

.hbl-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--hbl-surface);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hbl-navbar { padding-block: 0.75rem; }

.hbl-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    color: var(--hbl-text) !important;
}

.hbl-brand__logo {
    height: 1.75rem;
    width: auto;
    max-width: 8rem;
    object-fit: contain;
}

.hbl-brand__name {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    color: var(--hbl-text);
}

/* Centered marketing nav (Inspiration / How it works / Features / Pricing) */
.hbl-navbar__primary .nav-link {
    color: var(--hbl-text);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--hbl-radius-sm);
    transition: color var(--hbl-transition), background-color var(--hbl-transition);
    letter-spacing: 0.01em;
}

.hbl-navbar__primary .nav-link:hover,
.hbl-navbar__primary .nav-link:focus {
    color: var(--hbl-primary);
    background-color: color-mix(in srgb, var(--hbl-primary) 7%, transparent);
}

/* Right-side actions: "Sign in" plus the pill CTA. */
.hbl-navbar__actions .hbl-navbar__signin {
    color: var(--hbl-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--hbl-radius-sm);
    transition: color var(--hbl-transition);
}

.hbl-navbar__actions .hbl-navbar__signin:hover,
.hbl-navbar__actions .hbl-navbar__signin:focus {
    color: var(--hbl-primary);
}

.hbl-navbar__actions .btn-hbl-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

/* Keep any legacy generic nav-links (used on inner pages) styled consistently. */
.hbl-navbar .nav-link {
    color: var(--hbl-text);
    font-weight: 500;
    border-radius: var(--hbl-radius-sm);
    transition: background-color var(--hbl-transition), color var(--hbl-transition);
}

.hbl-navbar .nav-link:hover,
.hbl-navbar .nav-link:focus {
    color: var(--hbl-primary);
}

/* Collapsed (mobile) layout: stack everything cleanly. */
@media (max-width: 991.98px) {
    .hbl-navbar__collapse {
        padding-top: 0.5rem;
        gap: 0.25rem;
    }

    .hbl-navbar__actions {
        margin-top: 0.25rem;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        padding-top: 0.5rem;
    }
}

/* ============================ Buttons ============================ */

.btn-hbl-primary {
    background-color: var(--hbl-primary);
    color: var(--hbl-primary-contrast);
    border: 1px solid var(--hbl-primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.625rem 1.375rem;
    letter-spacing: 0.01em;
    transition: transform var(--hbl-transition), box-shadow var(--hbl-transition), background-color var(--hbl-transition);
}

.btn-hbl-primary:hover,
.btn-hbl-primary:focus {
    background-color: color-mix(in srgb, var(--hbl-primary) 85%, black);
    color: var(--hbl-primary-contrast);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--hbl-primary) 40%, transparent);
}

.btn-hbl-primary:active {
    transform: translateY(0);
}

.btn-hbl-ghost {
    background-color: transparent;
    color: var(--hbl-primary);
    border: 1.5px solid color-mix(in srgb, var(--hbl-primary) 40%, transparent);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.925rem;
    padding: 0.625rem 1.375rem;
    letter-spacing: 0.01em;
    transition: background-color var(--hbl-transition), color var(--hbl-transition), border-color var(--hbl-transition);
}

.btn-hbl-ghost:hover,
.btn-hbl-ghost:focus {
    background-color: color-mix(in srgb, var(--hbl-primary) 8%, transparent);
    border-color: color-mix(in srgb, var(--hbl-primary) 65%, transparent);
    color: var(--hbl-primary);
}

/* ============================ Hero ============================ */

.hbl-hero {
    position: relative;
    padding: 3rem 0 2.5rem;
    background:
        radial-gradient(1200px 600px at 90% -10%, color-mix(in srgb, var(--hbl-accent) 25%, transparent), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--hbl-secondary) 18%, transparent), transparent 60%),
        linear-gradient(180deg, color-mix(in srgb, var(--hbl-primary) 8%, var(--hbl-bg)) 0%, var(--hbl-bg) 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hbl-hero { padding: 4.5rem 0 3.5rem; }
}

.hbl-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hbl-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
}

.hbl-hero > .container-xxl { position: relative; }

.hbl-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: color-mix(in srgb, var(--hbl-primary) 10%, transparent);
    color: var(--hbl-primary);
    border-radius: 999px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hbl-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
    color: var(--hbl-text);
}

.hbl-hero__title-accent {
    color: var(--hbl-primary);
    background: linear-gradient(120deg, var(--hbl-primary), var(--hbl-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hbl-hero__tagline {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--hbl-muted);
    max-width: 38rem;
    margin-bottom: 1.5rem;
}

.hbl-hero__bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hbl-text);
    margin-block: 0.35rem;
}

.hbl-hero__bullets i {
    color: var(--hbl-primary);
}

.hbl-hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 26rem;
    margin-left: auto;
}

.hbl-hero__visual-card {
    position: absolute;
    background: var(--hbl-surface);
    border-radius: var(--hbl-radius-lg);
    box-shadow: var(--hbl-shadow-lg);
    display: grid;
    place-items: center;
    font-size: 2.75rem;
    color: var(--hbl-primary);
    animation: hbl-float 6s ease-in-out infinite;
}

.hbl-hero__visual-card--1 { width: 58%; height: 58%; top: 4%;  left: 6%;  }
.hbl-hero__visual-card--2 { width: 42%; height: 42%; bottom: 6%; right: 8%; color: var(--hbl-secondary); animation-delay: -2s; }
.hbl-hero__visual-card--3 { width: 32%; height: 32%; top: 38%; right: 0;    color: var(--hbl-accent); animation-delay: -4s; }

@keyframes hbl-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ============================ Section header ============================ */

.hbl-section-header { margin-bottom: 1.5rem; }
.hbl-section-header__title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.25rem; }
.hbl-section-header__sub   { color: var(--hbl-muted); margin-bottom: 0; }

/* ============================ Dashboard cards ============================ */

.hbl-dashboard { padding-block: 2.5rem; }

@media (min-width: 768px) {
    .hbl-dashboard { padding-block: 3.5rem; }
}

.hbl-dashboard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.25rem;
    background: var(--hbl-surface);
    border-radius: var(--hbl-radius);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: var(--hbl-shadow-sm);
    text-decoration: none;
    color: var(--hbl-text);
    transition: transform var(--hbl-transition), box-shadow var(--hbl-transition), border-color var(--hbl-transition);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
    .hbl-dashboard-card { padding: 1.5rem; }
}

.hbl-dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--hbl-card-accent, var(--hbl-primary)) 12%, transparent), transparent 55%);
    opacity: 0;
    transition: opacity var(--hbl-transition);
    pointer-events: none;
}

.hbl-dashboard-card:hover,
.hbl-dashboard-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--hbl-shadow-lg);
    border-color: color-mix(in srgb, var(--hbl-card-accent, var(--hbl-primary)) 35%, transparent);
    color: var(--hbl-text);
}

.hbl-dashboard-card:hover::before,
.hbl-dashboard-card:focus-visible::before { opacity: 1; }

.hbl-dashboard-card--primary   { --hbl-card-accent: var(--hbl-primary); }
.hbl-dashboard-card--secondary { --hbl-card-accent: var(--hbl-secondary); }
.hbl-dashboard-card--accent    { --hbl-card-accent: var(--hbl-accent); }

.hbl-dashboard-card__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: var(--hbl-radius-sm);
    background: color-mix(in srgb, var(--hbl-card-accent, var(--hbl-primary)) 12%, transparent);
    color: var(--hbl-card-accent, var(--hbl-primary));
    font-size: 1.5rem;
}

.hbl-dashboard-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
}

.hbl-dashboard-card__desc {
    color: var(--hbl-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.hbl-dashboard-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    color: var(--hbl-card-accent, var(--hbl-primary));
    font-weight: 600;
}

.hbl-dashboard-card__cta i {
    transition: transform var(--hbl-transition);
}

.hbl-dashboard-card:hover .hbl-dashboard-card__cta i,
.hbl-dashboard-card:focus-visible .hbl-dashboard-card__cta i {
    transform: translateX(3px);
}

.hbl-dashboard-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--hbl-accent);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

/* Staggered entrance — controlled by home-dashboard.js */
[data-hbl-stagger] > .col {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease, transform 400ms ease;
}

[data-hbl-stagger].is-ready > .col {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-hbl-stagger] > .col { opacity: 1; transform: none; transition: none; }
    .hbl-hero__visual-card { animation: none; }
}

/* ============================ Recent designs ============================ */

.hbl-recent { padding-block: 2rem 3rem; }

.hbl-recent-card {
    display: block;
    background: var(--hbl-surface);
    border-radius: var(--hbl-radius);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    text-decoration: none;
    color: var(--hbl-text);
    box-shadow: var(--hbl-shadow-sm);
    transition: transform var(--hbl-transition), box-shadow var(--hbl-transition);
}

.hbl-recent-card:hover,
.hbl-recent-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--hbl-shadow);
    color: var(--hbl-text);
}

.hbl-recent-card__thumb {
    aspect-ratio: 16 / 9;
    background-color: color-mix(in srgb, var(--hbl-primary) 8%, transparent);
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--hbl-primary) 60%, transparent);
    font-size: 2rem;
}

.hbl-recent-card__body { padding: 0.875rem 1rem 1rem; }
.hbl-recent-card__title { font-size: 1rem; margin-bottom: 0.125rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.hbl-recent-card__meta  { font-size: 0.85rem; color: var(--hbl-muted); margin-bottom: 0; }

/* ============================ Empty state ============================ */

.hbl-empty-state {
    background: var(--hbl-surface);
    border: 1px dashed color-mix(in srgb, var(--hbl-primary) 25%, transparent);
    border-radius: var(--hbl-radius);
    padding: 2.5rem 1.25rem;
}

.hbl-empty-state__icon {
    font-size: 2.5rem;
    color: var(--hbl-primary);
    margin-bottom: 0.5rem;
}

.hbl-empty-state__title { font-size: 1.25rem; margin-bottom: 0.25rem; }
.hbl-empty-state__desc  { color: var(--hbl-muted); margin-bottom: 1rem; }

/* ============================ Footer ============================ */

.hbl-footer {
    padding: 1.25rem 0;
    background: var(--hbl-surface);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--hbl-muted);
    font-size: 0.9rem;
}

.hbl-footer__brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.hbl-footer__logo  { height: 1.25rem; width: auto; }
.hbl-footer__links a { color: var(--hbl-muted); text-decoration: none; }
.hbl-footer__links a:hover { color: var(--hbl-primary); }

/* ============================ Misc form styles preserved ============================ */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================================================================
   Page header + stepper (used on Design/Create and other guided flows)
   ========================================================================= */

.hbl-page-header {
    padding: 1.75rem 0 1rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--hbl-primary) 6%, var(--hbl-bg)) 0%, var(--hbl-bg) 100%);
}

@media (min-width: 768px) {
    .hbl-page-header { padding: 2.5rem 0 1.5rem; }
}

.hbl-page-header__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.35rem;
}

.hbl-page-header__sub {
    color: var(--hbl-muted);
    max-width: 42rem;
    margin-bottom: 0;
}

.hbl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--hbl-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hbl-back-link:hover,
.hbl-back-link:focus { color: var(--hbl-primary); }

.hbl-stepper {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    counter-reset: hbl-step;
}

.hbl-stepper__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hbl-muted);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.hbl-stepper__item + .hbl-stepper__item::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: color-mix(in srgb, var(--hbl-muted) 40%, transparent);
    margin-right: 0.25rem;
}

.hbl-stepper__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--hbl-muted) 15%, transparent);
    color: var(--hbl-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.hbl-stepper__item.is-current { color: var(--hbl-text); }
.hbl-stepper__item.is-current .hbl-stepper__num {
    background: var(--hbl-primary);
    color: var(--hbl-primary-contrast);
}

.hbl-stepper__item.is-done .hbl-stepper__num {
    background: color-mix(in srgb, var(--hbl-primary) 18%, transparent);
    color: var(--hbl-primary);
}

/* =========================================================================
   Design / Create — upload dropzone
   ========================================================================= */

.hbl-create { padding-block: 1.5rem 6rem; }

.hbl-create__form { position: relative; }

.hbl-dropzone {
    display: block;
    position: relative;
    width: 100%;
    background: var(--hbl-surface);
    border: 2px dashed color-mix(in srgb, var(--hbl-primary) 35%, transparent);
    border-radius: var(--hbl-radius);
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--hbl-transition), background-color var(--hbl-transition), transform var(--hbl-transition);
}

@media (min-width: 768px) {
    .hbl-dropzone { padding: 3rem 2rem; }
}

.hbl-dropzone:hover,
.hbl-dropzone:focus-within {
    border-color: var(--hbl-primary);
    background: color-mix(in srgb, var(--hbl-primary) 4%, var(--hbl-surface));
}

.hbl-dropzone.is-dragover {
    border-color: var(--hbl-primary);
    background: color-mix(in srgb, var(--hbl-primary) 8%, var(--hbl-surface));
    transform: scale(1.005);
}

.hbl-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.hbl-dropzone__inner,
.hbl-dropzone__filled { position: relative; z-index: 2; }

.hbl-dropzone__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--hbl-primary) 12%, transparent);
    color: var(--hbl-primary);
    font-size: 1.75rem;
}

.hbl-dropzone__title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
}

.hbl-dropzone__sub {
    color: var(--hbl-muted);
    margin-bottom: 0.5rem;
}

.hbl-dropzone__link {
    color: var(--hbl-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hbl-dropzone__meta {
    color: var(--hbl-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.hbl-dropzone__filled-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    margin-bottom: 0.75rem;
    color: var(--hbl-text);
    font-weight: 600;
}

.hbl-dropzone__filled-header i { color: var(--hbl-primary); font-size: 1.15rem; }

.hbl-dropzone__filled-header .btn-link {
    color: var(--hbl-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    z-index: 3;
}

/* Thumbnails */
.hbl-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.hbl-thumb {
    position: relative;
    background: var(--hbl-bg);
    border-radius: var(--hbl-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hbl-thumb__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hbl-thumb__meta {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.55rem 0.5rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.hbl-thumb__name {
    color: var(--hbl-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hbl-thumb__size { color: var(--hbl-muted); }

.hbl-thumb__remove {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color var(--hbl-transition), transform var(--hbl-transition);
}

.hbl-thumb__remove:hover,
.hbl-thumb__remove:focus {
    background: var(--hbl-secondary);
    transform: scale(1.05);
}

/* Hints / FAQ */
.hbl-create__hints {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.hbl-create__faq {
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--hbl-radius-sm);
    padding: 0.75rem 1rem;
}

.hbl-create__faq[open] { box-shadow: var(--hbl-shadow-sm); }

.hbl-create__faq summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hbl-create__faq summary::-webkit-details-marker { display: none; }
.hbl-create__faq summary i { color: var(--hbl-primary); }
.hbl-create__faq p { margin: 0.5rem 0 0; color: var(--hbl-muted); }

/* =========================================================================
   Tip card (reusable visual guidance)
   ========================================================================= */

.hbl-tip-stack { display: grid; gap: 1rem; }

.hbl-tip-card {
    background: var(--hbl-surface);
    border-radius: var(--hbl-radius);
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
    box-shadow: var(--hbl-shadow-sm);
}

.hbl-tip-card__header { padding: 1rem 1.1rem 0.5rem; }

.hbl-tip-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.hbl-tip-card__lede {
    color: var(--hbl-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.hbl-tip-card__figure {
    position: relative;
    margin: 0.75rem 0 0;
}

.hbl-tip-card__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--hbl-bg);
}

.hbl-tip-card__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.9rem;
}

.hbl-tip-card__caption strong { font-size: 1rem; font-weight: 700; }

.hbl-tip-card__list {
    list-style: none;
    padding: 0.9rem 1.1rem;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.hbl-tip-card__list + .hbl-tip-card__list { border-top: 1px solid rgba(15, 23, 42, 0.06); }

.hbl-tip-card__list li {
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: 0.5rem;
    align-items: start;
    color: var(--hbl-text);
    font-size: 0.92rem;
}

.hbl-tip-card__list--dos i   { color: #2f9e44; }
.hbl-tip-card__list--donts i { color: var(--hbl-secondary); }

/* =========================================================================
   Sticky bottom action bar
   ========================================================================= */

.hbl-action-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 1.5rem;
    padding: 0.75rem 0;
    background: color-mix(in srgb, var(--hbl-surface) 92%, transparent);
    backdrop-filter: saturate(140%) blur(6px);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    z-index: 5;
}

.hbl-action-bar__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hbl-muted);
    font-size: 0.9rem;
}

.hbl-action-bar__status i { font-size: 1rem; }
.hbl-action-bar__status i.text-success { color: #2f9e44 !important; }

/* Mobile: full-width stacked action bar */
@media (max-width: 767.98px) {
    .hbl-action-bar {
        padding: 0.75rem 0;
    }

    .hbl-action-bar > .container-xxl {
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hbl-action-bar__back {
        flex: 0 1 auto;
        min-width: 0;
    }

    .hbl-action-bar__secure {
        display: none !important;
    }

    .hbl-action-bar .ms-auto {
        margin-left: auto !important;
        flex: 0 0 auto;
    }

    .hbl-action-bar .ms-auto .btn {
        white-space: nowrap;
    }
}

/* =========================================================================
   Landing — new hero, inspiration carousel, steps, quick-actions, features
   -------------------------------------------------------------------------
   Visual model: editorial split-hero with a large headline + accent word on
   the left and a wide image panel on the right, followed by a horizontally
   scrollable inspiration row, a two-column "how it works + quick actions"
   block, and a compact feature highlight bar. Every color comes from the
   --hbl-* CSS variables so each tenant deployment re-themes itself.
   ========================================================================= */

.hbl-landing-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(480px, 70vh, 760px);
    padding: 2.5rem 0 2rem;
    background: var(--hbl-bg);
}

@media (min-width: 992px) {
    .hbl-landing-hero { padding: 3.5rem 0 3rem; }
}

/* Full-bleed background image layer */
.hbl-landing-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hbl-hero-image, none);
    background-size: cover;
    background-position: center right;
    background-color: color-mix(in srgb, var(--hbl-primary) 10%, var(--hbl-surface));
}

.hbl-landing-hero__image-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: clamp(5rem, 12vw, 10rem);
    color: color-mix(in srgb, var(--hbl-primary) 25%, transparent);
}

/* Light, warm scrim — fully opaque on the left so the editorial headline
   reads cleanly, fading to transparent in the middle so the home photo is
   visible on the right (matches the reference comp). */
.hbl-landing-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient( 90deg, #ffffffbf 0%, var(--hbl-bg) 30%, color-mix(in srgb, var(--hbl-bg) 85%, transparent) 45%, color-mix(in srgb, var(--hbl-bg) 35%, transparent) 60%, transparent 75% );
}

@media (max-width: 991.98px) {
    /* On narrow screens, scrim covers more so text stays readable over the photo. */
    .hbl-landing-hero__scrim {
        background: linear-gradient(90deg, #ffffffbf 0%, var(--hbl-bg) 30%, color-mix(in srgb, var(--hbl-bg) 85%, transparent) 45%, color-mix(in srgb, var(--hbl-bg) 35%, transparent) 60%, transparent 75%);
    }
}

.hbl-landing-hero__content {
    position: relative;
}

.hbl-landing-hero__copy {
    max-width: 55rem;
}

@media (min-width: 992px) {
    .hbl-landing-hero__copy { max-width: 55rem; }
}

.hbl-landing-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hbl-text);
    margin-bottom: 1.5rem;
    box-shadow: var(--hbl-shadow-sm);
}

.hbl-landing-hero__eyebrow i {
    color: var(--hbl-accent);
    font-size: 0.95rem;
}

.hbl-landing-hero__title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--hbl-text);
}

.hbl-landing-hero__title-line {
    display: block;
}

.hbl-landing-hero__title-accent {
    display: block;
    font-family: 'Playfair Display', 'Georgia', serif;
    color: var(--hbl-accent);
    font-style: italic;
    font-weight: 700;
}

.hbl-landing-hero__sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    line-height: 1.5;
    color: var(--hbl-muted);
    max-width: 30rem;
    margin-bottom: 1.75rem;
}

.hbl-landing-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

/* Outline secondary CTAs styled to match the comp (white pill, soft border). */
.btn-hbl-hero-outline {
    background: var(--hbl-surface);
    color: var(--hbl-text);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    display: inline-flex;
    align-items: center;
    transition: background-color var(--hbl-transition), border-color var(--hbl-transition), transform var(--hbl-transition), box-shadow var(--hbl-transition);
}

.btn-hbl-hero-outline:hover,
.btn-hbl-hero-outline:focus {
    background: color-mix(in srgb, var(--hbl-primary) 4%, var(--hbl-surface));
    border-color: color-mix(in srgb, var(--hbl-primary) 30%, transparent);
    color: var(--hbl-text);
    transform: translateY(-1px);
    box-shadow: var(--hbl-shadow-sm);
}

.btn-hbl-hero-outline i {
    color: var(--hbl-text);
}

/* ----------------------------- Inspiration carousel ----------------------------- */

.hbl-inspiration {
    /* Negative top margin pulls the rounded card up so it visually overlaps the
       bottom edge of the hero, exactly like the attached comp. */
    padding: 0 0 2.5rem;
    margin-top: -10.5rem;
    position: relative;
    z-index: 1;
    background: transparent;
}

@media (min-width: 992px) {
    .hbl-inspiration { margin-top: -10.5rem; }
}

.hbl-inspiration__card {
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--hbl-radius-lg);
    box-shadow: var(--hbl-shadow);
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hbl-inspiration__card { padding: 1.5rem 1.75rem; gap: 1.25rem; }
}

@media (min-width: 992px) {
    .hbl-inspiration__card {
        grid-template-columns: minmax(180px, 14rem) minmax(0, 1fr);
        gap: 1.5rem;
    }
}

.hbl-inspiration__intro {
    padding: 0.25rem 0.25rem 0.25rem 0.5rem;
}

.hbl-inspiration__heading {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    font-weight: 700;
    color: var(--hbl-text);
    margin: 0 0 0.5rem;
}

.hbl-inspiration__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--hbl-muted);
    line-height: 1.5;
    margin: 0 0 0.85rem;
}

.hbl-inspiration__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--hbl-accent);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--hbl-transition);
}

.hbl-inspiration__link:hover,
.hbl-inspiration__link:focus {
    color: color-mix(in srgb, var(--hbl-accent) 75%, black);
}

.hbl-inspiration__viewport {
    position: relative;
    min-width: 0;
}

.hbl-inspiration__track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.25rem 0.25rem 0.5rem;
    margin: 0;
    /* Hide native scrollbar — navigation is via the prev/next buttons. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hbl-inspiration__track::-webkit-scrollbar { display: none; width: 0; height: 0; }

.hbl-inspiration__item {
    flex: 0 0 auto;
    width: clamp(150px, 18vw, 180px);
    scroll-snap-align: start;
}

.hbl-inspiration-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--hbl-radius);
    overflow: hidden;
    box-shadow: var(--hbl-shadow-sm);
    transition: transform var(--hbl-transition), box-shadow var(--hbl-transition);
}

.hbl-inspiration-card:hover,
.hbl-inspiration-card:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--hbl-shadow);
}

.hbl-inspiration-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: color-mix(in srgb, var(--hbl-primary) 12%, var(--hbl-surface));
    background-size: cover;
    background-position: center;
}

.hbl-inspiration-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2.25rem;
    color: color-mix(in srgb, var(--hbl-primary) 35%, transparent);
}

.hbl-inspiration-card__body {
    padding: 0.6rem 0.75rem 0.75rem;
}

.hbl-inspiration-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hbl-text);
    margin: 0 0 0.1rem;
    line-height: 1.25;
}

.hbl-inspiration-card__meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--hbl-muted);
    margin: 0;
}

.hbl-inspiration__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: var(--hbl-surface);
    color: var(--hbl-text);
    display: grid;
    place-items: center;
    box-shadow: var(--hbl-shadow-sm);
    cursor: pointer;
    z-index: 2;
    transition: background-color var(--hbl-transition), color var(--hbl-transition);
}

.hbl-inspiration__nav:hover,
.hbl-inspiration__nav:focus {
    background: color-mix(in srgb, var(--hbl-primary) 6%, var(--hbl-surface));
    color: var(--hbl-primary);
}

.hbl-inspiration__nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.hbl-inspiration__nav--prev { left: -1rem; }
.hbl-inspiration__nav--next { right: -1rem; }

@media (max-width: 991.98px) {
    .hbl-inspiration__nav--prev { left: 0.25rem; }
    .hbl-inspiration__nav--next { right: 0.25rem; }
}

/* ----------------------------- Get started (steps + quick actions) ----------------------------- */

.hbl-getstarted {
    padding: 2rem 0 2.5rem;
}

@media (min-width: 992px) {
    .hbl-getstarted { padding: 3rem 0 3.5rem; }
}

.hbl-getstarted__heading {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    margin-bottom: 1.75rem;
}

.hbl-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0;
    text-align: center;
}

@media (min-width: 576px) {
    .hbl-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hbl-steps__item { padding: 0.25rem; }

.hbl-steps__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--hbl-accent) 18%, transparent);
    color: var(--hbl-primary);
    font-size: 1.4rem;
}

.hbl-steps__title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--hbl-text);
}

.hbl-steps__desc {
    color: var(--hbl-muted);
    font-size: 0.875rem;
    margin: 0;
    padding: 0 0.5rem;
}

.hbl-quickactions {
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--hbl-radius);
    box-shadow: var(--hbl-shadow-sm);
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .hbl-quickactions { padding: 1.5rem; }
}

.hbl-quickactions__heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--hbl-text);
}

.hbl-quickactions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hbl-quickaction {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--hbl-radius-sm);
    background: var(--hbl-surface);
    color: var(--hbl-text);
    text-decoration: none;
    transition: border-color var(--hbl-transition), background-color var(--hbl-transition), transform var(--hbl-transition);
}

.hbl-quickaction:hover,
.hbl-quickaction:focus-visible {
    border-color: color-mix(in srgb, var(--hbl-primary) 35%, transparent);
    background: color-mix(in srgb, var(--hbl-primary) 4%, var(--hbl-surface));
    color: var(--hbl-text);
    transform: translateY(-1px);
}

.hbl-quickaction__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--hbl-radius-sm);
    background: color-mix(in srgb, var(--hbl-primary) 8%, transparent);
    color: var(--hbl-primary);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.hbl-quickaction__body {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.hbl-quickaction__title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hbl-text);
}

.hbl-quickaction__desc {
    font-size: 0.8rem;
    color: var(--hbl-muted);
}

/* ----------------------------- Features bar ----------------------------- */

.hbl-featurebar {
    padding: 0 0 2.5rem;
}

.hbl-featurebar__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 2rem;
    padding: 1rem 1.25rem;
    margin: 0;
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--hbl-radius-lg);
    box-shadow: var(--hbl-shadow-sm);
}

.hbl-featurebar__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hbl-featurebar__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hbl-accent) 22%, transparent);
    color: var(--hbl-primary);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.hbl-featurebar__title {
    display: block;
    font-size: 0.95rem;
    color: var(--hbl-text);
}

.hbl-featurebar__desc {
    display: block;
    font-size: 0.85rem;
    color: var(--hbl-muted);
}

/* =========================================================================
   Design / Create — rich stepper, panel layout, sample CTA, feature pills
   ------------------------------------------------------------------------- */

.hbl-create-stepbar {
    padding: 1.5rem 0 0.75rem;
    background: var(--hbl-surface);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
    .hbl-create-stepbar { padding: 2rem 0 1.25rem; }
}

.hbl-stepper--rich {
    justify-content: center;
    gap: 1rem 1.5rem;
    flex-wrap: nowrap;
}

.hbl-stepper--rich .hbl-stepper__item { 
    align-items: flex-start;
    flex: 0 1 auto;
    min-width: 0;
}

.hbl-stepper--rich .hbl-stepper__num {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.hbl-stepper--rich .hbl-stepper__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.hbl-stepper--rich .hbl-stepper__label {
    font-weight: 700;
    color: var(--hbl-text);
    font-size: 0.95rem;
}

.hbl-stepper--rich .hbl-stepper__item:not(.is-current) .hbl-stepper__label {
    color: color-mix(in srgb, var(--hbl-text) 75%, transparent);
}

.hbl-stepper--rich .hbl-stepper__desc {
    color: var(--hbl-muted);
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.hbl-stepper--rich .hbl-stepper__item + .hbl-stepper__item::before {
    width: 3rem;
    align-self: center;
    margin-right: 0.5rem;
}

/* Mobile: compact everything to fit in one line */
@media (max-width: 575.98px) {
    .hbl-stepper--rich {
        gap: 0;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 0 0.25rem;
        margin-bottom: 0.75rem;
        align-items: flex-start;
    }

    .hbl-stepper--rich .hbl-stepper__item {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
    }

    .hbl-stepper--rich .hbl-stepper__num {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .hbl-stepper--rich .hbl-stepper__text {
        min-width: 0;
        width: 100%;
        align-items: center;
    }

    .hbl-stepper--rich .hbl-stepper__label {
        font-size: 0.7rem;
        line-height: 1.2;
        width: 100%;
        white-space: normal;
        word-break: break-word;
    }

    .hbl-stepper--rich .hbl-stepper__desc {
        display: none;
    }

    .hbl-stepper--rich .hbl-stepper__item {
        position: relative;
    }

    .hbl-stepper--rich .hbl-stepper__item + .hbl-stepper__item::before {
        position: absolute;
        top: 0.8rem;
        left: -0.5rem;
        width: 1rem;
        margin: 0;
        transform: translateY(-50%);
    }
}

/* Tablet: slightly more compact */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hbl-stepper--rich {
        gap: 0.75rem 1rem;
    }

    .hbl-stepper--rich .hbl-stepper__num {
        width: 1.85rem;
        height: 1.85rem;
    }

    .hbl-stepper--rich .hbl-stepper__item + .hbl-stepper__item::before {
        width: 2rem;
    }

    .hbl-stepper--rich .hbl-stepper__label {
        font-size: 0.9rem;
    }

    .hbl-stepper--rich .hbl-stepper__desc {
        font-size: 0.75rem;
    }
}

/* Two-panel body */
.hbl-create { padding-block: 1.5rem 7rem; background: #f5f5f5; }

.hbl-create__panels { align-items: stretch; }

.hbl-create__panel {
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--hbl-radius-lg);
    box-shadow: var(--hbl-shadow-sm);
    padding: 1.5rem;
    height: 100%;
}

@media (min-width: 768px) {
    .hbl-create__panel { padding: 2rem 2.25rem; }
}

.hbl-create__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: color-mix(in srgb, var(--hbl-primary) 10%, transparent);
    color: var(--hbl-primary);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hbl-create__pill i { font-size: 0.85rem; }

.hbl-create__title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--hbl-text);
}

.hbl-create__title-emoji {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    margin-left: 0.25rem;
}

.hbl-create__sub {
    color: var(--hbl-muted);
    margin-bottom: 1.5rem;
}

/* Refined dropzone for the new panel: lighter dashed border + centered CTA */
.hbl-create__panel .hbl-dropzone {
    background: color-mix(in srgb, var(--hbl-primary) 2%, var(--hbl-surface));
    border-color: color-mix(in srgb, var(--hbl-muted) 35%, transparent);
    padding: 2rem 1.25rem;
}

@media (min-width: 768px) {
    .hbl-create__panel .hbl-dropzone { padding: 2.5rem 1.5rem; }
}

.hbl-create__panel .hbl-dropzone__icon {
    background: transparent;
    color: var(--hbl-primary);
    font-size: 2rem;
    width: auto;
    height: auto;
    margin-bottom: 0.5rem;
}

.hbl-create__panel .hbl-dropzone__title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.hbl-create__panel .hbl-dropzone__sub { margin-bottom: 0.75rem; }

.hbl-dropzone__browse {
    pointer-events: none; /* the label/input handles clicks */
    margin-bottom: 0.75rem;
}

/* Sample photo divider */
.hbl-create__sample {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--hbl-muted);
    font-size: 0.85rem;
}

.hbl-create__sample-rule {
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.1);
}

.hbl-create__sample-btn {
    padding: 0.5rem 1.1rem;
    font-weight: 600;
}

/* Tip card — coach header */
.hbl-tip-card__coach {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1.1rem 0.9rem;
}

.hbl-tip-card__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hbl-primary) 12%, transparent);
    color: var(--hbl-primary);
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    flex: 0 0 auto;
    overflow: hidden;
}

.hbl-tip-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hbl-tip-card__coach-body { min-width: 0; flex: 1; }

.hbl-tip-card__coach .hbl-tip-card__title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.hbl-tip-card__bubble {
    background: color-mix(in srgb, var(--hbl-primary) 5%, var(--hbl-bg));
    border-radius: var(--hbl-radius-sm);
    padding: 0.6rem 0.8rem;
    color: var(--hbl-text);
    font-size: 0.9rem;
    margin: 0;
}

.hbl-tip-card__list .hbl-tip-card__list-heading {
    display: block;
    grid-template-columns: none;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--hbl-text);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

/* Feature pill row beneath panels */
.hbl-create__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    padding: 0;
}

.hbl-create__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--hbl-surface);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--hbl-radius);
    box-shadow: var(--hbl-shadow-sm);
}

.hbl-create__feature-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--hbl-radius-sm);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.hbl-create__feature-icon--blue   { background: #e8f0fe; color: #2364d2; }
.hbl-create__feature-icon--purple { background: #efe7fb; color: #6f3fd4; }
.hbl-create__feature-icon--green  { background: color-mix(in srgb, var(--hbl-primary) 14%, transparent); color: var(--hbl-primary); }

.hbl-create__feature-body {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.hbl-create__feature-body strong {
    font-size: 0.92rem;
    color: var(--hbl-text);
}

.hbl-create__feature-body span {
    font-size: 0.82rem;
    color: var(--hbl-muted);
}

/* Action bar — back link + secure-upload status */
.hbl-action-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hbl-text);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
}

.hbl-action-bar__back:hover,
.hbl-action-bar__back:focus { color: var(--hbl-primary); }

.hbl-action-bar__back-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--hbl-muted) 14%, transparent);
    color: var(--hbl-text);
    display: grid;
    place-items: center;
    font-size: 0.95rem;
}

.hbl-action-bar__status i.bi-shield-check { color: var(--hbl-primary); }

.hbl-action-bar__secure {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hbl-muted);
    font-size: 0.9rem;
}

.hbl-action-bar__secure i {
    color: var(--hbl-primary);
    font-size: 1rem;
}

/* =========================================================================
   Design / Review — per-photo 16:9 crop + label
   ------------------------------------------------------------------------- */

.hbl-review-list {
    display: grid;
    gap: 1.25rem;
    margin: 0;
}

.hbl-review-item {
    background: color-mix(in srgb, var(--hbl-primary) 2%, var(--hbl-surface));
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--hbl-radius);
    padding: 1rem;
}

@media (min-width: 768px) {
    .hbl-review-item { padding: 1.25rem; }
}

.hbl-review-item__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hbl-review-item__num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--hbl-primary);
    color: var(--hbl-primary-contrast);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex: 0 0 auto;
}

.hbl-review-item__heading { min-width: 0; }

.hbl-review-item__title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--hbl-text);
}

.hbl-review-item__filename {
    margin: 0;
    color: var(--hbl-muted);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hbl-review-item__body {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hbl-review-item__body {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 18rem);
        align-items: start;
    }
}

.hbl-review-item__fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hbl-review-item__label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hbl-text);
}

.hbl-review-item__hint {
    margin: 0;
    color: var(--hbl-muted);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.hbl-review-item__hint i { color: var(--hbl-primary); margin-top: 0.15rem; }

/* ---------- Crop overlay ---------- */

.hbl-crop {
    position: relative;
    background: #0f172a;
    border-radius: var(--hbl-radius-sm);
    overflow: hidden;
    box-shadow: var(--hbl-shadow-sm);
}

.hbl-crop__stage {
    position: relative;
    width: 100%;
    /* Limit the stage so very tall photos don't blow out the panel. */
    max-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hbl-crop__image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.hbl-crop__mask {
    position: absolute;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: none;
}

.hbl-crop__frame {
    position: absolute;
    border: 2px solid var(--hbl-primary-contrast, #fff);
    box-shadow: 0 0 0 1px var(--hbl-primary), 0 6px 18px rgba(0, 0, 0, 0.25);
    cursor: move;
    touch-action: none;
    background:
        linear-gradient(transparent calc(33.333% - 0.5px), rgba(255,255,255,0.35) calc(33.333% - 0.5px) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)) no-repeat,
        linear-gradient(transparent calc(66.666% - 0.5px), rgba(255,255,255,0.35) calc(66.666% - 0.5px) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)) no-repeat,
        linear-gradient(90deg, transparent calc(33.333% - 0.5px), rgba(255,255,255,0.35) calc(33.333% - 0.5px) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)) no-repeat,
        linear-gradient(90deg, transparent calc(66.666% - 0.5px), rgba(255,255,255,0.35) calc(66.666% - 0.5px) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)) no-repeat;
}

.hbl-crop__frame:focus-visible {
    outline: 2px solid var(--hbl-accent);
    outline-offset: 2px;
}

.hbl-crop__handle {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--hbl-primary-contrast, #fff);
    border: 2px solid var(--hbl-primary);
    border-radius: 50%;
    touch-action: none;
}

.hbl-crop__handle--nw { top: -8px;    left: -8px;    cursor: nwse-resize; }
.hbl-crop__handle--ne { top: -8px;    right: -8px;   cursor: nesw-resize; }
.hbl-crop__handle--sw { bottom: -8px; left: -8px;    cursor: nesw-resize; }
.hbl-crop__handle--se { bottom: -8px; right: -8px;   cursor: nwse-resize; }

.hbl-crop__ratio {
    position: absolute;
    top: 0.4rem;
    left: 0.5rem;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    pointer-events: none;
}


