/* ═══════════════════════════════════════
   BROWSE
═══════════════════════════════════════ */
#page-browse {
  background:var(--bg);
  padding-bottom:calc(var(--bottom-nav-space) + 22px);
  width:100%;
}
.search-wrap { padding:14px var(--page-pad) 12px; background:rgba(255,253,249,.92); border-bottom:none; backdrop-filter:blur(14px); }
.search-inner { position:relative; }
.search-inner input {
  width:100%; min-height:56px; padding:0 18px 0 46px;
  border:1px solid var(--border); border-radius:22px;
  font-size:15px; color:var(--ink); background:var(--white);
  outline:none; font-family:inherit;
  transition:background .15s, box-shadow .15s, border-color .15s;
  box-shadow:var(--sh-sm);
}
.search-inner input:focus {
  background:var(--white);
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(154,52,56,.10);
}
.search-inner input::placeholder { color:var(--ink4); }
.search-ico {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:18px; height:18px;
  stroke:var(--ink4); fill:none; stroke-width:2;
  pointer-events:none;
}
.filter-row { padding:10px var(--page-pad) 2px; background:rgba(255,253,249,.92); border-bottom:1px solid var(--border); }
.filter-row .pills { padding-bottom:10px; }
.browse-body { padding:12px var(--page-pad) 16px; width:min(100%, var(--content-max)); max-width:var(--content-max); margin:0 auto; }


/* ═══════════════════════════════════════
   NOTIFICATIONS
═══════════════════════════════════════ */
#page-notif { background:var(--bg); padding-bottom:calc(var(--bottom-nav-space) + 18px); }
.notif-row {
  display:flex; align-items:start; gap:12px;
  padding:14px 16px; border-bottom:1px solid var(--border);
  background:var(--surface); cursor:pointer; transition:background .15s;
}
.notif-row:hover { background:var(--bg2); }
.notif-row.unread { background:#F8F4FF; }
.notif-ico {
  width:38px;
  height:38px;
  border-radius:14px;
  background:var(--surface-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  flex-shrink:0;
}
.notif-body { flex:1; min-width:0; }
.notif-title {
  font-size:14px;
  font-weight:700;
  color:var(--ink);
  line-height:1.35;
}
.notif-sub {
  font-size:13px;
  color:var(--ink3);
  line-height:1.45;
  margin-top:2px;
}
.notif-dot2 {
  width:8px; height:8px; border-radius:50%;
  background:var(--purple); flex-shrink:0; margin-top:5px;
}
.notif-dot2.read { background:transparent; border:1.5px solid var(--border2); }
.notif-text { font-size:14px; color:var(--ink); line-height:1.5; flex:1; }
.notif-time { font-size:11px; color:var(--ink4); margin-top:3px; }

/* ═══════════════════════════════════════
   SETTINGS
═══════════════════════════════════════ */
#page-settings { background:var(--bg); padding-bottom:calc(var(--bottom-nav-space) + 18px); }
#page-admin-drafts, #page-admin-organizers, #page-admin-moderation { background:var(--bg); padding-bottom:calc(var(--bottom-nav-space) + 18px); }

@media (min-width: 900px) {
  #page-venue-public .vp-actions-row {
    align-items: center;
  }
  #page-venue-public .vp-see-events-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 220px;
    padding-inline: 20px;
  }
}

.admin-body { padding:16px var(--page-pad) calc(var(--bottom-nav-space) + 18px); width:min(100%, var(--content-max)); max-width:var(--content-max); margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.admin-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.admin-nav-card {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--sh-sm);
  padding:12px;
}
.admin-nav-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:180px;
  flex:1;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--white);
  color:var(--ink);
  padding:12px 14px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--sh-sm);
}
.admin-nav-link.active {
  border-color:transparent;
  background:linear-gradient(135deg, var(--night-navy) 0%, var(--royal-blue) 100%);
  color:#fff;
}
.admin-nav-link.active .tag {
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.18);
  color:#fff;
}
.admin-stat, .admin-panel, .draft-card, .organizer-card {
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--sh-sm);
}
.admin-stat {
  border-radius:18px;
  padding:14px;
  background:linear-gradient(180deg, var(--white) 0%, var(--surface-soft) 100%);
}
.admin-stat-n { font-size:22px; font-weight:800; color:var(--ink); margin-bottom:2px; }
.admin-stat-l { font-size:11px; color:var(--ink3); text-transform:uppercase; letter-spacing:.04em; }
.admin-panel { border-radius:22px; overflow:hidden; }
.admin-panel-head {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:14px 16px; border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,253,249,.96) 0%, rgba(249,247,243,.94) 100%);
}
.admin-panel-title { font-size:15px; font-weight:800; color:var(--ink); }
.admin-panel-sub, .admin-mini { font-size:12px; color:var(--ink3); }
.admin-panel-body { padding:16px; }
.admin-inline { display:flex; gap:8px; flex-wrap:wrap; }
.admin-search-row {
  display:flex;
  gap:10px;
}
.ai-import-grid, .draft-list, .organizer-list, .organizer-merge-list { display:flex; flex-direction:column; gap:10px; }
.draft-card, .organizer-card { border-radius:22px; padding:16px; }
.moderation-card {
  border-radius:22px;
  padding:16px;
  background:var(--surface);
  border:1px solid var(--border);
  box-shadow:var(--sh-sm);
}
.moderation-card-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.moderation-title {
  font-size:16px;
  font-weight:800;
  color:var(--ink);
  line-height:1.3;
}
.moderation-meta {
  font-size:12px;
  color:var(--ink3);
  margin-top:4px;
}
.moderation-note-input {
  min-height:88px;
  margin-top:10px;
}
.draft-top, .organizer-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; }
.draft-title, .organizer-name { font-size:16px; font-weight:800; color:var(--ink); line-height:1.3; }
.draft-meta, .organizer-meta { font-size:12px; color:var(--ink3); margin-top:4px; }
.draft-actions, .organizer-actions, .draft-chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.draft-note {
  margin-top:10px; padding:12px 14px; background:var(--surface-soft);
  border-radius:16px; font-size:12px; color:var(--ink2); line-height:1.5;
}
.draft-detail-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:8px;
  margin-top:10px;
}
.draft-detail {
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface);
}
.draft-detail-label {
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink4);
  margin-bottom:4px;
}
.draft-detail-value {
  font-size:13px;
  color:var(--ink);
  line-height:1.35;
  word-break:break-word;
}
.draft-match {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px; border:1px solid var(--border); border-radius:12px; margin-top:8px;
}
.draft-empty {
  padding:26px 16px; text-align:center; background:var(--white);
  border:1px dashed var(--border2); border-radius:16px; color:var(--ink3); font-size:13px;
}
.tag-amber { background:var(--amber-bg); color:var(--amber2); }
.tag-outline { background:transparent; color:var(--ink3); border:1px solid var(--border2); }
.set-body { padding:20px max(var(--page-pad), 18px) 28px; width:min(100%, var(--content-max)); max-width:var(--content-max); margin:0 auto; }
.set-section {
  background:var(--surface); border-radius:22px;
  border:1px solid var(--border); margin-bottom:12px; overflow:hidden;
  box-shadow:var(--sh-sm);
}
.set-section-lbl {
  font-size:11px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink3);
  padding:14px 16px 4px;
}
.set-row {
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; border-bottom:1px solid var(--border);
  cursor:pointer; transition:background .15s;
}
.set-row:last-child { border-bottom:none; }
.set-row:hover { background:var(--bg2); }
.set-toggle-row {
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; border-bottom:1px solid var(--border);
}
.set-toggle-row:last-child { border-bottom:none; }
.set-ico {
  width:40px; height:40px; border-radius:14px;
  background:var(--surface-soft); display:flex;
  align-items:center; justify-content:center;
  font-size:17px; flex-shrink:0;
}
.set-info { flex:1; min-width:0; }
.set-lbl { font-size:14px; font-weight:700; color:var(--ink); }
@media (max-width:480px) {
  .admin-grid { grid-template-columns:1fr; }
  .admin-nav-card {
    flex-direction:column;
  }
  .admin-nav-link {
    width:100%;
    min-width:0;
  }
}
.set-sub { font-size:12px; color:var(--ink3); margin-top:1px; }
.set-right { font-size:13px; color:var(--ink4); }
#page-settings .set-body {
  max-width: 940px;
  padding-top: 24px;
}
#page-settings .set-section {
  border-radius: 26px;
  margin-bottom: 16px;
  box-shadow: 0 16px 38px rgba(24,24,27,.06);
}
#page-settings .set-section-lbl {
  padding: 16px 20px 8px;
}
#page-settings .set-row,
#page-settings .set-toggle-row {
  margin: 0 10px;
  border-radius: 18px;
}
#page-settings .set-row {
  border-bottom-color: rgba(32,33,36,.08);
}
#page-settings .set-toggle-row {
  border-bottom-color: rgba(32,33,36,.08);
}
#page-settings .set-row:last-child,
#page-settings .set-toggle-row:last-child {
  margin-bottom: 10px;
}
#page-settings .set-row:first-of-type,
#page-settings .set-toggle-row:first-of-type {
  margin-top: 2px;
}
#page-settings .set-info {
  padding-right: 8px;
}
.app-bar-actions {
  display:flex;
  align-items:center;
  gap:8px;
}

@media (max-width: 767px) {
  #page-profile .app-bar {
    padding-left: 10px;
    padding-right: 10px;
    gap: 6px;
  }
  #page-profile .app-bar-balanced {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 6px;
  }
  #page-profile .app-bar-title {
    font-size: 18px;
    justify-self: start;
    text-align: left;
    padding-left: 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #page-profile .app-bar-actions {
    gap: 4px;
    min-width: 0;
  }
  #page-profile .app-bar-actions .btn {
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
}
.set-section-wide,
.set-footer-actions {
  grid-column:1 / -1;
}

