/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  padding-inline: max(env(safe-area-inset-left), 0px) max(env(safe-area-inset-right), 0px);
}
a { text-decoration:none; color:inherit; }
button { cursor:pointer; font-family:inherit; border:none; background:none; }
input, select, textarea { font-family:inherit; }

:focus-visible {
  outline: 2px solid var(--purple) !important;
  outline-offset: 2px !important;
}
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--purple) !important;
  outline-offset: 2px !important;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════
   PAGE SISTEM
═══════════════════════════════════════ */
.page {
  display: none !important;
  min-height: 100svh;
  width:100%;
}
.page.active {
  display: block !important;
  animation: pgSlideIn var(--page-dur) cubic-bezier(.25,.46,.45,.94);
}
.page.active.no-page-anim {
  animation:none;
}
#page-chat.active {
  display: flex !important;
  flex-direction: column;
}
@keyframes pgSlideIn {
  from { opacity:0; transform:translateY(6px) scale(0.99); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.container { width:min(100%, var(--content-max)); max-width:var(--content-max); margin:0 auto; padding:0 var(--page-pad); }

/* App bar */
.app-bar {
  position:sticky; top:0; z-index:200;
  background:rgba(255,253,249,.94);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  height:56px; display:flex; align-items:center;
  padding:0 var(--page-pad); gap:12px;
}
.app-bar-title { font-size:17px; font-weight:700; color:var(--ink); flex:1; }
.app-bar-centered { position:sticky; }
.app-bar-centered .app-bar-title {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  flex:none;
  width:max-content;
  max-width:calc(100% - 132px);
  text-align:center;
  pointer-events:none;
}

/* Balanced app bar for screens that need a truly centered title */
.app-bar-balanced {
  display:grid;
  grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);
  align-items:center;
  gap:12px;
}
.app-bar-balanced .app-bar-title {
  position:static;
  transform:none;
  flex:none;
  width:auto;
  max-width:100%;
  text-align:center;
  justify-self:center;
  pointer-events:none;
}
.app-bar-balanced > .btn:first-child {
  justify-self:start;
}
.app-bar-balanced > .btn:last-child {
  justify-self:end;
  margin-left:0;
}
.app-bar-spacer {
  width:40px;
  height:40px;
  justify-self:end;
  visibility:hidden;
  pointer-events:none;
}

/* Bottom nav */
.bottom-nav {
  position:fixed; bottom:0; left:50%; right:auto; transform:translateX(-50%); z-index:300;
  width:min(100%, var(--app-shell-max));
  background:rgba(255,253,249,.97);
  backdrop-filter:blur(24px) saturate(200%);
  -webkit-backdrop-filter:blur(24px) saturate(200%);
  border-top:1px solid var(--border);
  display:none;
  padding:10px var(--page-pad) max(10px, env(safe-area-inset-bottom));
  box-shadow:0 -14px 34px rgba(24,24,27,0.08);
}
.bottom-nav.show {
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  align-items:end;
  gap:4px;
  width:100%;
}
.bn-item {
  display:flex; flex-direction:column;
  align-items:center; gap:2px;
  padding:6px 4px 3px;
  cursor:pointer;
  transition:all .2s cubic-bezier(.34,1.2,.64,1);
  color:var(--ink4);
  border-radius:14px;
  -webkit-tap-highlight-color:transparent;
  min-width:0;
  position:relative;
}
.bn-item:hover { background:var(--purple-bg); }
.bn-item:active { transform:scale(.88); }
/* Active state — ikona dobija fill disk */
.bn-item.active { color:var(--purple); }
.bn-item.active .bn-svg {
  stroke:var(--purple);
  animation:navPop .22s cubic-bezier(.34,1.6,.64,1);
}
.bn-item.active .bn-label { color:var(--purple); font-weight:700; }
/* Active dot indicator */
.bn-item.active::after {
  content:'';
  position:absolute;
  bottom:-2px;
  width:4px; height:4px;
  border-radius:50%;
  background:var(--purple);
}
@keyframes navPop {
  from { transform:scale(.7) translateY(3px); opacity:.6; }
  to   { transform:scale(1) translateY(0);   opacity:1; }
}
.bn-svg {
  width:20px; height:20px;
  stroke:var(--ink3);
  fill:none;
  stroke-width:1.75;
  transition:stroke .2s;
  flex-shrink:0;
  display:block;
}
.bn-label {
  font-size:8px; font-weight:500;
  color:var(--ink4);
  transition:all .2s;
  white-space:nowrap;
  letter-spacing:.01em;
  line-height:1;
}
/* Create dugme — centralni element */
.bn-create {
  align-self:start;
  transform:translateY(-18px);
}
.bn-plus-btn {
  width:54px; height:54px;
  border-radius:18px;
  background:linear-gradient(145deg, var(--royal-blue) 0%, var(--purple) 100%);
  box-shadow:0 10px 20px rgba(154,52,56,.20), 0 2px 6px rgba(127,42,47,.14);
  display:flex; align-items:center; justify-content:center;
  transition:all .22s cubic-bezier(.34,1.3,.64,1);
  margin:0 auto 3px;
}
.bn-plus-btn svg {
  width:20px; height:20px;
  stroke:#fff; stroke-width:2;
  fill:none;
  transition:transform .22s cubic-bezier(.34,1.5,.64,1);
}
.bn-create:hover .bn-plus-btn { transform:scale(1.06); box-shadow:0 8px 20px rgba(154,52,56,.28); }
.bn-create:active .bn-plus-btn { transform:scale(.88); box-shadow:0 2px 8px rgba(154,52,56,.24); }
.bn-create:hover .bn-plus-btn svg { transform:rotate(90deg); }
.bn-create .bn-label { font-size:9px; font-weight:700; color:var(--purple); }

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 920;
  background: rgba(19, 16, 24, 0.46);
  display: none;
  pointer-events: none;
  align-items: flex-end;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px 16px;
  overflow-y: auto;
}
.sheet-overlay[style*="display: flex"] {
  pointer-events: auto;
}
#city-picker-overlay,
#mod-overlay,
#cancel-overlay {
  pointer-events: none;
}
#city-picker-overlay[style*="display: flex"],
#mod-overlay[style*="display: flex"],
#cancel-overlay[style*="display: flex"] {
  pointer-events: auto;
}
.action-sheet {
  width: min(100%, 560px);
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--border);
  border-radius: 28px 28px 20px 20px;
  box-shadow: 0 24px 60px rgba(23, 20, 28, 0.16);
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.action-sheet-create {
  max-width: 520px;
}
.action-sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  margin: 0 auto 14px;
}
.action-sheet-title {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.action-sheet-copy {
  margin-top: 8px;
  color: var(--ink3);
  font-size: 14px;
  line-height: 1.5;
}
.action-sheet-sticky-head {
  position: sticky;
  top: -16px;
  z-index: 2;
  background: rgba(255, 253, 249, 0.98);
  padding-top: 10px;
  padding-bottom: 8px;
}
.create-entry-options {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
}
.create-entry-option {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  padding: 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.create-entry-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
  border-color: var(--purple-br);
}
.create-entry-option-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.create-entry-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(154,52,56,.12), rgba(127,42,47,.08));
  color: var(--royal-blue);
}
.create-entry-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.create-entry-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.create-entry-desc {
  margin-top: 6px;
  color: var(--ink3);
  font-size: 13px;
  line-height: 1.5;
  max-width: 42ch;
}
.create-entry-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.create-entry-meta.primary {
  background: rgba(154,52,56,.10);
  color: var(--royal-blue);
}
.create-entry-meta.muted {
  background: #f6f1eb;
  color: var(--ink3);
}
.create-organizer-suggest-list {
  display: grid;
  gap: 8px;
}
.create-organizer-suggest {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.create-organizer-suggest:hover {
  border-color: var(--purple-br);
  transform: translateY(-1px);
  box-shadow: var(--sh-sm);
}
.create-organizer-suggest.is-selected {
  border-color: rgba(154,52,56,.24);
  background: rgba(154,52,56,.06);
}
.create-organizer-suggest-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.create-organizer-suggest-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink3);
}

