@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* --- CSS Variables & Design System --- */
:root {
  --bg-dark: #080106;
  --bg-velvet: #1a0512;
  --bg-card: rgba(32, 10, 24, 0.6);
  --border-glow: rgba(255, 0, 127, 0.15);
  --border-light: rgba(255, 255, 255, 0.06);
  
  --primary-pink: #ff007f;
  --primary-pink-glow: rgba(255, 0, 127, 0.4);
  --primary-violet: #7209b7;
  --primary-violet-glow: rgba(114, 9, 183, 0.4);
  --accent-gold: #f72585;
  --accent-gold-glow: rgba(247, 37, 133, 0.4);
  --accent-blue: #ffb703;
  --accent-blue-glow: rgba(255, 183, 3, 0.4);
  
  --text-primary: #faeef4;
  --text-secondary: #c9b1bd;
  --text-muted: #735161;
  
  --font-title: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-snappy: all 0.15s ease-out;
}

/* --- Base Reset & Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(157, 78, 221, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 42, 95, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(9, 4, 14, 1) 0%, rgba(19, 10, 28, 0.95) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink-glow);
}

/* --- Layout & Structure --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem 1rem; /* Extra bottom padding for mobile navigation bar */
}

/* --- Branding Header --- */
header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-top: 1rem;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #fff 10%, #ff8da7 50%, var(--primary-violet) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 15px rgba(255, 42, 95, 0.25));
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
}

.brand-subtitle span {
  color: var(--primary-pink);
  font-size: 1.1rem;
  margin: 0 0.25rem;
}

/* --- Dashboard / Stats Panel --- */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 42, 95, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 42, 95, 0.05);
}

/* Progress Stats */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-value {
  font-weight: 600;
  font-size: 1rem;
}

.stat-bar-outer {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-top: 0.4rem;
  overflow: hidden;
  position: relative;
}

.stat-bar-inner {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.1, 1, 0.1, 1);
}

.bar-pink {
  background: linear-gradient(90deg, var(--primary-pink), #ff7a00);
  box-shadow: 0 0 10px var(--primary-pink-glow);
}

.bar-blue {
  background: linear-gradient(90deg, var(--accent-blue), var(--primary-violet));
  box-shadow: 0 0 10px var(--accent-blue-glow);
}

.bar-gold {
  background: linear-gradient(90deg, var(--accent-gold), #fff);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Badge System Widget */
.badge-widget {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.badge-icon-container {
  font-size: 3rem;
  filter: drop-shadow(0 0 15px var(--accent-gold-glow));
  animation: float 4s ease-in-out infinite;
}

.badge-info h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--accent-gold);
  margin-bottom: 0.2rem;
}

.badge-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Filter & Category Scroller --- */
.category-filter-wrapper {
  overflow-x: auto;
  display: flex;
  gap: 0.8rem;
  padding: 0.5rem 0.2rem 1.2rem 0.2rem;
  margin-bottom: 1.5rem;
  scrollbar-width: none; /* Firefox */
}

.category-filter-wrapper::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-violet));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 5px 15px rgba(255, 42, 95, 0.25);
  transform: translateY(-2px);
}

/* Sub-filter states */
.status-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.status-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.status-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-pink);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.status-btn.active {
  color: var(--primary-pink);
  font-weight: 600;
}

.status-btn.active::after {
  width: 100%;
}

/* --- Achievements Grid --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.achievement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-violet);
  opacity: 0.7;
}

.achievement-card.matched::before {
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-pink));
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.difficulty-tag {
  font-size: 0.75rem;
  color: var(--accent-gold);
  background: rgba(229, 169, 59, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(229, 169, 59, 0.2);
  letter-spacing: 0.05em;
}

.category-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.2em; /* Keeps card heights consistent */
  line-height: 1.4;
}

.card-tips-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  align-self: flex-start;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}

.card-tips-toggle:hover {
  color: var(--primary-pink);
}

.card-tips-content {
  display: none;
  font-size: 0.8rem;
  color: var(--accent-gold);
  background: rgba(229, 169, 59, 0.06);
  border-left: 2px solid var(--accent-gold);
  padding: 0.5rem 0.8rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

/* Interaction Panel (Checkbox Controls) */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
}

.couple-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.partner-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.partner-a-label {
  color: var(--primary-pink);
}

.partner-b-label {
  color: var(--accent-blue);
}

.action-select-wrapper {
  display: flex;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 2px;
  border: 1px solid var(--border-light);
  justify-content: space-between;
}

.state-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-snappy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-btn:hover {
  color: var(--text-secondary);
}

/* Active Selection States */
.state-btn.active-unlocked.pa {
  background: var(--primary-pink);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-pink-glow);
}

.state-btn.active-want.pa {
  background: rgba(255, 42, 95, 0.2);
  color: var(--primary-pink);
  border: 1px solid var(--primary-pink);
}

.state-btn.active-unlocked.pb {
  background: var(--accent-blue);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 10px var(--accent-blue-glow);
}

.state-btn.active-want.pb {
  background: rgba(0, 240, 255, 0.2);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

/* Matched State styling on Card */
.achievement-card.matched {
  border-color: rgba(229, 169, 59, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 169, 59, 0.08);
}

.match-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--accent-gold), var(--primary-pink));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  box-shadow: 0 0 10px var(--primary-pink-glow);
  z-index: 2;
  animation: pulse-glow 2s infinite;
}