/* ═══════════════════════════════════════
   CHAT LIST
═══════════════════════════════════════ */
#page-chats { background:var(--bg); padding-bottom:calc(var(--bottom-nav-space) + 18px); }
.chat-list-section {
  font-size:11px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink4);
  padding:14px 16px 4px;
}
.chat-row {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; border-bottom:1px solid var(--border);
  cursor:pointer; background:var(--surface); transition:background .15s;
}
.chat-row:hover { background:var(--bg2); }
.chat-row-unread { background:rgba(49,71,174,.035); }
.chat-row-unread .chat-name { color:var(--royal-blue); }
.chat-info { flex:1; min-width:0; }
.chat-name-row { display:flex; align-items:center; gap:8px; min-width:0; flex-wrap:wrap; }
.chat-name { font-size:14px; font-weight:700; color:var(--ink); }
.chat-kind {
  display:inline-flex; align-items:center;
  padding:3px 8px; border-radius:999px;
  font-size:10px; font-weight:800; letter-spacing:.08em;
  color:var(--ink4); background:var(--bg3);
  flex-shrink:0;
}
.chat-kind-event { color:var(--royal-blue); background:rgba(49,71,174,.1); }
.chat-kind-review { color:var(--warning); background:rgba(186,108,23,.12); }
.chat-subtitle {
  margin-top:3px; font-size:11px; color:var(--ink4);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.chat-preview {
  margin-top:3px; font-size:12px; color:var(--ink3);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.chat-meta { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex-shrink:0; }
.chat-time { font-size:11px; color:var(--ink4); }
.chat-row-delete {
  font-size:11px;
  color:var(--ink4);
  padding:2px 8px;
  min-height:auto;
  border-radius:999px;
  opacity:.78;
}
.chat-row:hover .chat-row-delete { opacity:1; }
.chat-row-delete:hover { color:var(--danger); background:rgba(220,38,38,.08); opacity:1; }
.chat-badge {
  width:18px; height:18px; border-radius:50%;
  background:var(--purple); color:#fff;
  font-size:10px; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

/* ═══════════════════════════════════════
   CHAT PAGE
═══════════════════════════════════════ */
#page-chat { background:var(--bg); height:100svh; display:flex; flex-direction:column; }
.create-location-grid {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:10px;
}
.chat-top {
  background:rgba(255,253,249,.94); border-bottom:1px solid var(--border);
  padding:10px 14px; display:flex; align-items:center;
  gap:10px; flex-shrink:0;
}
.chat-top-name { font-size:15px; font-weight:700; color:var(--ink); }
.chat-top-sub { font-size:12px; color:var(--ink3); }
.chat-msgs { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; }
.chat-day { text-align:center; font-size:11px; color:var(--ink4); margin:8px 0 12px; }
.msg-sender { font-size:11px; font-weight:700; color:var(--ink4); margin:0 0 4px 2px; line-height:1.2; }
.chat-msg-delete {
  margin-top:6px;
  align-self:flex-end;
  border:none;
  background:rgba(17,24,39,.04);
  color:var(--ink4);
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  padding:4px 8px;
  border-radius:999px;
}
.chat-msg-delete:hover { color:var(--danger); background:rgba(220,38,38,.08); }
.bubble.is-deleted {
  background:var(--bg2);
  color:var(--ink4);
  font-style:italic;
  border:1px dashed var(--border2);
  box-shadow:none;
}
.chat-inp {
  background:rgba(255,253,249,.94); border-top:1px solid var(--border);
  padding:10px 12px max(10px, env(safe-area-inset-bottom));
  display:flex; gap:8px; align-items:center; flex-shrink:0;
}
.chat-field {
  flex:1; padding:10px 16px;
  border:1px solid var(--border); border-radius:20px;
  font-size:14px; color:var(--ink); background:var(--white);
  outline:none; font-family:inherit; resize:none; min-height:40px;
}
.chat-field:focus { border-color:var(--purple); }
.chat-send {
  width:38px; height:38px; border-radius:50%;
  background:var(--royal-blue); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; cursor:pointer; flex-shrink:0;
  transition:background .15s; border:none;
}
.chat-send:hover { background:var(--purple2); }

@media (max-width: 680px) {
  .create-location-grid {
    grid-template-columns:1fr;
  }
}

/* ═══════════════════════════════════════
   PROFILE
═══════════════════════════════════════ */
#page-profile, #page-other-profile { background:var(--bg); padding-bottom:calc(var(--bottom-nav-space) + 18px); }
.prof-hero {
  background:
    radial-gradient(circle at top right, rgba(235,228,219,0.58), transparent 30%),
    linear-gradient(180deg, rgba(255,252,247,0.98) 0%, var(--bg) 100%);
  padding:24px 18px 22px;
  border:1px solid var(--border);
  border-radius:24px;
  text-align:center;
  width:min(100%, 920px);
  margin:18px auto 0;
  box-shadow:var(--sh-sm);
}
.profile-hero-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:start;
}
.profile-hero-media {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
#page-profile #profile-avatar {
  width:104px;
  height:104px;
  min-width:104px;
  min-height:104px;
  border-radius:999px;
}
.prof-name { font-size:24px; font-weight:800; color:var(--ink); margin-bottom:4px; letter-spacing:-0.03em; line-height:1.04; }
.prof-bio {
  font-size:14px; color:var(--ink3); line-height:1.55;
  margin-bottom:12px; max-width:44ch;
  margin-left:auto; margin-right:auto;
}
.prof-main {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.profile-summary-row {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  width:100%;
}
.profile-chip-row {
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:0;
}
.profile-inline-groups {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.profile-stats-band {
  width:100%;
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:start;
}
.prof-stats {
  width:100%;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin:4px 0 2px;
}
.profile-stat-card {
  text-align:center;
  padding:12px 10px;
  border-radius:16px;
  background:rgba(255,255,255,0.84);
  border:1px solid rgba(214,200,182,0.62);
}
.ps-n { font-size:20px; font-weight:800; color:var(--ink); }
.ps-l { font-size:12px; color:var(--ink3); margin-top:4px; }
.prof-rating {
  display:flex; align-items:center; justify-content:center;
  gap:6px; margin-bottom:0;
}
.prof-rating.is-empty .star { opacity:.25; }
.prof-rating.is-empty span:first-child { color:var(--ink3) !important; }
.prof-socials {
  display:flex; justify-content:center;
  gap:8px; margin-bottom:0; flex-wrap:wrap;
}
.profile-code-row {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  width:100%;
  max-width:260px;
  margin:0;
  flex-wrap:wrap;
}
.profile-code-copy {
  min-width:0;
  padding:10px 14px;
  border:1px solid rgba(214,200,182,0.72);
  border-radius:18px;
  background:rgba(255,255,255,0.78);
  box-shadow:var(--sh-sm);
}
.profile-code-label {
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink4);
}
.profile-code-value {
  margin-top:4px;
  font-size:14px;
  font-weight:700;
  color:var(--ink2);
  word-break:break-word;
}
.profile-hero-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  padding-top:6px;
}
.soc-chip {
  padding:8px 12px; border:1px solid rgba(214,200,182,0.7);
  border-radius:999px; font-size:12px; color:var(--ink3);
  display:flex; align-items:center; gap:4px;
  cursor:default; transition:all .15s; background:rgba(255,255,255,0.78);
}
.profile-inline-groups .profile-chip-row {
  justify-content:center;
}
.profile-inline-groups .tag,
.profile-inline-groups .soc-chip {
  opacity:.92;
}
.profile-inline-groups .tag {
  background:rgba(255,255,255,0.72);
  border-color:rgba(214,200,182,0.62);
  color:var(--ink2);
}
.profile-trust-panel {
  padding:14px 18px 12px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:22px;
  width:min(100%, 920px);
  margin:12px auto 0;
  box-shadow:var(--sh-sm);
}
.profile-info-grid {
  width:min(100%, 920px);
  margin:12px auto 0;
  display:grid;
  gap:12px;
}
.prof-tabs {
  display:flex; background:rgba(255,253,249,.92);
  border-bottom:1px solid var(--border); padding:0 14px;
  gap:8px;
  overflow-x:auto;
  scrollbar-width:none;
  width:min(100%, 920px);
  margin:14px auto 0;
  border:1px solid var(--border);
  border-bottom:none;
  border-radius:24px 24px 0 0;
  background:rgba(255,255,255,0.92);
  box-sizing:border-box;
}
.prof-tabs::-webkit-scrollbar { display:none; }
.ptab {
  padding:15px 14px; font-size:13px; font-weight:700;
  color:var(--ink3); cursor:pointer;
  border-bottom:2px solid transparent; transition:all .15s;
  flex:0 0 auto;
}
.ptab.active { color:var(--purple); border-bottom-color:var(--purple); }
.ptab-pane { display:none; padding:18px 16px; }
.ptab-pane {
  width:min(100%, 920px);
  margin:0 auto;
  border:1px solid var(--border);
  border-top:none;
  border-radius:0 0 24px 24px;
  background:var(--white);
  min-height:180px;
  box-sizing:border-box;
}
.ptab-pane.active { display:block; }
#profile-review-card {
  width:min(100%, 920px);
  margin:14px auto 0 !important;
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--sh-sm);
  background:
    radial-gradient(circle at top right, rgba(231,224,215,.42), transparent 26%),
    linear-gradient(180deg, var(--white) 0%, var(--surface-soft) 100%);
}
#page-profile .prof-hero + .trust-section,
#page-other-profile .prof-hero + .trust-section {
  margin-top:14px;
}
.ev-row {
  display:flex; align-items:center; gap:12px;
  padding:12px 0; border-bottom:1px solid var(--border);
  cursor:pointer;
}
.ev-row:last-child { border-bottom:none; }
.ev-row-img {
  width:48px; height:48px; border-radius:8px;
  flex-shrink:0; display:flex;
  align-items:center; justify-content:center; font-size:20px;
}
.ev-row-title { font-size:14px; font-weight:700; color:var(--ink); }
.ev-row-meta { font-size:12px; color:var(--ink3); margin-top:2px; }
.rev-item { padding:16px 0; border-bottom:1px solid var(--border); }
.rev-item:last-child { border-bottom:none; }
.rev-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.rev-name { font-size:14px; font-weight:700; color:var(--ink); }
.rev-event { font-size:12px; color:var(--ink4); margin-top:1px; }
.rev-text { font-size:14px; color:var(--ink2); line-height:1.55; }

/* ═══════════════════════════════════════
   REVIEW
═══════════════════════════════════════ */
#page-review { background:var(--white); padding-bottom:calc(var(--bottom-nav-space) + 26px); }
.rev-body { padding:20px var(--page-pad); width:min(100%, var(--dialog-max)); max-width:var(--dialog-max); margin:0 auto; }
.rev-banner {
  background:var(--purple-bg); border:1px solid var(--purple-br);
  border-radius:18px; padding:16px; margin-bottom:22px;
}
.rev-cats { display:flex; flex-direction:column; gap:14px; margin-bottom:22px; }
.rev-cat { display:flex; align-items:center; justify-content:space-between; }
.rev-cat-label { font-size:14px; font-weight:500; color:var(--ink2); }
.rev-stars { display:flex; gap:4px; }
.rev-star { font-size:26px; color:var(--bg3); cursor:pointer; transition:all .1s; }
.rev-star.on { color:#FBBF24; }
.rev-star:hover { transform:scale(1.1); }

/* ═══════════════════════════════════════
   VENUE DASHBOARD
═══════════════════════════════════════ */
#page-venue { background:var(--bg); padding-bottom:calc(var(--bottom-nav-space) + 18px); }
.venue-top { background:linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); padding:20px 16px; border-bottom:1px solid var(--border); }
.venue-row { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.venue-av {
  width:52px; height:52px; border-radius:12px;
  background:linear-gradient(135deg, var(--night-navy) 0%, var(--royal-blue) 100%); color:#fff;
  font-size:20px; font-weight:800;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.venue-name { font-size:18px; font-weight:800; color:var(--ink); }
.venue-type { font-size:13px; color:var(--ink3); }
.venue-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.vs {
  background:linear-gradient(180deg, var(--bg-soft) 0%, var(--surface-soft) 100%);
  border:1px solid var(--border); border-radius:16px;
  padding:12px; text-align:center;
}
.vs-n { font-size:20px; font-weight:800; color:var(--royal-blue); }
.vs-l { font-size:11px; color:var(--ink3); margin-top:1px; }
.venue-body { padding:16px var(--page-pad); width:min(100%, var(--content-max)); max-width:var(--content-max); margin:0 auto; }
.venue-ev-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:18px; padding:14px; margin-bottom:10px; cursor:pointer;
  transition:all .2s;
}
.venue-ev-card:hover { box-shadow:var(--sh); }
.venue-ev-h { display:flex; align-items:start; gap:8px; margin-bottom:8px; }
.venue-ev-title { font-size:15px; font-weight:700; color:var(--ink); flex:1; line-height:1.3; }
.venue-ev-meta { font-size:12px; color:var(--ink3); margin-bottom:8px; }
.venue-bar-row { display:flex; align-items:center; gap:8px; }
.venue-bar-lbl { font-size:11px; color:var(--ink4); min-width:64px; }
.venue-bar { flex:1; height:5px; background:var(--bg3); border-radius:3px; overflow:hidden; }
.venue-bar-fill { height:100%; background:var(--purple); border-radius:3px; }
.venue-bar-pct { font-size:11px; color:var(--purple); font-weight:700; min-width:36px; text-align:right; }

/* ═══════════════════════════════════════
   ONBOARDING
═══════════════════════════════════════ */
#page-onboarding, #page-venue-onboarding { background:var(--bg-soft); }
.ob-wrap { width:min(100%, var(--dialog-max)); max-width:var(--dialog-max); margin:0 auto; padding:32px var(--page-pad) 140px; }
.ob-prog { height:3px; background:var(--bg3); border-radius:2px; margin-bottom:20px; }
.ob-bar { height:100%; background:var(--purple); border-radius:2px; transition:width .35s cubic-bezier(.34,1.1,.64,1); }
.ob-dots { display:flex; justify-content:center; gap:7px; margin-bottom:28px; }
.ob-dot { width:8px; height:8px; border-radius:50%; background:var(--bg3); transition:all .25s; }
.ob-dot.active { background:var(--purple); transform:scale(1.2); }
.ob-dot.done { background:var(--purple); opacity:.4; }
.ob-step { display:none; animation:obStepIn .22s ease; }
@keyframes obStepIn { from{opacity:0;transform:translateX(18px)} to{opacity:1;transform:translateX(0)} }
.ob-step.active { display:block; }
.ob-title { font-size:24px; font-weight:800; color:var(--ink); margin-bottom:5px; }
.ob-sub { font-size:14px; color:var(--ink3); margin-bottom:26px; line-height:1.55; }
.ob-footer {
  position:fixed; bottom:0; left:0; right:0;
  background:rgba(255,253,249,.96); border-top:1px solid var(--border);
  padding:14px var(--page-pad) max(14px, env(safe-area-inset-bottom));
  display:flex; gap:10px;
}

@media (min-width: 768px) {
  #page-onboarding .ob-footer,
  #page-venue-onboarding .ob-footer {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: min(100%, var(--content-max)) !important;
    max-width: var(--content-max) !important;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    justify-content: flex-end;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }

  #page-onboarding .ob-footer .btn-full,
  #page-venue-onboarding .ob-footer .btn-full {
    width: clamp(190px, 26vw, 280px);
    min-width: 190px;
    flex: 0 0 auto;
  }
}
.int-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.int-item {
  padding:14px; border:1px solid var(--border); border-radius:18px;
  cursor:pointer; transition:all .18s cubic-bezier(.34,1.3,.64,1);
  display:flex; align-items:center; gap:10px;
}
.int-item:hover { border-color:var(--purple-br); }
.int-item.sel {
  border-color:var(--purple); background:var(--purple-bg);
  transform:scale(1.03); box-shadow:0 4px 12px rgba(124,58,237,.2);
}
.int-ico { font-size:22px; }
.int-label { font-size:14px; font-weight:600; color:var(--ink); }
.photo-up {
  width:100px; height:100px; border-radius:50%;
  border:2px dashed var(--border2); background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; margin:0 auto 24px; font-size:28px;
  transition:border-color .15s;
}
.photo-up:hover { border-color:var(--purple); }
.type-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-bottom:12px; }
.type-opt {
  padding:18px; border:1px solid var(--border);
  border-radius:18px; cursor:pointer; text-align:center;
  transition:all .18s;
}
.type-opt:hover { border-color:var(--purple-br); }
.type-opt.sel { border-color:var(--purple); background:var(--purple-bg); }
.type-opt-ico { font-size:28px; margin-bottom:8px; }
.type-opt-label { font-size:14px; font-weight:700; color:var(--ink); }
.type-opt-sub { font-size:12px; color:var(--ink3); margin-top:3px; }

