/* =========================================================
   TJUNING — Light Motorsport Workshop Editorial
   Palette: warm paper, asphalt, racing red, machine metal
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg:          #17181C;
  --surface:     #22242A;
  --surface-alt: #2B2E35;
  --surface-up:  #343842;

  --line:        #3A3E48;
  --line-soft:   #30343C;
  --line-bright: #4A4F5B;
  --chrome:      #A8ADB8;

  --ink:         #E8EAED;
  --ink-soft:    #A0A6B0;
  --ink-faint:   #6B717C;

  --red:         #FF3B30;
  --red-deep:    #D62B20;
  --red-tint:    rgba(255, 59, 48, 0.10);

  --amber:       #E8A13D;
  --amber-tint:  rgba(232, 161, 61, 0.10);
  --olive:       #4CC38A;
  --olive-tint:  rgba(76, 195, 138, 0.10);

  --radius-s: 3px;
  --radius-m: 5px;
  --radius-l: 8px;

  --shadow-card: 0 2px 4px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  --shadow-pop:  0 24px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-brand:   'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% -20%, #2A2D35 0%, var(--bg) 55%),
    linear-gradient(180deg, var(--bg) 0%, #101114 100%);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}
/* Pozadina cele stranice sa tamnim prekrivačem (osim profila) — slika je jedva vidljiva, kao na auto stranici */
body.site-bg {
  background-image:
    linear-gradient(rgba(8, 9, 12, 0.90), rgba(5, 6, 8, 0.94)),
    url('/images/site/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* Na profilu korisnika vraćamo čist tamni gradijent (auto slika je banner) */
body.profile-page {
  background-image:
    radial-gradient(circle at 50% -20%, #2A2D35 0%, var(--bg) 55%),
    linear-gradient(180deg, var(--bg) 0%, #101114 100%);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: .01em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }

/* =========================================================
   TOP BAR + NAVBAR
   ========================================================= */
.topbar { background: linear-gradient(180deg, #1E2026, #141518); color: var(--chrome); border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-row { display: flex; justify-content: space-between; align-items: center; height: 30px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-mono); }
.topbar-meta { color: var(--ink-faint); }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(23,24,28,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-bright);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.nav-left { display: flex; flex: 1; }
.nav-right { display: flex; flex: 1; justify-content: flex-end; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 26px; letter-spacing: .06em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand img.logo-img { height: 38px; width: auto; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--radius-s);
  background: linear-gradient(135deg, #F8F8FA, #9AA0AA 60%, #5C616B);
  color: #1B1B1E;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.brand-mark svg { width: 18px; height: 18px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-display); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--red); font-weight: 700; }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---- NAV USER DROPDOWN (desktop) ---- */
.nav-user-dropdown { position: relative; }
.nav-user-dropdown > a { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 999px; transition: background .15s; }
.nav-user-dropdown > a:hover { background: var(--surface-alt); }
/* Most između avatara i menija — hover ne nestaje kad se miš pomera */
.nav-user-dropdown::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
.nav-user-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line-bright); border-radius: var(--radius-m);
  box-shadow: var(--shadow-pop); padding: 6px; display: none; flex-direction: column; z-index: 120;
}
.nav-user-dropdown:hover .nav-user-menu { display: flex; }
.nav-user-menu a { padding: 9px 12px; font-size: 13px; color: var(--ink-soft); border-radius: var(--radius-s); white-space: nowrap; }
.nav-user-menu a:hover { background: var(--surface-alt); color: var(--ink); }
.nav-search-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: color .15s; padding: 6px; margin-right: 4px; }
.nav-search-icon:hover { color: var(--ink); }
.nav-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: color .15s; padding: 6px; margin-right: 4px; }
.nav-bell:hover { color: var(--ink); }
.nav-bell-badge {
  position: absolute; top: 0; right: 0;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  min-width: 14px; height: 14px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 3px;
}
.mobile-right { display: none; align-items: center; gap: 4px; margin-left: auto; z-index: 5; }
.mobile-search-icon { position: relative; }
.mobile-search-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: color .15s; padding: 6px;
}
.mobile-search-icon:hover { color: var(--ink); }
.mobile-bell-icon { position: relative; }
@media (max-width: 768px) {
  .mobile-right { display: inline-flex; }
}

@media (max-width: 768px) {
  .mobile-search-icon { display: inline-flex; }
}

/* ---- FLOAT PORUKE BUBBLE (desktop samo) ---- */
.msg-float-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1) inset;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.msg-float-bubble:hover { transform: translateY(-3px); background: var(--red-deep); box-shadow: 0 10px 28px rgba(0,0,0,.6); }
@media (max-width: 768px) { .msg-float-bubble { display: none; } }
.nav-user-info-wrap { display: flex; align-items: center; gap: 8px; }
.nav-user-text { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.nav-username { font-size: 13px; font-weight: 600; color: var(--ink); }
.nav-username:hover { color: var(--red); }
.nav-club-badge {
  font-size: 9px; font-family: var(--font-mono);
  color: var(--red); background: var(--red-tint);
  border: 1px solid rgba(212,58,43,.2);
  padding: 1px 5px; border-radius: var(--radius-s);
  text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--line-bright); aspect-ratio: 1/1; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-m);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap; font-family: var(--font-display);
}
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-secondary { background: var(--surface); color: var(--ink-soft); border-color: var(--line-bright); }
.btn-secondary:hover { background: var(--surface-up); color: var(--ink); border-color: var(--ink-soft); }

.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn-amber { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-amber:hover { background: #965e13; border-color: #965e13; }

.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; padding: 8px 12px; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-alt); }

.btn-sm { padding: 6px 13px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* =========================================================
   STATUS PILLS
   ========================================================= */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-mono); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; }

.pill-planned { background: var(--amber-tint); color: var(--amber); border: 1px solid rgba(183,121,31,.25); }
.pill-planned .pill-dot { background: var(--amber); }

.pill-progress { background: var(--red-tint); color: var(--red); border: 1px solid rgba(212,58,43,.25); }
.pill-progress .pill-dot { background: var(--red); }

.pill-done { background: var(--olive-tint); color: var(--olive); border: 1px solid rgba(46,125,91,.25); }
.pill-done .pill-dot { background: var(--olive); }

/* =========================================================
   ID PLATE — asphalt steel
   ========================================================= */
.id-plate {
  position: relative; background: var(--surface);
  border-radius: var(--radius-m); padding: 16px 20px;
  font-family: var(--font-mono); color: var(--ink-soft);
  border: 1px solid var(--line-bright); box-shadow: var(--shadow-card);
}
.id-plate::before, .id-plate::after, .id-plate .rivet-tl, .id-plate .rivet-br { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--line-bright); }
.id-plate::before { top: 6px; left: 6px; }
.id-plate::after { bottom: 6px; right: 6px; }
.id-plate .rivet-tl { top: 6px; right: 6px; }
.id-plate .rivet-br { bottom: 6px; left: 6px; }

