/* plzbuy — warm, quiet design system */

@font-face {
    font-family: "DM Sans";
    src: url("/assets/fonts/dm-sans.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fraunces";
    src: url("/assets/fonts/fraunces.woff2") format("woff2");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fbf7f0;
    --bg-deep: #f4ece0;
    --surface: #fffdf9;
    --surface-2: #f8f2e8;
    --surface-3: #f1e8da;
    --ink: #352e27;
    --ink-soft: #5b5147;
    --muted: #8c8073;
    --line: #e9dfd0;
    --line-strong: #ded1be;
    --accent: #b0785c;
    --accent-dark: #8e5c43;
    --accent-soft: #f3e2d6;
    --sage: #778f72;
    --sage-dark: #5c7458;
    --sage-soft: #e9efe4;
    --danger: #a95c50;
    --danger-soft: #f7e6e1;
    --warm: #b98a4e;
    --warm-soft: #f7ecd9;
    --shadow-xs: 0 1px 2px rgba(72, 54, 38, 0.05);
    --shadow-sm: 0 4px 14px rgba(72, 54, 38, 0.06);
    --shadow-md: 0 12px 32px rgba(72, 54, 38, 0.09);
    --shadow-lg: 0 24px 60px rgba(72, 54, 38, 0.13);
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;
    --radius-pill: 999px;
    --container: 1180px;
    --header-h: 76px;
    --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
}

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

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

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 500px at 12% -8%, rgba(224, 199, 171, 0.35), transparent 65%),
        radial-gradient(1100px 600px at 100% 0%, rgba(214, 222, 204, 0.45), transparent 60%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 160ms ease;
}

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

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

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

button { cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

[hidden] { display: none !important; }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 500;
    background: var(--ink);
    color: var(--surface);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-pill);
    transition: top 150ms ease;
}

.skip-link:focus { top: 12px; color: var(--surface); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    flex: 1 0 auto;
    padding-bottom: 4rem;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    vertical-align: -0.18em;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

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

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fffaf5;
    box-shadow: 0 8px 18px rgba(176, 120, 92, 0.22);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fffaf5;
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }

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

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

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

.btn-danger-ghost:hover {
    background: var(--danger-soft);
    border-color: transparent;
    color: var(--danger);
}

.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.86rem; }
.btn-xs { padding: 0.34rem 0.65rem; font-size: 0.78rem; gap: 0.35rem; }
.btn-block { width: 100%; }

.btn.is-disabled,
.btn:disabled {
    opacity: 0.55;
    pointer-events: none;
    transform: none;
}

.btn.is-liked { color: var(--accent-dark); background: var(--accent-soft); border-color: transparent; }

.btn.is-following { color: var(--sage-dark); border-color: transparent; background: var(--sage-soft); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    transition: background-color 150ms ease, color 150ms ease;
}

.icon-btn:hover { background: var(--surface-2); color: var(--accent-dark); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-dark);
    white-space: nowrap;
}

.text-link .icon { width: 1em; height: 1em; }
.text-link:hover { color: var(--ink); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 247, 240, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(222, 209, 190, 0.65);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    flex: 0 0 auto;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--accent-soft), #e9efdf);
    color: var(--accent-dark);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.brand-word { line-height: 1; }

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.8rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.nav-link:hover { background: rgba(255, 253, 249, 0.9); color: var(--ink); }

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

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 220px;
    padding: 0.45rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--muted);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(176, 120, 92, 0.12);
}

.header-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.86rem;
    color: var(--ink);
}

.header-search input::placeholder { color: var(--muted); }
.search-icon { width: 16px; height: 16px; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

.lang-link {
    padding: 0.22rem 0.52rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.lang-link.is-active { background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow-xs); }

.header-add .icon { width: 1em; height: 1em; }

.user-menu { position: relative; }

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.55rem 0.3rem 0.3rem;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-pill);
    list-style: none;
    cursor: pointer;
}

.user-menu-trigger::-webkit-details-marker { display: none; }
.user-menu-trigger:hover { border-color: var(--line-strong); }

.user-menu-name {
    font-size: 0.86rem;
    font-weight: 600;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-trigger .chevron { width: 14px; height: 14px; color: var(--muted); transition: transform 180ms ease; }
.user-menu[open] .chevron { transform: rotate(180deg); }

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: 232px;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 120;
}

.user-menu-head {
    padding: 0.5rem 0.65rem 0.65rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.35rem;
    display: flex;
    flex-direction: column;
}

.user-menu-head strong { font-size: 0.92rem; }
.user-menu-head span { font-size: 0.78rem; color: var(--muted); }

.user-menu-panel a,
.user-menu-panel .menu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.52rem 0.65rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-align: left;
}

.user-menu-panel a:hover,
.user-menu-panel .menu-link:hover { background: var(--surface-2); color: var(--ink); }

