/* =========================
   0) Namespaced baseline
   ========================= */
:root {
  --green-1: #007b5e;
  --green-2: #00a884;
  --text: #2f3e46;
  --bg: #f9fafb;
  --card-text: #007b5e;
  --radius-lg: 20px;
  --shadow-1: 0 4px 12px rgba(0,0,0,.15);
  --shadow-2: 0 3px 10px rgba(0,0,0,.15);
  --light-bg: #faf7f0; /* Soft warm cream background */
  --islamic-gold: #d4af37;
  --islamic-teal: #00a884;
  --islamic-mint: #e8f5f0;
}

.app, .app * {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent body scroll */
}

body {
  margin: 0;
  background: var(--light-bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =========================
   1) HEADER (Panel 1 - Green gradient) - ENHANCED
   ========================= */
.app__header {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: #fff;
  padding: 10px 16px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  z-index: 10;
  flex-shrink: 0; /* Prevent header from shrinking */
}

/* Decorative element at bottom of header */
.app__header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(212, 175, 55, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 80%,
    transparent 100%
  );
  z-index: 2;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.bot-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 
    0 0 6px rgba(0, 0, 0, 0.2),
    0 0 12px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.bot-logo:hover {
  transform: scale(1.05);
}

.header-content h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

/* Language flag buttons in header */
.lang-flags {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.flag-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.flag-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}

.flag-btn:active {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(0.95);
}

/* Spinning animation for refresh icon */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================
   2) MERGED CONTENT PANEL (Panels 2 & 3 Combined)
   ========================= */
.merged-content-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--light-bg); /* Unified light warm cream background */
  position: relative;
}

/* =========================
   3) PRAYER SECTION (Fixed at top) - ENHANCED
   ========================= */
.prayer-section-fixed {
  background: var(--light-bg); /* Same as main panel - merged! */
  padding: 20px 16px 16px 16px;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0; /* Don't shrink when scrolling */
  z-index: 5;
}

/* =========================
   4) PRAYER CARD (Better themed background) - ENHANCED
   ========================= */
.prayer-card-timeline {
  all: unset;
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
  
  /* Improved Islamic-themed gradient background */
  background: linear-gradient(135deg, 
    #e8f5f0 0%,      /* Soft mint green */
    #f0f9f5 35%,     /* Light seafoam */
    #fdfefe 65%,     /* Almost white */
    #f4f9f7 100%     /* Soft teal-white */
  );
  
  border-radius: 20px;
  box-shadow: 
    0 4px 16px rgba(0, 123, 94, 0.15),
    0 8px 32px rgba(0, 168, 132, 0.08);
  border: 1px solid rgba(0, 168, 132, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.6s ease-out;
}

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

/* Subtle pattern overlay for Islamic aesthetic */
.prayer-card-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 168, 132, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 123, 94, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content is above the overlay */
.prayer-card-timeline > * {
  position: relative;
  z-index: 1;
}

.prayer-card-timeline:hover {
  background: linear-gradient(135deg, 
    #e0f2ea 0%, 
    #ebf7f1 35%, 
    #f9fdfc 65%, 
    #eff7f4 100%
  );
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(0, 123, 94, 0.2),
    0 10px 40px rgba(0, 168, 132, 0.1);
  border-color: rgba(0, 168, 132, 0.15);
}

.prayer-card-timeline:active {
  transform: translateY(0);
}

/* Top Row: Date on left, City on right (SAME LINE) */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

/* Left Side: Date and Hijri stacked vertically */
.left-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  text-align: left;
}

.left-side .weekday {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #0b3c33;
  line-height: 1.3;
}

.left-side .hijri {
  font-size: 0.85rem;
  color: #49645b;
  margin: 0;
  line-height: 1.3;
}

/* Right Side: Location (aligned to the right) */
.right-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-align: right;
}

.right-side .location-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.right-side .city-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0d5a47;
  line-height: 1.3;
  white-space: nowrap;
}

/* Timeline Prayer Section */
.timeline-prayer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.timeline-start,
.timeline-end {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timeline-emoji {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.timeline-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #1a4d2e;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.3px;
}

.timeline-time {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #2c5e2e;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* Timeline Progress/Countdown */
.timeline-progress {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 0 8px;
}

.progress-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #00a884 0%, #4caf50 100%);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 168, 132, 0.3);
}

.progress-line::before,
.progress-line::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a884;
  box-shadow: 0 0 0 2px white, 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-line::before {
  left: -4px;
}

.progress-line::after {
  right: -4px;
  background: #4caf50;
}

.countdown-badge {
  background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff8f00;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2);
  white-space: nowrap;
  animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { 
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.2);
  }
  50% { 
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  }
}

