:root {
    --bg: #071423;
    --bg-soft: #10263f;
    --bg-bright: #163a67;
    --text: #f2ede3;
    --text-muted: #b9c7d4;
    --gold: #c9a34c;
    --gold-soft: #e9dcc0;
    --alert: #ef8f42;
    --success: #7cd5a5;
    --line: rgba(233, 220, 192, 0.18);
    --line-strong: rgba(233, 220, 192, 0.34);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --radius: 24px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top, rgba(52, 112, 184, 0.72), transparent 34%),
        radial-gradient(circle at 20% 20%, rgba(29, 74, 127, 0.34), transparent 30%),
        linear-gradient(180deg, #0d2641 0%, #06111d 100%);
    color: var(--text);
}

body.admin-shell {
    background:
        radial-gradient(circle at top right, rgba(73, 132, 204, 0.26), transparent 28%),
        linear-gradient(180deg, #0a1930 0%, #07111d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 85%);
}

.page-shell {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 28px 24px 80px;
}

.section {
    padding: 44px 0;
}

.section-dark {
    position: relative;
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 20px -24px;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(17, 41, 67, 0.92), rgba(10, 22, 38, 0.62));
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
}

.site-header.compact {
    padding-bottom: 18px;
}

.admin-shell .page-shell {
    width: min(100%, 1360px);
    padding-top: 22px;
}

.admin-shell .site-header {
    padding: 10px 0 20px;
}

.admin-shell .brand img {
    width: 64px;
    height: 64px;
}

.admin-shell .brand strong {
    font-size: 1rem;
}

.admin-shell .brand small {
    font-size: 0.66rem;
    letter-spacing: 0.16em;
}

.admin-shell .site-nav a {
    font-size: 0.9rem;
}

.admin-shell .section {
    padding: 28px 0;
}

.admin-shell .section-heading {
    max-width: none;
    margin-bottom: 22px;
}

.admin-shell .split-heading {
    align-items: center;
    gap: 18px;
}

.admin-shell h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    line-height: 1.08;
    max-width: none;
}

.admin-shell h2 {
    font-size: clamp(1.2rem, 1.5vw, 1.65rem);
    line-height: 1.18;
}

.admin-shell h3 {
    font-size: 1.05rem;
}

.admin-shell .eyebrow,
.admin-shell .mini-label {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.admin-shell .section-heading p,
.admin-shell .dashboard-card p,
.admin-shell .dashboard-card li,
.admin-shell .section-tab p,
.admin-shell .migration-date,
.admin-shell label,
.admin-shell .auth-error,
.admin-shell .flash-banner {
    font-size: 0.95rem;
}

.admin-shell .dashboard-grid {
    gap: 16px;
}

.admin-shell .dashboard-card,
.admin-shell .form-card {
    padding: 22px;
    border-radius: 22px;
}

.admin-shell .dashboard-card.large {
    grid-column: span 3;
}

.admin-shell .section-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 12px;
}

.admin-shell .section-tab {
    padding: 16px 18px;
    border-radius: 18px;
}

.admin-shell .section-tab strong {
    margin-bottom: 6px;
    font-size: 0.98rem;
}

.admin-shell .form-grid {
    gap: 14px;
}

.admin-shell input,
.admin-shell select,
.admin-shell textarea {
    padding: 12px 14px;
    border-radius: 12px;
}

.admin-shell .form-actions,
.admin-shell .hero-actions,
.admin-shell .cta-actions {
    margin-top: 18px;
}

.admin-shell .button {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.92rem;
}

.admin-shell .admin-stack {
    gap: 14px;
}

.admin-shell .migration-row {
    padding: 16px 18px;
    border-radius: 16px;
}

.admin-shell .settings-group-copy {
    margin: 0 0 18px;
    color: var(--text-muted);
    line-height: 1.65;
}

.admin-settings-tabs {
    margin-bottom: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
    text-decoration: none;
}

.brand img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(14, 42, 74, 0.38));
}

.brand strong,
.brand small {
    display: block;
}

