/* ==========================================================================
   wunsch.world – Designsystem
   Farben aus dem Logo: Wunsch-Rot #FB3D37 · Tinte #2E2727
   ========================================================================== */
:root {
  --red: #fb3d37;
  --red-600: #e52a25;
  --red-700: #c71f1b;
  --red-50: #fff1f0;
  --red-100: #ffe1df;
  --red-200: #ffc4c0;
  --ink: #2e2727;
  --ink-2: #4a4141;
  --muted: #857a7a;
  --line: #f0e6e4;
  --bg: #fff9f7;
  --card: #ffffff;
  --sun: #ffb74a;
  --mint: #2fbf8f;
  --mint-50: #e6f8f1;
  --sky: #4a8dff;
  --sky-50: #ebf2ff;
  --amber-50: #fff6e5;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-sm: 0 1px 2px rgba(46, 39, 39, .05), 0 2px 8px rgba(46, 39, 39, .04);
  --shadow: 0 2px 6px rgba(46, 39, 39, .04), 0 12px 32px -8px rgba(46, 39, 39, .10);
  --shadow-lg: 0 24px 60px -16px rgba(251, 61, 55, .25), 0 8px 24px -8px rgba(46, 39, 39, .12);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--red-600); text-decoration: none; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { background: var(--red-50); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt { margin-top: 24px } .mb { margin-bottom: 24px }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 760px; }
.section { padding: 48px 0; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- Header */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 247, .82);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(240, 230, 228, .7);
}
.site-header .container { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; margin-left: 12px; }
.nav a { color: var(--ink-2); font-weight: 700; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover, .nav a.active { background: var(--red-50); color: var(--red-600); }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 6px; border-radius: 12px; }
.user-menu { position: relative; }
.user-menu > button {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px 4px 4px; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink);
}
.user-menu .dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px; display: none; border: 1px solid var(--line);
}
.user-menu.open .dropdown { display: block; animation: pop .18s var(--ease); }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 12px; color: var(--ink); font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--red-50); color: var(--red-600); }
.dropdown hr { margin: 6px 0; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; align-items: stretch;
    background: #fff; padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow-lg); margin: 0; }
  .nav.open { display: flex; }
  .header-actions .btn-ghost { display: none; }
}