.id-plate-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
.id-plate-field { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.id-plate-label { font-size: 8.5px; letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; }
.id-plate-value { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.id-plate-value em { font-style: normal; color: var(--red); }

/* =========================================================
   CARDS
   ========================================================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-card); transition: border-color .2s ease, transform .2s ease, box-shadow .2s; }
.card:hover { border-color: var(--line-bright); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.car-card { display: flex; flex-direction: column; }
.car-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-alt); border-bottom: 1px solid var(--line-soft); }
.car-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.car-card:hover .car-card-media img { transform: scale(1.03); }

.car-no-cover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-alt); min-height: 160px; }

.hero-img-placeholder { aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--surface-alt); color: var(--ink-faint); font-size: 11px; font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

.car-card-club { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; background: rgba(27,25,22,.85); color: var(--bg); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-s); }
.car-card-club .club-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.car-card-status { position: absolute; top: 10px; right: 10px; }

.car-card-body { padding: 16px; }
.car-card-title { font-size: 16px; font-weight: 600; margin-bottom: 3px; font-family: var(--font-display); letter-spacing: .01em; color: var(--ink); }
.car-card-sub { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-bottom: 12px; }
.car-card-sub .sub-ks { color: var(--ink-soft); }
.car-card-sub .sub-godiste { color: var(--ink-faint); }
.car-card-sub .sub-motor { color: var(--ink-soft); }
.form-row { gap: 12px; }
.form-row .form-group { margin-bottom: 12px; }
.form-card .form-group { margin-bottom: 14px; }
.car-card-update { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); padding-top: 10px; border-top: 1px solid var(--line-soft); }
.car-card-update b { color: var(--ink); font-weight: 500; }
.car-card-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 11.5px; color: var(--ink-faint); }
.car-card-meta span { display: inline-flex; align-items: center; gap: 4px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.feed-car-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .feed-car-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feed-car-grid { grid-template-columns: 1fr; } }

/* =========================================================
   TIMELINE (Updates) — Facebook-style post
   ========================================================= */
.update-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.update-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.update-head-avatar { flex-shrink: 0; }
.update-head-avatar img { width: 40px; height: 40px; }
.update-head-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.update-head-meta b { font-size: 13.5px; color: var(--ink); }
.update-head-meta b:hover { color: var(--red); }
.update-head-meta span { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }
.update-del-btn {
  flex-shrink: 0;
  background: none; border: none; color: var(--ink-faint);
  padding: 6px; border-radius: 50%; cursor: pointer;
  transition: color .15s, background .15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.update-del-btn:hover { color: var(--red); background: var(--red-tint); }
.update-body {
  display: flex; flex-direction: column;
  padding: 16px;
}
.update-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.update-body p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 10px; }
.update-meta-cost { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11.5px; color: var(--olive); background: var(--olive-tint); padding: 2px 7px; border-radius: var(--radius-s); align-self: flex-start; margin-bottom: 10px; border: 1px solid rgba(46,125,91,.2); }
.update-tags { margin-bottom: 10px; }
.update-thumbs { margin-top: 10px; }
.update-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.update-img-link { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.update-img-link img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.update-img-link:hover img { opacity: 0.85; }
.update-comments { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.update-date { display: none; }
.update-date b { display: none; }

/* =========================================================
   FORMS & INPUTS
   ========================================================= */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 20px; }
.eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 4px; display: block; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: block; font-size: 10.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; font-family: var(--font-display); }
input[type=text], input[type=number], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-m);
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px var(--red-tint); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
textarea { resize: vertical; min-height: 80px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A948A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }

.upload-box { border: 2px dashed var(--line-bright); border-radius: var(--radius-l); padding: 26px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13px; background: var(--surface); transition: border-color .15s, background-color .15s; }
.upload-box:hover { border-color: var(--red); background: var(--surface-alt); }
.upload-box svg { color: var(--ink-faint); }

/* =========================================================
   HOMEPAGE
   ========================================================= */
.home-hero { padding: 48px 0 36px; border-bottom: 2px solid var(--ink); }
.home-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; }
.home-hero-text { flex: 1 1 320px; min-width: 0; }
.home-hero-text h1 { font-size: 66px; font-weight: 700; line-height: .95; letter-spacing: .01em; margin: 6px 0 12px; text-transform: uppercase; }
.home-hero-text h1 em { font-style: normal; color: var(--red); }
.home-hero-text p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: 440px; }
.home-hero-stats { display: flex; gap: 34px; flex-shrink: 0; position: relative; }
.home-hero-stats::before { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: linear-gradient(90deg, var(--red), transparent 60%); }
.h-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.h-stat b { font-size: 40px; font-weight: 700; font-family: var(--font-display); color: var(--ink); line-height: 1; }
.h-stat span { font-size: 10px; font-family: var(--font-mono); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .07em; }
.home-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

