/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #0d0d0d;
  --surface: #171717;
  --surface-2: #1f1f1f;
  --surface-3: #2a2a2a;
  --border: #2e2e2e;
  --border-light: #3d3d3d;

  --red: #dc2626;
  --red-hover: #b91c1c;
  --red-light: #ef4444;
  --red-dim: rgba(220, 38, 38, 0.12);
  --red-glow: rgba(220, 38, 38, 0.25);

  --text: #f5f5f5;
  --text-2: #a3a3a3;
  --text-3: #525252;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  --success: #10b981;
  --success-dim: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-dim: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.8);

  /* Mobilný košík: rezerva nad spodnou lištou prehliadača (Chrome / Safari) */
  --mobile-browser-bottom-ui: 72px;
  --shadow-red: 0 0 24px rgba(220, 38, 38, 0.3);

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

/* ─── Light Mode Overrides ──────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-3: #e5e7eb;
  --border: #e5e7eb;
  --border-light: #d1d5db;

  --text: #111827;
  --text-2: #374151;
  --text-3: #9ca3af;

  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 24px rgba(220, 38, 38, 0.15);

  --red-dim: rgba(220, 38, 38, 0.08);
}

/* Header ostáva vždy tmavý */
.header {
  background: rgba(13, 13, 13, 0.9) !important;
  border-bottom-color: var(--border) !important;
}

.header-icon-btn {
  color: #e5e7eb;
}

.nav-link {
  color: #d1d5db;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.mobile-menu-toggle {
  color: #e5e7eb;
}

[data-theme="light"] .main-nav {
  background: #1a1a1a;
}

[data-theme="light"] .main-nav .nav-link {
  border-bottom-color: #2e2e2e;
  color: #d1d5db;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--red);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary:hover { background: var(--red-hover); box-shadow: var(--shadow-red); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-light);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-print { font-size: 0.82rem; padding: 0.5rem 1rem; }
.btn-print:hover { border-color: var(--red); color: var(--red); }

.btn-danger {
  background: #7f1d1d;
  color: #fca5a5;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-success {
  background: #16a34a;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--transition);
  border: 1px solid #16a34a;
}
.btn-success:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; border-radius: var(--radius); }

.btn-icon {
  background: var(--surface-3);
  color: var(--text-2);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--red-dim); color: var(--red-light); border-color: var(--red); }
.btn-icon.btn-delete:hover { background: rgba(127, 29, 29, 0.3); color: var(--danger); border-color: #7f1d1d; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.9rem; }
.form-group label { 
  font-size: 0.7rem; 
  font-weight: 700; 
  color: var(--text-3); 
  text-transform: uppercase; 
  letter-spacing: 0.08em; 
  margin-left: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  transition: all var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface-3);
  box-shadow: 0 0 0 4px var(--red-dim);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--surface-3); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.form-group-full { grid-column: 1 / -1; }

.error-msg { 
  color: var(--danger); 
  font-size: 0.85rem; 
  padding: 0.75rem 1rem; 
  background: rgba(239, 68, 68, 0.1); 
  border-radius: var(--radius-md); 
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 1rem;
}

/* ─── Logo ───────────────────────────────────────────────────────────────────── */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-circle {
  position: relative;
  height: 40px;
  width: 40px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--red);
  flex-shrink: 0;
}
.logo-circle img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--red-light);
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--red);
}

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 641px) {
  /* Hlavička teraz ide na celú šírku, keďže košík začína až pod ňou (top: 80px) */
  body:not(.is-admin) .header {
    padding-right: 0;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-img-wrap {
  position: relative;
  height: 40px;
  width: 40px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid #facc15;
}
.logo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-main-text {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #8b0000;
  line-height: 1.2;
}
.logo-sub-text {
  font-family: var(--font-main);
  color: #facc15;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: -1px;
  display: block;
}

.cart-btn {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--red-dim); border-color: var(--red); color: var(--red); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Animácia „letu“ položky do košíka */
.cart-fly-item {
  position: fixed;
  z-index: 10050;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--red);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}
.cart-fly-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-fly-item .cart-fly-emoji {
  font-size: 1.75rem;
  line-height: 1;
}
@keyframes cart-fly-land-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.cart-btn.cart-fly-land {
  animation: cart-fly-land-pulse 0.45s ease-out;
  border-color: var(--red);
  color: var(--red);
}

/* ─── Main Navigation ──────────────────────────────────────────────────────────── */
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--red);
}
@media (max-width: 980px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    padding: 5rem 1.5rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    z-index: 1001;
    gap: 0;
  }
  .main-nav .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  .main-nav.mobile-open {
    transform: translateX(-280px);
  }
}

/* ─── User Button Styling ────────────────────────────────────────────────────── */
.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.header-icon-btn {
  background: transparent;
  border: none;
  color: #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.header-icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: none;
  z-index: 1010;
  width: 44px;
  height: 44px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

.logout-btn { color: var(--text-3); }
.logout-btn:hover { color: var(--red-light); background: rgba(220, 38, 38, 0.1); }

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  padding-right: 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition: all var(--transition);
  height: 44px;
  cursor: pointer;
}
.user-btn:hover {
  background: var(--surface-3);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--surface-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.user-btn:hover .user-avatar {
  border-color: var(--red);
  color: var(--red-light);
}
.user-btn.active .user-avatar {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.user-label {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .user-label { display: none; }
  .user-btn { padding: 0; width: 44px; justify-content: center; border-radius: 50%; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.storefront-banner {
  max-width: 1200px;
  margin: 0.85rem auto 0;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.storefront-banner.is-text {
  padding: 1rem 1.35rem;
  margin: 0.85rem 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  letter-spacing: -0.01em;
  white-space: pre-wrap;
}
.storefront-banner.is-image {
  padding: 0 1.5rem;
}
.storefront-banner.is-image img {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #0a0a0a;
}
.storefront-banner--preview {
  min-height: 72px;
  margin: 0;
  max-width: none;
}
.storefront-banner--preview.is-off {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface-2);
}
.hero-image-current {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.hero-image-current img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111;
}
.hero-image-remove-btn {
  width: auto !important;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.85rem !important;
  color: #dc2626 !important;
  border-color: #dc2626 !important;
}
.hero-image-remove-btn:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}
.hero-preview-wrap {
  margin-top: 1.1rem;
}
.hero-preview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-bottom: 0.45rem;
}
#hero-save-btn {
  margin-top: 1rem;
  width: auto;
  align-self: flex-start;
  background: #0a0a0a;
  color: var(--red);
  border: 1px solid var(--red);
  font-weight: 700;
}
#hero-save-btn:hover {
  background: rgba(220, 38, 38, 0.12);
  color: var(--red-light, var(--red));
  border-color: var(--red);
}
.hero-editor-grid {
  margin-bottom: 0.75rem;
}
.hero-editor-panel .form-group {
  margin-bottom: 0.85rem;
}
.hero-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.hero-top-bar.is-on {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(22, 163, 74, 0.08);
}
.hero-enable-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  min-width: 0;
}
.hero-enable-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero-enable-state {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.hero-enable-state.is-on { color: #22c55e; }
.hero-enable-state.is-off { color: var(--text-3); }
.hero-mode-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: 0;
}
.hero-mode-label {
  margin: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.settings-card .hero-mode-select,
.hero-mode-select {
  width: auto !important;
  min-width: 8.5rem;
  max-width: 11rem;
  padding: 0.45rem 0.7rem !important;
  margin: 0;
  border-color: var(--red) !important;
}
.settings-card .hero-mode-select:hover,
.hero-mode-select:hover,
.settings-card .hero-mode-select:focus,
.hero-mode-select:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}
.hero-switch {
  position: relative;
  width: 52px;
  height: 30px;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  cursor: pointer;
}
.hero-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.hero-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #4b5563;
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hero-switch-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.hero-switch input:checked + .hero-switch-slider {
  background: #16a34a;
  border-color: #15803d;
}
.hero-switch input:checked + .hero-switch-slider::before {
  transform: translateX(22px);
}
.hero-switch input:focus-visible + .hero-switch-slider {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.hero-style-box {
  margin: 0.15rem 0 0.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.hero-style-box-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.7rem;
}
.hero-style-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1.15rem;
  margin: 0;
}
.hero-style-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.hero-style-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.hero-color-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.hero-color-swatch-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border-light, var(--border));
  background: var(--surface);
  flex: 0 0 auto;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.settings-card .hero-color-swatch-wrap input[type="color"],
.hero-color-swatch-wrap input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px) !important;
  height: calc(100% + 8px) !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer;
  box-shadow: none !important;
}
.hero-palette {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.hero-palette-swatch {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--swatch, #888);
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hero-palette-swatch:hover {
  transform: scale(1.08);
}
.hero-palette-swatch.is-active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.28);
}
.settings-card .hero-font-size-select,
.hero-font-size-select {
  width: auto !important;
  min-width: 5.75rem;
  max-width: 7rem;
  padding: 0.45rem 0.65rem !important;
}
.hero-style-field--size {
  margin-left: 0;
}

@media (max-width: 640px) {
  .hero-top-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0.85rem 0.9rem;
  }
  .hero-enable-group {
    justify-content: flex-start;
  }
  .hero-mode-group {
    width: 100%;
  }
  .settings-card .hero-mode-select,
  .hero-mode-select {
    flex: 1;
    width: 100% !important;
    max-width: none;
  }
  .hero-style-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .hero-color-control {
    gap: 0.45rem;
  }
  .settings-card .hero-font-size-select,
  .hero-font-size-select {
    width: 100% !important;
    max-width: none;
  }
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.5rem;
}
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.text-red { color: var(--red); }
.hero-subtitle { font-size: 1.05rem; color: var(--text-2); font-weight: 400; }
.storefront-status-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.storefront-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.6rem 1.1rem;
  background: var(--surface-2);
  color: var(--text);
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.storefront-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}
.storefront-status-pill.is-on {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.12);
}
.storefront-status-pill.is-off {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.7);
  background: rgba(245, 158, 11, 0.12);
}
.storefront-status-pill.is-critical-off {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.75);
  background: rgba(239, 68, 68, 0.14);
}
.storefront-status-pill.is-pulse .storefront-status-dot {
  animation: storefrontPulse 1.8s ease-out infinite;
}
@keyframes storefrontPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ─── Categories ─────────────────────────────────────────────────────────────── */
.categories-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 0.4rem;
}
.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.tab-btn:hover { border-color: var(--red); color: var(--red); }
.tab-btn.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 16px var(--red-glow);
}

/* ─── Page Layout ────────────────────────────────────────────────────────────── */
.page-layout {
  min-height: calc(100vh - 80px);
}

.content-col {
  margin-right: 320px; /* equals cart width, keeps content from going under */
}

/* ─── Product Grid ───────────────────────────────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.product-grid {
  display: block;
}
.category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 1rem;
}
.category-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.4rem 1rem 1rem;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.category-block-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
  color: #f59e0b;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  line-height: 1.1;
}
.product-selections {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  overflow: hidden;
}
.product-selections > .variant-picker {
  margin-top: 0;
  min-height: auto;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}
.product-selections > .variant-picker:last-child,
.product-selections > .burger-extras:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.product-selections > .variant-picker:first-child {
  padding-top: 0;
}
.product-selections > .variant-picker label {
  color: #f59e0b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.product-selections > .variant-picker .variant-select,
.product-selections .burger-extras .variant-select {
  width: 100%;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
}
.product-selections > .burger-extras {
  margin-top: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0.5rem 0;
}
.product-selections > .burger-extras:first-child {
  padding-top: 0;
}
.category-product-card {
  border: none;
  border-radius: var(--radius);
  background: transparent;
  overflow: visible;
  box-shadow: none;
  min-width: 0;
  flex: 1;
}
.category-product-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

@media (max-width: 1400px) {
  .category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.loading, .no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-2);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: product;
}

/* Container query — keď je karta užšia ako 320px, footer wrap-ne na 2 riadky
   a tlačidlo "Pridať do košíka" bude celé šírku karty. Rieši orezávanie pri
   úzkych gridoch (2-stĺpcový layout na tablete) bez potreby media query. */
