:root {
    --purple-950: #1e0b46;
    --purple-900: #2e1065;
    --purple-800: #4c1d95;
    --purple-700: #6d28d9;
    --purple-600: #7c3aed;
    --purple-200: #ddd6fe;
    --purple-100: #ede9fe;
    --purple-50: #f7f4ff;
    --white: #ffffff;
    --ink: #151225;
    --muted: #686178;
    --line: #e7e2f2;
    --surface: #fbfaff;
    --panel: #ffffff;
    --slate: #273142;
    --green: #0f766e;
    --green-soft: #ccfbf1;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --gold: #a16207;
    --gold-soft: #fef3c7;
    --red: #b42318;
    --red-soft: #fee4e2;
    --shadow: 0 22px 60px rgba(46, 16, 101, 0.14);
    --shadow-soft: 0 12px 36px rgba(37, 49, 66, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(247, 244, 255, 0.86), rgba(255, 255, 255, 0.98) 360px),
        var(--surface);
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 18px clamp(18px, 5vw, 70px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
    color: var(--purple-900);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple-950), var(--purple-600));
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.26);
    flex: 0 0 auto;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(109, 40, 217, 0.18);
    flex: 0 0 auto;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a,
.dashboard-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a.active,
.dashboard-nav a:hover,
.dashboard-nav a.active {
    color: var(--purple-800);
    background: var(--purple-50);
}

.nav-toggle,
.sidebar-toggle {
    display: none;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
}

.btn-primary,
button {
    color: var(--white);
    background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.22);
}

.btn-primary:hover,
button:hover {
    background: var(--purple-800);
    color: white;
}

.btn-secondary {
    color: var(--purple-800);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: var(--shadow-soft);
}

.btn-ghost {
    color: var(--purple-800);
    background: var(--purple-50);
    box-shadow: none;
}

.btn-danger {
    color: var(--white);
    background: var(--red);
    box-shadow: none;
}

.btn-danger:hover {
    background: #8f1d14;
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.login-pill {
    white-space: nowrap;
}

.hero,
.section,
.page-hero {
    padding: clamp(52px, 8vw, 98px) clamp(18px, 5vw, 70px);
}

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    align-items: center;
    gap: clamp(34px, 6vw, 72px);
    background:
        linear-gradient(120deg, rgba(247, 244, 255, 0.98), rgba(255, 255, 255, 1) 52%, rgba(237, 233, 254, 0.8)),
        repeating-linear-gradient(90deg, rgba(109, 40, 217, 0.05) 0 1px, transparent 1px 76px);
}

.hero-pro {
    min-height: calc(100vh - 78px);
    background:
        linear-gradient(120deg, rgba(247, 244, 255, 0.96), rgba(255, 255, 255, 1) 48%, rgba(240, 253, 250, 0.92)),
        linear-gradient(90deg, rgba(15, 118, 110, 0.05), rgba(37, 99, 235, 0.05));
}

.hero-copy {
    max-width: 760px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-proof span,
.footer-badges span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 12px;
    font-weight: 850;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: 0;
    color: var(--purple-900);
}

.hero p,
.page-hero p,
.section-lead {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.72;
}

.hero-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
    max-width: 650px;
}

.metric {
    padding: 18px;
    border: 1px solid rgba(109, 40, 217, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.metric strong {
    display: block;
    color: var(--purple-800);
    font-size: 28px;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.product-visual {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: var(--shadow);
}

.product-visual-pro {
    border-color: rgba(15, 118, 110, 0.18);
}

.visual-topbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, var(--purple-950), var(--purple-800));
    color: var(--white);
}

.visual-body {
    padding: 22px;
}

.console-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.console-stats div,
.campaign-line,
.insight-row {
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: 8px;
    background: var(--white);
}

.console-stats div {
    padding: 14px;
}

.console-stats span,
.campaign-line span,
.insight-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.console-stats strong {
    display: block;
    margin-top: 8px;
    color: var(--purple-900);
    font-size: 24px;
}

.campaign-preview {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.campaign-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
}

.campaign-line strong {
    color: var(--ink);
    text-align: right;
    overflow-wrap: anywhere;
}

.delivery-strip {
    height: 12px;
    margin-top: 16px;
    border-radius: 999px;
    background: #e7f7f4;
    overflow: hidden;
}

.delivery-strip span {
    display: block;
    width: var(--value, 50%);
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.clean-row {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #5eead4;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.visual-card {
    min-height: 116px;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--white), var(--purple-50));
    border: 1px solid rgba(109, 40, 217, 0.14);
}

.visual-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--purple-900);
}

.visual-progress {
    height: 10px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.visual-progress span {
    display: block;
    height: 100%;
    width: var(--value, 50%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple-700), var(--green));
}

