﻿:root {
    --primary: #0f766e;
    --primary-hover: #0b5f59;
    --primary-light: #5eead4;
    --primary-soft: #ecfdf8;
    --accent: #d97706;
    --accent-2: #ea580c;
    --bg: #fafbf9;
    --bg-soft: #f1f4f2;
    --bg-dark: #0c1419;
    --surface: #ffffff;
    --text: #12181f;
    --text-body: #3d4a52;
    --text-muted: #6b767e;
    --border: #dde4e1;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --shadow-sm: 0 1px 2px 0 rgb(12 20 25 / 0.05);
    --shadow-md: 0 4px 10px -2px rgb(12 20 25 / 0.08), 0 2px 4px -2px rgb(12 20 25 / 0.05);
    --shadow-lg: 0 16px 32px -8px rgb(12 20 25 / 0.12), 0 4px 12px -4px rgb(12 20 25 / 0.06);
    --shadow-xl: 0 32px 64px -12px rgb(12 20 25 / 0.2);
    --shadow-primary: 0 8px 24px -6px rgb(15 118 110 / 0.45);
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --container: 76rem;
    --header-h: 4.5rem;
    --font-heading: 'Alexandria', 'Almarai', system-ui, sans-serif;
    --font-body: 'Almarai', 'Alexandria', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.main {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.3;
    font-weight: 700;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.gradient-text {
    background: linear-gradient(110deg, var(--primary-light) 0%, var(--accent) 55%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Header */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    background: rgb(255 255 255 / 0.75);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgb(229 233 242 / 0.8);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1rem;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.logo-icon svg {
    width: 21px;
    height: 21px;
}

.logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.1rem;
    list-style: none;
    margin-inline: auto;
    min-width: 0;
}

.nav-menu > li {
    flex-shrink: 0;
}

.nav-link {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-body);
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.nav-actions .theme-toggle,
.nav-actions .lang-switch {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
}

.hamburger::before { transform: translateY(-6px); }
.hamburger::after { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.4rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.975rem;
    line-height: 1;
    border: 1.5px solid transparent;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -6px rgb(15 118 110 / 0.5);
    color: #fff;
}

.btn-ghost-nav {
    background: transparent;
    border-color: transparent;
    color: var(--text-body);
}

.btn-ghost-nav:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: rgb(255 255 255 / 0.08);
    border-color: rgb(255 255 255 / 0.18);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
    transform: translateY(-2px);
}

.btn-light {
    background: #fff;
    color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--primary-hover);
}

.btn-ghost-dark {
    background: rgb(255 255 255 / 0.08);
    border-color: rgb(255 255 255 / 0.22);
    color: #fff;
}

.btn-ghost-dark:hover {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.95rem 1.9rem;
    font-size: 1.02rem;
    border-radius: 0.85rem;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: var(--bg-dark);
    color: #fff;
    padding: calc(var(--header-h) + 4.5rem) 0 6rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 92%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero-content {
    animation: fadeUp 0.9s var(--ease-out) both;
    opacity: 1;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, rgb(15 118 110 / 0.28), transparent 60%),
        radial-gradient(ellipse 50% 45% at 85% 70%, rgb(217 119 6 / 0.14), transparent 55%);
    pointer-events: none;
}

.hero-brand {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.1rem;
    line-height: 1.1;
}

.hero-brand::after {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
}

.hero-title {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #e8eef0;
    margin-bottom: 1.25rem;
    max-width: 22ch;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #94a3b8;
    max-width: 32rem;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.8rem;
}

.hero-note-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(16 185 129 / 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    flex-shrink: 0;
}

.hero-note-check svg {
    width: 11px;
    height: 11px;
}

.trust-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(16 185 129 / 0.15);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-check svg {
    width: 11px;
    height: 11px;
}

.hero-visual {
    animation: fadeUp 0.9s var(--ease-out) 0.15s both;
    position: relative;
    opacity: 1;
}

.hero-glow {
    position: absolute;
    inset: -10% -6%;
    background: radial-gradient(ellipse 55% 55% at 50% 40%, rgb(15 118 110 / 0.22), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.mockup-dots {
    display: flex;
    gap: 0.3rem;
}

.mockup-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.18);
}

.mockup-empty-state {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgb(255 255 255 / 0.12);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
}

.mockup-panel-empty .panel-title {
    margin-bottom: 0.65rem;
}

.dashboard-mockup {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    background: #0f1729;
    border: 1px solid rgb(255 255 255 / 0.12);
    box-shadow: 0 48px 96px -24px rgb(0 0 0 / 0.55);
    overflow: hidden;
}

.mockup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgb(255 255 255 / 0.03);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.mockup-store {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-family: var(--font-heading);
    color: #cbd5e1;
}

.mockup-store svg {
    width: 15px;
    height: 15px;
    color: var(--primary-light);
}

.mockup-body {
    display: flex;
    min-height: 340px;
}

.mockup-sidebar {
    width: 128px;
    flex-shrink: 0;
    padding: 0.9rem 0;
    background: rgb(0 0 0 / 0.2);
    border-inline-end: 1px solid rgb(255 255 255 / 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mockup-nav {
    padding: 0.45rem 1rem;
    font-size: 0.72rem;
    color: #64748b;
    border-inline-start: 2px solid transparent;
}

.mockup-nav.active {
    color: #fff;
    background: rgb(15 118 110 / 0.22);
    border-inline-start-color: var(--primary-light);
}

.mockup-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

.mockup-welcome {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgb(15 118 110 / 0.24), rgb(217 119 6 / 0.08));
    border: 1px solid rgb(255 255 255 / 0.1);
}

.mockup-welcome-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.welcome-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px -4px rgb(15 118 110 / 0.7);
}

.mockup-welcome-head strong {
    display: block;
    color: #fff;
    font-size: 0.78rem;
}

.mockup-welcome-head p {
    color: #94a3b8;
    font-size: 0.64rem;
    line-height: 1.6;
    margin-top: 0.15rem;
}

.mockup-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.mockup-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.64rem;
    line-height: 1;
    padding: 0.42rem 0.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.mockup-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 14px -4px rgb(15 118 110 / 0.7);
}

.mockup-btn.ghost {
    background: rgb(255 255 255 / 0.07);
    border: 1px solid rgb(255 255 255 / 0.16);
    color: #cbd5e1;
}

.mockup-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.mockup-check-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.68rem;
    color: #cbd5e1;
}

.mockup-check-item .check-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-check-item.pending .check-box {
    border-color: var(--primary-light);
    background: rgb(15 118 110 / 0.3);
}

.mockup-check-item.pending .check-box::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-light);
}

.mockup-panel {
    background: rgb(255 255 255 / 0.03);
    border: 1px solid rgb(255 255 255 / 0.06);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
}

.panel-title {
    display: block;
    font-size: 0.66rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.check-box {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-radius: 5px;
    border: 1.5px solid rgb(255 255 255 / 0.35);
    position: relative;
}

/* ===== INTEGRATIONS ===== */
.integrations {
    background: var(--bg);
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border);
}

.integrations-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-weight: 500;
}

.integrations-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 58rem;
    margin-inline: auto;
}

.integration-group {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
}

.integration-cat {
    flex-shrink: 0;
    width: 9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
    padding-top: 0.3rem;
}

.integration-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.integration-item {
    padding: 0.35rem 1.05rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.integration-item:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ===== SECTION HEADERS ===== */
.section-header-center {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3.25rem;
}

.section-header-start {
    max-width: 44rem;
    margin-bottom: 2.75rem;
}

.section-header-start .section-title {
    margin-bottom: 0.6rem;
}

.section-header-start .section-subtitle {
    margin: 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ===== PRODUCT TOUR ===== */
.product-tour {
    background: var(--bg-soft);
    padding: 5.5rem 0;
    border-block: 1px solid var(--border);
}

.tour-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 2.5rem;
    align-items: stretch;
}

.tour-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tour-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem 1.2rem;
    text-align: right;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-body);
    transition: all 0.25s var(--ease-out);
}

.tour-tab:hover {
    border-color: rgb(15 118 110 / 0.4);
}

.tour-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.tour-tab-arrow {
    display: flex;
    opacity: 0.4;
    transition: all 0.25s ease;
}

.tour-tab-arrow svg {
    width: 16px;
    height: 16px;
}

.tour-tab.active .tour-tab-arrow {
    opacity: 1;
    transform: translateX(-3px);
}

.tour-panels {
    min-height: 420px;
}

.tour-panel {
    display: none;
}

.tour-panel.active {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.tour-panel-head h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.tour-panel-head p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.tour-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tour-filter {
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: default;
    transition: all 0.2s ease;
}

.tour-filter.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.tour-panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
}

.tour-panel-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.tour-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.8rem 1rem;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.tour-empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.tour-empty-icon svg {
    width: 21px;
    height: 21px;
}

.tour-empty strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text);
}

.tour-empty p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 26rem;
}

.tour-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.tour-check-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-body);
}

.tour-check-item .check-box {
    border-color: var(--primary-light);
    background: var(--primary-soft);
}

.tour-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 0.15rem 0.2rem;
}

.tour-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.tour-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tour-legend span:nth-child(1) i { background: var(--accent); }
.tour-legend span:nth-child(2) i { background: var(--warning); }
.tour-legend span:nth-child(3) i { background: var(--primary); }
.tour-legend span:nth-child(4) i { background: var(--success); }

.tour-table {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.tour-table-head {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    align-items: center;
    background: var(--bg-soft);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.tour-table .tour-empty {
    border: none;
    border-radius: 0;
    background: transparent;
}

.tour-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.tour-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tour-form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tour-input {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tour-select {
    position: relative;
}

.tour-select::after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -3px;
    border-inline-end: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.tour-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 0.2rem;
}

.tour-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.86rem;
    color: var(--text-body);
    cursor: default;
}

.toggle-track {
    width: 36px;
    height: 21px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: var(--primary);
    position: relative;
    display: inline-flex;
    align-items: center;
}

.toggle-track::after {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    right: 3px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.tour-form .mockup-btn {
    align-self: flex-start;
    font-size: 0.8rem;
    padding: 0.55rem 1.15rem;
}

.tour-form .mockup-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: var(--shadow-primary);
}

/* ===== WORKFLOW ===== */
.workflow-section {
    padding: 5.5rem 0;
}

.workflow-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.workflow-item {
    position: relative;
    padding-top: 2rem;
}

.workflow-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 15px);
    opacity: 0.25;
}

.workflow-num {
    position: absolute;
    top: -13px;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
}

.workflow-content h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.workflow-content p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ===== FEATURES ===== */
.features {
    padding: 5.5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgb(15 118 110 / 0.3);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 21px;
    height: 21px;
}

.feature-title {
    font-size: 1.08rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

.feature-demo {
    margin-top: 0.4rem;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    padding: 0.8rem;
}

.demo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.demo-pills span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-body);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.demo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.15rem 0.75rem;
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    background: var(--bg-soft);
    text-align: center;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.demo-empty-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-empty-icon svg {
    width: 18px;
    height: 18px;
}

.demo-store {
    display: flex;
    gap: 0.5rem;
}

.demo-store span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--swatch);
}

.demo-seo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seo-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.seo-row strong {
    font-family: var(--font-heading);
    color: var(--text);
    font-size: 0.78rem;
}

.seo-bar {
    flex: 1;
    height: 6px;
    border-radius: 9999px;
    background: var(--border);
    overflow: hidden;
}

.seo-bar span {
    display: block;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.seo-bar-muted {
    width: 62%;
    opacity: 0.45;
    background: var(--text-muted) !important;
}

.seo-bar-muted.wide {
    width: 78%;
}

.security-strip {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-top: 1.5rem;
    padding: 1.2rem 1.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
}

.security-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-icon svg {
    width: 20px;
    height: 20px;
}

.security-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.6rem;
}

.security-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text-body);
}

/* ===== STEPS ===== */
.how-it-works {
    background: var(--bg-soft);
    padding: 5.5rem 0;
    border-block: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    position: relative;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgb(15 118 110 / 0.3);
}

.step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.step-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
}

