/* ============================================
   DASHBOARD.CSS – Empfehler-Dashboard (Upferral)
   Version 2 – Glassmorphism / Bento / 2026
   Analog admin.css v3 Design-System
   ============================================ */

/* === DESIGN TOKENS === */
:root {
  /* Brand (überschrieben per Theme inline auf <html>) */
  --primary-color: #DC143C;
  --secondary-color: #1A1A1A;
  --accent-color: #B71C1C;

  /* Surface */
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);

  /* Text */
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  /* Border & Shadow */
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

  /* Radius */
  --radius-lg: 16px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Animation */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Status */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  min-height: 100vh;
}

/* === FOCUS (BFSG/WCAG) === */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

a { color: var(--primary-color); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-color); }

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER (Glassmorphism, sticky) === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 36px; width: auto; }
.logo .domain { color: var(--primary-color); font-weight: 400; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.btn-logout {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.btn-logout:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* === MAIN CONTENT === */
.dashboard-content {
  padding: 32px 0 60px;
}

/* === WELCOME SECTION (Hero gradient) === */
.welcome-section {
  background: linear-gradient(135deg, var(--secondary-color), #334155);
  color: #fff;
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.welcome-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  opacity: 0.06;
  border-radius: 50%;
}
.welcome-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  opacity: 0.04;
  border-radius: 50%;
}
.welcome-section h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.welcome-section .highlight { color: var(--primary-color); font-weight: 600; }
.welcome-section p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* === REFERRAL ID CARD === */
.referral-id {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.referral-id::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 0 var(--radius-lg) 0 100%;
}
.referral-id h3 { margin-bottom: 12px; font-size: 1.1rem; font-weight: 500; }
.referral-id code {
  font-size: 1.6rem;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 14px 28px;
  border-radius: var(--radius);
  display: inline-block;
  margin: 8px 0;
  letter-spacing: 3px;
  font-family: 'Inter', monospace;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.referral-id code:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.03);
}
.referral-id p { font-size: 0.85rem; opacity: 0.85; margin-top: 4px; }

/* === STATS GRID (Bento Cards) === */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.stats-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  flex: 1 1 200px;
  border: 1px solid var(--border);
}
.stats-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  opacity: 0.6;
}
.stats-card:first-child {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
}
.stats-card:first-child::before { display: none; }
.stats-card:first-child .stats-icon { color: rgba(255,255,255,0.85); }
.stats-card:first-child .stats-number { color: #fff; }
.stats-card:first-child .stats-label { color: rgba(255,255,255,0.8); }

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stats-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.stats-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stats-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* === CARD (general) === */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

/* === ACTION / SHARE SECTION === */
.action-section {
  background: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.action-section h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.action-section h2 i { color: var(--primary-color); margin-right: 8px; }

.share-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.share-card {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  transition: all var(--transition);
  position: relative;
  flex: 1 1 280px;
}
.share-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.share-card h3 {
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
}
.share-card h3 i { color: var(--primary-color); }

.share-text {
  background: var(--card-bg);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  line-height: 1.7;
  border-left: 3px solid var(--primary-color);
  white-space: pre-wrap;
  color: var(--text);
  font-size: 0.9rem;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text);
}
.btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}
.btn-secondary:hover {
  background: #334155;
  border-color: #334155;
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.copy-feedback {
  background: var(--success);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
}
.copy-feedback.show { opacity: 1; }

/* === REWARDS SECTION === */
.rewards-section {
  background: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.rewards-section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.rewards-section h2 i { color: var(--primary-color); margin-right: 8px; }

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.reward-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
  background: var(--card-bg);
  position: relative;
  overflow: hidden;
}
.reward-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.reward-card.available {
  border-color: var(--success);
  background: var(--success-bg);
}
.reward-card.available::before {
  content: 'VERFÜGBAR';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--success);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.reward-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.reward-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.reward-card:hover .reward-image { transform: scale(1.04); }

.reward-icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--primary-color); }
.reward-card.available .reward-icon { color: var(--success); }
.reward-points { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.reward-title { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); font-weight: 600; }
.reward-description { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; font-size: 0.85rem; }

.reward-link {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-weight: 500;
}
.reward-link:hover { text-decoration: underline; }

.redeem-btn {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
  width: 100%;
  font-size: 0.9rem;
  font-family: inherit;
}
.redeem-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}
.redeem-btn:disabled {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

/* === MODAL (Glassmorphism) === */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.modal-content {
  background: var(--card-bg);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 560px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-strong);
}
.modal-title { font-size: 1.2rem; color: var(--text); margin: 0; font-weight: 600; }

