/* ============================================================
   Vaultly — Digital products marketplace
   Design system / storefront / dashboards / admin
   ============================================================ */

:root {
    --bg: #f7f7fc;
    --surface: #ffffff;
    --surface-soft: #f2f1fa;
    --ink: #101223;
    --ink-2: #4b4f6b;
    --ink-3: #858aa4;
    --line: #e7e6f2;
    --line-strong: #d8d6e8;
    --brand: #6d5efc;
    --brand-dark: #5443ea;
    --brand-light: #efedff;
    --violet: #a855f7;
    --teal: #14b8a6;
    --amber: #f59e0b;
    --danger: #e5484d;
    --danger-bg: #fdecec;
    --success: #0f9d6c;
    --success-bg: #e7f8f0;
    --info: #3b82f6;
    --info-bg: #e9f2ff;
    --warning: #b45309;
    --warning-bg: #fff6e6;
    --gradient: linear-gradient(135deg, #6d5efc 0%, #a855f7 100%);
    --shadow-sm: 0 1px 2px rgba(16, 18, 35, .04), 0 12px 30px -22px rgba(16, 18, 35, .25);
    --shadow-md: 0 20px 50px -28px rgba(16, 18, 35, .32);
    --shadow-lg: 0 36px 80px -40px rgba(16, 18, 35, .45);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Sora', 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

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

body.page-public {
    background:
        radial-gradient(1000px 420px at 100% -120px, rgba(109, 94, 252, .07), transparent 65%),
        var(--bg);
}

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

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: var(--ink);
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font-family: inherit;
}

[hidden] {
    display: none !important;
}

::selection {
    background: rgba(109, 94, 252, .22);
}

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

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    transition: top .2s;
}

.skip-link:focus {
    top: 14px;
    color: #fff;
}

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

.container-narrow {
    width: min(920px, calc(100% - 48px));
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

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

code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: .9em;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--surface-soft);
    color: var(--ink-2);
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

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

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

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

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 12px 26px -14px rgba(109, 94, 252, .65);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 18px 34px -16px rgba(109, 94, 252, .75);
}

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

.btn-dark:hover {
    background: #23263f;
    color: #fff;
}

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

.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--ink-3);
    color: var(--ink);
}

.btn-soft {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.btn-soft:hover {
    background: #e5e1ff;
    color: var(--brand-dark);
}

.btn-ghost-light {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .04);
    color: #fff;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
}

.btn-icon .icon {
    width: 18px;
    height: 18px;
}

.btn-sm {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12.5px;
}

.btn-sm .icon {
    width: 14px;
    height: 14px;
}

.btn-lg {
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn.is-added {
    background: var(--success);
    box-shadow: 0 12px 26px -14px rgba(15, 157, 108, .6);
    color: #fff;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.btn.is-loading {
    opacity: .7;
}

.btn-soft.is-added {
    background: var(--success-bg);
    color: var(--success);
}

/* ------------------------------------------------------------------
   Badges, pills, eyebrows
   ------------------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
}

.badge .icon {
    width: 12px;
    height: 12px;
}

.badge-lg {
    padding: 8px 14px;
    font-size: 12.5px;
}

.badge-xs {
    padding: 4px 7px;
    font-size: 10px;
}

.badge-soft {
    background: var(--surface-soft);
    color: var(--ink-2);
    border: 1px solid var(--line);
}

.badge-featured {
    background: rgba(11, 13, 28, .78);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
}

.badge-owned {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #c8f1df;
}

.badge-inline {
    margin-left: 4px;
    vertical-align: middle;
}

.badge-muted {
    background: var(--surface-soft);
    color: var(--ink-3);
}

.badge-physical {
    background: #eef1ff;
    color: #3c4bc4;
}

.badge-digital {
    background: var(--success-bg);
    color: var(--success);
}

.badge.is-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge.is-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge.is-info {
    background: var(--info-bg);
    color: var(--info);
}

.badge.is-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge.is-muted {
    background: var(--surface-soft);
    color: var(--ink-3);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
}

.pill .icon {
    width: 14px;
    height: 14px;
}

.pill-accent {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.eyebrow-light {
    color: #b9b1ff;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7cf0c6;
    box-shadow: 0 0 0 4px rgba(124, 240, 198, .15);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-dark);
    white-space: nowrap;
}

.link-arrow .icon {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
}

.link-arrow:hover .icon {
    transform: translateX(2px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.back-link .icon {
    width: 16px;
    height: 16px;
}

.back-link:hover {
    color: var(--ink);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.announcement-bar {
    background: linear-gradient(90deg, #191b2f, #2b2350 55%, #3a2a63);
    color: #ece8ff;
    font-size: 12.5px;
    line-height: 1.5;
}

.announcement-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    min-height: 38px;
    padding: 8px 0;
    text-align: center;
}

.announcement-inner a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.announcement-inner a:hover {
    color: #d9d2ff;
}

.announcement-inner .icon {
    width: 14px;
    height: 14px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid rgba(231, 230, 242, .9);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    flex-shrink: 0;
}

.brand-mark svg,
.brand-mark img {
    width: 32px;
    height: 32px;
    display: block;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.brand-name span {
    color: var(--brand);
}

.brand-light {
    color: #fff;
}

.brand-light:hover {
    color: #fff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s, background .15s;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.nav-link.is-active {
    color: var(--brand-dark);
    background: var(--brand-light);
}

.nav-mobile-extra {
    display: none;
}

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

@media (min-width: 1100px) {
    .header-inner {
        position: relative;
    }

    .main-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: absolute;
    left: 12px;
    display: flex;
    color: var(--ink-3);
    pointer-events: none;
}

.header-search-icon .icon {
    width: 16px;
    height: 16px;
}

.header-search input {
    width: 208px;
    padding: 9px 12px 9px 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
    transition: width .2s, background .2s, border-color .2s, box-shadow .2s;
}

.header-search input::placeholder {
    color: var(--ink-3);
}

.header-search input:focus {
    width: 238px;
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .12);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}

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

.icon-btn .icon {
    width: 18px;
    height: 18px;
}

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

.icon-btn-ghost.is-danger:hover {
    color: var(--danger);
    background: var(--danger-bg);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 9px;
    background: var(--gradient);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.user-menu {
    position: relative;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border-radius: 12px;
    cursor: pointer;
    list-style: none;
}

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

.user-summary:hover {
    background: var(--surface-soft);
}

.user-summary .chevron {
    width: 15px;
    height: 15px;
    color: var(--ink-3);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 17px;
}

.avatar-xl {
    width: 72px;
    height: 72px;
    font-size: 23px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 80;
    width: 246px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.user-dropdown-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

.user-dropdown-head strong {
    font-size: 14px;
}

.user-dropdown-head span {
    overflow: hidden;
    color: var(--ink-3);
    font-size: 12.5px;
    text-overflow: ellipsis;
}

.user-dropdown a,
.user-dropdown form button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 9px;
    background: none;
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown form button:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.user-dropdown .icon {
    width: 16px;
    height: 16px;
    color: var(--ink-3);
}

.user-dropdown form {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
}

.nav-toggle {
    display: none;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 86px;
    background: #0b0d1c;
    color: #fff;
}

.hero::before {
    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(circle at 60% 40%, black, transparent 75%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow-a {
    top: -180px;
    right: -100px;
    width: 560px;
    height: 560px;
    background: #6d5efc;
    opacity: .38;
}

.hero-glow-b {
    bottom: -260px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: #a855f7;
    opacity: .22;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    margin: 16px 0 20px;
    color: #fff;
    font-size: clamp(2.4rem, 4.3vw, 3.85rem);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.text-gradient {
    background: linear-gradient(115deg, #a78bfa 0%, #e0a6ff 48%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 510px;
    color: #a6a9c8;
    font-size: 17px;
    line-height: 1.65;
}

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

.hero-stats {
    display: flex;
    gap: 44px;
    margin: 42px 0 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-stats dt {
    color: #fff;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.hero-stats dd {
    margin: 2px 0 0;
    color: #8f93b5;
    font-size: 12.5px;
}

.hero-art {
    position: relative;
    height: 470px;
}

.hero-cover {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: #171a33;
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .65);
}

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

.hero-cover-a {
    top: 44px;
    left: 0;
    z-index: 2;
    width: 70%;
    aspect-ratio: 4 / 3;
    transform: rotate(-7deg);
}

.hero-cover-b {
    top: 0;
    right: -3%;
    z-index: 1;
    width: 54%;
    aspect-ratio: 4 / 3;
    transform: rotate(6deg);
}

.hero-cover-c {
    right: 6%;
    bottom: 0;
    z-index: 3;
    width: 47%;
    aspect-ratio: 4 / 3;
    transform: rotate(-3deg);
}

.hero-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    background: rgba(20, 22, 44, .82);
    box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .7);
    backdrop-filter: blur(12px);
}

.hero-chip-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(109, 94, 252, .35), rgba(168, 85, 247, .35));
    color: #c9c2ff;
}

.hero-chip-icon .icon {
    width: 17px;
    height: 17px;
}

.hero-chip strong {
    display: block;
    color: #fff;
    font-size: 12.5px;
}

.hero-chip small {
    display: block;
    color: #9297bb;
    font-size: 11px;
}

.hero-chip-a {
    bottom: 64px;
    left: -26px;
}

.hero-chip-b {
    top: 66px;
    right: 0;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.section {
    padding: 76px 0;
}

.section-tight {
    padding: 44px 0 72px;
}

.section-tint {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f2f1fb 0%, #f9f9fe 100%);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.section-head-center {
    display: block;
    max-width: 640px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-head-center .eyebrow {
    justify-content: center;
}

.section-sub {
    margin-top: 10px;
    color: var(--ink-2);
    font-size: 15px;
}

/* ------------------------------------------------------------------
   Category grid
   ------------------------------------------------------------------ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}

.category-card:hover {
    color: var(--ink);
    border-color: #c9c2ff;
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.category-icon .icon {
    width: 21px;
    height: 21px;
}

.category-icon-sm {
    width: 34px;
    height: 34px;
    margin: 0;
}

.category-icon-sm .icon {
    width: 16px;
    height: 16px;
}

.category-name {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.category-count {
    color: var(--ink-3);
    font-size: 12.5px;
}

.category-arrow {
    position: absolute;
    top: 20px;
    right: 18px;
    color: var(--ink-3);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .2s, transform .2s;
}

.category-arrow .icon {
    width: 17px;
    height: 17px;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--brand-dark);
}

/* ------------------------------------------------------------------
   Product cards
   ------------------------------------------------------------------ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

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

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.product-card:hover {
    border-color: #d5d0f6;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #eceafb, #f8f7ff);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.035);
}

.product-media .badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-media .badge-owned {
    position: absolute;
    top: 12px;
    right: 12px;
}

.product-media .badge-type {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

.product-media .badge-sold-out {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: rgba(16, 18, 35, .55);
    color: #fff;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(2px);
}

.product-card.is-sold-out .product-media img {
    filter: grayscale(.4);
    opacity: .8;
}

.product-card.is-sold-out:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.product-stock .icon {
    width: 12px;
    height: 12px;
}

.product-stock.is-low {
    color: var(--warning);
}

.product-stock.is-out {
    color: var(--danger);
}

.product-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #a9a2dd;
    background: linear-gradient(135deg, #efedff, #faf9ff);
}

.product-placeholder .icon {
    width: 34px;
    height: 34px;
}

.product-placeholder-lg .icon {
    width: 56px;
    height: 56px;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.product-category {
    margin-bottom: 7px;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-title {
    margin-bottom: 7px;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.product-title a {
    color: var(--ink);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--brand-dark);
}

.product-desc {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Star rating ------------------------------------------------------------
   Two identical rows of stars stacked on top of each other; the coloured
   one is clipped to the average, so 4.3 shows a partly filled star. */
.stars {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.stars-empty,
.stars-fill {
    display: inline-flex;
    flex-wrap: nowrap;
}

.stars-empty {
    color: var(--line-strong);
}

.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--amber);
}

