:root {
    --navy: #0c1a2a;
    --navy-2: #11263d;
    --navy-3: #173451;
    --gold: #d4af37;
    --gold-soft: #f0d77a;
    --green: #20b15a;
    --danger: #f06b6b;
    --text: #f7f3e8;
    --muted: #aeb9c5;
    --line: rgba(255, 255, 255, 0.12);
    --panel: rgba(255, 255, 255, 0.065);
    --panel-strong: rgba(255, 255, 255, 0.1);
    --radius: 8px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--navy);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(12, 26, 42, 0.96), rgba(12, 26, 42, 1)),
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 28%);
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid var(--line);
    background: rgba(12, 26, 42, 0.9);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 8px;
    color: var(--gold);
}

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

.site-nav a,
.admin-nav a {
    padding: 9px 11px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
}

.site-nav a:hover,
.admin-nav a:hover,
.admin-nav a.active {
    color: var(--text);
    background: var(--panel);
}

.hero {
    display: grid;
    gap: 28px;
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(36px, 8vw, 96px) clamp(16px, 5vw, 72px);
}

.hero-content {
    max-width: 820px;
}

.eyebrow,
.step-label,
.plan-tag {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 980px;
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 7vw, 5rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: 0;
}

h3 {
    font-size: 1.2rem;
    letter-spacing: 0;
}

p {
    color: var(--muted);
}

.hero p {
    max-width: 690px;
    font-size: 1.12rem;
}

.hero-actions,
.briefing-actions,
.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.btn.primary {
    color: #111;
    background: var(--gold);
}

.btn.secondary {
    color: var(--text);
    background: var(--navy-3);
    border-color: var(--line);
}

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

.btn.whatsapp {
    color: #fff;
    background: var(--green);
}

.btn.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.diagnostic-panel,
.plan-card,
.briefing-card,
.auth-card,
.terms-box,
.success-card,
.admin-panel,
.stat-card,
.plan-edit-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.diagnostic-panel {
    display: grid;
    gap: 1px;
    overflow: hidden;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.panel-row span {
    color: var(--muted);
}

.section,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

.page-shell.narrow {
    width: min(860px, calc(100% - 32px));
}

.section-heading,
.page-title {
    margin-bottom: 24px;
}

.plan-grid {
    display: grid;
    gap: 16px;
}

.plan-card {
    display: flex;
    min-height: 280px;
    padding: 22px;
    flex-direction: column;
}

.plan-card.highlight {
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.1);
}

.plan-card p {
    flex: 1;
}

.price {
    display: block;
    margin-bottom: 18px;
    color: var(--gold-soft);
    font-size: 1.8rem;
}

.split-section {
    display: grid;
    gap: 28px;
}

