/* 
   Spend Billionaire Money Simulator - Style Sheet
   Includes Glassmorphism, Theme Variables, Grid Layouts, and Micro-animations.
*/

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

/* --- Custom Variables & Palette --- */
:root {
  /* Light Mode Palette */
  --bg-color: #f6f8fb;
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(226, 232, 240, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-color: #4f46e5; /* Indigo */
  --accent-glow: rgba(79, 70, 229, 0.15);
  
  --buy-btn: #10b981; /* Emerald */
  --buy-btn-hover: #059669;
  --sell-btn: #ef4444; /* Rose */
  --sell-btn-hover: #dc2626;
  
  --sticky-bg: rgba(255, 255, 255, 0.8);
  --sticky-border: rgba(241, 245, 249, 0.8);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-theme="dark"] {
  /* Dark Mode Palette */
  --bg-color: #0b0f19;
  --panel-bg: rgba(17, 24, 39, 0.8);
  --panel-border: rgba(31, 41, 55, 0.8);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-color: #818cf8;
  --accent-glow: rgba(129, 140, 248, 0.25);
  
  --buy-btn: #34d399;
  --buy-btn-hover: #10b981;
  --sell-btn: #f87171;
  --sell-btn-hover: #ef4444;
  
  --sticky-bg: rgba(11, 15, 25, 0.85);
  --sticky-border: rgba(31, 41, 55, 0.8);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 16px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

/* --- Layout Structure --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation & Theme Switcher --- */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--panel-border);
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-image {
  height: 38px;
  width: 38px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-image {
  transform: rotate(-12deg) scale(1.18);
}

.logo-icon {
  font-size: 1.8rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  background-color: var(--panel-bg);
}

.theme-toggle:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

/* --- Glassmorphic Hero Cards --- */
.hero-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* --- Billionaire Profile Header --- */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.profile-avatar-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-color);
  box-shadow: var(--shadow-md);
  position: relative;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.profile-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Sticky Balance Tracker Banner --- */
.sticky-balance-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sticky-bg);
  border-bottom: 1px solid var(--sticky-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.balance-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.balance-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.balance-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-color);
  letter-spacing: -1px;
  text-shadow: 0 0 20px var(--accent-glow);
  transition: color 0.1s ease;
}

.spending-progress-wrapper {
  width: 100%;
  max-width: 600px;
  height: 8px;
  background: var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
  position: relative;
}

.spending-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), var(--buy-btn));
  border-radius: 4px;
  transition: width 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.spending-stats {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* --- Category Filter Bar --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px var(--accent-glow);
  transform: translateY(-1px);
}

/* --- Items Grid --- */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.item-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.item-img-container {
  height: 180px;
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.item-card:hover .item-img {
  transform: scale(1.06);
}

.item-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.item-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.item-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}

.item-price {
  font-size: 1.25rem;
  color: var(--accent-color);
  font-weight: 800;
  margin-bottom: 16px;
  margin-top: auto;
}

.item-controls {
  display: grid;
  grid-template-columns: 2fr 3fr 2fr;
  gap: 8px;
  align-items: center;
}

.control-btn {
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn.sell {
  background-color: var(--sell-btn);
}

.control-btn.sell:hover:not(:disabled) {
  background-color: var(--sell-btn-hover);
}

.control-btn.buy {
  background-color: var(--buy-btn);
}

.control-btn.buy:hover:not(:disabled) {
  background-color: var(--buy-btn-hover);
}

.control-btn:disabled {
  background-color: var(--text-muted);
  opacity: 0.35;
  cursor: not-allowed;
}

.item-qty-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--panel-border);
  background: var(--bg-color);
  color: var(--text-primary);
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.item-qty-input:focus {
  border-color: var(--accent-color);
}

/* --- Thermal Print Receipt --- */
.receipt-section {
  max-width: 440px;
  margin: 40px auto 60px;
  display: none;
  animation: slideUp 0.4s ease-out;
}

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

.receipt-slip {
  background: #fdfbf7;
  color: #1a1a1a;
  padding: 35px 24px 25px;
  font-family: 'Courier Prime', 'Courier New', monospace;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  border-left: 1px solid rgba(0, 0, 0, 0.03);
  border-right: 1px solid rgba(0, 0, 0, 0.03);
}

/* Jagged top/bottom edge for real paper rip look */
.receipt-slip::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(-135deg, transparent 4px, #fdfbf7 0), linear-gradient(135deg, transparent 4px, #fdfbf7 0);
  background-position: left top;
  background-repeat: repeat-x;
  background-size: 8px 8px;
  z-index: 10;
}

.receipt-slip::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(-45deg, transparent 4px, #fdfbf7 0), linear-gradient(45deg, transparent 4px, #fdfbf7 0);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: 8px 8px;
  z-index: 10;
}

/* Ensure receipt elements have pure black ink font */
.receipt-slip h2, .receipt-slip h3, .receipt-slip p, .receipt-slip span, .receipt-slip div, .receipt-slip td {
  color: #1a1a1a !important;
  font-family: 'Courier Prime', 'Courier New', monospace !important;
}

.receipt-slip-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.receipt-slip-subtitle {
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 2px;
  text-transform: uppercase;
  color: #555 !important;
}