.visual-table {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.visual-row {
    display: grid;
    grid-template-columns: 1fr 90px 80px;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.visual-row:last-child {
    border-bottom: 0;
}

.section {
    background: var(--white);
}

.compact-section {
    padding-top: 22px;
    padding-bottom: 22px;
}

.section.alt {
    background:
        linear-gradient(180deg, #ffffff, var(--purple-50));
}

.section-header {
    max-width: 760px;
    margin-bottom: 32px;
}

.centered-header {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--purple-700);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

h2 {
    margin: 0 0 12px;
    color: var(--purple-900);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 10px;
    color: var(--purple-900);
    font-size: 20px;
    line-height: 1.25;
}

.feature-grid,
.pricing-grid,
.review-grid,
.stat-grid,
.form-grid,
.dashboard-grid {
    display: grid;
    gap: 18px;
}

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

.pricing-grid {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
}

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

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

.dashboard-grid {
    grid-template-columns: 1.35fr 0.65fr;
}

.metric-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    border: 1px solid rgba(15, 118, 110, 0.14);
    box-shadow: var(--shadow-soft);
}

.metric-band div {
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.metric-band strong {
    display: block;
    color: var(--purple-900);
    font-size: 30px;
}

.metric-band span {
    color: var(--muted);
    font-weight: 750;
}

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

.workflow-card {
    padding: 22px;
    border-radius: 8px;
    border: 1px solid rgba(109, 40, 217, 0.13);
    background: linear-gradient(180deg, #ffffff, #fbfaff);
    box-shadow: var(--shadow-soft);
}

.workflow-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: var(--white);
    background: var(--green);
    font-weight: 900;
}

.workflow-card p {
    color: var(--muted);
    line-height: 1.65;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    background: linear-gradient(135deg, #ffffff, #f7f4ff 56%, #eff6ff);
}

.check-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.check-list span {
    position: relative;
    padding-left: 30px;
    color: var(--ink);
    font-weight: 750;
}

.check-list span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--green-soft);
    box-shadow: inset 0 0 0 5px var(--green);
}

.insight-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: var(--shadow-soft);
}

.insight-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
}

.insight-row strong {
    color: var(--purple-900);
    text-align: right;
}

.elevated-review {
    background: linear-gradient(180deg, #ffffff, #fbfaff);
}

.final-cta-section {
    padding-top: 44px;
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--purple-950), var(--green));
    box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta .eyebrow,
.final-cta p {
    color: var(--white);
}

.final-cta p {
    max-width: 680px;
    line-height: 1.65;
}

.card,
.price-card,
.review-card,
.stat-card,
.form-card,
.table-card,
.settings-panel {
    border-radius: 8px;
    border: 1px solid rgba(109, 40, 217, 0.13);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.card:hover,
.price-card:hover,
.review-card:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(46, 16, 101, 0.11);
}

.card,
.price-card,
.review-card,
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card,
.review-card,
.stat-card,
.form-card,
.settings-panel {
    padding: 22px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.price-card.featured {
    border-color: rgba(109, 40, 217, 0.45);
    box-shadow: 0 22px 52px rgba(109, 40, 217, 0.18);
    background:
        linear-gradient(180deg, #ffffff, #fbfaff 64%, #f7f4ff);
}

.price {
    color: var(--purple-900);
    font-size: 36px;
    font-weight: 850;
}

.credits {
    color: var(--green);
    font-weight: 800;
}

.price-card p,
.card p,
.review-card p,
.settings-panel p {
    color: var(--muted);
    line-height: 1.65;
}

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

.list-clean li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
}

.list-clean li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--purple-700);
    flex: 0 0 auto;
}

.page-hero {
    background:
        linear-gradient(135deg, var(--purple-50), var(--white) 58%, #f0fdfa);
    border-bottom: 1px solid var(--line);
}

.contact-layout,
.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 26px;
    align-items: start;
}

.login-layout .resend-card {
    grid-column: 2;
}

form {
    margin: 0;
}

.field,
.form-grid {
    margin-bottom: 16px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #ddd7eb;
    border-radius: 8px;
    outline: none;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--purple-700);
    flex: 0 0 auto;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    box-shadow: none;
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.helper-text {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.form-divider {
    margin: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.settings-preview-logo,
.settings-preview-favicon {
    display: block;
    object-fit: contain;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.settings-preview-logo {
    width: 160px;
    height: 74px;
}

.settings-preview-favicon {
    width: 54px;
    height: 54px;
}

.settings-note {
    margin: 8px 0 18px;
    padding: 16px;
    border-radius: 8px;
    color: var(--purple-900);
    background: var(--purple-50);
    border: 1px solid rgba(109, 40, 217, 0.16);
}

.settings-note p {
    margin: 6px 0 0;
}

.compact-note {
    margin: 0;
}

.template-builder {
    grid-column: 1 / -1;
    margin-bottom: 16px;
}

.segmented-control {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--purple-50);
}

.segmented-control label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--purple-900);
    background: var(--white);
    cursor: pointer;
    width: auto;
}