.brand strong,
h1,
h2,
h3 {
    font-family: "Cinzel", serif;
    letter-spacing: 0.02em;
}

.brand strong {
    font-size: 1.1rem;
}

.brand small {
    margin-top: 6px;
    color: var(--gold-soft);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.96rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #d7b366, #b98a33);
    color: #0c1930;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(201, 163, 76, 0.24);
}

.button-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    box-shadow: none;
}

.hero {
    min-height: 76vh;
}

.hero-frame,
.hero-card {
    display: grid;
    gap: 18px;
}

.hero-frame {
    width: 100%;
    padding: 30px;
    border-radius: 34px;
    border: 1px solid rgba(233, 220, 192, 0.16);
    background:
        radial-gradient(circle at top right, rgba(86, 142, 214, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(18, 49, 84, 0.92), rgba(8, 24, 40, 0.84));
    box-shadow: 0 30px 80px rgba(4, 10, 18, 0.28);
}

.hero-topline-slider {
    display: grid;
}

.hero-topline-display {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(233, 220, 192, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.hero-kicker {
    color: var(--gold-soft);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-topline strong {
    font-family: "Cinzel", serif;
    font-size: 1.25rem;
    color: var(--text);
}

.hero-topline p {
    margin: 0;
    color: var(--text-muted);
}

.hero-main {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy-stack {
    display: grid;
    align-content: center;
}

.eyebrow,
.mini-label {
    margin: 0 0 16px;
    color: var(--gold-soft);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.76rem;
    font-weight: 800;
}

h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.6vw, 4.1rem);
    line-height: 1.08;
    max-width: 14ch;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.12;
}

h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.lead {
    max-width: 62ch;
    margin: 22px 0 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions,
.cta-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-metrics {
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 34px 0 0;
    list-style: none;
}

.hero-metrics li,
.spotlight-card,
.plan-card,
.brand-card,
.menu-card,
.tech-card,
.side-card,
.dashboard-card,
.form-card,
.builder-panel,
.quote-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-metrics li {
    min-width: 140px;
    padding: 18px 20px;
}

.hero-metrics strong {
    display: block;
    font-size: 1.5rem;
    color: var(--gold);
}

.hero-metrics span,
.spotlight-card p,
.spotlight-card dd,
.section-heading p,
.brand-card p,
.plan-card li,
.menu-card li,
.tech-card li,
.timeline p,
.quote-note,
.rules-card li,
.service-group p,
.dashboard-card li,
.asset-row p,
.side-card li {
    color: var(--text-muted);
    line-height: 1.7;
}

.spotlight-card,
.plan-card,
.brand-card,
.menu-card,
.tech-card,
.dashboard-card,
.side-card,
.form-card,
.builder-panel,
.quote-panel {
    padding: 26px;
}

.spotlight-card dl {
    margin: 22px 0 0;
    display: grid;
    gap: 18px;
}

.spotlight-card dt {
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 4px;
}

.brand-spotlight {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding-bottom: 22px;
}

.brand-spotlight::after {
    content: "";
    position: absolute;
    inset: auto -10% -12% 35%;
    height: 180px;
    background: radial-gradient(circle, rgba(201, 163, 76, 0.38), transparent 68%);
    pointer-events: none;
}

.brand-spotlight img {
    display: block;
    width: min(100%, 140px);
    margin: 18px 0 0 auto;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.36));
}

.hero-focus-card {
    display: grid;
    align-content: space-between;
    min-height: 100%;
    min-width: 320px;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(233, 220, 192, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
    box-shadow: 0 20px 44px rgba(4, 10, 18, 0.22);
}

.hero-focus-copy {
    display: grid;
    gap: 14px;
}

.hero-focus-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-visual-stage {
    position: relative;
    display: grid;
    align-items: end;
    justify-items: end;
    min-height: 190px;
    margin-top: 18px;
    overflow: hidden;
}

.hero-visual-mark {
    position: relative;
    z-index: 1;
    width: min(100%, 250px);
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
}

.hero-visual-glow {
    position: absolute;
    right: -10%;
    bottom: -18%;
    width: 240px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 163, 76, 0.42), rgba(201, 163, 76, 0.12) 45%, transparent 72%);
}

.hero-slider-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 6px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(233, 220, 192, 0.28);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(233, 220, 192, 0.18);
}