.stars .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: currentColor;
    stroke-width: 1.2;
}

.stars-sm .icon {
    width: 13px;
    height: 13px;
}

.stars-lg .icon {
    width: 19px;
    height: 19px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--ink-3);
    font-size: 12px;
    text-decoration: none;
}

.product-rating:hover {
    color: var(--brand-dark);
}

.product-rating-count {
    font-weight: 600;
}

/* Saved-item heart ------------------------------------------------------ */
.wishlist-heart {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--ink-3);
}

.wishlist-heart:hover {
    border-color: #f0c7cb;
    background: var(--danger-bg);
    color: var(--danger);
}

.wishlist-heart.is-saved {
    border-color: transparent;
    background: var(--gradient);
    color: #fff;
}

.wishlist-heart .icon {
    fill: currentColor;
    stroke-width: 1.4;
}

/* Product page save row -------------------------------------------------- */
.product-save {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 600;
}

/* Ratings & reviews ------------------------------------------------------ */
.reviews {
    margin-top: 46px;
}

.reviews-title {
    margin-bottom: 16px;
    font-size: 22px;
    letter-spacing: -.02em;
}

.reviews-panel {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 26px;
    padding: 22px;
    margin-bottom: 18px;
}

.reviews-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.reviews-score strong {
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1;
    letter-spacing: -.03em;
}

.reviews-score span:last-child {
    color: var(--ink-3);
    font-size: 12.5px;
}

.reviews-breakdown ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reviews-breakdown li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
}

.reviews-breakdown-heading {
    margin: 0 0 9px;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reviews-breakdown-star {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 700;
}

.reviews-breakdown-star .icon {
    width: 12px;
    height: 12px;
    fill: var(--amber);
    stroke-width: 1;
}

.reviews-breakdown-count {
    color: var(--ink-3);
    font-size: 12.5px;
    text-align: right;
}

.reviews-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--surface-soft);
    overflow: hidden;
}

.reviews-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--amber);
}

.review-mine {
    padding: 18px 20px;
    margin-bottom: 18px;
    border-left: 3px solid var(--brand);
}

.review-mine-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.review-mine-head h3 {
    margin: 0;
    font-size: 15px;
}

.review-mine-body p {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: 13.5px;
}

.review-mine-body strong {
    display: block;
    margin-top: 6px;
    font-size: 14px;
}

.review-status-pending {
    color: var(--warning);
    background: var(--warning-bg);
}

.review-status-approved {
    color: var(--success);
    background: var(--success-bg);
}

.review-status-rejected {
    color: var(--danger);
    background: var(--danger-bg);
}

.review-pending-notice {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 0;
    color: var(--ink-3);
    font-size: 12.5px;
}

.review-form {
    padding: 22px;
    margin-bottom: 18px;
}

.review-form h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.review-form .field {
    margin-bottom: 14px;
}

/* Five radios laid out right-to-left so the chosen star and every star below
 | it light up together, without scripting. */
.rating-input {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.rating-input legend {
    margin-bottom: 7px;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 700;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.rating-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.rating-input label {
    display: inline-flex;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--ink-3);
    cursor: pointer;
}

.rating-input label .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke-width: 1.2;
}

.rating-input input:checked + label,
.rating-input input:checked ~ input + label {
    border-color: #f2d9a4;
    background: #fff8e8;
    color: var(--amber);
}

.rating-input input:focus-visible + label {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.reviews-closed,
.reviews-signin {
    margin-bottom: 18px;
}

.reviews-closed {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 18px;
    color: var(--ink-2);
    font-size: 13.5px;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-item {
    padding: 18px 20px;
}

.review-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-item-who {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.review-item-who strong {
    font-size: 14px;
}

.review-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: 12px;
}

.review-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 11.5px;
    font-weight: 700;
}

.review-verified .icon {
    width: 13px;
    height: 13px;
}

.review-item-title {
    margin: 0 0 5px;
    font-size: 15px;
}

.review-item-body {
    color: var(--ink-2);
    font-size: 13.5px;
}

.reviews-empty {
    padding: 28px;
    text-align: center;
}

.reviews-empty h3 {
    margin: 12px 0 6px;
    font-size: 17px;
}

.reviews-empty p {
    margin: 0;
    color: var(--ink-2);
    font-size: 13.5px;
}

/* Account — review prompt ------------------------------------------------ */
.review-prompt {
    padding: 20px 22px;
    margin-bottom: 18px;
}

.review-prompt h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.review-prompt-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 14px;
}

.review-prompt-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.review-prompt-item h3 {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.35;
}

.review-prompt-cover {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    aspect-ratio: 4 / 3;
}

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

.review-prompt-cover .product-placeholder {
    border-radius: 12px;
}

.review-prompt-meta {
    color: var(--ink-3);
    font-size: 12px;
}

.review-prompt-item .btn {
    align-self: flex-start;
    margin-top: auto;
}

.review-manage-none {
    color: var(--ink-3);
    font-size: 13.5px;
}

.review-status {
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    font-weight: 700;
}

/* Order lines carry a small review affordance under the item name. */
.download-review-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.download-review {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.download-review:hover {
    text-decoration: underline;
}

.download-review .icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
    stroke-width: 1.2;
}

/* ------------------------------------------------------------------
   Admin — review moderation
   ------------------------------------------------------------------ */

.review-mode-note p {
    margin: 0;
}

.review-mode-note-state {
    margin-top: 6px !important;
    color: var(--ink-3);
    font-size: 12.5px;
}

.review-mode-note .icon {
    color: var(--brand);
}

.stars-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-2);
}

.review-snippet-cell {
    min-width: 240px;
}

.review-snippet-cell strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.review-snippet-cell .message-snippet {
    display: block;
    max-width: 320px;
}

.review-open-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.review-open-updated {
    margin: -8px 0 14px;
    font-size: 12.5px;
}

.price {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.price-lg {
    font-size: 34px;
    line-height: 1;
}

/* ------------------------------------------------------------------
   Features / CTA
   ------------------------------------------------------------------ */

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

.feature-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform .2s, box-shadow .2s;
}

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

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.feature-icon .icon {
    width: 21px;
    height: 21px;
}

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

.feature-card p {
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.6;
}

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 58px;
    border-radius: 28px;
    background: linear-gradient(120deg, #141130 0%, #221650 55%, #3a1a63 100%);
    color: #fff;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, .45), transparent 65%);
}

.cta-band-glow {
    position: absolute;
    bottom: -160px;
    left: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 94, 252, .4), transparent 65%);
}

.cta-band-content {
    position: relative;
    max-width: 620px;
}

.cta-band h2 {
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
}

.cta-band p {
    margin-bottom: 26px;
    color: #b7b6d6;
    font-size: 15.5px;
}

/* ------------------------------------------------------------------
   Page head / breadcrumb
   ------------------------------------------------------------------ */

.page-head {
    padding: 38px 0 30px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(800px 260px at 15% -40%, rgba(109, 94, 252, .1), transparent 70%),
        linear-gradient(180deg, #f4f3fd, #fafaff);
}

.page-head-sm {
    padding: 30px 0 24px;
}

.page-head h1 {
    margin-top: 8px;
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
}

.page-head p {
    max-width: 640px;
    margin-top: 8px;
    color: var(--ink-2);
    font-size: 14.5px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--ink-3);
    font-size: 12.5px;
}

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