.step-icon svg {
    width: 22px;
    height: 22px;
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: rgb(15 23 42 / 0.08);
    line-height: 1;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ===== TEMPLATES ===== */
.templates-section {
    padding: 5.5rem 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.template-card {
    position: relative;
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--text);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgb(15 118 110 / 0.3);
    color: var(--text);
}

.template-thumb {
    aspect-ratio: 4 / 2.6;
    background: linear-gradient(150deg, color-mix(in srgb, var(--template-color) 14%, #fff), color-mix(in srgb, var(--template-color) 5%, #f8faff));
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.thumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.7);
}

.thumb-logo {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--template-color) 80%, #fff);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

.thumb-link {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--template-color) 30%, #fff);
}

.thumb-cart {
    margin-inline-start: auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--template-color) 70%, #fff);
}

.thumb-hero {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0;
}

.thumb-hero strong {
    font-size: 0.7rem;
    color: color-mix(in srgb, var(--template-color) 80%, #333);
    font-family: var(--font-heading);
}

.thumb-cta {
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    background: var(--template-color);
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
}

.thumb-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.thumb-product {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.thumb-product-img {
    flex: 1;
    border-radius: 7px;
    background: rgb(255 255 255 / 0.85);
    box-shadow: 0 2px 6px rgb(15 23 42 / 0.05);
    min-height: 42px;
}

.thumb-product-price {
    font-size: 0.55rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--template-color) 85%, #333);
    font-family: var(--font-heading);
}

.template-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.template-meta h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.template-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.template-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out);
}

.template-arrow svg {
    width: 17px;
    height: 17px;
}

.template-card:hover .template-arrow {
    background: var(--primary);
    color: #fff;
    transform: translateX(-4px);
}

/* ===== PRICING ===== */
.pricing {
    padding: 5.5rem 0;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem;
    border-radius: 0.9rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    margin: 0 auto 2.75rem;
    width: fit-content;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 0.65rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.toggle-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.save-tag {
    padding: 0.12rem 0.5rem;
    border-radius: 9999px;
    background: rgb(16 185 129 / 0.12);
    color: var(--success);
    font-size: 0.72rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 1.5px solid var(--primary);
    box-shadow: 0 24px 48px -12px rgb(15 118 110 / 0.28);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.32rem 1.1rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-head {
    min-height: 5.2rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.plan-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border);
}

.plan-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.7rem;
    line-height: 1;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.plan-amount.switching {
    opacity: 0;
    transform: translateY(8px);
}

.plan-currency {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.plan-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-body);
}

.check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check svg {
    width: 12px;
    height: 12px;
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--bg-soft);
    padding: 5.5rem 0;
    border-block: 1px solid var(--border);
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
}

.faq-intro .section-subtitle {
    margin: 0 0 1.5rem;
    text-align: right;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
    border-color: rgb(15 118 110 / 0.4);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.3rem;
    text-align: right;
    color: var(--text);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-soft);
}

.faq-q-text {
    flex: 1;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.5;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.35s var(--ease-out);
}

.faq-icon svg {
    width: 15px;
    height: 15px;
}

.faq-item.open .faq-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.faq-answer p {
    padding: 0 1.3rem 1.2rem 1.3rem;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.85;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 5.5rem 0 6rem;
}

.cta-box {
    position: relative;
    padding: 4.5rem 3rem;
    text-align: center;
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, #0c1419 0%, #10201e 45%, #163028 100%);
    border: 1px solid rgb(255 255 255 / 0.08);
    color: #fff;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000 30%, transparent 75%);
}

.cta-box h2,
.cta-box > p,
.cta-brand,
.cta-actions,
.cta-meta {
    position: relative;
}

.cta-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-brand img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
}

.cta-box h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-box > p {
    max-width: 34rem;
    margin: 0 auto 2.25rem;
    font-size: 1.08rem;
    color: #9fb8b4;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.cta-meta {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.cta-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: #94a3b8;
}

.cta-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(16 185 129 / 0.15);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-check svg {
    width: 12px;
    height: 12px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 4rem 0 0;
    margin-top: auto;
    width: 100%;
    flex: 0 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.75rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.footer-brand .logo-text {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 22rem;
    font-size: 0.92rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / 0.12);
    color: #94a3b8;
    transition: all 0.25s ease;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #fff;
    padding-right: 4px;
}

.footer-bottom {
    padding: 1.4rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== INFO PAGES (shared) ===== */
.page-hero {
    background: var(--bg-dark);
    color: #fff;
    padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 40%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 40%, transparent 80%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.4rem;
}

.breadcrumb a {
    color: #5eead4;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb-sep {
    color: #475569;
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    color: #5eead4;
    font-size: 1.05rem;
    max-width: 36rem;
    line-height: 1.8;
}

.last-updated {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.3rem 0.9rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.07);
    border: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.8rem;
    color: #94a3b8;
}

.content-section {
    padding: 4rem 0 6rem;
}

.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
}

.content-nav {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    padding: 1.4rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.content-nav h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.content-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.content-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-body);
    transition: all 0.2s ease;
}

.content-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.content-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-block {
    padding: 1.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    scroll-margin-top: var(--header-h);
}

.content-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.content-heading::before {
    content: '';
    width: 5px;
    height: 22px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.content-text {
    line-height: 2;
    color: var(--text-body);
}

.content-cta {
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-soft), #f4faf8);
    border: 1px solid var(--border);
}

.content-cta h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.content-cta p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* FAQ full page number chip */
.faq-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    flex-shrink: 0;
}

/* ===== ABOUT / CONTACT / ERRORS ===== */
.about-story {
    padding: 5rem 0;
}

.about-story .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 2;
}

.about-image {
    padding: 3rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-soft), #f4faf8);
    border: 1px solid var(--border);
}

.image-placeholder span {
    font-size: 5.5rem;
    display: block;
}

.team {
    background: var(--bg-soft);
    padding: 5rem 0;
    border-block: 1px solid var(--border);
}

.team-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card, .value-card {
    padding: 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.team-card:hover, .value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.7rem;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.values {
    padding: 5rem 0;
}

.value-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.value-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.contact {
    padding: 4.5rem 0 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.contact-info, .contact-form-wrapper {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.contact-info .section-title {
    font-size: 1.5rem;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.contact-methods {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.method-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.method-content h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.method-content a {
    font-weight: 500;
    font-size: 0.95rem;
}

.method-note {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.45rem;
    color: var(--text);
}

.required {
    color: var(--danger);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgb(15 118 110 / 0.12);
}

.form-input.error, .form-textarea.error {
    border-color: var(--danger);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-error {
    display: block;
    font-size: 0.82rem;
    color: var(--danger);
    margin-top: 0.35rem;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    min-height: 1.5rem;
}

.form-note.success { color: var(--success); }
.form-note.error { color: var(--danger); }

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-inline-end: 2.75rem;
}

.password-toggle {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.error-page {
    padding: calc(var(--header-h) + 5rem) 0 7rem;
    text-align: center;
}

.error-code {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(5.5rem, 14vw, 9rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.error-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== DASHBOARD ===== */
.dash-body {
    position: relative;
    isolation: isolate;
    background: #eef5f2;
    color: var(--text-body);
}

.dash-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgb(15 118 110 / 0.16), transparent 55%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgb(217 119 6 / 0.1), transparent 50%),
        linear-gradient(160deg, #f3f8f6 0%, #eef4f1 45%, #f7f3eb 100%);
}

.dash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.dash-orb-a {
    width: min(34rem, 70vw);
    height: min(34rem, 70vw);
    top: -12%;
    inset-inline-end: -8%;
    background: radial-gradient(circle, rgb(15 118 110 / 0.22), transparent 68%);
    animation: dash-orb-drift 16s ease-in-out infinite alternate;
}

.dash-orb-b {
    width: min(26rem, 60vw);
    height: min(26rem, 60vw);
    bottom: 8%;
    inset-inline-start: 18%;
    background: radial-gradient(circle, rgb(180 120 40 / 0.12), transparent 70%);
    animation: dash-orb-drift 18s ease-in-out infinite alternate-reverse;
}

.dash-orb-c {
    width: min(18rem, 45vw);
    height: min(18rem, 45vw);
    top: 42%;
    inset-inline-end: 22%;
    background: radial-gradient(circle, rgb(14 116 144 / 0.1), transparent 70%);
    animation: dash-orb-drift 14s ease-in-out infinite alternate;
}

.dash-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(15 45 40 / 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgb(15 45 40 / 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 15%, transparent 75%);
    opacity: 0.9;
}

.dash-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 15.5rem 1fr;
    min-height: 100vh;
}

.dash-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--text-body);
    padding: 1.25rem 1rem;
    z-index: 50;
    border-inline-end: 1px solid rgb(15 45 40 / 0.08);
    box-shadow: 4px 0 24px rgb(15 45 40 / 0.03);
}

.dash-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0 0.5rem 1.1rem;
    border-bottom: 1px solid rgb(15 45 40 / 0.08);
    margin-bottom: 1rem;
}

.dash-logo .logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-logo .logo-icon svg { width: 17px; height: 17px; }
.dash-logo .logo-text { color: var(--text); }
.dash-logo .logo-accent { color: var(--primary); }

.dash-store-chip {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgb(15 118 110 / 0.06);
    border: 1px solid rgb(15 45 40 / 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.dash-store-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-store-status {
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    background: rgb(217 119 6 / 0.12);
    color: #b45309;
}

.dash-store-status.launched {
    background: rgb(16 185 129 / 0.12);
    color: #047857;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.dash-nav-link:hover {
    background: rgb(15 23 42 / 0.05);
    color: var(--text);
}

.dash-nav-link.active {
    background: rgb(15 118 110 / 0.12);
    color: var(--primary);
}

.dash-nav-icon {
    display: flex;
}

.dash-nav-icon svg { width: 18px; height: 18px; }

.dash-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgb(15 45 40 / 0.08);
}

.dash-logout {
    color: #b91c1c;
}

.dash-logout:hover {
    background: rgb(239 68 68 / 0.08);
    color: #991b1b;
}

.dash-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dash-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgb(255 255 255 / 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    backdrop-filter: blur(16px) saturate(1.35);
    border-bottom: 1px solid rgb(15 45 40 / 0.08);
}

.dash-topbar-title {
    font-size: 1.25rem;
    margin: 0;
}

.dash-menu-toggle {
    display: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.dash-topbar-actions {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    border-color: rgb(100 116 139 / 0.55);
    color: var(--text);
}

.theme-toggle-icon {
    display: none;
    width: 1.05rem;
    height: 1.05rem;
}

.theme-toggle-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

html[data-theme='light'] .theme-toggle-moon,
html:not([data-theme]) .theme-toggle-moon {
    display: inline-flex;
}

html[data-theme='dark'] .theme-toggle-sun {
    display: inline-flex;
}

.theme-toggle-nav {
    background: rgb(255 255 255 / 0.75);
}

.theme-toggle-auth {
    background: rgb(255 255 255 / 0.9);
}

.dash-topbar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dash-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dash-user-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.92rem;
}

.dash-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dash-welcome-head h2 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.dash-welcome-head p {
    color: var(--text-muted);
    line-height: 1.7;
}

.dash-grid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.2rem;
    background: rgb(255 255 255 / 0.86);
    border: 1px solid rgb(15 45 40 / 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgb(15 45 40 / 0.04);
    backdrop-filter: blur(8px);
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat-icon svg { width: 20px; height: 20px; }

.dash-stat-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.3;
}

.dash-stat-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dash-stat-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-grid-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.dash-grid-stack {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.25rem;
    align-items: start;
}

.dash-panel {
    background: rgb(255 255 255 / 0.86);
    border: 1px solid rgb(15 45 40 / 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgb(15 45 40 / 0.05);
    backdrop-filter: blur(8px);
}

@keyframes dash-orb-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3%, -2%, 0) scale(1.05); }
}

/* ===== True night mode (neutral slate, site-wide) ===== */
html[data-theme='dark'] {
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-light: #5eead4;
    --primary-soft: rgb(45 212 191 / 0.12);
    --accent: #f59e0b;
    --accent-2: #fb923c;
    --bg: #0b0f14;
    --bg-soft: #121821;
    --bg-dark: #070a0e;
    --surface: #151b24;
    --text: #f1f5f9;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #2a3441;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.35);
    --shadow-md: 0 8px 20px -6px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 18px 40px -12px rgb(0 0 0 / 0.55);
    color-scheme: dark;
}

html[data-theme='dark'] body {
    background: var(--bg);
    color: var(--text-body);
}

html[data-theme='dark'] .header {
    background: rgb(11 15 20 / 0.82);
    border-bottom-color: var(--border);
}

html[data-theme='dark'] .header.scrolled {
    background: rgb(11 15 20 / 0.92);
}

html[data-theme='dark'] .nav-link,
html[data-theme='dark'] .btn-ghost-nav {
    color: var(--text-body);
}

html[data-theme='dark'] .nav-link:hover,
html[data-theme='dark'] .nav-link.active,
html[data-theme='dark'] .logo-text {
    color: var(--text);
}

html[data-theme='dark'] .footer {
    background: #070a0e;
    color: var(--text-body);
}

html[data-theme='dark'] .footer h4,
html[data-theme='dark'] .footer-brand p {
    color: var(--text);
}

html[data-theme='dark'] .footer a {
    color: var(--text-muted);
}

html[data-theme='dark'] .footer a:hover {
    color: var(--primary-light);
}

html[data-theme='dark'] .theme-toggle {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.12);
    color: #e2e8f0;
}

html[data-theme='dark'] .theme-toggle:hover {
    border-color: rgb(148 163 184 / 0.55);
    color: #fff;
}

html[data-theme='dark'] .lang-switch {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.12);
}