/* --- Tab Views --- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

/* --- Secret Matcher View --- */
.matcher-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.matcher-header h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-gold);
}

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

.matcher-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.info-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.info-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Card Draw / Randomizer View --- */
.card-draw-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 0;
}

.draw-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.custom-select {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.draw-btn {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-violet));
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.3);
}

.draw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 95, 0.4);
}

.sex-card-scene {
  width: 100%;
  height: 380px;
  perspective: 1000px;
  margin-bottom: 2rem;
  cursor: pointer;
}

.sex-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sex-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.sex-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.sex-card-front {
  background: linear-gradient(135deg, #180d28 0%, #09040e 100%);
  border-color: rgba(255, 42, 95, 0.2);
}

.card-pattern {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 2px dashed rgba(255, 42, 95, 0.1);
  border-radius: 16px;
  pointer-events: none;
}

.card-logo {
  font-size: 4rem;
  filter: drop-shadow(0 0 20px var(--primary-pink-glow));
  margin-bottom: 1.5rem;
}

.card-prompt {
  font-family: var(--font-title);
  color: var(--accent-gold);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.card-click-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.sex-card-back {
  background: linear-gradient(135deg, #180c25 0%, #09030f 100%);
  transform: rotateY(180deg);
  border-color: rgba(229, 169, 59, 0.25);
  justify-content: space-between;
}

.drawn-category {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.drawn-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin: 1.5rem 0 1rem 0;
  text-align: center;
}

.drawn-desc {
  font-size: 0.92rem;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.6;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawn-tips {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary-pink);
  margin-top: 1rem;
  text-align: left;
  width: 100%;
}

/* --- Intimacy Q&A View --- */
.qa-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 0;
}

.qa-card-scene {
  width: 100%;
  height: 300px;
  perspective: 1000px;
  margin-bottom: 2.5rem;
  cursor: pointer;
}

.qa-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.qa-card-inner.is-flipped {
  transform: rotateY(180deg);
}

.qa-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.qa-card-front {
  background: linear-gradient(135deg, #1c0e18 0%, #09040e 100%);
  border-color: rgba(157, 78, 221, 0.2);
}

.qa-card-front .card-logo {
  filter: drop-shadow(0 0 20px var(--primary-violet-glow));
}

.qa-card-back {
  background: linear-gradient(135deg, #180922 0%, #08020e 100%);
  transform: rotateY(180deg);
  border-color: rgba(157, 78, 221, 0.35);
}

.qa-question-text {
  font-family: var(--font-title);
  font-size: 1.45rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.qa-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.qa-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--primary-violet);
  box-shadow: 0 5px 15px rgba(157, 78, 221, 0.2);
}

/* --- Settings & Backup View --- */
.settings-section {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-card h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.settings-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.backup-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.backup-textarea {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--accent-gold);
  padding: 0.8rem;
  font-family: monospace;
  font-size: 0.8rem;
  resize: none;
  outline: none;
}

.backup-textarea:focus {
  border-color: var(--primary-pink);
}

.button-group {
  display: flex;
  gap: 1rem;
}

.action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.8rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
}

.danger-btn {
  background: rgba(255, 42, 95, 0.1);
  border-color: rgba(255, 42, 95, 0.3);
  color: #ff5e84;
}

.danger-btn:hover {
  background: var(--primary-pink);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 42, 95, 0.3);
}

/* --- Navigation Bars --- */
/* Bottom Navigation for Mobile */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(14, 7, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.2rem;
}

.nav-icon {
  font-size: 1.35rem;
}

.nav-item:hover {
  color: var(--text-primary);
}

.nav-item.active {
  color: var(--primary-pink);
  font-weight: 600;
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 8px var(--primary-pink-glow));
}

/* --- Notifications / Toast --- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, var(--bg-card), rgba(157, 78, 221, 0.8));
  border: 1px solid var(--primary-violet);
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-violet-glow);
  z-index: 1000;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.match-toast {
  background: linear-gradient(135deg, #1a0f2b 0%, #ff2a5f 100%);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--primary-pink-glow);
  font-size: 1.05rem;
  font-family: var(--font-title);
  letter-spacing: 0.05em;
  padding: 1.2rem 2.2rem;
}

.match-toast span {
  font-size: 1.4rem;
}

/* --- Match Fireworks/Sparkle Particle Overlay --- */
.sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* --- Animations --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px var(--primary-pink-glow); }
  50% { box-shadow: 0 0 15px rgba(255, 42, 95, 0.8), 0 0 5px var(--accent-gold-glow); }
  100% { box-shadow: 0 0 5px var(--primary-pink-glow); }
}

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

/* --- Responsive Adaptations --- */
@media (max-width: 768px) {
  .brand-title {
    font-size: 2.2rem;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Site Switcher --- */
.site-switcher {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.switch-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.switch-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-pink);
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px var(--primary-pink-glow);
}

/* --- Footer Switcher --- */
.footer-switcher {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.footer-switcher a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-switcher a:hover {
  color: var(--primary-pink);
  border-bottom-color: var(--primary-pink);
}