.breadcrumb a:hover {
    color: var(--brand-dark);
}

.breadcrumb span:last-child {
    color: var(--ink-2);
}

/* ------------------------------------------------------------------
   Filters / pagination / empty states
   ------------------------------------------------------------------ */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.filter-search {
    position: relative;
    flex: 1 1 240px;
    display: flex;
    align-items: center;
}

.filter-search-icon {
    position: absolute;
    left: 12px;
    display: flex;
    color: var(--ink-3);
    pointer-events: none;
}

.filter-search-icon .icon {
    width: 16px;
    height: 16px;
}

.filter-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--surface-soft);
    color: var(--ink);
    font-family: inherit;
    font-size: 13.5px;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .1);
}

.filter-search-sm {
    flex: 0 1 260px;
}

.filter-select select {
    padding: 10px 34px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background-color: var(--surface);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.filter-reset {
    padding: 8px;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 600;
}

.filter-reset:hover {
    color: var(--danger);
}

/* Price range filter ---------------------------------------------------- */
.filter-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-price-label {
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-price-fields {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-price-fields input {
    width: 74px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    text-align: center;
}

.filter-price-fields input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .1);
}

.filter-price-sep {
    color: var(--ink-3);
    font-size: 13px;
}

/* Active filter chips -------------------------------------------------- */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.filter-chips-label {
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.filter-chip:hover {
    border-color: var(--danger);
    background: var(--danger-bg);
    color: var(--danger);
}

.filter-chip .chip-x {
    font-size: 14px;
    line-height: 1;
}

.filter-chips-clear {
    padding: 6px 4px;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.filter-chips-clear:hover {
    color: var(--danger);
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 18px;
    color: var(--ink-2);
    font-size: 13.5px;
}

.results-bar strong {
    color: var(--ink);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 42px;
}

.pager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.pager-link:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.pager-link.is-active {
    border-color: transparent;
    background: var(--gradient);
    color: #fff;
}

.pager-link .icon {
    width: 15px;
    height: 15px;
}

.pager-gap {
    padding: 0 4px;
    color: var(--ink-3);
}

.empty-state {
    padding: 64px 32px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.empty-state.card {
    border-style: dashed;
}

.empty-icon {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.empty-icon .icon {
    width: 29px;
    height: 29px;
}

.empty-state h1,
.empty-state h2 {
    margin-bottom: 8px;
    font-size: 23px;
}

.empty-state p {
    max-width: 460px;
    margin: 0 auto 24px;
    color: var(--ink-2);
    font-size: 14px;
}

/* ------------------------------------------------------------------
   Breadcrumb + product detail
   ------------------------------------------------------------------ */

.product-detail {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 48px;
    align-items: start;
    margin-top: 26px;
}

.product-gallery {
    position: sticky;
    top: 96px;
}

.product-cover {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.product-cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-cover .product-placeholder {
    aspect-ratio: 4 / 3;
}

.badge-float {
    position: absolute;
    top: 16px;
    left: 16px;
}

.cover-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 12px;
}

.cover-note .icon {
    width: 14px;
    height: 14px;
}

.product-info h1 {
    margin: 14px 0 14px;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    letter-spacing: -.035em;
}

.product-lead {
    margin-bottom: 22px;
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.65;
}

.product-buybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.price-note {
    display: block;
    margin-top: 3px;
    color: var(--ink-3);
    font-size: 12px;
}

.product-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.product-actions form {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.product-actions .btn {
    width: 100%;
}

.product-actions .qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
}

.qty-label {
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.qty-input {
    width: 52px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.qty-input:focus {
    outline: none;
}

.qty-control:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .12);
}

.stock-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 12.5px;
}

.stock-note .icon {
    width: 14px;
    height: 14px;
}

.stock-note.is-low {
    color: var(--warning);
}

.stock-note.is-out {
    color: var(--danger);
}

.owned-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 6px;
    padding: 14px 16px;
    border: 1px solid #c8f1df;
    border-radius: 13px;
    background: var(--success-bg);
}

.owned-banner-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d2f5e7;
    color: var(--success);
}

.owned-banner strong {
    display: block;
    color: #086f4e;
    font-size: 13.5px;
}

.owned-banner span {
    display: block;
    color: #10805c;
    font-size: 12px;
}

.spec-list {
    margin-top: 26px;
    border-top: 1px solid var(--line);
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}

.spec-icon {
    display: flex;
    color: var(--ink-3);
}

.spec-icon .icon {
    width: 16px;
    height: 16px;
}

.spec-label {
    color: var(--ink-3);
}

.spec-value {
    margin-left: auto;
    color: var(--ink);
    font-weight: 600;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink-2);
    font-size: 11.5px;
    font-weight: 500;
}

.trust-row .icon {
    width: 13px;
    height: 13px;
    color: var(--success);
}

.product-body-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-top: 30px;
}

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

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.card-head-spaced {
    margin-top: 28px;
}

.card-head h2 {
    font-size: 18px;
}

.card-sub {
    margin-top: 3px;
    color: var(--ink-3);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: normal;
    font-family: var(--font-body);
}

.prose {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.8;
}

.prose h2 {
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 21px;
}

.product-side h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.check-list {
    display: grid;
    gap: 11px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink-2);
    font-size: 13.5px;
}

.check-list .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--success);
}

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

.side-text {
    margin-bottom: 16px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.6;
}

.section-related {
    margin-top: 60px;
    padding-top: 8px;
}

/* ------------------------------------------------------------------
   Cart
   ------------------------------------------------------------------ */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
    align-items: start;
}

.cart-items {
    padding: 6px 26px;
}

.cart-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto auto auto;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item.is-sold-out {
    opacity: .72;
}

.cart-item:last-of-type {
    border-bottom: 0;
}

.cart-thumb {
    overflow: hidden;
    width: 86px;
    height: 66px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-soft);
}

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

.cart-thumb .product-placeholder .icon {
    width: 22px;
    height: 22px;
}

.cart-category {
    display: block;
    margin-bottom: 3px;
    color: var(--ink-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cart-item-info h3 {
    margin-bottom: 4px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: normal;
}

.cart-item-info h3 a {
    color: var(--ink);
}

.cart-file {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.cart-file .icon {
    width: 13px;
    height: 13px;
}

.cart-item-price {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.cart-item-price small {
    display: block;
    margin-top: 2px;
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 500;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
}

.cart-qty button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.cart-qty button:hover:not(:disabled) {
    background: var(--surface-soft);
    color: var(--ink);
}

.cart-qty button:disabled {
    color: #c2c5d6;
    cursor: not-allowed;
}

.cart-qty-value {
    min-width: 26px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.cart-remove {
    display: flex;
}

.cart-items-foot {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.summary-card {
    position: sticky;
    top: 96px;
    padding: 26px;
}

.summary-card h2 {
    margin-bottom: 20px;
    font-size: 18px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--ink-2);
    font-size: 13.5px;
}

.summary-row strong {
    color: var(--ink);
}

.summary-muted {
    color: var(--ink-3);
    font-size: 12.5px;
}

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

.summary-total {
    margin-bottom: 20px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.summary-total span:last-child {
    font-size: 21px;
}

.summary-note {
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.5;
}

.trust-strip {
    display: grid;
    gap: 9px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-2);
    font-size: 12.5px;
    font-weight: 500;
}

.trust-badge .icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: var(--success);
}

.trust-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.55;
}

.trust-note .icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    color: var(--brand);
}

.summary-back {
    margin-top: 18px;
    color: var(--ink-2);
}

/* ------------------------------------------------------------------
   Checkout / alerts
   ------------------------------------------------------------------ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.6;
}

.alert > .icon {
    width: 17px;
    height: 17px;
    margin-top: 2px;
}

.alert ul {
    display: grid;
    gap: 3px;
}

.alert p {
    margin: 0;
}

.alert strong {
    display: block;
    color: var(--ink);
    margin-bottom: 2px;
}

.alert code {
    background: rgba(255, 255, 255, .7);
}

.alert-error {
    border-color: #f6cdcd;
    background: var(--danger-bg);
    color: #a3262b;
}

.alert-error strong {
    color: #8c1b20;
}

.alert-warning {
    border-color: #f6e2bd;
    background: var(--warning-bg);
    color: #8a5a0a;
}

.alert-info {
    border-color: #cfe2ff;
    background: var(--info-bg);
    color: #235ba8;
}

.alert-wide {
    margin-bottom: 20px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 26px;
    align-items: start;
}

.checkout-form {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.content-group-intro {
    margin: -8px 0 18px;
}

details.content-group {
    padding: 0;
    overflow: hidden;
}

.content-group > .content-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.content-group > .content-group-head::-webkit-details-marker {
    display: none;
}

.content-group > .content-group-head h2 {
    margin-right: auto;
    font-size: 18px;
}

.content-group-head:hover {
    background: var(--surface-soft);
}

.content-group-count {
    margin-left: auto;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.content-group-chevron {
    color: var(--ink-3);
    transition: transform .18s ease;
}

.content-group[open] > .content-group-head {
    border-bottom: 1px solid var(--line);
}

.content-group[open] > .content-group-head .content-group-chevron {
    transform: rotate(180deg);
}

.content-group-body {
    padding: 20px 26px 26px;
}

.content-group-body > .content-group-intro {
    margin: 0 0 18px;
}

.field-effect {
    display: block;
    margin-top: 5px;
    padding-left: 9px;
    border-left: 2px solid var(--brand-light);
    color: var(--brand-dark);
    font-size: 12px;
    line-height: 1.45;
}

.field-effect strong {
    color: var(--ink-2);
    font-weight: 600;
    letter-spacing: .01em;
}

/* Effects that follow a checkbox row or a test button belong to the control above them. */
.form-stack > .field-effect,
.gateway-fields > .field-effect {
    margin-top: -12px;
}

.upload-preview-logo {
    aspect-ratio: auto;
    min-height: 96px;
    padding: 16px;
}

.upload-preview-logo img {
    width: auto;
    height: 60px;
    object-fit: contain;
}

.content-preview {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--surface-soft);
}

.content-preview strong {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: -.02em;
}

.content-preview span {
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.5;
}

.content-preview .brand {
    max-width: 100%;
}

.content-preview .brand-name {
    color: var(--ink);
    font-size: 17px;
    overflow-wrap: anywhere;
}

.content-preview .brand-name span {
    color: var(--brand);
}

.content-save {
    margin-top: 12px;
}

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

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

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"],
.field input[type="search"],
.field select,
.field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .12);
}