@container product (max-width: 320px) {
  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .product-footer .product-price { text-align: left; }
  .product-footer .btn-add { width: 100%; }
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-light);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}
.product-image-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.product-info { padding: 0.15rem 0.65rem 0.5rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-height: 0; }
.product-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-light);
}
.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-description {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.variant-picker {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.burger-extras {
  margin-top: 0.55rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.6rem;
}
.burger-extras-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f59e0b;
  margin: 0 0 0.35rem;
}
.kompletka-note {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 600;
}
.burger-extras-title.kompletka-builder-title {
  color: var(--text-2);
}
.variant-picker label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 1;
}
.variant-select {
  background: var(--surface-3, #2a2a2a);
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}
.variant-select:hover {
  border-color: rgba(255,255,255,0.35);
}
.variant-select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.product-validation-error {
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  min-height: 0;
}
.product-validation-error:empty {
  display: none;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
.shake {
  animation: shake 0.5s ease-in-out;
}
.product-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.45rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  min-height: 3rem;
  min-width: 0;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.1;
}

.btn-add {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.78) 0%, rgba(185, 28, 28, 0.78) 100%);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.35);
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.18), inset 0 1px 0 rgba(255,255,255,0.1);
  cursor: pointer;
  min-height: 44px;
}
.btn-add__icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-add:hover {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-hover) 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-add:active { transform: scale(0.97); }

/* Úzke karty: cena + € ostane v jednom riadku vedľa tlačidla */
.btn-add:disabled {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.28rem 0.42rem;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.92;
}
.btn-add:disabled:hover {
  background: var(--red-dim);
  color: var(--red-light);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: none;
}

/* ─── Cart Panel ─────────────────────────────────────────────────────────────── */

/* Overlay – only active on mobile */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  backdrop-filter: blur(4px);
}

/* ── Desktop: always-visible fixed sidebar ── */
.cart-panel {
  position: fixed;
  right: 0;
  top: 80px;
  width: 320px;
  height: calc(100vh - 80px);
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  /* No transform – always in view */
}

/* Hide mobile-only elements on desktop */
.cart-header .cart-close-mobile { display: none !important; }
.cart-btn { display: none; }

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h2 { font-size: 1.1rem; font-weight: 700; }

.close-btn {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.close-btn:hover { background: var(--red-dim); color: var(--red); border-color: var(--red); }

.cart-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Len položky – pätička je vždy tesne pod poslednou položkou v tom istom scrolli */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.cart-empty { text-align: center; color: var(--text-3); padding: 3rem 1rem; font-size: 0.9rem; }

.cart-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem 0.875rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Doplnok pripojený k hlavnému produktu — vizuálne odsadený a tlmený. */
.cart-item--attached {
  margin-left: 1.25rem;
  margin-top: -0.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface, #1a1a1a);
  border-color: transparent;
  border-left: 3px solid var(--red, #dc2626);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-size: 0.92em;
  opacity: 0.95;
}
.cart-item-thumb__attach {
  font-size: 1.4rem;
  color: var(--red, #dc2626);
  font-weight: 700;
  line-height: 1;
}

/* Row 1: thumbnail + name + remove */
.cart-item-row1 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.cart-item-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name-wrap { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-note {
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-user-note {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: #f59e0b;
  padding: 0.2rem 0 0 2.8rem;
}
.cart-item-user-note__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}
.cart-item-user-note__text:hover {
  text-decoration: underline;
}
.cart-item-user-note__del {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.8rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.cart-item-user-note__del:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.cart-item-remove {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3);
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  padding: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.cart-item-remove:hover { color: #fff; background: var(--danger); border-color: var(--danger); }

/* Row 2: price + qty controls */
.cart-item-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: calc(34px + 0.625rem); /* indent under thumb */
}
.cart-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red-light);
}
.cart-item-controls { display: flex; align-items: center; gap: 0.35rem; }

.qty-btn {
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  line-height: 1;
}
.qty-btn:hover { background: var(--red-dim); border-color: var(--red); color: var(--red); }
.qty-value { font-size: 0.85rem; font-weight: 700; min-width: 18px; text-align: center; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
}
.cart-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}
.cart-delivery-note {
  margin: -0.15rem 0 0.35rem;
  font-size: 0.76rem;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.34rem 0.5rem;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
}
.cart-total { font-size: 1.4rem; font-weight: 800; color: var(--red-light); }

.cart-coupon-block {
  margin: 0.55rem 0 0.65rem;
}
.cart-coupon-row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}
.cart-coupon-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
}
.cart-coupon-msg {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}
.cart-coupon-msg.is-ok { color: #2f9e44; }
.cart-coupon-msg.is-err { color: var(--red-light, #e03131); }
#cart-discount-row span:last-child,
#cart-discount-fee {
  color: #2f9e44;
  font-weight: 600;
}

/* ─── Modals ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.modal-sm { max-width: 560px; }
.modal-lg { max-width: 920px; }
#checkout-modal { max-width: 860px; }

@keyframes slideUp { 
  from { opacity: 0; transform: translateY(30px) scale(0.98); } 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* ─── Sidebar Modal ──────────────────────────────────────────────────────────── */
.modal-sidebar {
  height: 100vh;
  max-height: 100vh;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  border-radius: 0;
  animation: slideRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.modal-header {
  padding: 1.5rem 2rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.modal-close {
  background: var(--surface-2);
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.modal-close:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.modal-body { 
  padding: 1.5rem; 
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-footer { 
  display: flex; 
  gap: 1rem; 
  justify-content: flex-end; 
  padding: 1rem 1.5rem; 
  border-top: 1px solid var(--border); 
  background: var(--surface-2);
}

.modal-footer-text { 
  margin-top: 2rem; 
  padding-top: 1.5rem; 
  border-top: 1px solid var(--border);
  text-align: center; 
  font-size: 0.95rem; 
  color: var(--text-2); 
}
.modal-footer-text a { 
  color: var(--red-light); 
  text-decoration: none; 
  font-weight: 700; 
  margin-left: 0.35rem; 
  transition: all var(--transition);
}
.modal-footer-text a:hover { 
  text-decoration: underline; 
  color: var(--red);
}

.checkout-form-body { padding: 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 1.05rem; }

/* ─── Payment Options ────────────────────────────────────────────────────────── */
.payment-section h3 { font-size: 0.85rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  max-width: 700px;
}
.payment-option { cursor: pointer; max-width: 350px; height: 100%; display: flex; }
.payment-option input[type="radio"] { display: none; }
.payment-option-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
}
.payment-option input:checked + .payment-option-content {
  border-color: var(--red);
  background: var(--red-dim);
}
.payment-option:hover .payment-option-content { border-color: var(--border-light); }
.payment-option.is-disabled {
  cursor: help;
  opacity: 1;
}
.payment-option.is-disabled .payment-option-content {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.85);
  background: rgba(245, 158, 11, 0.12);
}
.payment-option.is-disabled:hover .payment-option-content {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18) inset;
}
.payment-icon { font-size: 1.35rem; flex-shrink: 0; }
.payment-name { font-weight: 600; font-size: 0.86rem; line-height: 1.25; }
.payment-desc { font-size: 0.74rem; color: var(--text-2); line-height: 1.3; }
.tip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tip-btn {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--transition);
}
.tip-btn:hover {
  border-color: var(--red);
  color: var(--red-light);
}
.tip-btn.active {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red-light);
}
.tip-btn-custom {
  margin-left: auto;
}
.tip-custom-row {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tip-custom-row label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
}
.tip-custom-row input {
  width: 100%;
  max-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}
.tip-custom-row input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}

/* Checkout — desktop: 2 stĺpce / flex tipy; mobilný full-width je len v @media nižšie */
#checkout-modal .checkout-form-body .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#checkout-modal .payment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  width: 100%;
  align-items: stretch;
}
#checkout-modal .payment-option {
  max-width: none;
  width: 100%;
  height: 100%;
  display: flex;
}
#checkout-modal .payment-option-content {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.8rem;
  gap: 0.7rem;
}
#checkout-modal .payment-option-content > div {
  min-width: 0;
}
#checkout-modal .tip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}
#checkout-modal .tip-btn {
  width: auto;
  margin-left: 0;
  text-align: center;
  flex: 0 1 auto;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  box-sizing: border-box;
}
#checkout-modal .tip-btn[data-tip="0"] {
  grid-column: auto;
}
#checkout-modal .tip-btn-custom {
  margin-left: 0;
}
#checkout-modal .tip-custom-row input {
  max-width: 220px;
  width: 100%;
}
#checkout-modal .payment-section,
#checkout-modal .form-group {
  min-width: 0;
}
/* Select býva nižší ako textový input (native UI) — zjednotiť výšku v pokladni. */
#checkout-modal .form-group input,
#checkout-modal .form-group select {
  box-sizing: border-box;
  min-height: 3rem;
  height: 3rem;
  line-height: 1.25;
  padding-top: 0;
  padding-bottom: 0;
}
#checkout-modal .checkout-requested-time {
  max-width: 100%;
  box-sizing: border-box;
}
#checkout-modal .checkout-requested-time label {
  display: block;
  line-height: 1.35;
  white-space: normal;
}
#checkout-modal #f-requested-time {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── Order Summary ──────────────────────────────────────────────────────────── */
.order-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.order-summary h3 { font-size: 0.85rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.summary-item { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.3rem 0; }
.summary-item span:last-child { font-weight: 600; }
.summary-item small { color: var(--text-2); font-size: 0.75rem; }
.order-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--red-light);
}

/* ─── Confirmation Modal ─────────────────────────────────────────────────────── */
.modal-confirm { padding: 2rem 1.5rem; text-align: center; }
.confirm-success { margin-bottom: 1.5rem; }
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success-dim);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--success);
  margin: 0 auto 1rem;
}
.confirm-success h2 { font-size: 1.4rem; font-weight: 800; }
.confirm-success p { color: var(--text-2); font-size: 0.9rem; margin-top: 0.25rem; }
.confirm-email-notice {
  margin-top: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: left;
}
.confirm-email-notice p {
  color: var(--text) !important;
  font-size: 0.85rem !important;
  margin: 0.25rem 0;
  line-height: 1.5;
}

.qr-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.qr-info > p { color: var(--text-2); font-size: 0.875rem; margin-bottom: 1rem; }
.qr-code-container {
  display: inline-block;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.qr-code-container img { display: block; }

.payment-details { text-align: left; background: var(--surface-2); border-radius: var(--radius); padding: 0.875rem; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.payment-detail-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.payment-detail-row span { color: var(--text-2); }
.payment-detail-row strong { word-break: break-all; text-align: right; max-width: 65%; }

.cod-info { font-size: 1.1rem; padding: 1.5rem; color: var(--text-2); }

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { background: var(--success-dim); border-color: var(--success); color: var(--success); }
.toast.error { background: rgba(127, 29, 29, 0.4); border-color: var(--danger); color: var(--danger); }

/* ─── Image Upload ───────────────────────────────────────────────────────────── */
.image-upload-area {
  position: relative;
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color var(--transition);
  cursor: pointer;
}
.image-upload-area:hover { border-color: var(--red); }
.image-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.image-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-2);
  font-size: 0.875rem;
  pointer-events: none;
}
.image-upload-label small { font-size: 0.75rem; color: var(--text-3); }
#image-preview { width: 100%; max-height: 180px; object-fit: cover; }

/* ─── Admin Login ────────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at center top, rgba(220, 38, 38, 0.08) 0%, transparent 60%), var(--bg);
}
.login-card {
  background: #121212;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.login-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.12), transparent 50%);
  pointer-events: none;
}
.login-logo { text-align: center; position: relative; z-index: 1; margin-bottom: 1.5rem; }
.login-logo h1 { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.025em; text-transform: uppercase; }

/* Google login button container */
.google-btn-container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.google-btn-container > div {
  width: 100% !important;
}
.google-btn-container iframe {
  border-radius: 12px !important;
  min-height: 44px;
}

/* Divider */
.login-divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}
.login-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.login-divider-text {
  padding: 0 0.75rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Credentials form */
.login-credentials-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.login-credentials-form .form-group {
  margin-bottom: 0;
}
.login-credentials-form input {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
}
.login-credentials-form input:focus {
  border-color: var(--red) !important;
  outline: none;
}

/* ─── Admin Header ───────────────────────────────────────────────────────────── */
.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.admin-tabs { display: flex; gap: 0.25rem; flex: 1; }
.mobile-nav-logo { display: none; }
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
/* Tlačiareň BT tlačidlo */
.bt-printer-btn {
  position: relative;
  background: rgba(255,255,255,0.1) !important;
  border: 2px solid rgba(255,255,255,0.25) !important;
  border-radius: 10px !important;
  padding: 6px 12px !important;
  min-width: 44px;
  min-height: 44px;
}
.bt-printer-icon { font-size: 22px; }
.bt-printer-dot {
  position: absolute; top: 2px; right: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ef4444; display: block;
  border: 2px solid rgba(0,0,0,0.3);
}
.admin-header-actions .btn-outline { 
  text-decoration: none; 
  color: #fff !important; 
  border-color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 600;
}
.admin-header-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff !important;
}
.admin-footer {
  max-width: 1300px;
  margin: 2.5rem auto 1.25rem;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}