/* ------------------------------------------------------------ Avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--red-100); color: var(--red-700);
  display: inline-grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar-sm { width: 28px; height: 28px; font-size: .8rem; }

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s; white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(251, 61, 55, .6); }
.btn-primary:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(251, 61, 55, .7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--red-200); color: var(--red-600); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--red-50); color: var(--red-600); }
.btn-soft { background: var(--red-50); color: var(--red-600); }
.btn-soft:hover { background: var(--red-100); color: var(--red-700); }
.btn-success { background: var(--mint); color: #fff; }
.btn-success:hover { background: #24a87b; color: #fff; }
.btn-danger { background: #fff; color: var(--red-700); border-color: var(--red-200); }
.btn-danger:hover { background: var(--red-700); color: #fff; border-color: var(--red-700); }
.btn-sm { padding: 7px 14px; font-size: .875rem; }
.btn-lg { padding: 16px 30px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
form.inline { display: inline; }

/* -------------------------------------------------------------- Cards */
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; border: 1px solid rgba(240, 230, 228, .6); }
.card-sm { padding: 20px; border-radius: var(--radius); }
.card-flat { box-shadow: none; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

/* -------------------------------------------------------------- Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span, .label { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.field small, .hint { color: var(--muted); font-size: .84rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px;
  padding: 12px 16px; transition: border-color .2s, box-shadow .2s; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23857a7a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-100); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red); }
.error-text { color: var(--red-700); font-size: .85rem; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--red); flex: none; margin: 1px 0 0; }
.input-prefix { position: relative; }
.input-prefix input { padding-right: 44px; }
.input-prefix::after { content: "€"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }
.file-drop {
  border: 2px dashed var(--red-200); background: var(--red-50); border-radius: var(--radius); padding: 22px; text-align: center;
  cursor: pointer; transition: background .2s; position: relative; display: block;
}
.file-drop:hover { background: var(--red-100); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .fd-icon { font-size: 1.8rem; }
.file-drop img.preview { max-height: 180px; margin: 0 auto 10px; border-radius: 14px; }
.segmented { display: inline-flex; background: var(--red-50); border-radius: 999px; padding: 4px; gap: 4px; }
.segmented label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.segmented input { display: none; }
.segmented input:checked + span { color: #fff; }
.segmented label:has(input:checked) { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.pill-select { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-select label { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; transition: all .15s; }
.pill-select input { display: none; }
.pill-select label:has(input:checked) { border-color: var(--red); background: var(--red-50); color: var(--red-700); }

/* ------------------------------------------------------------- Alerts */
.flashes { position: fixed; top: 84px; right: 20px; z-index: 100; display: grid; gap: 10px; max-width: 420px; }
.alert { padding: 14px 18px; border-radius: 18px; font-weight: 600; border: 1px solid transparent; }
.flashes .alert { box-shadow: var(--shadow-lg); animation: slidein .35s var(--ease); display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--mint-50); color: #146b4f; border-color: #bdebd9; }
.alert-error { background: var(--red-50); color: var(--red-700); border-color: var(--red-200); }
.alert-info { background: var(--sky-50); color: #1f4f9e; border-color: #cddcff; }
.alert-warn { background: var(--amber-50); color: #8a5300; border-color: #ffe0a8; }
.alert .close { margin-left: auto; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; opacity: .6; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

/* -------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #f4eeed; color: var(--ink-2); white-space: nowrap; }
.badge-open, .badge-requested, .badge-pending, .badge-waiting { background: var(--amber-50); color: #9a5b00; }
.badge-funded, .badge-approved, .badge-answered { background: var(--sky-50); color: #2358b5; }
.badge-review { background: #f2ebff; color: #6a3fc4; }
.badge-fulfilled, .badge-paid, .badge-active, .badge-resolved { background: var(--mint-50); color: #127a57; }
.badge-refunded, .badge-failed, .badge-rejected, .badge-blocked, .badge-hidden { background: var(--red-50); color: var(--red-700); }
.badge-closed, .badge-private { background: #f1eded; color: var(--muted); }
.badge-admin { background: var(--ink); color: #fff; }
.badge-high { background: var(--red); color: #fff; }
.badge-public { background: var(--mint-50); color: #127a57; }
.badge-unlisted { background: var(--sky-50); color: #2358b5; }
.badge-fulfilled::before { content: "✦"; }

/* ------------------------------------------------------------ Progress */
.progress { height: 10px; background: var(--red-50); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff7a5c, var(--red)); transition: width .6s var(--ease); }
.progress.done > span { background: linear-gradient(90deg, #4fd6a8, var(--mint)); }
.progress-lg { height: 14px; }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.progress-meta strong { color: var(--ink); }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 61, 55, .14), transparent 65%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -240px; bottom: -280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 74, .16), transparent 65%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: "✦"; position: absolute; font-size: .45em; top: -.35em; right: -.55em; animation: twinkle 2.4s infinite; }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 540px; margin: 20px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 28px; color: var(--muted); font-weight: 700; font-size: .92rem; flex-wrap: wrap; }
.hero-trust span::before { content: "✓ "; color: var(--mint); font-weight: 900; }
.hero-visual { position: relative; min-height: 460px; }
.hero-visual .gift { width: 250px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; filter: drop-shadow(0 30px 40px rgba(251, 61, 55, .28)); animation: float 5s ease-in-out infinite; }
.hero-visual .ring { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff 55%, transparent 56%); box-shadow: 0 0 0 18px rgba(251, 61, 55, .06), 0 0 0 40px rgba(251, 61, 55, .04); }
.float-card { position: absolute; z-index: 2; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 12px; width: 190px; animation: float 6s ease-in-out infinite; }
.float-card .fc-img { height: 70px; border-radius: 14px; display: grid; place-items: center; font-size: 2.2rem; margin-bottom: 8px; }
.float-card strong { display: block; font-size: .9rem; }
.float-card .price { color: var(--red); font-weight: 800; font-size: .88rem; }
.float-card.c1 { left: 0; top: 0; animation-delay: -1s; }
.float-card.c2 { right: 0; top: 70px; animation-delay: -3s; width: 200px; }
.float-card.c3 { right: 20px; bottom: 0; animation-delay: -2s; }
.toast-fake { display: flex; gap: 10px; align-items: center; }
.toast-fake .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--mint-50); display: grid; place-items: center; flex: none; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .5; transform: scale(.7) rotate(20deg); } }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
}

