/* ===================================================
   Basketball Playground Pics — Global Stylesheet
   =================================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Site palette */
  --black:       #000000;
  --white:       #FFFFFF;
  --gold:        #EBBC4E;
  --gold-dark:   #C9971F;
  --muted:       #BDBDBD;
  --dark:        #595959;
  --bg:          #F5F5F5;
  --border:      #E4E4E4;

  /* Card palette */
  --orange:      #F4731E;
  --orange-dark: #D45A0C;
  --card-meta:   #7F7F7F;
  --card-border: #DBDBDB;
  --card-bg:     #FFFFFF;

  /* Stars */
  --star-on:     #EBBC4E;
  --star-off:    #DBDBDB;

  /* Radii */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm:   0 1px 4px rgba(0,0,0,.06);
  --sh-md:   0 4px 16px rgba(0,0,0,.10);
  --sh-lg:   0 8px 32px rgba(0,0,0,.14);
  --sh-card: 0 2px 8px rgba(0,0,0,.06);
  --sh-card-hover: 0 12px 40px rgba(0,0,0,.16);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Spacing */
  --sp-xs: 4px; --sp-sm: 8px; --sp-md: 16px;
  --sp-lg: 24px; --sp-xl: 40px; --sp-2xl: 64px;

  /* Header controls */
  --header-cta-h: 34px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ===================================================
   Layout
   =================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
@media (max-width: 640px) { .container { padding: 0 var(--sp-md); } }

/* ===================================================
   Header
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: var(--sp-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo img { width: 28px; height: 28px; }
.site-header .logo img {
  width: var(--header-cta-h);
  height: var(--header-cta-h);
  object-fit: contain;
}
.logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #EBBC4E;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav-link.active { color: var(--white); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: var(--header-cta-h);
  gap: 6px;
  padding: 0 16px;
  background: var(--gold);
  color: var(--black);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Mobile nav */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.menu-btn:hover { background: rgba(255,255,255,.07); }
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 720px) {
  .menu-btn { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0a0a0a;
    padding: var(--sp-sm) var(--sp-md) var(--sp-md);
    border-bottom: 1px solid rgba(255,255,255,.07);
    gap: 2px;
  }
  .header-nav.open { display: flex; }
  .nav-cta { justify-content: center; margin-left: 0; margin-top: var(--sp-xs); }
}

/* ===================================================
   Filter Bar
   =================================================== */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: 90;
  box-shadow: var(--sh-sm);
}

.filter-bar-inner {
  position: relative;
}

.filter-scroll-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.filter-scroll-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, transparent, var(--white));
  pointer-events: none;
  z-index: 1;
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 0;
  padding-right: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-bar-inner.has-reset .filter-scroll {
  padding-right: 96px;
}

.filter-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.filter-label-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--orange); color: var(--orange); }
.filter-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.filter-pill.active-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.filter-pill .pill-star { font-size: 11px; }

/* Location search */
.filter-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.filter-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  width: 14px; height: 14px;
}
.filter-search {
  height: 34px;
  padding: 0 12px 0 30px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  outline: none;
  width: 150px;
  transition: border-color var(--t-fast), width var(--t-base);
}
.filter-search:focus { border-color: var(--orange); width: 200px; }
.filter-search::placeholder { color: var(--muted); }

.filter-reset {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 6px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--dark);
  background: var(--white);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.filter-reset:hover { border-color: var(--black); color: var(--black); }
.filter-reset.hidden { display: none; }

/* ===================================================
   Feed
   =================================================== */
.feed-section {
  padding: var(--sp-xl) 0 var(--sp-2xl);
  flex: 1;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  gap: var(--sp-md);
}

.feed-count {
  font-size: 13px;
  color: var(--dark);
}
.feed-count strong { color: var(--black); font-weight: 700; }

.feed-sort-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: 13px;
  color: var(--dark);
}
.feed-sort-wrap select {
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 13px;
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  outline: none;
  cursor: pointer;
}

/* Grid */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  position: relative;
}
@media (max-width: 1024px) { .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .feed-grid { grid-template-columns: 1fr; gap: var(--sp-md); } }

/* ===================================================
   Card
   =================================================== */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  animation: fadeUp .4s ease both;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-card-hover);
  border-color: var(--orange);
}

