/* ==========================================================================
   STUDIO 88 TATTOO - HALLOWEEN FLASH CATALOG (LIMITED FEATURE UNTIL 31/10/2026)
   Theme: Studio 88 Obsidian Dark & Electric Blue (#00A0E3) + Orange Title Only
   ========================================================================== */

:root {
  --hw-blue: #00A0E3;
  --hw-blue-light: #38bdf8;
  --hw-blue-dark: #0077b6;
  --hw-blue-glow: rgba(0, 160, 227, 0.35);
  --hw-title-orange: #ff6a00;
  --hw-title-gradient: linear-gradient(135deg, #ff9a00 0%, #ff5e00 55%, #ff3d00 100%);
  --hw-bg-deep: #030303;
  --hw-bg-panel: #0d0f14;
  --hw-bg-card: #12151c;
  --hw-paper: #f7f4ec;
  --hw-paper-warm: #efeae0;
  --hw-border: rgba(0, 160, 227, 0.28);
  --hw-gradient-btn: linear-gradient(135deg, #38bdf8 0%, #00A0E3 50%, #0077b6 100%);
}

/* --- Header Nav Link Special Pill --- */
.nav-link.nav-link-halloween {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.14);
  border: 1px solid rgba(255, 107, 0, 0.45);
  color: #ff6b00 !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.22);
  animation: hwNavPulse 2s ease-in-out infinite;
  transform-origin: center;
}

[data-theme="dark"] .nav-link.nav-link-halloween {
  color: #ff7b1a !important;
  background: rgba(255, 107, 0, 0.16);
}

.nav-link.nav-link-halloween i {
  color: #ff6b00;
  display: inline-block;
  animation: hwGhostPulse 2s ease-in-out infinite;
}

.nav-link.nav-link-halloween:hover,
.nav-link.nav-link-halloween.active {
  background: linear-gradient(135deg, #ff7b00 0%, #e04800 100%);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
}

.nav-link.nav-link-halloween:hover i,
.nav-link.nav-link-halloween.active i {
  color: #ffffff !important;
}

@keyframes hwNavPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.18);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 22px rgba(255, 107, 0, 0.42);
  }
}

@keyframes hwGhostPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

/* --- Homepage Limited Promo Banner --- */
.hw-home-promo {
  position: relative;
  padding: 3.5rem 0 1rem;
  z-index: 2;
}

.hw-home-promo-card,
.hw-promo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 160, 227, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, rgba(0, 119, 182, 0.2) 0%, transparent 55%),
    linear-gradient(135deg, #07090d 0%, #0d1118 60%, #121824 100%);
  border: 1px solid rgba(0, 160, 227, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 160, 227, 0.14);
  padding: 2.5rem 2.8rem;
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hw-home-promo-info {
  flex: 1;
  min-width: 280px;
}

.hw-home-promo-tag,
.hw-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  background: rgba(0, 160, 227, 0.16);
  border: 1px solid rgba(0, 160, 227, 0.45);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hw-home-promo-info h3,
.hw-promo-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hw-home-promo-info h3 span,
.hw-promo-title span {
  background: var(--hw-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hw-home-promo-info p,
.hw-promo-desc {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
  max-width: 680px;
}

.hw-btn-orange,
.btn-halloween {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--hw-gradient-btn);
  color: #ffffff !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 160, 227, 0.35);
  transition: var(--transition-fast);
  cursor: pointer;
}

.hw-btn-orange:hover,
.btn-halloween:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 160, 227, 0.55);
}

/* --- Halloween Page Body & Hero (Dark Theme + Studio 88 Blue Details) --- */
body.halloween-page {
  background-color: var(--hw-bg-deep);
  color: #f8fafc;
}

body.halloween-page::before {
  background: radial-gradient(circle, rgba(0, 160, 227, 0.12) 0%, rgba(0, 119, 182, 0.06) 45%, rgba(3, 3, 3, 0) 72%);
  width: 1000px;
  height: 620px;
}

.hw-hero {
  position: relative;
  padding: 7.5rem 0 3rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 160, 227, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(0, 119, 182, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.95) 0%, rgba(13, 15, 20, 0.98) 100%);
  border-bottom: 1px solid rgba(0, 160, 227, 0.22);
  overflow: hidden;
}

.hw-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: center;
}

.hw-limited-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(0, 160, 227, 0.14);
  border: 1px solid rgba(0, 160, 227, 0.45);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}

/* Orange kept ONLY on the main title */
.hw-hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--hw-title-orange);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hw-hero-title .hw-gradient-text {
  background: var(--hw-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hw-hero-subtitle {
  color: #cbd5e1;
  font-size: 1.06rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
  max-width: 650px;
}

.hw-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.hw-step-chip {
  background: rgba(18, 21, 28, 0.75);
  border: 1px solid rgba(0, 160, 227, 0.18);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hw-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hw-gradient-btn);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 160, 227, 0.3);
}