.menu-logout { margin: 0; border-top: 1px solid var(--line); padding-top: 0.35rem; margin-top: 0.35rem; }
.menu-link .icon { color: var(--muted); }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-sm);
    color: var(--ink);
}

.mobile-panel {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 1rem 24px 1.4rem;
    box-shadow: var(--shadow-sm);
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.4rem 0.4rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    margin: 0.9rem 0;
}

.mobile-nav a {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    font-weight: 500;
}

.mobile-nav a.is-active { color: var(--accent-dark); }
.mobile-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.mobile-panel-foot form { margin: 0; }

/* ----------------------------- Flash / toast ----------------------------- */

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 1rem;
}

.flash-stack:empty { display: none; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.alert > .icon { margin-top: 0.15em; }
.alert span { flex: 1; }

.alert-success { background: var(--sage-soft); border-color: #d5e0cd; color: var(--sage-dark); }
.alert-error { background: var(--danger-soft); border-color: #ecd2ca; color: var(--danger); }
.alert-warning { background: var(--warm-soft); border-color: #eeddc2; color: #8a642f; }
.alert-info { background: var(--surface-2); border-color: var(--line); color: var(--ink-soft); }

.alert-close {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.6;
    padding: 0;
    display: inline-flex;
}

.alert-close:hover { opacity: 1; }

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(360px, calc(100vw - 40px));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.95rem;
    border-radius: var(--radius-md);
    background: var(--ink);
    color: #fbf7f0;
    font-size: 0.88rem;
    box-shadow: var(--shadow-md);
    animation: toast-in 200ms ease both;
}

.toast.is-leaving { animation: toast-out 180ms ease both; }
.toast-success { background: var(--sage-dark); }
.toast-error { background: var(--danger); }

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

@keyframes toast-out {
    to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

/* ----------------------------- Layout sections ----------------------------- */

.section { padding: 3.6rem 0; }
.section-soft { background: rgba(246, 239, 228, 0.72); border-block: 1px solid rgba(233, 223, 208, 0.7); }
.section-tight-top { padding-top: 1.6rem; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

.section-head-tight { align-items: center; margin-bottom: 1.2rem; }
.section-head-center { flex-direction: column; text-align: center; align-items: center; max-width: 640px; margin-inline: auto; }
.section-head-spaced { margin-top: 3rem; }
.section-head h2 { margin-bottom: 0.25rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.section-actions { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.eyebrow .icon { width: 0.95em; height: 0.95em; }

/* ----------------------------- Page hero ----------------------------- */

.page-hero {
    padding: 2.6rem 0 1.2rem;
    position: relative;
}

.page-hero-compact { padding-top: 2rem; }

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.page-head-center { justify-content: center; text-align: center; }
.page-head-center .page-head-copy { max-width: 720px; }
.page-head-copy h1 { margin-bottom: 0.3rem; }
.page-head-copy p { color: var(--muted); max-width: 62ch; margin: 0; }
.page-head-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ----------------------------- Landing hero ----------------------------- */

.hero {
    position: relative;
    padding: 4rem 0 4.5rem;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-blob-a {
    width: 420px;
    height: 420px;
    left: -140px;
    top: -130px;
    background: radial-gradient(circle at 35% 35%, #efd9c5, #f7f0e6 70%);
}

.hero-blob-b {
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -220px;
    background: radial-gradient(circle at 60% 40%, #dfe7d6, #f7f2e9 70%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

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

.hero-title {
    font-size: clamp(2.6rem, 5.6vw, 4.3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-dark);
}

.hero-sub {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 54ch;
    margin-bottom: 1.6rem;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.45rem 0.45rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    max-width: 560px;
    margin-bottom: 1.1rem;
}

.hero-search > .icon { color: var(--muted); }
.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
}

.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.hero-proof { font-size: 0.82rem; color: var(--muted); }

.hero-stats { display: flex; gap: 1.8rem; margin-top: 1.8rem; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.hero-stat span { font-size: 0.78rem; color: var(--muted); }

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

.hero-note {
    position: absolute;
    width: 250px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.7rem;
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.hero-note-1 { top: 20px; left: 6%; transform: rotate(-4deg); z-index: 3; }
.hero-note-2 { top: 170px; right: 0; transform: rotate(3deg); z-index: 2; }
.hero-note-3 { bottom: 24px; left: 14%; transform: rotate(-1.5deg); z-index: 1; }

.hero-note-media {
    width: 66px;
    height: 66px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: hsl(var(--hue, 60) 38% 89%);
}

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

.hero-note-media .media-fallback { font-size: 0.7rem; }
.hero-note-media .media-fallback span { display: none; }
.hero-note-media.is-soft { background: hsl(var(--hue, 60) 34% 90%); }

.hero-note-body { min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; }
.hero-note-body strong { font-size: 0.83rem; line-height: 1.3; }
.hero-note-cat { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-note-price { font-size: 0.78rem; color: var(--accent-dark); font-weight: 600; }

.hero-tag-card {
    position: absolute;
    right: 6%;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    background: var(--ink);
    color: #fbf7f0;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 4;
}

.hero-star {
    position: absolute;
    color: var(--accent);
    opacity: 0.55;
    z-index: 0;
}

.hero-star .icon { width: 34px; height: 34px; }
.hero-star-a { top: 4px; right: 18%; animation: float 8s ease-in-out infinite; }
.hero-star-b { bottom: 120px; left: 0; color: var(--sage); animation: float 10s ease-in-out infinite reverse; }

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

/* ----------------------------- Steps / categories ----------------------------- */

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

.step-card {
    position: relative;
    padding: 1.8rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.step-number {
    position: absolute;
    right: 1.2rem;
    top: 0.9rem;
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--surface-3);
    line-height: 1;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.step-card:nth-child(2) .step-icon { background: var(--sage-soft); color: var(--sage-dark); }
.step-card:nth-child(3) .step-icon { background: var(--warm-soft); color: var(--warm); }
.step-card h3 { margin-bottom: 0.35rem; }
.step-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.category-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 500;
    transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.category-pill:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-dark);
    transform: translateY(-1px);
}

.category-pill .icon { color: var(--muted); }
.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
}

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

.idea-card {
    display: flex;
    gap: 1rem;
    padding: 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.idea-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--surface-2);
    color: var(--accent-dark);
}

.idea-body { min-width: 0; }
.idea-cat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.idea-card h3 { font-size: 1.02rem; margin: 0.15rem 0 0.3rem; }
.idea-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.55rem; }
.idea-card .text-link { font-size: 0.8rem; }

.cta-band {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 2.2rem 2.4rem;
    background: linear-gradient(135deg, #efe4d4, #e9eedf);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 20px;
    background: var(--surface);
    color: var(--accent-dark);
    box-shadow: var(--shadow-xs);
}

.cta-band > div { flex: 1; }
.cta-band h2 { margin-bottom: 0.2rem; }
.cta-band p { margin: 0; color: var(--ink-soft); }

/* ----------------------------- Cards / wishes ----------------------------- */

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

.wish-grid-compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.wish-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.wish-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.wish-media .media-fallback { position: absolute; inset: 0; }
.wish-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.wish-media.no-image img { display: none; }

.wish-price {
    position: absolute;
    left: 0.7rem;
    bottom: 0.7rem;
    z-index: 3;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 253, 249, 0.94);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: var(--shadow-xs);
}

.wish-media-top {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    right: 0.65rem;
    z-index: 3;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.wish-card-body { display: flex; flex-direction: column; flex: 1; padding: 0.95rem 1rem 1rem; }

.wish-card-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.wish-category { font-weight: 600; color: var(--accent-dark); }
.dot { color: var(--line-strong); }

.wish-card-title { font-size: 1.05rem; line-height: 1.3; margin: 0 0 0.35rem; }
.wish-card-title a { color: var(--ink); }
.wish-card-title a:hover { color: var(--accent-dark); }
.wish-card-text { font-size: 0.84rem; color: var(--muted); margin: 0 0 0.7rem; }

.wish-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
}

.person-mini,
.people-mini-person {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 500;
}

.person-mini span,
.people-mini-person > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-mini:hover,
.people-mini-person:hover { color: var(--accent-dark); }

.wish-card-actions { display: flex; align-items: center; gap: 0.25rem; }

.like-count {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.like-count .icon { width: 0.95em; height: 0.95em; }

.wish-card-new {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    padding: 2rem 1rem;
    border-style: dashed;
    border-color: var(--line-strong);
    background: rgba(255, 253, 249, 0.55);
    color: var(--muted);
    min-height: 260px;
}

.wish-card-new:hover { color: var(--accent-dark); background: var(--surface); }
.wish-card-new strong { color: var(--ink); }
.wish-card-new > span:last-child { font-size: 0.82rem; }

.new-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    margin-bottom: 0.4rem;
}

/* ----------------------------- Media / avatars / chips ----------------------------- */

.media {
    position: relative;
    background: hsl(var(--hue, 50) 30% 88%);
}

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

.media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: hsl(var(--hue, 50) 22% 38%);
    background: linear-gradient(145deg, hsl(var(--hue, 50) 36% 91%), hsl(var(--hue, 50) 25% 86%));
    font-size: 0.76rem;
    font-weight: 600;
}

.media-fallback .icon { width: 1.6rem; height: 1.6rem; opacity: 0.65; }
.media.no-image .media-fallback,
.media.is-broken .media-fallback { position: absolute; inset: 0; }
.media.is-broken img { display: none; }
.media.no-image { background: hsl(var(--hue, 50) 30% 88%); }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: hsl(var(--hue, 40) 44% 84%);
    color: hsl(var(--hue, 40) 38% 27%);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    user-select: none;
}

.avatar-xs { width: 26px; height: 26px; font-size: 0.62rem; }
.avatar-sm { width: 34px; height: 34px; font-size: 0.72rem; }
.avatar-md { width: 44px; height: 44px; font-size: 0.85rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-xl { width: 96px; height: 96px; font-size: 1.8rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.chip .icon { width: 0.9em; height: 0.9em; }
.chip-quiet { background: rgba(255, 253, 249, 0.9); border-color: var(--line); color: var(--ink-soft); }
.chip-sage { background: var(--sage-soft); border-color: #d5e0cd; color: var(--sage-dark); }
.chip-warm { background: var(--warm-soft); border-color: #eeddc2; color: #8a642f; }
.chip-category { background: var(--accent-soft); color: var(--accent-dark); }
.chip-category:hover { background: var(--accent); color: #fffaf5; }

/* ----------------------------- Detail page ----------------------------- */

.detail-section { padding: 2rem 0 1rem; }

.wish-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: start;
}

.detail-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--header-h) + 1.2rem);
}

.detail-media img { position: relative; z-index: 1; }
.detail-media.no-image img { display: none; }
.detail-media .media-fallback { position: absolute; inset: 0; font-size: 0.9rem; }
.detail-media .media-fallback .icon { width: 2.2rem; height: 2.2rem; }

.detail-price-chip {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 3;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 253, 249, 0.95);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.detail-info { min-width: 0; padding-top: 0.4rem; }

.detail-flags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.detail-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 0.8rem; }
.detail-desc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1.2rem; max-width: 58ch; }

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.detail-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.detail-price-muted { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); }

.detail-domain {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.detail-domain:hover { color: var(--accent-dark); }
.detail-domain .icon { width: 0.95em; height: 0.95em; }

.detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.detail-author { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink-soft); }
.detail-author strong { display: block; font-size: 0.9rem; }
.detail-author small { color: var(--muted); font-size: 0.76rem; }
.detail-copied {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--muted);
    padding: 0.3rem 0.6rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-pill);
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.detail-actions form { margin: 0; }
.detail-actions .btn { min-height: 42px; }
.like-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.68rem;
}

.owner-actions { margin-top: 1.4rem; }

.gift-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.gift-box-mine { background: var(--sage-soft); border-color: #d5e0cd; }
.gift-box-quiet { background: var(--surface-2); }

.gift-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--surface);
    color: var(--accent-dark);
    box-shadow: var(--shadow-xs);
}

.gift-box h3 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.gift-box p { font-size: 0.87rem; color: var(--muted); margin-bottom: 0.7rem; }
.gift-box-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.gift-box-actions form { margin: 0; }

.similar-section { margin-top: 3.2rem; }

/* ----------------------------- Forms ----------------------------- */

.form { display: flex; flex-direction: column; gap: 1rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field-flush { margin: 0; }
.field-narrow { max-width: 150px; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 180px; }
.field-row > .field.field-narrow { flex: 0 1 150px; }

.field label,
.field legend,
.visibility-field legend {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.label-req { color: var(--danger); margin-left: 2px; }
.label-opt { color: var(--muted); font-weight: 400; font-size: 0.78rem; }

.field input,
.field select,
.field textarea,
.admin-search input {
    width: 100%;
    padding: 0.68rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.94rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }

.field input:focus,
.field select:focus,
.field textarea:focus,
.admin-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(176, 120, 92, 0.13);
}

.field-hint { font-size: 0.76rem; color: var(--muted); margin: 0; }
.field-error { font-size: 0.78rem; color: var(--danger); margin: 0; font-weight: 500; }

.input-code {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.input-with-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-action input { flex: 1; min-width: 0; }

.input-action {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
}

.input-action:hover { background: var(--surface-2); color: var(--ink); }
.input-with-action input[type="password"],
.input-with-action input[type="text"] { padding-right: 2.6rem; }

.input-with-button { gap: 0.5rem; }
.input-with-button input { padding-right: 0.85rem; }
.input-with-button .btn { flex: 0 0 auto; }

.visibility-field { border: 0; padding: 0; margin: 0; }
.visibility-field legend { margin-bottom: 0.5rem; }
.visibility-options { display: flex; flex-direction: column; gap: 0.55rem; }

.visibility-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.visibility-option:hover { border-color: var(--line-strong); background: var(--surface-2); }
.visibility-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}
.visibility-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }

.visibility-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--surface);
    color: var(--accent-dark);
}