/* ----------------------------------------------------------- Sections */
.section-title { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-title p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-block; font-weight: 800; color: var(--red); background: var(--red-50); padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 14px; }
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 16px;
  background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; box-shadow: 0 8px 18px -6px rgba(251, 61, 55, .6); }
.feature-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--red-50); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 14px; }
.use-cases .card { text-align: center; }
.use-cases .emoji { font-size: 2.6rem; display: block; margin-bottom: 8px; }
.cta-band { background: var(--ink); color: #fff; border-radius: var(--radius-xl); padding: 56px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: "✦"; position: absolute; font-size: 12rem; color: var(--red); opacity: .18; right: -10px; top: -60px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9cfcf; }

/* ------------------------------------------------------ Liste (Shop) */
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.list-card { display: block; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s; border: 1px solid rgba(240, 230, 228, .6); }
.list-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.list-card .lc-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--red-100), #ffe9d6); display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.list-card .lc-cover img { width: 100%; height: 100%; object-fit: cover; }
.list-card .lc-body { padding: 18px 20px 20px; }
.list-card h3 { margin: 0 0 6px; }
.list-card .lc-meta { display: flex; flex-wrap: wrap; white-space: nowrap; gap: 6px; align-items: center; color: var(--muted); font-size: .88rem; font-weight: 600; }