.code-editor {
    min-height: 260px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    line-height: 1.55;
    white-space: pre-wrap;
}

.table-card {
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(109, 40, 217, 0.12);
    background: linear-gradient(180deg, rgba(247, 244, 255, 0.78), rgba(255, 255, 255, 0.98));
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    background: #faf9ff;
    font-size: 12px;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-success {
    color: var(--green);
    background: var(--green-soft);
}

.badge-warning {
    color: var(--gold);
    background: var(--gold-soft);
}

.badge-danger {
    color: var(--red);
    background: var(--red-soft);
}

.badge-neutral {
    color: var(--muted);
    background: #f2f4f7;
}

.badge-info {
    color: var(--blue);
    background: var(--blue-soft);
}

.site-footer {
    padding: 46px clamp(18px, 5vw, 70px) 24px;
    color: rgba(255, 255, 255, 0.78);
    background:
        linear-gradient(135deg, #171321, var(--purple-950) 48%, #0f3f3b);
}

.site-footer strong {
    color: var(--white);
}

.site-footer p {
    max-width: 560px;
    line-height: 1.6;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.55fr));
    gap: clamp(24px, 4vw, 50px);
    align-items: start;
}

.footer-logo {
    color: var(--white);
}

.footer-brand p {
    margin: 16px 0;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-column {
    display: grid;
    gap: 10px;
}

.footer-column strong {
    margin-bottom: 4px;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
}

.flash-stack {
    position: fixed;
    top: 88px;
    right: 22px;
    z-index: 50;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
}

.flash {
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: var(--white);
    border-left: 5px solid var(--purple-700);
}

.flash-success {
    border-color: var(--green);
}

.flash-error {
    border-color: var(--red);
}

.dashboard-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    background:
        linear-gradient(180deg, #fbfaff 0, #ffffff 360px, #f8f7fc 100%);
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    color: var(--white);
    background:
        linear-gradient(180deg, var(--purple-950), #2a0f5d 54%, #21103f);
    box-shadow: 20px 0 50px rgba(30, 11, 70, 0.15);
}

.sidebar-profile {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-profile > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: var(--purple-900);
    background: var(--white);
    font-weight: 900;
}

.sidebar-profile strong,
.sidebar-profile small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile small {
    color: rgba(255, 255, 255, 0.68);
}

.dashboard-brand {
    color: var(--white);
}

.dashboard-nav {
    display: grid;
    gap: 6px;
}

.dashboard-nav a {
    color: rgba(255, 255, 255, 0.76);
    background: transparent;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.72);
}

.logout-link {
    margin-top: auto;
    padding: 12px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    font-weight: 750;
}

.dashboard-shell {
    min-width: 0;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px clamp(18px, 4vw, 36px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(109, 40, 217, 0.11);
    backdrop-filter: blur(12px);
}

.dashboard-topbar h1 {
    margin: 0;
    color: var(--purple-900);
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0;
}

.topbar-user {
    display: grid;
    justify-items: end;
    color: var(--purple-900);
    font-weight: 800;
}

.topbar-user small {
    color: var(--muted);
    font-weight: 600;
}

.dashboard-main {
    display: grid;
    gap: 22px;
    padding: clamp(18px, 4vw, 36px);
}

.insight-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(109, 40, 217, 0.13);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 255, 0.94));
    box-shadow: var(--shadow-soft);
}

.insight-strip > div {
    min-width: 0;
}

.insight-strip span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.insight-strip strong {
    color: var(--purple-900);
    font-size: 18px;
}

.compact-actions {
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
}

.stat-card strong {
    display: block;
    color: var(--purple-950);
    font-size: 34px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.compact-form {
    display: flex;
    align-items: end;
    gap: 10px;
}

.package-form {
    display: grid;
    grid-template-columns: 110px 100px minmax(220px, 1fr) 120px auto;
    gap: 10px;
    align-items: end;
}

.compact-form select,
.compact-form input {
    min-width: 132px;
}

.capacity-note {
    padding: 16px;
    border-radius: 8px;
    color: var(--purple-900);
    background: var(--purple-50);
    border: 1px solid rgba(109, 40, 217, 0.16);
    font-weight: 750;
}

.mini-progress {
    height: 9px;
    width: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: #ece7f8;
}

.mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--purple-700), var(--green));
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list span {
    color: var(--muted);
    font-weight: 750;
}

.detail-list strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.template-preview {
    max-height: 420px;
    overflow: auto;
    padding: 16px;
    border-radius: 8px;
    color: #d7cfff;
    background: #171321;
    line-height: 1.6;
    white-space: pre-wrap;
}

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

.text-right {
    text-align: right;
}

.rating {
    color: var(--gold);
    font-weight: 900;
}

