@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;600;800&family=Manrope:wght@300;400;500;600&display=swap');

:root {
  --bg: #080810;
  --bg2: #0f0f1a;
  --bg3: #161625;
  --surface: #1a1a2e;
  --surface2: #212138;
  --border: rgba(108,99,255,0.15);
  --border2: rgba(108,99,255,0.3);
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --green: #4ade80;
  --red: #f87171;
  --orange: #fb923c;
  --yellow: #fbbf24;
  --text: #e8e8f4;
  --text2: #9898b8;
  --text3: #5a5a78;
  --glow: 0 0 30px rgba(108,99,255,0.25);
  --glow2: 0 0 60px rgba(108,99,255,0.15);
  --radius: 16px;
  --radius2: 24px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(108,99,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(56,189,248,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ——— LOADER ——— */
#app-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
#app-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: 2px;
  animation: loadbar 1.8s ease-in-out infinite;
}
@keyframes loadbar { 0% { width: 0%; margin-left: 0; } 50% { width: 60%; margin-left: 20%; } 100% { width: 0%; margin-left: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ——— NAVIGATION ——— */
.nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,20,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  z-index: 100;
}
.nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text3);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  padding: 6px 12px;
  border-radius: 12px;
  transition: all var(--transition);
}
.nav a svg { width: 22px; height: 22px; transition: transform var(--transition); }
.nav a:hover, .nav a.active { color: var(--accent2); }
.nav a.active svg { transform: scale(1.15); filter: drop-shadow(0 0 8px var(--accent)); }
.nav a.active { color: var(--accent2); }

/* ——— PAGE WRAPPER ——— */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ——— HEADER ——— */
.header {
  padding: max(24px, env(safe-area-inset-top)) 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.header-user:hover { border-color: var(--border2); }
.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}
.header-username { font-size: 0.8rem; font-weight: 600; color: var(--text2); }

/* ——— CARDS ——— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--border2); box-shadow: var(--glow); }
.card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

/* ——— GRID ——— */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ——— STAT CARD ——— */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition);
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.stat-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); }
.stat-value { font-family: 'Unbounded', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-unit { font-size: 0.75rem; color: var(--text2); }
.stat-diff { font-size: 0.75rem; font-weight: 600; }
.stat-diff.up { color: var(--green); }
.stat-diff.down { color: var(--red); }

/* ——— PROGRESS RING ——— */
.ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Фиксируем размер через CSS — не зависит от HTML атрибута */
  width: 100px;
  height: 100px;
}
.ring-wrap svg {
  transform: rotate(-90deg);
  /* SVG всегда вписывается в контейнер */
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.ring-track { fill: none; stroke: var(--surface2); }
.ring-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(0.4,0,0.2,1); }
.ring-text {
  position: absolute;
  text-align: center;
  font-family: 'Unbounded', sans-serif;
  /* Жёсткая ширина = диаметр минус stroke с запасом */
  width: 72px;
  pointer-events: none;
}
.ring-text .main { font-size: 1.2rem; font-weight: 700; display: block; line-height: 1.1; }
/* "ВЫПОЛНЕНО" — делаем очень маленьким чтобы влезло */
.ring-text .sub {
  font-size: 0.42rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

/* ——— BIG CALORIE CARD ——— */
.calorie-hero {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(56,189,248,0.08));
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius2);
  padding: 22px 18px 22px 22px;
  margin: 0 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* overflow:hidden убран — он обрезал кольцо при первой отрисовке */
}
.calorie-hero-left {}
.calorie-hero-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.calorie-hero-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.calorie-hero-sub { font-size: 0.8rem; color: var(--text2); margin-top: 4px; }