/* 3:2 aspect ratio */
.card-img-wrap {
  position: relative;
  padding-top: 66.666%;
  background: #111;
  overflow: hidden;
}
.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-img-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* Badges on image */
.card-badges {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  right: var(--sp-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: var(--sp-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-type             { background: rgba(0,0,0,.72); color: var(--white); }
.badge-type.basket      { background: rgba(244,115,30,.92); color: var(--white); }
.badge-type.minibasket  { background: rgba(235,188,78,.92); color: var(--black); }
.badge-type.promiscuo   { background: rgba(89,89,89,.88); color: var(--white); }
.badge-access           { background: rgba(0,0,0,.62); color: var(--white); }
.badge-access.public    { background: rgba(30,180,90,.88); }
.badge-access.private   { background: rgba(210,50,50,.88); }

/* Card body */
.card-body {
  padding: 14px var(--sp-md) var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--card-meta);
}
.card-location svg { width: 12px; height: 12px; color: var(--orange); flex-shrink: 0; }

.card-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stars {
  display: flex;
  gap: 2px;
}
.stars-inline { display: inline-flex; }
.star {
  font-size: 15px;
  line-height: 1;
  color: var(--star-off);
  transition: color var(--t-fast);
}
.star.on { color: var(--star-on); }

.stars-label {
  font-size: 11px;
  color: var(--card-meta);
  font-weight: 500;
}

/* Card footer */
.card-footer {
  padding: var(--sp-sm) var(--sp-md);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.card-date {
  font-size: 11px;
  color: var(--muted);
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background var(--t-fast), transform var(--t-fast);
  pointer-events: auto;
}
.maps-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.maps-btn svg { width: 11px; height: 11px; }

/* ===================================================
   Infinite Scroll Sentinel
   =================================================== */
.scroll-sentinel {
  grid-column: 1 / -1;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
.scroll-sentinel.done .spinner { display: none; }

.end-msg {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: var(--sp-lg);
  grid-column: 1 / -1;
  display: none;
}
.end-msg.show { display: block; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
}
.empty-icon { font-size: 56px; margin-bottom: var(--sp-md); opacity: .25; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: var(--sp-sm); }
.empty-desc { color: var(--dark); margin-bottom: var(--sp-lg); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 2px solid var(--black);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  transition: all var(--t-fast);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ===================================================
   Back to Top
   =================================================== */
.back-top {
  position: fixed;
  bottom: var(--sp-lg);
  right: var(--sp-lg);
  width: 42px; height: 42px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
  z-index: 50;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-top:hover { background: var(--orange); }
.back-top svg { width: 18px; height: 18px; }

/* ===================================================
   Page: Playground Detail
   =================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-md) 0;
  font-size: 13px;
  color: var(--dark);
}
.breadcrumb a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .sep { color: var(--muted); }

.detail-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-xl);
}
.detail-hero-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) { .detail-hero-img { aspect-ratio: 16/7; } }

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 100%);
}
.detail-hero-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
}
.detail-hero-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: var(--sp-sm);
}
.detail-hero-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-xl);
  padding-bottom: var(--sp-2xl);
}
@media (max-width: 860px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark);
  margin-bottom: var(--sp-md);
}

.detail-desc {
  font-size: 15px;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: var(--sp-xl);
}

.detail-empty { padding: 80px 24px; }
.detail-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: .2;
}
.detail-empty-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.detail-empty-desc {
  color: var(--dark);
  margin-bottom: 24px;
}

.info-box {
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  position: sticky;
  top: 130px;
}
.info-box h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border);
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.info-row:last-of-type { border-bottom: none; }
.info-key { color: var(--card-meta); font-weight: 500; flex-shrink: 0; width: 85px; }
.info-val { color: var(--black); font-weight: 600; }

.maps-btn-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 12px var(--sp-md);
  background: var(--orange);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  margin-top: var(--sp-md);
  transition: background var(--t-fast);
}
.maps-btn-lg:hover { background: var(--orange-dark); }
.maps-btn-lg svg { width: 16px; height: 16px; }

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid #dc3545;
  color: #dc3545;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--t-fast);
}
.btn-danger-outline:hover,
.btn-danger-outline:focus-visible {
  background: rgba(220,53,69,.08);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--dark);
  padding: 8px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-sm);
  background: var(--white);
  margin-bottom: var(--sp-xl);
  transition: all var(--t-fast);
}
.back-btn:hover { border-color: var(--black); color: var(--black); }
.back-btn svg { width: 14px; height: 14px; }

/* ===================================================
   Page: Add Playground
   =================================================== */
.add-hero {
  background: var(--black);
  color: var(--white);
  padding: var(--sp-xl) 0;
}
.add-hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-xs);
}
.add-hero p { color: var(--muted); font-size: 15px; }

.add-section { padding: var(--sp-xl) 0 var(--sp-2xl); }

.add-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-xl);
  align-items: start;
}
@media (max-width: 900px) { .add-layout { grid-template-columns: 1fr; } }

/* Form card */
.form-card {
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
}
.form-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: var(--sp-md); }
.form-group:last-child { margin-bottom: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
label .req { color: var(--orange); margin-left: 2px; }
.label-optional { color: var(--muted); font-weight: 400; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,115,30,.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

.form-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.form-err  { font-size: 11px; color: #dc3545; margin-top: 5px; display: none; }
.form-group.err .form-input,
.form-group.err .form-select,
.form-group.err .form-textarea { border-color: #dc3545; }
.form-group.err .form-err { display: block; }

/* Star rating selector */
.star-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}
.star-btn {
  font-size: 26px;
  color: var(--star-off);
  line-height: 1;
  transition: color var(--t-fast), transform var(--t-fast);
  padding: 2px;
}
.star-btn:hover, .star-btn.active { color: var(--star-on); }
.star-btn:hover { transform: scale(1.15); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--card-border);
  border-radius: var(--r-md);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
  overflow: hidden;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--orange);
  background: rgba(244,115,30,.03);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}
.upload-icon { font-size: 36px; opacity: .3; margin-bottom: var(--sp-sm); }
.upload-label { font-size: 14px; color: var(--dark); margin-bottom: 4px; }
.upload-label strong { color: var(--orange); }
.upload-sub { font-size: 11px; color: var(--muted); }

.upload-preview {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: var(--r-sm);
  overflow: hidden;
  display: none;
  margin-top: var(--sp-sm);
}
.upload-preview.show { display: block; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  background: rgba(0,0,0,.7);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--t-fast);
}
.upload-remove:hover { background: rgba(210,50,50,.85); }

/* Buttons */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  width: 100%;
  padding: 13px var(--sp-lg);
  background: var(--orange);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  transition: background var(--t-fast), transform var(--t-fast);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:active { transform: none; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  width: 100%;
  padding: 10px var(--sp-lg);
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  margin-top: var(--sp-sm);
  transition: all var(--t-fast);
}
.btn-ghost:hover { border-color: var(--black); color: var(--black); }

/* Preview sticky */
.add-preview {
  position: sticky;
  top: 130px;
}
.add-preview h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark);
  margin-bottom: var(--sp-md);
}
.add-preview .card { pointer-events: none; }