.admin-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 500;
}
.admin-footer-brand-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), #f97316);
  box-shadow: 0 0 8px rgba(239,68,68,0.5);
}
.admin-footer-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.admin-footer-link {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
}
.admin-footer-link:hover { color: var(--text); }
.admin-footer-theme-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.9rem;
  /* Priestor vpravo aby sa neprekrýval so scroll-to-top buttonom (fixed right:1.5rem, šírka 44px) */
  margin-right: 3.5rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.admin-footer-theme-btn:hover {
  background: var(--surface-3);
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.admin-footer-theme-btn svg { flex-shrink: 0; opacity: 0.8; }
@media (max-width: 600px) {
  .admin-footer { flex-direction: column; align-items: center; margin: 1.5rem 0.75rem 1rem; padding: 1rem 1rem 0; }
  .admin-footer-nav { justify-content: center; }
  .admin-footer-theme-btn { margin-right: 0; }
}

/* ─── Admin Content ──────────────────────────────────────────────────────────── */
.tab-content { display: none; max-width: 1300px; margin: 0 auto; padding: 1.5rem; width: 100%; box-sizing: border-box; min-width: 0; }
.tab-content.active { display: block; }

.tab-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tab-toolbar h2 { font-size: 1.3rem; font-weight: 800; }
.orders-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.orders-tab-toolbar .pending-orders-hero {
  justify-self: center;
}
@media (min-width: 901px) {
  .orders-tab-toolbar {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    column-gap: 1rem;
  }
  .orders-tab-toolbar .pending-orders-hero {
    margin: 0 auto;
  }
}

/* ─── Admin Dashboard ────────────────────────────────────────────────────────── */
.dashboard-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dashboard-toggle-card {
  background: linear-gradient(145deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-toggle-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
}
.dashboard-toggle-card.is-on {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15) inset;
}
.dashboard-toggle-card.is-off {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12) inset;
}
.dashboard-toggle-card p {
  margin: 0.35rem 0 0;
  color: var(--text-2);
  font-size: 0.86rem;
}
.system-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.system-state-pill.is-on {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.75);
  color: #22c55e;
}
.system-state-pill.is-off {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.75);
  color: #ef4444;
}
.dashboard-filters {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.dashboard-filters .pay-filter-btn {
  white-space: nowrap;
}
.dashboard-range-indicator {
  margin: -0.2rem 0 0.95rem;
  font-size: 0.82rem;
  color: var(--text-2);
}
.dashboard-range-indicator strong {
  color: var(--text);
}
.dashboard-custom-range {
  margin-left: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
}
.dashboard-custom-range-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 145px;
}
.dashboard-custom-range-field span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dashboard-date-input {
  max-width: 170px;
  min-height: 35px;
  padding: 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  background-image: none;
}
.dashboard-date-input::-webkit-calendar-picker-indicator {
  transform: none;
  cursor: pointer;
}
.flatpickr-calendar {
  font-size: 1.02rem;
  width: 360px;
}
.flatpickr-calendar .flatpickr-day {
  max-width: 46px;
  height: 42px;
  line-height: 42px;
}
.flatpickr-calendar .flatpickr-months .flatpickr-month,
.flatpickr-calendar .flatpickr-current-month input.cur-year {
  font-size: 1rem;
}
.dashboard-custom-range-error {
  width: 100%;
  font-size: 0.78rem;
  color: #ef4444;
  margin: 0.1rem 0 0;
  display: none;
}
.dashboard-section-title {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 1.1rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-section-title:first-child {
  margin-top: 0.4rem;
}
.dashboard-section-title--top {
  color: #f59e0b;
  border-bottom-color: rgba(245, 158, 11, 0.25);
}
.dashboard-section-range {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
}
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0.75rem;
}
.dashboard-metrics-grid--overview {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.55rem;
}
/* Karty Prehľadu — rovnaký inline layout ako Najlepšie:
   label vľavo, hodnota vpravo, oddelené tenkou líniou, 1 riadok. */
.dashboard-metrics-grid--overview .dashboard-metric-card {
  padding: 0.55rem 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
}
.dashboard-metrics-grid--overview .dashboard-metric-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-right: 1px solid var(--border);
  padding-right: 0.7rem;
}
.dashboard-metrics-grid--overview .dashboard-metric-value {
  font-size: 1.5rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-metrics-grid--top {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0.55rem;
}
/* KPI riadok: počet | tržby (rozpis) | najpredávanejší */
.dashboard-metrics-grid--row3 {
  grid-template-columns: minmax(140px, 0.9fr) minmax(260px, 1.5fr) minmax(160px, 1fr);
  gap: 0.6rem;
}
.dashboard-metrics-grid--row3 .dashboard-metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}
.dashboard-metrics-grid--row3 .dashboard-metric-card--accent {
  display: flex;
  grid-template-columns: none;
}
.dashboard-metrics-grid--row3 .dashboard-metric-label {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.dashboard-metrics-grid--row3 .dashboard-metric-value {
  font-size: 1.6rem;
  line-height: 1.05;
}
.dashboard-metrics-grid--row3 .dashboard-metric-value-small {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}
.dashboard-metric-sub {
  font-size: 0.72rem;
  color: var(--text-3);
  line-height: 1.3;
}
.dashboard-metric-split {
  height: 1px;
  background: var(--border);
  margin: 0.65rem 0 0.5rem;
}
.dashboard-metric-label--secondary {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  opacity: 0.9;
}
.dashboard-metric-value--secondary {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.15rem;
  color: var(--color-secondary, #f5c518);
}
.dashboard-metric-card--revenue .dashboard-metric-value {
  margin-bottom: 0.15rem;
}
.dashboard-revenue-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}
.dashboard-revenue-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-2);
}
.dashboard-revenue-row strong {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

/* Všetkých 5 KPI v jednom riadku — legacy (ak ešte niekde zostane) */
.dashboard-metrics-grid--row5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}
.dashboard-metrics-grid--row5 .dashboard-metric-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}
.dashboard-metrics-grid--row5 .dashboard-metric-card--accent {
  /* override inline layout z .dashboard-metric-card--accent */
  display: flex;
  grid-template-columns: none;
}
.dashboard-metrics-grid--row5 .dashboard-metric-label {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.dashboard-metrics-grid--row5 .dashboard-metric-value {
  font-size: 1.6rem;
  line-height: 1.05;
}
.dashboard-metrics-grid--row5 .dashboard-metric-value-small {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
.dashboard-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}
.dashboard-metric-card--accent {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), rgba(245, 158, 11, 0.02));
  border-color: rgba(245, 158, 11, 0.28);
  /* „Najlepšie" karty sú kompaktnejšie — label + value vedľa seba,
     menšie písmo, ústrižok label cez border. */
  padding: 0.45rem 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
}
.dashboard-metric-card--accent .dashboard-metric-label {
  color: #f59e0b;
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(245, 158, 11, 0.25);
  padding-right: 0.6rem;
  align-self: center;
}
.dashboard-metric-card--accent .dashboard-metric-value-small {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.dashboard-metric-label {
  font-size: 0.75rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}
.dashboard-metric-value {
  font-size: 1.4rem;
  font-weight: 900;
}
.dashboard-metric-value-small {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}
.dashboard-chart-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}
.dashboard-chart-grid--triple {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 1100px) {
  .dashboard-chart-grid--triple { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .dashboard-chart-grid--triple { grid-template-columns: 1fr; }
}

/* 3-stĺpcový rad koláčov: karty zarovnané do rovnakej výšky, obsah od vrchu */
.dashboard-chart-card--pie {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.dashboard-chart-card--pie > .dashboard-metric-label {
  min-height: 1.3rem;
  margin-bottom: 0.5rem;
}
.dashboard-chart-card--pie > .dashboard-pie-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Compact pie layout — graf hore vycentrovaný, legenda pod ním (pre 3-stĺpcový rad) */
.dashboard-pie-compact .dashboard-pie-layout {
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
}
.dashboard-pie-compact .dashboard-pie-chart {
  max-width: 180px;
}
.dashboard-pie-compact .dashboard-pie-legend {
  gap: 0.3rem;
  min-width: 0;
}
.dashboard-pie-compact .dashboard-pie-legend-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0.3rem 0.45rem;
  gap: 0.35rem;
}
.dashboard-pie-compact .dashboard-pie-dot {
  flex-shrink: 0;
}
.dashboard-pie-compact .dashboard-pie-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}
.dashboard-pie-compact .dashboard-pie-value,
.dashboard-pie-compact .dashboard-pie-percent {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.7rem;
}
.dashboard-pie-compact .dashboard-pie-tabs {
  flex-wrap: wrap;
}

/* Prepínače obdobia (Tento/Minulý + custom picker) — 2-stĺpcová mriežka */
.dashboard-period-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.55rem 0 0.7rem;
  align-items: stretch;
}
.dashboard-period-controls .pay-filter-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  padding: 0.45rem 0.5rem;
  min-height: 38px;
}
.dashboard-period-picker-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
}
.dashboard-period-picker-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dashboard-period-controls .dashboard-period-picker,
.dashboard-period-controls input[type="week"] {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  box-sizing: border-box;
}
.dashboard-period-picker--month,
.dashboard-period-picker--year {
  min-width: 0;
}
.dashboard-period-picker {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color-scheme: dark;
}
.dashboard-period-picker:hover {
  border-color: var(--border-light);
  background: var(--surface-3, var(--surface-2));
}
select.dashboard-period-picker {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  padding-right: 1.3rem;
}
.dashboard-period-picker--month { min-width: 0; }
.dashboard-period-picker--year { min-width: 0; }
/* Aktívny stav v controls (preset tlačidlá aj selecty) — len červený okraj, nič iné */
.dashboard-period-controls .pay-filter-btn.active,
.dashboard-period-picker.is-active {
  border-color: var(--brand, #ef4444);
  background: transparent;
  color: var(--text);
}

/* Mesačný graf — kalendárový bar chart */
.dashboard-month-wrap {
  margin-top: 0.45rem;
  min-width: 0;
  max-width: 100%;
}
/* Kalendárový layout — 7 stĺpcov (Po–Ne), riadky tvoria týždne */
.dashboard-month-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
}
.dashboard-month-weekday-header {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-align: center;
  padding: 0.25rem 0 0.35rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-month-weekday-header.is-weekend {
  color: #ef4444;
}
.dashboard-month-cell {
  position: relative;
  min-height: 64px;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0.35rem 0.4rem 0.3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  overflow: hidden;
  transition: filter var(--transition), border-color var(--transition);
}
.dashboard-month-cell:hover {
  filter: brightness(1.15);
  border-color: var(--border-light);
}
.dashboard-month-cell--empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}
.dashboard-month-cell--has-data {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.3);
}
.dashboard-month-cell--has-data.is-revenue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.05));
  border-color: rgba(37, 99, 235, 0.3);
}
.dashboard-month-cell--today {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}
.dashboard-month-cell-head {
  display: flex;
  justify-content: flex-end;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.dashboard-month-cell.is-weekend .dashboard-month-cell-head {
  color: #ef4444;
}
.dashboard-month-cell-value {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  line-height: 1.1;
  margin-top: 0.2rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-month-cell-value-empty {
  color: var(--text-2);
  opacity: 0.4;
  font-weight: 500;
  font-size: 0.75rem;
}
.dashboard-month-cell-bar {
  height: 4px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.7);
  margin-top: 0.3rem;
  transition: width var(--transition);
}
.dashboard-month-cell-bar.is-revenue {
  background: rgba(37, 99, 235, 0.75);
}
.dashboard-month-cell-bar.is-empty {
  background: var(--border);
  opacity: 0.3;
}
.dashboard-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.dashboard-chart-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}
.dashboard-weekday-toggle {
  display: inline-flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.dashboard-weekday-toggle .pay-filter-btn {
  font-size: 0.72rem;
  padding: 0.28rem 0.72rem;
}
.dashboard-product-mix-wrap {
  margin-top: 0.45rem;
}
.dashboard-pie-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.dashboard-pie-tabs .pay-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dashboard-pie-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.dashboard-pie-tabs .pay-filter-btn.active .dashboard-pie-tab-count {
  background: rgba(0, 0, 0, 0.25);
}
/* Otváracie hodiny editor — kompaktný „table-like" layout */
.opening-hours-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0.6rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
}
.opening-hours-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.3rem 0.65rem;
  background: var(--surface-2);
  min-height: 32px;
  transition: background var(--transition);
}
.opening-hours-row:hover {
  background: var(--surface-3, rgba(255,255,255,0.04));
}
.opening-hours-day-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
}
.opening-hours-day-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
  cursor: pointer;
  margin: 0;
}
.opening-hours-day-label {
  font-weight: 600;
  font-size: 0.85rem;
}
/* Riadok ktorý je „zatvorený" sa zjemní — vidno na prvý pohľad ktoré dni sú off */
.opening-hours-row:not(:has(.opening-hours-open:checked)) .opening-hours-day-label,
.opening-hours-row:not(:has(.opening-hours-open:checked)) .opening-hours-times {
  opacity: 0.45;
}
.opening-hours-times {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.opening-hours-times label {
  display: none; /* „Od" / „Do" je zbytočné, čas+pomlčka je intuitívne */
}
.opening-hours-times input[type="time"] {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.18rem 0.4rem;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  width: 5.5rem;
}
.opening-hours-times input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.55;
  cursor: pointer;
}
.opening-hours-times::before {
  /* pomlčka medzi Od a Do — pridáva sa cez CSS aby HTML zostalo čisté */
  content: '–';
  order: 2;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.85rem;
}
.opening-hours-times input[type="time"]:first-of-type { order: 1; }
.opening-hours-times input[type="time"]:last-of-type  { order: 3; }

