/* =========================
   FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =========================
   CSS VARIABLES — LIGHT THEME
========================= */
:root {
  --bg:               #f2f8ec;
  --bg-secondary:     #ffffff;
  --bg-card:          #ffffff;
  --border:           #cde3b8;
  --border-strong:    #89a257;
  --text-primary:     #040c06;
  --text-secondary:   #1e3a29;
  --text-muted:       #4d8061;
  --accent:           #305d42;
  --accent-hover:     #1e3a29;
  --accent-light:     #eeffcc;
  --accent-glow:      rgba(48, 93, 66, 0.13);
  --accent-fg:        #ffffff;
  --danger:           #c0392b;
  --danger-bg:        #fff0ee;
  --success:          #305d42;
  --success-bg:       #eeffcc;
  --sold-bg:          #c0392b;
  --sold-color:       #fff;
  --owner-color:      #305d42;
  --badge-available-bg:    #305d42;
  --badge-available-color: #fff;
  --shadow-sm:   0 1px 4px rgba(4,12,6,0.07);
  --shadow-md:   0 4px 18px rgba(4,12,6,0.11);
  --shadow-lg:   0 8px 36px rgba(4,12,6,0.15);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-pill: 999px;
}

/* =========================
   CSS VARIABLES — DARK THEME
========================= */
[data-theme="dark"] {
  --bg:               #040c06;
  --bg-secondary:     #0b1610;
  --bg-card:          #112318;
  --border:           #1e3a29;
  --border-strong:    #305d42;
  --text-primary:     #eeffcc;
  --text-secondary:   #bedc7f;
  --text-muted:       #89a257;
  --accent:           #bedc7f;
  --accent-hover:     #eeffcc;
  --accent-light:     #1e3a29;
  --accent-glow:      rgba(190, 220, 127, 0.18);
  --accent-fg:        #040c06;
  --danger:           #ff6b6b;
  --danger-bg:        rgba(255,107,107,0.09);
  --success:          #bedc7f;
  --success-bg:       #1e3a29;
  --sold-bg:          #ff6b6b;
  --sold-color:       #040c06;
  --owner-color:      #bedc7f;
  --badge-available-bg:    #bedc7f;
  --badge-available-color: #040c06;
  --shadow-sm:   0 1px 6px rgba(0,0,0,0.35);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.50);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.65);
}

/* =========================
   GLOBAL RESET & BASE
========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* Sleek accent line across top of navbar */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e3a29, #4d8061, #bedc7f, #89a257, #305d42);
  background-size: 200% 100%;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #305d42 0%, #bedc7f 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #040c06;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(190,220,127,0.25);
}

.navbar-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  line-height: 1;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================
   THEME TOGGLE
========================= */
.theme-toggle {
  background: var(--border);
  border: none;
  border-radius: var(--radius-pill);
  width: 44px;
  height: 24px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-secondary);
  transition: transform 0.3s, background 0.3s;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-toggle {
  background: var(--accent);
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(20px);
  background: #040c06;
}

/* =========================
   PAGE WRAPPER
========================= */
.page-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* =========================
   TYPOGRAPHY
========================= */
h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--text-primary);
  letter-spacing: -1px;
  line-height: 1.1;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

p { color: var(--text-secondary); }

a { color: var(--accent); }

/* =========================
   INPUTS
========================= */
input, textarea, select {
  width: 100%;
  max-width: 520px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
  margin: 6px 0;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

textarea { resize: vertical; min-height: 90px; }

/* =========================
   BUTTONS
========================= */
button {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active { transform: translateY(0); }

button:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover { background: #a93226; }

.btn-dark {
  background: var(--text-primary);
  color: var(--bg);
}

/* =========================
   SECTION DIVIDER
========================= */
.section-divider {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 28px 0;
}

/* =========================
   AUTH SECTION
========================= */
#authSection {
  margin-bottom: 0;
}

.auth-inputs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.auth-inputs input {
  flex: 1;
  min-width: 180px;
  margin: 0;
}

.auth-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  width: fit-content;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--accent-glow);
}

/* =========================
   POST SECTION
========================= */
#postSection {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

#postSection h3 {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text-primary);
}

.post-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.post-row input { flex: 1; min-width: 160px; }

/* =========================
   PREVIEW BOX
========================= */
#previewBox {
  margin-top: 12px;
  padding: 14px;
  background: var(--accent-light);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

#previewBox strong {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#livePreviewText {
  margin: 6px 0 4px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

#previewBox small { color: var(--text-muted); font-size: 12px; }

/* =========================
   FILTER SECTION
========================= */
#filterSection {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#filterLabel {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* =========================
   IDEA CARDS
========================= */
.idea-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Left accent stripe on hover */
.idea-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.idea-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.idea-item:hover::before { opacity: 1; }

.idea-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.idea-item p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.idea-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.idea-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* =========================
   BADGES
========================= */
.sold-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--sold-bg);
  color: var(--sold-color);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--badge-available-bg);
  color: var(--badge-available-color);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.purchased-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--success);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.owner-tag {
  color: var(--owner-color);
  font-weight: 600;
  font-size: 13px;
}