.field input[readonly] {
    background: var(--surface-soft);
    color: var(--ink-2);
}

.field-hint {
    margin-top: 9px;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.5;
}

.field-hint code {
    font-size: 11.5px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon > .icon {
    position: absolute;
    left: 13px;
    width: 17px;
    height: 17px;
    color: var(--ink-3);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 40px !important;
}

.input-with-icon input[type="password"],
.input-with-icon input[type="text"] {
    padding-right: 44px !important;
}

.password-toggle {
    position: absolute;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle.is-active {
    background: var(--surface-soft);
    color: var(--ink);
}

.password-toggle .icon {
    width: 16px;
    height: 16px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.check-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--brand);
    cursor: pointer;
}

.check-row span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.check-row strong {
    font-size: 12.5px;
}

.check-row small {
    color: var(--ink-3);
    font-size: 11.5px;
}

.price-field {
    position: relative;
    display: flex;
    align-items: center;
}

.price-field > span {
    position: absolute;
    left: 13px;
    color: var(--ink-3);
    font-size: 14px;
}

.price-field input {
    padding-left: 28px !important;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.pay-option.is-selected {
    border-color: var(--brand);
    background: #fbfaff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .08);
}

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

.pay-option-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.pay-option-icon .icon {
    width: 19px;
    height: 19px;
}

.pay-option-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pay-option-body strong {
    font-size: 13.5px;
}

.pay-option-body small {
    color: var(--ink-3);
    font-size: 11.5px;
}

.pay-option-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
}

.pay-option-check .icon {
    width: 12px;
    height: 12px;
}

.pay-option:not(.is-selected) .pay-option-check {
    background: var(--surface-soft);
    color: var(--ink-3);
}

.demo-card {
    margin-top: 14px;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--surface-soft);
}

.demo-card-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #b06cff);
    color: #fff;
}

.demo-card-dots {
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1;
}

.demo-card-tag {
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.demo-card-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.demo-card-note .icon {
    width: 13px;
    height: 13px;
}

.checkout-submit {
    margin-top: 26px;
    padding: 20px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--ink-2);
    font-size: 13.5px;
}

.checkout-total strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 24px;
}

.checkout-terms {
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.summary-card-sticky {
    position: sticky;
    top: 96px;
}

.checkout-items {
    display: grid;
    gap: 14px;
}

.checkout-items li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.checkout-thumb {
    overflow: hidden;
    width: 52px;
    height: 42px;
    border-radius: 8px;
    background: var(--surface-soft);
    flex-shrink: 0;
}

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

.checkout-thumb .product-placeholder .icon {
    width: 16px;
    height: 16px;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.checkout-item-info strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-item-info small {
    color: var(--ink-3);
    font-size: 11px;
}

.checkout-item-price {
    margin-left: auto;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Order success
   ------------------------------------------------------------------ */

.success-section {
    position: relative;
    overflow: hidden;
}

.success-glow {
    position: absolute;
    top: -220px;
    left: 50%;
    width: 700px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 94, 252, .14), transparent 65%);
    transform: translateX(-50%);
    pointer-events: none;
}

.success-hero {
    position: relative;
    padding: 46px;
    text-align: center;
}

.success-icon {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f9d6c, #34d399);
    color: #fff;
    box-shadow: 0 18px 36px -18px rgba(15, 157, 108, .6);
}

.success-icon.is-warning {
    background: linear-gradient(135deg, #d97706, #fbbf24);
    box-shadow: 0 18px 36px -18px rgba(217, 119, 6, .5);
}

.success-icon .icon {
    width: 30px;
    height: 30px;
}

.success-hero h1 {
    margin: 4px 0 12px;
    font-size: clamp(2rem, 3.4vw, 2.7rem);
}

.success-hero > p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--ink-2);
    font-size: 14.5px;
}

.success-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.success-meta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.success-meta span {
    color: var(--ink-3);
    font-size: 11.5px;
}

.success-meta strong {
    color: var(--ink);
    font-size: 14px;
}

.success-meta .badge {
    align-self: flex-start;
}

.success-savings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2, #f6f5fb);
    color: var(--ink-2);
    font-size: 12.5px;
}

.success-savings svg {
    width: 15px;
    height: 15px;
    color: var(--success, #12864e);
}

.downloads-card {
    margin-top: 22px;
    padding: 28px;
}

.download-list {
    display: grid;
}

.download-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.download-list li:last-child {
    border-bottom: 0;
}

.download-thumb {
    overflow: hidden;
    width: 64px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
    flex-shrink: 0;
}

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

.download-thumb .product-placeholder .icon {
    width: 18px;
    height: 18px;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin-right: auto;
}

.download-info strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-info small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.download-info small .icon {
    width: 12px;
    height: 12px;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.success-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: var(--ink-3);
    font-size: 12.5px;
    text-align: center;
}

.success-note .icon {
    width: 15px;
    height: 15px;
}

.shipping-card {
    margin-top: 22px;
    padding: 28px;
}

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

.shipping-details > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.shipping-details span {
    color: var(--ink-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.shipping-details strong {
    color: var(--ink);
    font-size: 13.5px;
    overflow-wrap: anywhere;
}

.shipping-details small {
    color: var(--ink-3);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.shipping-card .card-head {
    margin-bottom: 18px;
}

.shipping-details-stack {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.shipping-details-stack > div:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------
   Order tracking — customer view
   ------------------------------------------------------------------ */

.shipping-tracked {
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
}

.order-tracking {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.order-tracking > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.order-tracking span {
    color: var(--ink-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.order-tracking strong {
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.order-tracking .tracking-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    letter-spacing: .04em;
}

.shipping-track-help {
    margin: 10px 0 0;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.45;
}

.shipping-waiting {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.5;
}

.shipping-waiting .icon {
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--brand);
}

.order-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 13px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

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

.timeline-marker {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-3);
}

.timeline-marker .icon {
    width: 14px;
    height: 14px;
}

.timeline-step.is-done::before {
    background: var(--brand-light);
}

.timeline-step.is-done .timeline-marker {
    border-color: transparent;
    background: var(--brand-light);
    color: var(--brand);
}

.timeline-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding-top: 3px;
}

.timeline-text strong {
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 600;
}

.timeline-step.is-done .timeline-text strong {
    color: var(--ink);
}

.timeline-at {
    color: var(--ink-3);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
   Downloads library
   ------------------------------------------------------------------ */

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.library-card {
    overflow: hidden;
    padding: 0;
}

.library-cover {
    aspect-ratio: 16 / 9;
    background: var(--surface-soft);
}

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

.library-cover .product-placeholder .icon {
    width: 26px;
    height: 26px;
}

.library-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px;
}

.library-body h3 {
    overflow: hidden;
    margin-bottom: 3px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.library-meta {
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
}

.library-sub {
    color: var(--ink-3);
    font-size: 11.5px;
}

.library-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

/* ------------------------------------------------------------------
   Auth
   ------------------------------------------------------------------ */

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

.auth-shell {
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 100vh;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 44px;
    background: linear-gradient(160deg, #0b0d1c 0%, #181238 55%, #2a1650 100%);
    color: #fff;
}

.auth-aside::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -120px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 94, 252, .5), transparent 65%);
}

.auth-aside::after {
    content: '';
    position: absolute;
    bottom: 220px;
    left: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, .3), transparent 65%);
}

.auth-aside-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-aside-badge {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #b9b1ff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.auth-aside-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin-top: 68px;
}

.auth-aside-copy h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.15;
}

.auth-aside-copy > p {
    color: #a6a9c8;
    font-size: 14.5px;
    line-height: 1.65;
}

.auth-benefits {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d6d3ec;
    font-size: 13.5px;
}

.auth-benefits .icon {
    width: 18px;
    height: 18px;
    color: #8fe9c9;
}

.auth-covers {
    position: relative;
    height: 250px;
    margin-top: 48px;
}

.auth-covers img {
    position: absolute;
    width: 200px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .7);
}

.auth-covers img:nth-child(1) {
    top: 34px;
    left: 8px;
    transform: rotate(-8deg);
}

.auth-covers img:nth-child(2) {
    top: 0;
    left: 150px;
    transform: rotate(4deg);
}

.auth-covers img:nth-child(3) {
    top: 76px;
    left: 292px;
    transform: rotate(-2deg);
}

.auth-aside-foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 24px;
    color: #6f7396;
    font-size: 11.5px;
}

.auth-main {
    display: flex;
    flex-direction: column;
    padding: 26px 40px 30px;
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(109, 94, 252, .07), transparent 65%),
        var(--bg);
}

.auth-topbar {
    display: flex;
    justify-content: flex-end;
}

.auth-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    width: min(440px, 100%);
    margin: 24px auto;
}

.auth-card {
    width: 100%;
}

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