.shop-hero { position: relative; }
.shop-cover { height: 260px; background: linear-gradient(135deg, #ff8a6b 0%, var(--red) 55%, #d6246b 100%); border-radius: 0 0 var(--radius-xl) var(--radius-xl); overflow: hidden; position: relative; }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .25)); }
.shop-cover .sparkles { position: absolute; inset: 0; color: rgba(255, 255, 255, .5); font-size: 2rem; }
.shop-head { margin-top: -70px; position: relative; z-index: 2; }
.shop-head .card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.shop-head .avatar-lg { margin-top: -10px; }
.shop-head h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.shop-stats { display: flex; gap: 22px; }
.shop-stats div { text-align: center; }
.shop-stats strong { display: block; font-size: 1.5rem; font-weight: 900; }
.shop-stats span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 760px) {
  .shop-head .card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .shop-cover { height: 180px; }
}

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; position: relative; border: 1px solid rgba(240, 230, 228, .6); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product .p-img { aspect-ratio: 1; background: #fbf4f2; display: grid; place-items: center; overflow: hidden; position: relative; margin: 10px 10px 0; border-radius: 20px; }
.product .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product:hover .p-img img { transform: scale(1.04); }
.product .p-img .ph { font-size: 3.4rem; opacity: .6; }
.product .p-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.product .p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h3 { margin: 0; font-size: 1.05rem; }
.product h3 a { color: var(--ink); }
.product .p-price { font-size: 1.3rem; font-weight: 900; }
.product .p-foot { margin-top: auto; display: grid; gap: 12px; }
.product.is-fulfilled .p-img::after { content: "✦ Erfüllt"; position: absolute; inset: auto 12px 12px auto; background: var(--mint); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 999px; font-size: .85rem; }
.product.is-fulfilled .p-img img { filter: saturate(.7); }
.prio-high { background: var(--red); color: #fff; }

.item-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.item-detail .gallery { background: #fff; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; display: grid; place-items: center; font-size: 6rem; padding: 12px; }
.item-detail .gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.item-detail .price-big { font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; }
@media (max-width: 860px) { .item-detail { grid-template-columns: 1fr; } }

.gift-form { display: grid; gap: 14px; }
.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.amount-chips button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.amount-chips button:hover { border-color: var(--red); color: var(--red); }
.sum-box { background: var(--red-50); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; }
.sum-box .r { display: flex; justify-content: space-between; font-weight: 600; }
.sum-box .r.total { font-size: 1.15rem; font-weight: 900; border-top: 2px dashed var(--red-200); padding-top: 8px; margin-top: 4px; }

.wall { display: grid; gap: 12px; }
.wall-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--shadow-sm); }
.wall-item p { margin: 4px 0 0; }

/* ------------------------------------------------------------ App UI */
.page-head { padding: 36px 0 20px; }
.page-head h1 { margin: 0; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stat .label { color: var(--muted); font-size: .85rem; font-weight: 700; }
.stat .value { font-size: 1.8rem; font-weight: 900; letter-spacing: -.02em; margin-top: 4px; }
.stat.accent { background: var(--red); color: #fff; border-color: var(--red); }
.stat.accent .label { color: rgba(255, 255, 255, .8); }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark .label { color: rgba(255, 255, 255, .7); }

.manage-items { display: grid; gap: 12px; }
.manage-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; background: #fff; padding: 12px; border-radius: 20px; border: 1px solid var(--line); }
.manage-item .thumb { width: 72px; height: 72px; border-radius: 16px; background: #fbf4f2; display: grid; place-items: center; font-size: 1.8rem; overflow: hidden; }
.manage-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-item .mi-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .manage-item { grid-template-columns: 56px 1fr; } .manage-item .thumb { width: 56px; height: 56px; } .manage-item .mi-actions { grid-column: 1 / -1; justify-content: flex-start; } }

.empty { text-align: center; padding: 48px 20px; }
.empty .em { font-size: 3.5rem; margin-bottom: 8px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fffaf9; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* --------------------------------------------------------------- Admin */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 28px 0 60px; }
.admin-side { position: sticky; top: 92px; align-self: start; background: #fff; border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.admin-side .side-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 10px 12px 6px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: var(--ink-2); font-weight: 700; }
.admin-side a:hover { background: var(--red-50); color: var(--red-600); }
.admin-side a.active { background: var(--ink); color: #fff; }
.admin-side .count { margin-left: auto; background: var(--red); color: #fff; font-size: .75rem; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
.admin-main { min-width: 0; }
@media (max-width: 960px) { .admin-layout { grid-template-columns: 1fr; } .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; } .admin-side .side-title { display: none; } }

.thread { display: grid; gap: 14px; }
.msg { max-width: 82%; padding: 14px 18px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.msg .who { font-size: .8rem; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.msg.mine { justify-self: end; background: var(--red-50); border-color: var(--red-100); border-bottom-right-radius: 8px; }
.msg.staff { justify-self: start; border-bottom-left-radius: 8px; }
.msg.internal { background: var(--amber-50); border-color: #ffe0a8; border-style: dashed; }

.checklist { list-style: none; padding: 0; display: grid; gap: 4px; }
.checklist .ok { color: #127a57; } .checklist .fail { color: var(--red-700); font-weight: 700; }

/* ---------------------------------------------------------------- Auth */
.auth-page { background: radial-gradient(circle at 20% 0%, rgba(251, 61, 55, .12), transparent 50%), radial-gradient(circle at 100% 100%, rgba(255, 183, 74, .15), transparent 45%), var(--bg); }
.auth-wrap { max-width: 480px; margin: 0 auto; padding: 48px 20px; width: 100%; }
.auth-card { padding: 36px; }
.auth-logo { height: 40px; width: auto; margin: 0 auto 24px; }
.auth-card h1 { text-align: center; font-size: 1.8rem; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.hp { position: absolute; left: -9999px; }

/* -------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: #cfc5c5; margin-top: 64px; padding: 48px 0 28px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red-200); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------------- Misc */
.demo-banner { background: repeating-linear-gradient(45deg, var(--amber-50), var(--amber-50) 12px, #fff1d6 12px, #fff1d6 24px); border: 2px dashed #ffcf7a; border-radius: var(--radius); padding: 16px 18px; font-weight: 600; color: #7a4a00; }
.receipt-preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; max-height: 520px; }
.receipt-preview img { width: 100%; }
.receipt-preview iframe { width: 100%; height: 480px; border: 0; }
.success-burst { font-size: 4.5rem; animation: pop .5s var(--ease); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; }
details summary { cursor: pointer; font-weight: 700; }
.legal h2 { margin-top: 28px; font-size: 1.3rem; }
.product .p-foot { grid-template-columns: minmax(0, 1fr); }
.product .p-foot .btn { white-space: normal; text-align: center; }
.brand { flex: none; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .ticket-layout { grid-template-columns: 1fr; } .ticket-layout form[style] { position: static !important; } }
@media (max-width: 560px) {
  .brand img { height: 24px; }
  .header-actions .btn-primary { padding: 9px 14px; font-size: .88rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product .p-body { padding: 12px; gap: 8px; }
  .product .p-price { font-size: 1.05rem; }
  .product .btn { padding: 10px 12px; font-size: .88rem; }
  .product .p-img { margin: 6px 6px 0; border-radius: 16px; }
  .card { padding: 20px; }
  .msg { max-width: 92%; }
  .product .progress-meta span:last-child { display: none; }
}
