:root {
  --vl-bg: #f3f6fb;
  --vl-surface: #ffffff;
  --vl-text: #172033;
  --vl-muted: #5d687c;
  --vl-border: #dce3ee;
  --vl-primary: #e72b35;
  --vl-primary-hover: #c91f29;
  --vl-header: rgba(5, 12, 23, .92);
}

html[data-theme="dark"] {
  --vl-bg: #080f1b;
  --vl-surface: #111b2b;
  --vl-text: #f2f5fb;
  --vl-muted: #bac5d8;
  --vl-border: #28364c;
  --vl-header: rgba(5, 12, 23, .96);
}

html { font-size: 16px; min-height: 100%; }
body { background: linear-gradient(110deg, color-mix(in srgb, var(--vl-bg) 91%, transparent), color-mix(in srgb, var(--vl-bg) 76%, transparent)), url('/images/ventalink-hero-desktop.png') center / cover fixed; color: var(--vl-text); margin: 0; min-height: 100vh; }
.app-header { background: var(--vl-header); border-bottom: 1px solid rgba(255,255,255,.12); position: relative; z-index: 10; }
.navbar-brand { color: #fff; font-weight: 800; letter-spacing: -.04em; }
.navbar-brand:hover { color: #fff; }
.navbar-brand span { color: #ff4d57; }
.nav-link, .theme-toggle { color: #e8eef9; }
.nav-link:hover { color: #fff; }
.navbar-toggler { border-color: rgba(255,255,255,.5); }
.navbar-toggler-icon { filter: invert(1); }
.language-select { background-color: transparent; border-color: rgba(255,255,255,.45); color: #fff; width: 4.25rem; }
.language-select option { color: #101827; }
.theme-toggle { border-color: rgba(255,255,255,.45); }
.theme-toggle:hover { border-color: #fff; color: #fff; }
.landing-hero { background: url('/images/ventalink-hero-desktop.png') center center / cover no-repeat; color: #fff; min-height: 680px; position: relative; }

.auth-page {
    min-height: calc(100vh - 132px);
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
    background: radial-gradient(circle at 12% 12%, rgba(236, 38, 57, .12), transparent 32%);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    width: min(100%, 980px);
    overflow: hidden;
    border: 1px solid rgba(18, 32, 51, .1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1.5rem 4rem rgba(14, 25, 42, .14);
}

.auth-card { padding: clamp(2rem, 5vw, 4rem); }
.auth-kicker { margin-bottom: .75rem; color: #e7253a; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.auth-card h1 { margin-bottom: .5rem; color: #172337; font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 750; }
.auth-intro { margin-bottom: 2rem; color: #64748b; }
.auth-form .form-control { min-height: 3.65rem; border-color: #d9e0ea; }
.auth-form .form-control:focus { border-color: #e7253a; box-shadow: 0 0 0 .2rem rgba(231, 37, 58, .12); }
.auth-note { margin: .25rem 0 1.25rem; color: #64748b; font-size: .875rem; }
.auth-footer { margin: 1.5rem 0 0; color: #64748b; text-align: center; }
.auth-footer a { color: #d91f34; font-weight: 700; }
.auth-aside {
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    background: linear-gradient(145deg, rgba(12, 23, 40, .72), rgba(191, 25, 48, .76)), url('/images/ventalink-hero-desktop.png') center / cover;
}
.auth-aside-icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem; border-radius: 50%; background: #f03247; font-weight: 800; }
.auth-aside h2 { font-size: 1.8rem; font-weight: 750; }
.auth-aside p { margin: 0; color: rgba(255, 255, 255, .86); }
.auth-shell-message { display: block; width: min(100%, 600px); }
.auth-message-card { padding: clamp(2.5rem, 6vw, 4.25rem); text-align: center; }
.auth-status-icon { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-bottom: 1.5rem; border-radius: 50%; background: #e7253a; color: #fff; font-size: 1.8rem; font-weight: 800; box-shadow: 0 .75rem 1.5rem rgba(231, 37, 58, .22); }
.auth-status-icon-warning { background: #c77c11; box-shadow: 0 .75rem 1.5rem rgba(199, 124, 17, .22); }
.auth-email { display: inline-block; margin: 0 0 1rem; padding: .6rem .9rem; border-radius: .5rem; background: #f2f5f9; color: #25344b; font-weight: 700; overflow-wrap: anywhere; }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.auth-success { margin-bottom: 1.5rem; padding: .875rem 1rem; border-radius: .6rem; background: #eaf8ef; color: #176837; font-weight: 600; }

@media (max-width: 767.98px) {
    .auth-page { padding: 1.25rem .75rem; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-card { padding: 2rem 1.25rem; }
}
.landing-overlay { background: linear-gradient(90deg, rgba(3,9,17,.95) 0%, rgba(4,13,25,.78) 42%, rgba(3,9,17,.18) 100%); inset: 0; position: absolute; }
.landing-content { position: relative; z-index: 1; }
.eyebrow { color: #ff4d57; font-size: .8rem; font-weight: 800; letter-spacing: .18em; margin-bottom: 1rem; }
.landing-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 800; letter-spacing: -.055em; line-height: 1; max-width: 720px; }
.hero-description { color: #d4ddeb; font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 620px; }
.hero-caption { color: #b8c6da; font-size: .94rem; }
.btn-primary { background: var(--vl-primary); border-color: var(--vl-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--vl-primary-hover); border-color: var(--vl-primary-hover); }
.landing-benefits { background: var(--vl-bg); }
.benefit-card, .app-card { background: color-mix(in srgb, var(--vl-surface) 93%, transparent); backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--vl-border) 82%, transparent); border-radius: 1rem; color: var(--vl-text); height: 100%; padding: 1.5rem; }
.benefit-card h2 { font-size: 1.2rem; font-weight: 700; margin-top: 1rem; }
.benefit-card p { color: var(--vl-muted); margin: 0; }
.benefit-icon { align-items: center; background: rgba(231,43,53,.13); border-radius: .7rem; color: var(--vl-primary); display: inline-flex; font-size: 1.5rem; height: 3rem; justify-content: center; width: 3rem; }
.page-surface { min-height: calc(100vh - 9rem); }
.app-footer { background: var(--vl-surface); border-top: 1px solid var(--vl-border); color: var(--vl-muted); padding: 1.25rem 0; }
.dashboard-page { background: radial-gradient(circle at 90% 5%, rgba(231, 43, 53, .11), transparent 25%); }
.dashboard-hero { align-items: flex-end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 1rem; }
.dashboard-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 780; letter-spacing: -.04em; margin: 0 0 .75rem; }
.dashboard-hero > div > p:last-child { color: var(--vl-muted); font-size: 1.1rem; margin: 0; max-width: 650px; }
.dashboard-account-status { align-items: center; background: var(--vl-surface); border: 1px solid var(--vl-border); border-radius: 99px; display: inline-flex; font-size: .9rem; font-weight: 700; gap: .5rem; padding: .55rem .9rem; white-space: nowrap; }
.dashboard-status-dot { background: #29a869; border-radius: 50%; box-shadow: 0 0 0 .2rem rgba(41, 168, 105, .13); height: .55rem; width: .55rem; }
.onboarding-card { padding: clamp(1.5rem, 4vw, 2.35rem); }
.card-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.card-heading h2, .dashboard-side-card h2, .dashboard-activity h2 { font-size: 1.35rem; font-weight: 750; margin: 0; }
.card-kicker { color: var(--vl-primary); font-size: .72rem; font-weight: 800; letter-spacing: .1em; margin: 0 0 .35rem; text-transform: uppercase; }
.progress-pill { background: rgba(231, 43, 53, .12); border-radius: 99px; color: var(--vl-primary); font-size: .82rem; font-weight: 800; padding: .35rem .6rem; }
.onboarding-description, .dashboard-side-card > p { color: var(--vl-muted); margin: 1rem 0 1.5rem; }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { align-items: center; border-top: 1px solid var(--vl-border); display: flex; gap: 1rem; padding: 1rem 0; }
.setup-step { align-items: center; background: color-mix(in srgb, var(--vl-muted) 14%, transparent); border-radius: 50%; color: var(--vl-muted); display: inline-flex; flex: 0 0 auto; font-size: .82rem; font-weight: 800; height: 2rem; justify-content: center; width: 2rem; }
.setup-list-active .setup-step { background: var(--vl-primary); color: #fff; }
.setup-list strong { display: block; font-size: .96rem; }
.setup-list p { color: var(--vl-muted); font-size: .9rem; margin: .18rem 0 0; }
.setup-next { color: var(--vl-primary); font-size: .76rem; font-weight: 800; margin-left: auto; text-transform: uppercase; }
.dashboard-side-card { padding: 2rem; }
.account-details { border-top: 1px solid var(--vl-border); margin: 1.5rem 0; }
.account-details > div { border-bottom: 1px solid var(--vl-border); padding: .8rem 0; }
.account-details dt { color: var(--vl-muted); font-size: .77rem; font-weight: 700; text-transform: uppercase; }
.account-details dd { font-size: .94rem; margin: .2rem 0 0; overflow-wrap: anywhere; }
.dashboard-activity { background: var(--vl-surface); border: 1px solid var(--vl-border); border-radius: 1rem; padding: clamp(1.5rem, 3vw, 2rem); }
.empty-activity { align-items: center; background: color-mix(in srgb, var(--vl-bg) 72%, transparent); border-radius: .75rem; display: flex; gap: 1rem; margin-top: 1.25rem; padding: 1.25rem; }
.empty-activity > span { align-items: center; background: rgba(231, 43, 53, .12); border-radius: .6rem; color: var(--vl-primary); display: flex; font-size: 1.4rem; height: 2.75rem; justify-content: center; width: 2.75rem; }
.empty-activity h3 { font-size: 1rem; font-weight: 750; margin: 0 0 .2rem; }
.empty-activity p { color: var(--vl-muted); margin: 0; }
.onboarding-page { background: linear-gradient(120deg, color-mix(in srgb, var(--vl-bg) 45%, transparent), color-mix(in srgb, var(--vl-bg) 18%, transparent)); }
.onboarding-header { margin-bottom: 2rem; max-width: 740px; }
.onboarding-header h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 780; letter-spacing: -.04em; margin-bottom: .7rem; }
.onboarding-header > p:last-child { color: var(--vl-muted); font-size: 1.08rem; margin: 0; }
.setup-progress { align-items: center; display: flex; margin-bottom: 2rem; max-width: 520px; }
.setup-progress-item { align-items: center; color: var(--vl-muted); display: flex; flex-direction: column; font-size: .8rem; font-weight: 750; gap: .45rem; text-align: center; }
.setup-progress-item span { align-items: center; background: color-mix(in srgb, var(--vl-surface) 84%, transparent); border: 1px solid var(--vl-border); border-radius: 50%; display: inline-flex; height: 2rem; justify-content: center; width: 2rem; }
.setup-progress-item.is-current, .setup-progress-item.is-complete { color: var(--vl-text); }
.setup-progress-item.is-current span { background: var(--vl-primary); border-color: var(--vl-primary); color: #fff; }
.setup-progress-item.is-complete span, .setup-progress-line.is-complete { background: #299d63; border-color: #299d63; color: #fff; }
.setup-progress-line { background: var(--vl-border); height: 2px; margin: 0 .75rem 1.75rem; min-width: 4rem; flex: 1; }
.setup-progress-item.is-locked { opacity: .52; }
.setup-option { align-items: center; backdrop-filter: blur(9px); background: color-mix(in srgb, var(--vl-surface) 90%, transparent); border: 1px solid var(--vl-border); border-radius: 1rem; display: grid; gap: 1.25rem; grid-template-columns: auto 1fr auto; height: 100%; padding: clamp(1.5rem, 3vw, 2.15rem); }
.setup-option.is-disabled { opacity: .62; }
.setup-option-icon { align-items: center; background: rgba(231, 43, 53, .13); border-radius: .75rem; color: var(--vl-primary); display: flex; font-size: 1.3rem; font-weight: 800; height: 3.25rem; justify-content: center; width: 3.25rem; }
.setup-option h2 { font-size: 1.3rem; font-weight: 750; margin: 0 0 .4rem; }
.setup-option p:last-child { color: var(--vl-muted); margin: 0; }
.setup-complete { color: #208152; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.setup-locked { color: var(--vl-muted); font-size: .82rem; font-weight: 700; max-width: 9rem; text-align: right; }
.setup-form-shell { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); margin: 3vh auto; max-width: 940px; }
.setup-form-intro { align-self: center; }
.setup-form-intro h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 780; letter-spacing: -.04em; margin-bottom: .75rem; }
.setup-form-intro > p:last-child { color: var(--vl-muted); font-size: 1.08rem; margin: 0; }
.setup-form-card { backdrop-filter: blur(10px); background: color-mix(in srgb, var(--vl-surface) 91%, transparent); border: 1px solid var(--vl-border); border-radius: 1rem; box-shadow: 0 1.2rem 3.5rem rgba(14, 25, 42, .11); padding: clamp(1.5rem, 4vw, 2.5rem); }
.setup-form-card .form-control { background-color: color-mix(in srgb, var(--vl-surface) 88%, transparent); border-color: var(--vl-border); color: var(--vl-text); min-height: 3.6rem; }
.setup-form-card .form-control:focus { border-color: var(--vl-primary); box-shadow: 0 0 0 .2rem rgba(231, 43, 53, .12); }
.store-comment { height: 7rem !important; resize: vertical; }
.setup-form-actions { display: flex; gap: .75rem; justify-content: space-between; }
.store-list-section { backdrop-filter: blur(9px); background: color-mix(in srgb, var(--vl-surface) 88%, transparent); border: 1px solid var(--vl-border); border-radius: 1rem; margin: 2rem auto 0; max-width: 940px; padding: clamp(1.5rem, 3vw, 2rem); }
.store-summary-card { align-items: center; background: color-mix(in srgb, var(--vl-surface) 84%, transparent); border: 1px solid var(--vl-border); border-radius: .75rem; display: flex; gap: .85rem; height: 100%; padding: 1rem; }
.store-summary-icon { align-items: center; background: rgba(231, 43, 53, .13); border-radius: .55rem; color: var(--vl-primary); display: flex; font-size: 1.2rem; height: 2.6rem; justify-content: center; width: 2.6rem; }
.store-summary-card h3 { font-size: 1rem; font-weight: 750; margin: 0 0 .15rem; }
.store-summary-card p { color: var(--vl-muted); font-size: .88rem; margin: 0; }
.module-card, .admin-option-card { backdrop-filter: blur(9px); background: color-mix(in srgb, var(--vl-surface) 90%, transparent); border: 1px solid var(--vl-border); border-radius: 1rem; color: var(--vl-text); display: block; height: 100%; padding: 1.6rem; text-decoration: none; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.module-card:hover, .admin-option-card:hover { border-color: color-mix(in srgb, var(--vl-primary) 58%, var(--vl-border)); color: var(--vl-text); transform: translateY(-3px); }
.module-icon { align-items: center; background: rgba(231, 43, 53, .13); border-radius: .7rem; color: var(--vl-primary); display: inline-flex; font-size: 1.45rem; height: 3rem; justify-content: center; margin-bottom: 1rem; width: 3rem; }
.module-card h2, .admin-option-card h2 { font-size: 1.2rem; font-weight: 760; margin: 0 0 .5rem; }
.module-card p, .admin-option-card p { color: var(--vl-muted); margin: 0; }
.module-card-admin { background: linear-gradient(135deg, color-mix(in srgb, var(--vl-surface) 85%, transparent), rgba(231, 43, 53, .09)); }
.admin-option-card.is-planned { opacity: .76; }
.admin-option-card.is-planned > span:last-child { color: var(--vl-primary); display: block; font-size: .77rem; font-weight: 800; margin-top: 1.25rem; text-transform: uppercase; }

@media (max-width: 767.98px) {
  .landing-hero { background-image: url('/images/ventalink-hero-mobile.png'); background-position: center; min-height: 740px; }
  .landing-overlay { background: linear-gradient(180deg, rgba(3,9,17,.83), rgba(3,9,17,.94)); }
  .landing-hero h1 { font-size: 2.75rem; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .setup-list li { align-items: flex-start; }
  .setup-next { display: none; }
  body { background-attachment: scroll; background-image: linear-gradient(180deg, color-mix(in srgb, var(--vl-bg) 88%, transparent), color-mix(in srgb, var(--vl-bg) 78%, transparent)), url('/images/ventalink-hero-mobile.png'); }
  .setup-form-shell { grid-template-columns: 1fr; margin-top: 0; }
  .setup-option { align-items: flex-start; grid-template-columns: auto 1fr; }
  .setup-option > .btn, .setup-complete, .setup-locked { grid-column: 2; margin-left: 0; text-align: left; }
}