.hw-step-chip h5 {
  color: #ffffff;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.hw-step-chip p {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* --- Countdown Card --- */
.hw-countdown-card {
  background: linear-gradient(160deg, rgba(18, 21, 28, 0.92) 0%, rgba(10, 13, 18, 0.96) 100%);
  border: 1px solid rgba(0, 160, 227, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 160, 227, 0.15);
  text-align: center;
  position: relative;
}

.hw-countdown-header {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

.hw-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.hw-cd-box {
  background: rgba(3, 3, 3, 0.75);
  border: 1px solid rgba(0, 160, 227, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.4rem;
}

.hw-cd-val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
}

.hw-cd-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.hw-countdown-meta {
  font-size: 0.85rem;
  color: #cbd5e1;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
}

.hw-countdown-meta strong,
.hw-countdown-meta i {
  color: #38bdf8;
}

/* --- Controls Toolbar (Sticky) --- */
.hw-toolbar-section {
  position: sticky;
  top: 66px;
  z-index: 90;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 160, 227, 0.22);
  padding: 0.9rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hw-toolbar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hw-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hw-cat-btn {
  padding: 0.46rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hw-cat-btn:hover {
  border-color: rgba(0, 160, 227, 0.5);
  color: #ffffff;
}

.hw-cat-btn.active {
  background: var(--hw-gradient-btn);
  border-color: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 160, 227, 0.3);
}

.hw-results-info {
  font-size: 0.84rem;
  color: #94a3b8;
  white-space: nowrap;
}

.hw-results-info strong {
  color: #38bdf8;
}

/* --- Catalog Workspace --- */
.hw-catalog-section {
  padding: 2.5rem 0 7rem;
  min-height: 65vh;
}

/* --- Individual Flash Cards Grid --- */
.hw-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 1.15rem;
}

.hw-flash-card {
  position: relative;
  background: var(--hw-bg-card);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.hw-flash-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 160, 227, 0.55);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 160, 227, 0.2);
}

.hw-flash-card.selected {
  border-color: #00A0E3;
  background: linear-gradient(180deg, rgba(0, 160, 227, 0.18) 0%, rgba(18, 21, 28, 0.98) 100%);
  box-shadow: 0 0 0 2px #00A0E3, 0 12px 30px rgba(0, 160, 227, 0.35);
}

.hw-flash-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, #fbf9f3 0%, #ede7da 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  overflow: hidden;
}

.hw-flash-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.hw-flash-card:hover .hw-flash-thumb img {
  transform: scale(1.08);
}

.hw-card-code-pill {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: rgba(13, 15, 20, 0.9);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(0, 160, 227, 0.35);
  z-index: 2;
}

.hw-flash-card.selected .hw-card-code-pill {
  background: #00A0E3;
  border-color: #ffffff;
}

.hw-card-check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-fast);
  z-index: 2;
}

.hw-flash-card.selected .hw-card-check {
  background: #00A0E3;
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.06);
}

.hw-card-zoom-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.78);
  border: 1px solid rgba(0, 160, 227, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  opacity: 0.88;
  transition: var(--transition-fast);
  z-index: 3;
}

.hw-flash-card:hover .hw-card-zoom-btn {
  opacity: 1;
}

.hw-card-zoom-btn:hover {
  background: var(--hw-blue);
  border-color: #ffffff;
}

.hw-flash-info {
  padding: 0.68rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.hw-flash-sheet-name {
  font-size: 0.76rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-flash-action-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
}

.hw-flash-card.selected .hw-flash-action-label {
  color: #38bdf8;
}

/* --- Load More / Pagination Bar --- */
.hw-load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- Floating Bottom Comanda Dock --- */
.hw-comanda-dock {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: min(980px, calc(100% - 2rem));
  background: rgba(13, 15, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 160, 227, 0.6);
  border-radius: 20px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 160, 227, 0.28);
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hw-comanda-dock.active {
  transform: translateX(-50%) translateY(0);
}

.hw-dock-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1;
}

.hw-dock-badge {
  background: var(--hw-gradient-btn);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hw-dock-thumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.hw-dock-thumbs::-webkit-scrollbar {
  display: none;
}

.hw-dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 160, 227, 0.12);
  border: 1px solid rgba(0, 160, 227, 0.3);
  border-radius: 999px;
  padding: 0.22rem 0.55rem 0.22rem 0.28rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.hw-dock-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hw-paper);
  object-fit: contain;
  padding: 2px;
}

.hw-dock-chip button {
  color: #7dd3fc;
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 2px;
}

.hw-dock-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.hw-dock-btn {
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.hw-dock-btn-clear {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
}

.hw-dock-btn-clear:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: #e11d48;
  color: #fda4af;
}

.hw-dock-btn-png {
  background: rgba(0, 160, 227, 0.16);
  border: 1px solid var(--hw-blue);
  color: #38bdf8;
}

.hw-dock-btn-png:hover {
  background: var(--hw-blue);
  color: #ffffff;
}

.hw-dock-btn-comanda {
  background: var(--hw-gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 160, 227, 0.4);
}

