:root {
  --bg: #faf6f2;
  --card: #ffffff;
  --line: #eee3db;
  --ink: #3a2a2c;
  --muted: #8b7773;
  --rose: #b4566a;
  --rose-d: #96435a;
  --rose-50: #fbeeee;
  --rose-100: #f5dcdc;
  --gold: #b8925a;
  --gold-50: #f7efe2;
  --green: #4f8a68;
  --green-50: #e7f2ea;
  --amber: #b9852f;
  --amber-50: #fbf1de;
  --red: #b4483f;
  --red-50: #fbe7e4;
  --r: 18px;
  --shadow: 0 1px 2px rgba(58, 42, 44, .04), 0 10px 30px -18px rgba(150, 67, 90, .35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 500 15px/1.5 var(--sans); color: var(--ink);
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(245, 220, 220, .55), transparent 70%),
    radial-gradient(50% 30% at 0% 100%, rgba(247, 239, 226, .8), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.neg { color: var(--red); }
.pos { color: var(--green); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* ---------- struktura ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.nav {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px;
  padding: 28px 18px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.brand svg { width: 40px; fill: none; stroke: var(--gold); stroke-width: 2.2; }
.brand svg path { fill: var(--rose-100); stroke: var(--rose); stroke-width: 1.5; }
.brand span { font: 700 26px/1 var(--serif); letter-spacing: -.01em; }
.brand em { color: var(--rose); }
.nav__list { list-style: none; display: grid; gap: 4px; }
.nav__list a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  text-decoration: none; color: var(--muted); font-weight: 700; transition: background .2s, color .2s;
}
.nav__list a:hover { background: var(--rose-50); color: var(--ink); }
.nav__list a[aria-current] { background: var(--ink); color: #fff; }
.nav__list a[aria-current] .ic { stroke: #f2c9c9; }
.nav__foot { margin-top: auto; padding: 0 8px; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--rose); font-weight: 700; font-size: 13px; text-align: left; }
.link-btn .ic { width: 15px; height: 15px; }
.link-btn:hover { text-decoration: underline; }

.main { padding: 34px clamp(18px, 4vw, 48px) 60px; max-width: 1160px; width: 100%; outline: none; }
.main > * + * { margin-top: 20px; }

/* ---------- elemente ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font: 700 clamp(34px, 5vw, 44px)/1 var(--serif); letter-spacing: -.01em; }
.page-head p { margin-top: 8px; color: var(--muted); }
.page-head__actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--rose); color: #fff; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 8px 18px -10px rgba(150, 67, 90, .8); transition: background .2s, transform .15s;
}
.btn:hover { background: var(--rose-d); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--rose-50); }
.btn--ghost.is-on { background: var(--rose-50); color: var(--rose-d); box-shadow: inset 0 0 0 1.5px var(--rose-100); }
.btn--ghost.is-on .ic { fill: currentColor; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--rose-50); color: var(--rose); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.card__head--pad { padding: 20px 22px 6px; margin: 0; }
.card h2 { font: 700 24px/1.1 var(--serif); }
.link { color: var(--rose); font-weight: 700; text-decoration: none; font-size: 14px; }
.link:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--tight { gap: 12px; }

.bar { height: 8px; border-radius: 99px; background: var(--rose-50); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d88b98, var(--rose)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bar--over span { background: linear-gradient(90deg, #e08a7f, var(--red)); }
.bar--big { height: 10px; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--gold-50); color: #8a6a3a; font-size: 12px; font-weight: 700; }
.status { font-size: 12px; font-weight: 800; }
.status--pa-filluar { color: var(--muted); }
.status--ne-proces { color: var(--amber); }
.status--perfunduar { color: var(--green); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot--vjen { background: var(--green); }
.dot--pritje { background: var(--amber); }
.dot--nuk-vjen { background: var(--red); }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--amber-50); color: #7a5a24; font-size: 14px; }
.note .ic { margin-top: 2px; }
.note--info { background: var(--gold-50); color: #6e5636; }
.spon-inline { color: var(--rose-d); }

.empty { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 28px; height: 28px; stroke: var(--rose); }

/* ---------- paneli ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(24px, 4vw, 40px); border-radius: 24px; overflow: hidden; color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(242, 201, 201, .35), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(184, 146, 90, .35), transparent 60%),
    linear-gradient(135deg, #4a2f35, #7a3d4f 55%, #a4566a);
  box-shadow: 0 30px 60px -30px rgba(122, 61, 79, .8);
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 0 0 30px rgba(255, 255, 255, .04), 0 0 0 60px rgba(255, 255, 255, .03); pointer-events: none; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: #f2c9c9; }
.hero__names { margin-top: 6px; font: 600 clamp(40px, 7vw, 64px)/1 var(--serif); letter-spacing: -.01em; }
.hero__names span { font-style: italic; color: #e8c38f; margin: 0 .12em; }
.hero__when { margin: 12px 0 18px; color: rgba(255, 255, 255, .85); }
.hero .btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.countdown { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 10px; }
.countdown div { padding: 14px 8px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.countdown b { display: block; font: 600 34px/1 var(--serif); }
.countdown span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f2c9c9; }

.stat { display: flex; align-items: center; gap: 18px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(150, 67, 90, .5); }
.stat--col { flex-direction: column; align-items: stretch; gap: 8px; }
.stat p { color: var(--muted); margin-top: 4px; }
.stat p b { color: var(--ink); }
.ring { position: relative; width: 104px; flex: none; }
.ring svg { width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring__bg { stroke: var(--rose-50); }
.ring__fg { stroke: var(--rose); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 26px/1 var(--serif); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--muted); font-size: 14px; }
.kv b { color: var(--ink); }
.kv--big { margin-top: 4px; font-size: 15px; }
.kv--big b { font: 700 24px/1 var(--serif); }

/* ---------- listat ---------- */
.list { list-style: none; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); }
.card:not(.card--flush) .row { padding-left: 0; padding-right: 0; }
.card:not(.card--flush) .list .row:first-child { border-top: 0; }
.card--flush .list > .row:first-child { border-top: 0; }
.card__head--pad + .list > .row:first-child { border-top: 1px solid var(--line); }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-weight: 700; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 5px; font-size: 13px; color: var(--muted); }
.row__note { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.row__actions { display: flex; gap: 2px; }
.due--late { color: var(--red); font-weight: 700; }
.due--soon { color: var(--amber); font-weight: 700; }
.check {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--rose-100); background: #fff; color: transparent; transition: .2s;
}
.check:hover { border-color: var(--rose); }
.check .ic { width: 16px; height: 16px; stroke-width: 3; }
.task.is-done .check { background: var(--green); border-color: var(--green); color: #fff; }
.task.is-progress .check { border-color: var(--amber); background: linear-gradient(90deg, var(--amber-50) 50%, #fff 50%); }
.row__tap { display: block; background: none; border: 0; padding: 4px 6px; margin: -4px -6px; border-radius: 10px; text-align: left; cursor: pointer; transition: background .2s; }
.row__tap:hover { background: var(--rose-50); }
.row__tap .row__note { display: block; }

/* zgjedhja e statusit */
.sheet { display: grid; gap: 10px; }
.sheet__opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, background .2s;
}
.sheet__opt:hover { border-color: var(--rose-100); background: #fffafa; }
.sheet__opt b { display: block; font-size: 16px; }
.sheet__opt small { display: block; color: var(--muted); font-size: 13px; }
.sheet__ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; }
.sheet__ic .ic { width: 18px; height: 18px; stroke-width: 3; }
.sheet__opt--pa-filluar[aria-pressed="true"] { border-color: var(--muted); background: #faf7f5; }
.sheet__opt--pa-filluar[aria-pressed="true"] .sheet__ic { border-color: var(--muted); color: var(--muted); }
.sheet__opt--ne-proces .sheet__ic { border-color: var(--amber); background: linear-gradient(90deg, var(--amber-50) 50%, #fff 50%); }
.sheet__opt--ne-proces[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-50); }
.sheet__opt--ne-proces[aria-pressed="true"] .sheet__ic { color: var(--amber); background: #fff; }
.sheet__opt--perfunduar .sheet__ic { border-color: var(--green); }
.sheet__opt--perfunduar[aria-pressed="true"] { border-color: var(--green); background: var(--green-50); }
.sheet__opt--perfunduar[aria-pressed="true"] .sheet__ic { background: var(--green); color: #fff; }
.sheet__edit { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 4px; border-radius: 14px; border: 0; background: var(--rose-50); color: var(--rose-d); font-weight: 800; cursor: pointer; }
.sheet__edit:hover { background: var(--rose-100); }
.task.is-done .row__title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(139, 119, 115, .5); }
.amount { font: 700 20px/1 var(--serif); white-space: nowrap; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px; border-radius: 99px; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--muted); transition: .2s;
}
.chip .ic { width: 16px; height: 16px; }
.chip:hover { border-color: var(--rose-100); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] .ic { fill: #f2c9c9; stroke: #f2c9c9; }
.select select, .status-select select {
  appearance: none; -webkit-appearance: none; min-height: 38px; padding: 0 36px 0 14px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--line); font-weight: 700; font-size: 13.5px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7773' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; color: var(--muted); }
.search input { width: 100%; min-height: 42px; padding: 0 16px 0 42px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; outline: none; }
.search input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-50); }

/* ---------- të ftuarit ---------- */
.mini { padding: 16px 18px; display: flex; align-items: baseline; gap: 10px; }
.mini b { font: 700 32px/1 var(--serif); }
.mini span { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.mini--vjen b { color: var(--green); }
.mini--pritje b { color: var(--amber); }
.mini--nuk-vjen b { color: var(--red); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-50); color: var(--rose-d); font: 700 20px/1 var(--serif); }
.status-select select { min-height: 36px; font-size: 13px; }
.status-select.status--vjen select { background-color: var(--green-50); border-color: #cfe5d6; color: var(--green); }
.status-select.status--pritje select { background-color: var(--amber-50); border-color: #f0dfbd; color: var(--amber); }
.status-select.status--nuk-vjen select { background-color: var(--red-50); border-color: #f1cfca; color: var(--red); }

/* ---------- buxheti ---------- */
.big-num { display: grid; gap: 6px; }
.big-num span { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.big-num b { font: 700 36px/1 var(--serif); }
.big-num small { color: var(--muted); }
.big-num--pos b { color: var(--green); }
.big-num--neg { background: var(--red-50); border-color: #f1cfca; }
.big-num--neg b { color: var(--red); }
.cats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.cat { width: 100%; display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.cat:hover { border-color: var(--rose-100); background: #fffafa; }
.cat__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.cat__top span { color: var(--muted); }
.cat small { font-size: 12.5px; font-weight: 700; }

/* ---------- furnitorët ---------- */
.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.vendor { display: flex; flex-direction: column; gap: 10px; }
.vendor--spon { border-color: #ecd6b4; }
.vendor__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spon { display: inline-flex; padding: 3px 10px; border-radius: 99px; background: #fff4df; color: #8a5a12; border: 1px solid #ecd6b4; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.vendor h3 { font: 700 24px/1.1 var(--serif); }
.vendor__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13.5px; color: var(--ink); }
.vendor__meta .ic { width: 15px; height: 15px; color: var(--rose); }
.stars { display: inline-flex; align-items: center; gap: 3px; }
.stars .ic { fill: var(--gold); stroke: var(--gold); width: 14px; height: 14px; }
.vendor__desc { color: var(--muted); font-size: 14px; }
.incl { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.incl li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; background: var(--rose-50); font-size: 12.5px; font-weight: 600; }
.incl .ic { width: 13px; height: 13px; stroke: var(--green); stroke-width: 2.6; }
.vendor__price { margin-top: auto; font: 700 21px/1.2 var(--serif); }
.vendor__price small, .vendor__contact small { display: block; font: 600 11.5px/1.3 var(--sans); color: var(--muted); }
.vendor__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 13.5px; }
.vendor__contact .ic { width: 15px; height: 15px; color: var(--rose); }
.vendor__contact a { color: var(--rose-d); font-weight: 700; word-break: break-all; }
.vendor__contact small { flex-basis: 100%; }
.vendor__actions { display: flex; gap: 8px; }
.vendor__actions .btn { flex: 1; }

.compare-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 30; transform: translateX(calc(-50% + 125px));
  display: flex; align-items: center; gap: 14px; max-width: min(760px, calc(100vw - 290px)); padding: 10px 10px 10px 16px;
  border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 20px 40px -14px rgba(58, 42, 44, .6);
}
.compare-bar[hidden] { display: none; }
.compare-bar__items { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.compare-bar__items span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: 13px; font-weight: 700; white-space: nowrap; }
.compare-bar__items button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; }
.compare-bar__items .ic { width: 12px; height: 12px; }
.compare-bar .btn { flex: none; }

.table-wrap { overflow-x: auto; margin: 6px -4px 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.compare th, .compare td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 700 20px/1.15 var(--serif); }
.compare tbody th { color: var(--muted); font-weight: 700; font-size: 13px; width: 130px; }
.compare a { color: var(--rose-d); font-weight: 700; word-break: break-all; }
.badge { display: block; width: fit-content; margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: var(--green-50); color: var(--green); font: 800 11px/1.5 var(--sans); }
.badge--gold { background: var(--gold-50); color: #8a6a3a; }

/* ---------- ftesa ---------- */
.invite-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.field legend { margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdfb; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-50); }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme input { position: absolute; opacity: 0; }
.theme span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: 13.5px; }
.theme span::before { content: ""; width: 22px; height: 22px; border-radius: 50%; }
.theme--roze span::before { background: linear-gradient(135deg, #f7dede, #c77a88); }
.theme--ari span::before { background: linear-gradient(135deg, #fbf5e8, #c19a5b); }
.theme--jeshile span::before { background: linear-gradient(135deg, #eef1e6, #6f7d55); }
.theme input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.theme input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

.invite-side { position: sticky; top: 24px; display: grid; gap: 14px; }
.phone { padding: 10px; border-radius: 34px; background: #2c2022; box-shadow: 0 30px 60px -30px rgba(58, 42, 44, .7); }
.inv {
  --i-bg: #fbf1f0; --i-ink: #5b2f3a; --i-acc: #b4566a;
  min-height: 520px; padding: 40px 26px; border-radius: 26px; text-align: center; color: var(--i-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(80% 50% at 50% 0%, rgba(255, 255, 255, .9), transparent 70%), var(--i-bg);
  position: relative; overflow: hidden;
}
.inv::before { content: ""; position: absolute; inset: 12px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--i-acc) 40%, transparent); pointer-events: none; }
.inv--ari { --i-bg: #fbf6ea; --i-ink: #4a3b25; --i-acc: #b18a4c; }
.inv--jeshile { --i-bg: #f1f3ea; --i-ink: #33402a; --i-acc: #6f7d55; }
.inv__kicker { font-size: 11px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--i-acc); }
.inv__names { font: 600 46px/1 var(--serif); display: grid; word-break: break-word; }
.inv__names span { font-style: italic; font-size: .6em; color: var(--i-acc); margin: 4px 0; }
.inv__msg { font: italic 500 17px/1.4 var(--serif); max-width: 280px; opacity: .85; }
.inv__date { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--i-acc) 40%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--i-acc) 40%, transparent); }
.inv__date b { font: 600 50px/1 var(--serif); color: var(--i-acc); }
.inv__date span { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; }
.inv__time { font-size: 14px; font-weight: 700; }
.inv__place { font-size: 14px; line-height: 1.5; }
.inv__place b { font: 700 20px/1.2 var(--serif); }
.share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- dritarja (dialog) ---------- */
.modal { margin: auto; border: 0; padding: 0; background: none; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.modal--wide { width: min(900px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(58, 42, 44, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__box { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -30px rgba(58, 42, 44, .6); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal__head h2 { font: 700 28px/1.1 var(--serif); }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.form__err { min-height: 0; color: var(--red); font-weight: 700; font-size: 13.5px; }
.form__err:empty { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 34px -12px rgba(58, 42, 44, .6); transition: .3s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- plani i uljes ---------- */
.seat-hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; background: var(--gold-50); color: #6e5636; font-size: 14px; }
.seat-hint.is-sel { background: var(--ink); color: #fff; animation: pulseHint 1.6s ease-in-out infinite; }
.seat-hint.is-sel .link-btn { color: #f2c9c9; }
@keyframes pulseHint { 50% { box-shadow: 0 0 0 6px rgba(180, 86, 106, .25); } }
.seating { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.seating > *, .tcard { min-width: 0; }
.seat-hint > span { flex: 1; min-width: 0; }
.seat-list { position: sticky; top: 20px; display: grid; gap: 10px; padding: 16px; max-height: calc(100vh - 40px); overflow: auto; transition: box-shadow .2s, border-color .2s; }
.seat-list.is-over { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-50); }
.seat-list__head { display: flex; justify-content: space-between; align-items: baseline; }
.seat-list__head b { font: 700 22px/1 var(--serif); }
.seat-list__head span { color: var(--muted); font-weight: 700; font-size: 13px; }
.search--sm input { min-height: 38px; font-size: 14px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--rose); }
.seat-guests { list-style: none; display: grid; gap: 8px; }
.seat-empty { padding: 18px 8px; text-align: center; color: var(--muted); font-size: 14px; }

.gchip {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px; border-radius: 14px; cursor: grab;
  background: #fff; border: 1.5px solid var(--line); user-select: none; -webkit-user-select: none; touch-action: none;
  transition: border-color .2s, background .2s, transform .2s, opacity .2s;
}
.gchip:hover { border-color: var(--rose-100); background: #fffafa; }
.gchip.is-sel { border-color: var(--rose); background: var(--rose-50); box-shadow: 0 0 0 3px var(--rose-50); }
.gchip.is-lifted { opacity: .35; }
.gchip__n { flex: none; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--rose); color: #fff; font-weight: 800; font-size: 13px; }
.gchip__name { min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; }
.gchip__name small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.gchip--sm { padding: 5px 9px 5px 5px; border-radius: 10px; gap: 7px; }
.gchip--sm .gchip__n { min-width: 22px; height: 22px; font-size: 11.5px; }
.gchip--sm .gchip__name { font-size: 12.5px; }
.ghost { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; max-width: 240px; border-color: var(--rose); box-shadow: 0 18px 30px -10px rgba(58, 42, 44, .45); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }

.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tcard {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px 14px; border-radius: var(--r);
  background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, transform .2s, background .2s;
}
.tcard.is-over { border-color: var(--rose); background: #fff7f8; transform: scale(1.03); }
.seat-hint.is-sel ~ .seating .tcard { border-style: dashed; border-color: var(--rose-100); cursor: pointer; }
.tround { position: relative; width: 150px; height: 150px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.tround__seats i {
  position: absolute; left: 50%; top: 50%; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border-radius: 50%;
  background: #fff; border: 2px solid var(--rose-100); transform: rotate(var(--a)) translateY(-64px);
  transition: background .3s, border-color .3s;
}
.tround__seats i.on { background: var(--rose); border-color: var(--rose); }
.tcard.is-full .tround__seats i.on { background: var(--green); border-color: var(--green); }
.tround__top {
  position: absolute; inset: 26px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--gold-50)); border: 1.5px solid #e8d7bd;
  box-shadow: inset 0 -6px 14px rgba(184, 146, 90, .15);
}
.tround__top b { font: 700 36px/1 var(--serif); color: var(--ink); }
.tround__top span { margin-top: 2px; font-weight: 800; font-size: 14px; color: var(--rose-d); }
.tcard.is-full .tround__top span { color: var(--green); }
.tround:hover .tround__top { border-color: var(--rose-100); }
.tcard__name { margin-top: 4px; font: 700 19px/1.1 var(--serif); text-align: center; }
.tcard__free { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tcard.is-full .tcard__free { color: var(--green); }
.tcard__guests { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 8px; }

.sheet__opt > .ic { width: 22px; height: 22px; color: var(--rose); }
.sheet__opt:disabled { opacity: .45; cursor: not-allowed; }
.sheet__opt--danger > .ic, .sheet__opt--danger b { color: var(--red); }
.sheet__label { font-size: 13px; font-weight: 800; color: var(--muted); }
.sheet__tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.tpick { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.tpick b { font: 700 24px/1 var(--serif); }
.tpick span { font-size: 11.5px; font-weight: 700; color: var(--green); }
.tpick:hover:not(:disabled) { border-color: var(--rose); background: var(--rose-50); }
.tpick:disabled { opacity: .4; cursor: not-allowed; }
.tpick:disabled span { color: var(--red); }

@media print {
  .nav, .splash, .seat-list, .seat-hint, .page-head__actions, .compare-bar, .toast, .main::before { display: none !important; }
  body { background: #fff; }
  .app { display: block; animation: none; }
  .seating { display: block; }
  .tables { grid-template-columns: repeat(3, 1fr); }
  .tcard { break-inside: avoid; box-shadow: none; }
}

/* ---------- hapja (splash) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(80% 60% at 50% 45%, #7a3d4f, #4a2f35 60%, #2e1d21);
  animation: splashOut .9s cubic-bezier(.7, 0, .3, 1) 3s forwards;
}
.splash__glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 195, 127, .35), transparent 65%);
  opacity: 0; animation: glow 2s ease 1.2s forwards;
}
.splash__dust { position: absolute; inset: 0; opacity: 0; animation: fadeIn 1.5s ease .4s forwards;
  background-image:
    radial-gradient(2px 2px at 18% 24%, #f6dfae, transparent), radial-gradient(1.5px 1.5px at 78% 18%, #fff, transparent),
    radial-gradient(2px 2px at 66% 72%, #f6dfae, transparent), radial-gradient(1.5px 1.5px at 30% 80%, #fff, transparent),
    radial-gradient(2.5px 2.5px at 86% 52%, #f6dfae, transparent), radial-gradient(1.5px 1.5px at 10% 56%, #fff, transparent),
    radial-gradient(2px 2px at 52% 12%, #f6dfae, transparent), radial-gradient(1.5px 1.5px at 44% 90%, #f6dfae, transparent);
}
.splash__in { position: relative; display: grid; justify-items: center; text-align: center; padding: 20px; }
.rings { width: min(280px, 70vw); overflow: visible; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); animation: ringsFloat 3s ease-in-out .9s; }
.sring { fill: none; stroke: url(#sGold); stroke-width: 9; stroke-dasharray: 377; stroke-dashoffset: 377; stroke-linecap: round; }
.sring--a { animation: draw 1.15s cubic-bezier(.6, .1, .3, 1) .15s forwards; transform-origin: 110px 110px; transform: rotate(-90deg); }
.sring--b { animation: draw 1.15s cubic-bezier(.6, .1, .3, 1) .45s forwards; transform-origin: 170px 110px; transform: rotate(90deg); }
.gem { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); animation: gemPop .5s cubic-bezier(.3, 1.6, .5, 1) 1.45s forwards; }
.spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: spark .9s ease 1.85s forwards; }
.splash__title {
  margin-top: 26px; font: 600 clamp(46px, 11vw, 72px)/1 var(--serif); color: #fff; letter-spacing: .01em;
  opacity: 0; transform: translateY(16px); filter: blur(6px); animation: rise 1s cubic-bezier(.2, .8, .2, 1) 1.5s forwards;
}
.splash__title em { color: #e8c37f; }
.splash__sub {
  margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: #f2c9c9;
  opacity: 0; animation: fadeIn 1s ease 2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes gemPop { to { transform: scale(1); } }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.6) rotate(90deg); } 100% { opacity: 0; transform: scale(.4) rotate(180deg); } }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes glow { to { opacity: 1; } }
@keyframes ringsFloat { 50% { transform: translateY(-6px); } }
@keyframes splashOut { to { opacity: 0; transform: scale(1.06); visibility: hidden; } }
.splash.is-skip { animation: splashOut .5s ease forwards; }
.app { animation: appIn 1s cubic-bezier(.2, .8, .2, 1) 3.1s both; }
body.no-splash .app { animation: none; }
@keyframes appIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .splash { animation-delay: 1s; }
  .splash *, .splash__title, .splash__sub { animation-duration: .01s !important; animation-delay: 0s !important; }
  .app { animation: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .invite-grid { grid-template-columns: 1fr 340px; }
}
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--3 > .stat:first-child { grid-column: 1 / -1; }
  .invite-grid { grid-template-columns: 1fr; }
  .invite-side { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ---------- telefon: navigimi poshtë ---------- */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .app { display: block; }
  .nav {
    position: fixed; inset: auto 0 0 0; z-index: 40; height: auto; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    flex-direction: row; gap: 0; border-right: 0; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .92);
  }
  .brand, .nav__foot { display: none; }
  .nav__list { grid-template-columns: repeat(7, 1fr); width: 100%; gap: 0; }
  .nav__list a { flex-direction: column; gap: 3px; padding: 7px 0; font-size: 9.5px; letter-spacing: -.01em; border-radius: 10px; text-align: center; }
  /* plani i uljes në telefon: lista lart, rrëshqet anash */
  .seating { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .seat-hint { flex-wrap: nowrap; font-size: 13px; }
  .tcard__guests { max-width: 100%; }
  .tcard__guests .gchip { max-width: 100%; }
  .tcard__guests .gchip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .seat-list { position: sticky; top: 6px; z-index: 5; max-height: none; overflow: visible; padding: 12px; box-shadow: 0 14px 30px -18px rgba(58, 42, 44, .5); }
  .seat-guests { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .seat-guests::-webkit-scrollbar { display: none; }
  .seat-guests .gchip { flex: none; max-width: 220px; touch-action: pan-x; }
  .seat-empty { padding: 8px; }
  .tables { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tcard { padding: 14px 6px 12px; }
  .tround { width: 128px; height: 128px; }
  .tround__seats i { width: 14px; height: 14px; margin: -7px 0 0 -7px; transform: rotate(var(--a)) translateY(-55px); }
  .tround__top { inset: 22px; }
  .tround__top b { font-size: 30px; }
  .tcard__guests .gchip { touch-action: pan-y; }
  .page-head__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .page-head__actions .btn:only-child, .page-head__actions .btn:last-child:nth-child(3) { grid-column: 1 / -1; }
  .nav__list a .ic { width: 21px; height: 21px; }
  .nav__list a[aria-current] { background: var(--rose-50); color: var(--rose-d); }
  .nav__list a[aria-current] .ic { stroke: var(--rose); }
  .main { padding: 22px 16px 110px; }
  .main::before { content: "Dasma Jonë"; display: block; margin-bottom: 14px; font: 700 22px/1 var(--serif); color: var(--rose); }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--tight { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mini { flex-direction: column; gap: 2px; padding: 12px; }
  .mini b { font-size: 26px; }
  .mini span { font-size: 12px; }
  .countdown { width: 100%; gap: 6px; grid-template-columns: repeat(4, 1fr); }
  .countdown b { font-size: 28px; }
  .countdown span { font-size: 9.5px; letter-spacing: .06em; }
  .cats { grid-template-columns: 1fr; }
  .row { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .row.guest .row__main { flex-basis: calc(100% - 60px); }
  .row.guest .status-select { margin-left: 50px; }
  .row.guest .row__actions { margin-left: auto; }
  .card__head--pad { padding: 18px 16px 4px; }
  .page-head__actions, .page-head__actions .btn { width: 100%; }
  .toolbar .select, .toolbar .select select { flex: 1 1 auto; }
  .form__row { grid-template-columns: 1fr; }
  .compare-bar { transform: translateX(-50%); bottom: 82px; max-width: calc(100vw - 24px); width: max-content; }
  .toast { bottom: 90px; }
  .modal__box { padding: 18px; }
}