.opening-hours-auto-row {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.opening-hours-auto-label--nested {
  margin-left: 1.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.opening-hours-auto-label--nested.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.opening-hours-auto-label--nested.is-disabled input[type="checkbox"] {
  cursor: not-allowed;
}
/* Override .settings-card label uppercase pre náš editor —
   day labely a auto checkbox musia byť normálnym písmom. */
.settings-card .opening-hours-day-toggle,
.settings-card .opening-hours-auto-label {
  display: grid;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 0;
}
.settings-card .opening-hours-day-toggle {
  display: flex;
  font-size: 0.85rem;
  font-weight: 600;
}
.opening-hours-auto-label {
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  cursor: pointer;
}
.opening-hours-auto-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.opening-hours-auto-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.2rem;
  line-height: 1.35;
}
.opening-hours-auto-desc {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0;
}

.dashboard-fries-summary {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.dashboard-fries-summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}
.dashboard-fries-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.dashboard-fries-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
}
.dashboard-fries-chip-name {
  font-weight: 600;
}
.dashboard-fries-chip-qty {
  color: var(--text-2);
}
.dashboard-fries-chip-pct {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.dashboard-pie-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: center;
  gap: 1rem;
}
.dashboard-pie-chart-wrap {
  display: flex;
  justify-content: center;
}
.dashboard-pie-chart {
  width: 100%;
  max-width: 260px;
  height: auto;
}
.dashboard-pie-segment {
  transition: opacity var(--transition), transform var(--transition), filter var(--transition);
  transform-origin: 100px 100px;
}
.dashboard-pie-segment.is-active {
  filter: brightness(1.1);
}
.dashboard-pie-segment.is-muted {
  opacity: 0.33;
}
.dashboard-pie-center-num {
  fill: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
}
.dashboard-pie-center-label {
  fill: var(--text-2);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}
.dashboard-pie-legend {
  display: grid;
  gap: 0.35rem;
}
.dashboard-pie-legend-item {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  transition: border-color var(--transition), background var(--transition), opacity var(--transition);
}
.dashboard-pie-legend-item:hover,
.dashboard-pie-legend-item.is-active {
  border-color: var(--border-light);
  background: var(--surface-3);
}
.dashboard-pie-legend-item.is-muted {
  opacity: 0.45;
}
.dashboard-pie-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dashboard-pie-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
}
.dashboard-pie-value {
  font-size: 0.75rem;
  color: var(--text-2);
}
.dashboard-pie-percent {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
}
.dashboard-weekday-wrap {
  margin-top: 0.45rem;
  min-width: 0;
  max-width: 100%;
}
.dashboard-weekday-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: end;
  min-height: 225px;
  width: 100%;
}
.dashboard-weekday-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.dashboard-weekday-value {
  font-size: 0.74rem;
  color: var(--text-2);
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.dashboard-weekday-bar-track {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(to top, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.03));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.dashboard-weekday-bar-fill {
  width: 100%;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(to top, #ef4444, #f87171);
  transition: height var(--transition), filter var(--transition);
}
.dashboard-weekday-bar-fill.is-revenue {
  background: linear-gradient(to top, #2563eb, #60a5fa);
}
.dashboard-weekday-col:hover .dashboard-weekday-bar-fill {
  filter: brightness(1.08);
}
.dashboard-weekday-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text);
}

.dashboard-by-day-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.4rem 0 0.7rem;
}
.dashboard-range-buttons {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Per-day chart — horizontálne scrollovateľný, šírka stĺpca prispôsobená počtu dní */
.dashboard-by-day-wrap {
  margin-top: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.dashboard-by-day-chart {
  display: flex;
  gap: 0.3rem;
  align-items: end;
  min-height: 180px;
  padding-bottom: 0.3rem;
}
.dashboard-by-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 30px;
  flex: 1 0 30px;
}
.dashboard-by-day-value {
  font-size: 0.65rem;
  color: var(--text-2);
  font-weight: 700;
  min-height: 1em;
  white-space: nowrap;
}
.dashboard-by-day-bar-track {
  width: 100%;
  height: 130px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(to top, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.dashboard-by-day-bar-fill {
  width: 100%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(to top, #ef4444, #f87171);
  transition: height var(--transition), filter var(--transition);
  min-height: 1px;
}
.dashboard-by-day-bar-fill.is-revenue {
  background: linear-gradient(to top, #2563eb, #60a5fa);
}
.dashboard-by-day-col:hover .dashboard-by-day-bar-fill {
  filter: brightness(1.12);
}
.dashboard-by-day-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: top right;
  margin-top: 0.25rem;
  height: 32px;
}

/* ─── Products Admin Table ───────────────────────────────────────────────────── */
.products-admin-list { display: flex; flex-direction: column; gap: 0.5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-2); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border); }
.products-category-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.65rem;
}
.products-category-title {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-light);
  margin: 0 0 0.45rem;
  padding: 0 0.3rem;
}
.add-product-to-category-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.4rem; padding: 0.4rem 0.9rem;
  background: none; border: 1.5px dashed var(--border-light, rgba(255,255,255,0.15));
  border-radius: 8px; color: var(--text-3); font-size: 0.78rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.add-product-to-category-btn:hover {
  border-color: var(--red); color: var(--red); background: var(--red-dim, rgba(220,38,38,0.06));
}

.products-table-header,
.products-table-row {
  display: grid;
  grid-template-columns: 2.8fr 1fr 0.9fr 0.9fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}