.home-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.home-section-head.center { justify-content: center; text-align: center; }
.home-section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.home-section-label::after { content: ''; flex: 1; height: 2px; background: var(--line); min-width: 40px; }

.home-activity-section { padding-top: 32px; padding-bottom: 8px; }
.activity-feed { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.activity-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 13px; transition: background .15s; text-decoration: none; position: relative; }
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--surface-alt); }
.activity-avatar { position: relative; flex-shrink: 0; }
.activity-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-bright); display: block; }
.activity-type-dot { position: absolute; bottom: -2px; right: -2px; width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.dot-update { background: var(--red); color: #fff; }
.dot-car { background: var(--ink); color: var(--bg); }
.activity-body { flex: 1; min-width: 0; }
.activity-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-text strong { color: var(--ink); font-weight: 600; }
.activity-highlight { color: var(--red); font-weight: 600; }
.activity-thumb { width: 46px; height: 36px; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.activity-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-time { font-size: 10.5px; font-family: var(--font-mono); color: var(--ink-faint); flex-shrink: 0; min-width: 28px; text-align: right; }

.home-garage-section { padding-top: 32px; padding-bottom: 80px; }

.brand-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.brand-filters-centered { justify-content: center; }
.brand-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); transition: all .15s; white-space: nowrap; text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.brand-chip:hover { border-color: var(--line-bright); color: var(--ink); }
.brand-chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.brand-chip-count { font-size: 9.5px; font-family: var(--font-mono); opacity: .7; background: rgba(0,0,0,.25); padding: 0 6px; border-radius: 999px; }
.brand-chip.active .brand-chip-count { background: rgba(0,0,0,.2); opacity: 1; }

.home-car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.hcar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; text-decoration: none; box-shadow: var(--shadow-card); }
.hcar-card:hover { border-color: var(--line-bright); transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.hcar-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-alt); border-bottom: 1px solid var(--line-soft); }
.hcar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; display: block; }
.hcar-card:hover .hcar-media img { transform: scale(1.04); }
.hcar-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-alt); }
.hcar-status { position: absolute; top: 9px; right: 9px; }
.hcar-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hcar-title { font-size: 16px; font-weight: 600; font-family: var(--font-display); letter-spacing: .01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcar-sub { font-size: 11px; font-family: var(--font-mono); color: var(--ink-soft); }
.hcar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hcar-owner { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-soft); min-width: 0; }
.hcar-owner-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-bright); flex-shrink: 0; }
.hcar-last-update { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-faint); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0; text-align: right; }