/* ═══════════════════════════════════════
   CREATE
═══════════════════════════════════════ */
#page-create { background:var(--bg-soft); padding-bottom:100px; }
.create-body { padding:20px var(--page-pad); width:min(100%, var(--content-max)); max-width:var(--content-max); margin:0 auto; }

/* ═══════════════════════════════════════
   EVENT DETAIL
═══════════════════════════════════════ */
#page-event {
  background:var(--bg-soft);
  padding-bottom:calc(var(--bottom-nav-space) + 104px);
  width:100%;
}
.ev-hero {
  aspect-ratio:16 / 9;
  min-height:184px;
  max-height:320px;
  position:relative;
  display:flex;
  align-items:flex-end;
  padding:14px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
}
.ev-hero::after {
  content:'';
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 32%, rgba(24,24,27,.14) 100%),
    linear-gradient(180deg, rgba(252,248,243,0) 0%, rgba(252,248,243,.16) 100%);
  pointer-events:none;
}
.ev-hero.ev-hero--empty {
  aspect-ratio: auto;
  min-height: 76px;
  max-height: 76px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.ev-hero.ev-hero--empty::after {
  display: none;
}
.ev-back {
  position:absolute; top:14px; left:14px;
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,253,249,.92);
  display:flex; align-items:center; justify-content:center;
  font-size:18px; cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  z-index:1;
}
.ev-detail { padding:18px var(--page-pad); width:min(100%, var(--content-max)); max-width:var(--content-max); margin:0 auto; }
.ev-big-title { font-size:26px; font-weight:800; color:var(--ink); line-height:1.15; margin-bottom:10px; }
.ev-info-cluster {
  margin-bottom:16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ev-info-line {
  font-size:14px;
  line-height:1.45;
}
.ev-info-primary {
  font-weight:700;
  color:var(--ink2);
}
.ev-info-location {
  color:var(--ink3);
}
.ev-info-location span {
  color:var(--purple);
  text-decoration:underline;
  text-underline-offset:2px;
}
.ev-info-status {
  color:var(--purple3);
  font-weight:700;
}
.ev-meta-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.ev-meta-item { display:flex; align-items:center; gap:5px; font-size:13px; color:var(--ink3); }
.ev-sub-title {
  font-size:12px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink3);
  margin-bottom:10px; margin-top:18px;
}
.inv-row {
  display:flex; align-items:center; gap:10px;
  padding:12px 0; border-bottom:1px solid var(--border);
}
.inv-row:last-child { border-bottom:none; }
.inv-row-title { font-size:14px; font-weight:700; color:var(--ink); }
.inv-row-meta { font-size:12px; color:var(--ink3); margin-top:2px; }
.ev-bar-foot {
  position:fixed; bottom:calc(var(--bottom-nav-space) + 8px); left:0; right:0;
  background:rgba(255,253,249,.96); border-top:1px solid var(--border);
  padding:12px var(--page-pad) max(12px, env(safe-area-inset-bottom));
  display:flex; gap:10px;
  flex-direction:column;
  z-index:210;
}
.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; }

@media (min-width: 1100px) {
  #page-event {
    padding-bottom: 36px;
  }

  #page-event .ev-hero {
    width: min(100%, 980px);
    margin: 18px auto 0;
    border-radius: 24px;
    max-height: 420px;
  }

  #page-event .ev-detail {
    width: min(100%, 980px);
    max-width: 980px;
    margin: 0 auto;
    padding-top: 20px;
  }

  #page-event .ev-bar-foot {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100%, 980px);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    padding: 10px 16px max(12px, env(safe-area-inset-bottom));
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }

  #page-event .ev-bar-foot .btn {
    width: auto;
    min-width: 230px;
    max-width: 340px;
    padding: 10px 16px;
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════
   CHAT TRUST BAR + IDEMO BAR
═══════════════════════════════════════ */
.chat-trust-bar {
  background:rgba(255,253,249,.94); border-top:1px solid var(--border);
  padding:10px 12px; display:flex; align-items:center;
  gap:8px; flex-shrink:0; flex-wrap:wrap;
}

/* ═══════════════════════════════════════
   INV CARD (pozivnice)
═══════════════════════════════════════ */
.inv-card {
  background:var(--surface); 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); }


/* ═══════════════════════════════════════
   FULL-SCREEN SWIPE (Faza 2a)
═══════════════════════════════════════ */
.swipe-stack-fs {
  position:relative;
  width:100%;
  height:420px;
  margin:0 auto 16px;
}
.swipe-card-fs {
  position:absolute;
  width:100%; height:100%;
  border-radius:20px;
  overflow:hidden;
  transform-origin:bottom center;
  transition:transform .32s cubic-bezier(.25,.46,.45,.94), opacity .22s;
  backface-visibility:hidden;
  cursor:grab;
  box-shadow:0 12px 40px rgba(24,24,27,.18);
}
.swipe-card-fs.back {
  transform:scale(0.93) translateY(16px);
  z-index:0;
}
.swipe-card-fs.front {
  z-index:1;
}
.swipe-card-fs.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-fs.go-right {
  transform:rotate(16deg) translateX(145%) !important;
  opacity:0 !important;
  transition:transform .35s cubic-bezier(.55,.06,.68,.19), opacity .25s !important;
}
.swipe-card-fs.go-up {
  transform:translateY(-120%) scale(.94) !important;
  opacity:0 !important;
  transition:transform .35s cubic-bezier(.55,.06,.68,.19), opacity .25s !important;
}
.swipe-card-fs.go-down {
  transform:translateY(120%) scale(.94) !important;
  opacity:0 !important;
  transition:transform .35s cubic-bezier(.55,.06,.68,.19), opacity .25s !important;
}
.swipe-fs-bg {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
/* Tamni overlay za citljivost teksta */
.swipe-card-fs.front .swipe-fs-bg::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    transparent 0%,
    transparent 30%,
    rgba(10,5,20,.55) 60%,
    rgba(10,5,20,.92) 100%
  );
}
.swipe-fs-body {
  position:absolute;
  bottom:0; left:0; right:0;
  padding:20px;
  z-index:2;
}
.swipe-card-fs.back .swipe-fs-body {
  opacity:0;
}
.swipe-fs-cat {
  display:inline-flex;
  margin-bottom:10px;
  font-size:11px;
  background:rgba(255,255,255,.15);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(8px);
}
.swipe-fs-title {
  font-size:22px;
  font-weight:800;
  color:#fff;
  line-height:1.15;
  margin-bottom:6px;
  text-shadow:0 1px 8px rgba(0,0,0,.4);
}
.swipe-fs-meta {
  font-size:13px;
  color:rgba(255,255,255,.8);
  margin-bottom:3px;
}
.swipe-fs-date {
  font-size:13px;
  color:rgba(255,255,255,.7);
  margin-bottom:10px;
}
.swipe-fs-desc {
  font-size:13px;
  color:rgba(255,255,255,.65);
  line-height:1.5;
  margin-bottom:12px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.swipe-fs-going {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.swipe-fs-spots {
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.2);
  border-radius:20px;
  font-size:12px;
  font-weight:700;
  color:#fff;
  backdrop-filter:blur(8px);
}
/* Swipe akcijska dugmad */
.swipe-actions {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin-bottom:8px;
}
.sw-action-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  cursor:pointer;
  transition:all .18s cubic-bezier(.34,1.3,.64,1);
  font-family:inherit;
}
.sw-action-btn.skip {
  width:56px; height:56px;
  border-radius:50%;
  background:var(--white);
  box-shadow:0 4px 16px rgba(220,38,38,.15);
  border:1.5px solid rgba(220,38,38,.15);
  color:var(--red);
}
.sw-action-btn.info {
  width:46px; height:46px;
  border-radius:50%;
  background:var(--bg2);
  color:var(--ink3);
  border:1.5px solid var(--border2);
}
.sw-action-btn.like {
  width:56px; height:56px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--purple) 0%, var(--purple2) 100%);
  box-shadow:0 4px 20px rgba(124,58,237,.35);
  color:#fff;
}
.sw-action-btn:hover { transform:scale(1.08); }
.sw-action-btn.like:hover { box-shadow:0 6px 24px rgba(124,58,237,.5); }
.sw-action-btn:active { transform:scale(.92) !important; }
/* Swipe indicators */
.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,.2);
  color:#16a34a;
  border:2px solid #16a34a;
}
.swipe-indicator.skip {
  left:16px;
  background:rgba(220,38,38,.15);
  color:#dc2626;
  border:2px solid #dc2626;
}