/* ——— MACROS BAR ——— */
.macros-bar { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; margin-top: 12px; display: flex; }
.macros-bar-seg { height: 100%; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.macro-p { background: var(--accent); }
.macro-f { background: var(--orange); }
.macro-c { background: var(--accent3); }

.macros-legend { display: flex; gap: 16px; margin-top: 8px; }
.macro-dot { display: flex; align-items: center; gap: 5px; font-size: 0.7rem; color: var(--text2); }
.macro-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.macro-dot.p::before { background: var(--accent); }
.macro-dot.f::before { background: var(--orange); }
.macro-dot.c::before { background: var(--accent3); }

/* ——— FOOD LIST ——— */
.food-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.food-item:last-child { border-bottom: none; }
.food-name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.food-meta { font-size: 0.75rem; color: var(--text3); margin-top: 2px; }
.food-kcal { font-family: 'Unbounded', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--accent2); }
.food-del { background: none; border: none; color: var(--text3); cursor: pointer; padding: 4px; border-radius: 8px; transition: color var(--transition); }
.food-del:hover { color: var(--red); }

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  padding: 14px 24px;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,99,255,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 20px;
  font-size: 0.85rem;
}
.btn-secondary:hover { border-color: var(--border2); background: var(--surface); }
.btn-ghost {
  background: none;
  color: var(--text2);
  padding: 10px 16px;
  font-size: 0.85rem;
}
.btn-ghost:hover { color: var(--text); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 10px; }
.btn-icon { padding: 10px; border-radius: 12px; }

/* ——— INPUTS ——— */
.input-group { margin-bottom: 16px; }
.input-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text3); text-transform: uppercase; margin-bottom: 8px; }
.input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.input::placeholder { color: var(--text3); }

select.input { cursor: pointer; }
option { background: var(--bg2); }

/* ——— CHAT ——— */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  animation: bubbleIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bubbleIn { from { opacity: 0; transform: scale(0.85) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.bubble-ai {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.bubble-user {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.bubble-time { font-size: 0.65rem; color: var(--text3); margin-top: 4px; }
.bubble-action {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  color: var(--green);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 10px;
  margin-top: 8px;
  display: inline-block;
}

.chat-input-wrap {
  padding: 12px 16px;
  background: rgba(10,10,20,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  resize: none;
  max-height: 120px;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(108,99,255,0.4); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.typing-indicator { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text3);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* ——— SUGGESTIONS ——— */
.suggestions { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 16px 0; }
.suggestion-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--text2);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.suggestion-chip:hover { border-color: var(--accent); color: var(--accent2); background: rgba(108,99,255,0.08); }

/* ——— MODAL ——— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 600px;
  padding: 28px 24px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; background: var(--surface2); border-radius: 2px; margin: -10px auto 20px; }
.modal-title { font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 20px; }

/* ——— ALERT ——— */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-success { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.3); color: var(--green); }
.alert-error { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); color: var(--red); }
.alert-info { background: rgba(108,99,255,0.1); border-color: rgba(108,99,255,0.3); color: var(--accent2); }
.alert-warning { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.3); color: var(--yellow); }

/* ——— ONBOARDING ——— */
.onboarding-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
}
.onboarding-hero {
  background: linear-gradient(160deg, rgba(108,99,255,0.2) 0%, transparent 50%);
  padding: 60px 28px 40px;
  text-align: center;
}
.onboarding-emoji { font-size: 4rem; margin-bottom: 20px; display: block; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.onboarding-title { font-family: 'Unbounded', sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.onboarding-subtitle { color: var(--text2); font-size: 0.95rem; line-height: 1.6; }
.onboarding-form { padding: 28px 24px; flex: 1; }

.step-indicator { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.step-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--surface2); transition: all 0.3s; }
.step-dot.active { background: var(--accent); width: 24px; }
.step-dot.done { background: var(--green); }

/* ——— PREDICTION ——— */
.prediction-card {
  background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(56,189,248,0.06));
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--radius2);
  padding: 20px;
  margin: 0 20px 16px;
}
.prediction-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.prediction-text { font-family: 'Unbounded', sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.prediction-sub { font-size: 0.8rem; color: var(--text2); margin-top: 6px; }

/* ——— DIET PLAN ——— */
.meal-block { margin-bottom: 20px; }
.meal-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.meal-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.meal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 6px;
}
.meal-item-name { font-size: 0.88rem; font-weight: 500; }
.meal-item-cal { font-size: 0.78rem; color: var(--accent2); font-weight: 600; }
.meal-item-grams { font-size: 0.72rem; color: var(--text3); }

