/* Skin Stacker Theme - Dark by Default */
:root {
  /* Dark theme colors - Skin Stacker Style */
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #1a1a1a;
  --card-bg: rgba(15, 15, 15, 0.8);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(0, 212, 255, 0.2);
  --border-hover: rgba(0, 212, 255, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --accent: #00d4ff;
  --accent-hover: #00a8cc;
  --accent-purple: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --profit: #10b981;
  --loss: #ef4444;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-hover: #475569;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --profit: #10b981;
  --loss: #ef4444;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 36px; /* space for alpha banner */
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Alpha environment banner */
.alpha-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #111827, #1f2937);
  color: #f9fafb;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  border-bottom: 1px solid #374151;
}

/* Hide milestones section */
#milestonesSection {
  display: none !important;
}
.

/* Admin Container */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg-primary);
  min-height: 100vh;
}

/* Investor Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bg-primary);
  min-height: 100vh;
}

/* Admin Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-container {
  position: relative;
  display: inline-block;
}

.menu-button {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-button:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
}

.menu-button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 8px;
  overflow: hidden;
}

.menu-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary) !important;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.menu-item:hover {
  background: var(--bg-tertiary);
}

.menu-item.logout {
  color: var(--error);
}

.menu-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

.menu-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.menu-text {
  flex: 1;
}

.menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

.theme-icon {
  font-size: 1.2rem;
}

/* Gradient Text Utility */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sections */
section {
  margin-bottom: 2rem;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

section:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}

.section-title::after {
  display: none;
}

/* Overview Section */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.overview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.card-content {
  flex: 1;
}

.card-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.card-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-value.profit {
  color: var(--profit);
}

.card-value.loss {
  color: var(--loss);
}

.warning-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.warning-icon {
  font-size: 1rem;
}

/* Performance Section */
.performance-subsection {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.subsection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.subsection-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  border: none;
  padding: 0;
}

.subsection-header h3::after {
  display: none;
}


.performance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.metric-value {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.metric-value.profit {
  color: var(--profit);
}

.metric-value.loss {
  color: var(--loss);
}

/* Balance Section */
.balance-section {
  margin-bottom: 2rem;
}

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

.balance-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.balance-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.balance-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  border: none;
  padding: 0;
}

.balance-header h3::after {
  display: none;
}

.balance-content {
  text-align: center;
}

.balance-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.balance-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.marketplace-balances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.marketplace-balance {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.marketplace-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.marketplace-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.marketplace-last-check {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stage Cards */
.stage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stage-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  border-left: 4px solid;
}

.stage-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stage-card.tried-buying {
  border-left-color: #f59e0b;
}

.stage-card.pending-buy {
  border-left-color: #eab308;
}

.stage-card.bought {
  border-left-color: #10b981;
}

.stage-card.in-inventory {
  border-left-color: #3b82f6;
}

.stage-card.trying-sell {
  border-left-color: #8b5cf6;
}

.stage-card.pending-sell {
  border-left-color: #f97316;
}

.stage-card.sold {
  border-left-color: #ef4444;
}

.stage-card.canceled {
  border-left-color: #6b7280;
}

.stage-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  border: none;
  padding: 0;
}

.stage-header h3::after {
  display: none;
}

.stage-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stage-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stage-value {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stage-profit {
  color: var(--profit);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Recent Purchases */
.purchases-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-secondary);
}

.purchase-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.purchase-item:hover {
  background: var(--bg-tertiary);
}

.purchase-item:last-child {
  border-bottom: none;
}

.purchase-marketplace {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
}

.purchase-image {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.purchase-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.purchase-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.purchase-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.purchase-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.purchase-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.sold {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-badge.pending {
  background: rgba(234, 179, 8, 0.1);
  color: var(--warning);
}

.status-badge.collected {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.status-badge.moderation {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.status-badge.cart {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-badge.withdraw {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.purchase-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.purchase-price {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.purchase-profit {
  font-weight: 600;
  font-size: 0.9rem;
}

.purchase-profit.positive {
  color: var(--profit);
}

.purchase-profit.negative {
  color: var(--loss);
}

/* System Health */
.health-indicators {
  display: flex;
  gap: 2rem;
}

.health-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.health-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.health-status {
  font-weight: 600;
  font-size: 0.9rem;
}

.health-status.operational {
  color: var(--success);
}

.health-status.error {
  color: var(--error);
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--text-muted);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--text-secondary);
  transform: translateY(-1px);
}

/* Loading States */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-screen p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.loading {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
}

/* Error Screen */
.error-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}

.error-content h2 {
  color: var(--error);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.error-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.no-data {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
}

/* Investor Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
}

.user-email {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-right: 1rem;
}

.logout-btn {
  background: var(--error);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-button:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.tab-button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.tab-content.active {
  display: block;
}

/* Key Metrics */
.key-metrics {
  margin-bottom: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.metric-content {
  flex: 1;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Fund Information */
.fund-info {
  margin-bottom: 2rem;
}

.fund-details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.fund-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.fund-metric:last-child {
  border-bottom: none;
}

/* Performance Chart */
.performance-chart {
  margin-bottom: 2rem;
}

.chart-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  height: 400px;
}

/* Transaction History */
.transaction-history {
  margin-bottom: 2rem;
}

.transaction-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.transaction-filters select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.table-container:hover {
  box-shadow: var(--shadow-lg);
}

#transactionTable {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  table-layout: fixed;
  display: table !important;
}

#transactionTable thead {
  display: table-header-group !important;
}

#transactionTable tbody {
  display: table-row-group !important;
}

#transactionTable tr {
  display: table-row !important;
}

#transactionTable th,
#transactionTable td {
  display: table-cell !important;
}

#transactionTable th,
#transactionTable td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

#transactionTable th:nth-child(1),
#transactionTable td:nth-child(1) {
  width: 30%;
}