/* ═══════════════════════════════════════
   PRIVATNI CHAT STATUS SISTEM (Faza 2b)
═══════════════════════════════════════ */
.chat-status-bar {
  background:var(--white);
  border-top:1px solid var(--border);
  padding:10px 14px;
  flex-shrink:0;
}
.chat-status-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.chat-status-label {
  font-size:11px;
  font-weight:700;
  color:var(--ink4);
  text-transform:uppercase;
  letter-spacing:.06em;
  flex-shrink:0;
}
.status-steps {
  display:flex;
  gap:6px;
  flex:1;
}
.status-step {
  flex:1;
  padding:6px 4px;
  border-radius:8px;
  font-size:11px;
  font-weight:700;
  text-align:center;
  border:1.5px solid var(--border2);
  color:var(--ink4);
  cursor:pointer;
  transition:all .18s;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.status-step.active-pricamo {
  background:var(--purple-bg);
  border-color:var(--purple);
  color:var(--purple3);
}
.status-step.active-mozda {
  background:var(--amber-bg);
  border-color:var(--amber-br);
  color:var(--amber2);
}
.status-step.active-potvrdeno {
  background:var(--green-bg);
  border-color:rgba(22,163,74,.3);
  color:var(--green);
}
.status-step.active-odustao {
  background:var(--red-bg);
  border-color:rgba(220,38,38,.2);
  color:var(--red);
}
.chat-propose-btn {
  width:100%;
  padding:10px;
  border-radius:10px;
  background:linear-gradient(135deg, var(--purple) 0%, var(--purple2) 100%);
  color:#fff;
  border:none;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  transition:all .18s;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.chat-propose-btn:hover { opacity:.9; transform:translateY(-1px); }
.chat-propose-btn:disabled { opacity:.5; cursor:default; transform:none; }
.chat-action-stack {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid var(--border);
}
/* Mini profil kartica u chatu */
.chat-mini-profile {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  cursor:pointer;
  transition:background .15s;
  flex-shrink:0;
}
.chat-mini-profile:hover { background:var(--bg2); }
.chat-mini-name { font-size:13px; font-weight:700; color:var(--ink); }
.chat-mini-meta { font-size:11px; color:var(--ink3); display:flex; gap:6px; align-items:center; }
.chat-event-context {
  padding: 10px 14px 12px;
  background: linear-gradient(135deg, rgba(28,43,72,.05) 0%, rgba(49,71,174,.06) 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-event-context-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple3);
  margin-bottom: 4px;
}
.chat-event-context-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}
.chat-event-context-meta {
  font-size: 12px;
  color: var(--ink3);
}


/* ═══════════════════════════════════════
   TRUST SISTEM (Faza 2c)
═══════════════════════════════════════ */
.trust-section {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
  margin:12px 16px;
  box-shadow:var(--sh-sm);
}
.trust-section-title {
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--ink3);
  margin-bottom:14px;
}
.trust-row {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.trust-row:last-child { border-bottom:none; }
.trust-icon {
  width:36px; height:36px;
  border-radius:12px;
  display:flex; align-items:center;
  justify-content:center; font-size:16px;
  flex-shrink:0;
}
.trust-icon.verified { background:var(--green-bg); }
.trust-icon.pending  { background:var(--amber-bg); }
.trust-icon.locked   { background:var(--bg3); opacity:.6; }
.trust-info { flex:1; }
.trust-name { font-size:14px; font-weight:600; color:var(--ink); }
.trust-desc { font-size:12px; color:var(--ink3); margin-top:1px; }
.trust-state-badge {
  font-size:10px; font-weight:700;
  padding:5px 9px; border-radius:999px;
  letter-spacing:.03em;
}
.trust-state-badge.ok     { background:var(--green-bg); color:var(--green); }
.trust-state-badge.soon   { background:var(--amber-bg); color:var(--amber2); }
.trust-state-badge.add    { background:var(--purple-bg); color:var(--purple3); cursor:pointer; }
.profile-meta-strip {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin:0;
}
.profile-meta-chip {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,0.72);
  box-shadow:var(--sh-sm);
}
.profile-meta-chip-icon {
  width:30px;
  height:30px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--bg3);
  font-size:15px;
  flex-shrink:0;
}
.profile-meta-chip-copy {
  min-width:0;
  flex:1;
}
.profile-meta-chip-label {
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink4);
}
.profile-meta-chip-value {
  font-size:13px;
  color:var(--ink2);
  margin-top:4px;
  line-height:1.45;
  word-break:break-word;
}
.profile-safety-note {
  margin:0;
  padding:14px 16px;
  border-radius:20px;
  background:rgba(255,255,255,0.66);
  border:1px solid rgba(214,200,182,0.55);
}
.profile-safety-note-title {
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink4);
}
.profile-safety-note-copy {
  margin-top:6px;
  font-size:12px;
  line-height:1.55;
  color:var(--ink3);
  max-width:42ch;
}
.trust-score-bar {
  height:6px;
  background:var(--bg3);
  border-radius:999px;
  overflow:hidden;
  margin:10px 16px 0;
}
.trust-score-fill {
  height:100%;
  background:linear-gradient(90deg, var(--green) 0%, var(--royal-blue) 55%, var(--purple) 100%);
  border-radius:999px;
  transition:width .6s cubic-bezier(.34,1.1,.64,1);
}
.trust-score-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:6px 16px 0;
  font-size:12px;
}
.trust-score-text { font-weight:600; color:var(--ink2); }
.trust-score-pct  { font-weight:800; color:var(--purple); }


/* ═══════════════════════════════════════
   TIKTOK-STYLE SWIPE (Faza 2 upgrade)
═══════════════════════════════════════ */
.tiktok-swipe {
  position:relative;
  width:100%;
  /* Puni slobodni prostor između home-top i bottom-nav */
  height:calc(100svh - 108px - 62px); /* home-top ~108px, bottom-nav ~62px */
  min-height:400px;
  overflow:hidden;
  background:linear-gradient(180deg, #14213d 0%, #1f3260 56%, #2d4690 100%);
  border-radius:0;
}
.tt-swiper {
  position:absolute !important;
  inset:0 !important;
  z-index:1;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  display:block !important;
}
.tt-swiper .swiper-wrapper,
.tt-swiper .swiper-slide {
  height:100%;
}
.tt-slide-card {
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}
.tt-card {
  position:absolute;
  inset:0;
  overflow:hidden;
  transition:transform .35s cubic-bezier(.25,.46,.45,.94), opacity .25s;
  will-change:transform;
  touch-action:none;
}
.tt-card:not(.tt-front) {
  opacity:.86;
  z-index:0;
}
.tt-front { z-index:1; cursor:grab; }
.tt-front:active { cursor:grabbing; }
.tt-bg {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center 82%;
  transition:opacity .3s;
}
/* TikTok tamni overlay gradient */
.tt-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(8,12,22,.16) 0%,
    rgba(8,12,22,.06) 22%,
    transparent 42%,
    rgba(8,12,22,.46) 72%,
    rgba(8,12,22,.82) 100%
  );
  pointer-events:none;
}
/* Swipe out animacije */
.tt-front.go-left {
  transform:translateX(-112%) translateY(-20px) rotate(-8deg) scale(.94) !important;
  opacity:0 !important;
  transition:transform var(--tt-swipe-dur, 360ms) cubic-bezier(.55,.06,.68,.19), opacity calc(var(--tt-swipe-dur, 360ms) * 0.62) !important;
}
.tt-front.go-right {
  transform:translateX(112%) translateY(-20px) rotate(8deg) scale(.94) !important;
  opacity:0 !important;
  transition:transform var(--tt-swipe-dur, 360ms) cubic-bezier(.55,.06,.68,.19), opacity calc(var(--tt-swipe-dur, 360ms) * 0.62) !important;
}
.tt-front.go-up {
  transform:translateY(-118%) !important;
  opacity:0 !important;
  transition:transform var(--tt-swipe-dur, 360ms) cubic-bezier(.22,.61,.36,1), opacity calc(var(--tt-swipe-dur, 360ms) * 0.64) !important;
}
.tt-front.go-down {
  transform:translateY(118%) !important;
  opacity:0 !important;
  transition:transform var(--tt-swipe-dur, 360ms) cubic-bezier(.22,.61,.36,1), opacity calc(var(--tt-swipe-dur, 360ms) * 0.64) !important;
}
/* Desne akcije — TikTok stil */
.tt-actions {
  position:absolute;
  right:12px;
  bottom:calc(var(--bottom-nav-space) + 28px);
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:25; /* Uvijek iznad strelica */
  pointer-events:auto;
}
.tt-action-btn {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
  cursor:pointer;
  color:#fff;
  font-family:inherit;
  -webkit-tap-highlight-color:transparent;
  pointer-events:auto;
  position:relative;
  z-index:26;
  padding:8px 7px;
  border-radius:18px;
  min-width:58px;
}
.tt-action-btn svg {
  width:24px; height:24px;
  filter:drop-shadow(0 1px 4px rgba(0,0,0,.4));
}
.tt-action-btn span {
  font-size:10px; font-weight:800;
  color:#fff;
  text-shadow:0 1px 4px rgba(0,0,0,.6);
  letter-spacing:.03em;
}
.tt-action-btn:hover { background:rgba(255,255,255,.18); }
.tt-action-btn:active { opacity:.7; }
/* Donji info */
.tt-info {
  position:absolute;
  bottom:calc(var(--bottom-nav-space) + 14px); left:16px; right:60px;
  z-index:5;
}
.tt-cat {
  display:inline-flex;
  align-items:center;
  gap:4px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:20px;
  padding:3px 10px;
  font-size:11px; font-weight:700;
  color:#fff;
  margin-bottom:8px;
}
.tt-cat[data-kind="invite"] {
  background:linear-gradient(135deg, rgba(124,58,237,.72), rgba(79,70,229,.74));
  border-color:rgba(255,255,255,.22);
}
.tt-cat[data-kind="event"] {
  background:rgba(255,255,255,.15);
}
.tt-title {
  font-size:20px; font-weight:800;
  color:#fff; line-height:1.15;
  margin-bottom:5px;
  text-shadow:0 1px 8px rgba(0,0,0,.4);
}
.tt-meta, .tt-date {
  font-size:13px;
  color:rgba(255,255,255,.8);
  margin-bottom:2px;
  text-shadow:0 1px 4px rgba(0,0,0,.3);
}
.tt-desc {
  font-size:13px;
  color:rgba(255,255,255,.65);
  line-height:1.5;
  margin:6px 0 8px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tt-going {
  display:flex; align-items:center; gap:8px;
}
/* Filter pills floating */
.tt-filters {
  position:absolute;
  top:12px; left:12px; right:12px;
  display:flex;
  gap:7px;
  overflow-x:auto;
  scrollbar-width:none;
  z-index:5;
}
.tt-filters::-webkit-scrollbar { display:none; }
.tt-back-btn {
  position:absolute;
  top:58px; left:12px;
  min-height:34px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(19,17,22,.24);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.32);
  color:#fff;
  font-size:11px; font-weight:700;
  letter-spacing:.01em;
  display:flex; align-items:center; justify-content:center;
  z-index:12;
  box-shadow:0 7px 18px rgba(17,16,21,.18);
}
.tt-back-btn:hover { background:rgba(19,17,22,.34); }
.tt-pill {
  background:rgba(19,17,22,.2) !important;
  border-color:rgba(255,255,255,.28) !important;
  color:#fff !important;
  backdrop-filter:blur(8px);
  padding:7px 13px !important;
  font-size:11px !important;
  font-weight:700;
  flex-shrink:0;
}
.tt-pill.active {
  background:linear-gradient(135deg, rgba(170,99,48,.96), rgba(108,53,42,.96)) !important;
  color:#fff !important;
  border-color:transparent !important;
  box-shadow:0 8px 18px rgba(110,45,47,.24);
}
.tt-back-preview {
  position:absolute;
  left:18px;
  right:18px;
  bottom:20px;
  color:#fff;
  z-index:2;
  opacity:.72;
}
.tt-back-preview-cat {
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.tt-back-preview-cat[data-kind="invite"] {
  background:linear-gradient(135deg, rgba(124,58,237,.56), rgba(79,70,229,.58));
}
.tt-back-preview-title {
  margin-top:10px;
  font-size:18px;
  font-weight:800;
  line-height:1.12;
  text-shadow:0 2px 10px rgba(0,0,0,.25);
}


/* TikTok desktop strelice */
.tt-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px; height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1.5px solid rgba(255,255,255,.25);
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  z-index:20;
  transition:all .18s;
  display:flex; align-items:center; justify-content:center;
  pointer-events:all;
}
.tt-arrow:hover { background:rgba(255,255,255,.3); transform:translateY(-50%) scale(1.08); }
.tt-arrow:active { transform:translateY(-50%) scale(.92); }
/* Lijeva = preskoči */
.tt-arrow-left  { left:16px; }
/* Desna = lajk */
.tt-arrow-right { right:72px; }
/* Sakrij na mobilnom */
@media (hover: none) and (pointer: coarse) {
  .tt-arrow { display:none; }
}
@media (max-width: 767px) {
  .tt-arrow { display:none; }
}