.receipt-slip-divider {
  border-top: 1px dashed #555;
  margin: 10px 0;
}

.receipt-slip-double-divider {
  border-top: 3px double #333;
  margin: 10px 0;
}

.receipt-slip-meta {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.receipt-slip-meta-line {
  display: flex;
  justify-content: space-between;
}

.receipt-slip-items-header {
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  border-bottom: 1px solid #555;
  padding-bottom: 4px;
}

.receipt-slip-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.receipt-slip-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  gap: 8px;
}

.receipt-slip-item-left {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  display: flex;
}

.receipt-slip-item-left::after {
  content: " ................................................................................................................................................";
  color: #999;
  font-weight: 300;
}

.receipt-slip-item-price {
  white-space: nowrap;
  font-weight: 700;
}

.receipt-slip-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.receipt-slip-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.receipt-slip-summary-line.bold {
  font-weight: 700;
  font-size: 1.05rem;
}

.receipt-slip-footer {
  text-align: center;
  font-size: 0.78rem;
  margin-top: 18px;
  text-transform: uppercase;
  line-height: 1.4;
}

.receipt-slip-barcode {
  width: 100%;
  max-width: 240px;
  height: 38px;
  margin: 14px auto 4px;
  background: repeating-linear-gradient(90deg, 
    #111, #111 2px, 
    transparent 2px, transparent 4px, 
    #111 4px, #111 7px, 
    transparent 7px, transparent 9px,
    #111 9px, #111 10px,
    transparent 10px, transparent 13px,
    #111 13px, #111 16px,
    transparent 16px, transparent 18px
  );
}

.receipt-slip-barcode-text {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 2px;
  margin-top: 2px;
  color: #333 !important;
}

.receipt-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.receipt-btn {
  flex: 1;
  height: 48px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  background: var(--panel-bg);
  color: var(--text-primary);
}

.receipt-btn.primary {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.receipt-btn.primary:hover {
  background: #4338ca;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.receipt-btn:not(.primary):hover {
  background: var(--panel-border);
}

/* --- Screenshot Preview Popup / Modal --- */
.screenshot-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.screenshot-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: #fdfbf7;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.screenshot-close:hover {
  transform: scale(1.1);
  background-color: var(--sell-btn);
  color: #fff;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Billionaire Switcher / Hub Cards --- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.hub-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.hub-avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 3px solid var(--accent-color);
}

.hub-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-fortune {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--buy-btn);
  margin: 10px 0 16px;
}

.hub-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  margin-top: auto;
}

.hub-btn:hover {
  background: #4338ca;
  text-decoration: none;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* --- FAQ / SEO Content Section --- */
.faq-section {
  margin: 60px 0;
}

.faq-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-answer {
  color: var(--text-secondary);
}

/* Comparison Table (Landing Page Specific) */
.comparison-wrapper {
  margin: 40px 0;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table th, .comparison-table td {
  padding: 16px;
  text-align: left;
}

.comparison-table th {
  background: var(--panel-border);
  font-weight: 700;
}

.comparison-table tr:not(:last-child) {
  border-bottom: 1px solid var(--panel-border);
}

.comparison-table tr:hover {
  background: rgba(129, 140, 248, 0.05);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 768px) {
  .header-nav {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
  }
  
  .profile-title {
    font-size: 2rem;
  }
  
  .balance-number {
    font-size: 2.2rem;
  }
  
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .receipt-actions {
    flex-direction: column;
  }
  
  .comparison-table th, .comparison-table td {
    padding: 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    padding: 24px 16px;
  }
  
  .sticky-balance-bar {
    padding: 12px 0;
  }
  
  .balance-number {
    font-size: 1.8rem;
  }
}

/* --- News Ticker --- */
.news-ticker-container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.news-ticker-label {
  background: var(--sell-btn);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.news-ticker-content {
  flex-grow: 1;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
}

.news-ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* --- Achievements Grid --- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.achievement-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.achievement-card.unlocked {
  border-color: var(--buy-btn);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  opacity: 1;
}

.achievement-icon {
  font-size: 1.8rem;
  filter: grayscale(100%);
  opacity: 0.4;
  transition: all 0.3s;
}

.achievement-card.unlocked .achievement-icon {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.achievement-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.achievement-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.achievement-card.unlocked .achievement-info p {
  color: var(--text-secondary);
}

/* --- Toast Notification --- */
.toast-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--buy-btn);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2000;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-icon {
  font-size: 2.2rem;
}

.toast-content h4 {
  font-size: 1rem;
  color: var(--buy-btn);
  margin-bottom: 2px;
}

.toast-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* --- Customer Name Input Focus --- */
#customer-name-input {
  transition: all 0.2s ease;
}

#customer-name-input:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

/* --- Tabbed Billionaire Selector in Header --- */
.nav-links-capsule {
  display: flex;
  gap: 6px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 4px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.nav-link-item {
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none !important;
}

.nav-link-item:hover {
  color: var(--accent-color) !important;
  background: var(--accent-glow);
}

.nav-link-item.active-billionaire {
  color: #fff !important;
  background: var(--accent-color);
  box-shadow: 0 4px 10px var(--accent-glow);
}