html[data-theme='dark'] .lang-switch-btn {
    color: #94a3b8;
}

html[data-theme='dark'] .dash-body {
    background: #0b0f14;
    color: var(--text-body);
}

html[data-theme='dark'] .dash-sidebar {
    background: #0c1419;
    color: #cbd5e1;
    border-inline-end-color: rgb(148 163 184 / 0.1);
    box-shadow: none;
}

html[data-theme='dark'] .dash-logo {
    color: #fff;
    border-bottom-color: rgb(255 255 255 / 0.08);
}

html[data-theme='dark'] .dash-logo .logo-text {
    color: #fff;
}

html[data-theme='dark'] .dash-logo .logo-accent {
    color: var(--primary-light);
}

html[data-theme='dark'] .dash-store-chip {
    background: rgb(255 255 255 / 0.05);
    border-color: rgb(255 255 255 / 0.08);
}

html[data-theme='dark'] .dash-store-name {
    color: #fff;
}

html[data-theme='dark'] .dash-store-status {
    background: rgb(217 119 6 / 0.15);
    color: #fbbf24;
}

html[data-theme='dark'] .dash-store-status.launched {
    background: rgb(16 185 129 / 0.15);
    color: #34d399;
}

html[data-theme='dark'] .dash-nav-link {
    color: #94a3b8;
}

html[data-theme='dark'] .dash-nav-link:hover {
    background: rgb(255 255 255 / 0.06);
    color: #fff;
}

html[data-theme='dark'] .dash-nav-link.active {
    background: rgb(15 118 110 / 0.25);
    color: #fff;
}

html[data-theme='dark'] .dash-sidebar-foot {
    border-top-color: rgb(255 255 255 / 0.08);
}

html[data-theme='dark'] .dash-logout {
    color: #fca5a5;
}

html[data-theme='dark'] .dash-logout:hover {
    background: rgb(239 68 68 / 0.14);
    color: #fecaca;
}

html[data-theme='dark'] .lang-switch-dash {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.1);
}

html[data-theme='dark'] .lang-switch-dash .lang-switch-btn {
    color: rgb(255 255 255 / 0.7);
}

html[data-theme='dark'] .dash-atmosphere {
    background:
        radial-gradient(ellipse 70% 50% at 92% 0%, rgb(71 85 105 / 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 8% 100%, rgb(30 41 59 / 0.55), transparent 55%),
        linear-gradient(165deg, #0b0f14 0%, #0e131a 48%, #111827 100%);
}

html[data-theme='dark'] .dash-orb-a {
    background: radial-gradient(circle, rgb(56 189 248 / 0.14), transparent 68%);
}

html[data-theme='dark'] .dash-orb-b {
    background: radial-gradient(circle, rgb(148 163 184 / 0.1), transparent 70%);
}

html[data-theme='dark'] .dash-orb-c {
    background: radial-gradient(circle, rgb(99 102 241 / 0.12), transparent 70%);
}

html[data-theme='dark'] .dash-grid-bg {
    background-image:
        linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
}

html[data-theme='dark'] .dash-topbar {
    background: rgb(11 15 20 / 0.82);
    border-bottom-color: var(--border);
}

html[data-theme='dark'] .dash-panel,
html[data-theme='dark'] .dash-stat-card,
html[data-theme='dark'] .dash-welcome,
html[data-theme='dark'] .site-related-card,
html[data-theme='dark'] .feature-detail-card,
html[data-theme='dark'] .pricing-card,
html[data-theme='dark'] .value-card,
html[data-theme='dark'] .contact-form-wrapper,
html[data-theme='dark'] .faq-item {
    background: rgb(21 27 36 / 0.92);
    border-color: var(--border);
    box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
    color: var(--text-body);
}

html[data-theme='dark'] .dash-content:has(.pe-v2) {
    background: transparent;
}

html[data-theme='dark'] .form-input,
html[data-theme='dark'] .form-textarea,
html[data-theme='dark'] select.form-input,
html[data-theme='dark'] select,
html[data-theme='dark'] .shipping-rate-row,
html[data-theme='dark'] .settings-switch,
html[data-theme='dark'] .settings-tabs,
html[data-theme='dark'] .slug-field,
html[data-theme='dark'] .shipping-rate-input input,
html[data-theme='dark'] .color-field input[type='color'] {
    background: #151b24;
    border-color: var(--border);
    color: #f1f5f9;
    color-scheme: dark;
}

html[data-theme='dark'] .form-input::placeholder,
html[data-theme='dark'] .form-textarea::placeholder {
    color: #64748b;
}

html[data-theme='dark'] .form-input:focus,
html[data-theme='dark'] .form-textarea:focus,
html[data-theme='dark'] select.form-input:focus,
html[data-theme='dark'] select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgb(45 212 191 / 0.15);
    background: #1a222e;
    color: #f8fafc;
}

/* Native select menus: force readable option list in dark mode */
html[data-theme='dark'] select,
html[data-theme='dark'] select.form-input {
    background-color: #151b24;
    background-image: none;
}

html[data-theme='dark'] select option,
html[data-theme='dark'] select.form-input option,
html[data-theme='dark'] optgroup {
    background-color: #151b24;
    color: #f1f5f9;
}

html[data-theme='dark'] select option:checked,
html[data-theme='dark'] select option:hover,
html[data-theme='dark'] select option:focus {
    background-color: #0f766e;
    color: #ffffff;
}

html[data-theme='dark'] .form-input:disabled,
html[data-theme='dark'] .form-input[disabled],
html[data-theme='dark'] select:disabled,
html[data-theme='dark'] textarea:disabled {
    background: #111722;
    color: #94a3b8;
    border-color: rgb(148 163 184 / 0.18);
    opacity: 1;
    -webkit-text-fill-color: #94a3b8;
}

html[data-theme='dark'] .form-label {
    color: #e2e8f0;
}

html[data-theme='dark'] .form-hint,
html[data-theme='dark'] .dash-hint {
    color: #94a3b8;
}

html[data-theme='dark'] .btn-outline {
    border-color: rgb(255 255 255 / 0.18);
    color: #e2e8f0;
    background: rgb(255 255 255 / 0.04);
}

html[data-theme='dark'] .btn-outline:hover {
    border-color: #94a3b8;
    color: #fff;
    background: rgb(255 255 255 / 0.08);
}

html[data-theme='dark'] .dash-logo-preview,
html[data-theme='dark'] .dash-logo-preview-sm {
    background: #111722;
    border-color: rgb(148 163 184 / 0.22);
}

html[data-theme='dark'] .dash-logo-placeholder {
    color: #94a3b8;
}

html[data-theme='dark'] .dash-template {
    background: #151b24;
    border-color: rgb(148 163 184 / 0.14);
    color: #e2e8f0;
}

html[data-theme='dark'] .dash-template.selected {
    border-color: rgb(45 212 191 / 0.55);
    background: rgb(45 212 191 / 0.1);
}

html[data-theme='dark'] .dash-template-meta strong {
    color: #f1f5f9;
}

html[data-theme='dark'] .dash-template-meta small {
    color: #94a3b8;
}

html[data-theme='dark'] .dash-status-select,
html[data-theme='dark'] select.dash-status-select {
    color-scheme: dark;
    background-color: #151b24;
    color: #f1f5f9;
    border-color: var(--border);
}

html[data-theme='dark'] .dash-status-select option {
    background-color: #151b24;
    color: #f1f5f9;
}

html[data-theme='dark'] input[type='file'] {
    color-scheme: dark;
    color: #e2e8f0;
}

html[data-theme='dark'] input[type='date'],
html[data-theme='dark'] input[type='time'],
html[data-theme='dark'] input[type='datetime-local'],
html[data-theme='dark'] input[type='number'],
html[data-theme='dark'] input[type='email'],
html[data-theme='dark'] input[type='tel'],
html[data-theme='dark'] input[type='url'],
html[data-theme='dark'] input[type='text'],
html[data-theme='dark'] input[type='password'],
html[data-theme='dark'] input[type='search'] {
    color-scheme: dark;
}

/* Home / marketing: keep section atmospheres intact in night mode */
html[data-theme='dark'] .site-page .main,
html[data-theme='dark'] .home-page .main {
    background: var(--bg);
}

html[data-theme='dark'] .hero {
    background: #0b0f14;
    color: #fff;
}

html[data-theme='dark'] .hero-atmosphere {
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, rgb(45 212 191 / 0.2), transparent 60%),
        radial-gradient(ellipse 50% 45% at 85% 70%, rgb(71 85 105 / 0.28), transparent 55%);
}

html[data-theme='dark'] .hero-bg {
    background-image:
        linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
}

html[data-theme='dark'] .site-hero {
    background:
        radial-gradient(ellipse 65% 80% at 100% 0%, rgb(45 212 191 / 0.12), transparent 55%),
        radial-gradient(ellipse 45% 55% at 0% 15%, rgb(71 85 105 / 0.22), transparent 50%),
        linear-gradient(180deg, #121821, #0b0f14);
    border-bottom-color: var(--border);
}

html[data-theme='dark'] .site-hero h1,
html[data-theme='dark'] .site-kicker {
    color: var(--text);
}

html[data-theme='dark'] .site-lead {
    color: var(--text-body);
}

html[data-theme='dark'] .site-section-soft,
html[data-theme='dark'] .home-teasers,
html[data-theme='dark'] .home-pricing-teaser,
html[data-theme='dark'] .contact {
    background: rgb(18 24 33 / 0.65);
}

html[data-theme='dark'] .integrations {
    background: var(--bg);
    border-bottom-color: var(--border);
}

html[data-theme='dark'] .how-it-works {
    background: var(--bg-soft);
    border-color: var(--border);
}

html[data-theme='dark'] .home-teaser-card,
html[data-theme='dark'] .step-card,
html[data-theme='dark'] .home-plan-card {
    background: rgb(21 27 36 / 0.92);
    border-color: var(--border);
    color: var(--text-body);
}

html[data-theme='dark'] .home-plan-card h3,
html[data-theme='dark'] .home-plan-card strong,
html[data-theme='dark'] .step-title {
    color: var(--text);
}

html[data-theme='dark'] .section-title {
    color: var(--text);
}

html[data-theme='dark'] .section-subtitle,
html[data-theme='dark'] .integrations-label,
html[data-theme='dark'] .step-desc {
    color: var(--text-muted);
}

html[data-theme='dark'] .final-cta,
html[data-theme='dark'] .about-cta-section {
    background: transparent;
}

html[data-theme='dark'] .auth-body {
    background: #0b0f14;
}

html[data-theme='dark'] .auth-main {
    background: transparent;
}

/* Auth form: no awkward floating box — blend with page like light mode */
html[data-theme='dark'] .auth-card {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-body);
}

html[data-theme='dark'] .auth-header h1 {
    color: var(--text);
}

html[data-theme='dark'] .auth-header p,
html[data-theme='dark'] .auth-footer {
    color: var(--text-muted);
}

html[data-theme='dark'] .auth-brand.compact {
    color: var(--text);
}

html[data-theme='dark'] .theme-toggle-auth,
html[data-theme='dark'] .lang-switch-auth {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.12);
    color: #e2e8f0;
}