/* Event card */
.ev-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden;
  cursor:pointer; transition:all .22s cubic-bezier(.34,1.2,.64,1);
  box-shadow:var(--sh-sm);
}
.ev-card:hover {
  box-shadow:var(--sh);
  transform:translateY(-2px);
}
.ev-img {
  height:138px; display:flex;
  align-items:flex-end; padding:10px; position:relative;
}
.ev-img::after {
  content:''; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 46%, rgba(0,0,0,0.08) 100%),
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%, rgba(255,255,255,0.02) 100%);
  pointer-events:none;
}
.ev-img-a,
.ev-img-b,
.ev-img-c,
.ev-img-d,
.ev-img-e {
  background:
    radial-gradient(circle at 22% 24%, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 44%),
    radial-gradient(circle at 80% 72%, rgba(195,170,140,.18) 0%, rgba(195,170,140,0) 48%),
    linear-gradient(135deg, #F4ECE1 0%, #EDE1D3 100%);
}
.ev-body { padding:15px 15px 14px; }
.ev-title { font-size:16px; font-weight:800; color:var(--ink); line-height:1.24; margin-bottom:5px; letter-spacing:-0.02em; }
.ev-meta  { font-size:12px; color:var(--ink3); margin-bottom:11px; }
.ev-footer { display:flex; align-items:center; justify-content:space-between; }
.ev-spots {
  font-size:12px; font-weight:800; color:var(--purple2);
  padding:8px 12px; border-radius:999px;
  background:var(--purple-bg);
}
.ev-spots.ev-spots-ok,
.ev-spots.ev-spots-neutral {
  background:var(--purple-bg);
  color:var(--purple2);
}
.ev-spots.ev-spots-warning,
.ev-spots.ev-spots-urgent {
  background:var(--amber-bg);
  color:var(--amber2);
}
.ev-spots.ev-spots-full {
  background:var(--bg3);
  color:var(--ink3);
}
.ev-avs { display:flex; }
.ev-av {
  width:22px; height:22px; border-radius:50%;
  border:2px solid var(--white); margin-left:-5px;
  background:var(--bg3); font-size:9px; font-weight:700; color:var(--ink3);
  display:flex; align-items:center; justify-content:center;
}
.ev-av:first-child { margin-left:0; }
.ev-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ev-grid-2 .ev-card { animation:cardReveal .3s ease both; }
.ev-grid-2 .ev-card:nth-child(1) { animation-delay:.05s; }
.ev-grid-2 .ev-card:nth-child(2) { animation-delay:.10s; }
.ev-grid-2 .ev-card:nth-child(3) { animation-delay:.15s; }
.ev-grid-2 .ev-card:nth-child(4) { animation-delay:.20s; }
.ev-grid-2 .ev-card:nth-child(5) { animation-delay:.25s; }
.ev-grid-2 .ev-card:nth-child(6) { animation-delay:.30s; }
@keyframes cardReveal {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Invite card */
.inv-card {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--r); padding:14px;
  display:flex; gap:12px; align-items:start;
  cursor:pointer; transition:all .2s;
}
.inv-card:hover {
  border-color:var(--purple-br);
  box-shadow:var(--sh-sm);
}
.inv-title { font-size:14px; font-weight:700; color:var(--ink); margin-bottom:3px; }
.inv-meta  { font-size:12px; color:var(--ink3); }

/* Capacity bar */
.cap-bar  { height:5px; background:var(--bg3); border-radius:3px; overflow:hidden; margin-top:5px; }
.cap-fill { height:100%; background:linear-gradient(90deg, var(--purple) 0%, var(--amber) 100%); border-radius:3px; }

/* Chat bubble */
.msg { display:flex; gap:8px; margin-bottom:14px; align-items:flex-end; }
.msg.me { flex-direction:row-reverse; }
.msg.grouped { margin-top:-6px; }
.msg.grouped .msg-sender { display:none; }
.bubble {
  position: relative;
  max-width: min(74%, 520px);
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.10);
  border: 1px solid rgba(17, 24, 39, 0.06);
}
.msg .bubble {
  background: linear-gradient(180deg, #ffffff 0%, #f9f6f1 100%);
  color: var(--ink);
  border-radius: 6px 18px 18px 18px;
}
.msg.me .bubble {
  background: linear-gradient(135deg, var(--night-navy) 0%, var(--royal-blue) 100%);
  color: #fff;
  border-color: rgba(49, 71, 174, 0.28);
  border-radius: 18px 6px 18px 18px;
}
.msg .bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: inherit;
  border-bottom: inherit;
  border-radius: 0 0 0 4px;
  transform: rotate(45deg);
}
.msg.me .bubble::before {
  left: auto;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
  border-right: inherit;
  border-top: inherit;
  border-radius: 0 4px 0 0;
}
.msg-time { font-size:11px; color:var(--ink4); margin-top:3px; display:block; }
.msg.me .msg-time { text-align:right; }
.msg-time.is-pending { color:var(--ink3); }
.msg-time.is-failed { color:var(--danger, #B42318); font-weight:600; }
.msg.me .bubble.msg-send-failed {
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.35);
}

.msg-enter {
  animation: msgPopIn .22s ease-out both;
}
@keyframes msgPopIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Swipe card */
.swipe-card {
  position:absolute; width:100%; top:0; left:0;
  background:var(--white); border:1px solid var(--border);
  border-radius:22px; padding:20px;
  box-shadow:0 8px 32px rgba(24,24,27,.1);
  transform-origin:bottom center;
  transition:transform .32s cubic-bezier(.25,.46,.45,.94), opacity .22s, box-shadow .2s;
  backface-visibility:hidden;
}
.swipe-card.back  { transform:scale(0.94) translateY(14px); z-index:0; }
.swipe-card.front {
  z-index:1;
  border:1px solid rgba(154,52,56,0.12);
  box-shadow:0 16px 48px rgba(24,24,27,0.12), 0 0 0 1px rgba(154,52,56,0.05);
}
.swipe-card.front:hover { box-shadow:0 16px 48px rgba(154,52,56,.16); }
.swipe-card.go-left  {
  transform:rotate(-22deg) translateX(-140%) !important;
  opacity:0 !important;
  transition:transform .35s cubic-bezier(.55,.06,.68,.19), opacity .25s !important;
}
.swipe-card.go-right {
  transform:rotate(16deg) translateX(145%) !important;
  opacity:0 !important;
  transition:transform .35s cubic-bezier(.55,.06,.68,.19), opacity .25s !important;
}
.swipe-indicator {
  position:absolute; top:20px; padding:6px 14px;
  border-radius:8px; font-size:15px; font-weight:800;
  letter-spacing:.04em; opacity:0; pointer-events:none;
  transition:opacity .15s; z-index:10;
}
.swipe-indicator.like { right:16px; background:rgba(22,163,74,.15); color:#16a34a; border:2px solid #16a34a; }
.swipe-indicator.skip { left:16px;  background:rgba(220,38,38,.12); color:#dc2626; border:2px solid #dc2626; }

/* Badges */
.venue-verified-badge {
  display:inline-flex; align-items:center; gap:4px;
  background:var(--green-bg); color:var(--green);
  font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px;
}
.venue-pending-badge {
  display:inline-flex; align-items:center; gap:4px;
  background:var(--gold-bg); color:var(--gold);
  font-size:11px; font-weight:700; padding:3px 8px; border-radius:6px;
}
.noshow-badge {
  display:inline-flex; align-items:center; gap:4px;
  background:var(--red-bg); color:var(--red);
  font-size:10px; font-weight:700; padding:2px 7px; border-radius:6px;
}
.latecancel-badge {
  display:inline-flex; align-items:center; gap:4px;
  background:var(--gold-bg); color:var(--gold);
  font-size:10px; font-weight:700; padding:2px 7px; border-radius:6px;
}

/* Trust badges — NOVO */
.trust-badge {
  display:inline-flex; align-items:center; gap:4px;
  font-size:11px; font-weight:600; padding:3px 8px; border-radius:6px;
}
.trust-email   { background:#EFF6FF; color:#1D4ED8; }
.trust-phone   { background:#F0FDF4; color:#15803D; }
.trust-selfie  { background:#FFF7ED; color:#C2410C; }
.trust-video   { background:#FAF5FF; color:#7E22CE; }

/* Logo */
.logo-img      { display:block; height:40px; width:auto; object-fit:contain; }
.logo-img-sm   { display:block; height:32px; width:auto; object-fit:contain; }
.logo-img-auth { display:block; height:60px; width:auto; object-fit:contain; margin:0 auto; }

/* Skeleton */
.skeleton {
  background:linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size:200% 100%;
  animation:shimmer 1.4s infinite;
  border-radius:8px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk-card { background:var(--white); border:1px solid var(--border); border-radius:var(--r-lg); overflow:hidden; padding:0 0 14px; }
.sk-img  { height:130px; margin-bottom:14px; border-radius:0; }
.sk-line { height:14px; margin:0 14px 8px; }
.sk-line-short  { width:60%; }
.sk-line-medium { width:80%; }

.page-loading {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px 18px;
  min-height:46vh;
  color:#7b4034;
  font-size:14px;
  font-weight:700;
}

.page-loading-shell {
  width:min(100%, 620px);
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid rgba(176,48,48,.12);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(244,239,230,.96) 0%, rgba(255,255,255,.92) 100%);
  box-shadow:0 12px 30px rgba(176,48,48,.08);
}

.page-loading-heading {
  height:17px;
  width:48%;
  border-radius:999px;
}

.page-loading-sub {
  height:12px;
  width:72%;
  border-radius:999px;
  margin-bottom:2px;
}

.page-loading-card {
  background:#fff;
  border:1px solid rgba(176,48,48,.10);
  border-radius:14px;
  padding:12px;
  display:grid;
  gap:8px;
}

.page-loading-line {
  height:11px;
  width:100%;
  border-radius:8px;
}

.page-loading-line-short {
  width:62%;
}

.page-loading-foot {
  height:34px;
  width:36%;
  border-radius:10px;
}

/* Empty state */
.empty-state {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; padding:48px 24px; text-align:center; gap:12px;
  max-width:420px; margin:0 auto;
  background:linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(252,248,243,.98) 100%);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--sh-sm);
}
.empty-ico   { font-size:48px; line-height:1; opacity:.5; }
.empty-title { font-size:17px; font-weight:700; color:var(--ink); }
.empty-sub   { font-size:14px; color:var(--ink3); line-height:1.55; max-width:260px; }

/* Toast */
#toast-container {
  position:fixed; bottom:calc(72px + 12px); left:50%; transform:translateX(-50%);
  z-index:1000; display:flex; flex-direction:column; align-items:center;
  gap:8px; pointer-events:none; width:calc(100% - 32px); max-width:400px;
}
.toast {
  display:flex; align-items:center; gap:10px;
  padding:12px 16px; border-radius:12px;
  font-size:14px; font-weight:500; color:#fff;
  box-shadow:0 8px 24px rgba(24,24,27,.18);
  pointer-events:all; width:100%;
  animation:toastIn .28s cubic-bezier(.34,1.56,.64,1);
  backdrop-filter:blur(10px);
}
.toast.hiding { animation:toastOut .22s ease forwards; }
.toast-success { background:rgba(22,163,74,.92); }
.toast-error   { background:rgba(220,38,38,.92); }
.toast-info    { background:rgba(154,52,56,.92); }
.toast-warning { background:rgba(217,119,6,.92); }
.toast-ico { font-size:18px; flex-shrink:0; }
.toast-msg { flex:1; line-height:1.4; }
@keyframes toastIn  { from{opacity:0;transform:translateY(16px) scale(.95)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes toastOut { from{opacity:1;transform:translateY(0) scale(1)} to{opacity:0;transform:translateY(8px) scale(.95)} }

/* Lang switch */
.lang-sw { display:flex; background:var(--bg2); border-radius:20px; padding:3px; gap:2px; }
.lbtn { padding:4px 10px; border-radius:16px; font-size:11px; font-weight:700; letter-spacing:.05em; color:var(--ink3); cursor:pointer; transition:all .15s; }
.lbtn.active { background:var(--ink); color:#fff; }

/* ═══════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════ */
#page-landing {
  background:
    radial-gradient(circle at top right, rgba(231,224,215,.34), transparent 26%),
    linear-gradient(180deg, #F3EEE7 0%, #F3E9DF 100%);
}

/* Landing nav */
.land-nav {
  position:fixed; top:0; left:0; right:0; z-index:500;
  height:60px; display:flex; align-items:center;
  justify-content:center; padding:0 var(--page-pad);
  background:rgba(255,253,249,.94);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  pointer-events:auto;
}
.land-nav-inner {
  width:min(100%, var(--landing-max)); max-width:var(--landing-max);
  display:flex; align-items:center; justify-content:space-between;
}
.land-logo {
  font-family:var(--font-display);
  font-size:22px; font-weight:900; letter-spacing:-1px; color:var(--ink);
}
.land-logo em { font-style:italic; color:var(--royal-blue); }
.land-nav .land-logo {
  position:relative;
  display:inline-block;
  width:158px;
  height:58px;
  font-size:0;
  line-height:0;
}
.land-nav .land-logo img {
  opacity:1;
  width:auto;
  height:52px;
}
.land-nav .land-logo::after {
  content:none;
}
#page-login .land-logo,
#page-register .land-logo {
  position:relative;
  display:inline-block;
  width:170px;
  height:72px;
  font-size:0 !important;
  line-height:0;
}
#page-login .land-logo::after,
#page-register .land-logo::after {
  content:none;
}
.land-nav-right { display:flex; align-items:center; gap:8px; }
/* Venue dugme u navu — amber */
.land-nav .btn-outline:last-of-type {
  border-color:var(--amber-br);
  color:var(--amber2);
}
.land-nav .btn-outline:last-of-type:hover {
  background:var(--amber-bg);
  border-color:var(--amber2);
}

/* Hero */
.hero {
  padding:72px var(--page-pad) 56px;
  width:min(100%, var(--landing-max)); max-width:var(--landing-max); margin:0 auto;
  position:relative; overflow:hidden;
  border-radius:30px;
  border:none;
  background-color:#F3EEE7;
  background-image:url("/slike/landing-desktop-optimized.jpg");
  background-size:cover;
  background-position:center 84%;
  aspect-ratio:16 / 9;
  min-height:420px;
  z-index:1;
}
.hero-rug-wrap {
  position:relative;
  margin:2px 0 26px;
  z-index:2;
}
.hero-rug {
  position:relative;
  overflow:hidden;
  width:100%;
  height:clamp(78px, 11vw, 124px);
  border-radius:28px;
  border:1px solid rgba(18, 24, 39, 0.06);
  background-color:rgba(255,255,255,0.72);
  background-repeat:no-repeat;
  background-position:center;
  background-size:cover;
  box-shadow:
    0 20px 50px rgba(25, 24, 33, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);
}
.hero-rug::after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 100%);
  pointer-events:none;
}
.hero-rug-variant-1 {
  background-image:url("../../slika za header1.png");
}
.hero-rug-variant-2 {
  background-image:url("../../slika za header 2.png");
}
.hero-rug-variant-3 {
  background-image:url("../../slika za header 3.png");
}
.hero::before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(243,238,231,.92) 0%, rgba(243,238,231,.72) 34%, rgba(243,238,231,.24) 58%, rgba(243,238,231,.02) 80%);
  pointer-events:none;
}
.hero::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(24,20,17,0) 0%, rgba(24,20,17,.02) 100%);
  pointer-events:none;
}
.hero > * {
  position:relative;
  z-index:2;
}
.land-nav-inner,
.hero-btns,
.hero-cats-grid,
.hero-cards,
.hero-note,
.land-section,
.land-footer,
#page-landing button,
#page-landing a,
#page-landing [onclick] {
  position:relative;
  z-index:2;
  pointer-events:auto;
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:7px;
  background:rgba(255,255,255,.84); color:var(--royal-blue);
  border:1px solid rgba(49,71,174,.10);
  font-size:12px; font-weight:700; padding:5px 13px;
  border-radius:20px; margin-bottom:24px; letter-spacing:.02em;
  box-shadow:var(--sh-sm);
}
.hero-dot {
  width:6px; height:6px; border-radius:50%; background:var(--royal-blue);
  animation:blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 {
  font-family:var(--font-ui);
  font-style:normal;
  font-size:clamp(36px,9vw,68px);
  font-weight:800; line-height:.96; letter-spacing:-2.6px;
  color:var(--ink); margin-bottom:18px;
  max-width:11ch;
  text-wrap:balance;
  text-shadow:0 1px 0 rgba(255,255,255,.18);
}
.hero h1 em {
  font-family:var(--font-display);
  font-style:italic;
  font-weight:400;
  color:var(--royal-blue);
  position:relative;
  letter-spacing:-1.2px;
}
.hero h1 em::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0;
  height:3px; border-radius:2px;
  background:linear-gradient(90deg, var(--royal-blue), var(--amber));
  animation:lineGrow 0.8s 0.5s ease both;
}
@keyframes lineGrow { from{transform:scaleX(0);transform-origin:left} to{transform:scaleX(1)} }