.auth-head h1 {
    margin: 4px 0 8px;
    font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.auth-head p {
    color: var(--ink-2);
    font-size: 14px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form .btn {
    margin-top: 4px;
}

.auth-terms {
    color: var(--ink-3);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

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

.auth-switch a {
    font-weight: 600;
}

.auth-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--ink-3);
    font-size: 11px;
}

.auth-foot .icon {
    width: 12px;
    height: 12px;
}

.auth-forgot {
    margin: -6px 0 0;
    text-align: right;
}

.auth-forgot a {
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 600;
}

.auth-forgot a:hover {
    color: var(--brand);
}

.auth-note {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--brand-light);
    color: var(--ink-2);
    font-size: 12px;
    line-height: 1.6;
}

.auth-note .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: var(--brand);
}

.auth-note h2 {
    grid-column: 2;
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 13px;
}

.auth-note ul {
    margin: 0;
    padding-left: 16px;
}

/* ------------------------------------------------------------------
   Password guidance
   ------------------------------------------------------------------ */

.pw-check {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.pw-meter {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.pw-meter i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--danger);
    transition: width .2s ease, background .2s ease;
}

.pw-check[data-score="2"] .pw-meter i { background: var(--amber); }
.pw-check[data-score="3"] .pw-meter i { background: var(--info); }
.pw-check[data-score="4"] .pw-meter i { background: var(--success); }

.pw-rules {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.45;
}

.pw-rules li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.pw-rules li::before {
    content: "";
    flex: none;
    width: 13px;
    height: 13px;
    margin-top: 2px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.pw-rules li.is-pass {
    color: var(--success);
}

.pw-rules li.is-pass::before {
    border-color: var(--success);
    background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
}

.pw-strength {
    margin: 0;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink-3);
}

.pw-check[data-score="1"] .pw-strength { color: var(--danger); }
.pw-check[data-score="2"] .pw-strength { color: var(--amber); }
.pw-check[data-score="3"] .pw-strength { color: var(--info); }
.pw-check[data-score="4"] .pw-strength { color: var(--success); }

.profile-danger {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.profile-danger .btn {
    justify-self: start;
}

.temp-password-alert > div {
    display: grid;
    gap: 8px;
}

.temp-password {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 15px;
    letter-spacing: .5px;
    user-select: all;
}

.recovery-note {
    max-width: 260px;
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.5;
}

/* ------------------------------------------------------------------
   Toasts
   ------------------------------------------------------------------ */

.toast-stack {
    position: fixed;
    top: 88px;
    right: 22px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(370px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    pointer-events: auto;
    animation: toast-in .28s ease both;
}

.toast p {
    flex: 1;
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.5;
}

.toast-icon {
    display: flex;
    margin-top: 1px;
    color: var(--brand);
}

.toast-icon .icon {
    width: 17px;
    height: 17px;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-info {
    border-left-color: var(--info);
}

.toast-info .toast-icon {
    color: var(--info);
}

.toast-close {
    display: inline-flex;
    padding: 2px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
}

.toast-close:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.toast-close .icon {
    width: 14px;
    height: 14px;
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s, transform .2s;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
    padding: 64px 0 26px;
    background: #0b0d1c;
    color: #9a9dbb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 42px;
    padding-bottom: 44px;
}

.footer-brand p {
    max-width: 300px;
    margin: 16px 0 18px;
    color: #8b8eae;
    font-size: 13px;
    line-height: 1.65;
}

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

.footer-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    color: #b9bcd6;
    font-size: 10.5px;
}

.footer-badges .icon {
    width: 12px;
    height: 12px;
    color: #8fe9c9;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col h4 {
    margin-bottom: 5px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-col a {
    color: #8b8eae;
    font-size: 12.5px;
    transition: color .15s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #6f7396;
    font-size: 11.5px;
}

/* ------------------------------------------------------------------
   Dashboard (customer)
   ------------------------------------------------------------------ */

.dash-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 36px 0 76px;
}

.dash-sidebar {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.dash-user-card .avatar {
    margin-bottom: 8px;
}

.dash-user-card strong {
    font-size: 14px;
    font-weight: 600;
}

.dash-user-card > span:last-child {
    overflow: hidden;
    max-width: 100%;
    color: var(--ink-3);
    font-size: 11.5px;
    text-overflow: ellipsis;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.dash-nav a .icon {
    width: 17px;
    height: 17px;
    color: var(--ink-3);
}

.dash-nav a:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.dash-nav a.is-active {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 600;
}

.dash-nav a.is-active .icon {
    color: var(--brand-dark);
}

.dash-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.dash-sidebar-foot form {
    display: flex;
}

.dash-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-3);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.dash-side-link:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.dash-side-link .icon {
    width: 16px;
    height: 16px;
}

.dash-main {
    min-width: 0;
}

.dash-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dash-heading h1 {
    margin-bottom: 6px;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.dash-heading p {
    color: var(--ink-2);
    font-size: 13.5px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--success-bg);
    color: var(--success);
    flex-shrink: 0;
}

.stat-icon .icon {
    width: 19px;
    height: 19px;
}

.stat-icon.is-violet {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.stat-icon.is-teal {
    background: #e3f8f5;
    color: #0f9488;
}

.stat-icon.is-amber {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.stat-label {
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stat-body strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.stat-body .stat-text {
    font-size: 18px;
}

.stat-body small {
    overflow: hidden;
    color: var(--ink-3);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-grid-2 {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 22px;
    align-items: start;
}

.dash-grid-2 > * {
    min-width: 0;
}

.card .card-head > .link-arrow {
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    margin: 0 -26px;
    padding: 0 26px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    vertical-align: middle;
}

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

.table tbody tr:hover td {
    background: #fbfaff;
}

.table strong {
    color: var(--ink);
    font-weight: 600;
}

.table-compact th {
    padding: 10px 8px;
}

.table-compact td {
    padding: 11px 8px;
}

.table-compact td:first-child,
.table-compact td:nth-child(2) {
    white-space: nowrap;
}

.table-sub {
    display: block;
    margin-top: 2px;
    color: var(--ink-3);
    font-size: 11px;
}

.cell-action {
    text-align: right;
    white-space: nowrap;
}

.table-link {
    color: var(--brand-dark);
    font-size: 12.5px;
    font-weight: 600;
}

.table-link:hover {
    text-decoration: underline;
}

.card-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 16px;
    color: var(--ink-3);
    text-align: center;
}

.card-empty > .icon {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    color: #b9b3dc;
}

.card-empty p {
    max-width: 300px;
    margin-bottom: 10px;
    font-size: 12.5px;
}

.download-list-compact li {
    padding: 12px 0;
}

.download-list-compact .download-thumb {
    width: 52px;
    height: 42px;
}

.download-list-compact .btn {
    flex-shrink: 0;
}

/* orders */

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

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

.order-summary h2 {
    margin-bottom: 18px;
    font-size: 18px;
}

.order-account {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
}

.order-account strong {
    display: block;
    font-size: 13.5px;
}

.order-account span {
    display: block;
    color: var(--ink-3);
    font-size: 11.5px;
}

/* profile */

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.profile-forms {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

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

.account-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    text-align: center;
}

.account-card .avatar {
    margin-bottom: 14px;
}

.account-card h2 {
    margin-bottom: 3px;
    font-size: 19px;
}

.account-card > p {
    margin-bottom: 12px;
    color: var(--ink-3);
    font-size: 12.5px;
}

.account-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: 22px 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.account-facts div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-facts div + div {
    border-left: 1px solid var(--line);
}

.account-facts span {
    color: var(--ink-3);
    font-size: 10.5px;
}

.account-facts strong {
    font-size: 12.5px;
    font-weight: 600;
}

.tip-card {
    background: linear-gradient(160deg, #f7f5ff, #fff);
}

.tip-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 11px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.tip-icon .icon {
    width: 19px;
    height: 19px;
}

.tip-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
}

.tip-card p {
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.6;
}

/* inline file input */

.file-input {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    background: var(--surface-soft);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.file-input:hover {
    border-color: var(--brand);
    background: #faf9ff;
}

.file-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.file-input-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-dark);
    font-size: 12.5px;
    font-weight: 600;
}

.file-input-btn .icon {
    width: 16px;
    height: 16px;
}

.file-input-note {
    color: var(--ink-3);
    font-size: 11px;
    line-height: 1.4;
}

.upload-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

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

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.upload-placeholder .icon {
    width: 26px;
    height: 26px;
    color: #b9b3dc;
}

.current-file {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-soft);
}

.current-file-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.current-file-icon .icon {
    width: 17px;
    height: 17px;
}

.current-file-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.current-file-body strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.current-file-body small {
    color: var(--ink-3);
    font-size: 10.5px;
}

/* ------------------------------------------------------------------
   Admin
   ------------------------------------------------------------------ */

.admin-body {
    background: #f4f4fa;
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 24px 16px;
    overflow-y: auto;
    background: #0b0d1c;
    color: #9a9dbb;
}

.admin-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.admin-brand .brand-name {
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-nav-close {
    display: none;
    padding: 6px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #b9bcd6;
    cursor: pointer;
}

.admin-nav-close .icon {
    width: 16px;
    height: 16px;
}

.admin-workspace {
    margin: 26px 8px 10px;
    color: #5d6285;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #9a9dbb;
    font-size: 13px;
    font-weight: 500;
    transition: color .15s, background .15s;
}

.admin-nav a .icon {
    width: 17px;
    height: 17px;
    color: #6f7396;
}

.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.admin-nav a.is-active {
    background: linear-gradient(120deg, rgba(109, 94, 252, .28), rgba(168, 85, 247, .18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(154, 139, 255, .25);
}

.admin-nav a.is-active .icon {
    color: #c9c2ff;
}

.admin-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.admin-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #7f83a8;
    font-family: inherit;
    font-size: 12.5px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.admin-side-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.admin-side-link .icon {
    width: 16px;
    height: 16px;
}

.admin-sidebar-foot form {
    display: flex;
}

.admin-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px);
}

.admin-topbar-title h1 {
    font-size: 19px;
    letter-spacing: -.02em;
}

.admin-topbar-title span {
    display: block;
    margin-top: 1px;
    color: var(--ink-3);
    font-size: 11.5px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.admin-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
}

.admin-topbar-link:hover {
    color: var(--brand-dark);
}

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

.admin-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.admin-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.admin-chip-text strong {
    font-size: 11.5px;
}

.admin-chip-text small {
    color: var(--ink-3);
    font-size: 10px;
}

.admin-nav-toggle {
    display: none;
}

.admin-content {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    padding: 26px 30px 34px;
}

.admin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 30px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 11px;
}

.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-page-head-wrap {
    align-items: flex-start;
}

.admin-filters {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: min(650px, 100%);
}

.admin-filters .filter-search-sm {
    flex: 1 1 220px;
}

.admin-stat-grid {
    margin-bottom: 22px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.chart-card {
    min-width: 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 170px;
    padding: 10px 4px 0;
}

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

.chart-bar-wrap {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(180deg, #f5f4ff, #fbfaff);
}

.chart-bar {
    width: 100%;
    border-radius: 8px;
    background: linear-gradient(180deg, #8b7bff, #6d5efc);
    box-shadow: 0 6px 16px -8px rgba(109, 94, 252, .6);
    min-height: 3px;
    transition: height .4s ease;
}

.chart-bar.is-empty {
    background: var(--line-strong);
    box-shadow: none;
}

.chart-label {
    color: var(--ink-3);
    font-size: 10.5px;
    font-weight: 600;
}

.chart-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 11.5px;
}

.chart-foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chart-foot .icon {
    width: 14px;
    height: 14px;
}

.rank-list {
    display: grid;
    gap: 2px;
}

.rank-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-list li:first-child .rank-number {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.rank-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    margin-right: auto;
}

.rank-body strong {
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-body small {
    color: var(--ink-3);
    font-size: 10.5px;
}

.rank-value {
    font-size: 12.5px;
    font-weight: 600;
}

.status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.status-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
}

.status-tabs a span {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 700;
}

.status-tabs a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.status-tabs a.is-active {
    border-color: transparent;
    background: var(--ink);
    color: #fff;
}

.status-tabs a.is-active span {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 11px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 12.5px;
}

.bulk-bar[hidden] {
    display: none;
}

.cell-check {
    width: 34px;
}

.cell-check input[type='checkbox'] {
    width: 15px;
    height: 15px;
    accent-color: var(--brand);
    cursor: pointer;
}

.table-admin th,
.table-admin td {
    white-space: nowrap;
}

.cell-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: flex-end;
}

.cell-actions form {
    display: flex;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    white-space: normal;
}

.table-thumb {
    overflow: hidden;
    width: 46px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
    flex-shrink: 0;
}

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

.table-thumb .product-placeholder .icon {
    width: 14px;
    height: 14px;
}

.product-cell-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    max-width: 260px;
}

.product-cell-body strong {
    overflow: hidden;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-cell-body small {
    overflow: hidden;
    color: var(--ink-3);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
}

.customer-cell-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.customer-cell-body strong {
    font-size: 12.5px;
}

.customer-cell-body small {
    color: var(--ink-3);
    font-size: 10.5px;
}

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

.inline-rename {
    display: flex;
    align-items: center;
    gap: 2px;
}

.inline-title-input {
    width: 170px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
}

.inline-title-input:hover {
    border-color: var(--line);
    background: var(--surface);
}

.inline-title-input:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .1);
}

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

.inline-add input {
    width: 280px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
}

.inline-add input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .12);
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.editor-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.editor-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-scrim {
    display: none;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

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

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

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-col:last-child {
        grid-column: 2 / 4;
    }
}

@media (max-width: 1080px) {
    .main-nav .nav-link {
        padding: 8px 9px;
    }

    .hero-inner {
        gap: 28px;
    }

    .auth-covers img:nth-child(3) {
        display: none;
    }

    .admin-shell {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .admin-content {
        padding: 24px;
    }
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        height: 380px;
        max-width: 560px;
        margin: 6px auto 0;
        width: 100%;
    }

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

    .dash-layout {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
    }

    .dash-user-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 14px 16px;
    }

    .dash-user-card .avatar {
        margin-bottom: 0;
    }

    .dash-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dash-nav a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .dash-sidebar-foot {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dash-sidebar-foot .dash-side-link {
        width: auto;
    }

    .dash-sidebar-foot form {
        margin-left: auto;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        position: static;
        max-width: 680px;
        width: 100%;
    }

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

    .cart-layout,
    .checkout-layout,
    .order-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .summary-card,
    .summary-card-sticky {
        position: static;
    }

    .editor-layout {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        display: none;
    }

    .auth-main {
        min-height: 100vh;
        padding: 24px;
    }

    .auth-topbar {
        justify-content: flex-start;
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        z-index: 55;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - 72px);
        padding: 12px 20px 20px;
        overflow-y: auto;
        border-bottom: 1px solid var(--line);
        background: #fff;
        box-shadow: var(--shadow-md);
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .main-nav .nav-link {
        padding: 12px;
        font-size: 14px;
    }

    .nav-mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--line);
    }

    .hide-sm {
        display: none !important;
    }

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

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        width: 260px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

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

    .admin-shell.sidebar-open .admin-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(11, 13, 28, .5);
        backdrop-filter: blur(2px);
    }

    .admin-nav-close {
        display: inline-flex;
    }

    .admin-nav-toggle {
        display: inline-flex;
    }

    .admin-topbar {
        padding: 12px 20px;
    }

    .admin-content {
        padding: 20px;
    }
}