html[data-theme='dark'] .password-field .password-toggle {
    color: #94a3b8;
}

html[data-theme='dark'] .password-field .password-toggle:hover {
    color: #f1f5f9;
}

html[data-theme='dark'] .auth-check {
    color: var(--text-body);
}

@media (max-width: 720px) {
    .theme-toggle-label { display: none; }
}

.dash-panel-single {
    max-width: 52rem;
}

.dash-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.dash-panel-head h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.dash-panel-head p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.dash-progress {
    width: 7rem;
}

.dash-progress-bar {
    height: 8px;
    border-radius: 9999px;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.dash-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 9999px;
    transition: width 0.5s var(--ease-out);
}

.dash-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.dash-step.done {
    background: var(--surface);
    border-color: rgb(16 185 129 / 0.3);
}

.dash-step.locked {
    opacity: 0.72;
}

.dash-step-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.dash-step-check svg { width: 15px; height: 15px; }

.dash-step.done .dash-step-check {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.dash-step.locked .dash-step-check {
    border-color: var(--border);
    background: var(--bg-soft);
    color: var(--text-muted);
}

.dash-step-body {
    flex: 1;
    min-width: 0;
}

.dash-step-body strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: var(--text);
}

.dash-step-body p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.dash-step-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--warning);
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    background: rgb(217 119 6 / 0.12);
    white-space: nowrap;
}

.dash-step-tag.done {
    color: var(--success);
    background: rgb(16 185 129 / 0.12);
}

.dash-step-action {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dash-action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-body);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dash-action:hover {
    border-color: rgb(15 118 110 / 0.35);
    background: var(--primary-soft);
}

.dash-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-action-icon svg { width: 18px; height: 18px; }

.dash-action div {
    flex: 1;
    min-width: 0;
}

.dash-action strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text);
}

.dash-action p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dash-action-arrow {
    color: var(--text-muted);
    display: flex;
}

.dash-action-arrow svg { width: 16px; height: 16px; }

.dash-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.dash-note-icon {
    color: var(--primary);
    flex-shrink: 0;
    display: flex;
}

.dash-note-icon svg { width: 18px; height: 18px; }

.dash-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 600;
}

.dash-alert.success {
    background: rgb(16 185 129 / 0.12);
    color: #0f8f6a;
    border: 1px solid rgb(16 185 129 / 0.25);
}

.dash-alert-icon {
    display: flex;
}

.dash-alert-icon svg { width: 18px; height: 18px; }

.dash-product-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-product-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dash-table th {
    text-align: right;
    padding: 0.7rem 1rem;
    background: var(--bg-soft);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.dash-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    vertical-align: middle;
}

.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover { background: var(--bg-soft); }

.dash-product-name {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.dash-product-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.dash-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.dash-status.published {
    background: rgb(16 185 129 / 0.12);
    color: #0f8f6a;
}

.dash-status.draft {
    background: var(--bg-soft);
    color: var(--text-muted);
}

.dash-delete-form {
    display: flex;
}

.dash-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.dash-delete-btn:hover {
    color: var(--danger);
    background: rgb(220 38 38 / 0.1);
}

.dash-delete-btn svg { width: 16px; height: 16px; }

.dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dash-empty-lg {
    padding: 3.5rem 1.5rem;
}

.dash-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
}

.dash-empty-icon svg { width: 24px; height: 24px; }

.dash-empty strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text);
}

.dash-empty p {
    max-width: 26rem;
    line-height: 1.7;
}

.dash-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.dash-template {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.dash-template:hover {
    border-color: rgb(15 118 110 / 0.4);
}

.dash-template.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.dash-template input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dash-template-swatch {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--swatch);
    flex-shrink: 0;
}

.dash-template-meta {
    flex: 1;
    min-width: 0;
}

.dash-template-meta strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text);
}

.dash-template-meta small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dash-template-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
}

.dash-template-check svg { width: 13px; height: 13px; }

.dash-template.selected .dash-template-check { display: flex; }

.dash-launch-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.dash-launch-card.launched {
    background: rgb(16 185 129 / 0.08);
    border-color: rgb(16 185 129 / 0.3);
}

.dash-launch-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-launch-icon svg { width: 22px; height: 22px; }

.dash-launch-card.launched .dash-launch-icon { background: var(--success); }

.dash-launch-card div {
    flex: 1;
    min-width: 12rem;
}

