/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #1f2937; background: #f8fafc; }

:root {
  --brand: #e11d48;
  --brand-dark: #be123c;
  --ink: #0f172a;
}

/* Navigation Header */
.nav-header-new { 
  background: transparent; 
  color: #fff; 
  position: absolute; 
  top: 0; 
  left: 0;
  right: 0;
  z-index: 20;
}
.nav-container-new { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 16px 32px; 
  display: flex; 
  align-items: flex-start; 
  justify-content: space-between; 
}
.nav-brand-new { 
  display: flex; 
  flex-direction: column;
  gap: 0px; 
  align-items: flex-start; 
  flex-shrink: 0;
  margin-top: -35px;
}
.logo-new { 
  width: 150px; 
  height: 150px; 
  object-fit: contain;
  margin-left: -50px;
  filter: brightness(0.7) saturate(1.3);
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  margin-top: -60px;
}
.brand-name-new {
  font-size: 0.95rem;
  font-weight: 400;
  color: white;
  white-space: nowrap;
}
.brand-name-new strong {
  font-weight: 700;
}
.brand-tagline-new {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  font-weight: 400;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
  margin: 0 40px 0 220px;
  padding-top: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #e11d48;
}

.nav-link.active {
  color: white;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #e11d48;
}

/* Right Actions */
.nav-actions-new { 
  display: flex; 
  gap: 12px; 
  align-items: center;
  flex-shrink: 0;
  padding-top: 20px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.icon-btn:hover {
  color: #e11d48;
}

.menu-btn {
  display: none;
}

.student-login-btn-new { 
  background: white; 
  color: #e11d48; 
  border: 2px solid #e11d48; 
  padding: 8px 20px; 
  border-radius: 6px; 
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.student-login-btn-new:hover { 
  background: #e11d48; 
  color: white;
  border-color: #e11d48;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}
.parent-signup-btn-new { 
  background: linear-gradient(135deg, #e11d48, #f43f5e); 
  color: #fff; 
  border: none; 
  padding: 8px 20px; 
  border-radius: 6px; 
  font-weight: 600; 
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.parent-signup-btn-new:hover { 
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  
  .menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .nav-container-new {
    padding: 12px 16px;
  }
  
  .brand-name-new {
    font-size: 0.95rem;
  }
  
  .student-login-btn-new,
  .parent-signup-btn-new {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .icon-btn:not(.menu-btn) {
    display: none;
  }
}

/* Hero */
.hero-section-new { 
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('Uploads/Family.png');
  background-position: center 50%;
  background-size: 100% auto;
  background-repeat: no-repeat;
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
}

@media (max-width: 768px) {
  .hero-section-new {
    background-size: cover;
    background-position: center 30%;
  }
}
.hero-container-new { max-width: 1120px; margin: 0; padding: 150px 16px 80px 80px; text-align: left; }
.hero-title-new { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #ffffff; margin: 0; line-height: 1.2; }
.highlight-new { color: #ffffff; display: block; margin-top: 8px; }
.hero-description-new { max-width: 600px; margin: 20px 0 0 0; font-size: 0.95rem; color: #ffffff; line-height: 1.6; }
.cta-button-new { 
  margin-top: 32px; 
  background: linear-gradient(135deg, #e11d48, #8b5cf6); 
  color: #fff; 
  border: 0; 
  padding: 14px 32px; 
  border-radius: 10px; 
  font-size: 1.1rem; 
  font-weight: 700; 
  box-shadow: 0 10px 16px rgba(225,29,72,.25); 
  cursor: pointer;
  transition: all 0.3s ease;
}
.cta-button-new:hover { 
  background: linear-gradient(135deg, #be123c, #7c3aed); 
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(225,29,72,.35);
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero-section-new {
    min-height: 400px;
  }
  .hero-container-new {
    padding: 60px 20px;
  }
  .hero-title-new {
    font-size: 2.5rem;
  }
  .hero-description-new {
    font-size: 1rem;
  }
}

/* Multi-Currency Styles */
.currency-selection {
  position: relative;
}

.currency-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #6c757d;
}

.currency-note i {
  color: #007bff;
  font-size: 0.875rem;
}

.currency-input {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  z-index: 2;
  font-weight: 600;
  color: #495057;
  pointer-events: none;
}

.currency-input .input {
  padding-left: 32px;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.code-select {
  min-width: 120px;
  flex-shrink: 0;
}

.phone-input {
  flex: 1;
}

/* Currency selection dropdown styling */
.currency-selection select option {
  padding: 8px 12px;
}

/* Currency symbol display fixes */
.card-value {
  position: relative;
}

.card-value span {
  display: inline-block;
  position: relative;
  z-index: 1;
}

#familyBalanceSymbol,
#monthlySpendingSymbol {
  font-weight: 600;
  margin-right: 2px;
  background: white;
  position: relative;
  z-index: 2;
}

/* Ensure clean currency symbol display */
.currency-symbol {
  background: transparent;
  position: relative;
  z-index: 2;
  font-weight: 600;
  margin-right: 1px;
}

/* Fix for input currency symbols */
.currency-input .currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-weight: 600;
  color: #495057;
  pointer-events: none;
  background: transparent;
  padding-right: 2px;
}

/* Weekly and Daily limit currency symbols */
#weeklyLimitSymbol,
#dailyLimitSymbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-weight: 600;
  color: #495057;
  pointer-events: none;
  background: transparent;
  line-height: 1;
}

/* Input fields with currency symbols need padding */
.currency-input input,
input[id*="Limit"] {
  padding-left: 32px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Notification Badge Styles */
.nav-icon-container {
  position: relative;
  display: inline-block;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification-badge.pulse {
  animation: pulse 2s infinite;
}

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

/* Rewards Section Styles */
.rewards-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.reward-overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
}

.reward-overview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.reward-overview-icon.gift { background: #e11d48; }
.reward-overview-icon.pending { background: #f59e0b; }
.reward-overview-icon.achievement { background: #8b5cf6; }

.reward-overview-value {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.reward-overview-label {
  font-size: 14px;
  color: #6b7280;
}

.rewards-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.rewards-tab {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.rewards-tab.active {
  color: #1d6fd4;
  border-bottom-color: #1d6fd4;
}

.rewards-tab:hover {
  color: #1d6fd4;
}

.parent-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.reward-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.reward-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.reward-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d6fd4;
  font-size: 18px;
}

.reward-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.reward-status.active {
  background: #dcfce7;
  color: #166534;
}

.reward-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.reward-description {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.reward-cost {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a855f7;
  margin-bottom: 16px;
}

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

.cost-value {
  font-size: 16px;
  font-weight: 600;
  color: #1d6fd4;
}

.reward-card-actions {
  display: flex;
  gap: 8px;
}

.redemption-requests-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.redemption-request-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.child-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.child-avatar {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.child-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.request-date {
  font-size: 12px;
  color: #6b7280;
}

.request-status.pending {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.request-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.reward-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reward-icon-small {
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d6fd4;
}

.reward-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.reward-cost {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.child-points {
  text-align: right;
}

.points-label {
  font-size: 12px;
  color: #6b7280;
}

.points-value {
  font-size: 14px;
  font-weight: 600;
  color: #1d6fd4;
}

.request-actions {
  display: flex;
  gap: 8px;
}

.parent-achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.achievement-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.achievement-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.achievement-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 18px;
}

.achievement-status.active {
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.achievement-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.achievement-description {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.achievement-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

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

.reward-value {
  font-size: 16px;
  font-weight: 600;
  color: #10b981;
}

.achievement-card-actions {
  display: flex;
  gap: 8px;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tab-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #e11d48;
  color: white;
  border-color: #e11d48;
}

/* Safety Alert Settings Modal Styles */
.safety-setting-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.safety-setting-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.setting-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.setting-description {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0 0 16px 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #8b5cf6;
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Time Settings */
.time-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.time-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

/* Checkbox Fields */
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

.checkbox-field label {
  font-size: 0.9rem;
  color: #374151;
  margin: 0;
}

/* Trusted Locations */
.trusted-locations h5 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.trusted-locations-list {
  margin-bottom: 16px;
}

.trusted-location-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.trusted-location-item span {
  font-size: 0.9rem;
  color: #374151;
}

.remove-location-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.remove-location-btn:hover {
  background: #fee2e2;
}

.add-location-btn {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.add-location-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Alert Radius Slider */
.alert-radius {
  margin-top: 16px;
}

.alert-radius label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8b5cf6;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #8b5cf6;
  cursor: pointer;
  border: none;
}

.slider-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  min-width: 50px;
}

/* Transaction Limits */
.transaction-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.limit-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

/* Emergency Contacts */
.emergency-contacts-list {
  margin-bottom: 16px;
}

.emergency-contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-weight: 500;
  color: #1f2937;
  font-size: 0.9rem;
}

.contact-number {
  color: #64748b;
  font-size: 0.85rem;
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.edit-contact-btn, .remove-contact-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}

.edit-contact-btn {
  color: #8b5cf6;
}

.edit-contact-btn:hover {
  background: #f3f4f6;
}

.remove-contact-btn {
  color: #ef4444;
}

.remove-contact-btn:hover {
  background: #fee2e2;
}

.add-contact-btn {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.add-contact-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Trigger Checkboxes */
.trigger-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Notification Preferences */
.notification-category {
  margin-bottom: 20px;
}

.notification-category h5 {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.notification-options {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Modal Large */
.modal-large .modal-content {
  max-width: 1400px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Smart Reports Modal Styles */
.report-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 24px;
  background: #f8fafc;
  border-radius: 8px 8px 0 0;
  padding: 4px;
}

.report-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.report-tab:hover {
  background: #e2e8f0;
  color: #475569;
}

.report-tab.active {
  background: #8b5cf6;
  color: white;
}

.report-tab-content {
  display: none;
}

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

/* Report Statistics Grid */
.report-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.report-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 4px;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: #ef4444;
}

/* Monthly Trend Section */
.monthly-trend-section {
  margin-top: 32px;
}

.monthly-trend-section h4 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.chart-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

/* Pattern Analysis Grid */
.pattern-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.pattern-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
}

.pattern-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.pattern-info h5 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.pattern-info p {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}

.pattern-stat {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8b5cf6;
}

/* Weekly Pattern Section */
.weekly-pattern-section {
  margin-top: 32px;
}

.weekly-pattern-section h4 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.weekly-chart-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

/* Category Breakdown */
.category-breakdown-list {
  margin-bottom: 32px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.category-details h6 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.category-details p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.category-amount {
  text-align: right;
}

.category-amount .amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  display: block;
}

.category-amount .percentage {
  font-size: 0.8rem;
  color: #64748b;
}

.category-progress {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.category-progress-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Spending Insights */
.spending-insights {
  margin-top: 32px;
}

.spending-insights h5 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.insights-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.insight-item {
  padding: 8px 0;
  font-size: 0.9rem;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

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

/* Safety Status Card */
.safety-status-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.safety-status-icon {
  font-size: 20px;
}

.safety-status-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #166534;
}

/* Recent Safety Events */
.recent-safety-events h5 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.safety-events-list {
  margin-bottom: 32px;
}

.safety-event-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  border-left: 4px solid #10b981;
}

.safety-event-item.warning {
  border-left-color: #f59e0b;
}

.safety-event-item.error {
  border-left-color: #ef4444;
}

.safety-event-time {
  font-size: 0.8rem;
  color: #64748b;
  min-width: 80px;
}

.safety-event-content {
  flex: 1;
}

.safety-event-content h6 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

.safety-event-content p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* Unusual Spending Detection */
.unusual-spending-detection h5 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.detection-settings {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.detection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
}

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

.detection-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #374151;
}

.detection-info i {
  color: #64748b;
  width: 16px;
}

.detection-status {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
}

.detection-status.enabled {
  background: #dcfce7;
  color: #166534;
}

/* Activity Item Status Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #dcfce7;
  color: #166534;
}

.status-declined {
  background: #fecaca;
  color: #991b1b;
}

/* Activity Icon Classes */
.activity-icon.warning {
  background: #f59e0b;
}

.activity-icon.neutral {
  background: #64748b;
}

.activity-amount.neutral {
  color: #64748b;
}

/* Rewards System Styles */
.loading-placeholder, .no-data, .error-message {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}

.error-message {
  color: #ef4444;
}

/* Achievement Progress Bars */
.achievement-progress {
  margin-top: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  text-align: center;
}

/* Reward Item Enhancements */
.reward-item {
  position: relative;
}

.reward-item--locked {
  opacity: 0.6;
}

.reward-item--locked .reward-icon {
  background-color: #f3f4f6;
  color: #9ca3af;
}

.reward-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.25rem 0;
}

/* Redemption Requests Styles */
.redemption-requests {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.redemption-request-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.redemption-request-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.request-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.request-content {
  flex: 1;
  min-width: 0;
}

.request-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.request-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.request-cost {
  font-size: 0.875rem;
  font-weight: 500;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
}

.request-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.request-response {
  font-size: 0.875rem;
  color: #4b5563;
  font-style: italic;
  margin: 0;
  padding: 0.5rem;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid #d1d5db;
}

.request-status {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.status-pending {
  background: #fef3c7;
  color: #d97706;
}

.status-approved {
  background: #d1fae5;
  color: #059669;
}

.status-rejected {
  background: #fee2e2;
  color: #dc2626;
}

/* Games Section Styles - Redesigned to match app theme */
.games-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.games-stats-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border-top: 4px solid var(--brand);
  box-shadow: 0 16px 40px rgba(2, 16, 40, 0.08);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.games-stats-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 54px rgba(2, 16, 40, 0.12);
}

.games-stats-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(29, 111, 212, 0.3);
}

.games-stats-content {
  flex: 1;
}

.games-stats-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}

.games-stats-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.game-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border-top: 4px solid #e11d48;
  box-shadow: 0 16px 40px rgba(2, 16, 40, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e11d48, #be123c);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(2, 16, 40, 0.15);
}

.game-card--coming-soon {
  opacity: 0.6;
  border: 2px dashed #cbd5e1;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-top: 2px dashed #cbd5e1;
}

.game-card--coming-soon::before {
  display: none;
}

.game-card--coming-soon:hover {
  transform: none;
  box-shadow: 0 16px 40px rgba(2, 16, 40, 0.08);
}

.game-card-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.35);
}

.game-card--coming-soon .game-icon {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.3);
}

.game-info {
  flex: 1;
}

.game-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.game-description {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.game-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

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

.game-stat-label {
  font-size: 13px;
  color: #64748b;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.game-card-actions {
  display: flex;
  gap: 12px;
}

.game-play-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e11d48;
  color: #fff;
  border: 0;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
}

.game-play-btn:hover {
  background: #be123c;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.35);
}

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

.game-activity-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  border-top: 4px solid var(--brand);
  box-shadow: 0 16px 40px rgba(2, 16, 40, 0.08);
}

.game-activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.game-activity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 16, 40, 0.1);
}

.game-activity-item .activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(29, 111, 212, 0.3);
}

.game-activity-item .activity-content {
  flex: 1;
}

.game-activity-item .activity-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 16px;
}

.game-activity-item .activity-details {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
}

.game-activity-item .activity-time {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.parent-reward-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.parent-reward-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.parent-reward-cost {
  font-size: 1rem;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 1rem;
}

.parent-reward-actions {
  display: flex;
  gap: 0.5rem;
}

.redemption-requests-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.parent-redemption-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.redemption-content {
  flex: 1;
  min-width: 0;
}

.redemption-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.redemption-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.redemption-child {
  font-size: 0.875rem;
  color: #4b5563;
  font-weight: 500;
}

.redemption-cost {
  font-size: 0.875rem;
  font-weight: 500;
  color: #7c3aed;
  background: #f3e8ff;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
}

.redemption-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.redemption-response {
  font-size: 0.875rem;
  color: #4b5563;
  font-style: italic;
  margin: 0;
  padding: 0.5rem;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 3px solid #d1d5db;
}

.redemption-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Mobile Responsiveness for Rewards */
@media (max-width: 768px) {
  .rewards-overview {
    flex-direction: column;
    gap: 1rem;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .rewards-store-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .redemption-request-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .request-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .request-status {
    align-self: stretch;
    text-align: center;
  }
  
  .reward-item {
    padding: 1rem;
  }
  
  .reward-redeem-btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .rewards-overview-grid {
    grid-template-columns: 1fr;
  }

  .parent-rewards-grid {
    grid-template-columns: 1fr;
  }

  .parent-redemption-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .redemption-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .redemption-actions {
    width: 100%;
    justify-content: stretch;
  }

  .redemption-actions .btn {
    flex: 1;
  }

  .tab-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .rewards-tabs {
    flex-wrap: wrap;
  }
}

/* Features */
.features-section-new { padding: 56px 0; }
.features-container-new { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.features-title-new { font-size: clamp(1.4rem, 2.5vw, 1.9rem); text-align: center; color: #0f172a; margin: 0 0 28px; font-weight: 800; }

.features-grid-new { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .features-grid-new { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid-new { grid-template-columns: repeat(1, 1fr); } }

.feature-card-new { background: #fff; border-radius: 16px; padding: 24px; border-top: 4px solid var(--brand); box-shadow: 0 8px 20px rgba(2,16,40,.08); display:flex; flex-direction:column; align-items:center; text-align:center; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.feature-card-new h3 { font-size: 1.1rem; margin: 0 0 10px 0; font-weight: 600; color: #1f2937; }
.feature-icon-new { width: 56px; height: 56px; display:flex; align-items:center; justify-content:center; border-radius: 14px; margin: 0 auto 14px; color:#fff; font-size: 26px; }
/* Hover effects */
.feature-card-new:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 12px 24px rgba(2,16,40,.1); }
.feature-card-new:hover .feature-icon-new { transform: translateY(-1px) scale(1.03); }

/* Button hover lift and press states */
.student-login-btn-new,
.parent-signup-btn-new,
.cta-button-new { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.student-login-btn-new:hover,
.parent-signup-btn-new:hover,
.cta-button-new:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(2,16,40,.12); }
.student-login-btn-new:active,
.parent-signup-btn-new:active,
.cta-button-new:active { transform: translateY(0); box-shadow: 0 8px 14px rgba(2,16,40,.10); }

/* Keyboard focus for accessibility */
.feature-card-new:focus-within { outline: 3px solid rgba(29,111,212,.35); outline-offset: 4px; }
.parent-controls-new { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.qr-payments-new { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.smart-limits-new { background: linear-gradient(135deg, #f59e0b, #f97316); }
.reward-system-new { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.feature-description-new { color:#475569; font-size: 0.95rem; margin: 0; line-height: 1.6; }

/* Get in Touch Section */
.get-in-touch-section {
  background: #fff1f2;
  padding: 15px 20px;
  overflow: hidden;
}

.get-in-touch-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.get-in-touch-content {
  padding-right: 20px;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}

.get-in-touch-content.slide-in {
  opacity: 1;
  transform: translateX(0);
}

.get-in-touch-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #e11d48;
  margin: 0 0 16px 0;
}

.get-in-touch-description {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.enquire-btn {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.enquire-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

.get-in-touch-image {
  position: relative;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease-out;
}

.get-in-touch-image.slide-in {
  opacity: 1;
  transform: translateX(0);
}

.dashboard-img {
  width: 65%;
  height: auto;
  border-radius: 16px;
  box-shadow: none;
  margin: 0 auto;
  display: block;
  opacity: 0.95;
}

/* Responsive */
@media (max-width: 968px) {
  .get-in-touch-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .get-in-touch-content {
    padding-right: 0;
    text-align: center;
  }
  
  .get-in-touch-title {
    font-size: 2rem;
  }
}

/* Footer */
.footer-new { background:#1f3448; color:#e2e8f0; }
.footer-container-new { max-width:1120px; margin:0 auto; padding: 40px 16px; text-align:center; }
.footer-brand-new { display:flex; justify-content:center; margin-bottom: 12px; }
.footer-tagline-new { font-size:.9rem; margin:0; }

/* Auth/Register styles */
.auth-wrap { min-height: calc(100vh - 64px); display:flex; align-items:flex-start; justify-content:center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 560px; background:#fff; border-radius: 16px; margin-top: 24px; padding: 28px; box-shadow: 0 14px 40px rgba(2,16,40,.10); }
.auth-title { text-align:center; margin: 0 0 6px; font-weight: 800; font-size: 1.6rem; color:#0f172a; }
.auth-subtitle { text-align:center; margin: 0 0 18px; color:#64748b; font-size:.95rem; }
.auth-form { display:grid; gap: 14px; }
.field { display:flex; flex-direction:column; gap:6px; }
.field label { font-weight: 600; color:#0f172a; font-size:.9rem; }
.input { width:100%; border:1px solid #e2e8f0; border-radius:10px; padding:12px 14px; font-size:.95rem; background:#fff; }
.input:focus { outline: 2px solid rgba(29,111,212,.35); border-color: var(--brand); }
.select { width:100%; border:1px solid #e2e8f0; border-radius:10px; padding:12px 14px; background:#fff; font-size:.95rem; }
.select:focus { outline: 2px solid rgba(29,111,212,.35); border-color: var(--brand); }
.phone-row { display:flex; gap:10px; }
.code-select { width: 40%; max-width: 160px; }
.phone-input { flex: 1; }
.checkbox-line { display:flex; gap:10px; align-items:center; font-size:.9rem; color:#334155; margin-top: 6px; }
.checkbox-line input[type="checkbox"] { width: 18px; height: 18px; }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }
.submit-btn { margin-top: 8px; width:100%; background: var(--brand); color:#fff; border:0; padding:12px 16px; border-radius:10px; font-weight:700; cursor:pointer; box-shadow: 0 10px 18px rgba(29,111,212,.15); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.submit-btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 14px 26px rgba(29,111,212,.20); }
.submit-btn:active { transform: none; }

/* Google OAuth button */
.divider { text-align: center; margin: 16px 0; position: relative; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e2e8f0; }
.divider span { background: #fff; padding: 0 12px; color: #64748b; font-size: .85rem; }

.google-btn { 
  width: 100%; background: #fff; color: #374151; border: 1px solid #d1d5db; padding: 12px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .2s ease;
}
.google-btn:hover { background: #f9fafb; border-color: #9ca3af; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.google-btn:active { transform: none; }

/* Safety Alert Styles */
.alert-icon.success {
  background: #10b981;
  color: white;
}

.alert-icon.danger {
  background: #ef4444;
  color: white;
}

.alert-row.breach {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
}

.breach-details {
  font-size: 0.85em;
  color: #6b7280;
  margin-top: 4px;
  font-weight: normal;
}

/* Additional auth styles */
.field-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.auth-footer { text-align: center; margin-top: 20px; color: #64748b; font-size: .9rem; }
.dashboard-actions { display: flex; flex-direction: column; gap: 12px; }

/* Auth actions */
.auth-actions { display: flex; gap: 1rem; margin-top: 2rem; }

/* Dashboard layout */
.dashboard-main { padding: 2rem; background: #f9f5ff; min-height: calc(100vh - 80px); }
.dashboard-container { max-width: 1200px; margin: 0 auto; }

/* User menu */
.user-menu { position: relative; }
.user-menu-button { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 8px 16px; border-radius: 6px; font-size: .875rem; font-weight: 500; cursor: pointer; display:flex; align-items:center; gap:8px; }
.ml-2 { margin-left: .5rem; }
.user-menu-dropdown { position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); min-width: 180px; z-index: 1000; display: none; margin-top: 8px; }
.user-menu-item { display:block; padding: .75rem 1rem; color:#374151; text-decoration:none; font-size:.875rem; cursor:pointer; }
.user-menu-item--border { border-bottom: 1px solid #f3f4f6; }

/* Balance cards */
.balance-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.card { background:#fff; border-radius:16px; padding:1rem; box-shadow:0 2px 8px rgba(0,0,0,0.1); position:relative; border-left:4px solid transparent; }
.card--blue-left { border-left-color:#e11d48; }
.card--green-left { border-left-color:#e11d48; }
.card-row { display:flex; align-items:center; gap:.5rem; }
.card-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.95rem; }
.card-icon--blue { background:#e11d48; }
.card-icon--green { background:#e11d48; }
.card-label { color:#6b7280; font-size:.875rem; margin-bottom:.5rem; }
.card-value { font-size:1.5rem; font-weight:700; color:#1f2937; }

/* Sections */
.section-spacer { margin-bottom: 2rem; }
.section-title { font-size:1.5rem; font-weight:600; color:#1f2937; margin:0 0 1.5rem; }
.section-title.sm { font-size:1.25rem; margin-bottom:0; }
.section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; }

.section-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Quick actions */
.actions-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:1rem; }
.action-card { background:#fff; border-radius:16px; padding:1rem; box-shadow:0 2px 8px rgba(0,0,0,0.1); border-left:4px solid transparent; cursor:pointer; transition: transform .2s ease, box-shadow .2s ease; }
.action-card--red { border-left-color:#e11d48; }
.action-card--blue { border-left-color:#e11d48; }
.action-card--green { border-left-color:#e11d48; }
.action-card--orange { border-left-color:#e11d48; }
.action-content { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.5rem; }
.action-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:.95rem; }
.action-label { font-size: .95rem; }
.action-icon--red { background:#ffe4e6; color:#e11d48; }
.action-icon--blue { background:#ffe4e6; color:#e11d48; }
.action-icon--green { background:#ffe4e6; color:#e11d48; }
.action-icon--orange { background:#ffe4e6; color:#e11d48; }
.action-label { font-weight:500; color:#1f2937; }

/* Children list */
.children-list { display: flex; flex-direction: column; gap: 1.5rem; }

.child-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }

.child-left { display: flex; align-items: center; gap: 1rem; }

.child-avatar { width: 48px; height: 48px; background: #e11d48; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1rem; }

.child-name { font-size: 1rem; font-weight: 600; color: #1f2937; margin-bottom: 0.25rem; }

.child-sub { color: #6b7280; font-size: 0.875rem; }

.child-right { display: flex; align-items: center; gap: 2rem; }

.child-balance { text-align: right; }

.child-balance .amount { font-size: 1.5rem; font-weight: 700; color: #e11d48; margin-bottom: 0.25rem; }

.child-balance .caption { color: #6b7280; font-size: 0.75rem; }

.child-actions { display: flex; gap: 0.75rem; }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:.5rem; border-radius:6px; font-size:.875rem; font-weight:500; cursor:pointer; border:1px solid transparent; padding:.5rem 1rem; }
.btn-sm { padding:.5rem 1rem; }
.btn-xs { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-primary { background:#e11d48; color:#fff; border-color:#e11d48; }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background:#f3f4f6; color:#374151; border-color:#d1d5db; }
.btn-secondary:hover { background:#eef0f2; }

/* Button variants */
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }

/* Safety card */
.safety-card { background:#fff; border-radius:12px; padding:1.5rem; box-shadow:0 1px 3px rgba(0,0,0,0.1); border:1px solid #e5e7eb; }
.alert-row { display:flex; align-items:center; gap:1rem; padding:.75rem 0; }
.alert-icon { width:40px; height:40px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:1rem; }
.alert-icon.success { background:#10b981; color:#fff; }
.alert-text { flex:1; font-size:.875rem; font-weight:500; color:#1f2937; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  border: none;
  border-radius: 24px;
  display: flex;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 8px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
  border-radius: 16px;
  gap: 4px;
}
.nav-item.active {
  background: #f43f5e;
  color: white;
}
.nav-item:hover:not(.active) {
  background: rgba(225, 29, 72, 0.1);
}

/* Hover effects for quick action cards */
[onclick]:hover { transform: translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.15); }

/* Section Content Styles */
.section-content { padding: 0 0 80px 0; }
.section-content .dashboard-container { padding: 0 2rem; }

/* Modal */
.modal { display:none; position:fixed; z-index:2000; inset:0; background:rgba(0,0,0,.5); padding: 2rem 1rem 6rem; overflow-y: auto; }
.modal-content { background:#fff; margin: 0 auto; border-radius:12px; width:100%; max-width:560px; box-shadow:0 4px 20px rgba(0,0,0,.15); overflow:hidden; max-height: calc(100vh - 8rem); display: flex; flex-direction: column; }
.modal-large .modal-content {
  max-width: 1000px;
  max-height: calc(100vh - 4rem);
}
.modal-header { padding: 1.5rem; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.modal-title { margin: 0; font-size: 1.25rem; font-weight: 700; color: #1f2937; display: flex; align-items: center; }
.modal-close { background: none; border: none; font-size: 1.5rem; color: #6b7280; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.modal-close:hover { background: #f3f4f6; color: #374151; }
.modal-body { padding: 1.5rem; flex: 1; overflow-y: auto; }
.modal-actions { padding: 1rem 1.5rem; border-top: 1px solid #e5e7eb; display: flex; gap: 0.75rem; justify-content: flex-end; }

/* Inputs inside modal reuse .field/.input styles */
.input::placeholder { color:#94a3b8; }

/* Select dropdowns */
select.input { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; padding-right: 2.5rem; }

/* New Landing Page Sections */
.how-it-works-section {
    padding: 80px 20px;
    background-color: #fef2f2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.step-number {
    width: 50px;
    height: 50px;
    background: #e11d48;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.games-section {
    padding: 80px 20px;
    background: white;
    text-align: center;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: #f8fafc;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.game-icon {
    font-size: 40px;
    color: #e11d48;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    background: rgba(225, 29, 72, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.security-section {
    padding: 80px 20px;
    background-color: #f8fafc;
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.security-text h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.security-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.security-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #334155;
}

.security-features i {
    color: #e11d48;
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
}

.security-image {
    text-align: center;
}

.security-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-banner {
    background: linear-gradient(135deg, #e11d48 0%, #8b5cf6 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button.primary {
    background: white;
    color: #e11d48;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .security-features {
        text-align: left;
        max-width: 500px;
        margin: 30px auto 0;
    }
    
    .security-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    .steps-container,
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Utility */
.hidden { display:none !important; }

/* Activity and Transaction Cards */
.activity-card, .transaction-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; }

.activity-header { margin-bottom: 1rem; }

.activity-subtitle { font-size: 1.125rem; font-weight: 600; color: #1f2937; margin: 0; }

.activity-list, .transaction-list { min-height: 200px; }

/* Empty States */
.empty-activity, .empty-transactions { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 1rem; color: #6b7280; }

.empty-icon { width: 64px; height: 64px; background: #f3f4f6; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #9ca3af; font-size: 1.5rem; }

.empty-text { font-size: 1.125rem; font-weight: 600; color: #374151; margin: 0 0 0.5rem 0; }

.empty-subtext { font-size: 0.875rem; color: #6b7280; margin: 0; line-height: 1.4; }

/* Recurring Payments */
.recurring-payments-list { min-height: 200px; }

.recurring-payment-item { 
  background: white; 
  border: 1px solid #e5e7eb; 
  border-radius: 8px; 
  padding: 1rem; 
  margin-bottom: 0.75rem; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.recurring-payment-info { flex: 1; }

.recurring-payment-title { 
  font-weight: 600; 
  color: #1f2937; 
  margin-bottom: 0.25rem; 
}

.recurring-payment-details { 
  color: #6b7280; 
  font-size: 0.875rem; 
}

.recurring-payment-status { 
  padding: 0.25rem 0.75rem; 
  border-radius: 12px; 
  font-size: 0.75rem; 
  font-weight: 500; 
}

.recurring-payment-status.active { 
  background: #ecfdf5; 
  color: #059669; 
}

.btn-add-payment { 
  width: 100%; 
  background: #e11d48; 
  border-color: #e11d48; 
  margin-top: 1rem; 
}

.btn-add-payment:hover { 
  background: #be123c; 
  border-color: #be123c; 
}

/* Empty state for recurring payments */
.empty-recurring { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  padding: 3rem 1rem; 
  color: #6b7280; 
}

.empty-recurring .empty-icon { 
  width: 64px; 
  height: 64px; 
  background: #f3f4f6; 
  border-radius: 16px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 1rem; 
  color: #9ca3af; 
  font-size: 1.5rem; 
}

.empty-recurring .empty-text { 
  font-size: 1.125rem; 
  font-weight: 600; 
  color: #374151; 
}

/* Individual Activity Items */
.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: white;
  transition: all 0.2s ease;
}

/* Compact, single-line style for student recent activity (Home section only) */
.activity-card .activity-item {
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.activity-card .activity-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
}

.activity-card .activity-details {
  display: block;
  min-width: 0;
}

.activity-card .activity-title {
  font-size: 0.9rem;
  white-space: normal;
  margin: 0;
}

/* Show full content (reason and date) in student recent activity */
.activity-card .activity-details { display: block; }
.activity-card .activity-title { white-space: normal; }
.activity-card .activity-subtitle,
.activity-card .activity-date {
  display: block;
  white-space: normal;
  word-break: break-word;
  font-size: 0.8rem;
  line-height: 1.2;
  margin-top: 2px;
}

.activity-card .activity-amount {
  font-size: 0.9rem;
  margin-left: auto;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-large .modal-content {
  max-width: 1400px;
  margin: 0 auto;
}

/* QR Scanner Styles */
.qr-scanner-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.qr-video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.qr-scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.qr-scanner-frame {
  width: 200px;
  height: 200px;
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  position: relative;
  animation: scannerPulse 2s infinite;
}

.qr-scanner-frame::before,
.qr-scanner-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #8b5cf6;
}

.qr-scanner-frame::before {
  top: -3px;
  left: -3px;
  border-right: none;
  border-bottom: none;
}

.qr-scanner-frame::after {
  bottom: -3px;
  right: -3px;
  border-left: none;
  border-top: none;
}

@keyframes scannerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.qr-scanner-status {
  text-align: center;
  padding: 1rem;
  color: #6b7280;
}

.qr-scanner-status i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #8b5cf6;
}

.qr-scanner-status p {
  margin: 0;
  font-size: 0.875rem;
}

.qr-payment-details {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.qr-payment-details h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.125rem;
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.payment-field:last-child {
  border-bottom: none;
}

.payment-field label {
  font-weight: 500;
  color: #6b7280;
}

.payment-field span {
  font-weight: 600;
  color: #1f2937;
}

.modal-content {
  background-color: white;
  margin: 0 auto;
  padding: 0;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideIn 0.3s ease-out;
  max-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.field {
  margin-bottom: 1.5rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.field .input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.field .input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field textarea.input {
  resize: vertical;
  min-height: 80px;
}

/* Money Requests Styles */
.money-requests-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.money-request-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.money-request-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.money-request-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-size: 1.25rem;
}

.money-request-details {
  flex: 1;
}

.money-request-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.money-request-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.money-request-amount {
  font-size: 1.25rem;
  font-weight: 600;
  color: #059669;
}

.money-request-actions {
  display: flex;
  gap: 0.5rem;
}

.money-request-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.money-request-actions .btn-approve {
  background-color: #059669;
  color: white;
  border: 1px solid #059669;
}

.money-request-actions .btn-approve:hover {
  background-color: #047857;
  border-color: #047857;
}

.money-request-actions .btn-decline {
  background-color: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}

.money-request-actions .btn-decline:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

.empty-money-requests {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
}

.empty-money-requests .empty-icon {
  font-size: 3rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.empty-money-requests .empty-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-money-requests .empty-subtext {
  color: #6b7280;
  font-size: 0.875rem;
}

.activity-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.activity-icon.positive {
  background: linear-gradient(135deg, #10b981, #059669);
}

.activity-icon.negative {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.activity-icon.default {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}

.activity-details {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.activity-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.activity-date {
  color: #9ca3af;
  font-size: 0.75rem;
}

.activity-amount {
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.activity-amount.positive {
  color: #059669;
}

.activity-amount.negative {
  color: #dc2626;
}

/* Error message styling */
.error-message {
  color: #dc2626;
  text-align: center;
  padding: 2rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0; 
}

.empty-recurring .empty-subtext { 
  font-size: 0.875rem; 
  color: #6b7280; 
  margin: 0; 
  line-height: 1.4; 
}

/* Spending Limits Section */
.limits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.limit-card { 
  background: white; 
  border-radius: 16px; 
  padding: 1.5rem; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  border: 1px solid #e5e7eb; 
}

.limit-card--orange { border-left: 4px solid #f59e0b; }
.limit-card--purple { border-left: 4px solid #8b5cf6; }

.limit-content { display: flex; align-items: flex-start; gap: 1rem; }

.limit-icon { 
  width: 48px; 
  height: 48px; 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 1.25rem; 
  color: white; 
}

.limit-card--orange .limit-icon { background: #f59e0b; }
.limit-card--purple .limit-icon { background: #8b5cf6; }

.limit-info { flex: 1; }

.limit-label { 
  color: #6b7280; 
  font-size: 0.875rem; 
  margin-bottom: 0.5rem; 
}

.limit-value { 
  font-size: 1.5rem; 
  font-weight: 700; 
  color: #1f2937; 
  margin-bottom: 1rem; 
}

.limit-progress { display: flex; flex-direction: column; gap: 0.5rem; }

.progress-bar { 
  width: 100%; 
  height: 8px; 
  background: #f3f4f6; 
  border-radius: 4px; 
  overflow: hidden; 
}

.progress-fill { 
  height: 100%; 
  background: linear-gradient(90deg, #10b981, #059669); 
  border-radius: 4px; 
  transition: width 0.3s ease; 
}

.progress-text { 
  font-size: 0.75rem; 
  color: #6b7280; 
  text-align: center; 
}

/* Student Profile Section */
.profile-overview-card {
  background: white;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  background: #e11d48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-info h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.profile-status {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.profile-section {
  background: white;
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  margin-bottom: 0.85rem;
}

.profile-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.profile-section-icon {
  width: 20px;
  height: 20px;
  color: #8b5cf6;
}

.profile-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
}

.profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-field-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
}

.profile-field-value {
  font-size: 0.95rem;
  color: #1f2937;
  padding: 0.45rem 0.55rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 20px;
}

.profile-status-badge {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  text-align: center;
  font-weight: 500;
}

.profile-balance-badge {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  text-align: center;
  font-weight: 600;
}

.security-notice {
  background: #fffbeb;
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 1.25rem;
}

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

.security-notice-icon {
  color: #f59e0b;
  font-size: 1.25rem;
}

.security-notice-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #92400e;
}

.security-notice-text {
  margin: 0;
  color: #92400e;
  line-height: 1.6;
  font-size: 0.875rem;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin: 0 0 2rem 0;
}

/* QR Scanner Section */
.qr-scanner-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.25rem;
}

.qr-scanner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.qr-scanner-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.qr-scanner-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.qr-scanner-description {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.4;
}

.qr-payments-list {
  min-height: 200px;
}

.empty-qr-payments {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

/* Activity Statistics */
.activity-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.view-reports-btn {
  background: #e11d48;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
}

.view-reports-btn:hover {
  background: #0284c7;
}

/* Rewards Section Styles */
.rewards-overview {
  margin-bottom: 3rem;
}

.rewards-stats-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rewards-main-card {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.rewards-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.rewards-content {
  flex: 1;
}

.rewards-label {
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 0.125rem;
}

.rewards-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.rewards-month-card {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  border-radius: 8px;
  padding: 0.75rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 6px rgba(244, 114, 182, 0.25);
}

.rewards-month-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.rewards-month-label {
  font-size: 0.6rem;
  opacity: 0.9;
  margin-bottom: 0.125rem;
}

.rewards-month-value {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.achievement-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.achievement-card.achievement-earned {
  border-left: 4px solid #10b981;
  background: #f0fdf4;
}

.achievement-card.achievement-locked {
  opacity: 0.6;
  border-left: 4px solid #d1d5db;
}

.achievement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.achievement-icon--green {
  background: #10b981;
}

.achievement-icon--blue {
  background: #3b82f6;
}

.achievement-icon--gray {
  background: #9ca3af;
}

.achievement-content {
  flex: 1;
}

.achievement-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.achievement-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
}

.achievement-points {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}

/* Rewards Store */
.rewards-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.reward-item {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reward-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.reward-item--locked {
  opacity: 0.6;
  background: #f9fafb;
}

.reward-icon {
  width: 48px;
  height: 48px;
  background: #e11d48;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.reward-content {
  flex: 1;
}

.reward-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.reward-cost {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b5cf6;
}

.reward-redeem-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive adjustments for rewards */
@media (max-width: 768px) {
  .rewards-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .achievements-grid,
  .rewards-store-grid {
    grid-template-columns: 1fr;
  }
}

/* Detailed Activity Section */
.detailed-activity-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.activity-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #e5e7eb;
}

.filter-btn.active {
  background: #e11d48;
  color: white;
  border-color: #e11d48;
}

.detailed-activity-list {
  min-height: 200px;
}

.detailed-activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.detailed-activity-item .activity-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.activity-icon.wallet { background: #f59e0b; }
.activity-icon.emergency { background: #ef4444; }
.activity-icon.recurring { background: #3b82f6; }
.activity-icon.qr { background: #8b5cf6; }
.activity-icon.transfer { background: #10b981; }
.activity-icon.default { background: #6b7280; }

.detailed-activity-item .activity-details {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.detailed-activity-item .activity-title {
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.activity-subtitle {
  color: #6b7280;
  font-size: 0.8rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.activity-date {
  color: #9ca3af;
  font-size: 0.75rem;
}

.activity-amount {
  font-weight: 600;
  font-size: 1rem;
}

.activity-amount.positive {
  color: #10b981;
}

.activity-amount.negative {
  color: #ef4444;
}

/* Pending (e.g., requests awaiting decision) */
.activity-amount.pending {
  color: #f59e0b; /* orange */
}

/* Notifications Section */
.notifications-list {
  min-height: 200px;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #e5e7eb;
}

.notification-icon {
  width: 28px;
  height: 28px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.notification-details {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0; /* allows ellipsis */
}

.notification-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-subtitle {
  display: none; /* hide to keep single-line row */
}

.notification-amount {
  font-weight: 700;
  font-size: 0.95rem;
  color: #059669;
  margin-left: auto;
}

.notification-actions {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

/* Show full content for parent notifications (reason, etc.) */
.notifications-list .notification-details {
  display: block;
}

.notifications-list .notification-title {
  white-space: normal;
}

.notifications-list .notification-subtitle {
  display: block;           /* make subtitle visible */
  white-space: normal;      /* allow wrapping */
  word-break: break-word;   /* wrap long words */
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 2px;
}

.btn-approve {
  background: #10b981;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s;
}

.btn-approve:hover {
  background: #059669;
}

.btn-decline {
  background: #ef4444;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s;
}

.btn-decline:hover {
  background: #dc2626;
}

/* Notification status styles */
.notification-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #d1fae5;
  color: #065f46;
}

.status-declined {
  background: #fee2e2;
  color: #991b1b;
}

/* Notification item states */
.notification-approved {
  border-left: 4px solid #10b981;
  background: #f0fdf4;
}

.notification-declined {
  border-left: 4px solid #ef4444;
  background: #fef2f2;
}

.notification-emergency {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.notification-icon--emergency {
  background: #f59e0b !important;
}

.empty-notifications {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

/* Empty States */
.empty-activity, .empty-transactions {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #9ca3af;
  font-size: 1.5rem;
}

.empty-text {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.empty-subtext {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Memory Game Modal Styles - Updated to match app theme */
.memory-game-status {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(2, 16, 40, 0.05);
}

.game-stat-item {
  text-align: center;
}

.game-stat-item .game-stat-label {
  font-size: 13px;
  color: #64748b;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-stat-item .game-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}

.memory-game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 450px;
  margin: 0 auto 28px auto;
}

.memory-card {
  aspect-ratio: 1;
  perspective: 1000px;
  cursor: pointer;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(2, 16, 40, 0.1);
}

.memory-card-front {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.memory-card-back {
  background: #fff;
  color: var(--ink);
  transform: rotateY(180deg);
  font-size: 32px;
  border: 2px solid #e2e8f0;
}

.memory-card.matched .memory-card-back {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: 2px solid #10b981;
}

.memory-game-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.memory-game-controls .btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.memory-game-results {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(29, 111, 212, 0.25);
}

.results-content {
  max-width: 320px;
  margin: 0 auto;
}

.results-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.results-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.results-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-stat:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 500;
}

.result-value {
  font-size: 18px;
  font-weight: 700;
}

.points-earned {
  color: #10b981;
  font-weight: 800;
  font-size: 20px;
}

/* Game iframe integration styles - Updated to match app theme */
.game-iframe-container {
  width: 100%;
  height: calc(95vh - 150px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
  background: transparent;
}

.memory-game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 17px;
}

.game-completion-notice {
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  color: #fff;
  margin-top: 24px;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.completion-content {
  max-width: 340px;
  margin: 0 auto;
}

.completion-icon {
  font-size: 56px;
  margin-bottom: 20px;
  opacity: 0.95;
}

.completion-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.completion-stats {
  margin-bottom: 28px;
}

.completion-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.completion-stat:last-child {
  border-bottom: none;
}

.completion-label {
  font-size: 16px;
  opacity: 0.9;
  font-weight: 500;
}

.completion-value {
  font-size: 20px;
  font-weight: 800;
}

.completion-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.completion-actions .btn {
  flex: 1;
  max-width: 160px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.completion-actions .btn-primary {
  background: #e11d48;
  border: 1px solid #e11d48;
  color: #ffffff;
}

.completion-actions .btn-primary:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.completion-actions .btn-success {
  background: #fff;
  color: #059669;
  border: 2px solid #fff;
}

.completion-actions .btn-success:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
}

/* Game Progress Styles */
.difficulty-progress {
  margin-top: 15px;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.difficulty-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin: 5px 0;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #ddd;
  transition: all 0.3s ease;
}

.difficulty-item.completed {
  background: #e8f5e8;
  border-left-color: #28a745;
}

.difficulty-name {
  font-weight: 600;
  color: #333;
}

.difficulty-status {
  font-size: 0.9em;
  color: #666;
  padding: 2px 8px;
  background: #e9ecef;
  border-radius: 12px;
}

.difficulty-item.completed .difficulty-status {
  background: #d4edda;
  color: #155724;
}

.difficulty-points {
  font-weight: 600;
  color: #007bff;
  font-size: 0.9em;
}

.difficulty-item.completed .difficulty-points {
  color: #28a745;
}

/* Mark as Completed Button States */
button[onclick="markGameCompleted()"] {
  transition: all 0.3s ease;
}

button[onclick="markGameCompleted()"][disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: #6c757d;
}

button[onclick="markGameCompleted()"][disabled]:hover {
  background: #6c757d;
}