@media (max-width: 820px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-col:last-child {
        grid-column: auto;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .dash-grid-2 {
        grid-template-columns: 1fr;
    }

    .success-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid-3 {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .admin-topbar-link span {
        display: none;
    }

    .cta-band {
        padding: 40px 28px;
    }
}

@media (max-width: 640px) {
    .container,
    .container-narrow {
        width: calc(100% - 32px);
    }

    .header-inner {
        gap: 10px;
        height: 66px;
    }

    .main-nav {
        top: 66px;
    }

    .site-header {
        border-bottom-color: var(--line);
    }

    .brand-name {
        font-size: 18px;
    }

    .site-header .brand-mark svg,
    .site-header .brand-mark img {
        width: 29px;
        height: 29px;
    }

    .header-actions {
        gap: 6px;
    }

    .cart-btn {
        width: 37px;
        height: 37px;
    }

    .hero {
        padding: 48px 0 56px;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-stats {
        gap: 26px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .hero-stats dt {
        font-size: 21px;
    }

    .hero-stats dd {
        font-size: 10.5px;
    }

    .hero-art {
        height: 280px;
    }

    .hero-cover-a {
        width: 66%;
        top: 30px;
        left: 2%;
    }

    .hero-cover-b {
        width: 48%;
        right: 0;
    }

    .hero-cover-c {
        width: 42%;
        right: 12%;
        bottom: 10px;
    }

    .hero-chip {
        display: none;
    }

    .section {
        padding: 52px 0;
    }

    .section-tight {
        padding: 32px 0 52px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 22px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 16px;
    }

    .category-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
    }

    .product-grid,
    .product-grid-3 {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px;
    }

    .cta-band {
        padding: 34px 22px;
        border-radius: 22px;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar .btn {
        width: 100%;
    }

    .filter-select select {
        width: 100%;
    }

    .filter-price {
        width: 100%;
        justify-content: space-between;
    }

    .filter-price-fields {
        flex: 1;
    }

    .filter-price-fields input {
        width: auto;
        flex: 1;
    }

    .reviews-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .page-head {
        padding: 26px 0 22px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions form,
    .product-actions .btn {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 12px;
    }

    .cart-thumb {
        width: 64px;
        height: 50px;
    }

    .cart-item-price {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        font-size: 14.5px;
    }

    .cart-item-price small {
        display: none;
    }

    .cart-item-info {
        grid-column: 2;
    }

    .cart-qty {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }

    .cart-remove {
        grid-column: 3;
        grid-row: 1;
        align-self: start;
    }

    .cart-items {
        padding: 4px 16px;
    }

    .card,
    .checkout-form,
    .success-hero,
    .downloads-card,
    .shipping-card,
    .summary-card {
        padding: 20px;
    }

    .shipping-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .table-wrap {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .success-meta {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .auth-main {
        padding: 18px;
    }

    .auth-content {
        margin: 12px auto;
    }

    .auth-topbar {
        padding: 0 2px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .toast-stack {
        top: 78px;
        right: 12px;
    }

    .dash-layout {
        padding: 22px 0 52px;
    }

    .dash-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dash-heading .btn {
        width: 100%;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .dash-nav a {
        flex: 1 1 45%;
        font-size: 12px;
    }

    .dash-sidebar-foot {
        justify-content: space-between;
    }

    .dash-sidebar-foot form {
        margin-left: 0;
    }

    .download-list li {
        gap: 10px;
    }

    .download-thumb {
        width: 50px;
        height: 40px;
    }

    .download-list li .btn {
        padding: 8px;
    }

    .download-list li .btn .icon {
        width: 14px;
        height: 14px;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .account-facts {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .account-facts div + div {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 10px;
    }

    .admin-topbar {
        padding: 10px 14px;
        gap: 10px;
    }

    .admin-topbar-title h1 {
        font-size: 16px;
    }

    .admin-topbar-title span {
        display: none;
    }

    .admin-chip-text {
        display: none;
    }

    .admin-chip {
        padding: 3px;
        border: none;
        background: transparent;
    }

    .admin-topbar-link {
        display: none;
    }

    .admin-content {
        padding: 16px 14px 24px;
    }

    .admin-footer {
        padding: 14px;
    }

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

    .admin-filters {
        width: 100%;
    }

    .admin-filters .filter-search-sm {
        flex: 1 1 auto;
    }

    .admin-page-head > .btn {
        width: 100%;
    }

    .inline-add {
        width: 100%;
    }

    .inline-add input {
        flex: 1;
        width: auto;
    }

    .status-tabs {
        gap: 4px;
    }

    .status-tabs a {
        padding: 6px 9px;
        font-size: 11px;
    }

    .chart-bars {
        gap: 7px;
        height: 140px;
    }

    .editor-actions .btn {
        flex: 1;
    }

    .inline-title-input {
        width: 130px;
    }

    .card-head {
        flex-wrap: wrap;
    }

    .order-side {
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ------------------------------------------------------------------
   Settings & payment gateway
   ------------------------------------------------------------------ */

.gateway-fields {
    display: grid;
    gap: 18px;
}

.gateway-fields[hidden] {
    display: none;
}

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

.gateway-test {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.gateway-test .field-hint {
    margin-top: 0;
    flex: 1 1 220px;
}

.gateway-test-result {
    flex-basis: 100%;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    line-height: 1.5;
}

.gateway-test-result.is-success {
    background: rgba(34, 145, 96, .1);
    color: #1a6a48;
}

.gateway-test-result.is-error {
    background: rgba(196, 57, 57, .09);
    color: #9c2d2d;
}

/* ------------------------------------------------------------------
   Coupons at checkout
   ------------------------------------------------------------------ */

.coupon-box {
    margin: 14px 0 16px;
}

.coupon-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 12.5px;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.coupon-form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(109, 94, 252, .1);
}

.coupon-applied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px dashed rgba(109, 94, 252, .5);
    border-radius: 10px;
    background: #fbfaff;
    font-size: 12.5px;
}

.coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: .5px;
}

.coupon-tag .icon {
    width: 12px;
    height: 12px;
}

.coupon-saved {
    color: var(--ink-3);
}

.coupon-applied form {
    margin-left: auto;
}

.coupon-remove {
    border: 0;
    background: none;
    padding: 0;
    color: var(--ink-3);
    font: inherit;
    font-size: 11.5px;
    text-decoration: underline;
    cursor: pointer;
}

.coupon-remove:hover {
    color: var(--danger);
}

.summary-discount {
    color: #1a6a48;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   Razorpay payment page
   ------------------------------------------------------------------ */

.pay-section {
    padding: 56px 0 72px;
}

.pay-card {
    padding: 34px;
}

.pay-hero {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.pay-hero-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 14px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.pay-hero h1 {
    margin: 6px 0 8px;
    font-size: 26px;
}

.pay-hero p {
    margin: 0 auto;
    max-width: 420px;
    color: var(--ink-2);
    font-size: 13.5px;
}

.pay-summary {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.pay-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 13px;
}

.pay-line span:first-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pay-line small {
    color: var(--ink-3);
    font-size: 11.5px;
}

.pay-line-muted {
    color: var(--ink-3);
}

.pay-line-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
    font-size: 14px;
}

.pay-line-total strong {
    font-family: var(--font-display);
    font-size: 24px;
}

.pay-actions {
    padding-top: 22px;
}

.pay-status {
    min-height: 18px;
    margin: 10px 0 4px;
    color: var(--ink-3);
    font-size: 12.5px;
    text-align: center;
}

.pay-status.is-error {
    color: var(--danger);
}

.pay-cancel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: var(--ink-3);
    font-size: 12px;
}

.pay-cancel .icon {
    width: 14px;
    height: 14px;
}

.pay-note {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--ink-2);
    font-size: 12px;
    line-height: 1.55;
}

.pay-note .icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--brand-dark);
}

.pay-note p {
    margin: 0;
}

@media (max-width: 640px) {
    .pay-card {
        padding: 24px 20px;
    }
}

.coupon-code-text {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .5px;
}

/* ------------------------------------------------------------------
   Admin order tools
   ------------------------------------------------------------------ */

.order-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

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

.btn-danger:hover {
    border-color: #a72828;
    background: #a72828;
    color: #fff;
}

.btn-ghost.is-danger {
    color: var(--danger);
    border-color: var(--danger-bg);
}

.btn-ghost.is-danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

.card-empty-compact {
    padding: 26px 20px;
}

.table-code {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--ink-2);
    font-size: 11px;
}

.note-form {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.order-notes {
    display: grid;
    gap: 14px;
}

.order-note-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.order-note-head strong {
    font-size: 12.5px;
}

.order-note-head span {
    color: var(--ink-3);
    font-size: 11px;
}

.order-notes p {
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.6;
}

@media (max-width: 960px) {
    .order-main {
        gap: 16px;
    }
}

.low-stock-card {
    margin-bottom: 22px;
    border-color: rgba(196, 140, 40, .3);
}

.low-stock-card .card-head h2 {
    display: flex;
    align-items: center;
    gap: 7px;
}

.low-stock-card .card-head h2 .icon {
    width: 17px;
    height: 17px;
    color: #b07a12;
}

.low-stock-list {
    display: grid;
    gap: 2px;
}

.low-stock-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.low-stock-list li:first-child {
    border-top: 0;
}

.low-stock-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.low-stock-list .badge {
    flex-shrink: 0;
}

.low-stock-list .table-link {
    flex-shrink: 0;
    font-size: 12px;
}

/* ------------------------------------------------------------------
   List price, offer timer, product gallery, admin gallery picker
   ------------------------------------------------------------------ */

.price-row {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.price-was {
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 500;
}

.price-save {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
}

.price-row.is-lg {
    display: flex;
    align-items: baseline;
}

.price-row.is-lg .price {
    font-size: 34px;
    line-height: 1;
}

.price-row.is-lg .price-was {
    font-size: 17px;
}

.offer-timer {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid #ffdda8;
    border-radius: 999px;
    background: #fff5e2;
    color: #8a4b06;
    font-size: 11.5px;
    font-weight: 700;
}

.offer-timer .icon {
    width: 13px;
    height: 13px;
}

.offer-timer-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.offer-timer-count {
    font-variant-numeric: tabular-nums;
}

.product-media .offer-timer {
    position: absolute;
    top: 12px;
    right: 12px;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(16, 18, 35, .82);
    color: #fff;
    backdrop-filter: blur(8px);
}

.product-media .offer-timer ~ .badge-owned {
    top: 48px;
}

.product-buybar .offer-timer {
    margin-top: 10px;
}

.product-shots {
    display: grid;
    gap: 10px;
}

.product-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.product-thumb {
    flex: 0 0 auto;
    width: 66px;
    height: 52px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

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

.product-thumb:hover {
    border-color: var(--line-strong);
}

.product-thumb.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand-light);
}

@media (min-width: 900px) {
    .product-shots {
        grid-template-columns: 86px minmax(0, 1fr);
        align-items: start;
    }

    .product-cover {
        grid-column: 2;
        grid-row: 1;
    }

    .product-thumbs {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column;
        overflow: visible;
    }

    .product-thumb {
        width: 86px;
        height: 66px;
    }
}

.gallery-editor {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

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

.gallery-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.gallery-tile.is-picked {
    cursor: default;
}

.gallery-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-tile-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gallery-tile-foot input {
    accent-color: var(--danger);
    cursor: pointer;
}

.gallery-tile:has(input:checked) {
    border-color: var(--danger);
    opacity: .55;
}

/* ---------------------------------------------------------------------------
 | Admin: product picker (recent sales popup)
 * ------------------------------------------------------------------------- */

.pick-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-soft);
}

.pick-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s ease;
}

.pick-row:hover {
    background: var(--surface);
}

.pick-row input {
    accent-color: var(--brand);
    cursor: pointer;
}

.pick-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pick-meta {
    font-size: 11.5px;
    color: var(--ink-3);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 | Storefront: recent sales popup
 * ------------------------------------------------------------------------- */

.sales-popup {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: min(340px, calc(100vw - 36px));
    padding: 10px 10px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(15, 15, 35, .16);
    opacity: 0;
    transform: translateY(14px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, visibility .35s;
}

.sales-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.sales-popup-body {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.sales-popup-thumb {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}

.sales-popup-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sales-popup-text strong {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sales-popup-text span {
    font-size: 12px;
    color: var(--ink-3);
}

.sales-popup-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
}

.sales-popup-close:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.sales-popup-close .icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 520px) {
    .sales-popup {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* ---------------------------------------------------------------------------
 | Info pages: about, contact, policies
 * ------------------------------------------------------------------------- */

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #8b8eae;
    font-size: 12px;
}

.footer-legal a {
    color: inherit;
}

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

.policy-layout,
.about-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
}

.policy-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.policy-sheet {
    padding: 30px 32px 34px;
}

.policy-updated {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 12.5px;
}

.policy-updated .icon {
    width: 15px;
    height: 15px;
}

.prose h3 {
    margin: 22px 0 8px;
    color: var(--ink);
    font-size: 16.5px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    margin: 0 0 16px;
    padding-left: 20px;
    list-style: disc;
}

.prose li {
    margin-bottom: 6px;
    font-size: 14.5px;
    line-height: 1.75;
}

.prose a {
    color: var(--brand);
    font-weight: 600;
}

.contact-form-card {
    padding: 26px 26px 30px;
}

.contact-note {
    margin-top: 14px;
}

.contact-intro {
    margin: -6px 0 18px;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.65;
}

.contact-form .field label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.field-req {
    color: var(--danger);
    font-weight: 700;
}

.field-optional {
    color: var(--ink-3);
    font-size: 11.5px;
    font-weight: 500;
}

.field-count {
    margin-left: auto;
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    white-space: nowrap;
}

.field-count.is-near {
    color: var(--warning);
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
}

.field-error .icon {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.contact-form .field-hint {
    margin-top: 6px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn:disabled {
    opacity: .68;
    cursor: progress;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid .input-with-icon input {
    border-color: var(--danger);
    background: var(--danger-bg);
}

.field.is-invalid input:focus,
.field.is-invalid textarea:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .14);
}

.contact-submit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.contact-privacy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-3);
    font-size: 12px;
}

.contact-privacy .icon {
    width: 14px;
    height: 14px;
}

.contact-privacy a {
    color: var(--brand-dark);
    font-weight: 600;
}

.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
    opacity: 0;
}

@media (max-width: 980px) {
    .policy-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .policy-side {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .policy-side {
        grid-template-columns: 1fr;
    }

    .policy-sheet {
        padding: 22px 18px 26px;
    }
}

/* ---------------------------------------------------------------------------
 | About & contact: business identity, trust points, side notes
 * ------------------------------------------------------------------------- */

.about-stack,
.contact-main {
    display: grid;
    gap: 18px;
    align-content: start;
}

.contact-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.chip-link:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.chip-link .icon {
    width: 15px;
    height: 15px;
    color: var(--brand);
}

.chip-static {
    cursor: default;
}

.chip-static .icon {
    color: var(--ink-3);
}

.identity-list {
    display: grid;
    gap: 14px;
}

.identity-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.identity-icon {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.identity-icon .icon {
    width: 16px;
    height: 16px;
}

.identity-text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.identity-text small {
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.identity-text strong {
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.identity-text a {
    color: var(--brand-dark);
}

.identity-text a:hover {
    text-decoration: underline;
}

.trust-list {
    gap: 12px;
}

.trust-list li {
    font-size: 14px;
    line-height: 1.65;
}

.trust-closing {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
    color: var(--ink-2);
    font-size: 13.5px;
    font-style: italic;
}

.note-text {
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.75;
}

.legal-card {
    background: var(--surface-soft);
    border-color: var(--line-strong);
}

.check-list-muted .icon {
    color: var(--ink-3);
}

@media (max-width: 640px) {
    .contact-quick {
        gap: 8px;
    }

    .chip-link {
        flex: 1 1 100%;
        justify-content: flex-start;
    }
}

/* ---------------------------------------------------------------------------
 | Admin: messages inbox
 * ------------------------------------------------------------------------- */

.nav-badge {
    margin-left: auto;
    min-width: 21px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.message-card {
    margin-bottom: 22px;
}

.message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.message-body {
    margin-bottom: 18px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.8;
    white-space: normal;
}

.message-snippet {
    max-width: 320px;
    color: var(--ink-3);
    font-size: 12.5px;
}

.cell-nowrap {
    white-space: nowrap;
}

.table-admin tr.is-unread td {
    background: rgba(109, 94, 252, .045);
}

.table-admin tr.is-unread .customer-cell-body strong {
    font-weight: 700;
}

.table-admin tr.is-open td {
    background: rgba(109, 94, 252, .1);
}

/* ---------- AI assistant dock ---------- */

.ai-dock {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 58;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.ai-launcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(84, 67, 234, .38);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ai-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(84, 67, 234, .46);
}

.ai-launcher svg {
    width: 19px;
    height: 19px;
}

.ai-dock.is-open .ai-launcher-label {
    display: none;
}

.ai-dock.is-open .ai-launcher {
    padding: 11px;
}

.ai-panel {
    display: flex;
    flex-direction: column;
    width: min(384px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 120px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.ai-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--brand-light);
}

.ai-head strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.3;
    color: var(--ink);
}

.ai-head-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-dark);
}

.ai-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
}

.ai-close:hover {
    background: rgba(16, 18, 35, .07);
    color: var(--ink);
}

.ai-intro {
    margin: 0;
    padding: 12px 16px 0;
    font-size: 13px;
    color: var(--ink-2);
}

.ai-log {
    flex: 1;
    min-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
}

.ai-msg {
    max-width: 88%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ai-msg-bot {
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    background: var(--surface-soft);
    color: var(--ink);
}

.ai-msg-user {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    background: var(--brand);
    color: #fff;
}

.ai-msg-error {
    align-self: flex-start;
    border: 1px solid rgba(229, 72, 77, .35);
    background: var(--danger-bg);
    color: var(--danger);
}

.ai-msg-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    border-bottom-left-radius: 6px;
    background: var(--surface-soft);
}

.ai-msg-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-3);
    animation: ai-blink 1.1s infinite ease-in-out;
}

.ai-msg-typing i:nth-child(2) { animation-delay: .16s; }
.ai-msg-typing i:nth-child(3) { animation-delay: .32s; }

@keyframes ai-blink {
    0%, 70%, 100% { opacity: .25; transform: translateY(0); }
    35% { opacity: 1; transform: translateY(-3px); }
}

.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 12px;
}

.ai-chip {
    padding: 6px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}

.ai-chip:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.ai-form {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.ai-composer {
    flex: 1;
    display: block;
}

.ai-composer textarea {
    width: 100%;
    max-height: 130px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    resize: none;
    overflow-y: auto;
}

.ai-composer textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.ai-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.ai-send:hover:not(:disabled) {
    background: var(--brand-dark);
}

.ai-send:disabled,
.ai-chip:disabled {
    opacity: .55;
    cursor: progress;
}

.ai-foot {
    margin: 0;
    padding: 0 14px 11px;
    font-size: 11.5px;
    color: var(--ink-3);
}

.ai-foot a {
    color: var(--ink-2);
}

@media (max-width: 560px) {
    .ai-dock {
        left: 12px;
        right: 12px;
        bottom: 12px;
        align-items: stretch;
    }

    .ai-launcher {
        align-self: flex-end;
    }

    .ai-panel {
        width: auto;
        max-height: calc(100vh - 108px);
    }
}

/* ------------------------------------------------------------------
   Invoice — printable order document
   ------------------------------------------------------------------ */

.invoice-body {
    background: var(--bg);
}

.invoice-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 26px 20px 60px;
}

.invoice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.invoice-toolbar-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.invoice-toolbar-hint {
    color: var(--ink-3);
    font-size: 12px;
}

.invoice-doc {
    padding: 40px 42px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
}

.invoice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--ink);
}

.invoice-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.invoice-sub {
    margin: 6px 0 0;
    color: var(--ink-2);
    font-size: 13.5px;
}

.invoice-stamp {
    padding: 7px 14px;
    border: 2px solid currentColor;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: rotate(-3deg);
}

.invoice-stamp.is-paid {
    color: var(--success);
}

.invoice-stamp.is-pending {
    color: var(--warning);
}

.invoice-stamp.is-refunded {
    color: var(--brand);
}

.invoice-stamp.is-cancelled {
    color: var(--danger);
}

.invoice-parties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    padding: 24px 0;
}

.invoice-party h2 {
    margin: 0 0 8px;
    color: var(--ink-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.invoice-party address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.7;
}

.invoice-party address span {
    display: block;
}

.invoice-party address span:first-child {
    font-weight: 700;
}

.invoice-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--warning);
    background: var(--warning-bg);
    color: var(--warning);
    font-size: 12.5px;
    line-height: 1.6;
}