.visibility-copy { display: flex; flex-direction: column; }
.visibility-copy strong { font-size: 0.9rem; }
.visibility-copy small { color: var(--muted); font-size: 0.78rem; }

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.form-main { display: flex; flex-direction: column; gap: 1.2rem; }
.form-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }

.form-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.form-card-accent { background: linear-gradient(150deg, #fbf4ea, var(--surface) 65%); border-color: var(--line-strong); }

.form-card-head { display: flex; gap: 0.85rem; align-items: flex-start; }
.form-card-head h2 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.form-card-head p { font-size: 0.84rem; color: var(--muted); margin: 0; }

.form-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.form-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.form-actions form { margin: 0; }

.preview-status { font-size: 0.8rem; min-height: 1.2em; }
.preview-status.is-loading { color: var(--muted); }
.preview-status.is-success { color: var(--sage-dark); }
.preview-status.is-error { color: var(--danger); }

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

.preview-media { aspect-ratio: 4 / 3; position: relative; }
.preview-media img { position: relative; z-index: 1; }
.preview-media .media-fallback { position: absolute; inset: 0; }
.preview-media.no-image img { display: none; }

.preview-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.preview-cat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.preview-body strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.3; }
.preview-price { font-size: 0.86rem; color: var(--accent-dark); font-weight: 600; }

.tip-card {
    padding: 1.2rem 1.25rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.tip-card-head { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.6rem; color: var(--accent-dark); }
.tip-card-head h3 { font-size: 1rem; margin: 0; }
.tip-card ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.tip-card li { font-size: 0.83rem; color: var(--muted); }

.delete-form { margin: 0; }

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

.auth-section { padding: 2.4rem 0 1rem; }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: stretch;
    max-width: 1040px;
}

.auth-aside {
    position: relative;
    padding: 2.4rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg, #f0e3d2, #e9eee0);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-aside::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(255, 253, 249, 0.55);
}

.auth-aside-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: var(--surface);
    color: var(--accent-dark);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.4rem;
}