.tiktok-swipe.tt-empty #tt-back,
.tiktok-swipe.tt-empty .tt-arrow,
.tiktok-swipe.tt-empty .tt-ind-like,
.tiktok-swipe.tt-empty .tt-ind-skip {
  display:none !important;
}
.tiktok-swipe.tt-empty .tt-info {
  right:84px;
  bottom:calc(var(--bottom-nav-space) + 18px);
}
.tiktok-swipe.tt-empty .tt-title {
  font-size:18px;
}
.tiktok-swipe.tt-empty .tt-desc {
  -webkit-line-clamp:3;
  color:rgba(255,255,255,.78);
}
.tiktok-swipe.tt-empty .tt-going .ev-avs {
  display:none;
}
.tiktok-swipe.tt-empty .tt-actions {
  gap:14px;
  right:10px;
  bottom:calc(var(--bottom-nav-space) + 20px);
}
.tiktok-swipe.tt-empty .tt-action-btn svg {
  width:28px;
  height:28px;
}
.tiktok-swipe.tt-empty .tt-action-btn span {
  font-size:10px;
}

@media (min-width: 768px) {
  .set-body {
    padding-top: 22px;
  }

  .admin-body,
  .create-body,
  .ev-detail,
  .rev-body {
    width: min(100%, 920px);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

  .prof-hero {
    padding: 28px 28px 26px;
  }

  .profile-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-hero-media {
    align-items:center;
  }

  .prof-name {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .prof-bio {
    max-width: 46ch;
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .prof-main {
    align-items:center;
  }

  .prof-rating,
  .profile-chip-row,
  .prof-socials {
    justify-content:center;
  }

  .profile-summary-row {
    align-items:center;
  }

  .profile-inline-groups .profile-chip-row {
    justify-content:center;
  }

  .profile-code-row {
    max-width: 100%;
  }

  .profile-hero-actions {
    flex-direction:row;
    align-items:center;
    justify-content:center;
    border-top:none;
    padding-top:4px;
    margin-top:0;
  }

  .profile-hero-actions .btn {
    width:auto;
  }

  #profile-review-card {
    width:min(100%, 920px);
  }

  .trust-section {
    margin: 16px auto;
    width: min(100%, 920px);
    padding: 20px;
  }

  .profile-info-grid {
    width:min(100%, 920px);
    margin-left:auto;
    margin-right:auto;
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .profile-safety-note {
    height:auto;
  }

  .chat-row {
    align-items:flex-start;
  }

  .chat-meta {
    min-width:74px;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .set-body {
    width: min(100%, 920px);
    max-width: 920px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .set-section,
  #page-settings .set-section-wide,
  #page-settings .set-footer-actions {
    grid-column: auto;
  }

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

  .draft-list,
  .organizer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #page-profile .prof-hero,
  #page-other-profile .prof-hero {
    display: block;
    text-align: center;
  }

  #page-profile .prof-hero > .av,
  #page-other-profile .prof-hero > .av {
    margin: 0 !important;
  }

  #page-profile .prof-main,
  #page-other-profile .prof-main {
    min-width: 0;
  }

  #page-profile .prof-socials,
  #page-other-profile .prof-socials,
  #page-profile .prof-rating,
  #page-other-profile .prof-rating,
  #page-profile .prof-main > div[style*="justify-content:center"],
  #page-other-profile .prof-main > div[style*="justify-content:center"] {
    justify-content: center !important;
    flex-wrap: wrap;
  }

  #page-profile .prof-stats,
  #page-other-profile .prof-stats {
    justify-content: center;
    gap: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 110px));
  }
}

@media (min-width: 1100px) {
  .prof-hero {
    padding: 52px 24px 34px;
  }

  .prof-stats {
    gap: 48px;
  }

  .prof-tabs {
    justify-content: center;
  }

  #profile-review-card {
    width:min(100%, 1080px);
  }

  .set-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .set-section {
    margin-bottom: 0;
    border-radius: 24px;
  }

  .trust-section {
    width: min(100%, 1100px);
  }
}


/* ═══════════════════════════════════════
   VENUE JAVNI PROFILI
═══════════════════════════════════════ */
.venue-card-pub {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  cursor:pointer;
  transition:all .22s cubic-bezier(.34,1.1,.64,1);
  box-shadow:var(--sh-sm);
}
.venue-card-pub:hover {
  box-shadow:0 12px 30px rgba(28,43,72,.10);
  transform:translateY(-2px);
  border-color:rgba(49,71,174,.14);
}
.venue-card-bg {
  height:52px;
  opacity:.8;
}
.venue-card-info { padding:12px 14px 14px; }
.venue-card-row { display:flex; align-items:center; gap:10px; }
/* Browse tab switcher */
.browse-tab { transition:all .15s; }
.browse-tab.active { border-bottom-color:var(--purple) !important; color:var(--purple) !important; }


/* ═══════════════════════════════════════
   BROWSE — čisti header + kvadratni grid
═══════════════════════════════════════ */
#page-browse {
  background:var(--bg);
  padding-bottom:90px;
  display:flex;
  flex-direction:column;
  min-height:100svh;
}

/* Sticky header */
.br-header {
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,253,249,.9);
  border-bottom:1px solid var(--border);
  box-shadow:0 10px 24px rgba(23,20,28,0.04);
  backdrop-filter:blur(16px);
}

.br-search-wrap,
.app-rug-wrap,
.br-tabs,
.br-pills-label,
.br-pills-wrap .pills,
#date-filter-row {
  width:min(calc(100% - 28px), 100%);
  max-width:calc(var(--content-max) - 20px);
  margin:0 auto;
  box-sizing:border-box;
}

/* Search row */
.br-search-wrap {
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 20px 14px;
  background:transparent;
}
.br-search-ico {
  position:absolute;
  left:22px;
  top:50%;
  transform:translateY(-50%);
  width:16px; height:16px;
  stroke:var(--ink4);
  pointer-events:none;
  z-index:1;
}
.br-search-input {
  flex:1;
  min-height:56px;
  padding:0 18px 0 50px;
  border:1px solid var(--border);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  font-size:15px;
  color:var(--ink);
  font-family:inherit;
  outline:none;
  transition:background .15s, box-shadow .15s, border-color .15s;
  min-width:0;
  box-shadow:var(--sh-sm);
}
.br-search-input:focus {
  background:var(--white);
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(154,52,56,.10);
}
.br-search-input::placeholder { color:var(--ink4); }
.browse-profile-search-results {
  width:min(calc(100% - 28px), 100%);
  max-width:calc(var(--content-max) - 20px);
  margin:0 auto 10px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--sh-sm);
  overflow:hidden;
}
.app-rug-wrap {
  width:min(calc(100% - 28px), 100%);
  max-width:calc(var(--content-max) - 20px);
  margin:0 auto 12px;
  box-sizing:border-box;
  position:relative;
}
.app-rug {
  position:relative;
  overflow:hidden;
  width:100%;
  height:clamp(74px, 9.4vw, 110px);
  border-radius:24px;
  border:1px solid rgba(18, 24, 39, 0.08);
  background-color:#f6f0e8;
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  box-shadow:
    0 16px 34px rgba(21, 20, 27, 0.08),
    inset 0 1px 0 rgba(255,255,255,.75);
}
.app-rug-wrap::before {
  content:'';
  position:absolute;
  inset:auto 6% -8px 6%;
  height:30px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(186,108,23,0.10) 0%, rgba(107,65,255,0.14) 50%, rgba(49,71,174,0.10) 100%);
  filter:blur(14px);
  pointer-events:none;
}
.app-rug::after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.03) 100%);
  pointer-events:none;
}
.app-rug-variant-1 {
  background-image:url("../../slika za header1.png");
}
.app-rug-variant-2 {
  background-image:url("/slike/duzi%20baner%20za%20kompjuter.png");
  background-size:cover;
  background-position:center 48%;
}
.app-rug-variant-3 {
  background-image:url("../../slika za header 3.png");
}
.browse-profile-search-head {
  padding:12px 16px 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink4);
}
.browse-profile-result {
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:transparent;
  border:none;
  border-top:1px solid var(--border);
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.browse-profile-result:first-of-type {
  border-top:none;
}
.browse-profile-result:hover {
  background:rgba(249,246,241,0.86);
}
.browse-profile-result-copy {
  min-width:0;
  flex:1;
}
.browse-profile-result-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  margin-left:auto;
}
.browse-profile-result-title {
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  font-size:14px;
  font-weight:700;
  color:var(--ink);
}
.browse-profile-result-meta {
  margin-top:3px;
  font-size:12px;
  color:var(--ink3);
}
/* City dugme */
.br-city-btn {
  display:flex;
  align-items:center;
  gap:5px;
  min-height:56px;
  padding:0 16px;
  border-radius:22px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.92);
  color:var(--ink2);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
  transition:all .18s ease;
  font-family:inherit;
  box-shadow:var(--sh-sm);
}
.br-city-btn:hover {
  border-color:rgba(107,65,255,.20);
  color:var(--purple);
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,240,255,0.98) 100%);
  transform:translateY(-1px);
}
.br-city-btn svg { stroke:currentColor; }
.browse-guest-actions {
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,250,249,0.98) 100%);
  border-top:1px solid var(--border);
}
.browse-guest-copy {
  font-size:12px;
  color:var(--ink3);
  line-height:1.45;
}
.browse-guest-btns {
  display:flex;
  gap:8px;
  flex-shrink:0;
}

/* Tabovi */
.br-tabs {
  display:flex;
  padding:8px 20px 10px;
  gap:8px;
  border-bottom:1px solid rgba(24,24,27,.05);
  background:transparent;
  overflow:visible;
  flex-wrap:wrap;
}
.br-tabs::-webkit-scrollbar { display:none; }
.br-tab {
  padding:10px 14px;
  font-size:13px;
  font-weight:700;
  color:var(--ink3);
  cursor:pointer;
  border:1px solid transparent;
  border-radius:14px;
  transition:all .2s ease;
  white-space:nowrap;
  flex:0 0 auto;
  letter-spacing:-0.02em;
  position:relative;
}
.br-tab:hover {
  color:var(--ink);
  background:rgba(255,255,255,.62);
  border-color:rgba(24,20,28,.04);
}
.br-tab.active {
  color:var(--purple2);
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,241,255,0.96) 100%);
  border-color:rgba(107,65,255,.14);
  box-shadow:0 10px 24px rgba(49,71,174,.08);
}
.br-tab.active::after {
  content:'';
  position:absolute;
  left:12px;
  right:12px;
  bottom:6px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--amber) 0%, var(--purple) 55%, var(--royal-blue) 100%);
}

/* Pills wrap */
.br-pills-wrap {
  padding:10px 0 0;
  background:transparent;
  overflow:hidden;
  border-bottom:1px solid rgba(24,24,27,0.05);
}
.br-pills-label {
  padding:0 20px 10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink4);
}
.br-pills-wrap .pills {
  padding:0 20px 14px;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  scroll-padding-inline:20px;
  flex-wrap:wrap;
  overflow:visible;
  row-gap:12px;
}
.br-pills-wrap .pills::-webkit-scrollbar { display:none; }
.br-pills-wrap .pill {
  flex:0 0 auto;
}
.browse-tag-filter-row {
  width:100%;
  padding:0 20px 14px;
}
.browse-tag-filter-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.browse-tag-filter-head span {
  font-size:12px;
  font-weight:700;
  color:var(--ink3);
}
.browse-tag-filter-clear {
  font-size:12px;
  font-weight:700;
  color:var(--purple);
  background:none;
  border:none;
  cursor:pointer;
}
.browse-tag-pills {
  padding:0;
  gap:8px;
  flex-wrap:wrap;
  overflow:visible;
}
.browse-tag-pills .pill {
  background:rgba(255,255,255,.86);
}
#date-filter-row {
  padding:0 20px 14px !important;
  max-width:100%;
}
#browse-date-input {
  width:100%;
  min-width:0;
  border-radius:14px;
  background:linear-gradient(180deg, #fff 0%, #fcfbff 100%);
}