.products-table-header {
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.products-table-row {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.products-table-row:hover { border-color: var(--border-light); }

.payments-live-hint { display: none; }

/* ── Filter tlačidlá ── */
.payments-type-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

/* ── Zoznam: jeden stĺpec (riadky) ── */
.payments-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Karta ── */
.payment-card {
  position: relative;
  background: var(--surface-2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.payment-card:hover {
  box-shadow: 0 3px 14px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
/* Farebná linka + svetlý tint pozadia podľa typu */
.payment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
}
.payment-type-stripe  { background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.35); }
.payment-type-stripe-incomplete { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.42); }
.payment-type-stripe-failed { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.42); }
.payment-type-stripe-canceled { background: rgba(148,163,184,0.1); border-color: rgba(148,163,184,0.45); }
.payment-type-qr      { background: rgba(34,197,94,0.07);  border-color: rgba(34,197,94,0.35); }
.payment-type-refund  { background: rgba(239,68,68,0.07);  border-color: rgba(239,68,68,0.35); }
.payment-type-stripe::before  { background: #3b82f6; }
.payment-type-stripe-incomplete::before { background: #f59e0b; }
.payment-type-stripe-failed::before { background: #ef4444; }
.payment-type-stripe-canceled::before { background: #94a3b8; }
.payment-type-qr::before      { background: #22c55e; }
.payment-type-refund::before  { background: #ef4444; }
[data-theme="light"] .payment-type-stripe  { background: rgba(59,130,246,0.05); border-color: rgba(59,130,246,0.3); }
[data-theme="light"] .payment-type-qr      { background: rgba(34,197,94,0.05);  border-color: rgba(34,197,94,0.3); }
[data-theme="light"] .payment-type-refund  { background: rgba(239,68,68,0.05);  border-color: rgba(239,68,68,0.3); }

/* ── Hlavný riadok karty: ľavá časť + pravá časť ── */
.pc-main-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid var(--border);
}
.pc-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}
.pc-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}
.pc-right-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Info tlačidlo pre telo e-mailu */
.pc-email-toggle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  padding: 0;
}
.pc-email-toggle:hover { background: var(--border-light); color: var(--text); }
.pc-email-toggle.is-active { background: rgba(59,130,246,0.2); border-color: #3b82f6; color: #60a5fa; }
.pc-subject {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-sender {
  font-size: 0.75rem;
  color: var(--text-2);
  width: 100%;
}
.pc-sender-link {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}
.pc-sender-link:hover { color: var(--text); text-decoration: underline; }
/* Klikateľný link na objednávku */
.pc-order-link {
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
  transition: opacity 0.15s;
}
.pc-order-link:hover { opacity: 0.8; }

/* Stripe refund info v cancel modáli */
.cancel-stripe-note {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}
[data-theme="light"] .cancel-stripe-note {
  background: #dbeafe;
  border-color: #93c5fd;
}
/* Telo emailu — kompaktné, rozbaľovateľné */
.pc-body-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-top: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pc-body-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.pc-body-text {
  font-size: 0.78rem;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
/* Zachovaj staré .payment-card-top pre kompatibilitu */
.payment-card-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.payment-card-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface-3);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .pc-main-row { flex-direction: column; gap: 0.4rem; }
  .pc-right { flex-direction: row; align-items: center; gap: 0.75rem; }
}

/* ── Legenda farieb nad zoznamom platieb ── */
.payments-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  margin: 0.55rem 0 0.9rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text-2);
}
.payments-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.3;
}
.payments-legend-item .payment-type-badge {
  pointer-events: none;
}
@media (max-width: 640px) {
  .payments-legend { gap: 0.5rem 0.85rem; font-size: 0.72rem; padding: 0.45rem 0.6rem; }
}

/* ── Typ badge ── */
.payment-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.payment-type-stripe-badge { background: rgba(59,130,246,0.15); color: #60a5fa; border-color: rgba(59,130,246,0.3); }
.payment-type-stripe-incomplete-badge { background: rgba(245,158,11,0.18); color: #fbbf24; border-color: rgba(245,158,11,0.35); }
.payment-type-stripe-failed-badge { background: rgba(239,68,68,0.18); color: #f87171; border-color: rgba(239,68,68,0.35); }
.payment-type-stripe-canceled-badge { background: rgba(148,163,184,0.18); color: #cbd5e1; border-color: rgba(148,163,184,0.35); }
.payment-type-qr-badge     { background: rgba(34,197,94,0.15);  color: #4ade80; border-color: rgba(34,197,94,0.3); }
.payment-type-refund-badge { background: rgba(239,68,68,0.15);  color: #f87171; border-color: rgba(239,68,68,0.3); }
[data-theme="light"] .payment-type-stripe-badge { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
[data-theme="light"] .payment-type-qr-badge     { background: #dcfce7; color: #15803d; border-color: #86efac; }
[data-theme="light"] .payment-type-refund-badge { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

/* ── Suma — zelená/červená podľa znamienka ── */
.payment-card-sum {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-2);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.payment-card-sum:hover { text-decoration: underline dotted; }
.payment-card-sum.is-positive { color: #22c55e; }
.payment-card-sum.is-negative { color: #ef4444; }
.payment-card-sum.is-pending { color: #f59e0b; }

.payments-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-2);
  font-size: 0.82rem;
  max-width: 52rem;
  line-height: 1.45;
}
.payments-sync-note {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.08);
  color: var(--text-2);
  font-size: 0.8rem;
}
.pc-stripe-detail {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.4;
}
.pc-stripe-note {
  color: var(--text-2);
}
.pc-stripe-code {
  opacity: 0.85;
}
.pc-stripe-pi {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.payment-card-date {
  font-size: 0.72rem;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Polia ── */
.payment-card-field { margin-bottom: 0.5rem; }
.payment-card-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-bottom: 0.15rem;
}
.payment-card-body-text {
  white-space: pre-wrap;
  font-size: 0.8rem;
  line-height: 1.45;
  max-height: 8rem;
  overflow-y: auto;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ── Focus banner ── */
.payment-focus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(220,38,38,.1);
  border: 1px solid rgba(220,38,38,.3);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}
.payment-focus-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  transition: border-color var(--transition);
  white-space: nowrap;
}
.payment-focus-clear:hover { border-color: var(--red); color: var(--red-light); }

/* ── Pair riadok ── */
.payment-pair-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.payment-pair-row--paired { border-bottom: none; }
.payment-pair-row--edit { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px dashed var(--border); }
.payment-pair-row--vs-match { flex-direction: column; align-items: flex-start; }
.payment-pair-row--vs-match > div,
.payment-pair-row--vs-match select { width: 100%; }
.vs-match-hint { font-size: 0.75rem; font-weight: 600; color: #22c55e; margin-bottom: 0.3rem; }
.payment-pair-row select {
  flex: 1;
  min-width: 180px;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
}

/* ── Edit suma ── */
.payment-amount-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.3rem 0 0.5rem;
}
.amount-edit-input {
  width: 110px;
  padding: 0.38rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--red);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

/* VS hint */
.vs-match-hint { font-size: 0.75rem; font-weight: 600; color: #22c55e; margin-bottom: 0.3rem; }

/* ── Mobil ── */
@media (max-width: 700px) {
  .payment-card-top { flex-wrap: wrap; }
  .payment-card-date { width: 100%; order: 5; font-size: 0.68rem; }
  .payment-card-sum { margin-left: 0; }
}

.product-cell-name { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.product-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--border);
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-name-text { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-desc-text { font-size: 0.75rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.category-tag {
  display: inline-block;
  background: var(--red-dim);
  color: var(--red-light);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.price-text { font-weight: 700; font-size: 0.95rem; }

.order-controls { display: flex; align-items: center; gap: 0.4rem; }
.order-btn {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.order-btn:hover:not(:disabled) { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.order-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.order-controls span { font-size: 0.8rem; font-weight: 600; color: var(--text-2); min-width: 20px; text-align: center; }

.action-btns { display: flex; gap: 0.4rem; }

/* ─── Status Badges ──────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block;
  padding: 0.36rem 0.82rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.status-active { background: var(--success-dim); color: var(--success); }
.status-inactive { background: var(--surface-3); color: var(--text-3); }
.status-paid { background: #16a34a; color: #ffffff; border: 1px solid #15803d; }
.status-qr-pending { background: #d97706; color: #ffffff; border: 1px solid #b45309; }
.status-payment-stuck {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #991b1b;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
  animation: stuck-pulse 1.6s ease-in-out infinite;
}
@keyframes stuck-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.45); }
}
.status-cod { background: #2563eb; color: #ffffff; border: 1px solid #1d4ed8; box-shadow: 0 2px 4px rgba(37, 99, 235, 0.45); }
.status-delivery { background: #1d4ed8; color: #ffffff; border: 1px solid #1e40af; }
.status-pickup { background: #9333ea; color: #ffffff; border: 1px solid #7e22ce; }
.status-dine-on-site { background: #0d9488; color: #ffffff; border: 1px solid #0f766e; }
.status-dine-takeaway { background: #ea580c; color: #ffffff; border: 1px solid #c2410c; }

/* Krátky highlight cart panelu po stlačení „Prejsť do košíka" na desktope */
.cart-panel.flash-highlight {
  box-shadow: 0 0 0 3px var(--red), 0 0 32px var(--red-glow);
  transition: box-shadow 200ms ease-out;
}
.status-fulfilled { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.status-waiting { background: #d97706; color: #ffffff; border: 1px solid #b45309; }
.status-confirmed { background: #16a34a; color: #ffffff; border: 1px solid #15803d; }
.status-courier { background: #0e7490; color: #ffffff; border: 1px solid #155e75; }
.status-delivered { background: #059669; color: #ffffff; border: 1px solid #047857; }
.status-cancelled { background: #dc2626; color: #ffffff; border: 1px solid #b91c1c; }
.status-scheduled { background: #7c3aed; color: #ffffff; border: 1px solid #6d28d9; }

/* ── Naplánovaná objednávka — výrazné zvýraznenie ──────────────────────── */
.order-card.is-scheduled {
  border-left: 5px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
}
.scheduled-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  padding: 0.65rem 1rem;
  margin: 0 -1rem;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.scheduled-banner .scheduled-icon {
  font-size: 1.3rem;
}
.scheduled-banner .scheduled-warning {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}

/* Pulzovanie ak sa blíži čas (< 30 min) */
.scheduled-banner.is-soon {
  animation: scheduled-pulse 1.8s ease-in-out infinite;
}
@keyframes scheduled-pulse {
  0%, 100% { background: linear-gradient(90deg, #f59e0b, #d97706); }
  50% { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 0 12px rgba(245, 158, 11, 0.5); }
}

/* ─── Orders sub-tabs ────────────────────────────────────────────────────────── */
.orders-subtabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.orders-subtab {
  background: transparent;
  color: var(--text-2);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1.125rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -1px;
}
.orders-subtab:hover { color: var(--text); }
.orders-subtab.active { color: var(--red-light); border-bottom-color: var(--red); }

.subtab-count {
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.orders-subtab.active .subtab-count { background: var(--red-dim); color: var(--red-light); }

/* ─── Orders Search + Filter row ────────────────────────────────────────────── */
.orders-filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.orders-filter-row .orders-search-input { flex: 1; min-width: 180px; margin-bottom: 0; }
.orders-search-bar { margin-bottom: 1rem; }
.orders-search-input {
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.4rem;
  border-radius: var(--radius);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.415l-3.868-3.833zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 0.75rem center;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.orders-search-input:focus {
  outline: none;
  border-color: var(--red);
}
.orders-search-input::placeholder { color: var(--text-2); }

/* ─── Pay filter toggle ──────────────────────────────────────────────────────── */
.orders-pay-filter {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
.orders-status-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: -0.2rem 0 1rem;
}
.completed-orders-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.2rem 0 1rem;
  flex-wrap: wrap;
}
.completed-orders-scope {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.completed-orders-filters {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.completed-orders-filter-group {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
}
.completed-orders-filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.completed-orders-filter-group .variant-select,
.completed-orders-filter-group input[type="date"],
.completed-orders-filter-group .completed-orders-date-input {
  min-width: 9rem;
  max-width: 11rem;
  width: 10.5rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.completed-orders-filter-group .completed-orders-date-input::placeholder {
  color: var(--text-2);
  font-weight: 500;
}
.completed-orders-filter-group .completed-orders-date-input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}
.completed-orders-filter-group .completed-orders-date-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
[data-theme="light"] .completed-orders-filter-group .completed-orders-date-input:hover {
  border-color: rgba(0, 0, 0, 0.25);
}
.completed-orders-custom-range {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.completed-orders-meta {
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
}
.order-actions-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: stretch;
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
}
.order-actions-grid .btn-kitchen {
  flex: 1 1 0;
  min-width: 0;
  padding: 1rem 0.7rem !important;
  font-size: 0.95rem !important;
  min-height: 3.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.customer-messages-log {
  margin-top: 0.35rem;
}
.customer-msg-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.customer-msg-list li {
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.customer-msg-time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.35rem;
}
.customer-msg-by {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.35rem;
}
.customer-msg-text {
  display: block;
  margin-top: 0.2rem;
  white-space: pre-wrap;
}
.orders-status-filter .pay-filter-btn {
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  min-height: 40px;
}
.pay-filter-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}
.pay-filter-btn:hover { color: var(--text); border-color: var(--text-2); }
.pay-filter-btn.active { background: var(--surface-3); color: var(--text); border-color: var(--text-2); }
.pay-filter-btn.active[data-pay="all"]    { background: var(--surface-3); color: var(--text); border-color: var(--text-2); }
.pay-filter-btn.active[data-pay="paid"]   { background: rgba(34,197,94,.15); color: #22c55e; border-color: #22c55e; }
.pay-filter-btn.active[data-pay="unpaid"] { background: rgba(245,158,11,.15); color: #f59e0b; border-color: #f59e0b; }
.orders-status-filter .pay-filter-btn.active[data-order-status="all"] {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1e40af;
}
.orders-status-filter .pay-filter-btn.active[data-order-status="pending"] {
  background: #b45309;
  color: #ffffff;
  border-color: #92400e;
}
.orders-status-filter .pay-filter-btn.active[data-order-status="confirmed"] {
  background: #15803d;
  color: #ffffff;
  border-color: #166534;
}
.orders-status-filter .pay-filter-btn.active[data-order-status="out_for_delivery"] {
  background: #7c3aed;
  color: #ffffff;
  border-color: #6d28d9;
}

/* ─── Orders List ────────────────────────────────────────────────────────────── */
.orders-list { display: flex; flex-direction: column; gap: 2.5rem; }

.order-card {
  background: var(--surface);
  border: 3px solid #ef4444;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.order-card.is-unpaid {
  border-color: #ef4444 !important;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.24), inset 0 0 0 2px rgba(239, 68, 68, 0.55);
}
.order-card.is-paid {
  border-color: #16a34a !important;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.24), inset 0 0 0 2px rgba(22, 163, 74, 0.55);
}
/* Ukončené objednávky: žiadne tlmenie (predtým opacity: 0.6 — v prehľade
   to mätlo, lebo karty vyzerali ako keby boli vypnuté). Vizuálne ich
   odlišuje stav badge a farba okraja podľa zaplatenia. */
.order-card.is-fulfilled { opacity: 1; }
.order-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 0.2rem;
  white-space: nowrap;
}
.order-countdown-label {
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.64rem;
}
.order-countdown-value {
  font-size: 0.82rem;
  font-weight: 900;
}
.order-countdown.is-ok {
  background: #16a34a;
  border-color: #166534;
  color: #ffffff;
}
.order-countdown.is-warn {
  background: #f59e0b;
  border-color: #b45309;
  color: #111111;
}
.order-countdown.is-danger {
  background: #ef4444;
  border-color: #b91c1c;
  color: #ffffff;
  animation: orderCountdownBlink 1s ease-in-out infinite;
}
@keyframes orderCountdownBlink {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.25); }
  50% { filter: brightness(1.14); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: var(--surface-3); /* Ešte výraznejšie pozadie hlavičky */
  border-bottom: 3px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.order-card-id { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.order-card-id span { color: var(--red); }
.order-card-vs { font-size: 0.75rem; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,0.07); border-radius: 4px; padding: 1px 6px; letter-spacing: 0.03em; }
.order-card-date { font-size: 0.8rem; color: var(--text-2); }
.order-card-badges { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.order-card-badges .status-badge {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-kitchen {
  padding: 1.25rem 2.25rem !important; /* Obrovské tlačidlá */
  font-size: 1.15rem !important;       /* Veľký text */
  font-weight: 800 !important;        /* Extra tučné */
  min-height: 4.5rem;                 /* Vysoký terč pre prsty */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 2px !important;       /* Hrubší okraj */
  background: #ffffff !important;      /* Biele pozadie pre max kontrast */
  color: #000000 !important;           /* Sýte čierne písmo podľa požiadavky */
  border-color: #000000 !important;    /* Čierny okraj */
  transition: filter 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.btn-kitchen .btn-kitchen-svg-icon {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}
.btn-contact-customer {
  gap: 0.65rem;
}
.btn-kitchen-success {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #166534 !important;
}
.btn-kitchen-bordered {
  border: 3px solid rgba(255,255,255,0.95) !important;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.22) inset;
}
.btn-kitchen-eta {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.7rem;
  cursor: pointer;
}
.btn-kitchen-eta:hover {
  border-color: var(--red);
  color: var(--red-light);
}
.order-eta-choices {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.order-eta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem;
}
.order-eta-inline span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
}
.order-eta-inline input {
  width: 78px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  padding: 0 0.45rem;
  font-weight: 700;
}
.order-eta-inline .btn-kitchen-eta {
  margin-left: 0.15rem;
}
.eta-modal {
  max-width: 640px;
}
.eta-modal .modal-header {
  padding: 1.25rem 1.5rem 1rem;
}
.eta-modal-body {
  padding: 1.35rem 1.5rem 1.15rem;
  gap: 0.95rem;
}
.eta-modal-ref {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.eta-modal-help {
  margin: 0;
  font-size: 0.97rem;
  color: var(--text-2);
  line-height: 1.45;
}
.eta-modal-presets {
  margin-top: 0.15rem;
}
.eta-modal-custom {
  margin-top: 0.15rem;
  width: fit-content;
}
.eta-modal .modal-footer {
  padding: 1rem 1.5rem 1.2rem;
}

/* ─── Customer message modal ─────────────────────────────────────────────── */
.customer-message-modal {
  max-width: 620px;
}
.customer-message-modal .modal-header {
  padding: 1.35rem 1.5rem 1.1rem;
}
.cm-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.cm-modal-title h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.cm-modal-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
  color: var(--accent);
  flex-shrink: 0;
}
.cm-modal-title-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.customer-message-body {
  padding: 1.25rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cm-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.cm-order-ref {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.cm-order-email {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}
.cm-order-email:empty {
  display: none;
}
.cm-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}
.cm-section-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.cm-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.cm-preset-btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cm-preset-btn:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  transform: translateY(-1px);
}
.cm-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cm-textarea-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}
.cm-textarea {
  width: 100%;
  min-height: 9.5rem;
  resize: vertical;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 1rem 1.05rem;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cm-textarea::placeholder {
  color: var(--text-2);
  opacity: 0.85;
  font-size: 1.02rem;
  line-height: 1.5;
}
.cm-textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.cm-char-count {
  align-self: flex-end;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}
.cm-char-count.is-near-limit {
  color: var(--amber, #d97706);
}
.cm-modal-footer {
  padding: 1rem 1.5rem 1.25rem;
  gap: 0.75rem;
}
.cm-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding-left: 1.15rem;
  padding-right: 1.25rem;
  font-size: 1rem;
  font-weight: 800;
}
.cm-send-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.order-card-footer .btn-kitchen:hover {
  filter: brightness(0.88);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.order-card-body { padding: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.order-info-section h4 { font-size: 0.8rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.order-info-row { font-size: 1rem; color: var(--text); line-height: 1.75; }
.order-info-row strong { color: var(--text-2); font-weight: 400; }
.customer-order-count {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
  line-height: 1.3;
}
.customer-order-count.is-new {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}
[data-theme="light"] .customer-order-count {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
[data-theme="light"] .customer-order-count.is-new {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

/* Tap-to-call link na telefónne číslo (kuriér klikne → otvorí sa volanie) */
.tel-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tel-link:hover, .tel-link:focus { color: #fff; text-decoration: none; }
.map-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.map-link svg { flex-shrink: 0; opacity: 0.85; }
.map-link:hover, .map-link:focus { color: #fff; text-decoration: none; }
.map-link:hover svg, .map-link:focus svg { opacity: 1; }
.order-inline-action {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.order-inline-action:hover {
  color: var(--text);
}

/* ─── Pending Orders Hero Counter ─── */
.pending-orders-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(239, 68, 68, 0.1); /* Jemné červené pozadie */
  border: 2px solid rgba(239, 68, 68, 0.2);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-left: 0;
  animation: pulse-border 2s infinite;
}
.pending-orders-hero.is-empty {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
  animation: none;
}
.pending-orders-hero.is-empty .pending-hero-count {
  color: #94a3b8;
}
.pending-hero-count {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ef4444; /* Sýta červená */
  line-height: 1;
}
.pending-hero-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 100px;
  line-height: 1.2;
}
@keyframes pulse-border {
  0% { border-color: rgba(239, 68, 68, 0.2); }
  50% { border-color: rgba(239, 68, 68, 0.5); }
  100% { border-color: rgba(239, 68, 68, 0.2); }
}

.order-items-list { display: flex; flex-direction: column; gap: 0.35rem; }
.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-name { font-weight: 500; }
.order-item-qty-num { font-size: 1.35rem; font-weight: 800; color: #f59e0b; margin-right: 0.15rem; }
.order-item-price { color: var(--text-2); font-size: 0.9rem; white-space: nowrap; margin-left: 0.75rem; }
.order-item-price strong { color: var(--text); }

.order-card-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.order-total-label { font-size: 0.85rem; color: var(--text-2); }
.order-total-value { font-size: 1.3rem; font-weight: 800; color: var(--red-light); }
.order-footer-totals {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
  flex-wrap: wrap;
}
/* Uhradené blok */
.order-uhr-block { display: flex; flex-direction: column; gap: 0.3rem; min-width: 180px; }
.uhr-total-sum { font-weight: 700; margin-left: 0.35rem; }
.uhr-none  .uhr-total-sum { color: var(--text-2); }
.uhr-partial .uhr-total-sum { color: #f59e0b; }
.uhr-full  .uhr-total-sum { color: #22c55e; }
.uhr-diff { font-size: 0.72rem; font-weight: 500; color: var(--text-2); margin-left: 0.25rem; }
.uhr-over  { color: #f59e0b !important; }
.uhr-payments-list { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.1rem; }
.uhr-payment-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  text-align: left;
  width: 100%;
}
.uhr-payment-row:hover { border-color: var(--red); background: var(--surface-2); }
.uhr-row-date { color: var(--text-2); flex: 1; }
.uhr-row-amount { font-weight: 700; }
.uhr-full .uhr-row-amount { color: #22c55e; }
.uhr-partial .uhr-row-amount { color: #f59e0b; }
.uhr-row-arrow { color: var(--red-light); font-size: 0.75rem; }
.uhr-row-empty { font-size: 0.78rem; color: var(--text-2); }
/* Zvýraznenie platby po presmerovaní */
@keyframes highlightPulse {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.6); }
  60%  { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.highlight-pulse { animation: highlightPulse 1.2s ease 2; }

/* ─── Settings save button states ───────────────────────────────────────────── */
.btn-settings-saved {
  background: var(--surface-3) !important;
  color: var(--text-3) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default;
  border: 1px solid var(--border);
}
.btn-settings-saved:hover {
  background: var(--surface-3) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ─── Settings ───────────────────────────────────────────────────────────────── */
.settings-container {
  max-width: 1040px;
  margin: 0 auto;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1023px) {
  .delivery-zone-row {
    grid-template-columns: 1fr;
  }
  .delivery-zones-actions {
    justify-content: flex-start;
  }
}

.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h3 { 
  font-family: var(--font-display);
  font-size: 1.1rem; 
  font-weight: 800; 
  margin-bottom: 1rem; 
  color: var(--text); 
  letter-spacing: -0.02em;
}
.settings-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.settings-card form { 
  display: flex; 
  flex-direction: column; 
  gap: 1.25rem; 
  flex: 1;
  align-items: flex-start; /* Toto zabezpečí, že tlačidlá sa neroztiahnu */
}

/* Zabezpečíme aby inputy v rámci formu zostali na 100% */
.settings-card .form-group,
.settings-card .form-grid {
  width: 100%;
}

/* Ručný QR: tlačidlo v jednom riadku s poľami (label + input ako ostatné stĺpce) */
.form-grid.standalone-qr-row {
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: start;
}
.form-grid.standalone-qr-row .form-group {
  margin-bottom: 0;
}
.form-grid.standalone-qr-row .standalone-qr-actions-label {
  visibility: hidden;
  line-height: 1.25;
}
.form-grid.standalone-qr-row .standalone-qr-generate-col .btn-primary {
  white-space: nowrap;
}

/* Premium Form Elements */
.settings-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.settings-card input, 
.settings-card select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.settings-card input:focus,
.settings-card select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface-3);
  box-shadow: 0 0 0 4px var(--red-dim);
}
.settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 10px;
}
.settings-toggle-row .variant-select {
  min-width: 110px; text-align: center; font-weight: 700;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.settings-toggle-row .variant-select.is-on {
  background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.5); color: #22c55e;
}
.settings-toggle-row .variant-select.is-off {
  background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.4); color: #ef4444;
}
[data-theme="light"] .settings-toggle-row .variant-select.is-on {
  background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.4); color: #16a34a;
}
[data-theme="light"] .settings-toggle-row .variant-select.is-off {
  background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); color: #dc2626;
}
.settings-toggle-row span {
  font-size: 0.95rem;
  color: var(--text);
}
.delivery-zones-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.delivery-zone-row {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 140px 1.4fr 0.9fr 1fr auto;
  gap: 0.55rem;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.delivery-zone-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}
.delivery-zone-row.is-active {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.08) inset;
}
.delivery-zone-row.is-active::before {
  background: #22c55e;
}
.delivery-zone-row.is-inactive {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08) inset;
}
.delivery-zone-row.is-inactive::before {
  background: #ef4444;
}
.delivery-zone-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}
.delivery-zone-switch input {
  width: 16px !important;
  height: 16px;
  accent-color: #3b82f6;
}
.delivery-zone-field label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.delivery-zones-actions {
  width: 100%;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.delivery-zones-actions .btn-primary,
.delivery-zones-actions .btn-outline {
  min-width: 160px;
}
.qr-result-box {
  padding: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "qr   info"
    "btn  btn";
  column-gap: 1.5rem;
  row-gap: 1rem;
  align-items: center;
  justify-items: start;
  max-width: 720px;
  margin: 0 auto;
}
.qr-result-box img {
  grid-area: qr;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px;
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
}
.qr-result-box .btn-outline {
  grid-area: btn;
  justify-self: center;
}
.qr-result-info {
  grid-area: info;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
  text-align: left;
  width: 100%;
  align-self: center;
}
.qr-result-info .detail-row {
  display: contents;
  font-size: 0.85rem;
}
.qr-result-info .detail-row span:first-child {
  color: var(--text-2);
  white-space: nowrap;
}
.qr-result-info .detail-row span:last-child {
  font-weight: 600;
  word-break: break-word;
}
@media (max-width: 640px) {
  .qr-result-box {
    grid-template-columns: 1fr;
    grid-template-areas:
      "qr"
      "info"
      "btn";
    justify-items: center;
    text-align: center;
  }
  .qr-result-info {
    justify-items: start;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   Breakpoints:
   ≥ 1024px  Desktop    – 320px permanent cart sidebar
   641–1023  Tablet     – 260px narrower sidebar
   ≤ 640px   Mobile     – slide-in cart, 2-col products
   ≤ 400px   Small      – 1-col products
═══════════════════════════════════════════════════════════════════════════════ */

/* ── Tablet: narrow sidebar ───────────────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1023px) {
  .cart-panel   { width: 260px; }
  .content-col  { margin-right: 260px; }
  .header       { padding-right: 0; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }

  /* Admin: kompaktný header na tablete */
  .admin-header-inner { gap: 0.5rem; padding: 0 0.5rem; }
  .admin-tabs { flex-shrink: 1; gap: 0; overflow-x: auto; min-width: 0; }
  .admin-tab  { font-size: 0.75rem; padding: 0.4rem 0.5rem; white-space: nowrap; }
  .admin-header-actions { gap: 0.2rem; }
  .admin-header-actions .header-icon-btn { width: 36px; height: 36px; }
  .bt-printer-btn { min-width: 40px !important; min-height: 40px !important; padding: 4px 8px !important; }
  .bt-printer-icon { font-size: 18px; }

  .tab-content { padding: 1.25rem 1rem; }

  /* Admin products – hide less important columns */
  .products-table-header,
  .products-table-row {
    grid-template-columns: 2.2fr 1fr 0.7fr 0.8fr 0.9fr;
  }

  /* Orders */
  .order-card-body { grid-template-columns: 1fr; gap: 1rem; }
  .settings-card { max-width: 100%; }
  .modal { max-width: 96vw; max-height: 92vh; }
  .modal-sm { max-width: 92vw; }
  .modal-lg { max-width: 96vw; }
  #checkout-modal { max-width: 96vw; }
}

/* ── Mobile: slide-in cart, simplified layout ─────────────────────────────── */
@media (max-width: 640px) {
  /* ── Cart: full-screen slide-in ── */
  .content-col  { margin-right: 0; }
  .header       { padding-right: 0 !important; }

  .cart-overlay.open { display: block; }
  /* Košík: scroll len v .cart-body (položky + Celkom + Objednať v jednom toku) */
  .cart-panel {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    bottom: max(var(--mobile-browser-bottom-ui), env(safe-area-inset-bottom, 0px));
    height: auto;
    box-sizing: border-box;
    padding: 0;
    z-index: 201;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .cart-panel.open { transform: translateX(0); }
  .cart-panel .cart-header {
    flex-shrink: 0;
    background: var(--surface);
  }
  .cart-panel .cart-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .cart-panel .cart-footer {
    flex-shrink: 0;
  }
  .cart-header .cart-close-mobile { display: flex !important; }
  .cart-btn         { display: flex; }

  /* ── Header ── */
  .header-inner { padding: 0 1rem; }

  /* ── Hero ── */
  .hero { padding: 1.5rem 1rem 1.25rem; }
  .hero-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero-title    { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .hero-subtitle { font-size: 0.875rem; }

  /* ── Categories ── */
  .categories-section {
    padding: 0.6rem 1rem;
    overflow-x: auto;
    position: sticky;
    top: 64px; /* pod hlavičkou */
    z-index: 90;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  .category-tabs { flex-wrap: nowrap; gap: 0.35rem; padding-bottom: 2px; }
  .tab-btn { padding: 0.5rem 1.125rem; font-size: 0.8rem; flex-shrink: 0; display: inline-flex; align-items: center; }

  /* ── Products ── */
  .main-content { padding: 0 1rem 3rem; }
  .product-grid { display: block; }
  .category-list { grid-template-columns: 1fr; }
  .category-block { padding: 0.8rem; }
  .category-block-title { font-size: 1.12rem; margin-bottom: 0.65rem; }
  .product-image-placeholder { font-size: 2.5rem; }
  .product-name  { font-size: 0.875rem; }
  .product-price { font-size: 1.05rem; }
  .product-description { font-size: 0.75rem; -webkit-line-clamp: 2; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  /* Mobile: ešte väčšie tlačidlo pre lepší touch target */
  .btn-add {
    padding: 0.85rem 1.1rem;
    font-size: 0.92rem;
    min-height: 48px;
    border-radius: 14px;
    gap: 0.5rem;
  }
  .btn-add__icon { width: 20px; height: 20px; }
  .btn-add:disabled {
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
    min-height: auto;
  }

  /* ── Modals: mobile optimization ── */
  .modal-overlay { align-items: flex-start; padding: 0; }
  .modal { 
    max-width: 100%; 
    height: 100%; 
    max-height: 100vh;
    max-height: 100svh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    box-sizing: border-box;
    padding-bottom: max(var(--mobile-browser-bottom-ui), env(safe-area-inset-bottom, 0px));
  }
  .modal-header { padding: 1rem 1.25rem; }
  .modal-header h2 { font-size: 1.25rem; }
  .modal-body { padding: 1.25rem; gap: 0.75rem; }
  .form-group { margin-bottom: 0.75rem; gap: 0.4rem; }
  .form-group label { font-size: 0.65rem; }
  .form-group input { padding: 0.7rem 0.875rem; height: 44px; font-size: 0.9rem; }
  .form-grid { gap: 0.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .modal-footer-text { margin-top: 1.25rem; padding-top: 1rem; font-size: 0.85rem; }
  .btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
  
  .modal-confirm { padding: 1.5rem 1rem; border-radius: 0; height: 100%; }
  .checkout-form-body { padding: 1.25rem; gap: 1rem; }
  #checkout-modal .checkout-form-body .form-grid {
    grid-template-columns: 1fr;
  }
  #checkout-modal .checkout-form-body .form-grid .form-group {
    grid-column: auto;
  }
  #checkout-modal .payment-options {
    grid-template-columns: 1fr;
  }
  #checkout-modal .payment-option {
    max-width: none;
    width: 100%;
  }
  #checkout-modal .payment-option-content {
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
  }
  #checkout-modal .payment-name {
    font-size: 0.85rem;
  }
  #checkout-modal .payment-desc {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  #checkout-modal .tip-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  #checkout-modal .tip-btn {
    width: 100%;
    padding: 0.75rem 0.65rem;
    font-size: 0.88rem;
    white-space: normal;
  }
  #checkout-modal .tip-btn[data-tip="0"] {
    grid-column: 1 / -1;
  }
  #checkout-modal .tip-custom-row input {
    max-width: none;
  }

  /* QR confirmation */
  .qr-code-container { padding: 0.75rem; }
  .qr-code-container img { width: 200px !important; height: 200px !important; }
  .payment-details { font-size: 0.8rem; }
  .payment-detail-row { flex-direction: column; gap: 0.1rem; }
  .payment-detail-row strong { text-align: left; max-width: 100%; }
  .payment-options { grid-template-columns: 1fr; }

  /* ── Admin ── */
  .login-card { padding: 1.75rem 1.25rem; }

  .admin-header { overflow: visible; }
  .admin-header-inner {
    padding: 0 0.5rem;
    gap: 0.4rem;
  }
  .admin-tabs { gap: 0; overflow-x: auto; min-width: 0; flex-shrink: 1; }
  .admin-tab  { font-size: 0.72rem; padding: 0.35rem 0.45rem; white-space: nowrap; }
  .admin-header-actions { gap: 0.15rem; }
  .admin-header-actions .header-icon-btn { width: 34px; height: 34px; }
  .bt-printer-btn { min-width: 38px !important; min-height: 38px !important; padding: 3px 6px !important; border-radius: 8px !important; }
  .bt-printer-icon { font-size: 16px; }
  .bt-printer-dot { width: 8px; height: 8px; }
  .logo-text  { font-size: 1rem; }

  .tab-content  { padding: 1rem; }
  .tab-toolbar  { margin-bottom: 1rem; }
  .tab-toolbar h2 { font-size: 1.1rem; }

  /* Admin products table → card layout */
  .products-table-header { display: none; }
  .products-table-row {
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    overflow: hidden;
  }
  .product-cell-name { 
    overflow: hidden; 
    min-width: 0; 
  }
  .product-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-desc-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .products-table-row .category-tag  { display: none; }
  .products-table-row .order-controls { display: none; }
  .products-table-row .price-text    { font-size: 0.9rem; }
  .products-table-row .status-badge  { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
  .action-btns { gap: 0.3rem; }
  .btn-icon { width: 32px; height: 32px; font-size: 0.8rem; }

  /* Admin clients table -> Simplified rows */
  .admin-table-container {
    overflow-x: hidden;
  }
  .admin-table th:nth-child(2),
  .admin-table th:nth-child(4),
  .admin-table th:nth-child(5),
  .admin-table td:nth-child(2),
  .admin-table td:nth-child(4),
  .admin-table td:nth-child(5) {
    display: none !important;
  }
  .admin-table td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.85rem !important;
  }
  .admin-table td:first-child {
    max-width: 140px;
    overflow: hidden;
  }
  .admin-table td:first-child div:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
  }
  .admin-table .badge {
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
  }

  /* Admin product modal */
  .product-form .form-grid { grid-template-columns: 1fr; }
  .form-grid.standalone-qr-row { grid-template-columns: 1fr; }

  /* Admin orders */
  .order-card-body    { grid-template-columns: 1fr; gap: 1rem; }
  .order-card-header  { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .order-card-footer  { flex-direction: column; align-items: flex-start; }
  .order-card-footer > div:last-child { width: 100%; }
  .order-card-footer .btn-primary,
  .order-card-footer .btn-outline { width: 100%; justify-content: center; }
  .orders-subtabs { gap: 0; }
  .orders-subtab { font-size: 0.85rem; padding: 0.5rem 0.875rem; }

  /* Settings */
  .settings-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .settings-card { width: 100% !important; max-width: 100%; padding: 1rem; box-sizing: border-box; margin: 0 !important; }
  .delivery-zone-row {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
  }
  .delivery-zone-field { width: 100%; }
  .delivery-zones-actions { flex-direction: column; }
  .delivery-zones-actions .btn-primary,
  .delivery-zones-actions .btn-outline { width: 100%; min-width: 0; }
  .qr-result-box { padding: 1rem; }
}

/* ── Admin príručka ───────────────────────────────────────────────────────── */
.manual-page { min-height: 100vh; background: var(--bg); color: var(--text); }
.manual-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.manual-header h1 { font-size: 1.15rem; margin: 0; font-weight: 700; }
.manual-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.manual-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.manual-toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin: 0 0 1rem; }
.manual-toc ol { margin: 0; padding-left: 1.25rem; line-height: 1.9; }
.manual-toc a { color: var(--red-light); text-decoration: none; }
.manual-toc a:hover { text-decoration: underline; }
.manual-section { margin-bottom: 2.75rem; scroll-margin-top: 80px; }
.manual-section h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}
.manual-section h3 { font-size: 1.05rem; margin: 1.5rem 0 0.75rem; color: var(--text); }
.manual-section p, .manual-section li { color: var(--text-2); line-height: 1.65; margin: 0 0 0.75rem; }
.manual-section ol, .manual-section ul { margin: 0 0 1rem; padding-left: 1.35rem; color: var(--text-2); line-height: 1.65; }
.manual-screen {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.88rem;
}
.manual-screen strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-light);
}
.manual-screen ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); }
.manual-note {
  background: var(--red-dim);
  border-left: 3px solid var(--red);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: var(--text-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ─── Admin Header & Nav ─────────────────────────────────────────────────────── */
.header .admin-tabs {
  display: flex;
  gap: 0.5rem;
  height: 100%;
  align-items: center;
  margin-left: 2rem;
  flex: 1;
}

.admin-tab {
  background: transparent;
  color: #ffffff !important; /* Force white for maximum visibility */
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  position: relative;
}

.admin-tab:hover {
  background: rgba(255, 255, 255, 0.08); /* Jemné stmavenie/zosvetlenie pôvodnej tmavej lišty */
  color: var(--red-light) !important;
}

.admin-tab.active {
  background: transparent;
  color: var(--red-light) !important;
}

.admin-tab .tab-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}
.admin-tab .tab-badge.is-alert,
.admin-tab.is-alert .tab-badge {
  animation: adminOrderBadgeBlink 1s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}
@keyframes adminOrderBadgeBlink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .header .admin-tabs {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    margin-left: 0;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: transform var(--transition-slow);
    z-index: 1001;
    align-items: stretch;
    gap: 0.75rem;
  }

  .mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0 1.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav-logo .logo-circle {
    height: 48px;
    width: 48px;
  }
  .mobile-nav-logo .logo-main {
    font-size: 1.3rem;
  }

  .header .admin-tabs.mobile-open {
    transform: translateX(-280px);
  }

  .admin-tab {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

/* ─── Kupóny (settings) ─────────────────────────────────────────────────────── */
.coupon-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  width: 100%;
  align-self: stretch;
}
.settings-card .coupon-form-grid {
  width: 100%;
}
.coupon-form-grid .form-group {
  min-width: 0;
  margin: 0;
}
.coupon-form-grid .coupon-form-note {
  grid-column: span 2;
}
.coupons-list-card {
  overflow: hidden;
}
.coupons-table-container {
  margin: 0;
  box-shadow: none;
  overflow-x: auto;
}
.coupons-table {
  min-width: 920px;
  font-size: 0.88rem;
  width: 100%;
}
.coupons-table th,
.coupons-table td {
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
}
.coupons-table th:not(:first-child),
.coupons-table td:not(:first-child) {
  white-space: nowrap;
}
.coupons-table .coupon-code {
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.coupons-table .coupon-note {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0;
  white-space: normal;
}
.coupons-table .coupon-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  white-space: nowrap;
}
.coupons-table .coupon-status-select {
  width: auto;
  min-width: 7.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.coupons-table .coupon-status-select.is-on {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.5);
  color: #22c55e;
}
.coupons-table .coupon-status-select.is-off {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}
[data-theme="light"] .coupons-table .coupon-status-select.is-on {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #16a34a;
}
[data-theme="light"] .coupons-table .coupon-status-select.is-off {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

/* Info „i“ pri poliach kupónov */
.coupon-form-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.field-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  opacity: 0.38;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
  text-transform: none;
  letter-spacing: 0;
  transition: opacity 0.15s ease;
}
.field-info:hover,
.field-info:focus-visible,
.field-info.is-open {
  opacity: 0.9;
  outline: none;
}
.field-info::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(240px, 70vw);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f3f3;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 40;
}
.field-info::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.2rem);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s;
  z-index: 41;
}
.field-info:hover::after,
.field-info:hover::before,
.field-info:focus-visible::after,
.field-info:focus-visible::before,
.field-info.is-open::after,
.field-info.is-open::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.field-info:hover::before,
.field-info:focus-visible::before,
.field-info.is-open::before {
  transform: translateX(-50%);
}
[data-theme="light"] .field-info::after {
  background: #fff;
  color: #222;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .field-info::before {
  border-top-color: rgba(0, 0, 0, 0.12);
}
@media (max-width: 960px) {
  .coupon-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coupon-form-grid .coupon-form-note {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .coupon-form-grid {
    grid-template-columns: 1fr;
  }
  .coupon-form-grid .coupon-form-note {
    grid-column: auto;
  }
}

/* ─── Admin Tables (Modern) ─────────────────────────────────────────────────── */
.admin-table-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th {
  background: var(--surface-2);
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
  transition: background var(--transition);
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.admin-table tr.client-row-clickable {
  cursor: pointer;
}
.admin-table tr.client-row-clickable:hover td {
  background: rgba(250, 204, 21, 0.06);
}
[data-theme="light"] .admin-table tr.client-row-clickable:hover td {
  background: rgba(245, 158, 11, 0.08);
}

/* Sortable Headers */
.admin-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color var(--transition), background var(--transition);
}
.admin-table th.sortable:hover {
  background: var(--surface-3);
  color: var(--text-2);
}
.admin-table th .sort-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  opacity: 0.3;
  transition: opacity var(--transition);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4l3 3 3-3'/%3E%3C/svg%3E") no-repeat center;
}
.admin-table th.sortable:hover .sort-icon { opacity: 0.8; }

/* Alignment helpers */
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Pagination Footer Modernization */
.pagination-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.pagination-info { font-size: 0.85rem; color: var(--text-3); font-weight: 500; }
.pagination-pages { display: flex; gap: 0.4rem; }
.profile-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 !important;
}

.profile-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem;
  gap: 0.5rem;
  flex-shrink: 0;
}
.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  white-space: nowrap;
  transition: all var(--transition);
}
.profile-tab-btn:hover { background: var(--surface-3); color: var(--text); }
.profile-tab-btn.active { background: var(--red); color: #fff; }

.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}
.profile-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* ─── Order History Card (Modern) ────────────────────────────────────────────── */
.order-history-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform var(--transition), border-color var(--transition);
}
.order-history-card:hover { 
  transform: translateY(-2px); 
  border-color: var(--border-light); 
  box-shadow: var(--shadow);
}

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

.oh-id { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text); }
.oh-date { font-size: 0.8rem; color: var(--text-2); margin-top: 0.2rem; }
.oh-status { 
  font-size: 0.75rem; 
  font-weight: 700; 
  padding: 0.3rem 0.7rem; 
  border-radius: 99px; 
  background: var(--warning-dim); 
  color: var(--warning); 
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.oh-status.paid { background: var(--success-dim); color: var(--success); }

.oh-items { display: flex; flex-direction: column; gap: 0.5rem; }
.oh-item { font-size: 0.85rem; color: var(--text-2); display: flex; justify-content: space-between; }
.oh-item span:last-child { color: var(--text); font-weight: 500; }

@media (max-width: 640px) {
  .modal-sidebar { max-width: 100%; }
}

/* ─── Stripe Section ────────────────────────────────────────────────────────── */
#stripe-section {
  margin-top: 1.5rem;
  animation: slideInUp 0.4s ease forwards;
}

.stripe-container {
  background: var(--surface-2);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
  .dashboard-metrics-grid--overview {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
  .dashboard-metrics-grid--top {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
  .dashboard-metrics-grid--row5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-metrics-grid--row3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-toggles {
    grid-template-columns: 1fr;
  }
  .dashboard-chart-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-pie-layout {
    grid-template-columns: 1fr;
  }
  /* Kompaktné koláče: na šírku karty graf vľavo, legenda vpravo (nie pod sebou) */
  .dashboard-pie-compact .dashboard-pie-layout {
    grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
  }
  .dashboard-pie-compact .dashboard-pie-chart-wrap {
    justify-content: flex-start;
  }
  .dashboard-pie-compact .dashboard-pie-chart {
    max-width: 120px;
  }
  .dashboard-pie-chart {
    max-width: 230px;
  }
  .dashboard-chart-card {
    padding: 0.8rem 0.7rem;
  }
  .dashboard-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .dashboard-filters > .pay-filter-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
    padding: 0.5rem 0.35rem;
    min-height: 38px;
  }
  .dashboard-filters > .dashboard-custom-range {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }
  .dashboard-chart-header {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .dashboard-chart-header .dashboard-metric-label {
    line-height: 1.25;
  }
  .dashboard-weekday-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    align-self: stretch;
  }
  .dashboard-weekday-toggle .pay-filter-btn {
    width: 100%;
    justify-content: center;
    min-height: 36px;
  }
  .dashboard-period-controls {
    gap: 0.35rem;
  }
  .dashboard-weekday-chart {
    gap: 0.25rem;
    min-height: 190px;
  }
  .dashboard-weekday-bar-track {
    height: 125px;
  }
  .dashboard-weekday-value {
    font-size: 0.62rem;
  }
  .dashboard-weekday-label {
    font-size: 0.68rem;
  }
  .dashboard-month-calendar {
    gap: 0.18rem;
  }
  .dashboard-month-cell {
    min-height: 52px;
    padding: 0.25rem 0.18rem 0.2rem;
  }
  .dashboard-month-cell-value {
    font-size: 0.68rem;
  }
  .dashboard-month-weekday-header {
    font-size: 0.58rem;
    letter-spacing: 0;
    padding: 0.2rem 0 0.28rem;
  }
  .dashboard-custom-range {
    margin-left: 0;
    width: 100%;
  }
  .dashboard-custom-range-field {
    min-width: 0;
    flex: 1;
  }
  .dashboard-date-input {
    max-width: 100%;
    width: 100%;
  }
  .dashboard-metrics-grid,
  .dashboard-metrics-grid--overview,
  .dashboard-metrics-grid--top,
  .dashboard-metrics-grid--row5 {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
  .dashboard-metrics-grid--row3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dashboard-metrics-grid,
  .dashboard-metrics-grid--overview,
  .dashboard-metrics-grid--top,
  .dashboard-metrics-grid--row5,
  .dashboard-metrics-grid--row3 {
    grid-template-columns: 1fr;
  }
  /* Legenda koláča — jeden riadok (názov, hodnota, %) */
  .dashboard-pie-legend-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
  }
  .dashboard-pie-dot {
    flex-shrink: 0;
  }
  .dashboard-pie-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dashboard-pie-value,
  .dashboard-pie-percent {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Najpredávanejší produkt — dlhý názov viditeľný v okienku */
  .dashboard-metrics-grid--row3 .dashboard-metric-card--accent,
  .dashboard-metrics-grid--row5 .dashboard-metric-card--accent {
    overflow: visible;
  }

  .dashboard-metric-card--accent {
    grid-template-columns: 1fr !important;
    align-items: flex-start;
    padding: 0.7rem 0.85rem !important;
    min-height: 86px;
    gap: 0.35rem;
  }

  .dashboard-metric-card--accent .dashboard-metric-label {
    border-right: none !important;
    padding-right: 0 !important;
    align-self: flex-start;
  }

  .dashboard-metric-card--accent .dashboard-metric-value-small {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block;
  }
}
@media (max-width: 640px) {
  /* Filtre v dvoch riadkoch */
  .orders-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .orders-filter-row .orders-search-input {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .orders-pay-filter {
    width: 100%;
    display: flex;
  }
  .orders-pay-filter .pay-filter-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
  .orders-status-filter {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .orders-status-filter .pay-filter-btn {
    flex: 1;
    white-space: nowrap;
    min-width: fit-content;
    padding: 0.5rem 0.75rem;
  }

  /* Odznaky vo viacerých riadkoch */
  .order-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
    padding-bottom: 0.25rem;
  }
  
  .status-badge {
    margin: 0 !important;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Tlačidlá akcií - na úzkom displeji pod sebou a na celú šírku */
  .order-actions-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }
  .order-actions-grid .btn-kitchen {
    width: 100% !important;
    flex: none;
    margin: 0 !important;
    display: flex !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .order-card-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .order-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .header-inner {
    padding: 0 1rem;
  }
  
  .logo-main {
    font-size: 1rem;
  }
  .logo-sub {
    font-size: 0.6rem;
  }
  .logo-circle {
    height: 36px;
    width: 36px;
  }
  
  .dashboard-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .dashboard-metrics-grid--row3 {
    grid-template-columns: 1fr !important;
  }

  .tab-content {
    padding: 1rem 0.75rem !important;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ─── Upsell Modal ───────────────────────────────────────────────────────────── */
.modal-upsell {
  max-width: 580px;
  width: 100%;
}

.modal-upsell .modal-body {
  max-height: 55vh;
  overflow-y: auto;
  padding: 0.75rem 1rem;
}

.upsell-section { margin-bottom: 0.75rem; }
.upsell-section:last-child { margin-bottom: 0; }

.upsell-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.upsell-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s;
  min-height: 0;
}

.upsell-item:hover { border-color: var(--red); }

.upsell-item__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.upsell-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.3rem;
}

.upsell-item__price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-light);
}

.btn-upsell {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  min-width: 28px;
  text-align: center;
  background: var(--surface-3);
  border: 1px solid var(--border-light);
  color: var(--text);
}

.btn-upsell--active {
  background: var(--success);
  border-color: var(--success);
}

@media (min-width: 520px) {
  .upsell-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Upsell footer buttons */
.upsell-note {
  padding: 0.8rem 1rem;
  background: var(--surface-2, rgba(255,255,255,0.03));
  border-top: 1px solid var(--border);
}
.upsell-note label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  opacity: 0.95;
  display: block;
  margin-bottom: 0.4rem;
}
.upsell-note-input {
  width: 100%;
  background: var(--surface, #1a1a1a);
  color: var(--text);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 3rem;
}
.upsell-note-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.upsell-footer {
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.upsell-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}

.upsell-btn--skip {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.upsell-btn--skip:hover {
  background: var(--surface-3);
  color: var(--text);
}

.upsell-btn--done {
  background: var(--success);
  color: #fff;
}

.upsell-btn--done:hover {
  background: #059669;
}

@media (max-width: 380px) {
  .upsell-grid { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .upsell-item__name { font-size: 0.75rem; }
  .upsell-btn { font-size: 0.85rem; padding: 0.75rem 0.75rem; }
}

/* ─── Site Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2rem;
}

.site-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.site-footer__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.site-footer__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.site-footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.site-footer__address {
  font-size: 0.95rem;
  color: var(--text-2);
}

.site-footer__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.2s;
}

.site-footer__phone svg {
  color: var(--red);
  flex-shrink: 0;
}

.site-footer__phone:hover {
  color: var(--red);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.65rem;
  padding: 0.9rem 1.5rem 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem;
  background: #0a0a0a;
}
.site-footer__legal a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.site-footer__legal a:hover {
  color: var(--red);
  text-decoration: underline;
}
.site-footer__legal .site-footer__dot {
  display: inline;
  color: #4b5563;
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.5rem 0.9rem;
  font-size: 0.72rem;
  color: #6b7280;
  background: #0a0a0a;
  text-align: center;
}
.site-footer__theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #141414;
  color: #d1d5db;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.site-footer__theme-btn:hover {
  background: #1c1c1c;
  border-color: #3f3f3f;
  color: #fff;
}
.site-footer__theme-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}
.site-footer__theme-sep {
  display: none;
}
[data-theme="light"] .site-footer__bottom {
  background: #f3f4f6;
  color: #6b7280;
}
[data-theme="light"] .site-footer__theme-btn {
  background: #fff;
  border-color: #d1d5db;
  color: #374151;
}
[data-theme="light"] .site-footer__theme-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

.site-footer__dot {
  display: none;
}

.site-footer__sx-link {
  color: #9ca3af;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__sx-link:hover {
  color: var(--red);
}

.site-footer__feedback {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__feedback:hover {
  color: #d1d5db;
}

.site-footer__feedback span {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #6b7280;
  font-weight: 500;
}

@media (max-width: 480px) {
  .site-footer__main {
    padding: 1.25rem 1rem;
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
  .site-footer__dot {
    display: none;
  }
}

/* ─── Scroll to top ─────────────────────────────────────────────────────────── */
#scroll-top-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff; border: none;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(220,38,38,0.4);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0; transform: translateY(10px);
}
#scroll-top-btn.visible {
  display: flex; opacity: 1; transform: translateY(0);
}
#scroll-top-btn:hover {
  background: var(--red-hover); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.5);
}