.auth-aside h2 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.auth-aside > p { color: var(--ink-soft); font-size: 0.95rem; max-width: 36ch; }

.auth-aside-notes { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.4rem 0; }
.auth-aside-notes span { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.84rem; color: var(--ink-soft); }
.auth-aside-notes .icon { color: var(--accent-dark); margin-top: 0.15em; }
.auth-aside-foot { margin-top: auto; font-size: 0.8rem; color: var(--muted); position: relative; z-index: 1; }

.auth-card {
    padding: 2.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-card-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.3rem; }
.auth-card-head p { color: var(--muted); margin: 0; font-size: 0.92rem; }
.auth-card-foot { text-align: center; border-top: 1px solid var(--line); padding-top: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.auth-card-foot p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.auth-card-foot small { color: var(--muted); font-size: 0.76rem; }

/* ----------------------------- Discover ----------------------------- */

.discover-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 720px;
    margin: 1.2rem auto 0;
    padding: 0.45rem 0.45rem 0.45rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.discover-search > .icon { color: var(--muted); }
.discover-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 0.95rem; }
.discover-search-sm { margin: 1rem 0 0; }

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.filter-form { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.filter-field { display: flex; align-items: center; gap: 0.45rem; }
.filter-field label { font-size: 0.76rem; font-weight: 600; color: var(--muted); }

.filter-field select {
    padding: 0.42rem 0.6rem;
    border: 1px solid var(--line);
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    outline: none;
}

.filter-clear { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.78rem; color: var(--muted); }
.filter-clear:hover { color: var(--danger); }
.filter-clear .icon { width: 0.9em; height: 0.9em; }
.filter-count { font-size: 0.78rem; color: var(--muted); }

.web-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
}