.hero-dot.is-active {
    width: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d7b366, #b98a33);
}

.hero-slider {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.hero-slider-track {
    display: flex;
    width: max-content;
    gap: 14px;
    padding: 14px;
    animation: hero-marquee 26s linear infinite;
}

.hero-slider-track span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(9, 27, 46, 0.86);
    border: 1px solid rgba(233, 220, 192, 0.12);
    color: var(--gold-soft);
    font-size: 0.9rem;
    white-space: nowrap;
}

.section-heading {
    max-width: 78ch;
    margin-bottom: 28px;
}

.split-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: end;
}

.plan-grid,
.brand-grid,
.menu-grid,
.tech-grid,
.dashboard-grid {
    display: grid;
    gap: 20px;
}

.plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-grid,
.menu-grid,
.tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price,
.quote-value,
.tagline {
    color: var(--gold);
    font-weight: 800;
}

.price {
    margin: 0 0 16px;
    font-size: 1.14rem;
}

.plan-card ul,
.menu-card ul,
.tech-card ul,
.rules-card ul,
.dashboard-card ul,
.side-card ul,
.side-card ol {
    margin: 0;
    padding-left: 18px;
}

.menu-card,
.plan-card,
.dashboard-card,
.quote-panel,
.builder-panel {
    box-shadow: 0 18px 36px rgba(3, 9, 16, 0.22);
}

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.swatches span {
    display: inline-flex;
    align-items: flex-end;
    min-height: 110px;
    min-width: 140px;
    padding: 14px;
    border-radius: 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f5f0e5;
}

.builder-layout,
.form-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 22px;
    align-items: start;
}

.builder-step {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.builder-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(233, 220, 192, 0.12);
}

.builder-toggle-row h3 {
    margin-bottom: 8px;
}