.close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition);
  background: none;
  border: none;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.close:hover { color: var(--danger); background: var(--bg); }

.reward-detail-box { padding: 24px; background: var(--bg); }

.form-group { margin-bottom: 16px; padding: 0 24px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.08);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--border-strong);
}

/* === ACTIVITY SECTION === */
.activity-section {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.activity-section h2 {
  margin-bottom: 24px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.activity-section h2 i { color: var(--primary-color); }

.activity-list { list-style: none; padding: 0; margin: 0; }

.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg); margin: 0 -12px; padding: 14px 12px; border-radius: var(--radius); }

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.activity-icon.earned { background: var(--success-bg); color: var(--success); }
.activity-icon.redeemed { background: var(--warning-bg); color: var(--warning); }

.activity-content { flex: 1; }
.activity-title { font-weight: 600; color: var(--text); margin-bottom: 2px; font-size: 13px; }
.activity-details { color: var(--text-secondary); font-size: 0.85rem; }
.activity-time { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }

/* === TRACKING WIDGET === */
.tracking-section .card {
  overflow: hidden;
}

.conversion-rate-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  transition: all var(--transition);
}
.conversion-rate-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}
.conversion-rate-item span:first-child { color: var(--text-secondary); font-size: 13px; }
.conversion-rate-item .rate { font-weight: 600; color: var(--text); font-size: 14px; }

.conversion-rate-item.highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.2);
}
.conversion-rate-item.highlight span:first-child { color: #fff; font-weight: 600; }
.conversion-rate-item.highlight .rate { color: #fff; font-size: 16px; font-weight: 700; }

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* === LOGIN PAGE === */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}

.login-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--border);
}

.login-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 36px;
  text-align: center;
}
.login-header i { font-size: 2.5rem; margin-bottom: 14px; opacity: 0.9; }
.login-header h1 { font-size: 1.6rem; margin-bottom: 8px; font-weight: 300; }
.login-header p { opacity: 0.9; font-size: 0.9rem; }

.login-content { padding: 32px; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #a7f3d0; }

.info-box {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 3px solid var(--primary-color);
}
.info-box h3 { font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.info-box p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.login-form .form-group { padding: 0; margin-bottom: 16px; }
.login-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.login-form .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--card-bg);
}
.login-form .form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.08);
}

.btn-submit {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  padding: 13px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.btn-submit:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.25);
}
.btn-submit:disabled {
  background: var(--border-strong);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

/* Login auth tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: none;
  transition: all var(--transition);
  font-family: inherit;
}
.auth-tab:not(:last-child) { border-right: 1px solid var(--border-strong); }
.auth-tab.active {
  background: var(--card-bg);
  color: var(--primary-color);
  font-weight: 600;
}
.auth-tab:hover:not(.active) { background: var(--card-bg); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.back-link { text-align: center; margin-top: 16px; }
.back-link a { color: var(--text-secondary); font-size: 0.85rem; text-decoration: none; }
.back-link a:hover { color: var(--primary-color); }

/* === PASSKEY SECTION (Dashboard) === */
.security-section {
  background: var(--card-bg);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.security-section h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.security-section h2 i { color: var(--primary-color); }

.passkey-list {
  list-style: none;
  padding: 0;
}
.passkey-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.passkey-item:last-child { border-bottom: none; }
.passkey-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}
.passkey-info i { color: var(--primary-color); font-size: 18px; }
.passkey-name { font-weight: 500; color: var(--text); font-size: 13px; }
.passkey-date { color: var(--text-muted); font-size: 12px; }

/* Passkey / PIN Status Messages */
.passkey-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}
.passkey-status.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.passkey-status.success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.passkey-status.error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Danger Button */
.btn-danger {
  background: #ef4444 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: #dc2626 !important;
}

/* Generic Input */
.input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color 0.2s;
}
.input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
  }
  .welcome-section { padding: 32px 20px; }
  .welcome-section h1 { font-size: 1.6rem; }
  .welcome-section p { font-size: 0.9rem; }
  .action-section,
  .rewards-section,
  .activity-section { padding: 24px 16px; }
  .referral-id code { font-size: 1.2rem; padding: 10px 16px; }
  .share-card { flex-basis: 100%; }
  .modal-content { width: 95%; margin: 8% auto; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; justify-content: center; }
  .login-card { margin: 0 10px; }
  .login-header { padding: 28px 20px; }
  .login-content { padding: 24px 20px; }
}

@media (max-width: 500px) {
  .stats-card { flex-basis: calc(50% - 8px); }
  .rewards-grid { grid-template-columns: 1fr; }
}