.web-search > span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; color: var(--muted); }

/* ----------------------------- Tabs / pagination ----------------------------- */

.tab-bar {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    padding: 0.3rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    width: fit-content;
    max-width: 100%;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow-xs); }

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    font-size: 0.68rem;
    font-weight: 700;
}

.tab.is-active .tab-count { background: var(--accent-soft); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.page-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-btn.is-disabled { opacity: 0.45; pointer-events: none; }
.page-btn .icon { width: 0.95em; height: 0.95em; }

.page-numbers { display: inline-flex; align-items: center; gap: 0.2rem; }
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
}
.page-num:hover { background: var(--surface-2); }
.page-num.is-active { background: var(--accent); color: #fffaf5; }
.page-gap { color: var(--muted); padding: 0 0.15rem; }

/* ----------------------------- Dashboard / home ----------------------------- */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 2rem;
    align-items: start;
}

.dashboard-main { min-width: 0; }
.dashboard-side { display: flex; flex-direction: column; gap: 1rem; }

.stat-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.stat-card {
    min-width: 100px;
    padding: 0.7rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.stat-card strong { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.stat-card span { font-size: 0.72rem; color: var(--muted); }

.quick-add {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.3rem;
    margin-top: 1.4rem;
    background: linear-gradient(135deg, #f4e8d8, #eef1e4);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    flex-wrap: wrap;
}

.quick-add-copy { display: flex; align-items: center; gap: 0.7rem; min-width: 220px; flex: 1; }
.quick-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--surface);
    color: var(--accent-dark);
    flex: 0 0 auto;
}
.quick-add-copy div { display: flex; flex-direction: column; }
.quick-add-copy strong { font-size: 0.9rem; }
.quick-add-copy span { font-size: 0.78rem; color: var(--muted); }

.quick-add-form { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 360px; }
.quick-add-input {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    padding: 0.5rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--muted);
}
.quick-add-input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 0.9rem; }

