/* ==========================================================================
   小程云 SaaS · Design System
   ========================================================================== */

:root {
    --ink: #0f172a;
    --ink-2: #1e293b;
    --text: #334155;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e5ebf3;
    --line-strong: #d5dfec;
    --bg: #f4f7fb;
    --card: #ffffff;
    --primary: #2e6bff;
    --primary-700: #1f56df;
    --primary-50: #edf3ff;
    --violet: #7c5cff;
    --success: #0e9f6e;
    --success-50: #e9f9f2;
    --warning: #d97706;
    --warning-50: #fff7e8;
    --danger: #e5484d;
    --danger-50: #fef0f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow: 0 12px 34px rgba(15, 23, 42, .08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

img {
    max-width: 100%;
    display: block;
}

svg {
    width: 18px;
    height: 18px;
    flex: none;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -.01em;
}

p {
    margin: 0;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    letter-spacing: .01em;
}

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

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

.text-ok {
    color: var(--success);
}

.nowrap {
    white-space: nowrap;
}

.w-full {
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ==========================================================================
   Brand
   ========================================================================== */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    line-height: 1.15;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #2e6bff, #7c5cff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(46, 107, 255, .28);
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 17px;
    letter-spacing: -.02em;
}

.brand-text small {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.brand--light .brand-text strong {
    color: #fff;
}

.brand--light .brand-text small {
    color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   Buttons / badges / tags
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 19px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
    user-select: none;
}

.btn svg {
    width: 17px;
    height: 17px;
}

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

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn.is-loading {
    opacity: .6;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2e6bff, #4a7bff);
    color: #fff;
    box-shadow: 0 8px 18px rgba(46, 107, 255, .24);
}

.btn-primary:hover {
    box-shadow: 0 10px 22px rgba(46, 107, 255, .32);
}

.btn-violet {
    background: linear-gradient(135deg, #7c5cff, #9b7bff);
    color: #fff;
    box-shadow: 0 8px 18px rgba(124, 92, 255, .24);
}

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

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

.btn-light {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    border-color: var(--line-strong);
}

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

.btn-ghost:hover {
    background: rgba(15, 23, 42, .05);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: #bcd0ff;
}

.btn-outline:hover {
    background: var(--primary-50);
}

.btn-sm {
    height: 34px;
    padding: 0 13px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-xs {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-block {
    width: 100%;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
    flex: none;
}

.icon-btn:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.icon-btn--plain {
    border-color: transparent;
    background: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 23px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge--sm {
    height: 20px;
    font-size: 11px;
    padding: 0 6px;
}

.badge--ok {
    background: var(--success-50);
    color: #047857;
}

.badge--warn {
    background: var(--warning-50);
    color: #b45309;
}

.badge--bad {
    background: var(--danger-50);
    color: #c02a2f;
}

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

.badge--blue {
    background: var(--primary-50);
    color: var(--primary-700);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.tag--primary {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13.5px;
    line-height: 1.6;
}

.alert svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.alert span {
    flex: 1;
}

.alert-close {
    background: none;
    border: 0;
    color: inherit;
    opacity: .55;
    cursor: pointer;
    padding: 2px;
}

.alert--success {
    background: var(--success-50);
    border-color: #c5f0dd;
    color: #056649;
}

.alert--error {
    background: var(--danger-50);
    border-color: #fad3d5;
    color: #a9252a;
}

.alert--warning {
    background: var(--warning-50);
    border-color: #fbe3b6;
    color: #92400e;
}

.alert--info {
    background: var(--primary-50);
    border-color: #cfdcff;
    color: #1e4fd4;
}

/* ==========================================================================
   Landing
   ========================================================================== */

body.landing {
    background: #fff;
    color: var(--ink);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: 76px;
    display: flex;
    align-items: center;
    background: rgba(7, 12, 24, .55);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.nav-links a:hover {
    color: #fff;
}

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .btn-ghost {
    color: rgba(255, 255, 255, .82);
}

.site-header .btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    padding: 8px;
    cursor: pointer;
}

.hero {
    position: relative;
    background:
        radial-gradient(1000px 620px at 72% 8%, rgba(46, 107, 255, .28), transparent 60%),
        radial-gradient(760px 520px at 12% 82%, rgba(124, 92, 255, .18), transparent 60%),
        linear-gradient(180deg, #060b17 0%, #0a1426 68%, #0d1830 100%);
    color: #fff;
    padding: 154px 0 96px;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 72%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: 48px;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

.eyebrow--light {
    color: rgba(255, 255, 255, .62);
}

.hero h1 {
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.16;
    margin: 22px 0 20px;
    letter-spacing: -.035em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #7ea2ff, #b8a1ff 55%, #7be1ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .66);
    max-width: 520px;
}

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

.hero-actions .btn {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
}

.hero-actions .btn-ghost {
    color: rgba(255, 255, 255, .8);
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .04);
}

.hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-points svg {
    width: 15px;
    height: 15px;
    color: #7fdcb4;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 600px;
}

.hero-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 107, 255, .28), transparent 66%);
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(10px);
}

.hero-phone {
    position: relative;
    z-index: 3;
    transform: rotate(2deg);
}

.floating-card {
    position: absolute;
    z-index: 4;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
    border-radius: 14px;
    padding: 11px 14px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    white-space: nowrap;
}

.floating-card .fc-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
}

.floating-card b {
    display: block;
    font-size: 13px;
}

.floating-card small {
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
}

.floating-card--pay {
    left: 2%;
    top: 26%;
    animation: float 7s ease-in-out infinite;
}

.floating-card--audit {
    right: 0;
    bottom: 15%;
    animation: float 8s ease-in-out infinite 1s;
}

.floating-card--new {
    left: -2%;
    bottom: 26%;
    animation: float 9s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.stat-strip {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 54px;
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-strip-item b {
    font-size: 22px;
    display: block;
    letter-spacing: -.02em;
}

.stat-strip-item span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .52);
}

.section {
    padding: 92px 0;
}

.section--tint {
    background: #f7f9fd;
}

.section--dark {
    background: #0a1220;
    color: #fff;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.28;
    margin: 16px 0 14px;
    letter-spacing: -.025em;
}

.section-head p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.section--dark .section-head p {
    color: rgba(255, 255, 255, .58);
}

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

.industry-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}

.industry-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ind-color, var(--primary));
}

.industry-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--ind-color, var(--primary)) 11%, #fff);
    color: var(--ind-color, var(--primary));
    margin-bottom: 20px;
}

