/* ========== CSS VARIABLES ========== */
:root {
  /* Default theme (free) */
  --color-primary: #ff7eb6;
  --color-primary-dark: #b794f6;
  --color-primary-light: rgba(255, 155, 209, 0.25);
  --color-accent: #ff7eb6;
  --color-bg-light: #fff1f6;
  --color-bg-mid: #f8f7ff;
  --color-bg-dark: #f3f4ff;
  --color-text: #1f1f1f;
  --color-text-muted: #6b5b7a;
  --color-border: #f1e3ef;
  --color-card-bg: #fff;
  --color-sidebar-bg-start: #fff;
  --color-sidebar-bg-end: #fef6fb;
  --color-shadow: rgba(91, 63, 114, 0.12);
  --color-shadow-strong: rgba(91, 63, 114, 0.25);
  --color-hover-bg: rgba(255, 126, 182, 0.08);
}

* {
  box-sizing: border-box;
}

/* Sky Mist + Crimson Depth */
body[data-theme="sky-mist"] {
  --color-primary: #B7D9FE;
  --color-primary-dark: #6D2239;
  --color-primary-light: rgba(183, 217, 254, 0.25);
  --color-accent: #6D2239;
  --color-bg-light: #E8F4FF;
  --color-bg-mid: #F0F8FF;
  --color-bg-dark: #D5EBFF;
  --color-text: #1a1a1a;
  --color-text-muted: #4a5568;
  --color-border: #C5E3FF;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #F5FBFF;
  --color-shadow: rgba(109, 34, 57, 0.12);
  --color-shadow-strong: rgba(109, 34, 57, 0.25);
  --color-hover-bg: rgba(183, 217, 254, 0.08);
}

/* Soft Linen + Amber Flame */
body[data-theme="soft-linen"] {
  --color-primary: #F4F4DC;
  --color-primary-dark: #D37E2E;
  --color-primary-light: rgba(244, 244, 220, 0.25);
  --color-accent: #D37E2E;
  --color-bg-light: #FDFCE8;
  --color-bg-mid: #FDFDF4;
  --color-bg-dark: #F9F9E0;
  --color-text: #2d2416;
  --color-text-muted: #6b5a42;
  --color-border: #EEEDC5;
  --color-card-bg: #FFFFFE;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #FCFBF0;
  --color-shadow: rgba(211, 126, 46, 0.12);
  --color-shadow-strong: rgba(211, 126, 46, 0.25);
  --color-hover-bg: rgba(244, 244, 220, 0.08);
}

/* Peach Veil + Terra Glow */
body[data-theme="peach-veil"] {
  --color-primary: #FCDED6;
  --color-primary-dark: #DE6044;
  --color-primary-light: rgba(252, 222, 214, 0.25);
  --color-accent: #DE6044;
  --color-bg-light: #FFF0EC;
  --color-bg-mid: #FFF6F3;
  --color-bg-dark: #FFE8E1;
  --color-text: #2d1a16;
  --color-text-muted: #6b4c42;
  --color-border: #F5D1C8;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #FFF8F5;
  --color-shadow: rgba(222, 96, 68, 0.12);
  --color-shadow-strong: rgba(222, 96, 68, 0.25);
  --color-hover-bg: rgba(252, 222, 214, 0.08);
}

/* Lavender Haze + Olive Whisper */
body[data-theme="lavender-haze"] {
  --color-primary: #DBD4FE;
  --color-primary-dark: #808035;
  --color-primary-light: rgba(219, 212, 254, 0.25);
  --color-accent: #808035;
  --color-bg-light: #EFEBFF;
  --color-bg-mid: #F6F4FF;
  --color-bg-dark: #E5DFFF;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5842;
  --color-border: #D1C9F5;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #F8F6FF;
  --color-shadow: rgba(128, 128, 53, 0.12);
  --color-shadow-strong: rgba(128, 128, 53, 0.25);
  --color-hover-bg: rgba(219, 212, 254, 0.08);
}

/* Ivory Glow + Golden Sand */
body[data-theme="ivory-glow"] {
  --color-primary: #F8EEE5;
  --color-primary-dark: #D9C666;
  --color-primary-light: rgba(248, 238, 229, 0.25);
  --color-accent: #D9C666;
  --color-bg-light: #FFF9F2;
  --color-bg-mid: #FFFDF8;
  --color-bg-dark: #FFF4E8;
  --color-text: #2d2416;
  --color-text-muted: #6b5a42;
  --color-border: #F0E3D5;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #FFFCF6;
  --color-shadow: rgba(217, 198, 102, 0.12);
  --color-shadow-strong: rgba(217, 198, 102, 0.25);
  --color-hover-bg: rgba(248, 238, 229, 0.08);
}

/* Cream Glow + Cocoa Drift */
body[data-theme="cream-glow"] {
  --color-primary: #FDFBD7;
  --color-primary-dark: #815E35;
  --color-primary-light: rgba(253, 251, 215, 0.25);
  --color-accent: #815E35;
  --color-bg-light: #FFFEF0;
  --color-bg-mid: #FFFFFB;
  --color-bg-dark: #FFFCE5;
  --color-text: #2d2416;
  --color-text-muted: #6b5542;
  --color-border: #F5F2C8;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #FEFEFC;
  --color-shadow: rgba(129, 94, 53, 0.12);
  --color-shadow-strong: rgba(129, 94, 53, 0.25);
  --color-hover-bg: rgba(253, 251, 215, 0.08);
}

