/* ==========================================================================
   KVPRO — ARTEMIY LEBEDEV STUDIO EDITION STYLESHEET (v7.0)
   Philosophy: "Лишнее — на хуй" (Anti-fluff, Swiss Typography & Soviet Constructivism)
   ========================================================================== */

:root {
  /* Core Lebedev Swiss Gray Edition Palette */
  --bg-dark: #f1f5f9;            /* Technical drafting mat light gray (Slate 100) */
  --bg-pattern: linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  --card-bg-white: #ffffff;
  --card-bg-dark: #ffffff;
  --card-bg-terminal: #f8fafc;

  /* Accents - High Contrast Swiss Inks */
  --lebedev-red: #e60000;
  --lebedev-yellow: #0284c7;
  --electric-blue: #0284c7;      /* Deep Swiss Cobalt Blue (WCAG AAA high contrast on white) */
  --electric-blue-deep: #0369a1;
  --lebedev-green: #059669;
  --lebedev-blue: #0284c7;
  --lebedev-orange: #d97706;

  /* Legacy variable re-mappings for 100% component compatibility */
  --turquoise: #e60000;          /* Main primary action is Lebedev Signal Red */
  --turquoise-hover: #cc0000;
  --lime: #00a859;
  --amber: #00e5ff;              /* Mapped to Electric Blue */
  --rose: #e60000;

  --neo-black: #000000;
  --neo-border: 2px solid #000000;
  --neo-border-dark: 2px solid #000000;
  --neo-shadow: 4px 4px 0px #000000;
  --neo-shadow-sm: 2px 2px 0px #000000;
  --neo-shadow-turquoise: 3px 3px 0px #e60000;
  --neo-shadow-amber: 3px 3px 0px #00e5ff;
  --neo-shadow-hover: 1px 1px 0px #000000;

  --text-dark: #000000;
  --text-light: #000000;
  --text-muted: #64748b;

  /* Strict Brutalist Radii (No marshmallow bubbles) */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 2px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  background-image: var(--bg-pattern);
  background-size: 24px 24px;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 95px;
  -webkit-font-smoothing: antialiased;
}

/* ================= PULL TO REFRESH INDICATOR ================= */
.pull-refresh-indicator {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border-bottom: 2px solid #000000;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  color: #000000;
  transition: height 0.15s ease, opacity 0.15s ease;
  opacity: 0;
  box-shadow: 0 2px 0px #000000;
}

.pull-refresh-indicator.visible {
  opacity: 1;
  margin-bottom: 8px;
}

.pull-refresh-indicator .pull-arrow {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.pull-refresh-indicator.ready .pull-arrow {
  transform: rotate(180deg);
  color: #0284c7;
}

.pull-refresh-indicator.refreshing .pull-arrow {
  display: none;
}

/* ================= APP HEADER ================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2.5px solid #000000;
  box-shadow: 0 2px 0px rgba(0, 0, 0, 0.05);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: cover;
  background: #000000;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  padding: 0;
  box-shadow: 1.5px 1.5px 0px #000000;
}

.brand-info h1 {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #000000;
  line-height: 1;
}

.brand-info p {
  display: none;
}

.date-selector-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
}

.date-btn {
  background: none;
  border: none;
  color: #000000;
  font-weight: 900;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.85rem;
}

.date-btn:active {
  transform: scale(0.9);
}

.current-date-input {
  background: transparent;
  border: none;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  outline: none;
}

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.view-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.view-panel.active {
  display: flex;
}

/* ================= 🚇 METRO PROGRESS ROUTE (SWISS LIGHT EDITION) ================= */
.metro-route-container {
  background: #f8fafc;
  color: #000000;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: 2px 2px 0px #000000;
}

.metro-route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 12px;
  border-bottom: 1.5px solid #000000;
  padding-bottom: 6px;
}

.metro-route-header .m-title {
  color: #0f172a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.metro-route-header .m-pill {
  background: var(--lebedev-red);
  color: #ffffff;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 1px 1px 0px #000000;
}

.metro-track-wrap {
  position: relative;
  padding: 14px 4px 6px 4px;
}

.metro-track-base {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 22px;
  height: 4px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  z-index: 1;
}

.metro-track-progress {
  position: absolute;
  left: 12px;
  width: 58%;
  top: 22px;
  height: 4px;
  background: #059669;
  z-index: 2;
  transition: width 0.4s ease;
}

.metro-stations {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.station {
  text-align: center;
  background: #f8fafc;
  padding: 0 4px;
}

.station .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #94a3b8;
  margin: 0 auto 6px auto;
  box-shadow: 0 0 0 2px #f8fafc;
}

