/* ============================================================================
   MODERN NEXT.JS / AIRBNB-INSPIRED VISUAL UI
   เน้นรูปภาพขนาดใหญ่ กราฟิกสวย พื้นที่ว่างสบายตา ตัวหนังสือกระชับไม่อัดแน่น
   ============================================================================ */
:root {
  --font: 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #78716c;
  --heading: #0c0a09;
  --primary: #c25e00;
  --primary-hover: #9a4a00;
  --border: #e7e5e4;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ============================================================================
   1. MODERN FLOATING NAVBAR (สะอาด คมชัด แยกเมนูหลักชัดเจน)
   ============================================================================ */
.modern-navbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 76px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ea580c, #9a3412);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-accent {
  color: var(--primary);
}

.brand-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* เมนูหลักตรงกลางแบบ Pill Segmented Control */
.center-nav {
  display: flex;
  align-items: center;
  background: #f1f0ec;
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid #e4e2dd;
  gap: 4px;
}

.nav-tab {
  border: none;
  background: transparent;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  color: #57534e;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  color: var(--heading);
}

.nav-tab.active {
  background: var(--surface);
  color: var(--heading);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.badge-dot {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.user-chip:hover {
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   2. VISUAL HERO BANNER & FLOATING SEARCH BAR
   ============================================================================ */
.visual-hero {
  position: relative;
  height: 320px;
  background-image: url('https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.55) 0%, rgba(12, 10, 9, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1060px;
  text-align: center;
  color: #ffffff;
}

.hero-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fef3c7;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-content h1 {
  font-size: 2.35rem;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* แถบค้นหาลอยตัวสไตล์ Airbnb */
.floating-search-bar {
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 8px 10px 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  text-align: left;
  color: var(--text);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.search-field.flex-grow {
  flex: 1;
}

.field-icon {
  font-size: 1.25rem;
}

.field-inputs {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.field-inputs label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.field-inputs input,
.field-inputs select {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.94rem;
  color: var(--text);
  outline: none;
  width: 100%;
  padding: 2px 0;
}

.search-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.btn-near-me {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #ffffff;
  border: none;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.btn-near-me:hover {
  transform: scale(1.02);
}

/* ============================================================================
   3. VISUAL PROVINCE DESTINATION CARDS (การ์ดรูปภาพจังหวัดยอดฮิต กดง่าย)
   ============================================================================ */
.province-Destinations {
  margin-bottom: 24px;
}

.section-head-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head-minimal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
}

.region-quick-select select {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.dest-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.dest-card {
  position: relative;
  height: 108px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.dest-card.active {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25);
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dest-card:hover img {
  transform: scale(1.08);
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  color: #fff;
}

.dest-name {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}

.dest-count {
  font-size: 0.75rem;
  color: #fed7aa;
}

/* ============================================================================
   4. ICON CATEGORY BAR & STAR PILLS (สไตล์ Airbnb)
   ============================================================================ */
.sticky-filter-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 24px;
}

.filter-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.icon-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.icon-cat-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  transition: all 0.18s ease;
  min-width: 86px;
}

.icon-cat-btn:hover {
  background: #f5f5f4;
  color: var(--heading);
}

.icon-cat-btn.active {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.cat-emoji {
  font-size: 1.45rem;
  line-height: 1;
}

.cat-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.cat-badge {
  font-size: 0.68rem;
  background: #f5f5f4;
  color: #57534e;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.icon-cat-btn.active .cat-badge {
  background: #ea580c;
  color: #ffffff;
}

.right-quick-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.star-chips {
  display: flex;
  background: #f5f5f4;
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 2px;
}

.star-chip {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.star-chip.active {
  background: var(--surface);
  color: #d97706;
  box-shadow: var(--shadow-sm);
}

.minimal-select {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-toggle-map {
  background: var(--heading);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================================
   5. PHOTO-FIRST VISUAL CARDS & SPLIT MAP WORKSPACE
   ============================================================================ */
.main-workspace {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 28px;
  align-items: start;
}

.main-workspace.map-hidden {
  grid-template-columns: 1fr;
}

.main-workspace.map-hidden .map-panel {
  display: none;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.results-bar h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading);
}

.results-bar p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.btn-reset-minimal {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

/* การ์ดคาเฟ่เน้นรูปภาพสวยงาม (Airbnb / Wongnai Modern Card) */
.visual-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.cafe-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.cafe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #e7e5e4;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cafe-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

/* ปุ่มหัวใจลอยมุมขวาบนของภาพ */
.floating-like-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: #e11d48;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
}

.floating-like-btn:hover,
.floating-like-btn.liked {
  background: #e11d48;
  color: #ffffff;
  transform: scale(1.06);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(12, 10, 9, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.78rem;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.rating-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-overlay span {
  color: #e7e5e4;
  font-weight: 400;
  font-size: 0.75rem;
}

.grade-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
}

.grade-S-plus, .grade-S { background: #d97706; }
.grade-A-plus, .grade-A { background: #059669; }
.grade-B-plus, .grade-B { background: #2563eb; }
.grade-C { background: #64748b; }
.grade-D { background: #78716c; }
.grade-E { background: #dc2626; }

/* เนื้อหาในการ์ด: สั้น กระชับ สะอาดตา 3 บรรทัดจบ */
.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-location-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.cafe-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-menu-preview {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer-btns {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f5f5f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-card-action {
  flex: 1;
  background: #f5f5f4;
  border: none;
  color: var(--heading);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  text-decoration: none;
}

.btn-card-action:hover {
  background: #e7e5e4;
}

.btn-card-action.primary-soft {
  background: #fff7ed;
  color: #c2410c;
}

.btn-card-action.primary-soft:hover {
  background: #ffedd5;
}

/* แผนที่ด้านขวา */
.map-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 92px;
}

.map-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.map-status-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
}

.map-mode-switch {
  display: flex;
  background: #f5f5f4;
  padding: 3px;
  border-radius: var(--radius-pill);
}

.map-sw-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.map-sw-btn.active {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.map-canvas {
  width: 100%;
  height: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
}

.load-more-wrapper {
  text-align: center;
  padding: 28px 0 10px;
}

.btn-load-more {
  background: var(--heading);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ============================================================================
   6. FAMOUS LANDMARK CAFES (การ์ดรูปภาพสวยงาม)
   ============================================================================ */
.famous-visual-section {
  background: #141210;
  color: #ffffff;
  padding: 56px 0;
  margin-top: 48px;
}

.famous-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.gold-pill {
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.famous-head h2 {
  font-size: 1.75rem;
  margin-top: 4px;
}

.famous-select {
  background: #292524;
  color: #fff;
  border: 1px solid #44403c;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
}

.famous-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.famous-prov-card {
  background: #1c1917;
  border: 1px solid #292524;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  cursor: pointer;
}

.famous-prov-card:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
}

.fpc-img {
  height: 150px;
  width: 100%;
  object-fit: cover;
}

.fpc-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fpc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fpc-province {
  background: #f59e0b;
  color: #0c0a09;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.fpc-rating {
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 700;
}

.fpc-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   7. OTHER VIEWS (/shop, /submit, /admin) & MODALS
   ============================================================================ */
.shop-page-container,
.submit-page-container,
.admin-page-container {
  padding: 28px 24px 56px;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-back {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
}

.route-pill {
  background: #ffedd5;
  color: #9a3412;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.shop-detail-card,
.submit-card,
.submit-history-card,
.admin-panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.submit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.stepper-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.step-item {
  background: #f5f5f4;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.step-item.active {
  background: #dcfce7;
  color: #166534;
}

.step-box {
  background: #fafaf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.status-alert {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
}

.butter-alert { background: #fef3c7; color: #92400e; }
.mint-alert { background: #dcfce7; color: #166534; }
.blush-alert { background: #fee2e2; color: #991b1b; }

.btn-primary-large {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.submissions-list,
.moderation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.sub-item-card {
  background: #fafaf9;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Admin KPI & Bar Chart */
.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.cost-zero-badge {
  background: #dcfce7;
  color: #166534;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-card.kpi-online {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.stat-val { font-size: 2rem; font-weight: 700; color: var(--heading); margin: 4px 0; }
.stat-sub { font-size: 0.78rem; color: var(--text-muted); }

.admin-dual-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.bar-chart-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  height: 220px;
  padding: 20px 12px 10px;
  background: #fafaf9;
  border-radius: var(--radius-lg);
  margin-top: 14px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  max-width: 40px;
  background: linear-gradient(180deg, #ea580c 0%, #9a3412 100%);
  border-radius: 8px 8px 0 0;
}

.bar-val { font-size: 0.74rem; font-weight: 700; }
.bar-date { font-size: 0.72rem; color: var(--text-muted); }

.live-feed-box {
  background: #1c1917;
  color: #f5f5f4;
  border-radius: var(--radius-lg);
  padding: 14px;
}

.activity-feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.activity-feed-list li {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
}

/* Footer & Modals */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.online-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #065f46;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
}

.footer-credits { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-link-btn {
  background: #f5f5f4;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1c1917;
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 16px 24px;
  z-index: 2500;
  box-shadow: var(--shadow-lg);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-actions { display: flex; gap: 10px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-dialog {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.modal-dialog.modal-lg { max-width: 860px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f4;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.form-row label { font-size: 0.82rem; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.9rem;
}

.url-extract-group { display: flex; gap: 8px; }
.url-extract-group input { flex: 1; }
.btn-extract {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; }
.sig-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sig-chip { background: #f5f5f4; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.76rem; }
.sticker-tag { padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; }
.tag-mint { background: #dcfce7; color: #166534; }
.tag-butter { background: #fef3c7; color: #92400e; }
.tag-blush { background: #fee2e2; color: #991b1b; }

.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1c1917;
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  border-left: 5px solid #ea580c;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .main-workspace, .submit-grid, .admin-dual-grid { grid-template-columns: 1fr; }
  .map-panel { position: static; }
  .floating-search-bar { flex-wrap: wrap; border-radius: var(--radius-xl); padding: 16px; }
  .search-divider { display: none; }
}

@media (max-width: 680px) {
  .hero-content h1 { font-size: 1.65rem; }
  .center-nav { display: none; }
  .admin-kpi-grid, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