/* Woodland Sky + Misty Blue */
body[data-theme="woodland-sky"] {
  --color-primary: #98CDEB;
  --color-primary-dark: #572C19;
  --color-primary-light: rgba(152, 205, 235, 0.25);
  --color-accent: #572C19;
  --color-bg-light: #E8F6FF;
  --color-bg-mid: #F0F9FF;
  --color-bg-dark: #D5EEFF;
  --color-text: #1a1410;
  --color-text-muted: #4a3c32;
  --color-border: #C5E5F5;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #F5FBFF;
  --color-shadow: rgba(87, 44, 25, 0.12);
  --color-shadow-strong: rgba(87, 44, 25, 0.25);
  --color-hover-bg: rgba(152, 205, 235, 0.08);
}

/* Blush Petal + Wine Shadow */
body[data-theme="blush-petal"] {
  --color-primary: #E0BCD0;
  --color-primary-dark: #430119;
  --color-primary-light: rgba(224, 188, 208, 0.25);
  --color-accent: #430119;
  --color-bg-light: #F8EDF3;
  --color-bg-mid: #FDF5F9;
  --color-bg-dark: #F0E0EA;
  --color-text: #1a0810;
  --color-text-muted: #5a3842;
  --color-border: #E5D1DC;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #FDF8FA;
  --color-shadow: rgba(67, 1, 25, 0.12);
  --color-shadow-strong: rgba(67, 1, 25, 0.25);
  --color-hover-bg: rgba(224, 188, 208, 0.08);
}

/* Lemon Mist + Dark Ruby */
body[data-theme="lemon-mist"] {
  --color-primary: #F7E493;
  --color-primary-dark: #570300;
  --color-primary-light: rgba(247, 228, 147, 0.25);
  --color-accent: #570300;
  --color-bg-light: #FFF9E5;
  --color-bg-mid: #FFFDF5;
  --color-bg-dark: #FFF5D8;
  --color-text: #1a0800;
  --color-text-muted: #5a3532;
  --color-border: #F5EDCA;
  --color-card-bg: #FFFFFF;
  --color-sidebar-bg-start: #FFFFFF;
  --color-sidebar-bg-end: #FFFEFA;
  --color-shadow: rgba(87, 3, 0, 0.12);
  --color-shadow-strong: rgba(87, 3, 0, 0.25);
  --color-hover-bg: rgba(247, 228, 147, 0.08);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, var(--color-bg-light) 0%, var(--color-bg-mid) 45%, var(--color-bg-dark) 100%);
  color: var(--color-text);
  transition: all 0.4s ease;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--color-sidebar-bg-start) 0%, var(--color-sidebar-bg-end) 100%);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-brand {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar-close:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
}

.sidebar-item:hover {
  background: var(--color-hover-bg);
}

.sidebar-item.active {
  background: linear-gradient(90deg, var(--color-hover-bg), var(--color-bg-mid));
  color: var(--color-primary-dark);
  font-weight: 600;
}

.sidebar-icon {
  font-size: 22px;
  width: 28px;
  text-align: center;
}

.sidebar-label {
  flex: 1;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 8px;
}

.burger-menu {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s;
}

.burger-menu:hover {
  background: var(--color-bg-light);
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 2px;
  transition: all 0.3s;
}

.header-title {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== MAIN LAYOUT ========== */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

@media (max-width: 480px) {
  .container {
    padding: 12px;
    gap: 12px;
  }
}

.hero {
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-dark));
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ========== HOME PAGE ========== */
.hero-welcome {
  text-align: center;
  padding: 32px 20px;
}

.hero-welcome h1 {
  font-size: 32px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0 0 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: linear-gradient(135deg, var(--color-card-bg) 0%, var(--color-sidebar-bg-end) 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--color-border);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--color-shadow);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.home-mood-section {
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  border-radius: 20px;
  padding: 32px 24px;
  margin-top: 32px;
}

.home-mood-section h2 {
  text-align: center;
  font-size: 24px;
  margin: 0 0 8px;
}

.section-description {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.mood-art-section {
  margin-top: 32px;
  text-align: center;
}

.mood-art-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.mood-art-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.mood-art-style-selector {
  display: flex;
  gap: 6px;
  align-items: center;
}

.style-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-border);
  background: var(--color-card-bg);
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.style-btn.active {
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
  transform: scale(1.1);
}

#mood-art {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 32px var(--color-shadow);
  background: white;
  transition: opacity 0.3s ease;
}

#mood-art.loading {
  opacity: 0.6;
}

.hero-content h1 {
  margin: 8px 0 10px;
  font-size: 28px;
}

.hero-content p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-card-bg);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  background: var(--color-card-bg);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 28px var(--color-shadow);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

textarea {
  min-height: 90px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  resize: vertical;
}

label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.required {
  color: var(--color-primary);
  margin-left: 4px;
}

.note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
}

.radio-group {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
}

.radio-group .label {
  font-size: 13px;
  color: #6b5a7a;
}