.builder-toggle-row p:last-child {
    margin: 0;
    color: var(--text-muted);
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    color: var(--gold-soft);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-slider {
    position: relative;
    width: 64px;
    height: 34px;
    border-radius: 999px;
    background: rgba(244, 239, 229, 0.2);
    border: 1px solid rgba(233, 220, 192, 0.3);
    transition: background 0.2s ease;
}

.switch-slider::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f4efe5;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
    background: linear-gradient(135deg, #d7b366, #b98a33);
}

.switch input:checked + .switch-slider::after {
    transform: translateX(30px);
}

.quote-panel {
    position: sticky;
    top: 24px;
}

.currency-switcher {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.currency-switcher label {
    color: var(--gold-soft);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

select,
input,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    color: var(--text);
    padding: 14px 16px;
    font: inherit;
}

select {
    color-scheme: light;
}

select option {
    background: #f4efe5;
    color: #112235;
}

#planSelect,
#locationFactor,
#currencySelect,
.frequency-select {
    background: #f4efe5;
    color: #112235;
    border: 1px solid rgba(201, 163, 76, 0.45);
    font-weight: 700;
}

#planSelect option,
#locationFactor option,
#currencySelect option,
.frequency-select option {
    background: #f4efe5 !important;
    color: #112235 !important;
}

.builder-groups {
    display: grid;
    gap: 18px;
}

.service-group {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(233, 220, 192, 0.08);
}

.service-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.service-input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.quote-value {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-top: 8px;
}

.quote-breakdown {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.quote-rate-note {
    margin: 10px 0 0;
    color: var(--gold-soft);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.quote-cycle,
.quote-orb-cycle {
    color: var(--gold-soft);
    font-size: 0.84rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
}

.quote-cycle {
    margin: 8px 0 0;
}

.quote-incentive,
.quote-orb-incentive {
    color: #d9c27d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.quote-incentive {
    margin: 8px 0 0;
}

.quote-orb-incentive {
    margin-top: 2px;
}

.quote-line-discount strong {
    color: #d9c27d;
}

.quote-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(233, 220, 192, 0.08);
    padding-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.auth-error {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 112, 112, 0.35);
    border-radius: 16px;
    background: rgba(128, 28, 28, 0.24);
    color: #ffd2d2;
}

.success-note {
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(124, 213, 165, 0.35);
    border-radius: 16px;
    background: rgba(24, 84, 54, 0.24);
    color: #d9ffea;
}

.flash-banner {
    margin: 18px 0 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(233, 220, 192, 0.18);
    box-shadow: 0 18px 36px rgba(3, 9, 16, 0.18);
    font-weight: 700;
    line-height: 1.6;
}

.flash-success {
    border-color: rgba(124, 213, 165, 0.35);
    background: rgba(24, 84, 54, 0.24);
    color: #d9ffea;
}

.flash-error {
    border-color: rgba(255, 112, 112, 0.35);
    background: rgba(128, 28, 28, 0.24);
    color: #ffd2d2;
}

.flash-info {
    border-color: rgba(140, 188, 255, 0.28);
    background: rgba(19, 54, 92, 0.28);
    color: #d9ebff;
}

.footer-art {
    padding-top: 10px;
    padding-bottom: 0;
}

.footer-art img {
    display: block;
    width: 100%;
    border-radius: 30px;
    border: 1px solid rgba(233, 220, 192, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    opacity: 0.9;
}

.brand-showcase {
    display: block;
    width: min(100%, 320px);
    margin: 0 auto;
    object-fit: contain;
}

.brand-showcase-dark {
    width: min(100%, 420px);
}

.quote-orb {
    position: fixed;
    right: 20px;
    top: 92px;
    z-index: 9999;
    display: grid;
    gap: 4px;
    min-width: 250px;
    max-width: min(320px, calc(100vw - 32px));
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(233, 220, 192, 0.26);
    background: linear-gradient(180deg, rgba(17, 44, 73, 0.96), rgba(9, 24, 40, 0.94));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
}

.quote-orb-label {
    color: var(--gold-soft);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
}

.quote-orb strong {
    color: var(--gold);
    font-size: 1.7rem;
    line-height: 1.1;
}

.quote-orb-currency {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.quote-orb-action {
    width: 100%;
    margin-top: 8px;
}

.is-hidden {
    display: none;
}

.rules-card {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.timeline article {
    padding: 24px;
    border-top: 1px solid var(--line-strong);
}

.timeline span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 18px;
}

.section-cta {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
}

.luxury-form,
.side-panel {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.asset-stack,
.check-stack {
    display: grid;
    gap: 14px;
}

.asset-row,
.dashboard-stats div,
.dashboard-panels section {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(233, 220, 192, 0.09);
}

.check-stack label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.6;
}

.check-stack input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.dashboard-card.large {
    grid-column: span 2;
}

.dashboard-card.alert-card {
    border-color: rgba(239, 143, 66, 0.34);
    background: linear-gradient(180deg, rgba(68, 42, 23, 0.55), rgba(34, 23, 14, 0.34));
}

.dashboard-card.success-card {
    border-color: rgba(124, 213, 165, 0.28);
    background: linear-gradient(180deg, rgba(18, 63, 51, 0.52), rgba(12, 36, 30, 0.34));
}

.dashboard-card.info-card {
    border-color: rgba(140, 188, 255, 0.28);
    background: linear-gradient(180deg, rgba(19, 54, 92, 0.55), rgba(12, 29, 48, 0.34));
}

.section-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.section-tab {
    display: block;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(233, 220, 192, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: 0 18px 36px rgba(3, 9, 16, 0.22);
    text-decoration: none;
}

.section-tab strong {
    display: block;
    color: var(--gold-soft);
    margin-bottom: 8px;
    font-family: "Cinzel", serif;
}

.section-tab p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

#hero-control,
#settings-control,
#plans-control,
#sections-control,
#services-control {
    scroll-margin-top: 24px;
}

.dashboard-stats,
.dashboard-panels {
    display: grid;
    gap: 14px;
}

.dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0 20px;
}

.dashboard-stats strong {
    display: block;
    color: var(--gold);
    font-size: 1.1rem;
}

.dashboard-stats span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-stack {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.migration-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.migration-list-head,
.migration-row {
    display: grid;
    grid-template-columns: 0.4fr 2fr 0.9fr 1.1fr 0.8fr 1.1fr;
    gap: 14px;
    align-items: center;
}

.migration-list-head {
    padding: 0 8px;
    color: var(--gold-soft);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.migration-row {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(233, 220, 192, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.migration-file strong {
    display: block;
    color: var(--text);
    word-break: break-word;
}

.migration-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(201, 163, 76, 0.12);
    border: 1px solid rgba(201, 163, 76, 0.24);
    color: var(--gold-soft);
    font-weight: 800;
}

.migration-date {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(239, 143, 66, 0.16);
    border: 1px solid rgba(239, 143, 66, 0.28);
    color: #ffc089;
}

.status-applied {
    background: rgba(124, 213, 165, 0.16);
    border: 1px solid rgba(124, 213, 165, 0.28);
    color: #cffff0;
}

.status-rolledback {
    background: rgba(140, 188, 255, 0.16);
    border: 1px solid rgba(140, 188, 255, 0.28);
    color: #d9ebff;
}

.migration-actions .button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.migration-row.is-targeted {
    border-color: rgba(124, 213, 165, 0.45);
    box-shadow: 0 0 0 1px rgba(124, 213, 165, 0.18);
}

.migration-card strong {
    display: block;
    color: var(--gold-soft);
    margin-bottom: 10px;
}

.migration-card p {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.migration-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.migration-actions {
    display: grid;
    gap: 10px;
    min-width: 150px;
}

.doc-viewer {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow);
}

.doc-viewer h1,
.doc-viewer h2,
.doc-viewer h3,
.doc-viewer h4,
.doc-viewer h5,
.doc-viewer h6 {
    margin: 0 0 14px;
}

.doc-viewer h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    max-width: none;
}

.doc-viewer h2 {
    margin-top: 30px;
    font-size: 1.7rem;
}

.doc-viewer h3 {
    margin-top: 22px;
    font-size: 1.2rem;
}

.doc-viewer p,
.doc-viewer li {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 1rem;
}

.doc-viewer ul,
.doc-viewer ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.doc-viewer code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(201, 163, 76, 0.14);
    color: var(--gold-soft);
    font-size: 0.92em;
}

@keyframes hero-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1080px) {
    .hero-main,
    .split-heading,
    .builder-layout,
    .form-layout,
    .section-cta,
    .timeline,
    .dashboard-grid,
    .section-tabs,
    .plan-grid,
    .brand-grid,
    .menu-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card.large {
        grid-column: auto;
    }

    .dashboard-stats,
    .dashboard-panels,
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .migration-list-head,
    .migration-row {
        grid-template-columns: 1fr;
    }

    .admin-shell .dashboard-card.large {
        grid-column: auto;
    }

    .admin-shell .section-tabs {
        grid-template-columns: 1fr;
    }

    .migration-meta {
        flex-direction: column;
    }

    .quote-orb {
        right: 16px;
        top: auto;
        bottom: 16px;
    }
}

@media (max-width: 780px) {
    .page-shell {
        padding: 20px 16px 56px;
    }

    .hero-frame {
        padding: 20px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        max-width: 100%;
    }

    .hero-metrics,
    .dashboard-stats,
    .form-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .service-row {
        grid-template-columns: 1fr;
    }

    .builder-toggle-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .swatches span {
        min-width: calc(50% - 12px);
    }

    .quote-orb {
        left: 16px;
        right: 16px;
        bottom: 14px;
        top: auto;
        min-width: 0;
    }
}
