:root {
  --bg: #070709;
  --bg-gradient: radial-gradient(circle at 50% 0%, #1c0f16 0%, #070709 70%);
  --panel: #111217;
  --panel-card: #151720;
  --panel-hover: #1c1e2a;
  --text: #f5f5f7;
  --muted: #9e9ea7;
  --muted-light: #c8c8cf;
  --accent: #d7263d;
  --accent-2: #ff455e;
  --accent-glow: rgba(215, 38, 61, 0.28);
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.main-content {
  flex: 1;
  padding: 1.75rem 1.25rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  padding: 1.5rem 0 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(215, 38, 61, 0.15);
  border: 1px solid rgba(215, 38, 61, 0.3);
  border-radius: var(--radius-pill);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0 0 0.85rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 40%, #c4c4c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  max-width: 680px;
  line-height: 1.65;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

/* ===================================================
   WALLET CARD COMPONENT
   =================================================== */
.wallet-card {
  width: 100%;
  max-width: 760px;
  margin: 1.5rem 0 2.2rem;
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 28, 38, 0.9) 0%, rgba(17, 18, 25, 0.95) 100%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(215, 38, 61, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.wallet-label {
  color: #ff9da8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.wallet-amount {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.wallet-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 38, 61, 0.15);
  border: 1px solid rgba(215, 38, 61, 0.3);
  color: var(--accent-2);
  font-size: 1.3rem;
  box-shadow: 0 0 16px var(--accent-glow);
}

.wallet-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.stat-item.highlight {
  border-color: rgba(215, 38, 61, 0.25);
  background: rgba(215, 38, 61, 0.04);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-val {
  display: block;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

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

.wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wallet-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.wallet-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(215, 38, 61, 0.45);
}

.wallet-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.wallet-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

/* ===================================================
   SECTIONS & CATEGORIES
   =================================================== */
.section-title {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
}

.section-title h4 {
  color: var(--accent-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.section-title h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.category-card {
  background: var(--panel-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 38, 61, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.category-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e2029, #13141b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.category-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.category-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.category-card button,
.category-card .card-btn {
  width: fit-content;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card button:hover,
.category-card .card-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ===================================================
   RESPONSIVE BREAKPOINTS FOR ALL MOBILE SCREENS
   =================================================== */

/* Tablets / Medium Screens (max 768px) */
@media (max-width: 768px) {
  .main-content {
    padding: 1.25rem 1rem 2.5rem;
  }

  .wallet-card {
    padding: 1.15rem;
    margin: 1.2rem 0 1.8rem;
  }

  .wallet-stats {
    gap: 0.5rem;
  }

  .stat-item {
    padding: 0.7rem 0.65rem;
  }

  .wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .wallet-btn {
    width: 100%;
    padding: 0.75rem 0.8rem;
  }
}

/* Small Mobile Screens (max 480px) */
@media (max-width: 480px) {
  .main-content {
    padding: 1rem 0.85rem 2rem;
  }

  .hero {
    padding: 0.8rem 0 0.6rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .wallet-card {
    padding: 1rem;
    border-radius: 16px;
  }

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

  .wallet-amount {
    font-size: 1.7rem;
  }

  .wallet-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.1rem;
  }

  .wallet-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .stat-item {
    padding: 0.6rem 0.45rem;
    border-radius: 10px;
    text-align: center;
  }

  .stat-label {
    font-size: 0.68rem;
    margin-bottom: 0.2rem;
  }

  .stat-val {
    font-size: 0.92rem;
  }

  .categories {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    padding: 1rem;
  }

  .category-card button,
  .category-card .card-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
  }
}

/* Extra Small / Folded Screens (max 360px - e.g. Galaxy Fold, iPhone SE 1st gen) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .wallet-amount {
    font-size: 1.45rem;
  }

  .wallet-stats {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.6rem 0.75rem;
  }

  .stat-label {
    margin-bottom: 0;
  }

  .wallet-actions {
    grid-template-columns: 1fr;
  }
}