.radio-group label {
  font-size: 13px;
  color: var(--color-text-muted);
}

input,
button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 14px;
}

button {
  background: var(--color-primary);
  color: var(--color-card-bg);
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

button.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

button.ghost {
  background: var(--color-card-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

button.danger {
  background: var(--color-hover-bg);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--color-shadow);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.row {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.wishlist-row {
  width: 100%;
  text-align: left;
  background: var(--color-card-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: none;
}

.wishlist-row:hover {
  background: var(--color-hover-bg);
  box-shadow: none;
}

.muted {
  color: var(--color-text-muted);
  font-size: 12px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-card-bg);
  padding: 10px 16px 18px;
  box-shadow: 0 -8px 24px var(--color-shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  z-index: 20;
}

.bottom-nav .tab {
  background: var(--color-bg-light);
  color: var(--color-text-muted);
  border: none;
  border-radius: 14px;
  padding: 10px 8px;
  font-size: 13px;
}

.bottom-nav .tab.active {
  background: var(--color-hover-bg);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.wishlist-layout {
  display: grid;
}

.wishlist-view {
  display: none;
  gap: 12px;
}

.wishlist-view.active {
  display: grid;
}

.section-title {
  font-weight: 600;
  margin-top: 8px;
  color: var(--color-text-muted);
}

.wishlist-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
  gap: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wishlist-title {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.back-link {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  padding: 0;
  margin-bottom: 6px;
  text-align: left;
}

.empty-state {
  background: var(--color-bg-mid);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--color-border);
}

.empty-illustration {
  font-size: 44px;
  margin-bottom: 8px;
}

.empty-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.empty-mini {
  background: var(--color-hover-bg);
  padding: 12px;
  border-radius: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

.list .row:last-child {
  border-bottom: none;
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 6px 0 8px;
}

.mood-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, var(--color-hover-bg) 0%, var(--color-bg-mid) 100%);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
}

.preview-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.preview-swatch {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.preview-swatch::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: inherit;
  opacity: 0.2;
  filter: blur(8px);
  z-index: -1;
}

#mood-wheel {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 8px solid var(--color-card-bg);
  box-shadow: 0 10px 24px var(--color-shadow), 0 0 40px var(--color-primary-light);
  background: var(--color-card-bg);
  cursor: pointer;
  transition: transform 0.2s ease;
}

#mood-wheel:active {
  transform: scale(0.98);
}

.wheel-center {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-card-bg);
  box-shadow: inset 0 0 0 1px var(--color-border), 0 4px 12px var(--color-shadow);
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}

.wheel-center::before {
  content: '';
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: var(--selected-color, transparent);
  transition: background 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wheel-picker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--color-card-bg);
  box-shadow: 0 2px 8px var(--color-shadow), 0 0 0 2px var(--color-primary-light);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.2s ease;
  animation: pickerPulse 1.5s ease-in-out infinite;
}

.calendar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  background: var(--color-bg-mid);
  color: var(--color-text-muted);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
}

.pill.active {
  background: var(--color-primary);
  color: var(--color-card-bg);
}

.calendar {
  margin-top: 12px;
}

.mood-art {
  margin-top: 20px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-hover-bg) 0%, var(--color-bg-mid) 100%);
  border-radius: 18px;
  border: 1px solid var(--color-border);
}

.mood-art-title {
  font-weight: 600;
  color: #6b5a7a;
  font-size: 16px;
  text-align: center;
}

.mood-art img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 20px var(--color-shadow), 0 0 40px var(--color-primary-light);
  transition: transform 0.3s ease;
}

.mood-art img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px var(--color-shadow), 0 0 60px var(--color-primary-light);
}

.cal-header {
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-text-muted);
  text-transform: capitalize;
  font-size: 18px;
  padding: 12px;
  background: linear-gradient(135deg, var(--color-hover-bg) 0%, var(--color-bg-mid) 100%);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 4px;
}

.cal-label {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
}

.cal-cell {
  background: var(--color-hover-bg);
  border: none;
  border-radius: 10px;
  padding: 8px 0;
  text-align: center;
  color: var(--color-text-muted);
  position: relative;
  display: grid;
  gap: 4px;
  place-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cal-cell:hover {
  background: var(--color-bg-light);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.cal-cell.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cal-cell.today {
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.day-number {
  font-size: 12px;
}

.marker {
  font-size: 12px;
  line-height: 1;
}

.marker.mood {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.8);
  animation: fadeIn 0.4s ease;
  position: relative;
}

.marker.mood::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  filter: blur(4px);
  z-index: -1;
}

.cal-cell.selected {
  background: var(--color-primary);
  color: var(--color-card-bg);
}

.form-split {
  display: grid;
  gap: 12px;
}

.gift-photos {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.gift-photos img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.gift-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.gift-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px var(--color-shadow);
  display: grid;
  gap: 10px;
}

.gift-media {
  display: grid;
  place-items: center;
}

.media-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: var(--color-bg-light);
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--color-primary-dark);
}

.carousel {
  position: relative;
  width: 140px;
  height: 140px;
}

.carousel .slide {
  position: absolute;
  inset: 0;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.carousel .slide.active {
  opacity: 1;
}

.carousel .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  padding: 0;
}