.home-empty { padding: 60px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--ink-soft); font-size: 14px; }

/* =========================================================
   HERO (STATIC / LEGACY)
   ========================================================= */
.hero { padding: 60px 0 80px; position: relative; }
.hero-row { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-row > div { flex: 1 1 420px; min-width: 0; }
.hero h1 { font-size: 60px; line-height: .95; letter-spacing: .01em; margin-bottom: 16px; font-weight: 700; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 15px; color: var(--ink-soft); max-width: 440px; margin-bottom: 24px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.hero-visual { position: relative; min-width: 0; width: 100%; }
.hero-plate { margin-top: 14px; }
.hero-media { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-bright); box-shadow: var(--shadow-pop); width: 100%; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; display: block; }

.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; background: var(--surface); }
.stats-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--ink); }
.stat span { font-size: 10.5px; color: var(--ink-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }

.how { padding-top: 60px; padding-bottom: 60px; }
.how-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.how-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow-card); }
.how-num { font-family: var(--font-mono); font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 12px; display: block; }
.how-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.how-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.showcase { padding-bottom: 60px; }

.clubs-teaser { padding-bottom: 80px; }
.club-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.club-card { padding: 18px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-card); }
.club-icon { width: 42px; height: 42px; border-radius: var(--radius-m); background: var(--surface-alt); border: 1px solid var(--line-bright); display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 18px; flex-shrink: 0; }
.club-card h4 { font-size: 16px; margin-bottom: 2px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.club-card p { font-size: 12.5px; color: var(--ink-soft); }
.club-card-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 4px; }