.hero-sub { font-size:17px; line-height:1.65; color:rgba(47,51,63,.88); font-weight:400; max-width:460px; margin-bottom:24px; }
.hero-btns { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.hero-note { font-size:13px; color:var(--ink4); margin-bottom:16px; cursor:pointer; }
.hero-note:hover { color:var(--royal-blue); }

.hero-discovery {
  width:min(100%, var(--landing-max));
  max-width:var(--landing-max);
  margin:0 auto;
  padding:20px var(--page-pad) 8px;
}

@media (max-width: 900px) {
  .hero {
    aspect-ratio:4 / 5;
    min-height:540px;
    background-position:60% 90%;
  }
}

.hero-cats-wrap { margin-bottom:22px; }
.hero-cats-label {
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink3);
  margin-bottom:12px;
}
.hero-cats-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.hero-cat-card {
  appearance:none;
  width:100%;
  min-height:184px;
  border-radius:28px;
  padding:22px 24px 22px;
  text-align:left;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
  border:1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 16px 34px rgba(24,24,27,.14);
  font:inherit;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  position:relative;
}
.hero-cat-card.music { background:var(--grad-music); }
.hero-cat-card.sport { background:var(--grad-sport); }
.hero-cat-card.culture { background:var(--grad-culture); }
.hero-cat-card.social { background:var(--grad-social); }
.hero-cat-card.nature { background:var(--grad-nature); }
.hero-cat-card.food { background:linear-gradient(135deg,#3B2817 0%,#7B4A1F 100%); }
.hero-cat-card:hover {
  transform:translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 22px 42px rgba(24,24,27,.18);
}
.hero-cat-symbol {
  position:absolute;
  top:18px;
  right:18px;
  min-height:auto;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
}
.hero-cat-bottom {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  margin-top:auto;
  padding-right:56px;
}
.hero-cat-icon {
  width:auto;
  height:auto;
  display:block;
  position:static;
  opacity:.96;
  font-size:28px;
  line-height:1;
}
.hero-cat-name {
  font-size:24px;
  font-weight:800;
  color:#fff;
  letter-spacing:.01em;
  line-height:1;
}
.hero-cat-copy {
  font-size:15px;
  line-height:1.36;
  color:rgba(255,255,255,.84);
  max-width:18ch;
}
.hero-tag-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:14px;
  margin-right:6px;
  font-size:12px;
  line-height:1;
}

/* Mini event kartice u hero */
.hero-cards {
  display:flex; gap:10px; overflow-x:auto;
  scrollbar-width:none; margin:0 calc(var(--page-pad) * -1); padding:4px var(--page-pad) 4px;
}
.hero-cards::-webkit-scrollbar { display:none; }
.hero-ev-card {
  flex-shrink:0; width:160px;
  background:var(--white); border:1px solid var(--border);
  border-radius:14px; overflow:hidden; box-shadow:var(--sh-sm);
}
.hero-ev-img  {
  aspect-ratio:16 / 9;
  width:100%;
  display:flex;
  align-items:flex-end;
  padding:8px;
}
.hero-ev-body { padding:10px; }
.hero-ev-title { font-size:13px; font-weight:700; color:var(--ink); margin-bottom:2px; line-height:1.3; }
.hero-ev-meta  { font-size:11px; color:var(--ink4); margin-bottom:8px; }
.hero-ev-meta-line {
  line-height:1.3;
}
.hero-ev-meta-line-secondary {
  margin-top:2px;
  color:var(--ink3);
}
.hero-ev-spots {
  font-size:11px;
  font-weight:700;
  margin-bottom:6px;
}
.hero-ev-spots-ok,
.hero-ev-spots-neutral {
  color:var(--purple);
}
.hero-ev-spots-warning,
.hero-ev-spots-urgent {
  color:var(--amber2);
}
.hero-ev-spots-full {
  color:var(--ink3);
}
.hero-cat-tag {
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  color:var(--royal-blue);
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  box-shadow:0 8px 20px rgba(24,24,27,.12);
}
.hero-ev-btn {
  width:100%; padding:6px; border-radius:8px;
  background:var(--ink); color:var(--white);
  font-size:11px; font-weight:700; border:none;
  cursor:pointer; font-family:inherit; transition:background .15s;
}
.hero-ev-btn:hover { background:var(--purple); }
  .hero-cat-icon {
    font-size:22px;
  }
  .hero-cat-bottom { padding-right:48px; }
  .hero-cat-name {
    font-size:19px;
  }
  .hero-cat-copy {
    max-width:none;
    font-size:13px;
  }
}