/* =========================
   STATUS / BUY BUTTONS
========================= */
.status-btn {
  background: var(--accent-light);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 13px;
  padding: 6px 12px;
}

.status-btn:hover {
  background: var(--accent);
  color: var(--accent-fg);
}

.buy-btn {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 14px;
}

/* =========================
   SECTION TITLE (dashboard)
========================= */
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}

/* =========================
   STAT CARDS
========================= */
.stats-row {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 130px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* =========================
   BANNERS / ALERTS
========================= */
.banner-success {
  background: var(--success-bg);
  border: 1.5px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.banner-error {
  background: var(--danger-bg);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.banner-info {
  background: var(--accent-light);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* =========================
   EMPTY STATE
========================= */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state h2 {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p { color: var(--text-muted); }

/* =========================
   LEGAL PAGES
========================= */
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
}

.legal-container h2 {
  color: var(--accent);
  margin-top: 32px;
  font-size: 1.2rem;
}

.legal-container h3 {
  color: var(--text-primary);
  margin-top: 20px;
  font-size: 1rem;
}

.legal-container p, .legal-container li {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.legal-container a { color: var(--accent); }

.legal-container ul { padding-left: 20px; }

.last-updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
  display: block;
}

/* =========================
   PROFILE PAGES
========================= */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-strong);
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
}

.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.social-link:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* =========================
   PURCHASE / SELLER CARDS
========================= */
.purchase-item, .idea-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.purchase-item:hover, .idea-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.purchase-item h3, .idea-card h3 {
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 16px;
}

.purchase-item p, .idea-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 3px 0;
}

.full-description {
  margin-top: 12px;
  padding: 14px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14px;
}

.full-description-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.earned-tag { color: var(--success); font-weight: 600; }

/* =========================
   LEGAL LINK CARDS
========================= */
.legal-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.legal-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.legal-link-card .doc-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  font-family: 'Syne', sans-serif;
}

.legal-link-card .doc-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 3px;
}

.legal-link-card .arrow {
  color: var(--text-muted);
  font-size: 20px;
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.modal-box h2 { margin-bottom: 8px; }
.modal-box p { margin-bottom: 16px; }

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
}

.modal-links a {
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 12px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}

.modal-links a:hover {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 20px;
}

.modal-check input {
  width: auto;
  margin: 3px 0 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; }

/* =========================
   HIGHLIGHT / APPEAL / STEP BOXES
========================= */
.highlight-box {
  background: var(--success-bg);
  border: 1.5px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.appeal-box {
  background: var(--accent-light);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.no-refund-box {
  background: var(--danger-bg);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.step {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 10px 0;
}

.step-number {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  font-family: 'Syne', sans-serif;
  margin-bottom: 6px;
}

/* =========================
   AGREED BANNERS
========================= */
.agreed-banner {
  background: var(--success-bg);
  border: 1.5px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
  max-width: 520px;
}

.not-agreed-banner {
  background: var(--danger-bg);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
  max-width: 520px;
}

/* =========================
   PROFILE EDIT PAGE
========================= */
.profile-container { max-width: 560px; }

.avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.field-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 6px 0;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-input-wrap { position: relative; }

.social-input-wrap .social-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}

.social-input-wrap input {
  padding-left: 34px;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

/* =========================
   IDEA CARD — COMPACT / CLICKABLE
========================= */
.idea-item--clickable {
  cursor: pointer;
  user-select: none;
}

.idea-item--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.idea-price-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
}

.idea-cats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 10px;
}

.idea-cat-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.idea-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}

.idea-card-seller {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}

.idea-card-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.idea-card-avatar-emoji {
  font-size: 18px;
  line-height: 1;
}

.idea-view-hint {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.idea-item--clickable:hover .idea-view-hint { opacity: 1; }

/* =========================
   IDEA DETAIL MODAL
========================= */
.idea-modal-box {
  max-width: 580px;
  width: 100%;
  position: relative;
  padding: 36px 32px 28px;
  animation: modalSlideIn 0.2s ease;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.idea-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.idea-modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger);
  transform: none;
  box-shadow: none;
}

.idea-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-right: 32px;
}

.idea-modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.idea-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.idea-modal-date {
  font-size: 12px;
  color: var(--text-muted);
}

.idea-modal-price {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.idea-modal-price--sold {
  color: var(--text-muted);
  text-decoration: line-through;
}

.idea-modal-preview-box {
  background: var(--accent-light);
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.idea-modal-preview-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 8px;
}

.idea-modal-preview-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 8px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.idea-modal-preview-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

.idea-modal-seller-row {
  margin-bottom: 20px;
}

.idea-modal-seller-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color 0.15s, background 0.15s;
}

.idea-modal-seller-link:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.modal-seller-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.modal-seller-avatar-emoji { font-size: 20px; line-height: 1; }

.idea-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

.idea-modal-buy {
  font-size: 15px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.idea-modal-login-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.idea-modal-owner-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  .navbar { padding: 0 16px; }
  .page-wrapper { padding: 20px 16px; }
  .social-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .auth-inputs { flex-direction: column; }
  .post-row { flex-direction: column; }
  h1 { font-size: 1.7rem; }
}