@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&display=swap');

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

:root {
  --bg-primary: #0f0a1a;
  --bg-secondary: #1a1028;
  --accent-pink: #ff6b9d;
  --accent-purple: #c084fc;
  --accent-rose: #fb7185;
  --accent-warm: #fbbf24;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  --text-primary: #f8f0ff;
  --text-secondary: rgba(248, 240, 255, 0.65);
  --text-muted: rgba(248, 240, 255, 0.4);
}

html, body {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(192, 132, 252, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(251, 113, 133, 0.08) 0%, transparent 50%),
    var(--bg-primary);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════
   SCREENS
   ═══════════════════════════════════════════ */
.screen {
  display: none;
}

.screen.active {
  display: flex;
}

/* ═══════════════════════════════════════════
   FLOATING PARTICLES
   ═══════════════════════════════════════════ */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   ROOM SCREEN
   ═══════════════════════════════════════════ */
.room-screen {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.room-container {
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.room-logo {
  font-size: 4rem;
  margin-bottom: 8px;
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.room-title {
  font-family: 'Dancing Script', cursive;
  font-size: 3.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.room-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 28px;
}

.room-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.room-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-align: left;
  padding-left: 4px;
}

.room-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  text-align: left;
  outline: none;
  transition: all 0.3s ease;
}

.room-input:focus {
  border-color: var(--accent-purple);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 30px rgba(192, 132, 252, 0.15);
}

.room-input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0;
}



.room-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.room-btn {
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.room-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.room-btn:hover::before {
  left: 100%;
}

.room-btn-enter {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.room-btn-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 107, 157, 0.4);
}

.room-btn-create {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.room-btn-create:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.room-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.room-error {
  color: var(--accent-rose);
  font-size: 0.9rem;
  min-height: 24px;
  animation: fadeIn 0.3s ease;
}

/* ═══════════════════════════════════════════
   JAR SCREEN
   ═══════════════════════════════════════════ */
.jar-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  justify-content: center;
}

.app-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  text-align: center;
  margin-bottom: 8px;
  animation: fadeInDown 0.8s ease;
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.back-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

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

.header-badges {
  display: flex;
  gap: 6px;
}

.room-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.room-badge-icon {
  font-size: 0.7rem;
}

.header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   STATUS BAR
   ═══════════════════════════════════════════ */
.status-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  animation: fadeIn 1s ease 0.3s both;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-item .icon {
  font-size: 1rem;
}

.status-item .count {
  font-weight: 600;
  color: var(--accent-purple);
}

/* ═══════════════════════════════════════════
   JAR
   ═══════════════════════════════════════════ */
.jar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.2s both;
}

.jar-container {
  position: relative;
  width: 220px;
  height: 280px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.jar-container:hover {
  transform: scale(1.03);
}

.jar-container:active {
  transform: scale(0.98);
}

.jar-lid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 28px;
  background: linear-gradient(180deg, #8b6914, #c9982e, #a07d1e);
  border-radius: 8px 8px 2px 2px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.2);
}

.jar-lid::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 8px;
  background: linear-gradient(180deg, #a07d1e, #8b6914);
  border-radius: 0 0 4px 4px;
}

.jar-neck {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  border-left: 2px solid rgba(255,255,255,0.1);
  border-right: 2px solid rgba(255,255,255,0.1);
  z-index: 2;
}

.jar-body {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 220px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.08) 100%);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 16px 16px 40px 40px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 0 60px rgba(255,255,255,0.03);
}

.jar-body::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 12px;
  width: 30px;
  height: 120px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  border-radius: 20px;
  z-index: 2;
}

.jar-notes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  padding: 8px;
  gap: 3px;
}

.jar-note-piece {
  width: 28px;
  height: 22px;
  border-radius: 3px;
  animation: noteFloat 3s ease-in-out infinite;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.jar-note-piece:nth-child(odd) { animation-delay: -1.5s; }
.jar-note-piece:nth-child(3n) { transform: rotate(-8deg); }
.jar-note-piece:nth-child(3n+1) { transform: rotate(5deg); }
.jar-note-piece:nth-child(3n+2) { transform: rotate(-3deg); }

@keyframes noteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.jar-container.has-notes .jar-body {
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 40px rgba(255, 107, 157, 0.08), inset 0 0 60px rgba(255,107,157,0.04);
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  z-index: 4;
  animation: sparkle 2.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 80px; left: 40px; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 140px; right: 35px; animation-delay: 0.8s; }
.sparkle:nth-child(3) { top: 200px; left: 60px; animation-delay: 1.6s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 0.8; transform: scale(1); }
}