/* =========================================================
   FEED PAGE
   ========================================================= */
.feed-head { margin-bottom: 24px; }
.feed-head h1 { font-size: 34px; margin-bottom: 4px; text-transform: uppercase; }
.feed-head p { color: var(--ink-soft); font-size: 14px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); white-space: nowrap; transition: all .15s; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.chip:hover { color: var(--ink); border-color: var(--line-bright); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }

.feed-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; padding-bottom: 80px; }
aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; box-shadow: var(--shadow-card); }
.aside-card h3 { font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); font-family: var(--font-display); }
.mini-club { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.mini-club span { font-size: 11.5px; color: var(--ink-faint); margin-left: auto; font-family: var(--font-mono); }

/* =========================================================
   PROFILE PAGE
   ========================================================= */
.profile-head { width: 100%; border-bottom: 2px solid var(--ink); margin-bottom: 24px; position: relative; overflow: hidden; }
.profile-head > .container { padding-top: 36px; padding-bottom: 20px; position: relative; z-index: 2; }
.profile-head.has-bg > .container { min-height: 320px; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; }
.profile-bg-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.profile-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.profile-bg-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,11,14,.72) 0%, rgba(10,11,14,.45) 55%, var(--bg) 100%); }
.profile-row { position: relative; display: flex; align-items: center; gap: 20px; padding: 22px 0; }
.profile-stats { position: relative; }
.profile-actions { position: relative; margin-left: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: auto; }
.profile-actions .btn { width: auto; white-space: nowrap; align-self: flex-start; }
.profile-avatar-wrap { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; position: relative; border: 2px solid var(--line-bright); flex-shrink: 0; }
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-wrap.is-owner { cursor: pointer; }
.avatar-overlay { position: absolute; inset: 0; background: rgba(27,25,22,.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; color: #fff; }
.profile-avatar-wrap:hover .avatar-overlay { opacity: 1; }

.profile-row h1 { font-size: 30px; font-weight: 600; margin-bottom: 2px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.profile-row p { color: var(--ink-soft); font-size: 13px; }
.profile-stats { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.profile-stats .stat {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 6px 13px;
  font-size: 13px; color: var(--ink);
}
.profile-stats .stat b { font-size: 18px; font-weight: 700; font-family: var(--font-display); color: var(--red); line-height: 1; }
.profile-stats .stat span { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }

/* =========================================================
   CAR DETAILS PAGE
   ========================================================= */
.car-profile-header { padding: 36px 0 24px; position: relative; z-index: 2; }
.car-profile-row { display: flex; align-items: center; gap: 24px; }
.car-profile-thumb { width: 160px; height: 110px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line-bright); box-shadow: var(--shadow-pop); background: var(--surface-alt); flex-shrink: 0; }
.car-profile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); background: var(--surface-alt); }
.car-profile-info h1 { font-size: 36px; font-weight: 700; letter-spacing: .01em; margin-bottom: 6px; color: var(--ink); font-family: var(--font-display); text-transform: uppercase; }
.car-profile-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.meta-tag { font-size: 11.5px; font-family: var(--font-mono); color: var(--ink-soft); background: var(--surface-alt); border: 1px solid var(--line); padding: 2px 9px; border-radius: var(--radius-s); }
.meta-club { font-size: 11.5px; font-family: var(--font-mono); color: var(--red); background: var(--red-tint); border: 1px solid rgba(212,58,43,.25); padding: 2px 9px; border-radius: var(--radius-s); text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.car-profile-owner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.car-profile-owner a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.car-profile-owner a:hover { color: var(--red); }

.car-toolbar { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 14px 0; background: var(--surface); }
.car-toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.car-stats { display: flex; align-items: center; gap: 24px; }
.car-stats .stat { display: flex; flex-direction: column; gap: 2px; }
.car-stats .stat b { font-size: 20px; font-family: var(--font-display); color: var(--red); line-height: 1; }
.car-stats .stat span { font-size: 10px; font-family: var(--font-mono); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }

.car-body { display: block; padding-top: 24px; padding-bottom: 80px; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; margin-bottom: -2px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--red); border-bottom-color: var(--red); font-weight: 700; }

.status-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px; margin-bottom: 20px; }
.status-box-top { display: flex; gap: 10px; align-items: flex-start; }
.status-box-top textarea { background: transparent; border-color: transparent; padding: 4px 0; min-height: 40px; font-size: 14px; }
.status-box-top textarea:focus { border-color: transparent; box-shadow: none; }
.status-box-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.status-meta-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer; padding: 6px 11px; border-radius: var(--radius-m); background: var(--surface-alt); border: 1px solid var(--line-bright); }
.status-meta-btn:hover { background: var(--surface-up); color: var(--ink); }