.industry-icon svg {
    width: 24px;
    height: 24px;
}

.industry-card h3 {
    font-size: 18px;
    margin-bottom: 7px;
}

.industry-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
    min-height: 48px;
}

.industry-card .industry-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    color: var(--ind-color, var(--primary));
    font-size: 13px;
    font-weight: 600;
}

.industry-card .industry-link svg {
    width: 14px;
    height: 14px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--primary-50);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}

.feature-icon--violet {
    background: #f2eeff;
    color: var(--violet);
}

.feature-icon--green {
    background: var(--success-50);
    color: var(--success);
}

.feature-icon--orange {
    background: #fff3ec;
    color: #f97316;
}

.feature-card h3 {
    font-size: 16.5px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.step-item {
    position: relative;
    padding: 0 22px;
}

.step-item::before {
    content: "";
    position: absolute;
    top: 22px;
    right: -6px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-right: 1px solid rgba(255, 255, 255, .2);
    transform: rotate(45deg);
    opacity: .6;
}

.step-item:last-child::before {
    display: none;
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #9fb6ff;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, .04);
}

.step-item h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.step-item p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .55);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.template-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.template-cover {
    position: relative;
    padding: 28px 0 8px;
    background:
        radial-gradient(420px 220px at 60% 0%, color-mix(in srgb, var(--tpl-primary) 22%, transparent), transparent),
        #f8fafe;
    display: flex;
    justify-content: center;
    overflow: hidden;
    min-height: 330px;
}

.template-info {
    padding: 18px 20px 22px;
}

.template-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.template-info h3 {
    font-size: 16.5px;
}

.template-info p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 7px;
}

.template-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.template-features .tag {
    font-size: 11.5px;
    height: 22px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.plan-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.plan-card--featured {
    border-color: #b9ccff;
    box-shadow: 0 18px 44px rgba(46, 107, 255, .14);
    background: linear-gradient(180deg, #f8faff, #fff 42%);
}

.plan-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2e6bff, #7c5cff);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
}

.plan-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 6px;
    min-height: 44px;
}

.plan-price {
    margin: 22px 0 6px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan-price strong {
    font-size: 38px;
    letter-spacing: -.04em;
    font-weight: 800;
    line-height: 1;
}

.plan-price span {
    font-size: 13px;
    color: var(--muted);
}

.plan-period {
    font-size: 12px;
    color: var(--muted);
}

.plan-features {
    list-style: none;
    margin: 22px 0 26px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
}

.plan-features svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    margin-top: 2px;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 19px 22px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform .2s ease;
}

.faq-item[open] summary svg {
    transform: rotate(180deg);
}

.faq-item .faq-answer {
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.85;
}

.cta-band {
    position: relative;
    background:
        radial-gradient(600px 320px at 20% 20%, rgba(124, 92, 255, .3), transparent 70%),
        radial-gradient(600px 320px at 80% 80%, rgba(46, 107, 255, .28), transparent 70%),
        #0a1426;
    color: #fff;
    border-radius: 22px;
    padding: 54px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
}

.cta-band h2 {
    font-size: clamp(24px, 2.6vw, 34px);
    margin-bottom: 10px;
}

.cta-band p {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
}

.cta-band .btn {
    height: 48px;
    padding: 0 26px;
    flex: none;
}

.site-footer {
    background: #070c16;
    color: rgba(255, 255, 255, .58);
    padding: 64px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand p {
    max-width: 330px;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.8;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, .5);
    font-size: 12.5px;
}

.footer-contact svg {
    width: 14px;
    height: 14px;
}