/* =========================
   5) SCROLLABLE FEATURES SECTION - ENHANCED
   ========================= */
.scrollable-features {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 2px;
  background: var(--light-bg); /* Light warm cream solid color */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Add subtle section separator */
.scrollable-features::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00a884, transparent);
  margin: 0 auto 10px auto;
  border-radius: 2px;
}

/* Hide scrollbar for cleaner look (optional) */
.scrollable-features::-webkit-scrollbar {
  width: 6px;
}

.scrollable-features::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.scrollable-features::-webkit-scrollbar-thumb {
  background: rgba(0, 123, 94, 0.3);
  border-radius: 3px;
}

.scrollable-features::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 123, 94, 0.5);
}

/* =========================
   6) Main — ISLAMIC-INSPIRED CARDS GRID - ENHANCED
   ========================= */
.main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; /* Increased from 20px */
  padding: 8px 0; /* Add top/bottom padding */
  justify-items: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* Islamic-inspired feature cards - ENHANCED */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 170px;
  
  /* Soft gradient with Islamic color palette */
  background: linear-gradient(145deg, 
    #ffffff 0%, 
    #f8fdf9 50%, 
    #f0f9f4 100%
  );
  
  border: 0;
  border-radius: 24px; /* Softer, more rounded */
  padding: 26px 16px;
  
  /* Elegant shadow with subtle teal tint */
  box-shadow: 
    0 4px 12px rgba(0, 123, 94, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
  
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Subtle Islamic geometric pattern overlay */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 168, 132, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.02) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}

/* Decorative border accent inspired by Islamic art */
.card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, #00a884, #d4af37, #00a884);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover {
  /* Lift effect with enhanced shadow */
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 8px 20px rgba(0, 123, 94, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.06);
  
  /* Enhanced gradient on hover */
  background: linear-gradient(145deg, 
    #ffffff 0%, 
    #f0fdf7 50%, 
    #e8f5f0 100%
  );
}

/* Show decorative border on hover */
.card:hover::after {
  opacity: 0.6;
}

.card:active {
  transform: translateY(-2px) scale(1);
  transition: all 0.1s ease;
}

/* Card Icon - ENHANCED */
.card-icon {
  font-size: 3.5rem; /* Slightly larger */
  margin: 18px 0;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Card Text - ENHANCED */
.card p {
  margin: 0;
  color: var(--card-text);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card:hover p {
  color: #006b5f;
  transform: translateY(-2px);
}

/* Coming Soon Cards - NEW */
.card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.card.coming-soon::after {
  content: 'Tez kunda';
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
  z-index: 10;
  opacity: 1;
}

.card.coming-soon:hover {
  transform: none;
  box-shadow: 
    0 4px 12px rgba(0, 123, 94, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

.card.coming-soon:hover::after {
  opacity: 1;
}

.card.coming-soon .card-icon {
  filter: grayscale(50%);
}

.card.coming-soon:hover .card-icon {
  transform: none;
}

/* Ripple Effect - NEW */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 168, 132, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* =========================
   7) PRAYERS DETAILED PAGE
   ========================= */
.prayers-detailed {
  background-color: #f8fff8;
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.prayers-detailed h2 {
  font-size: 1.4rem;
  color: #2c5e2e;
  margin-bottom: 4px;
}

.prayers-detailed p {
  font-size: 1rem;
  color: #4c4c4c;
  margin-bottom: 20px;
}

/* Location update row with inline refresh button */
.location-update-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 20px 0;
}

/* Inline refresh button (smaller, next to timestamp) */
.inline-refresh-btn {
  background: rgba(0, 123, 94, 0.1);
  border: 2px solid rgba(0, 123, 94, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.inline-refresh-btn:hover:not(:disabled) {
  background: rgba(0, 123, 94, 0.2);
  border-color: rgba(0, 123, 94, 0.5);
  transform: scale(1.1);
}

.inline-refresh-btn:active:not(:disabled) {
  transform: scale(0.95);
  background: rgba(0, 123, 94, 0.3);
}

.inline-refresh-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Refresh icon inside inline button */
.inline-refresh-btn #refreshIcon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.inline-refresh-btn #refreshIcon.spinning {
  animation: spin 1s linear infinite !important;
}

/* Location timestamp styling */
#locationTimestamp {
  color: #888;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 5px;
}

.prayer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px;
}

.prayer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f0f9f4 0%, #e7f4e8 100%);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1.1rem;
  color: #2c5e2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

/* Special styling for Sunrise */
.sunrise-marker {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 2px dashed #ffa726;
  opacity: 0.95;
}

.sunrise-marker .prayer-emoji {
  font-size: 1.6rem;
}

.sunrise-marker .prayer-name-text {
  color: #e65100;
  font-weight: 500;
}

.sunrise-marker .prayer-time-text {
  color: #f57c00;
  font-weight: 600;
}

.prayer-subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  color: #ff6f00;
  font-style: italic;
  display: block;
  margin-top: 2px;
}

.prayer-name-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.prayer-emoji {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.prayer-name-text {
  font-weight: 600;
  font-size: 1.15rem;
  color: #1a4d2e;
  text-align: left;
}

.prayer-time-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #2c5e2e;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.current-prayer {
  background: linear-gradient(135deg, #a8d5ba 0%, #c8e6c9 100%);
  border: 2px solid #4caf50;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
  transform: scale(1.02);
}

.current-prayer .prayer-emoji {
  animation: pulse-glow 2s ease-in-out infinite;
}

.current-prayer .prayer-name-text,
.current-prayer .prayer-time-text {
  color: #1b5e20;
  font-weight: 700;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.4));
  }
}