.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow-card); }
.side-card h3 { font-size: 13px; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; font-family: var(--font-display); }

.plan-list { display: flex; flex-direction: column; gap: 10px; }
.plan-item { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.plan-item:last-child { border-bottom: none; }
.plan-check { width: 18px; height: 18px; border-radius: var(--radius-s); border: 1px solid var(--line-bright); display: flex; align-items: center; justify-content: center; background: var(--surface); font-size: 10px; color: #fff; }
.plan-item.done .plan-check { background: var(--olive); border-color: var(--olive); }
.plan-item.done .plan-title { color: var(--ink-faint); text-decoration: line-through; }
.plan-title { font-size: 13px; font-weight: 500; }

/* =========================================================
   CLUB PAGE (Singular)
   ========================================================= */
.club-hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); padding: 44px 0; border-bottom: 2px solid var(--ink); }
.club-hero-row { display: flex; align-items: center; gap: 20px; }
.club-hero-icon { width: 58px; height: 58px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line-bright); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; box-shadow: var(--shadow-card); }
.club-hero h1 { font-size: 34px; font-weight: 600; margin-bottom: 3px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.club-hero p { color: var(--ink-soft); font-size: 13.5px; }
.club-hero-meta { display: flex; gap: 12px; font-size: 11px; font-family: var(--font-mono); color: var(--ink-faint); text-transform: uppercase; }
.club-hero-actions { margin-left: auto; }

.members-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px; }
.member { text-align: center; }
.member img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; border: 2px solid var(--line-bright); }
.member b { display: block; font-size: 11.5px; color: var(--ink); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.member span { font-size: 10px; color: var(--ink-faint); font-family: var(--font-mono); }

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-bottom: 80px; }
.admin-menu { display: flex; flex-direction: column; gap: 4px; }
.admin-menu-item { padding: 9px 13px; border-radius: var(--radius-m); font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.admin-menu-item:hover { background: var(--surface-alt); color: var(--ink); }
.admin-menu-item.active { background: var(--ink); color: var(--bg); }
.admin-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; box-shadow: var(--shadow-card); }
.admin-content h2 { font-size: 22px; margin-bottom: 12px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.admin-table-wrap { overflow-x: auto; margin-top: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.admin-table th, .admin-table td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); }
.admin-table th { background: var(--surface-alt); font-weight: 600; color: var(--ink-soft); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.admin-table tr:hover td { background: var(--surface-alt); }
.admin-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-stat-card { background: var(--surface-alt); border: 1px solid var(--line-bright); border-radius: var(--radius-m); padding: 16px; }
.admin-stat-val { font-size: 26px; font-family: var(--font-display); font-weight: 700; color: var(--red); }
.admin-stat-lbl { font-size: 9.5px; color: var(--ink-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }

/* =========================================================
   WRAPPERS
   ========================================================= */
.wrap { max-width: 500px; margin: 0 auto; padding: 48px 20px 80px; }
.head { text-align: center; margin-bottom: 24px; }
.head h1 { font-size: 30px; margin-bottom: 6px; font-family: var(--font-display); text-transform: uppercase; }
.head p { color: var(--ink-soft); font-size: 13.5px; }

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 56px; background: rgba(23,24,28,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-bright); z-index: 999; justify-content: space-around; align-items: center; padding-bottom: env(safe-area-inset-bottom, 0px); }
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-soft); font-size: 10px; font-weight: 600; flex: 1; height: 100%; }
.mobile-nav-item svg { transition: stroke .15s; }
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--red); }