.carousel .nav.prev {
  left: -10px;
}

.carousel .nav.next {
  right: -10px;
}

.carousel .dots {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.carousel .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
}

.carousel .dot.active {
  background: var(--color-primary);
}

.gift-body {
  display: grid;
  gap: 6px;
}

.gift-title {
  font-weight: 600;
  color: var(--color-text);
}

.reserve-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--color-bg-light);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  width: fit-content;
}

.reserve-badge.reserved {
  background: var(--color-hover-bg);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-bg-mid);
  color: var(--color-primary-dark);
  text-decoration: none;
  font-size: 12px;
  border: 1px solid var(--color-border);
}

.owner-card {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  max-width: 280px;
}

.owner-card .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner-name {
  font-weight: 600;
  color: var(--color-text);
}

.owner-comment {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ========== SHARE MODE (VIEW-ONLY FOR FRIENDS IN MINIAPP) ========== */
/* Hide specific action buttons but keep sidebar and reactions visible */
body.share-mode [data-action='add-gift'],
body.share-mode [data-action='share-wishlist'],
body.share-mode [data-action='delete-wishlist'],
body.share-mode [data-action='delete-gift'],
body.share-mode [data-action='unreserve-gift'],
body.share-mode .back-link,
body.share-mode .empty-actions,
body.share-mode button[data-action='add-gift'],
body.share-mode button[data-action='share-wishlist'],
body.share-mode button[data-action='delete-wishlist'] {
  display: none !important;
  visibility: hidden !important;
}

body.share-mode .owner-card {
  display: flex !important;
}

body.share-mode .detail-actions button[data-action='add-gift'],
body.share-mode .detail-actions button[data-action='share-wishlist'],
body.share-mode .detail-actions button[data-action='delete-wishlist'] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 12, 24, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
  animation: fadeIn 0.3s ease;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--color-card-bg);
  border-radius: 18px;
  padding: 18px;
  max-width: 320px;
  width: 100%;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 40px var(--color-shadow-strong);
  animation: scaleIn 0.3s ease;
  transform-origin: center;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.image-upload-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-divider {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  position: relative;
}

.upload-divider::before,
.upload-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}

.upload-divider::before {
  left: 0;
}

.upload-divider::after {
  right: 0;
}