/* Venue kategorije */
.br-venue-cats {
  display:flex;
  gap:7px;
  overflow:visible;
  scrollbar-width:none;
  padding:10px 14px;
  background:var(--white);
  border-bottom:1px solid var(--border);
  flex-wrap:wrap;
}
.br-venue-cats::-webkit-scrollbar { display:none; }

/* Panel */
.br-panel { padding:14px; flex:1; }
.create-tag-grid {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.create-tag-chip {
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.92);
  color:var(--ink3);
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  transition:all .16s ease;
  box-shadow:var(--sh-sm);
}
.create-tag-chip:hover {
  border-color:rgba(49,71,174,.32);
  color:var(--brand);
}
.create-tag-chip.active {
  background:linear-gradient(135deg, rgba(24,49,143,.96) 0%, rgba(79,70,229,.96) 100%);
  border-color:transparent;
  color:#fff;
}
.event-tag-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.event-tag-pill {
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(122,132,163,.18);
  color:var(--ink2);
  font-size:12px;
  font-weight:700;
  line-height:1;
}
.browse-home-panel { display:flex; flex-direction:column; gap:18px; }
.browse-home-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:4px;
}
.browse-home-city {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:800;
  color:var(--royal-blue);
}
.browse-home-strip {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin:0;
  padding:4px 0 2px;
}
.browse-home-strip::-webkit-scrollbar { display:none; }
.browse-home-note {
  margin:-2px 0 2px;
  font-size:13px;
  line-height:1.5;
  color:var(--ink3);
}
.browse-home-quick {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}
.browse-home-quick-card {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:22px;
  padding:16px 16px;
  box-shadow:var(--sh-sm);
  cursor:pointer;
  transition:var(--tr-normal);
  display:grid;
  grid-template-columns:46px minmax(0, 1fr) 26px;
  align-items:center;
  gap:12px;
  min-height:104px;
}
.browse-home-quick-card:hover { transform:translateY(-2px); box-shadow:var(--sh); }
.browse-home-quick-ico {
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  margin-bottom:0;
  background:var(--purple-bg);
}
.browse-home-quick-copy { min-width:0; }
.browse-home-quick-title {
  font-size:16px;
  font-weight:800;
  color:var(--ink);
  line-height:1.15;
  margin-bottom:5px;
}
.browse-home-quick-sub {
  font-size:13px;
  color:var(--ink3);
  line-height:1.4;
}
.browse-home-quick-arrow {
  display:flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:999px;
  color:var(--royal-blue);
  background:rgba(49,71,174,.08);
  font-size:17px;
  font-weight:700;
}
.browse-home-secondary-link {
  width:100%;
  margin-top:10px;
  border:1px solid rgba(49,71,174,.10);
  border-radius:18px;
  background:rgba(255,255,255,.78);
  padding:14px 16px;
  display:grid;
  grid-template-columns:32px minmax(0, 1fr) 24px;
  align-items:center;
  gap:12px;
  cursor:pointer;
  transition:var(--tr-normal);
  font-family:inherit;
}
.browse-home-secondary-link:hover { transform:translateY(-1px); box-shadow:var(--sh-sm); }
.browse-home-secondary-ico {
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:rgba(49,71,174,.08);
  color:var(--royal-blue);
  font-size:15px;
}
.browse-home-secondary-copy {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  text-align:left;
}
.browse-home-secondary-copy strong {
  font-size:14px;
  line-height:1.2;
  color:var(--ink);
}
.browse-home-secondary-copy span {
  font-size:12px;
  line-height:1.45;
  color:var(--ink3);
}
.browse-home-secondary-arrow {
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--royal-blue);
  font-size:16px;
  font-weight:700;
}
.browse-preview-card {
  min-width:0;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(252,248,243,.98) 100%);
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--sh-sm);
  cursor:pointer;
  transition:var(--tr-normal);
}
.browse-preview-card:hover { transform:translateY(-2px); box-shadow:var(--sh); }
.browse-preview-media {
  aspect-ratio:16 / 9;
  padding:12px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}
.browse-preview-kicker {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:800;
  color:#fff;
  background:rgba(21,21,28,.32);
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:6px 10px;
  backdrop-filter:blur(10px);
}
.browse-preview-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#fff;
  background:rgba(245,158,11,.95);
  padding:6px 9px;
  border-radius:999px;
}
.browse-preview-body {
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.browse-preview-title {
  font-size:16px;
  font-weight:800;
  line-height:1.18;
  color:var(--ink);
}
.browse-preview-meta {
  font-size:13px;
  line-height:1.5;
  color:var(--ink3);
}
.browse-preview-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:2px;
}
.browse-preview-spots {
  display:inline-flex;
  align-items:center;
  max-width:100%;
  font-size:11px;
  font-weight:700;
  line-height:1.3;
  border-radius:999px;
  padding:6px 10px;
}
.browse-preview-spots-ok,
.browse-preview-spots-neutral {
  background:var(--purple-bg);
  color:var(--purple2);
}
.browse-preview-spots-warning,
.browse-preview-spots-urgent {
  background:var(--amber-bg);
  color:var(--amber2);
}
.browse-preview-spots-full {
  background:var(--bg3);
  color:var(--ink3);
}
.browse-preview-btn {
  appearance:none;
  border:none;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-family:inherit;
  font-size:12px;
  font-weight:700;
  padding:9px 14px;
  cursor:pointer;
  transition:var(--tr-fast);
}
.browse-preview-btn:hover { background:var(--royal-blue); }
#browse-panel-discover {
  padding:0;
  background:
    radial-gradient(circle at top right, rgba(154,52,56,.18), transparent 24%),
    linear-gradient(180deg, #7F2A2F 0%, #8F2E2A 52%, #9A3438 100%);
}
#browse-panel-discover .tiktok-swipe {
  height:calc(100svh - 170px - var(--bottom-nav-space));
  min-height:520px;
}

/* Discover fullscreen mode (mobile-first) */
#page-browse.discover-fullscreen {
  padding-bottom: 0 !important;
}
#page-browse.discover-fullscreen .br-header,
#page-browse.discover-fullscreen #browse-panel-home,
#page-browse.discover-fullscreen #browse-panel-events,
#page-browse.discover-fullscreen #browse-panel-venues,
#page-browse.discover-fullscreen #browse-panel-plans {
  display: none !important;
}
#page-browse.discover-fullscreen #browse-panel-discover {
  position: fixed;
  inset: 0;
  z-index: 460;
  width: 100vw;
  height: 100svh;
  padding: 0;
}
#page-browse.discover-fullscreen #browse-panel-discover .tiktok-swipe {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  border-radius: 0;
}
#page-browse.discover-fullscreen #browse-panel-discover .tt-info {
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
}
#page-browse.discover-fullscreen #browse-panel-discover .tt-actions {
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 78px));
}
#page-browse.discover-fullscreen #browse-panel-discover .tt-filters {
  top: max(10px, env(safe-area-inset-top));
}
#page-browse.discover-fullscreen #browse-panel-discover .tt-back-btn {
  top: max(56px, calc(env(safe-area-inset-top) + 46px));
  left: max(12px, env(safe-area-inset-left));
}
body.discover-fullscreen-active .bottom-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#browse-panel-invites .inv-list {
  display:flex;
  flex-direction:column;
  gap:10px;
}