.mnav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-bright); flex-shrink: 0; transition: border-color .15s; }
.mobile-nav-item.active .mnav-avatar { border-color: var(--red); }
.mnav-username { font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; color: currentColor; }

/* =========================================================
   ALERTS & UTILITIES
   ========================================================= */
.alert { padding: 11px 15px; border-radius: var(--radius-m); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: var(--olive-tint); color: var(--olive); border: 1px solid rgba(46,125,91,.25); }
.alert-error { background: var(--red-tint); color: var(--red); border: 1px solid rgba(212,58,43,.25); }

.muted { color: var(--ink-soft); }
.text-center { text-align: center; }

.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

.auth-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { font-size: 32px; font-weight: 600; margin-bottom: 6px; font-family: var(--font-display); text-transform: uppercase; }
.auth-head p { color: var(--ink-soft); font-size: 13.5px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow-card); }
.reg-login-link { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--ink-soft); }
.reg-login-link a { color: var(--ink); font-weight: 600; }
.reg-login-link a:hover { color: var(--red); }

.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; padding-bottom: 80px; }
.club-full-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-card); transition: border-color .2s ease, transform .2s ease; }
.club-full-card:hover { border-color: var(--line-bright); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.club-full-card.is-member { border-color: rgba(212,58,43,.35); box-shadow: 0 0 0 1px rgba(212,58,43,.15); }
.club-cover { height: 170px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.club-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.club-full-card:hover .club-cover img { transform: scale(1.03); }
.club-cover-empty { height: 170px; display: flex; align-items: center; justify-content: center; background: var(--surface-alt); font-size: 34px; border-bottom: 1px solid var(--line-soft); }
.club-full-body { padding: 20px; }
.club-full-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.club-full-name { font-size: 20px; font-weight: 600; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.club-full-name a { color: var(--ink); }
.club-full-name a:hover { color: var(--red); }
.club-city { font-size: 11.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-family: var(--font-mono); }
.club-member-count { text-align: center; min-width: 48px; }
.club-member-count b { display: block; font-size: 24px; font-family: var(--font-display); color: var(--red); line-height: 1; }
.club-member-count span { font-size: 9px; font-family: var(--font-mono); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.club-full-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 14px; }
.club-full-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.club-owner-info { font-size: 12px; color: var(--ink-faint); }
.club-owner-info a { color: var(--ink-soft); }
.club-owner-info a:hover { color: var(--ink); }

/* ---- FOOTER ---- */
.footer { background: linear-gradient(180deg, #1E2026, #101114); color: var(--chrome); border-top: 1px solid var(--line-bright); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 52px 24px; }
.footer-brand .foot-big { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .08em; display: block; margin-bottom: 10px; color: #fff; }
.footer-brand p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; max-width: 280px; }
.footer nav { display: flex; flex-direction: column; gap: 9px; }
.foot-h { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 6px; font-weight: 700; }
.footer nav a { font-size: 12.5px; color: var(--ink-soft); }
.footer nav a:hover { color: #fff; }
.footer-note p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }
.foot-copy { font-size: 11px; font-family: var(--font-mono); color: var(--ink-faint); }

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* CTA Band */
.cta-band { background: linear-gradient(180deg, #2A2D35, #1C1E23); color: var(--chrome); border: 1px solid var(--line-bright); border-radius: var(--radius-l); padding: 60px; text-align: center; margin-top: 40px; margin-bottom: 80px; position: relative; overflow: hidden; box-shadow: var(--shadow-pop); }
.cta-band::after { content: ''; position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); width: 400px; height: 160px; background: radial-gradient(ellipse, rgba(255,59,48,.2) 0%, transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: 38px; margin-bottom: 12px; text-transform: uppercase; color: #fff; }
.cta-band p { color: var(--ink-soft); margin-bottom: 26px; font-size: 15.5px; }
.cta-band .btn-primary { background: var(--red); }

/* =========================================================
   CAR QUICK GALLERY (top strip)
   ========================================================= */
.car-quick-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 24px; }
.car-quick-item, .car-quick-all { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; padding: 0; background: var(--surface-alt); cursor: pointer; aspect-ratio: 4/3; transition: border-color .15s, transform .15s; }
.car-quick-item:hover, .car-quick-all:hover { border-color: var(--red); transform: translateY(-2px); }
.car-quick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-quick-all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-soft); text-decoration: none; text-align: center; }
.car-quick-all:hover { color: var(--ink); }
.car-quick-count { font-size: 22px; font-family: var(--font-display); color: var(--red); font-weight: 700; line-height: 1; }
.car-quick-txt { font-size: 9px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 640px) {
  .car-quick-gallery { grid-template-columns: repeat(3, 1fr); }
  .car-quick-gallery .car-quick-item { display: none; }
  .car-quick-gallery .car-quick-item:nth-child(1),
  .car-quick-gallery .car-quick-item:nth-child(2) { display: block; }
  .car-quick-gallery .car-quick-all .car-quick-txt { font-size: 10px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-row { gap: 28px; text-align: center; }
  .hero-row > div { flex: 1 1 100%; }
  .hero h1 { font-size: 42px; }
  .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .club-strip { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .topbar-meta { display: none; }
  .topbar-row { justify-content: center; }
  .nav-left { display: none; }
  .nav-row { height: 60px; justify-content: center; position: relative; }
  .nav-right { display: none; }
  /* Logo centriran na sredinu, lupa ostaje desno */
  .brand { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 74px; }

  .feed-layout { grid-template-columns: 1fr; gap: 24px; }

  .car-body { grid-template-columns: 1fr; gap: 24px; }

  .car-profile-row { flex-direction: column; text-align: center; gap: 16px; }
  .car-profile-thumb { width: 140px; height: 98px; margin: 0 auto; }
  .car-profile-owner { justify-content: center; }
  .car-toolbar-row { flex-direction: column; gap: 14px; text-align: center; }
  .car-stats { justify-content: center; width: 100%; }
  .car-toolbar-row .btn { width: 100%; }

  .profile-row { flex-direction: column; text-align: center; gap: 16px; }
  .profile-actions { margin-left: 0; width: auto; flex-direction: row; align-items: center; justify-content: center; }
  .profile-actions .btn { width: auto; align-self: auto; }
  .profile-stats { justify-content: center; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .update-item { gap: 12px; }
  .update-date { display: none; }
  .update-date b { display: none; }

  .clubs-grid { grid-template-columns: 1fr; }
  .hero-visual { display: block; width: 100%; margin-top: 24px; }
  .home-hero-text h1 { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
}

@media (max-width: 640px) {
  .home-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .home-hero-text { flex-basis: auto; min-height: 0; }
  .home-hero-stats { gap: 24px; }
  .home-car-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .activity-text { font-size: 12px; }
  .brand-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .brand-filters::-webkit-scrollbar { display: none; }
  .home-garage-section { padding-bottom: 100px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; }
  .cta-band { padding: 34px 18px; }
  .cta-band h2 { font-size: 26px; }
  .admin-stats-row { grid-template-columns: 1fr; }
  .clubs-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 14px; }
  .stats-row { justify-content: space-around; }
  .home-hero-text h1 { font-size: 36px; }
}