.file-upload-label {
  display: inline-block;
  padding: 12px 20px;
  background: var(--color-bg-light);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background: var(--color-bg-mid);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.file-preview {
  margin-top: 8px;
  padding: 8px;
  background: var(--color-bg-light);
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.file-preview img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 8px;
  margin-top: 8px;
}

.share-view [data-action='add-gift'],
.share-view [data-action='delete-wishlist'],
.share-view [data-action='share-wishlist'],
.share-view [data-action='back-to-list'] {
  display: none;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px var(--color-primary-light);
  }
  50% {
    box-shadow: 0 0 0 4px var(--color-primary-light), 0 0 12px var(--color-primary-light);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes pickerPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Gift Priority Badges */
.gift-priority {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.gift-priority.priority-1 {
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-primary-light));
  color: var(--color-primary-dark);
}

.gift-priority.priority-2 {
  background: linear-gradient(135deg, var(--color-bg-mid), var(--color-bg-dark));
  color: var(--color-primary-dark);
}

.gift-priority.priority-3 {
  background: var(--color-bg-mid);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ============= DREAMS SECTION ============= */

.dreams-container {
  display: grid;
  gap: 18px;
}

.quote-card {
  background: linear-gradient(135deg, var(--color-hover-bg) 0%, var(--color-bg-mid) 100%);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  display: grid;
  gap: 12px;
  place-items: center;
  box-shadow: 0 4px 16px var(--color-shadow);
}

.quote-icon {
  font-size: 32px;
  animation: pulse 2s ease-in-out infinite;
}

.quote-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
}

.quote-author {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.ghost-small {
  background: var(--color-card-bg);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.ghost-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.primary-small {
  background: var(--color-primary);
  color: var(--color-card-bg);
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.dreams-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
}

.dreams-tab {
  background: var(--color-bg-mid);
  color: var(--color-text-muted);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.dreams-tab.active {
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  color: var(--color-primary-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.dreams-section {
  display: none;
  gap: 14px;
}

.dreams-section.active {
  display: grid;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-header h3 {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 18px;
}

/* Vision Board */

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.vision-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.vision-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--color-shadow);
}

.vision-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.vision-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  display: grid;
  place-items: center;
  font-size: 48px;
}

.vision-content {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.vision-title {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 15px;
}

.vision-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.vision-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: 0.2s ease;
  opacity: 0;
}

.vision-card:hover .vision-delete {
  opacity: 1;
}

.vision-delete:hover {
  background: var(--color-hover-bg);
  transform: scale(1.1);
}

/* Goals */

.goals-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.goals-container {
  display: grid;
  gap: 12px;
}

.goal-card {
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px var(--color-shadow);
  display: grid;
  gap: 10px;
  transition: transform 0.3s ease;
}

.goal-card:hover {
  transform: translateX(4px);
}

.goal-card.completed {
  opacity: 0.7;
  background: linear-gradient(135deg, #f0fff4 0%, #f0fdf4 100%);
}

.goal-card.completed .goal-stage {
  cursor: default;
  pointer-events: none;
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.goal-title {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 16px;
}

.goal-actions {
  display: flex;
  gap: 6px;
}

.icon-btn {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.7;
  transition: 0.2s ease;
}

.icon-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

.goal-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.goal-date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.progress-bar {
  position: relative;
  height: 24px;
  background: var(--color-bg-mid);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  z-index: 1;
}

.progress-slider {
  width: 100%;
  max-width: 100%;
  height: 6px;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--color-bg-mid);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.progress-slider-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 0 6px;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-card-bg);
  box-shadow: 0 2px 6px var(--color-shadow);
}

.progress-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 2px solid var(--color-card-bg);
  box-shadow: 0 2px 6px var(--color-shadow);
}

.completed-badge {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Theme settings */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.theme-card {
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.theme-lock {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 14px;
  opacity: 0.7;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--color-shadow);
}

.theme-card.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.theme-swatch {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.theme-swatch span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.theme-name {
  font-weight: 600;
  color: var(--color-primary-dark);
}

.theme-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Ensure brand gradient stays as text only */
.sidebar-brand {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Bucket List */

.bucket-container {
  display: grid;
  gap: 10px;
}

.bucket-item {
  background: var(--color-card-bg);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.2s ease;
}

.bucket-item:hover {
  transform: translateX(4px);
}

.bucket-item.completed {
  opacity: 0.7;
  background: var(--color-bg-mid);
}

.bucket-item.completed .bucket-title {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.bucket-checkbox {
  position: relative;
  cursor: pointer;
  display: block;
  flex-shrink: 0;
}

.bucket-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  display: block;
  width: 24px;
  height: 24px;
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  transition: 0.2s ease;
}

.bucket-checkbox:hover .checkmark {
  border-color: var(--color-primary);
}

.bucket-checkbox input:checked ~ .checkmark {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-color: var(--color-primary);
}

.bucket-checkbox input:checked ~ .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-card-bg);
  font-size: 16px;
  font-weight: bold;
}

.bucket-content {
  flex: 1;
  display: grid;
  gap: 6px;
}

.bucket-title {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 15px;
}

.bucket-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.bucket-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.category-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-mid);
  color: var(--color-text-muted);
  font-size: 11px;
  border: 1px solid var(--color-border);
}

.priority-stars {
  font-size: 12px;
}

/* Modals for Dreams */

.priority-select {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-btn {
  background: var(--color-bg-mid);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.priority-btn.active {
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.empty-state-mini {
  background: var(--color-bg-mid);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed var(--color-border);
  display: grid;
  gap: 8px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.empty-state-mini p {
  margin: 0;
}

/* Priority Pills */
.priority-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-pill {
  background: var(--color-bg-mid);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.priority-pill.active {
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.priority-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-shadow);
}

/* Gift Priority Badges */
.gift-priority {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.gift-priority.priority-1 {
  background: linear-gradient(135deg, #ffe6f1, #ffd6e7);
  color: #c41e5f;
}

.gift-priority.priority-2 {
  background: linear-gradient(135deg, #f5f0ff, #e9e3ff);
  color: #7b3f61;
}

.gift-priority.priority-3 {
  background: var(--color-bg-light);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Collective Gift Progress */
.collective-progress {
  margin-top: 8px;
  padding: 10px;
  background: linear-gradient(135deg, var(--color-hover-bg) 0%, var(--color-bg-mid) 100%);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.collective-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.collective-bar {
  height: 20px;
  background: var(--color-bg-mid);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

.collective-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
  border-radius: 999px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--color-shadow);
}

.collective-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.contribute-btn {
  margin-top: 8px;
  width: 100%;
}

.contributors-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.contributor-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.contributor-name {
  font-weight: 600;
  color: var(--color-text-muted);
}

.contributor-amount {
  color: var(--color-primary);
  font-weight: 600;
}

.contribute-info {
  padding: 12px;
  background: var(--color-hover-bg);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.contribute-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ============= SOCIAL FEATURES ============= */

/* Search Bar */
.search-container {
  position: relative;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #f1e3ef;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: var(--color-bg-mid);
}

.search-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.search-info {
  flex: 1;
}

.search-name {
  font-weight: 600;
  color: var(--color-text);
}

.search-username {
  font-size: 13px;
  color: var(--color-text-muted);
}

.search-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-primary-light));
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
}

/* Profile Header */
.profile-header {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, var(--color-hover-bg) 0%, var(--color-bg-mid) 100%);
  border-radius: 18px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    gap: 12px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
}

/* Premium Avatar Animation */
.profile-avatar.premium {
  border: 4px solid transparent;
  background: 
    linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
    linear-gradient(90deg, 
      var(--color-primary) 0%, 
      var(--color-primary-dark) 25%, 
      var(--color-accent) 50%, 
      var(--color-primary) 75%, 
      var(--color-primary) 100%
    ) border-box;
  animation: premiumGlow 4s linear infinite;
  box-shadow: 0 0 20px var(--color-shadow);
}

@keyframes premiumGlow {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(180deg) brightness(1.1);
  }
  100% {
    filter: hue-rotate(360deg) brightness(1);
  }
}

.profile-info {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.profile-info button {
  margin-right: 8px;
  margin-bottom: 4px;
}

.profile-info h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  color: var(--color-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.premium-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-accent) 100%);
  color: white;
  border-radius: 6px;
  letter-spacing: 0.5px;
  animation: premiumBadgeGlow 3s ease-in-out infinite;
  box-shadow: 0 2px 8px var(--color-shadow);
}

@keyframes premiumBadgeGlow {
  0%, 100% {
    box-shadow: 0 2px 8px var(--color-shadow);
  }
  50% {
    box-shadow: 0 2px 12px var(--color-shadow-strong);
  }
}

.profile-username {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.stat:hover {
  transform: translateY(-2px);
}

.stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #7b3f61;
}

/* ============= NOTIFICATIONS ============= */

.notification-badge {
  background: #ff4757;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: auto;
  min-width: 18px;
  text-align: center;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.notif-header h1 {
  margin: 0;
  font-size: 28px;
}

.notif-actions {
  display: flex;
  gap: 8px;
}

.notif-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.notif-list {
  display: grid;
  gap: 10px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--color-card-bg);
  border-radius: 14px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
}

.notif-item:hover {
  background: var(--color-hover-bg);
  transform: translateX(4px);
}

.notif-item.unread {
  background: linear-gradient(135deg, var(--color-hover-bg) 0%, var(--color-bg-mid) 100%);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-shadow);
}

.notif-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-hover-bg), var(--color-bg-mid));
  border-radius: 12px;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
  font-size: 15px;
}

.notif-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.notif-time {
  font-size: 11px;
  color: var(--color-text-muted);
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Settings */

.settings-grid {
  display: grid;
  gap: 24px;
}

.setting-section {
  display: grid;
  gap: 12px;
}

.setting-section h3 {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--color-bg-mid);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
}

.setting-item:hover {
  background: var(--color-hover-bg);
  border-color: var(--color-primary);
}

.setting-info {
  flex: 1;
}

.setting-title {
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
  font-size: 14px;
}

.setting-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.setting-toggle {
  width: 48px;
  height: 28px;
  appearance: none;
  background: #ddd;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
}

.setting-toggle:checked {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.setting-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.setting-toggle:checked::after {
  transform: translateX(20px);
}

.setting-input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  font-size: 14px;
  flex-shrink: 0;
}

/* ============= TOAST NOTIFICATIONS ============= */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 400px;
  padding: 14px 18px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
  transform: none;
  box-shadow: none;
}