.side-card {
    padding: 1.15rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.side-card-soft { background: var(--surface-2); }
.side-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.side-card-head h3 { font-size: 1rem; margin: 0; }
.side-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.8rem; }
.side-empty { font-size: 0.83rem; color: var(--muted); margin: 0; }

.people-mini-list { display: flex; flex-direction: column; gap: 0.35rem; }
.people-mini { display: flex; align-items: center; justify-content: space-between; gap: 0.4rem; padding: 0.3rem 0; }
.people-mini .people-mini-person { flex: 1; min-width: 0; }
.soft-panel {
    display: flex;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--muted);
}
.soft-panel > .icon { width: 26px; height: 26px; color: var(--accent-dark); }
.soft-panel h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.soft-panel p { font-size: 0.85rem; margin-bottom: 0.6rem; }
.soft-panel-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.idea-mini-list { display: flex; flex-direction: column; gap: 0.15rem; }
.idea-mini {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
}
.idea-mini:hover { background: var(--surface); color: var(--accent-dark); }
.idea-mini > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.idea-mini strong { font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.idea-mini small { font-size: 0.7rem; color: var(--muted); }
.idea-mini > .icon { width: 0.9em; height: 0.9em; color: var(--muted); }
.idea-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: var(--surface);
    color: var(--accent-dark);
}

/* ----------------------------- People / profile ----------------------------- */

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

.person-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.person-card-head { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.person-card-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.person-card-id strong { font-size: 0.98rem; line-height: 1.3; }
.person-card-id small { font-size: 0.76rem; color: var(--muted); }
.person-bio { font-size: 0.83rem; color: var(--muted); margin: 0; }
.person-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.76rem; color: var(--muted); }
.person-meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.person-meta .icon { width: 0.9em; height: 0.9em; }
.person-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.4rem; }
.person-actions form { margin: 0; }

.profile-hero { padding: 2.4rem 0 0.8rem; }

.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem;
    background: linear-gradient(140deg, #f7eddf, var(--surface) 60%);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.profile-avatar-wrap { flex: 0 0 auto; }
.profile-info { flex: 1 1 320px; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.profile-name-row h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.profile-handle { color: var(--muted); font-size: 0.9rem; margin: 0.1rem 0 0.5rem; }
.profile-bio { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.6rem; max-width: 60ch; }
.profile-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.profile-meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.profile-meta .icon { width: 0.9em; height: 0.9em; }

.profile-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.profile-actions form { margin: 0; }
.profile-stats { display: flex; gap: 1.2rem; }
.profile-stats > div { display: flex; flex-direction: column; align-items: center; }
.profile-stats strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }
.profile-stats span { font-size: 0.7rem; color: var(--muted); }

/* ----------------------------- Reservations ----------------------------- */

.secret-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    color: var(--muted);
    background: var(--surface);
}

.reservation-list { display: flex; flex-direction: column; gap: 1rem; max-width: 880px; }

.reservation-card {
    display: flex;
    gap: 1.2rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.reservation-card.is-purchased { background: var(--sage-soft); border-color: #d5e0cd; }

.reservation-media {
    width: 140px;
    height: 140px;
    flex: 0 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.reservation-media img { position: absolute; inset: 0; z-index: 1; }
.reservation-media .media-fallback { position: absolute; inset: 0; }
.reservation-media.no-image img { display: none; }

.reservation-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.reservation-flags { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.reservation-date { font-size: 0.74rem; color: var(--muted); }
.reservation-card h3 { font-size: 1.15rem; margin: 0; }
.reservation-card h3 a { color: var(--ink); }
.reservation-card h3 a:hover { color: var(--accent-dark); }

.reservation-owner { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); }
.reservation-owner:hover { color: var(--accent-dark); }

.reservation-note { display: flex; flex-direction: column; gap: 0.25rem; }
.reservation-note label { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.reservation-note .input-with-action input { padding-right: 0.85rem; }
.reservation-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.2rem; }
.reservation-actions form { margin: 0; }

/* ----------------------------- Settings ----------------------------- */

.settings-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.settings-nav {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.settings-nav a,
.settings-nav button {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-align: left;
    width: 100%;
}

.settings-nav a:hover,
.settings-nav button:hover { background: var(--surface-2); color: var(--accent-dark); }
.settings-logout { margin: 0.35rem 0 0; border-top: 1px solid var(--line); padding-top: 0.35rem; }

.settings-main { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }

.settings-card {
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    scroll-margin-top: calc(var(--header-h) + 1.4rem);
}

.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.settings-card-head h2 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.settings-card-head p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.settings-card-admin { background: linear-gradient(140deg, #f4e9da, var(--surface) 65%); }

.profile-edit-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.profile-edit-head strong { display: block; font-size: 0.95rem; }
.profile-edit-head small { color: var(--muted); font-size: 0.78rem; }

.hue-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hue-swatch { position: relative; display: inline-flex; cursor: pointer; }
.hue-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.hue-swatch span {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: hsl(var(--hue) 46% 70%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.hue-swatch:hover span { transform: scale(1.08); }
.hue-swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.hue-swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.language-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.7rem; }

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--ink-soft);
}

.language-option:hover { border-color: var(--accent); }
.language-option.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.language-option > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.language-option strong { font-size: 0.9rem; }
.language-option small { font-size: 0.75rem; color: var(--muted); }

.language-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--surface);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--accent-dark);
    box-shadow: var(--shadow-xs);
}

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

.admin-tabs {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    padding: 0.3rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    width: fit-content;
    max-width: 100%;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.admin-tab:hover { color: var(--ink); }
.admin-tab.is-active { background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow-xs); }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.admin-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.admin-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.admin-stat:nth-child(2) .admin-stat-icon { background: var(--sage-soft); color: var(--sage-dark); }
.admin-stat:nth-child(3) .admin-stat-icon { background: var(--warm-soft); color: var(--warm); }
.admin-stat:nth-child(4) .admin-stat-icon { background: var(--surface-2); color: var(--ink-soft); }
.admin-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.admin-stat span { font-size: 0.78rem; color: var(--muted); }

.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-stack { display: flex; flex-direction: column; gap: 1rem; }

.admin-card {
    padding: 1.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.admin-card-head h2 { font-size: 1.15rem; margin: 0; }

.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}
.admin-list-row:last-child { border-bottom: 0; }
.admin-list-row .people-mini-person { flex: 1; min-width: 0; }

.admin-wish-line { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink-soft); min-width: 0; }
.admin-wish-line:hover { color: var(--accent-dark); }
.admin-wish-line > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.admin-wish-line strong { font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.admin-wish-line small { font-size: 0.72rem; color: var(--muted); }

.admin-wish-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--accent-dark);
}