@media (max-width: 767px) {
  .set-body,
  .admin-body,
  .create-body,
  .ev-detail,
  .rev-body,
  .trust-section,
  .prof-hero,
  .prof-tabs,
  .ptab-pane {
    width: 100%;
    max-width: none;
  }

  .br-header {
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.55), transparent 24%),
      rgba(255,253,249,.94);
    backdrop-filter: blur(14px);
  }

  .br-search-wrap {
    gap: 10px;
    padding: 12px 14px 10px;
  }

  .app-rug-wrap {
    margin-bottom: 10px;
  }

  .app-rug {
    border-radius: 22px;
    height: 78px;
  }
  .app-rug-variant-2 {
    background-image:url("/slike/baner%20za%20mobilni%20kad%20se%20ulogujes.png");
    background-size: cover;
    background-position: center 46%;
    background-repeat: no-repeat;
    background-color: #FFFCF8;
  }

  .br-search-input {
    min-height: 52px;
    border-radius: 20px;
    font-size: 15px;
    padding-left: 50px;
  }

  .br-search-ico {
    left: 22px;
  }

  .br-city-btn {
    min-height: 52px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 12px;
  }

  .br-tabs {
    padding: 8px 14px 8px;
    gap: 8px;
    border-bottom: none;
  }

  .br-tab {
    padding: 11px 14px;
    border-radius: 15px;
    font-size: 13px;
  }

  .br-tab.active {
    box-shadow: var(--sh-sm);
  }

  .br-pills-wrap {
    padding-top: 4px;
    border-bottom: 1px solid var(--border);
  }

  .br-pills-label {
    padding: 0 14px 8px;
    font-size: 10px;
  }

  .br-pills-wrap .pills {
    padding: 0 14px 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    row-gap: 0;
  }

  .br-panel {
    padding: 12px 14px 22px;
  }

  .browse-home-panel {
    gap: 14px;
  }

  .browse-home-head {
    align-items: center;
    padding-top: 0;
  }

  .prof-hero {
    border-radius: 0;
    margin-top: 0;
  }

  .trust-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .prof-stats {
    grid-template-columns:1fr;
  }

  .profile-hero-actions {
    justify-content:center;
    border-top:none;
    padding-top:4px;
    margin-top:0;
  }

  .profile-info-grid,
  .profile-meta-strip {
    grid-template-columns:1fr;
  }

  .prof-tabs {
    gap:0;
    padding-left:8px;
    padding-right:8px;
  }

  .ptab {
    padding:14px 12px;
    font-size:12px;
    white-space:nowrap;
  }

  #profile-review-card {
    width:auto;
    margin-left:16px !important;
    margin-right:16px !important;
  }

  .chat-row {
    align-items:flex-start;
    gap:10px;
  }

  .chat-name-row {
    row-gap:6px;
  }

  .chat-meta {
    min-width:56px;
    gap:6px;
  }

  .chat-row-delete {
    padding:2px 7px;
    font-size:10px;
  }

  .chat-badge {
    width:17px;
    height:17px;
    font-size:9px;
  }

  .browse-home-city {
    font-size: 12px;
    letter-spacing: .01em;
  }

  .browse-home-strip {
    margin: 0 -14px;
    padding: 4px 14px 2px;
    gap: 12px;
  }

  .browse-home-strip .draft-empty {
    border-radius: 22px;
    min-height: 180px;
    padding: 22px 18px;
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.46), transparent 30%),
      linear-gradient(180deg, var(--white) 0%, var(--surface-soft) 100%);
    font-size: 15px;
    line-height: 1.55;
  }

  .browse-home-quick {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .browse-home-quick-card {
    display: grid;
    grid-template-columns: 44px 1fr 24px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    min-height: auto;
  }

  .browse-home-quick-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 0;
    font-size: 18px;
  }

  .browse-home-quick-title {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .browse-home-quick-sub {
    font-size: 12px;
    line-height: 1.4;
  }

  .browse-home-quick-arrow {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  #browse-panel-discover .tiktok-swipe {
    min-height: 560px;
    height: calc(100svh - 178px - var(--bottom-nav-space));
  }

  #browse-panel-discover .tt-filters {
    top: 10px;
    left: 56px;
    right: 12px;
    gap: 8px;
  }

  #browse-panel-discover .tt-pill {
    padding: 7px 12px !important;
    font-size: 12px !important;
  }

  #browse-panel-discover .tt-title {
    font-size: 22px;
    line-height: 1.08;
    max-width: 14ch;
  }

  #browse-panel-discover .tt-cat {
    font-size:10px;
    padding:5px 9px;
  }

  #browse-panel-discover .tt-desc {
    font-size: 14px;
    color: rgba(255,255,255,.74);
  }

  #browse-panel-discover .tt-info {
    left: 14px;
    right: 74px;
    bottom: calc(var(--bottom-nav-space) + 12px);
  }

  #browse-panel-discover .tt-actions {
    right: 8px;
    bottom: calc(var(--bottom-nav-space) + 20px);
    gap: 14px;
  }

  #browse-panel-discover .tt-action-btn svg {
    width: 30px;
    height: 30px;
  }

  #browse-panel-discover .tt-action-btn span {
    font-size: 10px;
  }

  #page-chat .chat-top {
    padding:10px 12px;
  }

  #page-chat .chat-mini-profile,
  #page-chat .chat-event-context,
  #page-chat .chat-status-bar {
    padding-left:12px;
    padding-right:12px;
  }

  #page-chat .chat-msgs {
    padding:12px;
  }

  #page-edit-profile .set-section:last-of-type {
    position: static;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .br-header {
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.64), transparent 24%),
      rgba(255,253,249,.9);
    backdrop-filter: blur(14px);
  }

  .br-search-wrap {
    gap: 12px;
    padding: 14px 0 10px;
  }

  .app-rug-wrap {
    margin-bottom: 12px;
  }

  .br-search-input {
    min-height: 58px;
    border-radius: 22px;
    font-size: 15px;
  }

  .br-city-btn {
    min-height: 58px;
    border-radius: 22px;
    padding: 0 16px;
  }

  .br-tabs {
    gap: 8px;
    padding: 10px 0 8px;
    background: transparent;
    border-bottom: 1px solid var(--border);
  }

  .br-tab {
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
  }

  .br-tab.active {
    background: var(--white);
    border-color: rgba(107,65,255,.12);
    box-shadow: var(--sh-sm);
  }

  .br-pills-wrap {
    background: transparent;
    border-bottom: none;
    padding-top: 4px;
  }

  .br-pills-wrap .pills {
    padding: 0 0 10px;
    gap: 10px;
  }

  .browse-tag-filter-row {
    padding: 0 0 12px;
  }

  #date-filter-row {
    padding: 0 0 10px !important;
    width: min(100%, 420px);
  }

  .br-panel {
    padding: 22px 0 28px;
  }

  .browse-home-panel {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: start;
  }

  .browse-home-panel > :first-child {
    grid-column: 1 / -1;
  }

  .browse-home-panel > :nth-child(2),
  .browse-home-panel > :nth-child(3) {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--sh-sm);
  }

  .browse-home-panel > :nth-child(2) {
    padding: 24px;
    min-height: 420px;
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.32), transparent 26%),
      linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
    color: var(--ink);
  }

  .browse-home-panel > :nth-child(2) .section-label,
  .browse-home-panel > :nth-child(2) .section-label a,
  .browse-home-panel > :nth-child(2) .browse-home-city,
  .browse-home-panel > :nth-child(2) .browse-home-head button {
    color: inherit !important;
  }

  .browse-home-panel > :nth-child(2) .draft-empty {
    min-height: 220px;
    border-radius: 22px;
    padding: 24px 24px;
    background: rgba(49,71,174,.05);
    border: 1px dashed rgba(49,71,174,.14);
    color: var(--ink3);
    font-size: 17px;
    line-height: 1.55;
  }

  .browse-home-panel > :nth-child(3) {
    padding: 20px;
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.44), transparent 24%),
      rgba(255,253,249,.92);
  }

  .browse-home-strip {
    margin: 0;
    padding: 6px 0 2px;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .browse-home-quick {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .browse-home-quick-card {
    display: grid;
    grid-template-columns: 48px 1fr 24px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
  }

  .browse-home-quick-ico {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    margin-bottom: 0;
    font-size: 20px;
  }

  .browse-home-secondary-link {
    margin-top: 12px;
  }

  .browse-preview-media {
    aspect-ratio:16 / 9;
  }

  .browse-preview-body {
    padding: 13px;
  }

  .browse-preview-title {
    font-size: 15px;
  }

  .browse-preview-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .browse-preview-btn {
    width: 100%;
  }

  .browse-home-quick-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .browse-home-quick-sub {
    font-size: 13px;
  }

  .browse-home-quick-arrow {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .sq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .venue-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  #browse-panel-discover {
    padding: 0;
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.2), transparent 24%),
      linear-gradient(180deg, #17233c 0%, #1e2f53 100%);
  }

  #browse-panel-discover .tiktok-swipe {
    min-height: 620px;
    height: calc(100svh - 252px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--sh-lg);
  }

  #browse-panel-discover .tt-filters {
    top: 12px;
    left: 18px;
    right: 18px;
    gap: 8px;
  }

  #browse-panel-discover .tt-back-btn {
    top: 58px;
    left: 18px;
    bottom: auto;
  }

  #browse-panel-discover .tt-info {
    left: 24px;
    right: 104px;
    bottom: calc(var(--bottom-nav-space) + 18px);
  }

  #browse-panel-discover .tt-title {
    font-size: 30px;
    max-width: 16ch;
  }

  #browse-panel-discover .tt-actions {
    right: 18px;
    bottom: 24px;
    gap: 18px;
  }
}

/* ── KVADRATNI GRID (Opcija A) ── */
.sq-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.sq-card {
  background:var(--white);
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  border:1px solid var(--border);
  box-shadow:0 8px 20px rgba(28,43,72,.06);
  transition:all .22s cubic-bezier(.34,1.1,.64,1);
}
.sq-card:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(28,43,72,.08);
  border-color:rgba(49,71,174,.14);
}
.sq-card:active { transform:scale(.97); }
/* Kvadratna slika */
.sq-img {
  aspect-ratio:16 / 9;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:8px;
}
.sq-cat {
  display:inline-flex;
  align-items:center;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.4);
  border-radius:8px;
  padding:3px 7px;
  font-size:11px;
  font-weight:700;
  color:var(--ink2);
  align-self:flex-start;
}
.sq-spots {
  align-self:flex-end;
  background:rgba(49,71,174,.88);
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:3px 8px;
  border-radius:8px;
  backdrop-filter:blur(8px);
}
.sq-spots.sq-spots-ok,
.sq-spots.sq-spots-neutral {
  background:rgba(49,71,174,.88);
  color:#fff;
}
.sq-spots.sq-spots-warning,
.sq-spots.sq-spots-urgent {
  background:rgba(217,119,6,.9);
  color:#fff;
}
.sq-spots.sq-spots-full {
  background:rgba(82,82,91,.82);
  color:#fff;
}
.sq-body {
  padding:11px 11px 12px;
}
.sq-title {
  font-size:14px;
  font-weight:800;
  color:var(--ink);
  line-height:1.32;
  margin-bottom:5px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sq-meta {
  font-size:11px;
  color:var(--ink3);
  line-height:1.45;
}
.sq-meta-primary {
  font-weight:700;
  color:var(--ink2);
  margin-bottom:2px;
}

/* ── VENUE REDOVI (Opcija B) ── */
.venue-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.venue-row-card {
  display:flex;
  align-items:center;
  gap:0;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  cursor:pointer;
  transition:all .2s;
  box-shadow:var(--sh-sm);
}
.venue-row-card:hover {
  border-color:rgba(49,71,174,.14);
  box-shadow:0 12px 30px rgba(28,43,72,.10);
  transform:translateY(-2px);
}
.venue-row-card:active { transform:scale(.98); }
.vrc-img {
  width:108px;
  min-height:110px;
  align-self:stretch;
  flex-shrink:0;
}
.vrc-info {
  flex:1;
  min-width:0;
  padding:16px 14px 16px 16px;
}
.vrc-name {
  font-size:16px;
  font-weight:800;
  color:var(--ink);
  margin-bottom:4px;
  letter-spacing:-0.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vrc-meta {
  font-size:13px;
  color:var(--ink3);
  margin-bottom:8px;
}
.vrc-tags {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.vrc-stats {
  padding:16px 14px 16px 8px;
  text-align:right;
  flex-shrink:0;
  min-width:86px;
}
.vrc-rating {
  font-size:15px;
  font-weight:800;
  color:var(--purple);
  margin-bottom:6px;
}
.vrc-count {
  font-size:12px;
  color:var(--ink4);
  white-space:nowrap;
}


#page-terms h1,#page-privacy h1{font-size:22px;font-weight:800;margin-bottom:6px;color:var(--ink)}
#page-terms h2,#page-privacy h2{font-size:15px;font-weight:700;margin:24px 0 8px;color:var(--ink2)}
#page-terms p,#page-terms li,#page-privacy p,#page-privacy li{font-size:14px;color:var(--ink3);line-height:1.7;margin:6px 0}
#page-terms ul,#page-privacy ul{padding-left:18px;margin:8px 0}
#page-terms .meta,#page-privacy .meta{font-size:12px;color:var(--ink4);margin-bottom:24px}
#page-terms .highlight,#page-privacy .highlight{background:var(--purple-bg);border-left:3px solid var(--purple);padding:12px 14px;border-radius:0 8px 8px 0;margin:14px 0}
#page-terms .warning,#page-privacy .warning{background:var(--red-bg);border-left:3px solid var(--red);padding:12px 14px;border-radius:0 8px 8px 0;margin:14px 0}
#page-terms a,#page-privacy a{color:var(--purple)}
#page-terms hr,#page-privacy hr{border:none;border-top:1px solid var(--border);margin:24px 0}

@media (min-width: 1100px) {
  #page-browse,
  #page-notif,
  #page-settings,
  #page-admin-drafts,
  #page-admin-organizers,
  #page-profile,
  #page-other-profile,
  #page-venue,
  #page-event,
  #page-chats,
  #page-chat,
  #page-create,
  #page-review {
    padding-bottom: 28px;
  }

  .br-panel,
  .browse-body,
  .set-body,
  .admin-body,
  .venue-body,
  .create-body,
  .ev-detail,
  .rev-body,
  .ob-wrap {
    width: min(100%, var(--content-max));
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
  }

  #page-browse .br-panel,
  #page-browse .br-search-wrap,
  #page-browse .app-rug-wrap,
  #page-browse .br-tabs,
  #page-browse .br-pills-wrap,
  #page-browse .browse-guest-actions {
    width: min(100%, var(--content-max));
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
  }

  .br-header {
    padding-top: 12px;
    padding-bottom: 10px;
    background:
      radial-gradient(circle at top right, rgba(231,224,215,.72), transparent 28%),
      rgba(255,253,249,.88);
  }

  .br-search-wrap {
    padding: 0;
  }

  .br-search-wrap,
  .app-rug-wrap,
  .br-tabs,
  .br-pills-wrap {
    border-radius: 28px;
  }

  .br-search-wrap {
    gap: 14px;
    padding: 0;
    align-items: center;
  }

  .app-rug-wrap {
    margin-bottom: 14px;
  }

  .app-rug {
    border-radius: 30px;
    height: 110px;
  }

  .br-search-input {
    min-height: 62px;
    border-radius: 24px;
    font-size: 17px;
    padding-left: 52px;
  }

  .br-search-ico {
    left: 20px;
  }

  .br-city-btn {
    min-height: 62px;
    padding: 0 20px;
    border-radius: 24px;
  }

  .br-tabs {
    display: flex;
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    gap: 8px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    overflow: visible;
    flex-wrap: wrap;
  }

  .br-tab {
    padding: 14px 20px;
    border-radius: 18px;
    font-size: 15px;
  }

  .br-pills-wrap {
    margin-top: 14px;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding-top: 0;
  }

  .br-pills-wrap .pills {
    padding: 0 0 10px;
    gap: 10px;
  }

  #date-filter-row {
    padding: 0 0 12px !important;
    width: min(100%, 520px);
  }

  .br-panel {
    padding: 30px var(--page-pad) 36px;
  }

  .sq-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

.browse-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, .92fr);
  gap: 20px;
  align-items: start;
}

  .browse-home-panel > :first-child {
    grid-column: 1 / -1;
    padding: 0 2px 6px;
  }

.browse-home-panel > :nth-child(2),
.browse-home-panel > :nth-child(3) {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--sh-sm);
}