.invoice-section-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.invoice-table th,
.invoice-table td {
    padding: 11px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.invoice-table thead th {
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invoice-table .num,
.invoice-table td.num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.invoice-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 22px;
    padding-top: 6px;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    width: min(320px, 100%);
    font-size: 13.5px;
}

.invoice-total-row span {
    color: var(--ink-2);
}

.invoice-total-row strong {
    font-variant-numeric: tabular-nums;
}

.invoice-discount strong {
    color: var(--success);
}

.invoice-refunded strong {
    color: var(--brand);
}

.invoice-grand {
    padding-top: 10px;
    border-top: 2px solid var(--ink);
    font-size: 16px;
}

.invoice-grand span {
    color: var(--ink);
    font-weight: 700;
}

.invoice-foot {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.invoice-thanks {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

.invoice-note {
    margin: 0 0 8px;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.7;
}

.invoice-help {
    margin: 0;
    color: var(--ink-2);
    font-size: 12.5px;
}

.invoice-meta {
    margin: 14px 0 0;
    color: var(--ink-3);
    font-size: 11px;
    letter-spacing: .02em;
}

@media (max-width: 640px) {
    .invoice-doc {
        padding: 26px 20px;
    }

    .invoice-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .invoice-title {
        font-size: 24px;
    }

    .invoice-table {
        font-size: 12.5px;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 9px 6px;
    }
}

@media print {
    @page {
        margin: 14mm;
    }

    body.invoice-body {
        background: #fff;
    }

    body.invoice-body .no-print,
    body.invoice-body .toast-stack {
        display: none !important;
    }

    body.invoice-body .invoice-wrap {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    body.invoice-body .invoice-doc {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 12pt;
        color: #000;
    }

    body.invoice-body .invoice-stamp {
        transform: none;
        border-width: 1.5pt;
    }

    body.invoice-body .invoice-party address span:first-child {
        font-weight: 700;
    }

    body.invoice-body .invoice-notice {
        border-left-color: #000;
        background: none;
        color: #000;
        padding-left: 0;
    }

    body.invoice-body .invoice-table {
        break-inside: auto;
    }

    body.invoice-body .invoice-table tr,
    body.invoice-body .invoice-party,
    body.invoice-body .invoice-totals {
        break-inside: avoid;
    }

    body.invoice-body .invoice-doc a {
        color: #000;
        text-decoration: none;
    }
}