/* ——— SECTION ——— */
.section { padding: 0 20px; margin-bottom: 20px; }
.section-title { font-family: 'Unbounded', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

/* ——— TAG ——— */
.tag { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.tag-purple { background: rgba(108,99,255,0.15); color: var(--accent2); border: 1px solid rgba(108,99,255,0.25); }
.tag-green { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.tag-red { background: rgba(248,113,113,0.1); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }

/* ——— LOGIN SCREEN ——— */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
}
.login-logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  box-shadow: 0 0 40px rgba(108,99,255,0.4);
}
.login-title { font-family: 'Unbounded', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.login-sub { color: var(--text2); font-size: 0.95rem; line-height: 1.6; margin-bottom: 36px; max-width: 320px; }
.features-list { width: 100%; max-width: 320px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 12px; }
.feature-item { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; }
.feature-icon { font-size: 1.4rem; }
.feature-text { font-size: 0.85rem; color: var(--text2); line-height: 1.4; }
.feature-text strong { color: var(--text); display: block; font-size: 0.9rem; margin-bottom: 1px; }

/* ——— RESPONSIVE ——— */
@media (max-width: 400px) {
  .calorie-hero-num { font-size: 2.2rem; }
  .onboarding-title { font-size: 1.5rem; }
}

/* ——— ANIMATIONS ——— */
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.slide-up { animation: slideUp 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ——— GRAPH PAGE ——— */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 20px;
  margin-bottom: 16px;
}
.chart-card canvas { max-height: 220px; }

/* ——— WEIGHT INPUT ——— */
.weight-quick {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  padding: 20px;
  margin: 0 20px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.weight-input-big {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
  width: 100%;
}
.weight-unit { font-size: 1rem; color: var(--text3); align-self: flex-end; padding-bottom: 8px; }

/* ——— NO DATA ——— */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }
.empty-state-text { font-size: 0.9rem; }

/* ——— ФИКС ЗУМА НА IOS/ANDROID ——— */
/* Браузер зумит страницу если font-size < 16px у input в фокусе */
@media (max-width: 768px) {
  input, select, textarea,
  .input, .chat-input, .weight-input-big {
    font-size: 16px !important;
  }
}

/* Запретить зум через viewport manipulation */
.chat-input {
  touch-action: manipulation;
}
input, select, textarea {
  touch-action: manipulation;
}

/* ─── DRUM PICKER (iOS style) ─── */
.drum-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
  margin: 8px 0;
  user-select: none;
  -webkit-user-select: none;
}
.drum-col { width: 72px; height: 100%; overflow: hidden; position: relative; }
.drum-scroll {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 80px 0;
}
.drum-scroll::-webkit-scrollbar { display: none; }
.drum-item {
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--text3);
  transition: color .12s, transform .12s;
  cursor: pointer;
}
.drum-item.active { color: var(--text); transform: scale(1.12); }
.drum-sep {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--text); margin: 0 4px; padding-bottom: 2px;
}
.drum-unit {
  font-family: 'Manrope', sans-serif;
  font-size: .85rem; font-weight: 600;
  color: var(--text3); margin-left: 8px;
}
.drum-wrap::before, .drum-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; height: 76px; z-index: 2; pointer-events: none;
}
.drum-wrap::before { top: 0;    background: linear-gradient(to bottom, var(--bg2) 0%, transparent 100%); }
.drum-wrap::after  { bottom: 0; background: linear-gradient(to top,   var(--bg2) 0%, transparent 100%); }
.drum-sel {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: 12px; right: 50px; height: 42px;
  border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2);
  pointer-events: none; z-index: 3; border-radius: 6px;
}