.footer-links h4 {
    color: #fff;
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links a {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .5);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
    flex-wrap: wrap;
}

/* ==========================================================================
   Auth
   ========================================================================== */

body.auth-body {
    background: #0b1322;
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: 44px 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(800px 500px at 90% 10%, rgba(46, 107, 255, .3), transparent 60%),
        radial-gradient(600px 400px at 10% 90%, rgba(124, 92, 255, .25), transparent 60%),
        #0a1220;
}

.auth-aside-copy {
    margin: auto 0;
    max-width: 440px;
    padding: 40px 0;
}

.auth-aside-copy h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.3;
    margin: 18px 0 18px;
    letter-spacing: -.03em;
}

.auth-aside-copy p {
    color: rgba(255, 255, 255, .6);
    font-size: 14.5px;
    line-height: 1.85;
}

.auth-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-points svg {
    width: 17px;
    height: 17px;
    color: #79dbb0;
}

.auth-aside-foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
}

.auth-aside-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .55);
}

.auth-aside-foot svg {
    width: 14px;
    height: 14px;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    opacity: .5;
    pointer-events: none;
}

.auth-orb--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 107, 255, .35), transparent 70%);
    right: -100px;
    bottom: -80px;
}

.auth-orb--2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(124, 92, 255, .3), transparent 70%);
    left: -80px;
    top: 10%;
}

.auth-main {
    background: #f6f8fc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 28px;
}

.auth-card {
    width: min(452px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .09);
    padding: 36px 34px 30px;
}

.auth-card-head {
    margin-bottom: 26px;
}

.auth-card-head h2 {
    font-size: 24px;
    letter-spacing: -.02em;
}

.auth-card-head p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 7px;
}

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

.auth-switch {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.auth-alt {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
}

.auth-alt a {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-alt a:hover {
    color: var(--primary);
}

.auth-alt svg {
    width: 14px;
    height: 14px;
}

.auth-note {
    background: var(--primary-50);
    border: 1px solid #d7e2ff;
    color: #1e4fd4;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.auth-register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.auth-register-grid .field--full {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-aside {
        display: none;
    }
    .auth-main {
        padding: 30px 18px;
    }
}

/* ==========================================================================
   Panel layout
   ========================================================================== */

body.panel-body {
    background: var(--bg);
    min-height: 100vh;
}

.panel-sidebar {
    position: fixed;
    z-index: 60;
    inset: 0 auto 0 0;
    width: 248px;
    background: linear-gradient(180deg, #0b1322 0%, #0f1b30 60%, #0b1628 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 22px 14px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-brand {
    padding: 4px 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 14px;
}

.sidebar-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: none;
}

.sidebar-brand .brand-text strong {
    font-size: 15px;
}

.sidebar-brand .brand-text small {
    font-size: 10px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0 12px;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-label {
    font-size: 10.5px;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .32);
    padding: 10px 12px 6px;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .62);
    font-size: 13.5px;
    transition: all .15s ease;
    margin-bottom: 2px;
}

.nav-link svg {
    width: 17px;
    height: 17px;
    opacity: .8;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.nav-link.is-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(46, 107, 255, .34), rgba(124, 92, 255, .16));
    box-shadow: inset 0 0 0 1px rgba(120, 156, 255, .2);
}

.nav-link.is-active svg {
    opacity: 1;
    color: #9db9ff;
}

