/* Stocard Mobile App Stylesheet - Premium Polished UI & Subtle Tactile Animations */

:root {
  --bg-dark: #0b0d13;
  --bg-surface: #141722;
  --bg-card: #1c2130;
  --bg-base: #0b0d13;
  --stocard-red: #ff334b;
  --stocard-accent: #e11d48;
  --brand-primary: #ff334b;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-sub: #94a3b8;
  --text-muted: #64748b;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 10px 28px -4px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --radius-card: 18px;
  --radius-btn: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== MAIN VIEW ==================== */
.view-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 100px;
  position: relative;
}

/* Header */
.stocard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px;
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 24px;
  background: linear-gradient(135deg, var(--stocard-red), #be123c);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 51, 75, 0.45);
}

.header-titles h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cards-count-badge {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.header-icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.16);
}

.lang-btn {
  min-width: 60px;
}

/* Search Bar */
.search-section {
  padding: 10px 20px 16px;
}

.search-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: rgba(255, 51, 75, 0.5);
}

.search-icon {
  font-size: 16px;
  color: var(--text-sub);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 15px;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-sub);
}

.clear-search-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quick Sorting Chips Bar */
.sort-chips-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}

.sort-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-sub);
  white-space: nowrap;
}

.sort-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sort-chips-row::-webkit-scrollbar {
  display: none;
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.sort-chip:active {
  transform: scale(0.95);
}

.sort-chip.active {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border-color: rgba(225, 29, 72, 0.4);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.35);
}

.card-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-use-count-pill {
  font-size: 10px;
  font-weight: 800;
  color: #f59e0b;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2px 7px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Cards Grid: Stocard 2-Column Plastic Cards */
.cards-grid {
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 340px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Plastic Card Architecture with Spring Physics */
@keyframes cardSpringIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.93);
  }
  65% {
    opacity: 1;
    transform: translateY(-3px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plastic-card {
  position: relative;
  aspect-ratio: 1.58;
  border-radius: var(--radius-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, filter 0.2s ease;
  animation: cardSpringIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  will-change: transform, box-shadow;
}

/* Dynamic Realistic Plastic Card Gloss Sweep */
.plastic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  border-radius: var(--radius-card);
}

.plastic-card:active {
  transform: scale(0.945) translateY(2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  filter: brightness(0.92);
}

/* ==================== EMPTY STATE ==================== */
.empty-cards-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  text-align: center;
  animation: cardSpringIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-icon-glow {
  width: 84px;
  height: 84px;
  border-radius: 26px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 22px;
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.2);
  animation: emptyPulse 3.2s infinite ease-in-out;
}

@keyframes emptyPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(225, 29, 72, 0.2); }
  50% { transform: scale(1.05); box-shadow: 0 16px 40px rgba(225, 29, 72, 0.4); }
}

.empty-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 14px;
  color: #94a3b8;
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.empty-add-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.empty-add-btn:active {
  transform: scale(0.94);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}

/* High-Res Logo Badge (White Apple/Stocard Badge) */
.card-logo-badge {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 5px;
  flex-shrink: 0;
}

.store-real-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.store-fallback-emoji {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pin Star with Spring Animation */
@keyframes starPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.4) rotate(15deg); }
  75% { transform: scale(0.9) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}

.card-star {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s, transform 0.2s;
  z-index: 3;
}

.card-star.pinned {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
  animation: starPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.card-store-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.card-note-subtitle {
  font-size: 11px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 8px;
  border-radius: 8px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card-mask-digits {
  font-size: 11px;
  font-family: "Courier New", monospace;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  margin-top: 1px;
}

/* Stocard Floating Action Button */
.stocard-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--stocard-red), #be123c);
  color: #fff;
  border: none;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 51, 75, 0.5);
  cursor: pointer;
  z-index: 30;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stocard-fab:active {
  transform: scale(0.9);
}

/* ==================== FULLSCREEN OVERLAYS (STOCARD VIEWS) ==================== */
.fullscreen-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fullscreen-view.active {
  transform: translateY(0);
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.back-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.back-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.view-header h2 {
  font-size: 18px;
  font-weight: 700;
}

/* Store Directory List */
.directory-list-container {
  padding: 10px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.directory-store-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.directory-store-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.12);
}

