:root {
  --bs-body-bg: #0e1320;
  --panel-bg: #161d2e;
  --panel-border: #232b40;
  --accent: #38bdf8;
}

body {
  background:
    radial-gradient(ellipse at top right, rgba(56,189,248,0.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(168,85,247,0.06), transparent 50%),
    #0e1320;
  min-height: 100vh;
  font-feature-settings: "ss01" on;
}

.navbar-brand-custom {
  background: rgba(22, 29, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}

.navbar-brand-custom .nav-link {
  color: #94a3b8;
  border-radius: 0.5rem;
  padding: 0.4rem 0.85rem;
  margin: 0 0.15rem;
  transition: all 0.15s ease;
}

.navbar-brand-custom .nav-link:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.navbar-brand-custom .nav-link.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.nav-notify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(15,23,42,0.95);
}
.nav-notify-badge.d-none { display: none !important; }

.card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.85rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.card-header {
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--panel-border);
  font-weight: 500;
}

.stat-card .stat-label {
  color: #94a3b8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: #e2e8f0;
}

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
  --bs-table-border-color: var(--panel-border);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  box-shadow: 0 0 0 3px rgba(0,0,0,0);
}

.status-dot.running {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulse-green 2s infinite;
}

.status-dot.exited,
.status-dot.dead {
  background: #ef4444;
}

.status-dot.restarting,
.status-dot.paused {
  background: #f59e0b;
}

.status-dot.created {
  background: #64748b;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.health-badge {
  font-size: 0.72rem;
  padding: 0.2em 0.55em;
  border-radius: 999px;
}