.admin-price { font-size: 0.8rem; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }

.admin-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.45rem 0.45rem 0.85rem;
    margin-bottom: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-xs);
    color: var(--muted);
}

.admin-search input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 0.3rem 0; }
.admin-search input:focus { box-shadow: none; }
.admin-search-inline { border-radius: var(--radius-md); margin-bottom: 0; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }

.data-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.86rem; }
.data-table th {
    text-align: left;
    padding: 0.7rem 0.9rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.data-table td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(248, 242, 232, 0.55); }

.cell-muted { color: var(--muted); font-size: 0.8rem; }
.cell-block { display: block; margin-top: 0.1rem; }
.cell-link { color: var(--accent-dark); font-size: 0.84rem; }

.row-actions { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.inline-form { display: inline-flex; margin: 0; }

.status-dot { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; }
.status-dot > span { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.is-active { color: var(--sage-dark); }
.status-dot.is-active > span { background: var(--sage); }
.status-dot.is-inactive { color: var(--muted); }
.status-dot.is-inactive > span { background: var(--line-strong); }

.code-chip {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.domain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.domain-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}
.domain-row:last-child { border-bottom: 0; }
.domain-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--danger-soft);
    color: var(--danger);
}
.domain-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.domain-name strong { font-size: 0.88rem; }
.domain-name small { font-size: 0.72rem; color: var(--muted); }