/* Landing sekcije */
.land-section { padding:64px var(--page-pad); width:min(100%, var(--landing-max)); max-width:var(--landing-max); margin:0 auto; }
.land-section-dark { padding:64px var(--page-pad); background:var(--ink); }
.land-section-dark .land-inner { width:min(100%, var(--landing-max)); max-width:var(--landing-max); margin:0 auto; }

.land-eyebrow {
  font-size:11px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--purple);
  display:flex; align-items:center; gap:8px; margin-bottom:28px;
}
.land-eyebrow::after { content:''; width:24px; height:2px; background:var(--purple); display:block; }
.land-eyebrow.light { color:var(--purple-bg); }
.land-eyebrow.light::after { background:var(--purple-bg); }

/* Problem sekcija */
.prob-list { border-top:1px solid var(--border); }
.prob-row {
  padding:22px 0; border-bottom:1px solid var(--border);
  display:grid; grid-template-columns:28px 1fr; gap:14px;
}
.prob-n { font-size:12px; font-weight:700; color:var(--purple); padding-top:4px; }
.prob-txt { font-size:clamp(16px,3vw,21px); font-weight:600; color:var(--ink); line-height:1.35; }
.prob-txt s { color:var(--ink4); text-decoration-color:var(--purple); }
.prob-resolve { color:var(--purple) !important; }