.sidebar-foot {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-user {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
    padding: 12px;
}

.sidebar-user-head {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sidebar-user-head strong {
    display: block;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .9);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-head small {
    display: block;
    color: rgba(255, 255, 255, .4);
    font-size: 10.5px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2e6bff, #7c5cff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    flex: none;
    overflow: hidden;
}

.avatar--sm {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 13px;
}

.avatar--admin {
    background: linear-gradient(135deg, #0e9f6e, #22b07d);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, .42);
    flex-wrap: wrap;
}

.sidebar-exit {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .4);
}

.sidebar-exit svg {
    width: 14px;
    height: 14px;
}

.sidebar-exit:hover {
    color: #fff;
}

.panel-main {
    margin-left: 248px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 74px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 28px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-kicker {
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--muted-2);
    text-transform: uppercase;
}

.topbar-title {
    font-size: 19px;
    letter-spacing: -.02em;
    margin-top: 2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12.5px;
    white-space: nowrap;
}

.topbar-link svg {
    width: 14px;
    height: 14px;
}

.topbar-link:hover {
    color: var(--primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.topbar-user strong {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user small {
    display: block;
    font-size: 10.5px;
    color: var(--muted-2);
}

.topbar-menu {
    display: none;
}

.panel-content {
    padding: 26px 28px 48px;
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

.sidebar-overlay {
    display: none;
}

@media (max-width: 1080px) {
    .panel-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 20px 0 50px rgba(0, 0, 0, .2);
    }
    body.sidebar-open .panel-sidebar {
        transform: translateX(0);
    }
    body.sidebar-open .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(2, 6, 23, .45);
        backdrop-filter: blur(2px);
    }
    .panel-main {
        margin-left: 0;
    }
    .topbar-menu {
        display: inline-grid;
    }
}

@media (max-width: 720px) {
    .panel-topbar {
        padding: 12px 16px;
    }
    .topbar-user,
    .topbar-link {
        display: none;
    }
    .panel-content {
        padding: 18px 16px 40px;
    }
    .topbar-title {
        font-size: 17px;
    }
}

/* ==========================================================================
   Page head
   ========================================================================== */

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.page-head h2 {
    font-size: 22px;
    letter-spacing: -.02em;
}

.page-desc {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
    max-width: 720px;
    line-height: 1.7;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted-2);
    margin-bottom: 10px;
}

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

.breadcrumb svg {
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card--pad {
    padding: 22px 24px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.card-head--plain {
    border-bottom: 0;
    padding-bottom: 0;
}

.card-title {
    font-size: 15.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title svg {
    width: 17px;
    height: 17px;
    color: var(--primary);
}

.card-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.6;
}

.card-body {
    padding: 22px;
}

.card-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fbfcff;
    border-radius: 0 0 var(--radius) var(--radius);
}

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

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

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

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 20px;
    align-items: start;
}

.split--wide {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 18px 0;
}

@media (max-width: 980px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .split,
    .split--wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 112px;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--primary-50);
    color: var(--primary);
    position: absolute;
    right: 16px;
    top: 16px;
}

.stat-icon--green {
    background: var(--success-50);
    color: var(--success);
}

.stat-icon--violet {
    background: #f2eeff;
    color: var(--violet);
}

.stat-icon--orange {
    background: #fff3ec;
    color: #f97316;
}

.stat-label {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.stat-value small {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 3px;
}

.stat-foot {
    font-size: 11.5px;
    color: var(--muted-2);
    margin-top: auto;
}

.stat-foot strong {
    color: var(--success);
    font-weight: 600;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}

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

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

.metric-row b {
    font-weight: 600;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 0 0 var(--radius) var(--radius);
}

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

.data-table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--muted);
    text-transform: uppercase;
    padding: 12px 18px;
    background: #f8fafd;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #eef3f9;
    font-size: 13px;
    vertical-align: middle;
}

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

.data-table tbody tr:hover {
    background: #fbfcff;
}

.cell-main {
    display: block;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
}

.cell-sub {
    display: block;
    font-size: 11.5px;
    color: var(--muted-2);
    margin-top: 3px;
}

.cell-with-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cell-thumb {
    width: 46px;
    height: 46px;
    border-radius: 9px;
    object-fit: cover;
    background: #f1f5f9;
    flex: none;
}

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

.table-empty {
    padding: 56px 24px;
    text-align: center;
    color: var(--muted);
}

.table-empty .empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-50);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
}

.table-empty .empty-icon svg {
    width: 26px;
    height: 26px;
}

.table-empty b {
    display: block;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 5px;
}

.table-empty p {
    font-size: 12.5px;
    color: var(--muted);
}

.table-empty .btn {
    margin-top: 16px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

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

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

.field--full {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.label .required {
    color: var(--danger);
    font-weight: 400;
}

.label-note {
    font-size: 11.5px;
    color: var(--muted-2);
    font-weight: 400;
}

.input,
.select,
.textarea {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    padding: 0 12px;
    color: var(--ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-size: 13.5px;
}

.textarea {
    height: auto;
    padding: 10px 12px;
    line-height: 1.65;
    resize: vertical;
    min-height: 88px;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.input::placeholder,
.textarea::placeholder {
    color: #a8b3c4;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: #8fb0ff;
    box-shadow: 0 0 0 3px rgba(46, 107, 255, .12);
}

.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid {
    border-color: #f2b1b4;
    background: #fffafa;
}

.input[disabled],
.input[readonly] {
    background: #f8fafc;
    color: var(--muted);
    cursor: default;
}

.hint {
    font-size: 11.5px;
    color: var(--muted-2);
    line-height: 1.6;
}

.field-error {
    font-size: 11.5px;
    color: var(--danger);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    min-height: 38px;
}

.check-row input[type="checkbox"],
.check-row input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
    flex: none;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcff;
}

.switch-row-copy b {
    display: block;
    font-size: 13px;
}

.switch-row-copy small {
    display: block;
    color: var(--muted-2);
    font-size: 11.5px;
    margin-top: 2px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex: none;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background .18s ease;
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .18s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
}

.switch input:checked + .switch-slider {
    background: var(--success);
}

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

.input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.input-group .input {
    border-radius: 9px 0 0 9px;
}

.input-group .btn {
    border-radius: 0 9px 9px 0;
    height: 42px;
    flex: none;
}

.file-drop {
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    padding: 13px 14px;
    background: #fbfcff;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.file-drop:hover {
    border-color: #9fb8f8;
    background: #f7faff;
}

.file-drop input[type="file"] {
    width: 100%;
    font-size: 12px;
    color: var(--muted);
}

.file-drop-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--primary-50);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex: none;
}

.file-drop-icon svg {
    width: 18px;
    height: 18px;
}

.image-preview {
    width: 92px;
    height: 92px;
    border-radius: 10px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #f8fafc;
    position: relative;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview .preview-empty {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted-2);
    font-size: 11px;
}

.image-preview-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery-item {
    width: 86px;
    position: relative;
}

.image-gallery-item img {
    width: 86px;
    height: 86px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.image-gallery-item label {
    position: absolute;
    right: 4px;
    bottom: 4px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    border-radius: 5px;
    font-size: 10px;
    padding: 2px 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.image-gallery-item input {
    width: 12px;
    height: 12px;
    accent-color: var(--danger);
}

.secret-field {
    position: relative;
}

.secret-field .input {
    padding-right: 42px;
}

.secret-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.secret-toggle:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
    flex-wrap: wrap;
}

.form-actions--split {
    justify-content: space-between;
}

.form-actions-note {
    font-size: 12px;
    color: var(--muted-2);
    margin-right: auto;
}

@media (max-width: 900px) {
    .form-grid,
    .form-grid--3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .form-grid,
    .form-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Tabs / chips
   ========================================================================== */

.tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    flex-wrap: wrap;
}

.tab-link {
    height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
    transition: all .15s ease;
    white-space: nowrap;
}

.tab-link:hover {
    color: var(--ink);
    background: #f6f8fc;
}

.tab-link.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 8px rgba(46, 107, 255, .24);
}

.chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all .15s ease;
}