.toast-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-left: 4px solid #10b981;
}

.toast-error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-left: 4px solid #ef4444;
}

.toast-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 4px solid #f59e0b;
}

.toast-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-left: 4px solid #3b82f6;
}

@media (max-width: 480px) {
  .toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
  }
  
  .toast {
    min-width: unset;
    max-width: unset;
  }
}

.stat-label {
  font-size: 11px;
  color: #9a8dad;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-bio {
  padding: 16px;
  background: var(--color-bg-mid);
  border-radius: 12px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

/* Profile Tabs */
.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-border);
}

.profile-tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.profile-tab-btn.active {
  color: var(--color-primary);
}

.profile-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
}

/* User List */
.user-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.user-list-item:hover {
  background: var(--color-bg-mid);
}

.user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.user-username {
  font-size: 13px;
  color: var(--color-text-muted);
}

.ghost-small {
  padding: 6px 14px;
  font-size: 13px;
  background: none;
  border: 1px solid #f1e3ef;
  color: #7b3f61;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.ghost-small:hover {
  background: var(--color-bg-mid);
  border-color: var(--color-primary);
}

/* Reactions */
.reactions-container {
  margin: 16px 0;
  padding: 16px;
  background: var(--color-bg-mid);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.reactions-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.reactions-empty {
  text-align: center;
  padding: 12px;
  color: #9a8dad;
  font-size: 13px;
}

.reaction-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border-radius: 999px;
  border: 2px solid #f1e3ef;
  cursor: pointer;
  transition: all 0.2s;
}

.reaction-group:hover {
  transform: scale(1.05);
  border-color: #ff7eb6;
}

.reaction-group.active {
  background: linear-gradient(135deg, #ffe6f1, #ffd6e7);
  border-color: #ff7eb6;
}

.reaction-emoji {
  font-size: 18px;
}

.reaction-count {
  font-size: 13px;
  font-weight: 600;
  color: #7b3f61;
}

.add-reaction-btn {
  padding: 8px 16px;
  background: white;
  border: 2px dashed #f1e3ef;
  border-radius: 999px;
  color: #9a8dad;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-reaction-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg-light);
}

/* Emoji Picker */
.emoji-picker {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 10000;
  animation: fadeIn 0.2s;
}

.emoji-btn {
  font-size: 32px;
  padding: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 8px;
}

.emoji-btn:hover {
  transform: scale(1.3);
  background: var(--color-bg-light);
}

.emoji-btn.premium {
  position: relative;
}

.emoji-btn.premium.locked::after {
  content: '🔒';
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 12px;
  opacity: 0.8;
  filter: drop-shadow(0 0 2px white);
}

.emoji-btn.premium.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.emoji-btn.premium.locked:hover::after {
  opacity: 1;
}

/* Feed */
.feed-list {
  display: grid;
  gap: 12px;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--color-bg-light);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s;
}