.dash-launch-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.dash-launch-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.dash-overlay {
    position: fixed;
    inset: 0;
    background: rgb(12 20 25 / 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dash-body.sidebar-open .dash-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1120px) {
    .dash-grid-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-grid-main,
    .dash-grid-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .dash-shell {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: fixed;
        inset: 0 0 0 auto;
        width: 15.5rem;
        transform: translateX(100%);
        transition: transform 0.3s var(--ease-out);
        z-index: 60;
        box-shadow: var(--shadow-xl);
    }

    .dash-body.sidebar-open .dash-sidebar {
        transform: none;
    }

    .dash-menu-toggle {
        display: flex;
    }

    .dash-topbar {
        padding: 0.9rem 1.25rem;
    }

    .dash-content {
        padding: 1.5rem 1.25rem;
    }

    .dash-user-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .dash-grid-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dash-template-grid {
        grid-template-columns: 1fr;
    }

    .dash-product-form .form-row {
        grid-template-columns: 1fr;
    }

    .dash-table th,
    .dash-table td {
        padding: 0.65rem 0.8rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

.reveal {
    opacity: 1;
    transform: none;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-list {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .faq-intro {
        position: static;
        text-align: center;
    }

    .faq-intro .section-subtitle {
        text-align: center;
        margin-inline: auto;
    }

    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    .nav { gap: 0.65rem; }
    .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.84rem;
    }
    .theme-toggle-label { display: none; }
    .nav-actions .btn-sm {
        padding: 0.45rem 0.75rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 1040px) {
    .nav-toggle {
        display: block;
        order: 2;
    }

    .nav-actions {
        order: 3;
    }

    .logo {
        order: 1;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-h);
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.25rem;
        margin: 0;
        padding: 1rem;
        background: rgb(255 255 255 / 0.97);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
    }

    .nav-menu.open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-menu > li {
        flex-shrink: 1;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        white-space: normal;
    }

    html[data-theme='dark'] .nav-menu {
        background: rgb(11 15 20 / 0.97);
        border-bottom-color: var(--border);
    }

    .hero {
        padding: calc(var(--header-h) + 3.5rem) 0 4.5rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-actions, .hero-note {
        justify-content: center;
    }

    .dashboard-mockup {
        max-width: 32rem;
        margin-inline: auto;
    }

    .tour-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tour-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .tour-tab {
        flex-shrink: 0;
        justify-content: center;
    }

    .tour-tab-arrow {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 30rem;
        margin-inline: auto;
    }

    .integration-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .integration-cat {
        width: auto;
    }

    .about-story .container {
        grid-template-columns: 1fr;
    }

    .team-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-nav {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        padding-inline: 1.1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .hero-subtitle {
        font-size: 1.02rem;
    }

    .btn-lg {
        padding: 0.9rem 1.5rem;
    }

    .mockup-sidebar {
        width: 96px;
    }

    .mockup-nav {
        padding: 0.4rem 0.75rem;
        font-size: 0.66rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .workflow-list {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .tour-table-head {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 0.78rem;
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
    }

    .tour-table-head span:first-child {
        display: none;
    }

    .security-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-meta {
        gap: 0.9rem;
        flex-direction: column;
        align-items: center;
    }

    .team-grid, .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== PAGE BRAND / ABOUT / CONTACT ===== */
.page-header {
    padding: calc(var(--header-h) + 3.5rem) 0 3rem;
    background:
        radial-gradient(ellipse 55% 80% at 100% 0%, rgb(15 118 110 / 0.1), transparent 55%),
        linear-gradient(180deg, var(--bg-soft), var(--bg));
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.page-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.page-desc {
    max-width: 36rem;
    margin-inline: auto;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content-full {
    max-width: 46rem;
}

.about-story .container:has(.about-content-full) {
    grid-template-columns: 1fr;
}

.about-cta-section {
    padding: 0 0 5rem;
}

.about-cta-box {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.about-cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.about-cta-box > p {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 34rem;
    margin-inline: auto;
}

.about-cta-box .cta-actions {
    margin-bottom: 0;
}

.value-card .value-icon {
    display: none;
}

.contact-grid-single {
    grid-template-columns: 1fr;
    max-width: 40rem;
    margin-inline: auto;
}

.contact-form-lead {
    color: var(--text-muted);
    margin: -0.5rem 0 1.5rem;
    line-height: 1.7;
}

.contact-success {
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-success p {
    color: var(--text-muted);
    margin: 0.75rem 0 1.75rem;
    line-height: 1.8;
}

/* ===== AUTH PAGES ===== */
.auth-body {
    min-height: 100vh;
    background: var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.auth-showcase {
    position: relative;
    background: var(--bg-dark);
    color: #fff;
    padding: 2.5rem;
    display: flex;
    overflow: hidden;
}

.auth-showcase-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgb(15 118 110 / 0.35), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgb(217 119 6 / 0.18), transparent 55%),
        linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
}

.auth-showcase-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    min-height: calc(100vh - 5rem);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
}

.auth-brand .logo-accent {
    color: var(--primary-light);
}

.auth-brand.compact {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.auth-brand.compact .logo-accent {
    color: var(--primary);
}

.auth-showcase-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.auth-showcase-copy p {
    color: #94a8a4;
    font-size: 1.05rem;
    line-height: 1.85;
}

.auth-showcase-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-showcase-points li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #c5d4d0;
    font-size: 0.95rem;
}

.auth-showcase-panel {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 0.04);
    border: 1px solid rgb(255 255 255 / 0.1);
}

.auth-showcase-panel .panel-label {
    display: block;
    font-size: 0.75rem;
    color: #8aa39e;
    margin-bottom: 1rem;
}

.auth-showcase-lines {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.auth-showcase-lines span {
    height: 10px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
}

.auth-showcase-lines span:nth-child(1) { width: 72%; }
.auth-showcase-lines span:nth-child(2) { width: 54%; }
.auth-showcase-lines span:nth-child(3) { width: 63%; }

.auth-showcase-note {
    font-size: 0.8rem;
    color: #6f8681;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 28rem;
}

.auth-mobile-brand {
    display: none;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    line-height: 1.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-body);
    cursor: pointer;
}

.auth-check input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.auth-check a {
    color: var(--primary);
    font-weight: 600;
}

.auth-check.has-error {
    color: var(--danger);
}

.auth-switch {
    margin-top: 1.75rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-switch a {
    font-weight: 700;
}

.auth-alert {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-success {
    text-align: center;
    padding: 1rem 0;
}

.auth-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-success-icon svg {
    width: 28px;
    height: 28px;
}

.auth-success h1 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.auth-success p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

.auth-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        display: none;
    }

    .auth-mobile-brand {
        display: block;
    }

    .auth-main {
        padding: 2rem 1.25rem 3rem;
        align-items: flex-start;
    }

    .auth-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-actions .btn-ghost-nav {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .hero-content,
    .hero-visual,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ===== PRODUCT EDITOR V3 — Premium SaaS ===== */
.dash-content:has(.pe-v2) {
    padding: 1.1rem 1.35rem 2rem;
    gap: 0;
    background: #f4f6f5;
}

.dash-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.dash-page-head h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.dash-page-head p { color: var(--text-muted); max-width: 38rem; }

.dash-product-thumb-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-muted {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dash-status.published { background: rgb(16 185 129 / 0.12); color: #059669; }
.dash-status.draft { background: rgb(100 116 139 / 0.12); color: #475569; }
.dash-status.hidden { background: rgb(239 68 68 / 0.1); color: #dc2626; }
.dash-status.scheduled { background: rgb(217 119 6 / 0.12); color: #b45309; }

.dash-alert.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.product-editor.pe-v2 { margin: 0; }

.pe-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    position: sticky;
    top: 4.6rem;
    z-index: 30;
    flex-wrap: wrap;
}

.pe-topbar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.pe-crumb {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.pe-crumb span { opacity: 0.5; margin-inline: 0.25rem; }

.pe-topbar h1 {
    font-size: 1.05rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.pe-back {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    transition: 0.15s ease;
}

.pe-back:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.pe-back svg {
    width: 16px;
    height: 16px;
    transform: scaleX(-1);
}

.pe-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pe-autosave {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-inline-end: 0.25rem;
}

.pe-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.62rem 1.05rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 16px -6px rgb(15 118 110 / 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pe-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -8px rgb(15 118 110 / 0.55);
    color: #fff !important;
}

.pe-btn-primary kbd {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    background: rgb(255 255 255 / 0.16);
    border-radius: 5px;
    padding: 0.12rem 0.35rem;
    direction: ltr;
}

.pe-btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.58rem 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
}

.pe-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.pe-btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgb(15 118 110 / 0.25);
    border-radius: 9px;
    padding: 0.4rem 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
}

.pe-btn-ghost:hover {
    background: var(--primary-soft);
}

.pe-alert { margin-bottom: 0.85rem; }

.pe-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1rem;
    align-items: start;
}

.pe-main, .pe-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.pe-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
}

.pe-card-core .pe-card-body { padding-top: 1rem; }

.pe-card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.05rem 0;
}

.pe-card-head-row h2 {
    font-size: 0.92rem;
    margin: 0 0 0.15rem;
}

.pe-card-head-row p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pe-card-body { padding: 0.85rem 1.05rem 1.05rem; }

.pe-tight { margin: 0 0 0.7rem; }
.pe-tight:last-child { margin-bottom: 0; }
.pe-gap { display: flex; flex-direction: column; gap: 0.7rem; }

.pe-input-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding: 0.8rem 0.95rem !important;
    border-radius: 12px !important;
}

.pe-textarea-compact {
    min-height: 0 !important;
    resize: vertical;
}

.pe-section-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.pe-mini-details {
    border-radius: 10px;
    background: var(--bg-soft);
    padding: 0.35rem 0.7rem;
}

.pe-mini-details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.25rem 0;
}

.pe-mini-details summary::-webkit-details-marker { display: none; }
.pe-mini-details summary svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.pe-mini-details[open] summary svg { transform: rotate(180deg); }
.pe-mini-details[open] summary { margin-bottom: 0.4rem; }

.pe-slug-field {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.pe-slug-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.78rem;
    border-inline-end: 1px solid var(--border);
    direction: ltr;
}

.pe-slug-field .form-input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.pe-media-body { padding-top: 0.7rem; }

.pe-media-manager {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 0.7rem;
}

.pe-hero-media {
    position: relative;
    aspect-ratio: 1.15;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(160deg, #eef3f2, #f7f9f8);
    border: 1px dashed rgb(15 23 42 / 0.12);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pe-hero-media:hover { border-color: rgb(15 118 110 / 0.45); }
.pe-hero-media.has-image {
    border-style: solid;
    border-color: var(--border);
    cursor: default;
}
.pe-hero-media.dragover {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 2px rgb(15 118 110 / 0.15);
}

.pe-hero-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

.pe-hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.pe-hero-icon svg { width: 18px; height: 18px; }
.pe-hero-empty strong { color: var(--text); font-size: 0.9rem; }
.pe-hero-empty p { font-size: 0.78rem; }

.pe-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pe-hero-actions {
    position: absolute;
    inset-inline: 0.6rem 0.6rem;
    bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pe-hero-change {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgb(12 20 25 / 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.pe-hero-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.pe-thumbs-wrap {
    min-height: 100%;
    display: flex;
}

.pe-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    align-content: start;
    width: 100%;
}

.pe-thumb {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background: var(--bg-soft);
    cursor: grab;
    padding: 0;
    transition: transform 0.15s ease, outline-color 0.15s ease;
}

.pe-thumb:hover { transform: translateY(-1px); }
.pe-thumb.active {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

.pe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pe-thumb .pe-remove {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgb(0 0 0 / 0.55);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
}

.pe-thumb .pe-primary-tag {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 0.12rem 0.35rem;
}

.pe-price-grid, .pe-stock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.pe-affix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.pe-affix .form-input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-block: 0.65rem;
}

.pe-affix span {
    display: flex;
    align-items: center;
    padding: 0 0.65rem;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.78rem;
    border-inline-start: 1px solid var(--border);
}

.pe-live-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pe-metric-card {
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fbfa, #eef6f4);
    border: 1px solid rgb(15 118 110 / 0.1);
    transition: transform 0.15s ease;
}

.pe-metric-card.is-live { transform: translateY(-1px); }

.pe-metric-card span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.pe-metric-card strong {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-hover);
}

.pe-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-body);
    cursor: pointer;
}

.pe-switch-inline { margin-top: 0.7rem; }
.pe-switch input { accent-color: var(--primary); width: 0.95rem; height: 0.95rem; }

.pe-advanced-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0.35rem 0.15rem 0;
}

.pe-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pe-acc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.pe-acc[open] {
    box-shadow: 0 4px 14px -8px rgb(15 23 42 / 0.12);
    border-color: rgb(15 23 42 / 0.1);
}

.pe-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
    user-select: none;
}

.pe-acc summary::-webkit-details-marker { display: none; }

.pe-acc-title {
    font-family: var(--font-heading);
    font-weight: 650;
    font-size: 0.88rem;
    color: var(--text);
}

.pe-acc-title em {
    font-style: normal;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-inline-start: 0.35rem;
}

.pe-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.22s var(--ease-out);
    flex-shrink: 0;
}

.pe-acc[open] .pe-chevron { transform: rotate(180deg); color: var(--primary); }

.pe-acc-panel {
    padding: 0 0.95rem 0.95rem;
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding-top: 0.85rem;
    animation: pePanelIn 0.22s var(--ease-out);
}

@keyframes pePanelIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.pe-editor {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.pe-editor-toolbar {
    display: flex;
    gap: 0.25rem;
    padding: 0.35rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}

.pe-editor-toolbar button {
    padding: 0.28rem 0.55rem;
    border-radius: 7px;
    font-size: 0.78rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-body);
}

.pe-editor-surface {
    min-height: 100px;
    padding: 0.75rem 0.85rem;
    outline: none;
    line-height: 1.7;
}

.pe-variants { display: flex; flex-direction: column; gap: 0.45rem; }

.pe-variant-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 0.4rem;
    align-items: end;
    padding: 0.55rem;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.pe-variant-row .form-group { margin: 0; }
.pe-variant-row label { font-size: 0.7rem; color: var(--text-muted); }

.pe-seo-preview {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}

.pe-seo-url {
    display: block;
    color: #0d652d;
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    direction: ltr;
    text-align: right;
}

.pe-seo-preview strong {
    display: block;
    color: #1a0dab;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.pe-seo-preview p {
    color: #4d5156;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

.pe-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pe-chip { cursor: pointer; }
.pe-chip input { position: absolute; opacity: 0; pointer-events: none; }

.pe-chip span {
    display: inline-flex;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    font-size: 0.78rem;
    color: var(--text-body);
    transition: 0.15s ease;
}

.pe-chip input:checked + span {
    background: var(--primary-soft);
    border-color: rgb(15 118 110 / 0.35);
    color: var(--primary-hover);
    font-weight: 600;
}

.pe-sticky {
    position: sticky;
    top: 8.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pe-store-preview-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pe-product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px -16px rgb(15 23 42 / 0.25);
}

.pe-product-card-media {
    aspect-ratio: 1;
    background: linear-gradient(160deg, #eef3f2, #f7f9f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.pe-product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pe-summary-placeholder svg {
    width: 28px;
    height: 28px;
    opacity: 0.35;
}

.pe-product-card-body { padding: 0.85rem 0.9rem 1rem; }

.pe-product-card-brand {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.pe-product-card-body h3 {
    font-size: 0.98rem;
    margin: 0 0 0.3rem;
    line-height: 1.35;
    color: var(--text);
}

.pe-product-card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.7rem;
    min-height: 2.2em;
    line-height: 1.45;
}

.pe-product-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.pe-product-card-price strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-hover);
}

.pe-product-card-price s {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.pe-product-card-cta {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 0.6rem;
    background: var(--bg-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 650;
    font-size: 0.84rem;
    pointer-events: none;
}

.pe-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
}

.pe-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.84rem;
}

.pe-summary-row span { color: var(--text-muted); }
.pe-summary-row strong { color: var(--text); font-weight: 700; }

.pe-summary-section {
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.pe-status-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.pe-status-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.15s ease;
}

.pe-status-item:has(input:checked) {
    border-color: rgb(15 118 110 / 0.4);
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-weight: 650;
}

.pe-status-item input { accent-color: var(--primary); }
.pe-flags { display: flex; flex-direction: column; gap: 0.55rem; }

@media (max-width: 1100px) {
    .pe-layout { grid-template-columns: 1fr; }
    .pe-sticky { position: static; }
    .pe-topbar { position: static; }
    .pe-media-manager { grid-template-columns: 1.2fr 0.8fr; }
    .pe-price-grid, .pe-stock-grid, .pe-live-metrics { grid-template-columns: 1fr 1fr; }
    .pe-variant-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .dash-content:has(.pe-v2) { padding: 0.9rem 0.9rem 1.75rem; }
    .pe-btn-primary kbd { display: none; }
    .pe-media-manager { grid-template-columns: 1fr; }
    .pe-thumbs { grid-template-columns: repeat(4, 1fr); }
    .pe-price-grid, .pe-stock-grid, .pe-live-metrics, .pe-status-list { grid-template-columns: 1fr; }
    .pe-variant-row { grid-template-columns: 1fr; }
    .pe-topbar-actions { width: 100%; }
    .pe-btn-primary, .pe-btn-secondary { flex: 1; justify-content: center; }
    .pe-autosave { display: none; }
}


/* ===== LEGAL PAGES — Premium docs ===== */
.legal-body-page .main {
    background: #f5f7f6;
}

.legal-page {
    --legal-ink: #14201e;
    --legal-mute: #5b6b67;
    --legal-line: rgb(20 32 30 / 0.08);
    --legal-card: #ffffff;
}

.legal-hero {
    position: relative;
    padding: calc(var(--header-h) + 2.4rem) 0 0;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgb(15 118 110 / 0.12), transparent 55%),
        radial-gradient(ellipse 50% 60% at 0% 20%, rgb(217 119 6 / 0.08), transparent 50%),
        linear-gradient(180deg, #eef5f3 0%, #f5f7f6 100%);
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgb(20 32 30 / 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgb(20 32 30 / 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 35%, transparent 95%);
    pointer-events: none;
}

.legal-hero-inner {
    position: relative;
    z-index: 1;
}

.legal-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--legal-mute);
    margin-bottom: 1.4rem;
}

.legal-breadcrumb a {
    color: var(--primary);
    font-weight: 600;
}

.legal-breadcrumb a:hover { color: var(--primary-hover); }

.legal-hero-copy {
    max-width: 44rem;
    margin-bottom: 1.75rem;
}

.legal-kicker {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin: 0 0 0.65rem;
}

.legal-hero-copy h1 {
    font-size: clamp(1.85rem, 4vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--legal-ink);
    margin: 0 0 0.85rem;
    line-height: 1.2;
}

.legal-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--legal-ink);
    margin: 0 0 0.55rem;
    max-width: 38rem;
}

.legal-sub {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--legal-mute);
    margin: 0;
    max-width: 36rem;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.legal-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.72);
    border: 1px solid var(--legal-line);
    font-size: 0.76rem;
    color: var(--legal-mute);
    font-weight: 600;
}

.legal-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.4rem;
    margin-bottom: -1px;
    background: rgb(255 255 255 / 0.65);
    border: 1px solid var(--legal-line);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(8px);
}

.legal-switch {
    flex: 1 1 auto;
    min-width: max-content;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 11px;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--legal-mute);
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.legal-switch:hover {
    color: var(--primary-hover);
    background: rgb(15 118 110 / 0.06);
}

.legal-switch.active {
    background: var(--surface);
    color: var(--primary-hover);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 0 0 1px rgb(15 118 110 / 0.12);
}

.legal-body {
    padding: 0 0 4.5rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    background: var(--legal-card);
    border: 1px solid var(--legal-line);
    border-radius: 0 0 18px 18px;
    padding: 1.25rem;
    box-shadow: 0 18px 40px -28px rgb(15 23 42 / 0.28);
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    padding: 0.85rem 0.75rem;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px solid var(--legal-line);
}

.legal-toc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--legal-mute);
    margin: 0 0.35rem 0.7rem;
}