.chip.is-active {
    border-color: #b7ccff;
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

/* ==========================================================================
   Empty / pagination
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 52px 20px;
}

.empty-state .empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary-50);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

.empty-state .empty-icon svg {
    width: 26px;
    height: 26px;
}

.empty-state h3 {
    font-size: 15px;
    margin-bottom: 7px;
}

.empty-state p {
    color: var(--muted);
    font-size: 12.5px;
    margin-bottom: 18px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 16px 20px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: #b9ccff;
    color: var(--primary);
}

.page-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.page-btn.is-disabled {
    opacity: .45;
    pointer-events: none;
}

/* ==========================================================================
   Dashboard extras
   ========================================================================== */

.welcome-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #101c33 0%, #14284d 58%, #1d2850 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.welcome-banner::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, .28), transparent 70%);
    right: -60px;
    top: -160px;
}

.welcome-banner h2 {
    font-size: 21px;
    margin-bottom: 6px;
}

.welcome-banner p {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
    max-width: 560px;
    line-height: 1.7;
}

.welcome-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 160px;
    padding: 12px 4px 0;
}

.bar-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar-fill {
    width: min(30px, 70%);
    min-height: 4px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #6d95ff, #2e6bff);
    transition: height .3s ease;
}

.bar-label {
    font-size: 10.5px;
    color: var(--muted-2);
    white-space: nowrap;
}

.bar-value {
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checklist-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 16px;
}

.progress {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: #edf1f7;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2e6bff, #7c5cff);
}

.checklist-progress small {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 2px;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}

.check-item:last-child {
    border-bottom: 0;
}

.check-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    color: var(--muted-2);
    flex: none;
}

.check-dot svg {
    width: 13px;
    height: 13px;
}

.check-item.is-done .check-dot {
    background: var(--success-50);
    border-color: #bfe9d6;
    color: var(--success);
}

.check-item.is-done span {
    color: var(--muted);
}

.check-item span {
    flex: 1;
    font-weight: 500;
}

.check-item a {
    color: var(--primary);
    font-size: 12px;
    white-space: nowrap;
}

.recent-order {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}

.recent-order:last-child {
    border-bottom: 0;
}

.recent-order .ro-main {
    flex: 1;
    min-width: 0;
}

.recent-order .ro-main b {
    display: block;
    font-size: 13px;
}

.recent-order .ro-main small {
    display: block;
    color: var(--muted-2);
    font-size: 11px;
    margin-top: 2px;
}

.recent-order .ro-amount {
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 12.5px;
    border: 1px solid var(--line);
    background: #fff;
}

.status-banner svg {
    width: 17px;
    height: 17px;
}

.status-banner--info {
    background: var(--primary-50);
    border-color: #d3e0ff;
    color: #1e4fd4;
}

.status-banner--warn {
    background: var(--warning-50);
    border-color: #fbe3b6;
    color: #92400e;
}

.status-banner--bad {
    background: var(--danger-50);
    border-color: #fad3d5;
    color: #a9252a;
}