.station.passed .dot {
  background: #059669;
  border-color: #000000;
}

.station.current .dot {
  width: 18px;
  height: 18px;
  background: #0284c7;
  border: 3px solid #000000;
  margin: -2px auto 4px auto;
  box-shadow: 0 0 0 2px #ffffff;
}

.station.target .dot {
  background: #ffffff;
  border: 2.5px solid #e60000;
}

.station .lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  line-height: 1.25;
}

.station .lbl span {
  font-size: 0.58rem;
  display: block;
  text-transform: uppercase;
}

.station.passed .lbl { color: #059669; }
.station.current .lbl { color: #0284c7; font-weight: 900; }
.station.target .lbl { color: #e60000; font-weight: 900; }

/* Keep legacy hero-progress-banner class compatible */
.hero-progress-banner {
  display: none !important;
}

/* ================= CARDS (BRUTALIST & TERMINAL) ================= */
.card-neo-white {
  background: var(--card-bg-white);
  color: #000000;
  border: var(--neo-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--neo-shadow);
}

.card-neo-dark {
  background: var(--card-bg-dark);
  color: #ffffff;
  border: 2px solid #282828;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--neo-shadow);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 2px solid #000000;
  padding-bottom: 6px;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-neo {
  font-family: var(--font-mono);
  background: #000000;
  color: #ffffff;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  padding: 0 8px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* ================= GRAPH SECTION ================= */
.graph-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.graph-tab-btn {
  background: #f1f5f9;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  color: #000000;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 8px 2px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.2px;
  transition: all 0.1s ease;
  box-shadow: 2px 2px 0px #000000;
}

.graph-tab-btn:hover {
  background: #e2e8f0;
}

.graph-tab-btn.active {
  background: #000000;
  color: var(--lebedev-yellow);
  box-shadow: 1px 1px 0px #000000;
  transform: translate(1px, 1px);
}

.chart-wrapper {
  position: relative;
  height: 230px;
  width: 100%;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 8px;
}

/* ================= KVPRO 2.0 KOKPİT HUD & REORDERABLE BLOCKS ================= */
.hud-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hud-metric-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 2px 0px #000000;
  min-width: 0;
  transition: transform 0.1s ease;
}

.hud-metric-card .hud-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hud-metric-card .hud-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.5px;
  line-height: 1.15;
  word-break: break-word;
}

.hud-metric-card .hud-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.block-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-block-action {
  background: #f1f5f9;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  height: 26px;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 800;
  color: #000000;
  cursor: pointer;
  box-shadow: 1px 1px 0px #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-block-action:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.btn-block-reorder {
  background: #000000;
  border: 1.5px solid #000000;
  color: #ffffff;
  border-radius: var(--radius-sm);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 1px 1px 0px #000000;
  box-sizing: border-box;
  padding: 0;
  transition: all 0.1s;
}

.btn-block-reorder:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.dashboard-block-card {
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-bottom: 14px;
}

/* Quick Sync Banner */
.sync-action-card {
  background: #ffffff;
  color: #000000;
  border: var(--neo-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--neo-shadow);
}

.sync-action-card h3 {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.sync-action-card p {
  font-size: 0.72rem;
  font-weight: 700;
  color: #555555;
  margin-top: 2px;
}

/* ================= DEFICIT HERO ================= */
.deficit-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.deficit-badge-big {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--lebedev-red);
}

/* Metric Boxes */
.neo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.neo-metric-box {
  background: #f8fafc;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.neo-metric-box .lbl {
  font-size: 0.68rem;
  font-weight: 900;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.neo-metric-box .val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
  color: #000000;
  margin: 3px 0 2px 0;
  letter-spacing: -0.5px;
}

.neo-metric-box .sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: #777777;
}

/* ================= BUTTONS ================= */
.btn-neo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: var(--neo-border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: var(--neo-shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn-neo:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.btn-neo:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

.btn-neo-turquoise {
  background: var(--lebedev-red);
  color: #ffffff;
}

.btn-neo-white {
  background: #ffffff;
  color: #000000;
}

.btn-neo-amber {
  background: var(--lebedev-yellow);
  color: #000000;
}

.btn-neo-block {
  width: 100%;
}

/* ================= BOTTOM TAB BAR ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-top: 2.5px solid #000000;
  box-shadow: 0 -2px 0px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  flex: 1;
}

.nav-item .nav-svg-icon {
  width: 22px;
  height: 22px;
  stroke: #777777;
  transition: all 0.15s ease;
}

.nav-item .nav-zlatan-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #000000;
  object-fit: cover;
  transition: all 0.15s ease;
}

.nav-item:hover {
  color: #000000;
}

.nav-item:hover .nav-svg-icon {
  stroke: #000000;
}

.nav-item.active {
  color: #000000;
  background: #f1f5f9;
  border-bottom: 2.5px solid #000000;
  font-weight: 900;
}

.nav-item.active .nav-svg-icon {
  stroke: #000000;
  stroke-width: 2.5;
}

.nav-item.active .nav-zlatan-img {
  border-color: #000000;
  box-shadow: 0 0 0 2px #00e5ff;
}

/* ================= CHAT ASSISTANT (ZLATAN TERMINALI) ================= */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 420px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 4px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.chat-bubble {
  max-width: 90%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  border: 2px solid #000000;
  box-shadow: var(--neo-shadow-sm);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: #00e5ff;
  color: #000000;
  font-weight: 800;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #0284c7;
}

.chat-bubble.assistant::before {
  content: "« ZLATAN TERMINALİ // TELEMETRİ »";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #000000;
  margin-bottom: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.quick-prompts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 10px 0;
  scrollbar-width: none;
}

.quick-prompts::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  white-space: nowrap;
  background: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0px #000000;
}

.chip-btn:hover {
  background: #00e5ff;
  color: #000000;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  box-shadow: 3px 3px 0px #00e5ff;
  align-items: center;
  transition: all 0.15s ease;
}

.chat-input-bar:focus-within {
  border-color: #00e5ff;
  box-shadow: 4px 4px 0px #0284c7;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #000000;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.chat-photo-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1.5px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #000000;
  color: #ffffff;
  border: 2px solid #000000;
  cursor: pointer;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= MODAL & ACTION SHEET ================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.action-sheet {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: var(--neo-border);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.6);
  animation: slideUp 0.15s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.action-sheet-title {
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================= WATER TRACKER ================= */
.btn-water-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.08s ease;
}
.btn-water-quick:active {
  transform: scale(0.96);
}
.water-entry-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f9ff;
  color: #0369a1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
}
.water-entry-delete {
  background: none;
  border: none;
  color: var(--lebedev-red);
  font-weight: 900;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.85rem;
}

/* ================= TABLES ================= */
.db-table-container {
  overflow-x: auto;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.neo-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.neo-table th {
  background: #000000;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 900;
  text-transform: uppercase;
  padding: 10px 8px;
  border-bottom: 2px solid #000000;
  white-space: nowrap;
}

.neo-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  color: #000000;
  height: 50px;
  white-space: nowrap;
  vertical-align: middle;
}

.neo-table tr:nth-child(even) {
  background: #fbfbfb;
}

.badge-calorie {
  font-family: var(--font-mono);
  background: var(--electric-blue);
  color: #000000;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-weight: 900;
  font-size: 0.7rem;
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #000000;
  border: 2px solid var(--electric-blue);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Form inputs */
.neo-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.neo-form-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #555555;
}

.neo-form-input, .neo-form-select {
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  background: #ffffff;
  color: #000000;
  outline: none;
}

/* ================= 📸 MULTI-PHOTO MEAL THUMBNAILS GRID ================= */
.meal-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.meal-thumb-card {
  position: relative;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #0c0c0c;
  box-shadow: 2px 2px 0px #000000;
}

.meal-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meal-thumb-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--lebedev-red);
  color: #ffffff;
  border: 1.5px solid #000000;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 1px 0px #000000;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.meal-thumb-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(12, 12, 12, 0.9);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 2px;
  border: 1px solid #333333;
  z-index: 2;
}

/* ================= ⚡ ZLATAN PROFILE CONFIRMATION CARD ================= */
.chat-profile-confirm-card {
  margin-top: 10px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: 3px 3px 0px #e60000;
}

.chat-profile-confirm-card .confirm-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #e60000;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-profile-confirm-card .confirm-detail {
  font-size: 0.85rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;
  padding: 6px 8px;
  background: #f1f5f9;
  border: 1.5px solid #000000;
  border-radius: 2px;
}

.chat-profile-confirm-card .confirm-actions {
  display: flex;
  gap: 8px;
}

.chat-profile-confirm-card .confirm-actions button {
  flex: 1;
  padding: 8px 6px;
  font-size: 0.75rem;
}

/* ================= 👤 PROFILE VIEW STYLING ================= */
.profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