.legal-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.legal-toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    border-radius: 9px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-body);
    transition: background 0.15s ease, color 0.15s ease;
}

.legal-toc-list a span {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.75;
    min-width: 1.35rem;
    direction: ltr;
}

.legal-toc-list a:hover {
    background: rgb(15 118 110 / 0.08);
    color: var(--primary-hover);
}

.legal-toc-help {
    display: block;
    margin-top: 0.85rem;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid rgb(15 118 110 / 0.12);
}

.legal-toc-help:hover {
    background: rgb(15 118 110 / 0.14);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.25rem 0.35rem 0.35rem;
}

.legal-section {
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--legal-line);
    background: linear-gradient(180deg, #fff, #fbfcfb);
    scroll-margin-top: calc(var(--header-h) + 1rem);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.legal-section:target {
    border-color: rgb(15 118 110 / 0.35);
    box-shadow: 0 0 0 3px rgb(15 118 110 / 0.08);
}

.legal-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--legal-line);
}

.legal-section-num {
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-hover);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
    direction: ltr;
}

.legal-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--legal-ink);
}

.legal-section-body p {
    margin: 0 0 0.7rem;
    color: var(--text-body);
    line-height: 1.85;
    font-size: 0.95rem;
}

.legal-section-body p:last-child { margin-bottom: 0; }

.legal-footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding: 1.25rem 1.3rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%);
    color: #fff;
    box-shadow: 0 14px 28px -16px rgb(15 118 110 / 0.55);
}

.legal-footer-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: #fff;
}

.legal-footer-card p {
    margin: 0;
    color: rgb(255 255 255 / 0.78);
    font-size: 0.9rem;
}

.legal-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal-footer-card .btn-primary {
    background: #fff;
    color: var(--primary-hover);
    border: none;
}

.legal-footer-card .btn-primary:hover {
    background: #f0fdfa;
    color: var(--primary-hover);
}

.legal-footer-card .btn-outline {
    border-color: rgb(255 255 255 / 0.35);
    color: #fff;
    background: transparent;
}

.legal-footer-card .btn-outline:hover {
    background: rgb(255 255 255 / 0.1);
    border-color: rgb(255 255 255 / 0.55);
    color: #fff;
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        border-radius: 0 0 16px 16px;
    }

    .legal-toc {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .legal-toc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.2rem;
    }

    .legal-switcher {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .legal-switcher::-webkit-scrollbar { display: none; }

    .legal-switch {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        padding-top: calc(var(--header-h) + 1.5rem);
    }

    .legal-layout {
        padding: 0.85rem;
    }

    .legal-toc-list {
        grid-template-columns: 1fr;
    }

    .legal-section {
        padding: 1rem;
    }

    .legal-footer-card {
        padding: 1.1rem;
    }

    .legal-footer-actions {
        width: 100%;
    }

    .legal-footer-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ===== SITE PAGES (features / pricing / faq / about) ===== */
.site-page .main,
.home-page .main {
    background: #f7f9f8;
}

.site-hero {
    padding: calc(var(--header-h) + 2.6rem) 0 2.4rem;
    background:
        radial-gradient(ellipse 65% 80% at 100% 0%, rgb(15 118 110 / 0.12), transparent 55%),
        radial-gradient(ellipse 45% 55% at 0% 15%, rgb(217 119 6 / 0.08), transparent 50%),
        linear-gradient(180deg, #eef5f3, #f7f9f8);
    border-bottom: 1px solid rgb(20 32 30 / 0.06);
}

.site-hero-inner { max-width: 48rem; }

.site-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.site-crumb a {
    color: var(--primary);
    font-weight: 600;
}

.site-kicker {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
    margin: 0 0 0.7rem;
}

.site-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: #14201e;
}

.site-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #42524e;
    margin: 0 0 1.35rem;
    max-width: 40rem;
}

.site-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.site-section {
    padding: 3.5rem 0;
}

.site-section-soft {
    background: #fff;
    border-block: 1px solid rgb(20 32 30 / 0.06);
}

.site-section-head {
    max-width: 40rem;
    margin-bottom: 2rem;
}

.site-section-head-center {
    text-align: center;
    margin-inline: auto;
}

.site-section-head h2 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
}

.site-section-head p,
.site-muted {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

.site-muted a { color: var(--primary); font-weight: 600; }

.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-detail-card {
    background: #fff;
    border: 1px solid rgb(20 32 30 / 0.08);
    border-radius: 16px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
}

.feature-detail-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.feature-detail-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
}

.feature-detail-icon svg { width: 20px; height: 20px; }

.feature-detail-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: rgb(15 118 110 / 0.45);
    direction: ltr;
}

.feature-detail-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.feature-detail-card > p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
}

.feature-detail-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
}

.feature-detail-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-body);
}

.site-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.site-related-card {
    display: block;
    padding: 1.2rem 1.25rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgb(20 32 30 / 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-related-card:hover {
    transform: translateY(-2px);
    border-color: rgb(15 118 110 / 0.3);
    box-shadow: 0 12px 24px -18px rgb(15 23 42 / 0.35);
}

.site-related-card span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.site-related-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.site-related-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.home-teasers,
.home-pricing-teaser {
    padding: 4rem 0;
}

.home-teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-teaser-card {
    display: block;
    padding: 1.4rem 1.45rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgb(20 32 30 / 0.08);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-teaser-card:hover {
    transform: translateY(-2px);
    border-color: rgb(15 118 110 / 0.28);
    box-shadow: 0 14px 28px -20px rgb(15 23 42 / 0.4);
}

.home-teaser-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.55rem;
}

.home-teaser-card h3 {
    font-size: 1.15rem;
    margin: 0 0 0.45rem;
}

.home-teaser-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.home-teaser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-hover);
}

.home-teaser-link svg {
    width: 16px;
    height: 16px;
    transform: scaleX(-1);
}

.home-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.home-plan-card {
    text-align: center;
    padding: 1.35rem 1rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgb(20 32 30 / 0.08);
}

.home-plan-card.featured {
    border-color: rgb(15 118 110 / 0.35);
    background: linear-gradient(180deg, #f3faf8, #fff);
}

.home-plan-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
}

.home-plan-card strong {
    display: block;
    font-size: 1.35rem;
    color: var(--primary-hover);
    margin-bottom: 0.35rem;
}

.home-plan-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.home-teaser-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.compare-wrap {
    overflow-x: auto;
    border: 1px solid rgb(20 32 30 / 0.08);
    border-radius: 14px;
    background: #fff;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.compare-table th,
.compare-table td {
    padding: 0.9rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgb(20 32 30 / 0.06);
    font-size: 0.92rem;
}

.compare-table thead th {
    background: #f4f8f7;
    font-family: var(--font-heading);
    font-weight: 700;
}

.compare-table tbody th {
    text-align: right;
    font-weight: 600;
    color: var(--text);
    background: #fafcfb;
}

.price-faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
}

.faq-page-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 52rem;
}

.faq-group-title {
    font-size: 1.15rem;
    margin: 0 0 0.85rem;
}

@media (max-width: 900px) {
    .feature-detail-grid,
    .home-teaser-grid,
    .site-related,
    .price-faq-layout {
        grid-template-columns: 1fr;
    }

    .home-plan-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-hero { padding-top: calc(var(--header-h) + 1.6rem); }
    .site-section { padding: 2.5rem 0; }
}

/* ===== BRAND LOGO ===== */
.brand-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
}

.brand-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo-mark .brand-logo-img,
.brand-logo-circle .brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #0b1220;
    box-shadow: 0 0 0 2px rgb(37 99 235 / 0.2);
}

.logo.brand-logo-mark .brand-logo-img,
.logo-site.brand-logo-mark .brand-logo-img {
    width: 42px;
    height: 42px;
}

.dash-logo.brand-logo {
    padding: 0 0.35rem 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
    margin-bottom: 1rem;
    width: 100%;
}

.dash-logo.brand-logo .brand-logo-img {
    width: 44px;
    height: 44px;
}

.logo-footer.brand-logo {
    display: inline-flex;
    margin-bottom: 0.55rem;
}

.logo-footer .brand-logo-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #0b1220;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.12);
}

.auth-brand-logo.brand-logo {
    display: inline-flex;
    margin-bottom: 0.25rem;
}

.auth-brand-logo.brand-logo-full .brand-logo-img,
.auth-brand-logo.brand-logo-mark .brand-logo-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    background: #0b1220;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.18);
}

.auth-brand-logo.compact .brand-logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #0b1220;
    box-shadow: 0 0 0 2px rgb(37 99 235 / 0.18);
}

.mockup-store img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .logo-site .logo-mark-img,
    .logo-site.brand-logo-mark .brand-logo-img {
        width: 38px;
        height: 38px;
    }

    .logo-footer .brand-logo-img {
        width: 64px;
        height: 64px;
    }
}

.logo-mark-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 50%;
    background: #0b1220;
    box-shadow: 0 0 0 2px rgb(37 99 235 / 0.18);
}

.dash-logo .logo-mark-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0b1220;
    box-shadow: 0 0 0 2px rgb(255 255 255 / 0.14);
}

.cta-brand img {
    border-radius: 50%;
    object-fit: cover;
    background: #0b1220;
    box-shadow: 0 0 0 2px rgb(255 255 255 / 0.2);
}

/* dash logo colors live with sidebar theme rules above */