/* ==========================================================================
   Orders / detail
   ==========================================================================

.order-items {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eff3f9;
}

.order-item:last-child {
    border-bottom: 0;
}

.order-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
}

.order-item .oi-main {
    flex: 1;
    min-width: 0;
}

.order-item .oi-main b {
    display: block;
    font-size: 13px;
}

.order-item .oi-main small {
    display: block;
    color: var(--muted-2);
    font-size: 11.5px;
    margin-top: 2px;
}

.order-item .oi-price {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

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

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}

.detail-row span {
    color: var(--muted);
    flex: none;
}

.detail-row b {
    text-align: right;
    font-weight: 500;
    word-break: break-all;
}

.total-box {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f8faff;
    border: 1px solid #e6edfa;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.total-box .total-line {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
}

.total-box .total-final {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 7px;
    border-top: 1px solid #e1e9f7;
    color: var(--ink);
    font-weight: 600;
}

.total-box .total-final b {
    font-size: 20px;
    letter-spacing: -.02em;
    color: var(--danger);
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    background: #f8fafd;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
}

.copy-row .mono {
    flex: 1;
    word-break: break-all;
    color: var(--ink-2);
}

.copy-row button {
    border: 0;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
}

.copy-row button:hover {
    color: var(--primary);
    border-color: #b7ccff;
}

.code-block {
    background: #0e1729;
    color: #c7d5f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 320px;
    overflow: auto;
}

.version-log {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.version-log summary {
    cursor: pointer;
    color: var(--muted);
    font-size: 11.5px;
}

.version-log .code-block {
    margin-top: 9px;
}

/* ==========================================================================
   Modals
   ==========================================================================

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .5);
    backdrop-filter: blur(3px);
}

.modal-card {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(2, 6, 23, .3);
    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 {
    font-size: 17px;
}

.modal-head p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.modal-close {
    border: 0;
    background: #f4f7fb;
    color: var(--muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.modal-body {
    padding: 20px 24px;
}

.modal-foot {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fbfcff;
    border-radius: 0 0 18px 18px;
}

.modal-card--sm {
    width: min(420px, 100%);
}

/* ==========================================================================
   Phone mockup
   ==========================================================================

.phone-mock {
    --tpl-primary: #2e6bff;
    --tpl-secondary: #7c5cff;
    width: 258px;
    flex: none;
    position: relative;
}

.phone-frame {
    width: 100%;
    height: 524px;
    border-radius: 34px;
    background: #0b1220;
    padding: 8px;
    box-shadow: 0 28px 70px rgba(5, 10, 22, .38), inset 0 0 0 1px rgba(255, 255, 255, .12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.phone-frame::before {
    content: "";
    position: absolute;
    width: 74px;
    height: 18px;
    background: #0b1220;
    border-radius: 0 0 12px 12px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px 2px;
    font-size: 9px;
    color: rgba(255, 255, 255, .86);
    background: var(--tpl-primary);
    flex: none;
}

.phone-signal {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
}

.phone-signal i {
    display: block;
    width: 2px;
    background: rgba(255, 255, 255, .8);
    border-radius: 1px;
}

.phone-signal i:nth-child(1) { height: 4px; }
.phone-signal i:nth-child(2) { height: 6px; }
.phone-signal i:nth-child(3) { height: 8px; }

.phone-screen {
    flex: 1;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mock-hero {
    background: linear-gradient(140deg, var(--tpl-primary), var(--tpl-secondary));
    color: #fff;
    padding: 14px 15px 16px;
    position: relative;
    overflow: hidden;
    flex: none;
}

.mock-hero::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    right: -40px;
    top: -56px;
}

.mock-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mock-chip {
    font-size: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    letter-spacing: .06em;
}

.mock-dots {
    display: inline-flex;
    gap: 3px;
}

.mock-dots i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
}

.mock-shop {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-top: 9px;
    position: relative;
    z-index: 2;
}

.mock-sub {
    font-size: 9px;
    opacity: .78;
    margin-top: 3px;
    position: relative;
    z-index: 2;
}

.mock-search {
    height: 25px;
    background: rgba(255, 255, 255, .95);
    border-radius: 999px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    color: #9aa6b8;
    font-size: 8.5px;
    position: relative;
    z-index: 2;
}

.mock-search svg {
    width: 11px;
    height: 11px;
}

.mock-body {
    flex: 1;
    padding: 9px 12px 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}

.mock-notice {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8.5px;
    color: #b45309;
    background: #fff7e8;
    border-radius: 5px;
    padding: 4px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f59e0b;
    flex: none;
}

.mock-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.mock-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    background: #f7f9fd;
    border-radius: 7px;
}

.mock-cat span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tpl-primary) 12%, #fff);
    color: var(--tpl-primary);
    display: grid;
    place-items: center;
}

.mock-cat svg {
    width: 11px;
    height: 11px;
}

.mock-cat b {
    font-size: 7.5px;
    font-weight: 500;
    color: #475569;
}

.mock-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: #1e293b;
}

.mock-section-title small {
    font-size: 7.5px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.mock-section-title svg {
    width: 8px;
    height: 8px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
}

.mock-product {
    border: 1px solid #eff3f9;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mock-thumb {
    height: 56px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tpl-primary) 20%, #fff), color-mix(in srgb, var(--tpl-secondary) 28%, #fff));
    position: relative;
    overflow: hidden;
}

.mock-thumb::before {
    content: "";
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mock-thumb::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--tpl-primary);
    opacity: .35;
    left: 58%;
    top: 58%;
    transform: translate(-50%, -50%);
}

.mock-product b {
    font-size: 8px;
    color: #334155;
    padding: 4px 6px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-product small {
    font-size: 7.5px;
    color: var(--tpl-primary);
    padding: 1px 6px 4px;
    font-weight: 700;
}

.mock-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #f1f5f9;
    padding: 5px 8px 8px;
    flex: none;
    background: #fff;
}

.mock-tabbar span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #a3adbd;
}

.mock-tabbar span svg {
    width: 13px;
    height: 13px;
}

.mock-tabbar span b {
    font-size: 7px;
    font-weight: 500;
}

.mock-tabbar .is-active {
    color: var(--tpl-primary);
}

.phone-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    font-size: 12px;
    color: var(--muted);
    padding: 0 2px;
}

.phone-label span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-weight: 600;
}

.phone-label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.phone-mock--compact {
    width: 205px;
}

.phone-mock--compact .phone-frame {
    height: 414px;
    border-radius: 27px;
    padding: 6px;
}

.phone-mock--compact .phone-screen {
    border-radius: 21px;
}

.phone-mock--compact .mock-hero {
    padding: 10px 12px 12px;
}

.phone-mock--compact .mock-shop {
    font-size: 13px;
    margin-top: 6px;
}

.phone-mock--compact .mock-sub {
    font-size: 7px;
}

.phone-mock--compact .mock-search {
    height: 20px;
    margin-top: 8px;
}

.phone-mock--compact .mock-body {
    padding: 7px 9px 2px;
    gap: 6px;
}

.phone-mock--compact .mock-thumb {
    height: 39px;
}

.phone-mock--compact .mock-product b {
    font-size: 6.5px;
}

.phone-mock--compact .mock-product small {
    font-size: 6px;
}

.phone-mock--compact .mock-tabbar {
    padding: 4px 4px 6px;
}

.phone-mock--compact .phone-label {
    display: none;
}

/* ==========================================================================
   Templates page cards
   ==========================================================================

.template-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 16px;
}

.template-section-head h3 {
    font-size: 16px;
}

.template-section-head span {
    font-size: 12px;
    color: var(--muted-2);
}

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

.template-option {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}

.template-option.is-current {
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(46, 107, 255, .14);
}

.template-option-head {
    position: relative;
    background:
        radial-gradient(300px 180px at 60% 0%, color-mix(in srgb, var(--tpl-primary) 20%, #fff), transparent),
        #f8fafe;
    display: flex;
    justify-content: center;
    padding: 22px 0 0;
    min-height: 320px;
    overflow: hidden;
}

.template-option-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.template-option-body h4 {
    font-size: 15.5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.template-option-body p {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.template-option-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.current-flag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(46, 107, 255, .95);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 3;
}

@media (max-width: 1080px) {
    .template-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .template-row,
    .template-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Landing responsive
   ========================================================================== */