.health-healthy { background: rgba(34,197,94,0.15); color: #4ade80; }
.health-unhealthy { background: rgba(239,68,68,0.15); color: #f87171; }
.health-starting { background: rgba(245,158,11,0.15); color: #fbbf24; }

.disk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.disk-row:last-child { margin-bottom: 0; }

.disk-name { font-family: ui-monospace, monospace; font-size: 0.85rem; }

.disk-meter {
  width: 100%;
  height: 4px;
  background: var(--panel-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.disk-meter > div {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.4s ease;
}

.message {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  position: relative;
}

.message-author {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.message-time {
  font-size: 0.78rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.message-content {
  margin-top: 0.4rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #e2e8f0;
}

.message-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.message:hover .message-delete { opacity: 0.8; }

.weather-card {
  background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(99,102,241,0.10), rgba(22,29,46,0.95));
  border: 1px solid rgba(56,189,248,0.25);
  position: relative;
}

.weather-settings-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  z-index: 2;
}
.weather-settings-btn:hover {
  background: rgba(56,189,248,0.2);
  color: #fff;
}

.wind-arrow {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.4s ease;
  color: #38bdf8;
}

.moon-row {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.92rem;
  color: #cbd5e1;
}
.moon-emoji {
  font-size: 1.5rem;
  margin-right: 0.25rem;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

.hourly-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hourly-title {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.55rem;
}
.hourly-row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.hourly-row::-webkit-scrollbar { height: 6px; }
.hourly-row::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.hourly-item {
  flex: 0 0 auto;
  min-width: 74px;
  text-align: center;
  padding: 0.6rem 0.45rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.55rem;
}
.hourly-item.is-now {
  background: rgba(56,189,248,0.18);
  border-color: rgba(56,189,248,0.4);
}
.hourly-item .h-time {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.hourly-item .h-icon {
  font-size: 1.25rem;
  margin: 0.25rem 0;
  color: #fde68a;
}
.hourly-item.is-night .h-icon { color: #c7d2fe; }
.hourly-item .h-temp {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}
.hourly-item .h-precip {
  font-size: 0.7rem;
  color: #60a5fa;
  margin-top: 0.15rem;
}
.hourly-item .h-wind {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.hourly-item .h-wind .wind-arrow {
  font-size: 0.7rem;
}

.city-results {
  max-height: 300px;
  overflow-y: auto;
}
.city-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 0.5rem;
  color: #e2e8f0;
  text-align: left;
  margin-bottom: 0.35rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.15s;
}
.city-result:hover {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.4);
}
.city-result .city-pop {
  font-size: 0.75rem;
  color: #64748b;
}

.weather-card .weather-temp {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: #f1f5f9;
}
.weather-card .weather-unit {
  font-size: 1.4rem;
  color: #94a3b8;
  margin-left: 0.2rem;
}
.weather-card .weather-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-top: 0.2rem;
}
.weather-card .weather-loc { margin-top: 0.15rem; }

.weather-card #w-icon {
  font-size: 3.2rem;
  background: rgba(56,189,248,0.10);
  width: 80px; height: 80px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fde68a;
}
.weather-card.is-night #w-icon { color: #c7d2fe; background: rgba(99,102,241,0.10); }

.weather-info > div {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
}
.weather-info > div:last-child { margin-bottom: 0; }

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
}
.forecast-day {
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.forecast-day .fc-name {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.forecast-day .fc-icon {
  font-size: 1.4rem;
  margin: 0.2rem 0;
  color: #fbbf24;
}
.forecast-day .fc-temps {
  font-size: 0.78rem;
}
.forecast-day .fc-tmax { color: #f87171; font-weight: 600; }
.forecast-day .fc-tmin { color: #60a5fa; }

@media (max-width: 768px) {
  .forecast-grid { grid-template-columns: repeat(5, 1fr); }
  .forecast-day .fc-icon { font-size: 1.1rem; }
}

.sensor-group {
  margin-bottom: 0.85rem;
}
.sensor-group:last-child { margin-bottom: 0; }

.sensor-chip {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.sensor-row {
  margin-bottom: 0.4rem;
}
.sensor-row:last-child { margin-bottom: 0; }

.sensor-meter {
  width: 100%;
  height: 4px;
  background: var(--panel-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.2rem;
}
.sensor-meter > div {
  height: 100%;
  transition: width 0.4s ease;
}

.fc {
  --fc-border-color: var(--panel-border);
  --fc-button-bg-color: var(--panel-bg);
  --fc-button-border-color: var(--panel-border);
  --fc-button-hover-bg-color: #1f2740;
  --fc-button-hover-border-color: #2d3a5a;
  --fc-button-active-bg-color: #38bdf8;
  --fc-button-active-border-color: #38bdf8;
  --fc-today-bg-color: rgba(56,189,248,0.08);
  --fc-page-bg-color: transparent;
}

.fc .fc-toolbar-title { color: #e2e8f0; font-size: 1.2rem; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--panel-border); }
.fc .fc-daygrid-day-number { color: #cbd5e1; }
.fc .fc-col-header-cell-cushion { color: #94a3b8; }

@media (max-width: 768px) {
  .fc .fc-toolbar { flex-wrap: wrap; gap: 0.4rem; }
  .fc .fc-toolbar-title { font-size: 1rem; flex: 1 1 100%; text-align: center; order: -1; }
  .fc .fc-button { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
  .fc .fc-daygrid-day-events { font-size: 0.7rem; }
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.85rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.55rem;
  color: #cbd5e1;
  font-size: 0.85rem;
}
.cal-legend .legend-item { display: inline-flex; align-items: center; }
.cal-legend .legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 0.4rem;
}

/* ============== Bevásárlólista ============== */

.shopping-page { max-width: 900px; margin: 0 auto; }

.shop-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.lists-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.list-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  --c: #38bdf8;
}
.list-chip:hover { background: #1f2740; color: #e2e8f0; }
.list-chip.active {
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: #fff;
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
}
.list-chip i { color: var(--c); }
.list-chip .chip-badge {
  background: rgba(255,255,255,0.12);
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 0.05em 0.5em;
  border-radius: 999px;
  font-weight: 600;
}
.list-chip.active .chip-badge { background: var(--c); color: #0e1320; }

.shop-add-list-btn { flex-shrink: 0; border-radius: 999px; padding: 0.4rem 0.7rem; }

.shop-toolbar {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.85rem;
}
.shop-user-select { max-width: 110px; }

.quick-add-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
}
.quick-add-icon { font-size: 1.3rem; color: #38bdf8; flex-shrink: 0; }
.quick-add-input { background: rgba(255,255,255,0.04); border-color: var(--panel-border); color: #e2e8f0; font-size: 1.05rem; }
.quick-add-input:focus { background: rgba(255,255,255,0.06); color: #fff; }
.quick-add-btn { flex-shrink: 0; }

.quick-add-hint {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  min-height: 1.1em;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.quick-add-hint .hint-name { color: #e2e8f0; font-weight: 600; }
.quick-add-hint .hint-qty {
  background: rgba(56,189,248,0.12); color: #38bdf8;
  padding: 0.05em 0.55em; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
}
.quick-add-hint .hint-cat {
  background: rgba(255,255,255,0.05); color: #94a3b8;
  padding: 0.05em 0.55em; border-radius: 999px; font-size: 0.78rem;
}

.cat-group { margin-bottom: 1rem; }
.cat-header {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 0.85rem 0 0.45rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.cat-header i { font-size: 1rem; color: #38bdf8; }
.cat-count {
  background: rgba(255,255,255,0.06);
  padding: 0.05em 0.5em;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-left: 0.25rem;
  color: #cbd5e1;
}

.shop-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.55rem;
  margin-bottom: 0.4rem;
  transition: opacity 0.2s, transform 0.15s;
}
.shop-item.purchased { opacity: 0.55; }
.shop-item.purchased .shop-item-name { text-decoration: line-through; color: #94a3b8; }

.shop-check {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  width: 28px;
  height: 28px;
}
.shop-check input { display: none; }
.shop-check .checkmark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.15s;
  background: rgba(255,255,255,0.02);
}
.shop-check input:checked + .checkmark {
  background: #22c55e;
  border-color: #22c55e;
}
.shop-check input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 10px; top: 4px;
  width: 7px; height: 14px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.shop-item-body { flex: 1; min-width: 0; }
.shop-item-name { color: #e2e8f0; font-size: 1rem; word-wrap: break-word; }
.shop-qty {
  background: rgba(56,189,248,0.12);
  color: #38bdf8;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 0.3rem;
}
.shop-item-meta {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.btn-icon {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.3rem 0.45rem;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-icon:hover { background: rgba(239,68,68,0.12); color: #f87171; }

.shop-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
  font-size: 1.05rem;
}
.shop-empty i { font-size: 2.2rem; display: block; margin-bottom: 0.55rem; color: #22c55e; }

.shop-done-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
}
.shop-done-toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.shop-done-toggle .chev { transition: transform 0.2s; }
.done-list .shop-item { background: rgba(34,197,94,0.03); }

.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.icon-picker button {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  width: 44px; height: 44px;
  border-radius: 0.5rem;
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.15s;
}
.icon-picker button:hover { background: #1f2740; }
.icon-picker button.selected {
  background: rgba(56,189,248,0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

@media (max-width: 600px) {
  .shop-toolbar h5 { font-size: 1rem; }
  .shop-toolbar .badge { font-size: 0.7rem; }
  .quick-add-input { font-size: 0.95rem; }
  .shop-item-name { font-size: 0.95rem; }
  .list-chip { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
  .list-chip span:not(.chip-badge) { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Üres állapot success a check2-all icon-nak */
.bg-info-subtle { background: rgba(56,189,248,0.15) !important; }
.bg-success-subtle { background: rgba(34,197,94,0.15) !important; }
.bg-secondary-subtle { background: rgba(100,116,139,0.18) !important; }

.quick-add-input {
  resize: none;
  min-height: 44px;
  max-height: 200px;
  overflow-y: auto;
}

/* Recipe history strip */
.recipe-history-wrap { margin-bottom: 1.2rem; }
.recipe-history-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}
.recipe-history-strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
}
.recipe-tile {
  flex: 0 0 auto;
  width: 160px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.6rem;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  color: inherit;
  transition: all 0.15s;
}
.recipe-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.recipe-tile-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.04);
}
.recipe-tile-img.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #64748b;
}
.recipe-tile-text { padding: 0.5rem 0.6rem; }
.recipe-tile-name {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}
.recipe-tile-meta { font-size: 0.7rem; color: #64748b; margin-top: 0.2rem; }
.recipe-tile-del {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #f87171;
  width: 22px; height: 22px;
  border-radius: 50%;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.15s;
}
.recipe-tile:hover .recipe-tile-del { opacity: 1; }
.recipe-tile.favorite {
  border-color: rgba(245,158,11,0.5);
  background: linear-gradient(135deg, rgba(245,158,11,0.08), var(--panel-bg));
}
.recipe-tile.favorite:hover {
  border-color: rgba(245,158,11,0.8);
  box-shadow: 0 4px 16px rgba(245,158,11,0.15);
}
.recipe-tile-fav {
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(245,158,11,0.9);
  border: none;
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  z-index: 2;
}

/* Elkészítésre váró (queued) stílusok */
.recipe-tile.queued {
  border-color: rgba(56,189,248,0.5);
  background: linear-gradient(135deg, rgba(56,189,248,0.08), var(--panel-bg));
}
.recipe-tile.queued:hover {
  border-color: rgba(56,189,248,0.8);
  box-shadow: 0 4px 16px rgba(56,189,248,0.15);
}
.recipe-tile-queued {
  position: absolute;
  top: 4px; right: 4px;
  background: rgba(56,189,248,0.9);
  border: none;
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  z-index: 2;
}

/* Recipe modal */
.recipe-header { align-items: flex-start; }
.recipe-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.recipe-scale-row {
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 0.55rem;
  padding: 0.6rem 0.85rem;
}

/* Hozzávaló sor (recipe + batch modálnál is) */
.recipe-ingredients { display: grid; gap: 0.3rem; }
.ingredient-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
}
.ingredient-row:has(input:checked) {
  border-color: rgba(34,197,94,0.35);
}
.ingredient-row.is-pantry { opacity: 0.7; }
.ingredient-row input[type=checkbox] { display: none; }
.ingredient-row .checkmark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.ingredient-row input:checked + .checkmark {
  background: #22c55e;
  border-color: #22c55e;
}
.ingredient-row input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 7px; top: 2px;
  width: 5px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.ingredient-text { flex: 1; min-width: 0; }
.ingredient-name { color: #e2e8f0; font-size: 0.95rem; word-wrap: break-word; }
.ingredient-cat { margin-top: 0.15rem; }

.cal-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 0.55rem;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s, background 0.2s;
}
.cal-item.disabled { opacity: 0.5; }
.cal-item.syncing { background: rgba(56,189,248,0.06); }
.cal-color-chip {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2) inset;
}
.cal-info {
  flex: 1;
  min-width: 0;
}
.cal-info .cal-name {
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.95rem;
}
.cal-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.cal-actions .btn {
  padding: 0.2rem 0.45rem;
}