/* Next prayer countdown on prayers page */
.next-prayer-countdown {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border: 2px solid #ffc107;
  border-radius: 16px;
  padding: 16px;
  margin: 20px auto;
  max-width: 400px;
  box-shadow: 0 3px 10px rgba(255, 193, 7, 0.2);
}

.next-prayer-countdown p {
  margin: 8px 0;
  font-size: 1.1rem;
  color: #e65100;
  font-weight: 600;
}

.countdown-text {
  font-size: 1.3rem !important;
  color: #ff6f00 !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* Informative Note Section - Clean & Simple Design */
.prayer-info-note {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 20px;
  margin: 30px 10px 20px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.info-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c5e2e;
  margin: 0 0 12px 0;
}

.info-method {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.info-method strong {
  color: #2c5e2e;
  font-weight: 600;
}

.info-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0d0d0, transparent);
  margin: 16px 0;
}

.info-advice-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e65100;
  margin: 0 0 12px 0;
}

.info-advice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 3px solid #00a884;
}

.advice-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.advice-text {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

.advice-text strong {
  color: #00a884;
  font-weight: 700;
}

/* =========================
   8) Responsive tweaks - ENHANCED
   ========================= */
@media (max-width: 420px) {
  .main { 
    gap: 20px; /* Slightly larger gap for mobile */
    padding: 4px 0; 
  }
  
  .card { 
    max-width: 150px; 
    padding: 22px 12px;
    border-radius: 20px;
  }
  
  .card-icon {
    font-size: 3rem; /* Adjusted for smaller screens */
    margin: 14px 0;
  }
  
  .card p {
    font-size: 1rem;
  }
  
  .app__header h1 { 
    font-size: 1rem; 
  }
  
  .scrollable-features { 
    padding: 20px 12px; 
  }
  
  /* Adjust top row for smaller screens */
  .top-row {
    gap: 8px;
  }
  
  .left-side .weekday {
    font-size: 0.95rem;
  }
  
  .left-side .hijri {
    font-size: 0.8rem;
  }
  
  .right-side .city-name {
    font-size: 0.9rem;
  }
  
  .right-side .location-icon {
    font-size: 1rem;
  }
}

/* =========================
   NEW FEATURE HIGHLIGHT
   Golden dot running around edge
   ========================= */

.card.new-feature {
  position: relative;
  background: rgba(255,255,255,.92);
}

/* Animated border container */
.card.new-feature .glow-border {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 21px;
  overflow: hidden;
  z-index: -1;
}

/* The running golden dot */
.card.new-feature .glow-border::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #d4af37 0%, #f4e4a6 40%, transparent 70%);
  border-radius: 50%;
  animation: moveAroundEdge 3s linear infinite;
}

/* Movement around the edge - clockwise */
@keyframes moveAroundEdge {
  0% {
    top: -20px;
    left: 10%;
  }
  25% {
    top: 30%;
    left: calc(100% - 20px);
  }
  50% {
    top: calc(100% - 20px);
    left: 60%;
  }
  75% {
    top: 50%;
    left: -20px;
  }
  100% {
    top: -20px;
    left: 10%;
  }
}

/* NEW badge */
.new-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #1a4d2e 0%, #2d6a4f 100%);
  color: #f4e4a6;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(26, 77, 46, 0.5);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.new-badge::before {
  content: '☪';
  font-size: 0.65rem;
}

.card.new-feature {
  position: relative;
  overflow: visible;
}