.browse-home-panel > :nth-child(2) {
  padding: 26px 26px 24px;
  min-height: 460px;
  background:
    radial-gradient(circle at top right, rgba(231,224,215,.22), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fcfbff 100%);
  color: var(--ink);
  overflow: hidden;
  position: relative;
}

.browse-home-panel > :nth-child(3) {
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(231,224,215,.34), transparent 26%),
    rgba(255,253,249,.92);
}

  .browse-home-panel > :nth-child(2) .section-label,
  .browse-home-panel > :nth-child(2) .section-label a,
  .browse-home-panel > :nth-child(2) .browse-home-city,
  .browse-home-panel > :nth-child(2) .browse-home-head button {
    color: inherit !important;
  }

  .browse-home-panel > :nth-child(2) .section-label a {
    opacity: .8;
  }

.browse-home-panel > :nth-child(2) .draft-empty {
  background: rgba(49,71,174,.05);
  color: var(--ink3);
  border: 1px dashed rgba(49,71,174,.14);
  min-height: 220px;
  font-size: 17px;
  line-height: 1.6;
}

.browse-home-quick {
  grid-template-columns: 1fr;
  gap: 12px;
}

.browse-home-quick-card {
  padding: 18px 18px 18px 16px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
}

.browse-home-quick-ico {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 20px;
  margin-bottom: 0;
}

.browse-home-quick-title {
  font-size: 17px;
  margin-bottom: 3px;
}

.browse-home-quick-sub {
  font-size: 13px;
  line-height: 1.42;
}

.browse-home-quick-arrow {
  width: 28px;
  height: 28px;
  font-size: 17px;
}

.br-pills-label {
  padding-bottom: 10px;
}

.browse-home-strip {
  margin: 0;
  padding: 6px 0 2px;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.browse-home-strip .draft-empty {
  width: 100%;
  min-height: 180px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  border-radius: 22px;
  padding: 24px 24px;
  color: var(--ink3);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(circle at top right, rgba(231,224,215,.34), transparent 30%),
    linear-gradient(180deg, var(--white) 0%, var(--surface-soft) 100%);
  border: 1px dashed var(--border2);
}

.browse-home-head .section-label,
.browse-home-panel .section-label {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: .14em;
}

  .browse-home-head {
    align-items: end;
  }

  .venue-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #browse-panel-discover {
    padding: 26px var(--page-pad) 34px;
    background:
      radial-gradient(circle at top left, rgba(49,71,174,0.08), transparent 24%),
      radial-gradient(circle at bottom right, rgba(231,224,215,.52), transparent 22%),
      linear-gradient(180deg, rgba(247,242,234,0.96) 0%, rgba(255,253,249,0.98) 100%);
  }

  #browse-panel-discover .tiktok-swipe {
    width: min(100%, 980px);
    margin: 0 auto;
    height: min(78vh, 860px);
    min-height: 700px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(18,24,39,0.18);
    border: 1px solid rgba(255,255,255,0.55);
  }

  #browse-panel-discover .tt-filters {
    left: 18px;
    right: 22px;
    top: 12px;
  }

  #browse-panel-discover .tt-back-btn {
    top: 58px;
    left: 18px;
  }

  #browse-panel-discover .tt-info {
    left: 28px;
    right: 112px;
    bottom: 26px;
  }

  #browse-panel-discover .tt-title {
    font-size: 32px;
    max-width: 18ch;
  }

  #browse-panel-discover .tt-meta,
  #browse-panel-discover .tt-date,
  #browse-panel-discover .tt-desc {
    max-width: 62ch;
  }

  #browse-panel-discover .tt-actions {
    right: 18px;
    bottom: 28px;
    gap: 20px;
  }

  #browse-panel-discover .tt-empty .tt-info {
    max-width: 560px;
  }

  #browse-panel-discover .tt-empty .tt-title {
    font-size: 40px;
    line-height: 1.02;
  }

  #browse-panel-discover .tt-empty .tt-desc {
    font-size: 15px;
    line-height: 1.6;
  }

  #page-chats #chats-list,
  #page-notif #notif-list {
    width: min(100%, 1180px);
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--white);
  }

  #page-chat .chat-top,
  #page-chat .chat-mini-profile,
  #page-chat .chat-event-context,
  #page-chat .chat-status-bar,
  #page-chat .chat-trust-bar,
  #page-chat .chat-msgs,
  #page-chat .chat-inp {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
  }

  #page-chat .chat-top,
  #page-chat .chat-mini-profile,
  #page-chat .chat-event-context,
  #page-chat .chat-status-bar,
  #page-chat .chat-trust-bar,
  #page-chat .chat-inp {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--white);
  }

  #page-chat .chat-msgs {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(250,250,249,0.98) 100%);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 22px 24px;
  }

  #page-profile .prof-hero,
  #page-other-profile .prof-hero {
    text-align: left;
  }

  #page-profile .prof-hero > .av,
  #page-other-profile .prof-hero > .av {
    margin: 0 !important;
  }

  #page-profile .prof-main,
  #page-other-profile .prof-main {
    min-width: 0;
  }

  #page-profile .prof-bio,
  #page-other-profile .prof-bio {
    max-width: 70ch;
    margin-left: 0;
    margin-right: 0;
  }

  #page-profile .prof-socials,
  #page-other-profile .prof-socials,
  #page-profile .prof-rating,
  #page-other-profile .prof-rating {
    justify-content: flex-start;
  }

  .profile-hero-grid {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 24px;
  }

  .profile-hero-media {
    align-items:flex-start;
  }

  .prof-main {
    align-items:flex-start;
  }

  .profile-summary-row {
    align-items:flex-start;
  }

  .profile-inline-groups .profile-chip-row {
    justify-content:flex-start;
  }

  .profile-hero-actions {
    justify-content:flex-start;
    border-top:1px solid rgba(214,200,182,0.55);
    padding-top:14px;
    margin-top:2px;
  }

  #page-profile .prof-stats,
  #page-other-profile .prof-stats {
    justify-content: flex-start;
    gap: 24px;
    display:grid;
    grid-template-columns:repeat(3,minmax(90px,120px));
  }

  .prof-hero,
  .prof-tabs,
  .ptab-pane,
  .trust-section,
  .profile-info-grid,
  #page-other-profile .prof-hero {
    width: min(100%, 1080px);
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-info-grid {
    grid-template-columns:minmax(0, 1.2fr) minmax(280px, .8fr);
  }

  .prof-hero,
  #page-other-profile .prof-hero {
    margin-top: 18px;
    padding: 36px 32px 30px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
  }

  #page-profile .prof-main > div[style*="justify-content:center"],
  #page-other-profile .prof-main > div[style*="justify-content:center"] {
    justify-content:flex-start !important;
    flex-wrap:wrap;
  }

  #page-profile .prof-name,
  #page-other-profile .prof-name {
    font-size:34px;
    line-height:1.05;
  }

  #page-profile .prof-bio,
  #page-other-profile .prof-bio {
    font-size:16px;
    margin-bottom:16px;
  }

  .prof-tabs {
    margin-top: 16px;
    border-radius: 24px 24px 0 0;
    background: var(--white);
    overflow-x: auto;
    border: 1px solid var(--border);
    border-bottom: none;
    padding-left: 18px;
    padding-right: 18px;
    box-shadow: var(--sh-sm);
  }

  .ptab-pane {
    background: var(--white);
    padding: 26px 28px 30px;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--sh-sm);
  }

  .trust-section {
    max-width: 1080px;
    margin: 16px auto 0;
    padding: 22px 24px;
  }

  .set-body {
    max-width: 1080px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .set-section {
    margin-bottom: 0;
    border-radius: 24px;
  }

  #page-settings .set-section-wide,
  #page-settings .set-footer-actions {
    grid-column: 1 / -1;
  }

  .admin-body {
    max-width: 1100px;
  }

  .admin-nav-card {
    padding:14px;
    border-radius:24px;
    box-shadow:0 14px 34px rgba(24,24,27,.08);
  }

  .admin-grid {
    gap: 12px;
  }

  #page-admin-drafts .admin-body,
  #page-admin-organizers .admin-body,
  #page-admin-moderation .admin-body {
    gap: 18px;
  }

  .draft-list,
  .organizer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  #page-edit-profile .set-body {
    max-width: 980px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
  }

  #page-edit-profile .set-section {
    padding: 0 24px 28px;
    overflow: hidden;
  }

  #page-edit-profile .set-section-lbl {
    padding: 20px 0 14px;
  }

  #page-edit-profile .edit-profile-section-body {
    padding: 12px 0 6px;
  }

  #page-edit-profile .form-group {
    margin-bottom: 22px;
  }

  #page-edit-profile .form-group:last-child {
    margin-bottom: 0;
  }

  #page-edit-profile .set-section:last-of-type {
    position: sticky;
    top: 88px;
  }

  #page-edit-profile .form-label {
    margin-bottom: 8px;
  }

  #page-edit-profile .form-input,
  #page-edit-profile .form-select {
    min-height: 60px;
    padding-left: 22px;
    padding-right: 22px;
  }

  #page-edit-profile .form-input-city {
    padding-right: 54px;
    background-position: right 18px center;
  }

  #page-edit-profile .form-textarea {
    padding: 18px 22px;
  }

  #page-edit-profile .form-hint {
    margin-top: 8px;
    line-height: 1.5;
  }

  #page-edit-profile #edit-profile-bio {
    min-height: 188px;
  }

  .admin-panel {
    box-shadow:0 14px 34px rgba(24,24,27,.08);
  }

  .venue-top,
  .venue-body {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  .venue-top {
    padding: 26px 26px 22px;
    border-radius: 0 0 20px 20px;
  }

  .venue-body {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 20px;
    align-items: start;
  }

  .venue-body > .section-label,
  .venue-body > #venue-events-list {
    grid-column: 1;
  }

  .venue-body > div:first-child,
  .venue-body > div:last-child {
    grid-column: 2;
  }

  .create-body,
  .ev-detail,
  .rev-body {
    max-width: 980px;
  }

  .ev-meta-row {
    gap: 14px 18px;
  }

  .inv-row {
    padding: 14px 0;
  }

  .ev-bar-foot {
    left: calc(var(--desktop-nav-w) + 28px);
    right: 24px;
    width: auto;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 28px rgba(24,24,27,0.08);
    padding-top: 14px;
  }

  .ob-wrap {
    max-width: 960px;
  }
}

@media (min-width: 1400px) {
  .sq-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

/* Profile responsive stabilization */
#page-profile .profile-stats-band,
#page-other-profile .profile-stats-band {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

#page-profile .profile-code-row,
#page-other-profile .profile-code-row {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

#page-profile .prof-stats,
#page-other-profile .prof-stats {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#page-profile .profile-stat-card,
#page-other-profile .profile-stat-card {
  min-width: 0;
}

@media (min-width: 768px) {
  #page-profile .prof-hero,
  #page-other-profile .prof-hero {
    text-align: center;
  }

  #page-profile .profile-hero-grid,
  #page-other-profile .profile-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #page-profile .profile-hero-media,
  #page-other-profile .profile-hero-media,
  #page-profile .prof-main,
  #page-other-profile .prof-main,
  #page-profile .profile-summary-row,
  #page-other-profile .profile-summary-row,
  #page-profile .prof-socials,
  #page-other-profile .prof-socials,
  #page-profile .prof-rating,
  #page-other-profile .prof-rating,
  #page-profile .profile-inline-groups .profile-chip-row,
  #page-other-profile .profile-inline-groups .profile-chip-row,
  #page-profile .profile-hero-actions,
  #page-other-profile .profile-hero-actions {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  #page-profile .profile-stats-band,
  #page-other-profile .profile-stats-band {
    max-width: 880px;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
  }

  #page-profile .profile-code-row,
  #page-other-profile .profile-code-row {
    max-width: none;
    margin: 0;
  }

  #page-profile .prof-bio,
  #page-other-profile .prof-bio {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  #page-profile .profile-code-row,
  #page-other-profile .profile-code-row {
    max-width: 100%;
  }

  #page-profile .prof-stats,
  #page-other-profile .prof-stats {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
    gap: 12px;
  }

  .sq-grid {
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .sq-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