/* ----------------------------- Empty / errors ----------------------------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 3rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
}

.empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--surface-2);
    color: var(--accent-dark);
    margin-bottom: 0.4rem;
}

.empty-state h3 { font-size: 1.25rem; margin: 0; }
.empty-state p { color: var(--muted); font-size: 0.9rem; max-width: 48ch; margin: 0 0 0.7rem; }

.error-section { padding: 4rem 0; }
.error-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.error-code {
    position: absolute;
    right: 1.2rem;
    top: 0.2rem;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--surface-3);
    pointer-events: none;
}
.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    margin-bottom: 1rem;
    position: relative;
}
.error-card h1 { font-size: 1.8rem; margin-bottom: 0.4rem; position: relative; }
.error-card p { color: var(--muted); margin-bottom: 1.2rem; position: relative; }
.error-actions { display: flex; align-items: center; justify-content: center; gap: 0.6rem; flex-wrap: wrap; position: relative; }

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

.site-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--line);
    background: rgba(246, 239, 228, 0.7);
    padding-top: 2.6rem;
    color: var(--ink-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .brand { margin-bottom: 0.7rem; }
.footer-tagline { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.4rem; }
.footer-about { font-size: 0.82rem; color: var(--muted); max-width: 40ch; margin: 0; }

.footer-col { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.footer-col a { font-size: 0.85rem; color: var(--ink-soft); width: fit-content; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-col a.is-active { color: var(--accent-dark); font-weight: 600; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1rem 24px;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
    color: var(--muted);
}

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 1100px) {
    .primary-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-search { width: 190px; }
    .user-menu-name { display: none; }
    .hero-grid { gap: 2rem; }
    .form-layout { grid-template-columns: minmax(0, 1fr) 260px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero { padding: 3rem 0 3.2rem; }
    .steps-grid, .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wish-detail { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .detail-media { position: relative; top: 0; aspect-ratio: 16 / 10; }
    .form-layout { grid-template-columns: 1fr; }
    .form-side { position: static; flex-direction: row; flex-wrap: wrap; }
    .form-side > * { flex: 1 1 260px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-side { flex-direction: row; flex-wrap: wrap; }
    .dashboard-side > * { flex: 1 1 280px; }
    .auth-shell { grid-template-columns: 1fr; max-width: 620px; }
    .auth-aside { display: none; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; }
    .settings-nav a, .settings-nav button { width: auto; }
    .settings-logout { border-top: 0; border-left: 1px solid var(--line); padding-top: 0; padding-left: 0.5rem; margin: 0; }
    .admin-columns { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .profile-card { gap: 1.2rem; }
    .profile-actions { align-items: flex-start; }
}

@media (max-width: 760px) {
    .container { padding: 0 18px; }
    .header-inner { min-height: 66px; gap: 0.6rem; }
    .header-search { display: none; }
    .header-login, .header-register { display: none; }
    .lang-switch { display: none; }
    .header-add span { display: none; }
    .header-add { padding: 0.55rem 0.7rem; }
    .section { padding: 2.6rem 0; }
    .section-tight-top { padding-top: 1.2rem; }
    .page-hero, .page-hero-compact { padding-top: 1.6rem; }
    .page-head { align-items: flex-start; }
    .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
    .hero-sub { font-size: 1rem; }
    .hero-search { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 0.6rem; }
    .hero-search input { flex: 1 1 160px; padding: 0.3rem 0.4rem; }
    .hero-search .btn { width: 100%; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-stats { gap: 1.2rem; }
    .steps-grid, .idea-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
    .cta-band .btn { width: 100%; }
    .wish-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
    .wish-card-body { padding: 0.75rem; }
    .wish-card-title { font-size: 0.95rem; }
    .wish-card-text { display: none; }
    .wish-card-meta { font-size: 0.66rem; }
    .wish-price { font-size: 0.7rem; }
    .wish-card-foot { padding-top: 0.5rem; }
    .person-mini span { display: none; }
    .wish-card-new { min-height: 200px; }
    .quick-add { padding: 1rem; }
    .quick-add-form { flex-direction: column; align-items: stretch; }
    .quick-add-form .btn { width: 100%; }
    .stat-row { width: 100%; }
    .stat-card { flex: 1 1 90px; min-width: 0; }
    .tab-bar, .admin-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; border-radius: var(--radius-lg); }
    .tab, .admin-tab { white-space: nowrap; }
    .filter-bar { align-items: flex-start; }
    .filter-form { width: 100%; }
    .filter-field { flex: 1 1 140px; }
    .filter-field select { width: 100%; }
    .form-side { flex-direction: column; }
    .field-narrow { max-width: none; }
    .field-row { flex-direction: column; }
    .field-row > .field { flex: 1 1 auto; }
    .field-row > .field.field-narrow { flex: 1 1 auto; max-width: none; }
    .visibility-option { padding: 0.7rem; }
    .profile-card { padding: 1.3rem; }
    .profile-avatar-wrap .avatar-xl { width: 76px; height: 76px; font-size: 1.4rem; }
    .profile-actions { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
    .profile-stats { gap: 0.9rem; }
    .reservation-card { flex-direction: column; }
    .reservation-media { width: 100%; height: auto; aspect-ratio: 16 / 10; }
    .settings-nav { gap: 0; }
    .settings-nav a { font-size: 0.8rem; padding: 0.45rem 0.55rem; }
    .settings-nav .icon { display: none; }
    .settings-card { padding: 1.2rem; }
    .admin-stat { padding: 0.9rem 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .footer-bottom { justify-content: flex-start; }
    .auth-card { padding: 1.4rem; border-radius: var(--radius-lg); }
    .auth-section { padding-top: 1.2rem; }
    .discover-search { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 0.6rem; }
    .discover-search input { flex: 1 1 160px; padding: 0.3rem 0.4rem; }
    .discover-search .btn { width: 100%; }
    .toast-stack { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}

@media (max-width: 480px) {
    .brand-word { display: none; }
    .brand-mark { width: 34px; height: 34px; }
    .wish-grid { grid-template-columns: 1fr; }
    .wish-card-text { display: block; }
    .detail-actions .btn, .gift-box-actions .btn { flex: 1 1 auto; }
    .detail-actions form, .gift-box-actions form { flex: 1 1 auto; }
    .detail-actions form .btn, .gift-box-actions form .btn { width: 100%; }
    .error-card { padding: 2rem 1.2rem; }
    .avatar-xl { width: 72px; height: 72px; font-size: 1.3rem; }
    .hero-title br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .btn:hover, .wish-card:hover, .idea-card:hover, .person-card:hover { transform: none; }
}