@media (max-width: 1080px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-visual {
        min-height: 520px;
        justify-content: center;
    }
    .hero-copy {
        max-width: 680px;
    }
    .industry-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .steps-grid .step-item::before {
        display: none;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: inline-grid;
    }
    .nav-actions .btn-ghost {
        display: none;
    }
    .site-header.is-open .nav-links {
        display: flex;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 6px 24px 16px;
        background: rgba(7, 12, 24, .98);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        margin: 0;
    }
    .site-header.is-open .nav-links a {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }
    .section {
        padding: 64px 0;
    }
    .cta-band {
        padding: 34px 28px;
        flex-direction: column;
        align-items: flex-start;
    }
    .stat-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 620px) {
    .hero {
        padding: 126px 0 64px;
    }
    .hero h1 {
        font-size: 33px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-visual {
        min-height: 470px;
    }
    .phone-mock {
        width: 232px;
    }
    .phone-frame {
        height: 470px;
    }
    .floating-card--new {
        display: none;
    }
    .floating-card--pay {
        left: 0;
        top: 16%;
    }
    .floating-card--audit {
        right: 0;
        bottom: 10%;
    }
    .industry-grid,
    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .section-head {
        margin-bottom: 34px;
    }
    .template-cover {
        min-height: 300px;
    }
    .template-cover .phone-mock {
        transform: scale(.92);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   Page decoration (merchant)
   ========================================================================== */

.deco-template-card {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.deco-template-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.deco-template-main .industry-icon {
    width: 48px;
    height: 48px;
}

.deco-template-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 12px;
    flex-wrap: wrap;
}

.deco-template-meta b {
    color: var(--ink);
    font-size: 14px;
    margin-right: 3px;
}

.deco-hero-options {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.deco-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 12px;
    margin-top: 8px;
}

.deco-modules {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deco-module {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcff;
    padding: 14px 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.deco-module:hover {
    border-color: #d2dfff;
    box-shadow: 0 4px 14px rgba(46, 107, 255, .05);
}

.deco-module-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.deco-index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--primary);
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    flex: none;
}

.deco-module-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex: none;
}

.deco-module-icon svg {
    width: 17px;
    height: 17px;
}

.deco-module-title {
    flex: 1;
    min-width: 0;
}

.deco-module-title b {
    display: block;
    font-size: 13.5px;
}

.deco-module-title small {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    margin-top: 2px;
    line-height: 1.5;
}

.deco-move-group {
    display: flex;
    gap: 4px;
    flex: none;
}

.deco-move-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    transition: all .15s ease;
}

.deco-move-btn:hover {
    color: var(--primary);
    border-color: #b9ccff;
    background: var(--primary-50);
}

.deco-module-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.deco-module-fields .field--full,
.deco-module-fields .deco-manage-link,
.deco-module-fields > .hint {
    grid-column: 1 / -1;
}

.deco-module-fields .input,
.deco-module-fields .select {
    height: 36px;
    font-size: 12.5px;
}

.deco-module-fields .textarea {
    min-height: 78px;
    font-size: 12.5px;
}

.deco-manage-link {
    font-size: 12px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.deco-manage-link svg {
    width: 13px;
    height: 13px;
}

.deco-preview-wrap {
    position: relative;
}

.deco-preview-panel {
    position: sticky;
    top: 92px;
}

.deco-preview-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafd;
    padding-top: 16px;
}

.deco-preview {
    width: 246px;
}

.deco-preview .phone-frame {
    height: 610px;
}

.deco-preview .mock-hero {
    padding: 12px 13px 13px;
}

.deco-hero-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    position: relative;
    z-index: 2;
}