.timeline {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li,
.small-timeline div {
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
    background: var(--panel);
}

.briefing-shell {
    width: min(1040px, calc(100% - 28px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.briefing-card {
    padding: clamp(18px, 4vw, 34px);
}

.briefing-head,
.panel-title,
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.save-status {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.save-status[data-mode="ok"] {
    color: #9dffbd;
}

.save-status[data-mode="error"] {
    color: var(--danger);
}

.progress-track {
    height: 8px;
    overflow: hidden;
    margin-bottom: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
    display: block;
    width: 16%;
    height: 100%;
    background: var(--gold);
    transition: width 0.25s ease;
}

.briefing-step {
    display: none;
}

.briefing-step.active {
    display: block;
}

.form-grid,
.choice-grid,
.upload-grid,
.answers-grid,
.stats-grid,
.plan-admin-grid {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(5, 12, 20, 0.56);
    outline: none;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(212, 175, 55, 0.72);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.choice-card,
.upload-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

.choice-card input {
    width: auto;
    min-height: 0;
    margin-right: 8px;
}

.choice-card span,
.choice-card strong,
.upload-card span {
    display: block;
}

.choice-card strong {
    color: var(--gold-soft);
}

.file-list {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.file-list a {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--gold-soft);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.045);
}

.terms-preview,
.notice {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.notice.success {
    border-color: rgba(32, 177, 90, 0.6);
}

.notice.warning {
    border-color: rgba(212, 175, 55, 0.65);
}

.notice.danger {
    border-color: rgba(240, 107, 107, 0.7);
    color: #ffd1d1;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.hidden {
    display: none !important;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(520px, 100%);
    padding: clamp(20px, 5vw, 34px);
}

.stack-form {
    display: grid;
    gap: 14px;
}

.muted-link {
    margin: 16px 0 0;
}

.terms-box,
.success-card {
    padding: clamp(20px, 5vw, 34px);
}

.summary-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.summary-list div,
.detail-list div,
.answers-grid article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.summary-list span,
.detail-list dt,
.answers-grid span,
.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 24px clamp(16px, 4vw, 48px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer p {
    margin: 0;
}

.admin-page {
    display: grid;
    min-height: 100vh;
}

.admin-sidebar {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    background: rgba(7, 16, 27, 0.96);
}

.admin-brand {
    margin-bottom: 12px;
}

.admin-main {
    padding: 20px clamp(14px, 3vw, 34px) 48px;
}

.admin-topbar h1 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
}

.admin-user {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
}

.stats-grid {
    margin-bottom: 18px;
}

.stat-card {
    padding: 20px;
}

.stat-card strong {
    display: block;
    font-size: 2.2rem;
    color: var(--gold-soft);
}

.admin-panel {
    margin-bottom: 18px;
    padding: 18px;
    box-shadow: none;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--gold-soft);
    font-size: 0.86rem;
    text-transform: uppercase;
}

td {
    color: var(--muted);
}

td a {
    color: var(--gold-soft);
    text-decoration: none;
}

.status-pill {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--text);
    background: var(--navy-3);
    white-space: nowrap;
}

.inline-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-filter select {
    min-width: 220px;
}

.admin-detail-grid {
    display: grid;
    gap: 18px;
}

.detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.detail-list dd {
    margin: 0;
}

.answers-grid article p {
    margin: 6px 0 0;
    color: var(--text);
}

.plan-edit-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    box-shadow: none;
}

code {
    color: var(--gold-soft);
}

@media (min-width: 720px) {
    .hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    }

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

    .form-grid,
    .choice-grid,
    .upload-grid,
    .answers-grid,
    .plan-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-section,
    .admin-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    }
}

@media (min-width: 980px) {
    .admin-page {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .admin-sidebar {
        min-height: 100vh;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        position: sticky;
        top: 0;
    }

    .admin-nav {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 719px) {
    .site-header,
    .briefing-head,
    .panel-title,
    .admin-topbar,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav a {
        padding: 8px;
    }

    h1 {
        font-size: clamp(2.1rem, 13vw, 3.5rem);
    }

    .save-status {
        width: 100%;
    }
}
/* Global polish for installer, public pages and admin */
body.install-page,
body.auth-page {
    background:
        linear-gradient(145deg, rgba(12, 26, 42, 0.98), rgba(8, 17, 28, 1)),
        radial-gradient(circle at 18% 12%, rgba(212, 175, 55, 0.18), transparent 34%);
}

.auth-card h1,
.install-page h1,
.admin-panel h2,
.plan-edit-card h2 {
    font-size: clamp(1.75rem, 6vw, 2.55rem);
    line-height: 1.08;
}

.auth-card p,
.install-page p {
    font-size: 1rem;
}

.install-page .auth-card {
    width: min(760px, 100%);
}

.install-page .stack-form {
    gap: 16px;
}

.install-page .btn,
.auth-page .btn,
.briefing-actions .btn {
    width: 100%;
}

input::placeholder,
textarea::placeholder {
    color: rgba(174, 185, 197, 0.7);
}

select option {
    color: #0c1a2a;
    background: #ffffff;
}

.auth-card,
.briefing-card,
.admin-panel,
.success-card,
.terms-box,
.plan-card {
    backdrop-filter: blur(18px);
}

.stack-form label,
.form-grid label,
.plan-edit-card label {
    color: #f7f3e8;
    font-size: 0.96rem;
}

input,
select,
textarea {
    font-size: 1rem;
}

.admin-panel h2,
.terms-box h2 {
    margin-bottom: 12px;
}

.admin-nav a,
.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.btn.whatsapp,
a.btn.whatsapp {
    border-color: rgba(32, 177, 90, 0.3);
    background: #20b15a;
    color: #ffffff;
}

.btn.whatsapp:hover,
a.btn.whatsapp:hover {
    background: #24c967;
}

.notice {
    color: var(--text);
}

.notice p:last-child,
.terms-preview p:last-child {
    margin-bottom: 0;
}

@media (min-width: 760px) {
    .install-page .stack-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .install-page .stack-form .btn,
    .install-page .notice {
        grid-column: 1 / -1;
    }

    .install-page .btn,
    .auth-page .btn,
    .briefing-actions .btn {
        width: auto;
    }
}

@media (max-width: 520px) {
    .auth-shell {
        padding: 14px;
    }

    .auth-card,
    .briefing-card,
    .admin-panel,
    .success-card,
    .terms-box,
    .plan-card {
        border-radius: 8px;
    }

    .btn {
        width: 100%;
    }
}
/* Cliente, admin operacional e WhatsApp flutuante */
.client-page {
    min-height: 100vh;
}

.client-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 80px;
}

.client-title h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.client-card-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.client-action-card {
    display: flex;
    min-height: 132px;
    padding: 18px;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.client-action-card span {
    color: var(--muted);
}

.client-action-card strong {
    color: var(--gold-soft);
    font-size: 1.3rem;
}

.whatsapp-card strong {
    color: #9dffbd;
}

.wide-form {
    gap: 16px;
}

.upload-form {
    max-width: 680px;
}

.compact-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.table-actions form {
    margin: 0;
}

.link-button {
    padding: 0;
    border: 0;
    color: var(--gold-soft);
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.prompt-textarea {
    min-height: 520px;
    white-space: pre-wrap;
    font-family: Consolas, Monaco, monospace;
    line-height: 1.55;
}

.project-choice input {
    width: auto;
    min-height: auto;
}

.floating-whatsapp {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 90;
    display: inline-flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #20b15a;
    box-shadow: 0 14px 34px rgba(32, 177, 90, 0.34);
    animation: whatsappPulse 2.4s ease-in-out infinite;
}

.floating-whatsapp img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.wa-fallback {
    display: none;
    color: #fff;
    font-weight: 800;
}

@keyframes whatsappPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 14px 34px rgba(32, 177, 90, 0.32); }
    50% { transform: scale(1.06); box-shadow: 0 18px 42px rgba(32, 177, 90, 0.48); }
}

@media (min-width: 720px) {
    .client-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wide-form .btn.primary,
    .upload-form .btn {
        width: fit-content;
    }
}

@media (max-width: 640px) {
    .floating-whatsapp {
        width: 54px;
        height: 54px;
        right: 12px;
        bottom: 12px;
    }

    .floating-whatsapp img {
        width: 30px;
        height: 30px;
    }

    .client-main {
        width: min(calc(100% - 24px), 1180px);
        padding-top: 24px;
    }
}
/* Visual hotfix: area do cliente e WhatsApp flutuante */
.client-page .site-header {
    align-items: center;
    gap: 18px;
}

.client-page .site-nav {
    justify-content: flex-end;
}

.client-page .site-nav a.active {
    color: var(--text);
    background: var(--panel-strong);
    border: 1px solid var(--line);
}

.client-main {
    padding-bottom: 96px;
}

.client-title {
    margin-bottom: 22px;
}

.client-title h1 {
    margin-bottom: 0;
}

.client-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.client-action-card {
    min-height: 138px;
    padding: 20px;
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.client-action-card:hover {
    border-color: rgba(212, 175, 55, 0.42);
    transform: translateY(-1px);
}

.client-action-card strong {
    line-height: 1.15;
}

.client-page .admin-panel {
    padding: clamp(16px, 3vw, 24px);
}

.client-page .panel-title {
    align-items: center;
}

.client-page .table-wrap table {
    min-width: 760px;
}

.client-page .table-actions {
    gap: 8px;
    align-items: center;
}

.client-page .table-actions .btn {
    min-height: 36px;
    width: auto;
    white-space: nowrap;
}

.floating-whatsapp {
    position: fixed !important;
    right: max(18px, env(safe-area-inset-right)) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    z-index: 9999 !important;
    display: inline-flex !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: #20b15a !important;
    box-shadow: 0 14px 34px rgba(32, 177, 90, 0.34) !important;
    text-decoration: none !important;
    animation: whatsappPulseSoft 2.6s ease-in-out infinite !important;
}

.floating-whatsapp img {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    flex: 0 0 28px !important;
}

.floating-whatsapp .wa-fallback,
.wa-fallback {
    display: none !important;
    visibility: hidden !important;
}

@keyframes whatsappPulseSoft {
    0%, 100% { transform: scale(1); box-shadow: 0 14px 34px rgba(32, 177, 90, 0.32); }
    50% { transform: scale(1.045); box-shadow: 0 18px 42px rgba(32, 177, 90, 0.46); }
}

@media (max-width: 719px) {
    .client-page .site-header {
        align-items: stretch;
    }

    .client-page .site-nav {
        justify-content: flex-start;
    }

    .client-card-grid {
        grid-template-columns: 1fr;
    }

    .client-page .panel-title {
        align-items: stretch;
    }

    .client-page .panel-title .btn {
        width: 100%;
    }

    .client-page .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .client-page .table-actions .btn {
        width: 100%;
    }

    .floating-whatsapp {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        right: 12px !important;
        bottom: 12px !important;
    }

    .floating-whatsapp img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
}
/* Briefing guiado - rota de teste cliente/briefing_wizard.php */
.wizard-shell {
    width: min(900px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 96px;
}

.wizard-card {
    padding: clamp(18px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.052));
    box-shadow: 0 26px 74px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.wizard-top,
.wizard-block-head,
.wizard-progress-meta,
.wizard-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.wizard-top {
    margin-bottom: 20px;
}

.wizard-top h2 {
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 6vw, 2.7rem);
}

.wizard-top p {
    max-width: 640px;
    margin-bottom: 0;
}

.wizard-progress {
    margin-bottom: 22px;
}

.wizard-progress-meta {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.92rem;
}

.wizard-progress-meta strong {
    color: var(--gold-soft);
}

.wizard-form,
.wizard-step-panel,
.wizard-field-block,
.wizard-review-grid {
    display: grid;
    gap: 16px;
}

.wizard-mini-title {
    display: block;
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.wizard-choice-grid,
.wizard-material-grid {
    display: grid;
    gap: 12px;
}

.wizard-choice-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.wizard-choice-option input {
    position: absolute;
    inset: 14px auto auto 14px;
    width: 18px;
    min-height: 18px;
    opacity: 0;
}

.wizard-choice-option span,
.wizard-material-card,
.wizard-review-block,
.wizard-files-box {
    display: grid;
    gap: 7px;
    min-height: 84px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(5, 12, 20, 0.34);
}

.wizard-choice-option input:checked + span {
    border-color: rgba(212, 175, 55, 0.72);
    background: rgba(212, 175, 55, 0.13);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.wizard-choice-option strong,
.wizard-material-card strong {
    color: var(--text);
}

.wizard-choice-option small,
.wizard-material-card span {
    color: var(--muted);
}

.wizard-material-card {
    width: 100%;
    min-height: 118px;
    color: var(--text);
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.wizard-material-card.highlight {
    border-color: rgba(212, 175, 55, 0.58);
    background: rgba(212, 175, 55, 0.11);
}

.wizard-material-card:hover,
.wizard-review-block:hover {
    border-color: rgba(212, 175, 55, 0.42);
}

.wizard-files-box,
.wizard-review-block {
    min-height: auto;
}

.wizard-price {
    margin: 0;
    color: var(--gold-soft);
    font-size: 1.75rem;
    font-weight: 800;
}

.wizard-summary-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.wizard-summary-list div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.wizard-summary-list dt {
    color: var(--muted);
    font-size: 0.86rem;
}

.wizard-summary-list dd {
    margin: 3px 0 0;
    color: var(--text);
    overflow-wrap: anywhere;
}

.wizard-actions {
    padding-top: 6px;
    flex-wrap: wrap;
}

.wizard-actions .btn {
    min-height: 50px;
}

.wizard-terms-check {
    align-items: flex-start;
    padding: 14px;
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.08);
}

.wizard-terms-check a {
    color: var(--gold-soft);
    font-weight: 800;
}

.wizard-modal[hidden] {
    display: none;
}

.wizard-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(3, 8, 13, 0.78);
}

.wizard-modal-card {
    position: relative;
    width: min(680px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    padding: clamp(20px, 5vw, 30px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0c1a2a;
    box-shadow: var(--shadow);
}

.wizard-modal-card h2 {
    font-size: clamp(1.45rem, 5vw, 2rem);
}

.wizard-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

@media (min-width: 720px) {
    .wizard-shell {
        padding-top: 28px;
    }

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

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

    .wizard-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-review-block:nth-child(3),
    .wizard-review-block:nth-child(4) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 719px) {
    .wizard-top,
    .wizard-block-head,
    .wizard-progress-meta,
    .wizard-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wizard-actions .btn,
    .wizard-block-head .btn {
        width: 100%;
    }

    .wizard-choice-option span,
    .wizard-material-card,
    .wizard-review-block,
    .wizard-files-box {
        min-height: auto;
    }
}