.feed-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 126, 182, 0.15);
}

.feed-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.feed-content {
  flex: 1;
}

.feed-text {
  color: #2d1b3d;
  line-height: 1.5;
  margin-bottom: 4px;
}

.feed-text strong {
  font-weight: 600;
  color: #7b3f61;
}

.feed-time {
  font-size: 12px;
  color: #9a8dad;
}

/* Wishlist Card in Profile */
.wishlist-card {
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #f1e3ef;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.wishlist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 126, 182, 0.15);
}

.wishlist-card h3 {
  margin: 0 0 8px 0;
  color: #2d1b3d;
  font-size: 18px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9a8dad;
}

/* Goal Stages */
.goal-stages {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.goal-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 2px solid #e8dce5;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.goal-stage:hover {
  transform: scale(1.02);
  border-color: #ff7eb6;
}

.goal-stage.done {
  background: linear-gradient(135deg, #d4f5d4, #b8e9b8);
  border-color: #4caf50;
}

.goal-stage .stage-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.goal-stage.done .stage-check {
  background: #4caf50;
  color: white;
}

.goal-stage .stage-title {
  color: #6b5b7a;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goal-stage.done .stage-title {
  text-decoration: line-through;
  color: #4caf50;
}

/* Stage inputs in modal */
.stages-section {
  margin: 16px 0;
}

.stages-section label {
  font-weight: 600;
  color: #6b5b7a;
  margin-bottom: 8px;
  display: block;
}

.stages-section .muted.small {
  font-size: 12px;
  margin-bottom: 12px;
}

.stage-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stage-input .stage-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7eb6, #ff9a8b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.stage-input input {
  flex: 1;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: var(--color-bg-light);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============= PREMIUM STYLES ============= */

/* Premium button in sidebar */
.sidebar-item.premium-button {
  background: linear-gradient(135deg, #ff7eb6 0%, #b794f6 100%);
  color: white;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  animation: premiumPulse 2s ease-in-out infinite;
}

.sidebar-item.premium-button:hover {
  background: linear-gradient(135deg, #ff6ba5 0%, #a683e5 100%);
  transform: translateX(8px) scale(1.02);
}

.sidebar-item.premium-button .premium-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes premiumPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 126, 182, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 126, 182, 0);
  }
}

/* Premium Modal */
.premium-modal-content {
  max-width: 380px;
  text-align: center;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd77e, #ff9a8b);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  animation: premiumBadgeGlow 2s ease-in-out infinite;
}

@keyframes premiumBadgeGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 126, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 126, 0.9);
  }
}

.premium-subtitle {
  color: #8b7ba8;
  font-size: 16px;
  margin: 8px 0 24px;
}

.premium-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  text-align: left;
}

.premium-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fff1f6 0%, #f7e9ff 100%);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.premium-feature:hover {
  border-color: #ff7eb6;
  transform: translateY(-2px);
}

.feature-emoji {
  font-size: 32px;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 14px;
  color: #8b7ba8;
}

.premium-price {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #ffe6f2 0%, #e6d9ff 100%);
  border-radius: 16px;
}

.price-old {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-new {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff7eb6, #b794f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.price-note {
  font-size: 14px;
  color: #8b7ba8;
}

.premium-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 32px !important;
  box-shadow: 0 4px 20px var(--color-shadow);
  animation: premiumButtonGlow 2s ease-in-out infinite;
}

.premium-btn:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
  box-shadow: 0 6px 25px var(--color-shadow-strong);
  transform: translateY(-2px);
}

@keyframes premiumButtonGlow {
  0%, 100% {
    box-shadow: 0 4px 20px var(--color-shadow);
  }
  50% {
    box-shadow: 0 6px 30px var(--color-shadow-strong);
  }
}

/* Premium theme lock overlay */
.theme-card.locked {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
}

.theme-card.locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  opacity: 0.8;
}

.theme-card.locked:hover {
  transform: none;
  border-color: #f1e3ef;
}

/* ============= COMPATIBILITY STYLES ============= */

.compatibility-header {
  text-align: center;
  margin-bottom: 30px;
}

.compatibility-stats {
  background: linear-gradient(135deg, #fff1f6 0%, #f3f4ff 100%);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.stat-label {
  color: #666;
}

.stat-value {
  font-weight: 700;
  color: #ff7eb6;
  font-size: 16px;
}

.stat-premium {
  background: linear-gradient(135deg, #ffb6d9, #d6b8ff);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.compatibility-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.person-section {
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.3s;
}

.person-section:focus-within {
  border-color: var(--color-primary);
}

.person-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.person-icon {
  font-size: 32px;
}

.person-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.gender-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.gender-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--color-bg-light);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.gender-option input[type="radio"] {
  display: none;
}

.gender-option input[type="radio"]:checked + span {
  color: #ff7eb6;
}

.gender-option input[type="radio"]:checked ~ .gender-option {
  background: linear-gradient(135deg, #fff1f6, #f8f7ff);
  border-color: #ff7eb6;
}

.gender-option:has(input:checked) {
  background: linear-gradient(135deg, #fff1f6, #f8f7ff);
  border-color: #ff7eb6;
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 8px;
}

.date-inputs select {
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-card-bg);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.3s;
}

.date-inputs select:focus {
  outline: none;
  border-color: #ff7eb6;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.save-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #666;
}

.save-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.save-checkbox input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.premium-lock {
  font-size: 12px;
  margin-left: 4px;
  opacity: 0.7;
}

/* Results Section */

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.results-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-icon:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

#compatibility-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-card {
  background: linear-gradient(135deg, #fff1f6 0%, #f8f7ff 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid #f0e6ed;
}

.result-card h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #ff7eb6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-card p {
  margin: 8px 0;
  color: #555;
  line-height: 1.6;
}

.compatibility-score {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb6d9, #d6b8ff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 126, 182, 0.3);
}

.score-number {
  font-size: 36px;
  line-height: 1;
}

.score-label {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

.chakre-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}

.chakre-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-card-bg);
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--color-border);
}