.deco-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .34);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
    font-size: 10px;
    font-weight: 700;
}

.deco-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deco-hero-text {
    flex: 1;
    min-width: 0;
}

.deco-hero-text .mock-shop {
    margin-top: 0;
    font-size: 14px;
}

.deco-hero-text .mock-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 135px;
}

.deco-call {
    font-size: 7px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    flex: none;
}

.deco-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 6px;
    position: relative;
    z-index: 2;
}

.deco-tags span {
    font-size: 6.5px;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 1px 6px;
}

.deco-preview-modules {
    padding: 7px 9px 4px;
    gap: 6px;
}

.deco-banner {
    height: 66px;
    border-radius: 7px;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tpl-primary) 30%, #fff), color-mix(in srgb, var(--tpl-secondary) 35%, #fff));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 8px;
}

.deco-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deco-module-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 9px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

.deco-module-title-row small {
    font-size: 7px;
    color: #94a3b8;
    font-weight: 400;
}

.deco-category-preview .mock-cats {
    margin-top: 2px;
}

.deco-booking-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #eff3f9;
    border-radius: 7px;
    padding: 7px;
}

.deco-book-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--tpl-primary) 12%, #fff);
    color: var(--tpl-primary);
    display: grid;
    place-items: center;
    font-size: 11px;
    flex: none;
}

.deco-booking-preview > div {
    flex: 1;
    min-width: 0;
}

.deco-booking-preview b {
    display: block;
    font-size: 8px;
    color: #1e293b;
}

.deco-booking-preview small {
    display: block;
    font-size: 6.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deco-book-arrow {
    font-size: 6.5px;
    color: var(--tpl-primary);
    flex: none;
}

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

.deco-products.is-list {
    grid-template-columns: 1fr;
}

.deco-product {
    border: 1px solid #eff3f9;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.deco-products.is-list .deco-product {
    flex-direction: row;
}

.deco-product-thumb {
    height: 44px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tpl-primary) 22%, #fff), color-mix(in srgb, var(--tpl-secondary) 30%, #fff));
    overflow: hidden;
    flex: none;
}

.deco-products.is-list .deco-product-thumb {
    width: 44px;
    height: 44px;
}

.deco-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deco-product-copy {
    padding: 3px 5px;
    min-width: 0;
}

.deco-product-copy b {
    display: block;
    font-size: 7px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deco-product-copy small {
    display: block;
    font-size: 6.5px;
    color: var(--tpl-primary);
    font-weight: 700;
}

.deco-custom-preview {
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #eff3f9;
    padding: 7px;
}

.deco-custom-preview img {
    width: 100%;
    height: 52px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}

.deco-custom-preview b {
    font-size: 8px;
    display: block;
    color: #1e293b;
}

.deco-custom-preview p {
    font-size: 6.5px;
    color: #64748b;
    line-height: 1.6;
    margin-top: 3px;
    white-space: pre-wrap;
}

.deco-shop-preview {
    background: #f8fafc;
    border: 1px solid #eff3f9;
    border-radius: 7px;
    padding: 7px;
}

.deco-shop-line {
    font-size: 6.5px;
    color: #64748b;
    line-height: 1.7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deco-preview-note {
    font-size: 11px;
    color: var(--muted-2);
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .deco-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .deco-preview-panel {
        position: static;
    }
    .deco-preview-wrap {
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .deco-template-card {
        padding: 16px;
    }
    .deco-template-meta {
        gap: 12px;
    }
    .deco-module {
        padding: 12px;
    }
    .deco-module-head {
        flex-wrap: wrap;
    }
    .deco-module-title {
        flex-basis: calc(100% - 90px);
    }
    .deco-module-fields {
        grid-template-columns: 1fr;
    }
    .deco-preview-wrap {
        max-width: 100%;
    }
}