#transactionTable th:nth-child(2),
#transactionTable td:nth-child(2) {
  width: 20%;
}

#transactionTable th:nth-child(3),
#transactionTable td:nth-child(3) {
  width: 25%;
  text-align: right;
}

#transactionTable th:nth-child(4),
#transactionTable td:nth-child(4) {
  width: 25%;
}

#transactionTable th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

#transactionTable td {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

#transactionTable tbody tr {
  transition: all 0.2s ease;
}

#transactionTable tbody tr:hover {
  background: var(--bg-tertiary);
}

#transactionTable tbody tr:last-child td {
  border-bottom: none;
}

.transaction-type {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border: 1px solid transparent;
}

.transaction-type.deposit {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.transaction-type.deposit::before {
  content: "↗";
  font-size: 0.9rem;
  font-weight: bold;
  margin-right: 0.25rem;
}

.transaction-type.withdrawal {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.2);
}

.transaction-type.withdrawal::before {
  content: "↙";
  font-size: 0.9rem;
  font-weight: bold;
  margin-right: 0.25rem;
}

.transaction-amount {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
  padding-right: 1rem;
}

.transaction-amount.positive {
  color: var(--success);
}

.transaction-amount.negative {
  color: var(--error);
}

.transaction-date {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.transaction-notes {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.no-data {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 3rem 2rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.no-data::before {
  content: "📊";
  font-size: 2rem;
  opacity: 0.5;
}

/* Loading animation for transactions */
.transaction-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.transaction-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 1s ease-in-out infinite;
  margin-left: 0.5rem;
}

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

/* Analytics */
.analytics {
  margin-bottom: 2rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.analytics-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.analytics-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.analytics-card h3::after {
  display: none;
}

.risk-metrics,
.performance-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.risk-item,
.perf-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.risk-label,
.perf-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.risk-value,
.perf-value {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

/* Investor Management Styles */
.investor-form,
.transaction-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-small {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.investors-table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

#investorsTable {
  width: 100%;
  border-collapse: collapse;
}

#investorsTable th,
#investorsTable td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

#investorsTable th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

#investorsTable td {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#investorsTable td code {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

#investorsTable .profit {
  color: var(--profit);
  font-weight: 600;
}

#investorsTable .loss {
  color: var(--loss);
  font-weight: 600;
}

/* Fund Value Breakdown Styles */
.fund-value-breakdown {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.fund-value-breakdown h3 {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.breakdown-grid {
  display: grid;
  gap: 0.75rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-item.highlight {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
  border: 1px solid #60a5fa;
}

.breakdown-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.breakdown-value {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.breakdown-toggle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.breakdown-toggle:hover {
  color: var(--text-color);
}

.breakdown-toggle.expanded {
  transform: rotate(180deg);
}

.balance-breakdown {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.balance-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.balance-breakdown-item:last-child {
  border-bottom: none;
}

.balance-marketplace {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.balance-amount {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.balance-commission {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.balance-commission.applied {
  color: var(--warning);
}

.balance-commission.none {
  color: var(--success);
}

.stage-breakdown {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.stage-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stage-breakdown-item:last-child {
  border-bottom: none;
}

.stage-name {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.stage-value {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.breakdown-item.highlight .breakdown-label {
  color: var(--text-color);
  font-weight: 600;
}

.breakdown-item.highlight .breakdown-value {
  color: #60a5fa;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Info Icon Styles */
.info-icon {
  display: inline-block;
  margin-left: 0.5rem;
  cursor: help;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.info-icon:hover {
  opacity: 1;
}

/* Stage Breakdown Styles */
.stage-breakdown {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}

.stage-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary) !important;
}

.stage-breakdown-item .stage-name {
  text-transform: capitalize;
  font-weight: 600;
  color: var(--text-primary) !important;
}

.stage-breakdown-item .stage-value {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-container,
  .container {
    padding: 10px;
  }
  
  .admin-header,
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .dashboard-header h1 {
    font-size: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header-controls {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .user-greeting {
    margin-right: 0;
  }
  
  .overview-cards,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  .performance-metrics {
    grid-template-columns: 1fr;
  }
  
  .stage-cards {
    grid-template-columns: 1fr;
  }
  
  .health-indicators {
    flex-direction: column;
    gap: 1rem;
  }
  
  .purchase-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .purchase-amounts {
    align-items: flex-start;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .transaction-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .dashboard-header h1 {
    font-size: 1.2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .dashboard-header h1 img {
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
  
  .overview-card {
    flex-direction: column;
    text-align: center;
  }
  
  .card-icon {
    font-size: 1.5rem;
  }
  
  .card-value {
    font-size: 1.5rem;
  }
  
  .stage-card {
    padding: 1rem;
  }
  
  .purchase-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .purchase-details {
    width: 100%;
  }
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

/* Login Page Background */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Inter', sans-serif;
  position: relative;
}

/* Animated Background Orbs */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #ff6b6b, #ffa500);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.gradient-orb-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, #a8edea, #fed6e3);
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* Login Container */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideUp 0.6s ease-out;
}

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

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.form-label i {
  color: #6b7280;
  font-size: 14px;
}

.form-input {
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #1a1a1a;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Password Input Container */
.password-input-container {
  position: relative;
}

.password-input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.password-toggle:hover {
  color: #374151;
  background: #f3f4f6;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #667eea;
  border-color: #667eea;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #5a67d8;
  text-decoration: underline;
}

/* Login Button */
.login-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}

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

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.login-btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Error Message */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-message i {
  font-size: 16px;
}

/* Login Footer */
.login-footer {
  margin-top: 32px;
  text-align: center;
}

.login-footer p {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 20px 0;
}

.signup-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.signup-link:hover {
  color: #5a67d8;
  text-decoration: underline;
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.security-badge i {
  color: #10b981;
  font-size: 14px;
}

/* Login Page Responsive */
@media (max-width: 768px) {
  .login-page {
    padding: 16px;
  }
  
  .login-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .login-header h1 {
    font-size: 24px;
  }
}

/* Addictive Dashboard Button */
.addictive-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.addictive-dashboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

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

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

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

.addictive-dashboard-btn .rocket {
  animation: rocketBounce 2s infinite;
}

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

@media (max-width: 768px) {
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .form-input {
    padding: 14px 16px;
    font-size: 16px;
  }
  
  .login-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .security-badges {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 20px;
  }
  
  .login-header h1 {
    font-size: 22px;
  }
  
  .login-subtitle {
    font-size: 14px;
  }
}


/* Manual Fund Value Chart Styles */
.manual-fund-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.manual-fund-chart-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.chart-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.chart-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.chart-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.manual-fund-chart-container .chart-wrapper {
  height: 300px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.legend-color.manual {
  background: #3b82f6;
}

.legend-color.automatic {
  background: #10b981;
}

.legend-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Profit text styling in stage breakdown */
.profit-text {
  color: var(--profit);
  font-size: 0.85rem;
  font-weight: 600;
}

.loss-text {
  color: var(--loss);
  font-size: 0.85rem;
  font-weight: 600;
}

.realized-text {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ========================================
   SKIN STACKER GAMIFICATION STYLES
   ======================================== */

/* Gamification Section */
.gamification-section {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.gamification-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  animation: rotate-glow 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gamification-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

/* Level & XP Display */
.level-xp-container {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.level-badge {
  background: var(--gradient-primary);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--glow-cyan);
  min-width: 150px;
}

.level-number {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.level-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.xp-container {
  flex: 1;
}

.xp-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.xp-bar {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.xp-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 12px;
  transition: width 1s ease-out;
  position: relative;
  overflow: hidden;
}

.xp-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  to { left: 100%; }
}

/* Achievement Badges */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.achievement-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.achievement-item.unlocked {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
}

.achievement-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
}

.achievement-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
  animation: float-badge 3s ease-in-out infinite;
}

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

.achievement-item.unlocked .achievement-icon {
  animation: float-badge 3s ease-in-out infinite, glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.8)); }
}

.achievement-name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.achievement-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.achievement-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Milestones */
.milestones-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.milestone-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.milestone-item.completed {
  border-color: var(--success);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.milestone-item:hover {
  transform: translateY(-5px);
}

.milestone-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.milestone-icon {
  font-size: 2rem;
}

.milestone-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
  flex: 1;
}

.milestone-progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.milestone-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: width 1s ease-out;
}

.milestone-item.completed .milestone-progress-fill {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.milestone-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Streak Counter */
.streak-counter {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.streak-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
  pointer-events: none;
}

.streak-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: flame-flicker 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes flame-flicker {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

.streak-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.streak-label {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.streak-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.streak-stat {
  text-align: center;
}

.streak-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.streak-stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Animated Number Counter */
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated-number {
  animation: count-up 0.5s ease-out;
}

/* Dashboard Header Enhancements */
.dashboard-header {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.dashboard-header h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Metric Cards with Glow */
.metric-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.metric-value {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}