/* Success state */
.add-success {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-lg);
  display: none;
}
.add-success.show { display: block; }
.success-circle {
  width: 72px; height: 72px;
  background: rgba(30,180,90,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-md);
  font-size: 34px;
}
.add-success h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: var(--sp-sm);
  letter-spacing: -.02em;
}
.add-success p { color: var(--dark); margin-bottom: var(--sp-lg); }
.add-success .actions { display: flex; gap: var(--sp-sm); justify-content: center; flex-wrap: wrap; }
.add-success .actions a {
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  transition: all var(--t-fast);
}
.add-success .actions .primary-a {
  background: var(--orange);
  color: var(--white);
}
.add-success .actions .primary-a:hover { background: var(--orange-dark); }
.add-success .actions .secondary-a {
  border: 1.5px solid var(--card-border);
  color: var(--dark);
}
.add-success .actions .secondary-a:hover { border-color: var(--black); color: var(--black); }

.about-section { padding: var(--sp-2xl) 0; }

.about-how {
  background: var(--black);
  color: var(--white);
}
.about-how-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.about-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-xl);
  max-width: 900px;
  margin: 0 auto;
}
.about-how-step { text-align: center; }
.about-how-icon {
  font-size: 36px;
  margin-bottom: var(--sp-sm);
}
.about-how-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gold);
}
.about-how-step-desc {
  font-size: 13px;
  color: var(--dark);
  line-height: 1.7;
}

.about-cta {
  background: var(--black);
  padding: var(--sp-2xl) 0;
  text-align: center;
}
.about-cta-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: var(--sp-md);
}
.about-cta-desc {
  color: var(--muted);
  margin: 0 auto var(--sp-xl);
  max-width: 440px;
  font-size: 16px;
}
.about-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--black);
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 800;
  transition: background var(--t-fast);
}
.about-cta-btn:hover,
.about-cta-btn:focus-visible {
  background: var(--gold-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--white);
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-md);
  text-align: center;
}
.feature-icon { font-size: 36px; margin-bottom: var(--sp-md); }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--dark); line-height: 1.7; }

/* FAQ */
.faq-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.faq-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: var(--sp-xl);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--sp-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
}
.faq-q svg {
  width: 18px; height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--t-base), color var(--t-fast);
}
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--orange); }
.faq-a {
  font-size: 14px;
  color: var(--dark);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding-bottom var(--t-base);
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: var(--sp-md); }
.faq-link {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================================================
   Toast
   =================================================== */
.toast-shelf {
  position: fixed;
  bottom: var(--sp-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px var(--sp-md);
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--sh-lg);
  animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards;
  pointer-events: auto;
  white-space: nowrap;
}
.toast.success { border-left: 4px solid #1eb45a; }
.toast.error   { border-left: 4px solid #dc3545; }
.toast.info    { border-left: 4px solid var(--gold); }

/* ===================================================
   Animations
   =================================================== */
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn   { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut  { from { opacity: 1; } to { opacity: 0; transform: translateY(10px); } }

/* Card stagger */
.feed-grid .card:nth-child(3n+1) { animation-delay: 0ms; }
.feed-grid .card:nth-child(3n+2) { animation-delay: 60ms; }
.feed-grid .card:nth-child(3n)   { animation-delay: 120ms; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--black);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
}

.noscript-alert {
  padding: 12px var(--sp-md);
  text-align: center;
  background: #fff6de;
  color: #6a4a00;
  border-bottom: 1px solid #f2d089;
  font-size: 13px;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