@media (max-width: 540px) {
  #landing-about .prob-row {
    grid-template-columns:34px 1fr;
    gap:12px;
    padding:18px 8px 18px 10px;
  }
  #landing-about .prob-n {
    padding-left:2px;
  }
}

/* How sekcija */
.how-step {
  display:grid; grid-template-columns:44px 1fr;
  gap:16px; padding:26px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  align-items:start;
}
.how-step:last-child { border-bottom:none; }
.how-n {
  width:38px; height:38px; border-radius:50%;
  background:var(--purple); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:800; flex-shrink:0; margin-top:2px;
}
.how-title { font-size:18px; font-weight:700; color:#fff; margin-bottom:5px; }
.how-desc  { font-size:14px; color:rgba(255,255,255,.5); line-height:1.6; }

/* Who sekcija */
.who-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:24px; }
.who-card { border-radius:18px; padding:26px 20px; }
.who-card.user  { background:var(--ink); }
.who-card.venue { background:var(--purple-bg); border:1px solid var(--purple-br); }
.who-type { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px; }
.who-card.user  .who-type { color:var(--purple-bg); }
.who-card.venue .who-type { color:var(--purple); }
.who-h { font-size:19px; font-weight:800; line-height:1.2; margin-bottom:9px; }
.who-card.user  .who-h { color:#fff; }
.who-card.venue .who-h { color:var(--ink); }
.who-p { font-size:13px; line-height:1.6; margin-bottom:14px; }
.who-card.user  .who-p { color:rgba(255,255,255,.45); }
.who-card.venue .who-p { color:var(--ink3); }
.who-list { list-style:none; display:flex; flex-direction:column; gap:5px; }
.who-list li { font-size:12px; font-weight:500; display:flex; align-items:center; gap:7px; }
.who-card.user  .who-list li { color:rgba(255,255,255,.5); }
.who-card.venue .who-list li { color:var(--ink3); }
.who-list li::before { content:''; width:4px; height:4px; border-radius:50%; flex-shrink:0; }
.who-card.user  .who-list li::before { background:var(--purple-bg); }
.who-card.venue .who-list li::before { background:var(--purple); }

/* CTA sekcija */
.land-cta {
  background:
    radial-gradient(circle at top right, rgba(178,74,50,.10) 0%, transparent 34%),
    radial-gradient(circle at bottom left, rgba(36,28,26,.08) 0%, transparent 30%),
    linear-gradient(160deg, #F2E8DD 0%, #E8DBCC 100%);
  padding:60px 20px; text-align:center; position:relative; overflow:hidden;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.land-cta::before {
  content:''; position:absolute; top:-50%; right:-20%;
  width:400px; height:400px; border-radius:50%;
  background:radial-gradient(circle, rgba(178,74,50,0.10) 0%, transparent 60%);
  pointer-events:none;
}
.land-cta-bg {
  position:absolute; font-size:180px; font-weight:800;
  color:rgba(36,28,26,.06); top:50%; left:50%;
  transform:translate(-50%,-50%); white-space:nowrap;
  pointer-events:none; letter-spacing:-5px;
}
.land-cta h2 {
  font-size:clamp(26px,6vw,48px); font-weight:800;
  color:var(--ink); line-height:1.1; margin-bottom:12px;
  letter-spacing:-.8px; position:relative; z-index:1;
}
.land-cta h2 em { font-style:italic; }
.land-cta p { font-size:16px; color:var(--ink3); margin-bottom:24px; position:relative; z-index:1; }
.land-cta-btns { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; position:relative; z-index:1; }
.land-cta .btn {
  min-height:48px;
  padding:12px 22px;
  border-radius:16px;
  font-size:15px;
}
.land-cta .btn-white {
  background:var(--royal-blue);
  color:#fff;
  box-shadow:0 10px 22px rgba(178,74,50,.22);
}
.land-cta .btn-white:hover {
  background:var(--purple2);
}
.land-cta .btn-w-out {
  background:rgba(255,255,255,.68);
  color:var(--ink);
  border:1.5px solid rgba(36,28,26,.16);
}
.land-cta .btn-w-out:hover {
  border-color:rgba(36,28,26,.28);
  background:rgba(255,255,255,.82);
}

/* Footer */
.land-footer { background:var(--ink); padding:36px 20px; }
.lf-inner { width:min(100%, var(--landing-max)); max-width:var(--landing-max); margin:0 auto; padding-inline:var(--page-pad); }
.lf-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:20px; }
.lf-logo { font-family:var(--font-display); font-size:20px; font-weight:900; color:#fff; letter-spacing:-1px; }
.lf-logo em { font-style:italic; color:rgba(255,255,255,.5); }
.lf-logo {
  position:relative;
  display:inline-block;
  width:132px;
  height:52px;
}
.lf-logo img {
  opacity:1;
  width:auto;
  height:44px;
}
.lf-logo::after {
  content:none;
}
.lf-links { display:flex; gap:18px; list-style:none; flex-wrap:wrap; }
.lf-links a { font-size:13px; color:rgba(255,255,255,.35); transition:color .15s; }
.lf-links a:hover { color:rgba(255,255,255,.7); }
.lf-bot {
  border-top:1px solid rgba(255,255,255,.08); padding-top:18px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px;
}
.lf-copy { font-size:12px; color:rgba(255,255,255,.2); }
.age-badge { background:var(--purple); color:#fff; font-size:11px; font-weight:700; padding:3px 10px; border-radius:8px; letter-spacing:.04em; }

/* ═══════════════════════════════════════
   AUTH PAGES — samo za 1a placeholder
═══════════════════════════════════════ */
#page-login, #page-register { background:var(--white); }
.auth-wrap {
  min-height:100svh; display:flex; align-items:center; justify-content:center; padding:24px 20px;
  background:
    radial-gradient(circle at top center, rgba(154,52,56,0.08) 0%, transparent 36%),
    linear-gradient(180deg, #f8f4ef 0%, #f3ede5 52%, #efe7dc 100%);
}
.auth-box {
  width:100%; max-width:430px;
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border:1px solid rgba(154,52,56,0.14);
  box-shadow:0 20px 60px rgba(36,28,26,0.08), 0 8px 24px rgba(154,52,56,0.10);
  border-radius:28px;
  padding:30px 24px 24px;
}
.auth-title {
  font-size:clamp(30px, 7vw, 42px);
  font-weight:800; color:var(--ink); margin-bottom:8px; text-align:center;
  letter-spacing:-0.04em; line-height:1.02;
}
.auth-sub {
  font-size:15px; color:var(--ink3); margin-bottom:24px; text-align:center;
  line-height:1.6; max-width:32ch; margin-inline:auto;
}
.auth-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(154,52,56,0.10);
  color: var(--purple3);
  border: 1px solid rgba(154,52,56,0.24);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.auth-footer { text-align:center; margin-top:20px; font-size:14px; color:var(--ink3); }
.auth-footer a { color:var(--purple3); cursor:pointer; font-weight:600; }
.auth-wrap .btn {
  border-radius: 14px;
}
.auth-wrap .btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 22px rgba(154,52,56,0.22);
}
.auth-wrap .btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 22px rgba(154,52,56,0.22);
}
.auth-wrap .btn-primary:hover {
  background: var(--purple2) !important;
  box-shadow: 0 12px 24px rgba(137,41,45,0.26);
  transform: translateY(-1px);
}
.auth-wrap .btn-purple:hover {
  background: var(--purple2) !important;
  box-shadow: 0 12px 24px rgba(137,41,45,0.26) !important;
  transform: translateY(-1px);
}
.auth-wrap .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(137,41,45,0.24);
}
.auth-wrap .btn-purple:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(137,41,45,0.24) !important;
}
.auth-wrap .btn-outline {
  background: #FFFDF9;
  border-color: #D6C8BA;
  color: #6E6258;
  box-shadow: none;
}
.auth-wrap .btn-outline:hover {
  background: #F7F0E8;
  border-color: #C9B7A7;
  color: #4A4038;
}
#login-submit-btn,
#reg-submit-btn {
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 15px;
  letter-spacing: 0.01em;
}
@media (min-width: 1280px) {
  .auth-wrap {
    padding: 40px 28px;
  }
  .auth-box {
    max-width: 520px;
    padding: 34px 30px 28px;
    border-radius: 30px;
  }
  .auth-title {
    font-size: clamp(36px, 3.2vw, 48px);
  }
  .auth-sub {
    font-size: 16px;
  }
  .auth-wrap .form-input,
  .auth-wrap .form-select,
  .auth-wrap .form-textarea {
    min-height: 50px;
    font-size: 15px;
  }
}
@media (min-width: 1800px) {
  .auth-box {
    max-width: 560px;
  }
}
.auth-legal-card {
  background: linear-gradient(180deg, rgba(250,250,249,0.94) 0%, rgba(255,255,255,0.98) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin: 0 0 18px;
}
.auth-legal-summary {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink3);
  margin-bottom: 10px;
}
.auth-check-row {
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0 0 10px;
  font-size:13px;
  color:var(--ink2);
  line-height:1.5;
}
.auth-check-row:last-of-type {
  margin-bottom: 0;
}
.auth-check-row input {
  margin-top: 3px;
}
#ob-interests {
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 6px;
  margin: -6px;
  transition: border-color .15s, box-shadow .15s;
}
.social-row { display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.social-btn {
  width:100%; padding:13px 16px; border-radius:14px;
  border:1.5px solid var(--border2); background:var(--white);
  font-size:14px; font-weight:500; color:var(--ink);
  cursor:pointer; font-family:inherit; transition:all .15s;
  display:flex; align-items:center; gap:10px;
}
.social-btn:hover { border-color:var(--purple-br); background:var(--purple-bg); transform:translateY(-1px); }
.or-div { text-align:center; font-size:13px; color:var(--ink4); margin:16px 0; position:relative; }
.or-div::before, .or-div::after {
  content:''; position:absolute; top:50%; width:42%; height:1px; background:var(--border);
}
.or-div::before { left:0; } .or-div::after { right:0; }

/* Type options (register) */
.type-opt {
  padding:18px 16px; border:1.5px solid rgba(24,24,27,0.1); border-radius:18px;
  cursor:pointer; text-align:center; transition:all .18s;
  position:relative; z-index:1; user-select:none;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
  width:100%; appearance:none; -webkit-appearance:none;
  min-width: 0;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,250,249,0.9) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9);
}
.type-opt:hover { border-color:var(--purple-br); transform:translateY(-1px); box-shadow:0 10px 22px rgba(154,52,56,0.10); }
.type-opt.sel {
  border-color:rgba(154,52,56,0.40);
  background:
    radial-gradient(circle at top center, rgba(154,52,56,0.10) 0%, transparent 75%),
    linear-gradient(180deg, rgba(255,249,246,0.98) 0%, rgba(255,255,255,0.98) 100%);
  box-shadow:0 14px 28px rgba(154,52,56,0.14), inset 0 1px 0 rgba(255,255,255,0.85);
}
.type-opt-ico   { font-size:30px; margin-bottom:10px; }
.type-opt-label { font-size:15px; font-weight:800; color:var(--ink); letter-spacing:-0.02em; }
.type-opt-sub   { font-size:12px; color:var(--ink3); margin-top:5px; }
.type-opt-label,
.type-opt-sub {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --page-pad: clamp(20px, 3.2vw, 40px);
    --app-shell-max: 100vw;
    --content-max: min(1180px, calc(100vw - 64px));
    --landing-max: min(1320px, calc(100vw - 64px));
    --dialog-max: min(720px, calc(100vw - 64px));
  }
  body { background:var(--bg) !important; }
  .page {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    min-height:100svh;
    box-shadow:none !important;
    background:var(--bg) !important;
    position:relative;
    border-radius:0 !important;
    overflow-x:hidden;
  }
  #page-landing {
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.58), transparent 24%),
      linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%) !important;
  }
  #page-landing .hero,
  #page-landing .land-section,
  #page-landing .land-inner,
  #page-landing .land-footer .lf-inner { max-width:var(--landing-max); margin-left:auto; margin-right:auto; }
  .bottom-nav {
    max-width:none !important;
    left:0 !important;
    right:0 !important;
    transform:none !important;
    border-radius:0 !important;
    width:100% !important;
  }
  .app-bar {
    max-width:none !important;
    left:0 !important;
    right:0 !important;
    transform:none !important;
    width:100% !important;
  }
  .land-nav { justify-content:center; }
  .ev-bar-foot,
  .ob-footer {
    max-width:none !important;
    left:0 !important;
    right:0 !important;
    transform:none !important;
    width:100% !important;
  }
  #city-picker-overlay > div, #mod-overlay > div, #create-entry-overlay > div { max-width:var(--dialog-max) !important; margin:auto !important; }
  #toast-container { max-width:var(--dialog-max) !important; left:50% !important; transform:translateX(-50%) !important; }
  .ev-grid-2 { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
  #page-chats .app-bar { width:100% !important; max-width:none !important; left:auto !important; right:auto !important; transform:none !important; }
  .who-grid  { grid-template-columns:1fr 1fr; }
  .int-grid  { grid-template-columns:repeat(4, 1fr) !important; }
  ::-webkit-scrollbar { width:4px; }
  ::-webkit-scrollbar-track { background:transparent; }
  ::-webkit-scrollbar-thumb { background:var(--bg3); border-radius:2px; }
  ::-webkit-scrollbar-thumb:hover { background:var(--ink4); }
  .hero-rug-wrap {
    margin:8px 0 30px;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  :root {
    --page-pad: clamp(18px, 3.4vw, 28px);
    --content-max: min(980px, calc(100vw - 44px));
    --landing-max: min(1040px, calc(100vw - 44px));
    --dialog-max: min(760px, calc(100vw - 44px));
  }
  body {
    background:
      radial-gradient(circle at top right, rgba(231,224,215,0.7) 0%, transparent 24%),
      linear-gradient(180deg, #fffdf9 0%, #f7f2ea 100%) !important;
  }
  .bottom-nav {
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
    background: rgba(255,253,249,.96) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -14px 30px rgba(23,20,28,0.08) !important;
  }
  .bn-item {
    border-radius: 16px;
  }
  .bn-create {
    transform: translateY(-14px);
  }
  .bn-plus-btn {
    width: 56px;
    height: 56px;
    border-radius: 20px;
  }
}
@media (min-width: 1100px) {
  :root {
    --bottom-nav-space: 0px;
    --content-max: min(1360px, calc(100vw - var(--desktop-nav-w) - 88px));
    --landing-max: min(1420px, calc(100vw - 88px));
    --dialog-max: min(860px, calc(100vw - var(--desktop-nav-w) - 120px));
  }
  body {
    background:
      radial-gradient(circle at top right, rgba(231,224,215,0.78) 0%, transparent 28%),
      radial-gradient(circle at left center, rgba(154,52,56,0.05) 0%, transparent 18%),
      linear-gradient(180deg, #fffdf9 0%, #f7f2ea 100%);
  }
  .hero-rug {
    border-radius:34px;
  }
  .page:not(#page-landing):not(#page-login):not(#page-register) {
    padding-left: calc(var(--desktop-nav-w) + 28px);
  }
  .bottom-nav {
    top: 22px !important;
    bottom: 22px !important;
    left: 18px !important;
    right: auto !important;
    transform: none !important;
    width: var(--desktop-nav-w) !important;
    border-radius: 32px !important;
    border: 1px solid var(--border) !important;
    padding: 14px 10px !important;
    background: rgba(255,253,249,.88) !important;
    box-shadow: 0 20px 46px rgba(23,20,28,0.08) !important;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }
  .bottom-nav.show {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    width: var(--desktop-nav-w) !important;
  }
  .bn-item {
    width: 100%;
    min-height: 72px;
    padding: 10px 6px 8px;
    border-radius: 20px;
    gap: 8px;
  }
  .bn-item:hover {
    background: rgba(255,255,255,.78);
  }
  .bn-item.active::after {
    bottom: auto;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  .bn-svg {
    width: 22px;
    height: 22px;
  }
  .bn-label {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .bn-create {
    transform: none;
    align-self: stretch;
    margin: 2px 0 4px;
  }
  .bn-plus-btn {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    margin-bottom: 6px;
    background: linear-gradient(145deg, var(--royal-blue) 0%, var(--purple) 100%);
  }
  .bn-create .bn-label {
    font-size: 10px;
  }
  .sheet-overlay {
    padding-left: calc(var(--desktop-nav-w) + 34px);
    justify-content: center;
    align-items: center;
  }
  .action-sheet-create {
    max-width: 540px;
    border-radius: 28px;
  }
  #toast-container {
    left: calc(50% + 46px) !important;
  }
}
@media (min-width: 1280px) {
  body {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .page:not(#page-landing):not(#page-login):not(#page-register) {
    position: relative;
    width: min(calc(100% - 28px), 1560px);
    min-height: calc(100svh - 36px);
    margin: 0 auto;
    border-radius: 34px;
    overflow: clip;
    background:
      radial-gradient(circle at top right, rgba(231,224,215,0.34), transparent 22%),
      linear-gradient(180deg, rgba(255,253,249,0.96) 0%, rgba(248,243,235,0.98) 100%);
    border: 1px solid rgba(223, 214, 204, 0.92);
    box-shadow:
      0 28px 70px rgba(23,20,28,0.08),
      0 8px 24px rgba(23,20,28,0.04);
    padding-right: 28px;
  }
  .page:not(#page-landing):not(#page-login):not(#page-register)::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 14% 20%, rgba(154,52,56,0.04), transparent 18%),
      radial-gradient(circle at 86% 82%, rgba(127,42,47,0.05), transparent 18%);
  }
  .page:not(#page-landing):not(#page-login):not(#page-register) > * {
    position: relative;
    z-index: 1;
  }
  .bottom-nav {
    left: max(18px, calc(50% - 780px + 18px)) !important;
  }
  .sheet-overlay {
    padding-left: max(calc(var(--desktop-nav-w) + 34px), calc(50vw - 780px + var(--desktop-nav-w) + 34px));
    padding-right: max(24px, calc(50vw - 780px + 40px));
  }
}
@media (min-width: 1200px) {
  .ev-grid-2 { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .page { max-width:100% !important; }
  .ev-grid-2 { grid-template-columns:repeat(3,1fr) !important; }
}
@media (max-width: 767px) {
  .land-nav {
    height: 60px;
    min-height: 60px;
    padding: 0 12px;
  }
  .land-nav-inner {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .land-nav .land-logo {
    width: 100px;
    height: 34px;
    flex: 0 0 auto;
  }
  .land-nav .land-logo img {
    height: 32px;
  }
  .land-nav-right {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .land-nav .lang-sw {
    order: 0;
  }
  #landing-login-btn {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 13px;
  }
  #landing-register-btn {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 13px;
  }
  .land-nav-right > .btn-outline:not(#landing-login-btn) {
    display: none;
  }
  .app-bar {
    min-height: 56px;
    height: auto;
    padding-top: max(0px, env(safe-area-inset-top));
    padding-bottom: 0;
  }
  .btn {
    min-height: 44px;
  }
  .page {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
  }
  .bottom-nav,
  .app-bar,
  .ev-bar-foot,
  .ob-footer {
    width:100% !important;
    max-width:none !important;
    border-radius:0 !important;
  }
  .bottom-nav {
    background: rgba(255,253,249,.97) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -14px 28px rgba(23,20,28,0.08) !important;
  }
  .bn-item {
    padding: 6px 4px 4px;
    gap: 4px;
    border-radius: 14px;
    min-height: 48px;
  }
  .bn-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--ink3);
  }
  .bn-item.active .bn-label {
    color: var(--purple);
  }
  .bn-plus-btn {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(154,52,56,.22), 0 2px 6px rgba(127,42,47,.12);
  }
  .ev-grid-2 {
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  }
  #page-landing .hero {
    aspect-ratio: auto;
    background-image: url("/slike/landing-mobile-optimized.jpg");
    background-color: #F3EEE7;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 95%;
    min-height: 780px;
    padding-top: 56px;
    padding-bottom: 40px;
  }
  #page-landing .hero::before {
    inset: auto 0 0 0;
    height: 52%;
    background: linear-gradient(180deg, rgba(243,238,231,0.02) 0%, rgba(243,238,231,0.36) 22%, rgba(243,238,231,0.62) 52%, rgba(243,238,231,0.92) 100%);
    z-index: 1;
  }
  #page-landing .hero::after {
    content: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0;
    border-radius: 0 0 30px 30px;
    z-index: 0;
  }
  #page-landing .hero h1,
  #page-landing .hero .hero-sub,
  #page-landing .hero .hero-btns,
  #page-landing .hero .hero-note {
    max-width: min(94%, 360px);
  }
  #page-landing .hero .hero-note {
    margin-bottom: 22px;
  }
  #page-landing .hero .hero-btns {
    margin-top: 18px;
    margin-bottom: 20px;
    gap: 8px;
  }
  #page-landing .hero .hero-btns .btn {
    min-height: 46px;
    padding: 11px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(20,18,24,.10);
  }
  #page-landing .hero .hero-btns .btn-outline {
    background: rgba(255,255,255,.88);
  }
}
@media (max-width: 430px) {
  .land-nav .lang-sw {
    transform: scale(0.92);
    transform-origin: right center;
  }
  #page-landing .hero {
    min-height: 740px;
    padding-top: 72px;
    background-position: 50% 104%;
  }
  #page-landing .hero .hero-eyebrow {
    margin-top: 8px;
    margin-bottom: 14px;
  }
  #page-landing .hero::after {
    height: 0;
  }
  #page-landing .hero h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 0.94;
    margin-bottom: 14px;
  }
  #page-landing .hero .hero-sub {
    font-size: 16px;
    line-height: 1.55;
  }
  #page-landing .hero .hero-btns {
    margin-top: 22px;
    margin-bottom: 18px;
  }
  #page-landing .hero .hero-btns .btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .who-grid { grid-template-columns:1fr; }
}
@media (max-width: 360px) {
  .hero h1 { font-size:32px !important; }
  .who-grid { grid-template-columns:1fr !important; }
}