.logo-site .logo-accent { color: #2563eb; }

/* ---------- Orders ---------- */
.dash-order-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.dash-stat-icon.teal { background: rgb(13 148 136 / 0.12); color: #0d9488; }
.dash-stat-icon.amber { background: rgb(245 158 11 / 0.12); color: #d97706; }
.dash-stat-icon.green { background: rgb(16 185 129 / 0.12); color: #059669; }
.dash-stat-icon.red { background: rgb(239 68 68 / 0.12); color: #dc2626; }
.dash-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 0 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}
.dash-filter-tab {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.dash-filter-tab:hover { color: var(--text); border-color: var(--primary); }
.dash-filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.dash-order-number {
    font-size: 0.88rem;
    color: var(--text);
}
.dash-customer { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-customer strong { font-size: 0.92rem; }
.dash-address {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-items { display: flex; flex-direction: column; gap: 0.2rem; }
.dash-items span { font-size: 0.85rem; color: var(--text); }
.dash-items em { font-style: normal; color: var(--primary); font-weight: 800; }
.dash-status-form { margin: 0; }
.dash-status-select {
    min-width: 7.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--surface);
    color: var(--text);
}
.dash-status-select.new { background: rgb(59 130 246 / 0.1); color: #2563eb; border-color: rgb(59 130 246 / 0.3); }
.dash-status-select.confirmed { background: rgb(245 158 11 / 0.1); color: #d97706; border-color: rgb(245 158 11 / 0.3); }
.dash-status-select.processing { background: rgb(139 92 246 / 0.1); color: #7c3aed; border-color: rgb(139 92 246 / 0.3); }
.dash-status-select.shipped { background: rgb(14 165 233 / 0.1); color: #0284c7; border-color: rgb(14 165 233 / 0.3); }
.dash-status-select.delivered { background: rgb(16 185 129 / 0.1); color: #059669; border-color: rgb(16 185 129 / 0.3); }
.dash-status-select.cancelled { background: rgb(239 68 68 / 0.1); color: #dc2626; border-color: rgb(239 68 68 / 0.3); }
@media (max-width: 900px) {
    .dash-order-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .dash-order-stats { grid-template-columns: 1fr; }
}


/* ===== ERROR PAGES 404 / 500 ===== */
.err-body .header,
.err-body .footer {
    display: none;
}

.err-body .main {
    min-height: 100vh;
    padding: 0;
    background: #f3f6f4;
}

.err-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
    overflow: hidden;
    color: #10231f;
}

.err-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(165deg, #eef7f4 0%, #f7f4ee 48%, #e8f1ef 100%);
}

.err-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
}

.err-glow-a {
    width: min(42rem, 80vw);
    height: min(42rem, 80vw);
    top: -18%;
    inset-inline-end: -12%;
    background: radial-gradient(circle, rgb(15 118 110 / 0.22), transparent 68%);
    animation: err-drift 12s ease-in-out infinite alternate;
}

.err-glow-b {
    width: min(28rem, 70vw);
    height: min(28rem, 70vw);
    bottom: -10%;
    inset-inline-start: -8%;
    background: radial-gradient(circle, rgb(180 120 40 / 0.14), transparent 70%);
    animation: err-drift 14s ease-in-out infinite alternate-reverse;
}

.err-map {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(15 45 40 / 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgb(15 45 40 / 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 10%, transparent 72%);
}

.err-watermark {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(9rem, 28vw, 18rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    color: rgb(15 118 110 / 0.07);
    user-select: none;
    animation: err-fade-up 0.9s ease both;
}

.err-shell {
    position: relative;
    z-index: 1;
    width: min(52rem, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.err-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #0f231f;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    animation: err-fade-up 0.55s ease both;
}

.err-brand-text span { color: #0f766e; }

.err-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(15 118 110 / 0.14);
}

.err-panel {
    width: min(36rem, 100%);
    text-align: center;
    padding: clamp(1.75rem, 4vw, 2.4rem) clamp(1.25rem, 3vw, 2rem);
    border-radius: 1.5rem;
    background: rgb(255 255 255 / 0.78);
    border: 1px solid rgb(15 45 40 / 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgb(15 45 40 / 0.07);
    animation: err-fade-up 0.7s 0.08s ease both;
}

.err-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    color: #4b6b64;
    font-size: 0.92rem;
    font-weight: 700;
}

.err-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 1.7rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.err-page h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #0c1f1b;
}

.err-desc {
    margin: 0 auto 1.5rem;
    max-width: 30rem;
    color: #5a716b;
    font-size: 1.02rem;
    line-height: 1.8;
}

.err-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.err-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.err-btn-arrow {
    display: inline-flex;
    width: 1.1rem;
    height: 1.1rem;
}

html[dir='rtl'] .err-btn-arrow { transform: scaleX(-1); }

.err-page .btn-outline {
    border-color: rgb(15 45 40 / 0.18);
    color: #16342e;
    background: #fff;
}

.err-page .btn-outline:hover {
    border-color: #0f766e;
    color: #0f766e;
    background: #fff;
}

.err-page .btn-ghost {
    color: #0f766e;
    border: 1px solid rgb(15 118 110 / 0.25);
    background: transparent;
}

.err-page .btn-ghost:hover {
    background: rgb(15 118 110 / 0.08);
    color: #0b5f59;
}

.err-suggest {
    width: 100%;
    animation: err-fade-up 0.8s 0.16s ease both;
}

.err-suggest-label {
    margin: 0 0 0.85rem;
    text-align: center;
    color: #5f7771;
    font-size: 0.9rem;
    font-weight: 700;
}

.err-suggest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.err-suggest-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.85);
    border: 1px solid rgb(15 45 40 / 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.err-suggest-card:hover {
    transform: translateY(-3px);
    border-color: rgb(15 118 110 / 0.35);
    box-shadow: 0 12px 28px rgb(15 45 40 / 0.08);
}

.err-suggest-icon {
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0.35rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(15 118 110 / 0.1);
    color: #0f766e;
}

.err-suggest-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.err-suggest-card strong {
    font-size: 0.95rem;
    color: #122925;
}

.err-suggest-card span {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #6a817b;
}

/* Legacy 500 layout helpers */
.err-bg { display: none; }
.err-wrap {
    position: relative;
    z-index: 1;
    width: min(40rem, 100%);
    text-align: center;
}
.err-code {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(4.5rem, 14vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #0f766e;
}
.err-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    justify-content: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(15 45 40 / 0.08);
}
.err-links a {
    color: #4f6b65;
    font-size: 0.9rem;
    font-weight: 600;
}
.err-links a:hover { color: #0f766e; }

.err-500 .err-code { color: #b45309; }

@keyframes err-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes err-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(2%, -2%, 0); }
}

@media (max-width: 900px) {
    .err-suggest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .err-actions .btn { flex: 1 1 100%; justify-content: center; }
    .err-suggest-grid { grid-template-columns: 1fr; }
    .err-watermark { top: 36%; opacity: 0.85; }
}

/* ---------- Dashboard stats ---------- */
.dash-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem;
    height: 9rem;
    padding: 1rem 0.4rem 0;
}
.dash-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.4rem;
}
.dash-chart-bar {
    width: 100%;
    max-width: 2.2rem;
    border-radius: 0.5rem 0.5rem 0.2rem 0.2rem;
    background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #fff));
    transition: height 0.4s ease;
}
.dash-chart-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.dash-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}
.dash-mini-stats > div {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}
.dash-mini-stats span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.dash-mini-stats strong {
    font-size: 1.05rem;
    color: var(--text);
}
.dash-rank {
    display: flex;
    flex-direction: column;
}
.dash-rank-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.dash-rank-row:last-child { border-bottom: none; }
.dash-rank-num {
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
}
.dash-rank-body { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-rank-body strong { font-size: 0.92rem; color: var(--text); }
.dash-rank-body span { font-size: 0.8rem; color: var(--text-muted); }
.dash-mini-list { display: flex; flex-direction: column; }
.dash-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}
.dash-mini-item:last-child { border-bottom: none; }
.dash-mini-item:hover strong { color: var(--primary); }
.dash-mini-item > div { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-mini-item strong { font-size: 0.88rem; color: var(--text); }
.dash-mini-item span { font-size: 0.78rem; color: var(--text-muted); }
.dash-status.new { background: rgb(59 130 246 / 0.12); color: #2563eb; }
.dash-status.confirmed { background: rgb(245 158 11 / 0.12); color: #d97706; }
.dash-status.processing { background: rgb(139 92 246 / 0.12); color: #7c3aed; }
.dash-status.shipped { background: rgb(14 165 233 / 0.12); color: #0284c7; }
.dash-status.delivered { background: rgb(16 185 129 / 0.12); color: #059669; }
.dash-status.cancelled { background: rgb(239 68 68 / 0.12); color: #dc2626; }
.dash-store-status-box { display: flex; flex-direction: column; }
.dash-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.dash-status-row span { color: var(--text-muted); }
.dash-status-row strong { color: var(--text); }
.dash-status-row a { color: var(--primary); }


/* ---------- Settings ---------- */
.dash-logo-field {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dash-logo-preview {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    border: 1px dashed var(--border);
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.dash-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dash-logo-placeholder { color: var(--text-muted); }
.dash-logo-placeholder svg { width: 2rem; height: 2rem; }
.dash-logo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.dash-hint { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.dash-textarea {
    min-height: 5rem;
    resize: vertical;
    line-height: 1.7;
}
.dash-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 560px) {
    .dash-logo-field { flex-direction: column; align-items: flex-start; }
}


/* ===== i18n language switcher + LTR ===== */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgb(15 23 42 / 0.04);
    border: 1px solid rgb(15 23 42 / 0.08);
}

.lang-switch-btn {
    min-width: 2rem;
    height: 1.7rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-decoration: none;
}

.lang-switch-btn:hover { color: var(--primary); }
.lang-switch-btn.active {
    background: var(--primary);
    color: #fff;
}

.lang-switch-nav { margin-inline-end: 0.35rem; }

.lang-switch-dash {
    margin: 0 0.5rem 0.75rem;
    width: calc(100% - 1rem);
    justify-content: center;
    background: rgb(15 23 42 / 0.04);
    border-color: rgb(15 45 40 / 0.1);
}

.lang-switch-dash .lang-switch-btn { color: var(--text-muted); }
.lang-switch-dash .lang-switch-btn.active { background: var(--primary); color: #fff; }

.auth-lang-bar {
    position: absolute;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch-auth {
    background: rgb(255 255 255 / 0.9);
}

body.lang-fr {
    --font-heading: 'Inter', 'Alexandria', system-ui, sans-serif;
    --font-body: 'Inter', 'Almarai', system-ui, sans-serif;
}

html[dir='ltr'] .pe-back svg,
html[dir='ltr'] .home-teaser-link svg {
    transform: none;
}

html[dir='rtl'] .home-teaser-link svg {
    transform: scaleX(-1);
}

.lang-switch-store {
    background: rgb(15 23 42 / 0.04);
    border-color: rgb(15 23 42 / 0.1);
    margin-inline-end: 0.35rem;
}

html[dir='ltr'] body {
    text-align: start;
}

/* ===== Signup wizard ===== */
.auth-card-wide { max-width: 34rem; }

.signup-steps {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.signup-step-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.signup-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(15 23 42 / 0.06);
    font-size: 0.8rem;
    font-weight: 800;
}

.signup-step-item.is-active { color: var(--primary); }
.signup-step-item.is-active .signup-step-num {
    background: var(--primary);
    color: #fff;
}
.signup-step-item.is-done { color: var(--text); }
.signup-step-item.is-done .signup-step-num {
    background: rgb(15 118 110 / 0.15);
    color: var(--primary);
}

.signup-step-line {
    flex: 1;
    height: 2px;
    background: rgb(15 23 42 / 0.08);
    border-radius: 999px;
}

.signup-panel[hidden] { display: none !important; }

.slug-field {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border, #d7e0dd);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.slug-field.has-error,
.slug-field:focus-within {
    border-color: var(--primary);
}

.slug-field.has-error { border-color: var(--danger); }

.slug-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    background: rgb(15 23 42 / 0.04);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    border-inline-end: 1px solid rgb(15 23 42 / 0.08);
}

.slug-input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.store-lang-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.store-lang-field .form-label { margin-bottom: 0.65rem; }

.store-lang-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.store-lang-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border, rgb(15 23 42 / 0.12));
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.store-lang-option input { position: absolute; opacity: 0; pointer-events: none; }

.store-lang-option:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--border, #cbd5e1));
}

.store-lang-option.is-selected {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    box-shadow: 0 0 0 3px rgb(15 118 110 / 0.16);
}

.store-lang-code {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(15 118 110 / 0.14);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
}

.store-lang-name { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.store-lang-dir { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }

html[data-theme='dark'] .store-lang-option {
    border-color: rgb(255 255 255 / 0.1);
}

html[data-theme='dark'] .store-lang-option.is-selected {
    background: rgb(15 118 110 / 0.18);
    box-shadow: 0 0 0 3px rgb(45 212 191 / 0.14);
}

.signup-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
}

@media (max-width: 560px) {
    .store-lang-options { grid-template-columns: 1fr; }
    .signup-actions { grid-template-columns: 1fr; }
    .signup-step-label { display: none; }
}

/* ===== Dashboard settings (modern shell) ===== */
.dash-nav-group {
    display: grid;
    gap: 0.1rem;
}

.dash-nav-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.15rem;
}

.dash-nav-row .dash-nav-link {
    min-width: 0;
}

.dash-nav-expand {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: inherit;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.dash-nav-expand:hover,
.dash-nav-expand:focus-visible {
    background: rgb(15 23 42 / 0.06);
    outline: none;
}

.dash-nav-caret {
    width: 0.42rem;
    height: 0.42rem;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.55;
    transition: transform 0.22s var(--ease-out), opacity 0.2s ease;
    display: block;
}

.dash-nav-group.open .dash-nav-caret {
    transform: rotate(-135deg);
    opacity: 0.9;
}

.dash-nav-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s var(--ease-out);
}

.dash-nav-group.open .dash-nav-sub {
    grid-template-rows: 1fr;
}

.dash-nav-sub-inner {
    overflow: hidden;
    display: grid;
    gap: 0.12rem;
    padding: 0.15rem 0.2rem 0.35rem 0.95rem;
}

.dash-nav-sublink {
    display: block;
    padding: 0.48rem 0.7rem;
    border-radius: 0.55rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.22s var(--ease-out), background 0.15s ease, color 0.15s ease;
}

.dash-nav-group.open .dash-nav-sublink {
    opacity: 1;
    transform: none;
}

.dash-nav-sublink:hover,
.dash-nav-sublink:focus-visible {
    color: var(--primary);
    background: rgb(15 23 42 / 0.04);
}

.dash-nav-sublink.active {
    color: var(--primary);
    background: rgb(15 118 110 / 0.12);
}

.dash-content:has(.settings-shell) {
    padding-top: 1.25rem;
}

.settings-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
    animation: settingsIn 0.35s var(--ease-out) both;
}

@keyframes settingsIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.settings-rail {
    position: sticky;
    top: 5.35rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 1.15rem;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(248 250 249 / 0.96));
    box-shadow: 0 10px 28px rgb(15 23 42 / 0.04);
    max-height: calc(100vh - 6.5rem);
    overflow: auto;
    padding: 0.7rem;
}

.settings-rail-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.9rem;
    text-decoration: none;
    color: inherit;
    background: rgb(15 118 110 / 0.08);
    margin-bottom: 0.65rem;
}

.settings-rail-brand.active {
    background: rgb(15 118 110 / 0.14);
}

.settings-rail-brand strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
}

.settings-rail-brand small {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.settings-rail-brand-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    display: inline-grid;
    place-items: center;
    background: #0f766e;
    color: #fff;
}

.settings-rail-brand-icon svg {
    width: 17px;
    height: 17px;
}

.settings-rail-group + .settings-rail-group {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgb(15 23 42 / 0.06);
}

.settings-rail-label {
    margin: 0 0.55rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.settings-rail-link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: center;
    padding: 0.58rem 0.65rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.settings-rail-link:hover,
.settings-rail-link:focus-visible {
    color: var(--text);
    background: rgb(15 23 42 / 0.04);
}

.settings-rail-link.active {
    color: var(--accent, var(--primary));
    background: color-mix(in srgb, var(--accent, #0f766e) 12%, white);
}

.settings-rail-icon {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 0.55rem;
    display: inline-grid;
    place-items: center;
    background: rgb(15 23 42 / 0.04);
    color: inherit;
}

.settings-rail-link.active .settings-rail-icon {
    background: color-mix(in srgb, var(--accent, #0f766e) 18%, white);
    color: var(--accent, var(--primary));
}

.settings-rail-icon svg {
    width: 15px;
    height: 15px;
}

.settings-stage {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.settings-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1.25rem 1.35rem;
    border-radius: 1.2rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    background:
        radial-gradient(ellipse 55% 90% at 100% 0%, rgb(15 118 110 / 0.12), transparent 55%),
        radial-gradient(ellipse 40% 70% at 0% 100%, rgb(14 116 144 / 0.08), transparent 50%),
        #fff;
}

.settings-hero-hub {
    background:
        radial-gradient(ellipse 60% 100% at 100% 0%, rgb(15 118 110 / 0.16), transparent 55%),
        radial-gradient(ellipse 45% 80% at 0% 100%, rgb(217 119 6 / 0.1), transparent 50%),
        linear-gradient(145deg, #0f1720 0%, #12312c 55%, #0f766e 130%);
    color: #e2e8f0;
    border-color: transparent;
}

.settings-hero-hub h2,
.settings-hero-hub .settings-kicker,
.settings-hero-hub p {
    color: inherit;
}

.settings-hero-hub p {
    color: #cbd5e1;
}

.settings-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--primary);
}

.settings-hero h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}

.settings-hero p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 42rem;
}

.settings-hero-title-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.settings-hero-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.85rem;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--accent, #0f766e) 16%, white);
    color: var(--accent, var(--primary));
}

.settings-hero-icon svg {
    width: 18px;
    height: 18px;
}

.settings-hero-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.settings-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.settings-crumb a {
    color: var(--primary);
    text-decoration: none;
}

.settings-crumb-sep {
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.45;
}

.settings-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.settings-hub-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.12);
    font-size: 0.8rem;
    font-weight: 700;
}

.settings-hub-chip.is-live {
    background: rgb(16 185 129 / 0.18);
    border-color: rgb(16 185 129 / 0.3);
    color: #6ee7b7;
}

.settings-hub-chip.is-closed {
    background: rgb(248 113 113 / 0.16);
    border-color: rgb(248 113 113 / 0.28);
    color: #fecaca;
}

.settings-hub-section {
    display: grid;
    gap: 0.75rem;
}

.settings-hub-section-head h3 {
    margin: 0;
    font-size: 1rem;
}

.settings-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.85rem;
}

.settings-hub-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1.05rem 1.1rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 1rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s var(--ease-out), box-shadow 0.18s ease;
}

.settings-hub-card:hover,
.settings-hub-card:focus-visible {
    border-color: color-mix(in srgb, var(--accent, #0f766e) 45%, white);
    box-shadow: 0 14px 30px rgb(15 23 42 / 0.07);
    transform: translateY(-2px);
}

.settings-hub-icon {
    display: inline-grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--accent, #0f766e) 14%, white);
    color: var(--accent, var(--primary));
}

.settings-hub-icon svg,
.settings-hub-arrow svg {
    width: 18px;
    height: 18px;
}

.settings-hub-body {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.settings-hub-body strong {
    font-size: 0.95rem;
    color: var(--text);
}

.settings-hub-body small {
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-hub-arrow {
    color: var(--text-muted);
    opacity: 0.7;
}

.settings-toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgb(16 185 129 / 0.12);
    border: 1px solid rgb(16 185 129 / 0.28);
    color: #047857;
    font-weight: 700;
}

.settings-toast-icon {
    display: inline-grid;
    place-items: center;
}

.settings-toast-icon svg {
    width: 18px;
    height: 18px;
}

.settings-form {
    display: grid;
    gap: 1rem;
}

.settings-card {
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.03);
    overflow: hidden;
}

.settings-card-head {
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid rgb(15 23 42 / 0.06);
    background: linear-gradient(180deg, #fbfcfb, #fff);
}

.settings-card-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.settings-card-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.settings-card-body {
    padding: 1.25rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.settings-switch {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: 0.85rem;
    margin-bottom: 0.65rem;
    cursor: pointer;
    background: #fbfcfb;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.settings-switch:hover {
    border-color: rgb(15 118 110 / 0.25);
    background: #fff;
}

.settings-switch input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
    width: 1.05rem;
    height: 1.05rem;
}

.settings-switch strong {
    display: block;
    margin-bottom: 0.2rem;
}

.settings-switch small {
    color: var(--text-muted);
    line-height: 1.6;
    display: block;
}

.settings-status-box {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 0.9rem;
    background: #f8faf9;
    border: 1px solid rgb(15 23 42 / 0.06);
    margin-bottom: 1rem;
}

.settings-status-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.settings-status-row span {
    color: var(--text-muted);
    font-weight: 600;
}

.settings-status-row .is-live { color: #047857; }
.settings-status-row .is-closed { color: #b91c1c; }

.shipping-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.55rem;
    max-height: 420px;
    overflow: auto;
    padding: 0.25rem;
}

.shipping-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    border-radius: var(--radius);
    background: #fff;
}

.shipping-rate-name {
    font-size: 0.86rem;
    font-weight: 600;
}

.shipping-rate-name em {
    color: var(--text-muted);
    font-style: normal;
    margin-inline-end: 0.35rem;
}

.shipping-rate-input {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.shipping-rate-input input {
    width: 5.2rem;
    padding: 0.35rem 0.45rem;
    border: 1px solid rgb(15 23 42 / 0.12);
    border-radius: 0.45rem;
    font-weight: 700;
}

.shipping-rate-input span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 700;
}

.color-field {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.color-field input[type='color'] {
    width: 3rem;
    height: 2.75rem;
    border: 1px solid rgb(15 23 42 / 0.12);
    border-radius: 0.55rem;
    padding: 0.2rem;
    background: #fff;
}

.dash-logo-preview-sm {
    width: 56px;
    height: 56px;
}

.settings-savebar {
    position: sticky;
    bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgb(255 255 255 / 0.92);
    backdrop-filter: blur(10px);
    padding: 0.9rem 1.05rem;
    border-radius: 1rem;
    border: 1px solid rgb(15 23 42 / 0.08);
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.08);
    z-index: 3;
}

.settings-savebar-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .settings-shell {
        grid-template-columns: 1fr;
    }

    .settings-rail {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .settings-rail-nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 0.35rem;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .settings-rail-group {
        display: contents;
    }

    .settings-rail-label,
    .settings-rail-head {
        display: none;
    }

    .settings-rail-link {
        white-space: nowrap;
        margin: 0;
        border: 1px solid rgb(15 23 42 / 0.08);
        background: #fff;
    }
}

@media (max-width: 760px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .settings-hub-grid { grid-template-columns: 1fr; }
    .settings-savebar { position: sticky; }
    .settings-hero-actions { width: 100%; }
    .settings-hero-actions .btn { flex: 1; justify-content: center; }
}

html[data-theme='dark'] .settings-rail,
html[data-theme='dark'] .settings-hub-card,
html[data-theme='dark'] .settings-card,
html[data-theme='dark'] .settings-savebar,
html[data-theme='dark'] .settings-hero:not(.settings-hero-hub),
html[data-theme='dark'] .shipping-rate-row,
html[data-theme='dark'] .settings-switch {
    background: rgb(21 27 36 / 0.92);
    border-color: rgb(148 163 184 / 0.12);
}

html[data-theme='dark'] .settings-card-head,
html[data-theme='dark'] .settings-status-box {
    background: rgb(15 23 42 / 0.55);
    border-color: rgb(148 163 184 / 0.1);
}

html[data-theme='dark'] .dash-nav-expand:hover,
html[data-theme='dark'] .dash-nav-expand:focus-visible,
html[data-theme='dark'] .dash-nav-sublink:hover,
html[data-theme='dark'] .dash-nav-sublink:focus-visible,
html[data-theme='dark'] .settings-rail-link:hover,
html[data-theme='dark'] .settings-rail-link:focus-visible {
    background: rgb(148 163 184 / 0.08);
}

html[data-theme='dark'] .dash-nav-sublink.active,
html[data-theme='dark'] .settings-rail-link.active {
    background: rgb(45 212 191 / 0.12);
}

html[data-theme='dark'] .settings-rail-brand {
    background: rgb(45 212 191 / 0.1);
}

html[data-theme='dark'] .settings-hub-body strong,
html[data-theme='dark'] .settings-card-head h3,
html[data-theme='dark'] .settings-hero h2 {
    color: var(--text);
}

html[data-theme='dark'] .settings-toast {
    background: rgb(16 185 129 / 0.14);
    border-color: rgb(16 185 129 / 0.28);
    color: #6ee7b7;
}

.settings-soon-note {
    margin-bottom: 0.85rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.8rem;
    background: rgb(245 158 11 / 0.1);
    border: 1px solid rgb(245 158 11 / 0.25);
    color: #b45309;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.6;
}

html[data-theme='dark'] .settings-soon-note {
    background: rgb(245 158 11 / 0.12);
    border-color: rgb(245 158 11 / 0.28);
    color: #fbbf24;
}

.dash-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.store-legal {
    padding: calc(var(--header-h, 4.5rem) + 2rem) 0 3.5rem;
    max-width: 48rem;
}

.store-legal-head h1 {
    margin: 0.35rem 0 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.store-legal-crumb {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.store-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.25rem 0 1.5rem;
}

.store-legal-nav a {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.store-legal-nav a.active,
.store-legal-nav a:hover {
    color: var(--primary);
    border-color: rgb(15 118 110 / 0.35);
    background: rgb(15 118 110 / 0.08);
}

.store-legal-body {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface, #fff);
}

.store-legal-content {
    line-height: 1.9;
    color: var(--text-body);
    white-space: pre-wrap;
}

.store-legal-empty {
    color: var(--text-muted);
    margin: 0;
}

/* —— SEO / CWV helpers —— */
.seo-breadcrumbs { margin-bottom: 1rem; }
.seo-breadcrumbs-list { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: var(--text-muted); }
.seo-breadcrumbs-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.seo-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.seo-breadcrumbs a:hover { color: var(--primary); }
.seo-breadcrumbs-sep { opacity: 0.5; }
.seo-search-form { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; max-width: 36rem; }
.seo-search-form .form-input { flex: 1; min-width: 12rem; }
.html-sitemap { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.html-sitemap-block h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.html-sitemap-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.html-sitemap-block a { color: var(--text); text-decoration: none; font-weight: 600; }
.html-sitemap-block a:hover { color: var(--primary); }
.html-sitemap-desc { display: block; font-size: 0.82rem; color: var(--text-muted); font-weight: 400; margin-top: 0.15rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.topic-page .legal-section { margin-bottom: 1.5rem; }
.store-pagination { display:flex; align-items:center; justify-content:center; gap:1rem; margin:1.75rem 0 0.5rem; flex-wrap:wrap; }
.store-pagination-status { color: var(--text-muted); font-size: 0.92rem; }