/* ═══════════════════════════════════════════
   OPEN BUTTON
   ═══════════════════════════════════════════ */
.open-btn {
  margin-top: 16px;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35), 0 0 40px rgba(255, 107, 157, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.open-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.open-btn:hover::before { left: 100%; }

.open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 107, 157, 0.45), 0 0 50px rgba(255, 107, 157, 0.15);
}

.open-btn:active { transform: translateY(0); }

.open-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.open-btn:disabled::before { display: none; }

/* ═══════════════════════════════════════════
   REVEALED NOTE CARD
   ═══════════════════════════════════════════ */
.note-reveal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.note-reveal.active {
  opacity: 1;
  pointer-events: all;
}

.note-reveal-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 10, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.note-card {
  position: relative;
  max-width: 360px;
  width: 90%;
  padding: 40px 32px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  text-align: center;
  transform: scale(0.7) translateY(40px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(255, 107, 157, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.note-reveal.active .note-card {
  transform: scale(1) translateY(0);
}

.note-card .heart-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  animation: heartPulse 1.5s ease-in-out infinite;
}

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

.note-card .note-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
}

.note-card .note-date {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.note-card .close-note-btn {
  margin-top: 24px;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.note-card .close-note-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   TODAY NOTE
   ═══════════════════════════════════════════ */
.today-note {
  width: 100%;
  margin-top: 8px;
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-align: center;
  animation: fadeIn 0.5s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.today-note .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-pink);
  margin-bottom: 10px;
  font-weight: 500;
}

.today-note .text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   ALREADY OPENED
   ═══════════════════════════════════════════ */
.already-opened-msg {
  display: none;
  text-align: center;
  margin-top: 12px;
  padding: 12px 20px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  color: var(--accent-warm);
  font-size: 0.9rem;
  animation: fadeIn 0.4s ease;
}

.already-opened-msg.show { display: block; }

/* ═══════════════════════════════════════════
   MANAGEMENT PANEL
   ═══════════════════════════════════════════ */
.panel-toggle {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
}

.toggle-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.toggle-btn .arrow {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.toggle-btn.active .arrow {
  transform: rotate(180deg);
}

.management-panel {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.management-panel.open { max-height: 600px; }

.panel-content { padding-top: 16px; }

.add-note-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.add-note-form textarea {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  resize: none;
  height: 52px;
  transition: all 0.3s ease;
  outline: none;
}

.add-note-form textarea:focus {
  border-color: var(--accent-purple);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.1);
}

.add-note-form textarea::placeholder { color: var(--text-muted); }

.add-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}

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

/* Notes list */
.notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.notes-list::-webkit-scrollbar { width: 4px; }
.notes-list::-webkit-scrollbar-track { background: transparent; }
.notes-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.note-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.3s ease;
}

.note-item:hover { background: rgba(255,255,255,0.06); }

.note-item .note-icon { font-size: 0.9rem; flex-shrink: 0; }
.note-item .note-content {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item .note-status {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}

.note-item .note-status.opened {
  background: rgba(251, 191, 36, 0.1);
  color: var(--accent-warm);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.note-item .note-status.waiting {
  background: rgba(192, 132, 252, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.note-item .delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.note-item .delete-btn:hover {
  color: var(--accent-rose);
  background: rgba(251, 113, 133, 0.1);
}

.empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  display: block;
}

/* ═══════════════════════════════════════════
   LOADING OVERLAY
   ═══════════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 10, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   CONFETTI
   ═══════════════════════════════════════════ */
.confetti-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

.confetti-heart {
  position: absolute;
  font-size: 1.2rem;
  animation: confettiFall linear forwards;
  opacity: 0;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg) scale(0); opacity: 0; }
  10% { opacity: 1; transform: translateY(0) rotate(30deg) scale(1); }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.jar-container.shake { animation: jarShake 0.6s ease; }
@keyframes jarShake {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-5deg); }
  30% { transform: rotate(5deg); }
  45% { transform: rotate(-4deg); }
  60% { transform: rotate(4deg); }
  75% { transform: rotate(-2deg); }
  90% { transform: rotate(2deg); }
}

.jar-container.empty-wobble { animation: emptyWobble 1s ease; }
@keyframes emptyWobble {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  z-index: 300;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

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

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 400px) {
  .header h1 { font-size: 2.2rem; }
  .room-title { font-size: 2.6rem; }
  .jar-container { width: 180px; height: 240px; }
  .jar-body { width: 150px; height: 185px; }
  .jar-lid { width: 120px; }
  .jar-neck { width: 94px; }
  .note-card { padding: 32px 24px; }
}