/* ═══════════════════════════════════════
   SWIPE (OTKRIJ TAB)
═══════════════════════════════════════ */
.swipe-wrap {
  padding:16px 20px;
  display:flex; flex-direction:column;
  align-items:center; width:100%;
}
.swipe-stack {
  position:relative; width:100%;
  max-width:400px; height:420px;
  margin:0 auto 20px;
}
.swipe-title { font-size:22px; font-weight:800; color:var(--ink); line-height:1.15; margin-bottom:5px; }
.swipe-venue { font-size:13px; color:var(--ink3); margin-bottom:4px; }
.swipe-date  { font-size:13px; color:var(--ink); font-weight:500; margin-bottom:12px; }
.swipe-desc  { font-size:14px; color:var(--ink3); line-height:1.55; margin-bottom:14px; }
.swipe-going { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink3); }
.swipe-hint  { font-size:12px; color:var(--ink4); text-align:center; margin-top:10px; }
.swipe-btns  { display:flex; align-items:center; gap:14px; }
.sw-btn {
  width:54px; height:54px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:22px; border:1.5px solid var(--border2);
  background:var(--white); cursor:pointer;
  transition:all .18s; box-shadow:var(--sh-sm);
}
.sw-btn:hover { transform:scale(1.07); }
.sw-btn.yes { background:var(--ink); border-color:var(--ink); color:#fff; }
.sw-btn.yes:hover { background:var(--purple); border-color:var(--purple); }