.empty-state {
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(21, 18, 37, 0.58);
}

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

.modal-panel {
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    padding: 22px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: var(--shadow);
}

.modal-close {
    color: var(--purple-800);
    background: var(--purple-50);
    box-shadow: none;
}

.shortcode-toolbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: var(--purple-50);
    border: 1px solid rgba(109, 40, 217, 0.16);
}

.error-text {
    color: var(--red);
    overflow-wrap: anywhere;
}

.collapsible-header {
    justify-content: flex-start;
}

.collapsible-header > div:nth-child(2) {
    flex: 1 1 auto;
}

.collapsible-body[hidden] {
    display: none;
}

.collapse-toggle {
    min-height: 36px;
    padding: 8px 12px;
    color: var(--purple-800);
    background: var(--purple-50);
    box-shadow: none;
}

.collapse-toggle:hover,
.modal-close:hover {
    color: var(--white);
    background: var(--purple-800);
}

button:disabled:hover,
.btn:disabled:hover {
    transform: none;
}

@media (max-width: 1180px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-grid,
    .feature-grid,
    .review-grid,
    .workflow-grid,
    .metric-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 920px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
    }

    .nav-toggle,
    .sidebar-toggle {
        display: inline-flex;
        min-height: 40px;
        padding: 9px 12px;
        color: var(--purple-800);
        background: var(--purple-50);
        box-shadow: none;
    }

    .site-nav {
        position: absolute;
        top: 78px;
        left: 18px;
        right: 18px;
        display: none;
        grid-template-columns: 1fr;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: grid;
    }

    .hero,
    .contact-layout,
    .login-layout,
    .dashboard-grid,
    .insight-strip,
    .split-section {
        grid-template-columns: 1fr;
    }

    .login-layout .resend-card {
        grid-column: auto;
    }

    .hero {
        min-height: auto;
    }

    .dashboard-body {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        width: min(300px, 86vw);
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .table-header,
    .collapsible-header,
    .panel-title,
    .shortcode-toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .collapsible-header > div:nth-child(2) {
        flex: 1 1 220px;
    }

    .compact-actions {
        justify-content: flex-start;
    }

    .final-cta,
    .footer-bottom {
        display: grid;
    }
}

@media (max-width: 680px) {
    .site-header {
        padding: 14px 16px;
        gap: 10px;
    }

    .brand span:last-child {
        display: none;
    }

    .hero,
    .section,
    .page-hero {
        padding: 42px 16px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .hero-metrics,
    .metric-band,
    .pricing-grid,
    .feature-grid,
    .review-grid,
    .workflow-grid,
    .stat-grid,
    .form-grid,
    .visual-grid,
    .console-stats,
    .footer-main,
    .package-form {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        align-items: flex-start;
    }

    .topbar-user {
        display: none;
    }

    .compact-form {
        display: grid;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        min-height: 38px;
        padding: 8px 10px;
    }

    .shortcode-toolbar {
        align-items: stretch;
        display: grid;
    }

    .campaign-line,
    .insight-row {
        display: grid;
    }

    .campaign-line strong,
    .insight-row strong {
        text-align: left;
    }
}

.dashboard-avatar,.topbar-avatar,.profile-photo-large{object-fit:cover;border-radius:50%;background:#fff}.dashboard-avatar{width:44px;height:44px}.topbar-user{grid-template-columns:1fr 42px;gap:12px;align-items:center;text-decoration:none}.topbar-user-copy{display:grid;justify-items:end}.topbar-user-copy strong,.topbar-user-copy small{display:block}.topbar-avatar{display:grid;place-items:center;width:42px;height:42px;border:2px solid #eee7ff}.profile-initial{color:var(--purple-900);background:var(--white);font-weight:900}.profile-photo-row{display:grid;grid-template-columns:100px 1fr;gap:18px;align-items:center;margin-bottom:20px}.profile-photo-large{display:grid;place-items:center;width:96px;height:96px;border:3px solid #eee7ff;font-size:30px}.shortcode-panel{grid-column:1/-1;padding:18px;margin-bottom:16px}.shortcode-grid{display:flex;flex-wrap:wrap;gap:10px}.shortcode-chip{display:inline-flex;gap:8px;align-items:center;padding:9px 12px;border:1px solid #ded4f6;border-radius:999px;color:var(--purple-900);background:#f8f5ff;box-shadow:none}.shortcode-chip code{font-size:12px;color:var(--muted)}.shortcode-chip:hover,.shortcode-chip.copied{color:#fff;background:var(--purple-700)}.shortcode-chip:hover code,.shortcode-chip.copied code{color:#fff}.copy-status{color:var(--green);font-size:13px;font-weight:800}
@media(max-width:680px){.profile-photo-row{grid-template-columns:1fr}.shortcode-chip{width:100%;justify-content:space-between}}