.hw-dock-btn-comanda:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 160, 227, 0.6);
}

/* --- Comanda Modal & Quick Zoom Modal --- */
.hw-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.hw-modal-backdrop.active {
  display: flex;
}

.hw-comanda-modal {
  width: min(880px, 100%);
  max-height: 92vh;
  background: #0d1017;
  border: 1px solid rgba(0, 160, 227, 0.45);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 160, 227, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hw-zoom-modal {
  max-width: 480px;
}

.hw-modal-header {
  padding: 1.15rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hw-modal-header h3 {
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hw-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.hw-modal-close:hover {
  background: var(--hw-blue);
  color: #ffffff;
}

/* --- Quick Zoom Modal Navigation & Swipe Stage --- */
.hw-zoom-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(0, 160, 227, 0.15);
  border: 1px solid rgba(0, 160, 227, 0.35);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}

.hw-zoom-body {
  padding: 1.35rem 1.5rem 1.5rem;
  text-align: center;
}

.hw-zoom-stage {
  position: relative;
  background: var(--hw-paper);
  border-radius: 16px;
  padding: 1.75rem 3.2rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  user-select: none;
  touch-action: pan-y;
  overflow: hidden;
  border: 1px solid rgba(0, 160, 227, 0.3);
}

.hw-zoom-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.22s ease, opacity 0.22s ease;
  pointer-events: none;
}

.hw-zoom-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.85);
  border: 1.5px solid rgba(0, 160, 227, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.hw-zoom-nav:hover {
  background: var(--hw-blue);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.hw-zoom-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.hw-zoom-prev {
  left: 0.65rem;
}

.hw-zoom-next {
  right: 0.65rem;
}

.hw-zoom-swipe-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.hw-zoom-swipe-hint i {
  color: #38bdf8;
}

/* --- Comanda Modal Body --- */
.hw-modal-body {
  padding: 1.5rem 1.6rem;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

.hw-selected-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.hw-sel-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 160, 227, 0.2);
  border-radius: 12px;
  padding: 0.55rem;
  text-align: center;
  position: relative;
}

.hw-sel-item-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--hw-paper);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-bottom: 0.45rem;
}

.hw-sel-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hw-sel-item-code {
  font-weight: 800;
  font-size: 0.82rem;
  color: #38bdf8;
  display: block;
}

.hw-sel-item-sheet {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
}

.hw-sel-remove {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.9);
  color: #ffffff;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Comanda Ticket Preview Box */
.hw-ticket-box {
  background: #07090e;
  border: 1px dashed rgba(0, 160, 227, 0.5);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hw-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hw-form-row label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hw-form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.58rem 0.85rem;
  color: #ffffff;
  font-size: 0.88rem;
}

.hw-form-input:focus {
  border-color: var(--hw-blue);
  outline: none;
}

.hw-comanda-textarea {
  width: 100%;
  height: 155px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  resize: none;
}

.hw-modal-footer {
  padding: 1.1rem 1.6rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.hw-export-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* --- Expired State Screen (After 31/10/2026) --- */
.hw-expired-banner {
  display: none;
  background: linear-gradient(135deg, rgba(0, 160, 227, 0.16), rgba(13, 15, 20, 0.96));
  border: 1px solid rgba(0, 160, 227, 0.45);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.hw-expired-banner.active {
  display: block;
}

/* --- Toast Notification --- */
.hw-toast {
  position: fixed;
  top: 88px;
  right: 1.5rem;
  background: #00A0E3;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  z-index: 1200;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hw-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hw-hero-grid,
  .hw-promo-card,
  .hw-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hw-steps-row {
    grid-template-columns: 1fr;
  }

  .hw-toolbar-section {
    position: relative;
    top: 0;
    padding: 0.75rem 0;
  }

  .hw-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
  }

  .hw-cat-btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.76rem;
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Two columns on mobile for better browsing */
  .hw-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hw-flash-thumb {
    padding: 0.75rem;
  }

  .hw-card-code-pill {
    font-size: 0.7rem;
    padding: 0.16rem 0.48rem;
    top: 0.4rem;
    left: 0.4rem;
  }

  .hw-card-check {
    width: 24px;
    height: 24px;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 0.72rem;
  }

  .hw-card-zoom-btn {
    opacity: 1;
    width: 28px;
    height: 28px;
    bottom: 0.4rem;
    right: 0.4rem;
  }

  .hw-flash-info {
    padding: 0.55rem 0.65rem;
  }

  .hw-flash-sheet-name {
    font-size: 0.7rem;
  }

  .hw-flash-action-label {
    font-size: 0.68rem;
  }

  .hw-zoom-stage {
    padding: 1.25rem 2.6rem;
  }

  .hw-zoom-nav {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .hw-comanda-dock {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
    bottom: 0.75rem;
  }

  .hw-dock-actions {
    justify-content: space-between;
  }

  .hw-dock-btn {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
  }

  .hw-promo-card,
  .hw-home-promo-card {
    padding: 1.75rem 1.4rem;
  }
}