.dir-item-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  padding: 4px;
  flex-shrink: 0;
}

.dir-item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.dir-item-arrow {
  margin-left: auto;
  color: var(--text-sub);
  font-size: 16px;
}

/* Add / Edit Card View */
.add-card-content {
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.selected-store-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.banner-logo-badge {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  padding: 6px;
}

.banner-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.input-card-group {
  margin-bottom: 20px;
}

.input-card-group label {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 600;
  margin-bottom: 8px;
}

.stocard-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.stocard-input:focus {
  border-color: var(--stocard-red);
}

.number-input {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.paste-btn {
  position: absolute;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.paste-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.input-hint {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 6px;
}

.quick-note-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
  scrollbar-width: none;
}

.quick-note-pills::-webkit-scrollbar {
  display: none;
}

.note-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.note-pill:active {
  transform: scale(0.94);
  background: var(--stocard-red);
  color: #fff;
}

.stocard-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--stocard-red), #be123c);
  border: none;
  color: #fff;
  padding: 16px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 51, 75, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stocard-btn-primary:active {
  transform: scale(0.98);
}

/* ==================== VIEW 4: BARCODE PRESENTER ==================== */
.presenter-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.presenter-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.presenter-close-btn:active {
  transform: scale(0.92);
}

.presenter-counter {
  font-size: 14px;
  color: var(--text-sub);
  font-weight: 600;
}

.presenter-star-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.presenter-star-btn:active {
  transform: scale(0.92);
}

.presenter-star-btn.pinned {
  color: #fbbf24;
}

.presenter-body {
  padding: 6px 20px 40px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Kinetic Slide Animations for Swiping Cards (Apple Wallet / One UI Style) */
@keyframes slideRightIn {
  0% { transform: translateX(54px) rotate(3deg) scale(0.92); opacity: 0.15; }
  65% { transform: translateX(-3px) rotate(-0.5deg) scale(1.01); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
}

@keyframes slideLeftIn {
  0% { transform: translateX(-54px) rotate(-3deg) scale(0.92); opacity: 0.15; }
  65% { transform: translateX(3px) rotate(0.5deg) scale(1.01); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg) scale(1); opacity: 1; }
}

.presenter-body.slide-right {
  animation: slideRightIn 0.32s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.presenter-body.slide-left {
  animation: slideLeftIn 0.32s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.presenter-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.presenter-icon-badge {
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 5px;
  flex-shrink: 0;
}

.presenter-store-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.presenter-note-pill {
  font-size: 13px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 4px;
  font-weight: 600;
  display: inline-block;
}

/* Stocard Pure White High-Contrast Barcode Box with Subtle Glow */
@keyframes barcodeOpen {
  0% { transform: scale(0.97); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==================== 3D FLIP CARD: BARCODE <-> QR CODE ==================== */
.code-toggle-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin: 12px 0 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.code-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.code-toggle-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: scale(1.02);
}

.flip-card-perspective {
  perspective: 1200px;
  margin: 8px 0 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  min-height: 290px;
  transition: transform 0.62s cubic-bezier(0.34, 1.35, 0.64, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 290px;
  background: #ffffff;
  border-radius: 22px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.flip-card-front {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  z-index: 2;
}

.flip-card-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  z-index: 1;
}

.flip-card-inner.flipped .flip-card-front {
  pointer-events: none;
}

.flip-card-inner:not(.flipped) .flip-card-back {
  pointer-events: none;
}

.face-tag-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.barcode-render-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  overflow: hidden;
  padding: 6px 0;
}

.barcode-render-box svg {
  max-width: 100%;
  height: auto;
  max-height: 125px;
  display: block;
}

.qr-render-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 140px;
  padding: 4px 0;
}

.qr-render-box img,
.qr-render-box canvas {
  width: 145px !important;
  height: 145px !important;
  border-radius: 8px;
  display: block;
}

.barcode-digits {
  font-family: "Courier New", monospace;
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 6px;
  text-align: center;
}

.flip-hint-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 8px;
}

.screen-wake-banner {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: #69f0ae;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
}

/* Card Switcher Controls (Swipe Left / Right) */
.card-switcher-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.switch-arrow-btn {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.switch-arrow-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

/* Presenter Actions Toolbar */
.presenter-actions-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.action-bar-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 12px 8px;
  border-radius: var(--radius-btn);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.action-bar-btn:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.14);
}

.action-bar-btn.danger {
  border-color: rgba(255, 51, 75, 0.35);
  color: #ff5252;
}

.action-bar-btn.danger:active {
  background: rgba(255, 51, 75, 0.2);
}

.action-icon {
  font-size: 20px;
}

.action-label {
  font-size: 12px;
  font-weight: 600;
}

/* ==================== CUSTOM IN-APP MODAL SHEETS ==================== */
.custom-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.custom-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-sheet {
  background: #181d2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 24px 20px 34px;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.custom-modal-backdrop.active .custom-modal-sheet {
  transform: translateY(0);
}

.custom-modal-sheet h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.modal-subtext {
  font-size: 13px;
  color: var(--text-sub);
}

.modal-btn-row {
  display: flex;
  gap: 12px;
}

.modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-btn:active {
  transform: scale(0.97);
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.modal-btn.primary {
  background: linear-gradient(135deg, var(--stocard-red), #be123c);
  color: #fff;
}

.modal-btn.danger {
  background: #e11d48;
  color: #fff;
}

/* Stocard Toast */
.stocard-toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 120;
}

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

/* Store Brand Colors */
.theme-biedronka { background: linear-gradient(135deg, #d32f2f, #991b1b); }
.theme-lidl { background: linear-gradient(135deg, #0284c7, #075985); }
.theme-dino { background: linear-gradient(135deg, #15803d, #14532d); }
.theme-rossmann { background: linear-gradient(135deg, #be123c, #881337); }
.theme-auchan { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.theme-zabka { background: linear-gradient(135deg, #047857, #064e3b); }
.theme-carrefour { background: linear-gradient(135deg, #2563eb, #1e40af); }
.theme-kaufland { background: linear-gradient(135deg, #dc2626, #991b1b); }
.theme-hebe { background: linear-gradient(135deg, #c026d3, #7e22ce); }
.theme-empik { background: linear-gradient(135deg, #334155, #0f172a); }
.theme-ccc { background: linear-gradient(135deg, #ea580c, #9a3412); }
.theme-pepco { background: linear-gradient(135deg, #0284c7, #0369a1); }
.theme-mediaexpert { background: linear-gradient(135deg, #ca8a04, #854d0e); }
.theme-decathlon { background: linear-gradient(135deg, #0284c7, #075985); }
.theme-polomarket { background: linear-gradient(135deg, #e11d48, #9f1239); }
.theme-action { background: linear-gradient(135deg, #0284c7, #1e3a8a); }
.theme-ramso { background: linear-gradient(135deg, #881337, #4c0519); }
.theme-hm { background: linear-gradient(135deg, #dc2626, #991b1b); }
.theme-mohito { background: linear-gradient(135deg, #1e1e24, #0b0c10); border: 1px solid rgba(212, 175, 55, 0.35); }
.theme-terranova { background: linear-gradient(135deg, #0284c7, #0369a1); }
.theme-payback { background: linear-gradient(135deg, #1e3a8a, #0f172a); }
.theme-reserved { background: linear-gradient(135deg, #18181b, #09090b); }
.theme-zara { background: linear-gradient(135deg, #09090b, #000000); }
.theme-delikatesy { background: linear-gradient(135deg, #15803d, #14532d); }
.theme-militaria { background: linear-gradient(135deg, #3f4e3f, #232d23); }
.theme-sinsay { background: linear-gradient(135deg, #334155, #1e293b); }
.theme-stokrotka { background: linear-gradient(135deg, #16a34a, #15803d); }
.theme-mcdonalds { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.theme-jdsports { background: linear-gradient(135deg, #18181b, #000000); }
.theme-default { background: linear-gradient(135deg, #334155, #1e293b); }

/* User Profile & Role Badges */
.user-role-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.user-role-pill.lilya {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}
.user-role-pill:active {
  transform: scale(0.95);
}

/* Card Owner Chip Selectors */
.owner-chips-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.owner-chip {
  flex: 1;
  padding: 9px 6px;
  border-radius: var(--radius-btn);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.owner-chip.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.owner-chip#chipOwnerLilya.active,
.owner-chip#editChipOwnerLilya.active {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  border-color: #ec4899;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

/* Owner Tag on Plastic Card */
.card-owner-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.card-owner-tag.lilya {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.85), rgba(244, 63, 94, 0.85));
  border-color: rgba(255, 255, 255, 0.3);
}

/* Profile Select Buttons in Modal */
.profile-select-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-select-btn.active {
  border-color: var(--brand-primary);
  background: rgba(225, 29, 72, 0.12);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.2);
}

.profile-select-btn#profBtnLilya.active {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.15);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
}

.modal-btn.tg-share {
  background: linear-gradient(135deg, #229ed9, #0088cc);
  color: #fff;
  border: none;
}
.modal-btn.tg-share:active {
  transform: scale(0.98);
}

/* User Account Button in Header */
.user-btn {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.user-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Auth Tabs */
.auth-tabs-row {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 12px;
  gap: 4px;
}
.auth-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35);
}

.auth-switch-link {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  padding: 8px;
}
.auth-switch-link:active {
  opacity: 0.8;
}

/* ==================== WELCOME / AUTH GATE SCREEN ==================== */
.welcome-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  overflow-y: auto;
}

.welcome-hero-content {
  width: 100%;
  max-width: 360px;
  text-align: center;
  margin: auto 0;
}

.welcome-logo-badge {
  width: 90px;
  height: 90px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.4), 0 0 20px rgba(225, 29, 72, 0.2);
}

.welcome-emoji {
  font-size: 46px;
}

.welcome-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  color: #fff;
}

.welcome-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 30px;
}

.welcome-actions-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.welcome-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 16px;
}

.welcome-btn-outline {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.welcome-btn-outline:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.98);
}

.welcome-btn-back {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  transition: color 0.2s;
}

.welcome-btn-back:active {
  color: #fff;
}

.welcome-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 14px;
}

.welcome-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ==================== KAWAII CAT ANIMATIONS & INTERACTIVE DELIGHTS ==================== */

.cat-delete-sheet {
  background: #141722;
  border-radius: 28px 28px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cat-delete-stage {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-svg {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Idle ear twitches */
.cat-ear-left {
  transform-origin: 52px 68px;
  animation: catEarTwitchLeft 4s infinite ease-in-out;
}
.cat-ear-right {
  transform-origin: 148px 68px;
  animation: catEarTwitchRight 4.5s infinite ease-in-out;
}

@keyframes catEarTwitchLeft {
  0%, 88%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-8deg); }
  96% { transform: rotate(3deg); }
}
@keyframes catEarTwitchRight {
  0%, 85%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(8deg); }
  95% { transform: rotate(-3deg); }
}

/* Eye Blinking */
.cat-eyes-normal {
  transform-origin: 100px 94px;
  animation: catBlink 3.8s infinite ease-in-out;
}

@keyframes catBlink {
  0%, 94%, 98%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

/* Paw Idle Bounce */
.cat-paw-left {
  transform-origin: 62px 144px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: catPawIdleLeft 3s infinite ease-in-out alternate;
}
.cat-paw-right {
  transform-origin: 138px 144px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: catPawIdleRight 3.2s infinite alternate ease-in-out;
}

@keyframes catPawIdleLeft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}
@keyframes catPawIdleRight {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

/* Mini Food Card */
.cat-food-card-wrapper {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.cat-food-card {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(225, 29, 72, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cat-food-emoji {
  font-size: 18px;
}

.cat-food-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cat-food-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.cat-food-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* ==================== ACTIVE EATING ANIMATION STATES ==================== */

/* Phase 1: Paws Grab */
.cat-delete-stage.grabbing .cat-paw-left {
  animation: none;
  transform: translate(24px, -18px) rotate(18deg) !important;
}
.cat-delete-stage.grabbing .cat-paw-right {
  animation: none;
  transform: translate(-24px, -18px) rotate(-18deg) !important;
}
.cat-delete-stage.grabbing .cat-food-card {
  transform: scale(0.95) rotate(-2deg);
}

/* Phase 2: Chomping & Munching */
.cat-delete-stage.eating .cat-svg {
  animation: catChewBounce 0.22s infinite alternate ease-in-out;
}
@keyframes catChewBounce {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.03, 0.97); }
}

.cat-delete-stage.eating .cat-paw-left {
  animation: catPawChewLeft 0.22s infinite alternate ease-in-out !important;
}
.cat-delete-stage.eating .cat-paw-right {
  animation: catPawChewRight 0.22s infinite alternate ease-in-out !important;
}
@keyframes catPawChewLeft {
  0% { transform: translate(25px, -20px) rotate(15deg); }
  100% { transform: translate(28px, -24px) rotate(22deg); }
}
@keyframes catPawChewRight {
  0% { transform: translate(-25px, -20px) rotate(-15deg); }
  100% { transform: translate(-28px, -24px) rotate(-22deg); }
}

.cat-delete-stage.eating .cat-food-card {
  animation: cardBeingMunched 1.3s forwards cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
@keyframes cardBeingMunched {
  0% {
    transform: translateY(0) scale(0.95);
    opacity: 1;
  }
  30% {
    transform: translateY(-14px) scale(0.75) rotate(6deg);
    opacity: 0.95;
  }
  65% {
    transform: translateY(-24px) scale(0.45) rotate(-8deg);
    opacity: 0.8;
  }
  90% {
    transform: translateY(-32px) scale(0.18) rotate(12deg);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-38px) scale(0.02) rotate(18deg);
    opacity: 0;
  }
}

/* Flying Crumbs and Sparkles */
.cat-particles-box {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cat-crumb {
  position: absolute;
  border-radius: 50%;
  animation: flyCrumb 0.9s forwards ease-out;
}
@keyframes flyCrumb {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.2);
    opacity: 0;
  }
}

/* Phase 3: Gulp / Swallow Satisfaction */
.cat-delete-stage.swallowed .cat-svg {
  animation: catSwallowRipple 0.8s ease-out;
}
@keyframes catSwallowRipple {
  0% { transform: scale(1); }
  30% { transform: scale(1.12, 0.88) translateY(4px); }
  55% { transform: scale(0.92, 1.08) translateY(-5px); }
  80% { transform: scale(1.04, 0.96) translateY(2px); }
  100% { transform: scale(1); }
}

.cat-eat-btn {
  background: linear-gradient(135deg, #ff334b, #e11d48);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4);
}
.cat-eat-btn:active {
  transform: scale(0.96);
}

/* ==================== CAT CELEBRATION OVERLAY ==================== */
.cat-celebration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 19, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: catFadeIn 0.25s ease-out;
}
@keyframes catFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.cat-celebration-card {
  background: #181d2a;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(225, 29, 72, 0.3);
  animation: catPopUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes catPopUp {
  0% { transform: scale(0.6) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.cat-celebrate-art {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.cat-celebrate-art svg {
  animation: catCelebrateBounce 0.7s infinite alternate ease-in-out;
}
@keyframes catCelebrateBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.cat-celebrate-bubble {
  background: linear-gradient(135deg, #ff334b, #e11d48);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
  animation: bubbleWiggle 2s infinite ease-in-out;
}
@keyframes bubbleWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

.cat-celebrate-card-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cat-celebrate-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== PEEKING CAT IN BARCODE PRESENTER ==================== */
.peeking-cat-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.peeking-cat-bar:active {
  transform: scale(0.96);
}

.peeking-cat-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
}

.peeking-cat-face {
  font-size: 13px;
  font-weight: 800;
  color: #ffb7c5;
  letter-spacing: -0.5px;
}

.peeking-cat-speech {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

/* ==================== FAB CAT EARS ==================== */
.fab-cat-ears {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.fab-cat-ear {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid #e11d48;
  transition: transform 0.2s ease;
}
.fab-cat-ear.left {
  transform: rotate(-16deg);
}
.fab-cat-ear.right {
  transform: rotate(16deg);
}
.stocard-fab:hover .fab-cat-ear.left {
  transform: rotate(-25deg);
}
.stocard-fab:hover .fab-cat-ear.right {
  transform: rotate(25deg);
}

/* ==================== EMPTY STATE CAT ==================== */
.empty-cat-art {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.empty-cat-art svg {
  animation: catFloatY 3s infinite alternate ease-in-out;
}
@keyframes catFloatY {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