.chakre-icon {
  font-size: 20px;
}

.balance-bar {
  display: flex;
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 16px;
  border: 2px solid #e8e6f0;
}

.balance-male {
  background: linear-gradient(90deg, #89CFF0, #5DADE2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.balance-female {
  background: linear-gradient(90deg, #FFB6D9, #FF7EB6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.zodiac-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.zodiac-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.zodiac-sign {
  font-size: 32px;
  margin-bottom: 8px;
}

.zodiac-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.zodiac-element {
  font-size: 12px;
  color: #999;
}

/* History Section */

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.history-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.btn-text {
  background: none;
  border: none;
  color: #ff7eb6;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s;
}

.btn-text:hover {
  background: var(--color-bg-light);
}

.history-premium-block {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-mid) 100%);
  border-radius: 16px;
  border: 2px dashed var(--color-border);
}

.history-premium-block .premium-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.history-premium-block h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 20px;
}

.history-premium-block p {
  color: #666;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

#history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: var(--color-card-bg);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item:hover {
  border-color: #ff7eb6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 126, 182, 0.15);
}

.history-item.locked {
  cursor: default;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.history-item.locked:hover {
  border-color: #f0e6ed;
  transform: none;
  box-shadow: none;
}

.history-lock {
  margin-left: 6px;
}

.history-date {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-persons {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-delete {
  background: none;
  border: none;
  color: #ff7eb6;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 18px;
  transition: background 0.3s;
}

.history-delete:hover {
  background: var(--color-bg-light);
}

/* Responsive */

/* Compatibility Modal Styles */
#compatibility-modal {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.3) transparent;
}

#compatibility-modal > div {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.3) transparent;
}

#compatibility-modal > div::-webkit-scrollbar {
  width: 8px;
}

#compatibility-modal > div::-webkit-scrollbar-track {
  background: transparent;
}

#compatibility-modal > div::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

#compatibility-modal > div::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
  .date-inputs {
    grid-template-columns: 1fr;
  }
  
  .zodiac-info {
    grid-template-columns: 1fr;
  }
  
  .compatibility-stats {
    padding: 16px;
  }
  
  #compatibility-modal > div {
    max-height: 100vh;
    border-radius: 0 !important;
  }
  
  #compatibility-modal > div > div:first-child {
    border-radius: 0 !important;
  }
}

/* ========== ADMIN PANEL ========== */
.admin-body {
  background: radial-gradient(circle at top, #f2f7ff 0%, #f7f1ff 50%, #fff1f7 100%);
}

.admin-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  gap: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-card-bg);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px var(--color-shadow);
}

.admin-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.admin-subtitle {
  margin: 0;
  color: #666;
}

.admin-backup {
  background: linear-gradient(135deg, #ff7eb6, #b794f6);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(183, 148, 246, 0.35);
}

.admin-backup:hover {
  opacity: 0.9;
}

.admin-card {
  background: var(--color-card-bg);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px var(--color-shadow);
}

.admin-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-actions label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #666;
  gap: 6px;
}

.admin-actions input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e6e0f0;
  font-size: 14px;
}

.admin-actions select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  background: var(--color-card-bg);
}

.admin-actions button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--color-bg-light);
  font-weight: 600;
  cursor: pointer;
}

.admin-actions button:hover {
  background: var(--color-bg-mid);
}

.admin-status {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.admin-status-success {
  color: #2f8f4e;
}

.admin-status-error {
  color: #d34848;
}

.admin-status-warning {
  color: #d3872e;
}

.admin-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-metrics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.admin-metrics li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
}

.admin-metrics strong {
  color: #333;
  font-weight: 600;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.admin-list li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  background: var(--color-bg-light);
}

.admin-list li:hover {
  background: var(--color-bg-mid);
}

.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.admin-user-name {
  font-size: 18px;
  font-weight: 700;
}

.admin-user-sub {
  font-size: 13px;
  color: #666;
}

.admin-form {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1ecf6;
}

.admin-form h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

@media (max-width: 720px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-backup {
    width: 100%;
  }
}

/* Additional profile responsive styles */
@media (max-width: 480px) {
  .profile-info button {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .profile-stats {
    justify-content: space-around;
    gap: 16px;
  }
  
  .stat {
    min-width: 60px;
  }
  
  .profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .profile-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

