: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: #9B0707;
  --accent-2: #D41B23;
  --accent-glow: rgba(155, 7, 7, 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;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

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

body {
  margin: 0;
  font-family: 'Rajdhani', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
}

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: 0.35rem 1.25rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===================================================
   HERO SHOWCASE SECTION
   =================================================== */
.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: stretch;
  gap: 2rem;
  padding: 1.5rem 1.75rem;
  margin: 1px 0;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.hero-showcase::before {
  display: none;
}

.hero-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  z-index: 2;
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: rgba(212, 27, 35, 0.12);
  border: 1px solid rgba(212, 27, 35, 0.35);
  border-radius: 999px;
  color: #D41B23;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 0 15px rgba(212, 27, 35, 0.15);
}

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

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes popScale {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-main-title {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.hero-neon-highlight {
  display: inline-block;
  background: linear-gradient(90deg, #D41B23 0%, #ff3b47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(212, 27, 35, 0.3);
  font-weight: 500;
}

.hero-subtext {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: #a0a0aa;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.hero-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.35rem;
  flex-wrap: nowrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #D41B23, #9B0707);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(212, 27, 35, 0.45);
  transition: all 0.25s ease;
}

.hero-btn-primary:hover {
  background: linear-gradient(180deg, #c0161e, #850505);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 27, 35, 0.6);
  color: #ffffff;
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-btn-secondary:hover {
  background: rgba(212, 27, 35, 0.12);
  border-color: rgba(212, 27, 35, 0.4);
  color: #D41B23;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  margin-top: 0.5rem;
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat-box .stat-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.hero-stat-box .stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8e909d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-sep {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
}

/* Right Visual - Direct inside Hero Showcase, full height */
.hero-right-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-character-img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  filter: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.hero-character-img:hover {
  transform: scale(1.02);
}

/* Mobile & Tablet Responsiveness - Always Side-by-Side with Proportional Sizing */
@media (max-width: 880px) {
  .hero-showcase {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
    padding: 0.85rem 0.85rem;
    gap: 0.75rem;
    margin: 1px 0;
    border-radius: 16px 16px 0 0;
    height: auto;
    min-height: 0;
    text-align: left;
  }
  .hero-left-content {
    align-items: flex-start;
    justify-content: center;
    gap: 0.6rem;
    text-align: left;
  }
  .hero-live-pill {
    padding: 0.22rem 0.55rem;
    font-size: 0.68rem;
    gap: 0.35rem;
    letter-spacing: 0.02em;
  }
  .hero-live-pill .live-pulse-dot {
    width: 6px;
    height: 6px;
  }
  .hero-main-title {
    font-size: clamp(1.05rem, 4vw, 1.65rem);
    line-height: 1.15;
    text-align: left;
  }
  .hero-subtext {
    font-size: clamp(0.7rem, 2.2vw, 0.82rem);
    line-height: 1.35;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-action-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.4rem;
    margin-top: 0.15rem;
    width: 100%;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    flex: 1 1 0;
    font-size: clamp(0.58rem, 1.8vw, 0.72rem);
    padding: 0.38rem 0.35rem;
    border-radius: 8px;
    min-width: 0;
    gap: 0.2rem;
    white-space: nowrap;
    justify-content: center;
    text-align: center;
  }
  .hero-btn-primary i,
  .hero-btn-secondary i {
    font-size: 0.58rem;
  }
  .hero-stats-row {
    padding: 0.38rem 0.6rem;
    gap: 0.5rem;
    border-radius: 10px;
    margin-top: 0.2rem;
    width: 100%;
    justify-content: flex-start;
  }
  .hero-stat-box .stat-num {
    font-size: 0.85rem;
  }
  .hero-stat-box .stat-lbl {
    font-size: 0.52rem;
  }
  .stat-sep {
    height: 18px;
  }
  .hero-right-visual {
    height: 100%;
    min-height: 165px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-character-img {
    height: 100%;
    width: 100%;
    min-height: 155px;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: none;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .hero-showcase {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 0.4rem;
    padding: 0.6rem 0.65rem;
    border-radius: 14px 14px 0 0;
    height: auto;
    min-height: 0;
    margin: 1px 0;
  }
  .hero-left-content {
    gap: 0.4rem;
  }
  .hero-live-pill {
    font-size: 0.58rem;
    padding: 0.18rem 0.45rem;
  }
  .hero-main-title {
    font-size: clamp(0.92rem, 4.2vw, 1.2rem);
  }
  .hero-subtext {
    font-size: 0.66rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-action-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.3rem;
    width: 100%;
  }
  .hero-btn-primary,
  .hero-btn-secondary {
    flex: 1 1 0;
    font-size: 0.54rem;
    padding: 0.32rem 0.2rem;
    border-radius: 6px;
    min-width: 0;
    gap: 0.15rem;
    white-space: nowrap;
    justify-content: center;
    text-align: center;
    letter-spacing: -0.01em;
  }
  .hero-btn-primary i,
  .hero-btn-secondary i {
    font-size: 0.5rem;
  }
  .hero-stats-row {
    padding: 0.3rem 0.45rem;
    gap: 0.35rem;
  }
  .hero-stat-box .stat-num {
    font-size: 0.75rem;
  }
  .hero-stat-box .stat-lbl {
    font-size: 0.46rem;
  }
  .stat-sep {
    height: 15px;
  }
  .hero-right-visual {
    min-height: 155px;
  }
  .hero-character-img {
    height: 100%;
    width: 100%;
    min-height: 145px;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: none;
    box-shadow: none;
  }
}

/* ===================================================
   WALLET CARD COMPONENT
   =================================================== */
.wallet-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.25rem 0 1.8rem;
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(26, 28, 38, 0.94) 0%, rgba(17, 18, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  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: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212, 27, 35, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

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

.wallet-label {
  color: #ff9da8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}


.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(155, 7, 7, 0.15);
  border: 1px solid rgba(155, 7, 7, 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.85rem;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.95rem 1rem;
  border-radius: 14px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.stat-item.highlight {
  border-color: rgba(212, 27, 35, 0.35);
  background: linear-gradient(135deg, rgba(212, 27, 35, 0.12) 0%, rgba(155, 7, 7, 0.05) 100%);
  box-shadow: 0 4px 18px rgba(155, 7, 7, 0.18);
  order: 3;
}

.stat-item.highlight:hover {
  border-color: rgba(212, 27, 35, 0.55);
  box-shadow: 0 6px 22px rgba(155, 7, 7, 0.3);
}

.stat-item.stat-available {
  order: 1;
}

.stat-item.stat-prizepool {
  order: 2;
  border-color: rgba(34, 197, 94, 0.18);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.stat-item.stat-prizepool .stat-val {
  color: #4ade80;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #9e9ea7;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-item.highlight .stat-label {
  color: #ff9da8;
}

.stat-item.stat-available .stat-label i {
  color: #f59e0b;
}

.stat-item.stat-prizepool .stat-label i {
  color: #22c55e;
}

.stat-item.highlight .stat-label i {
  color: #D41B23;
}

.stat-val {
  display: block;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-item.highlight .stat-val {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(212, 27, 35, 0.3);
}

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

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

.wallet-btn.primary {
  background: linear-gradient(180deg, #D41B23, #9B0707);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(155, 7, 7, 0.3);
}

.wallet-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(155, 7, 7, 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: 1rem;
  margin-bottom: 0.85rem;
}

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

.section-title h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 300;
  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(155, 7, 7, 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: 0.75rem;
  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-header-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.category-card-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(212, 27, 35, 0.12);
  border: 1px solid rgba(212, 27, 35, 0.25);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 16px rgba(212, 27, 35, 0.25);
  margin-top: 2px;
}

.category-card-text-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-card-text-col h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.category-card-text-col p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted);
}

.category-card-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 0.42rem 0.5rem;
  margin-bottom: 0.85rem;
}

.category-card-stats .stat-item,
.category-card-stats .cat-stat-item {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: none !important;
}

.category-card-stats .stat-item:hover,
.category-card-stats .cat-stat-item:hover {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.category-card-stats .stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2, #D41B23);
  font-size: 1.15rem;
  filter: drop-shadow(0 0 6px rgba(212, 27, 35, 0.35));
  flex-shrink: 0;
  margin-right: 0;
}

.category-card-stats .stat-text {
  display: flex;
  flex-direction: column !important;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 0.08rem;
  white-space: nowrap;
}

.category-card-stats .stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
}

.category-card-stats .stat-label {
  font-size: 0.70rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.15;
  white-space: nowrap;
  text-transform: capitalize;
}

.category-card-stats .stat-v-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  margin: 0 0.15rem;
}

.category-card button,
.category-card .card-btn {
  width: fit-content;
  border: 0;
  border-radius: 10px;
  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: 0.25rem 1rem 2.5rem;
  }

  .wallet-card {
    padding: 1.15rem;
    margin: 1rem 0 1.5rem;
  }

  .wallet-stats {
    gap: 0.6rem;
  }

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

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

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

/* Mobile Screens (max 640px) */
@media (max-width: 640px) {
  .wallet-card {
    padding: 0.85rem 0.65rem;
    border-radius: 14px;
    margin: 0.75rem 0 1.15rem;
  }

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

  .wallet-label {
    font-size: 0.76rem;
  }

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

  .wallet-stats .stat-item,
  .wallet-stats .stat-item.highlight,
  .wallet-stats .stat-item:not(.highlight) {
    grid-column: auto !important;
    order: unset !important;
    padding: 0.55rem 0.25rem !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .wallet-stats .stat-label,
  .wallet-stats .stat-item.highlight .stat-label,
  .wallet-stats .stat-item:not(.highlight) .stat-label {
    font-size: clamp(0.56rem, 2.1vw, 0.68rem) !important;
    margin-bottom: 0.18rem !important;
    justify-content: center !important;
    gap: 0.2rem !important;
  }

  .wallet-stats .stat-label i {
    font-size: 0.68rem !important;
  }

  .wallet-stats .stat-val,
  .wallet-stats .stat-item.highlight .stat-val,
  .wallet-stats .stat-item:not(.highlight) .stat-val {
    font-size: clamp(0.76rem, 3.1vw, 0.96rem) !important;
  }

  .wallet-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
  }

  .wallet-btn {
    width: 100% !important;
    padding: 0.6rem 0.4rem !important;
    font-size: 0.82rem !important;
    min-height: 38px !important;
    gap: 0.35rem !important;
  }
}

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

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

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

  .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 Mobile (max 380px) */
@media (max-width: 380px) {
  .wallet-card {
    padding: 0.75rem 0.5rem !important;
    border-radius: 12px !important;
  }

  .wallet-stats {
    gap: 0.25rem !important;
  }

  .wallet-stats .stat-item,
  .wallet-stats .stat-item.highlight,
  .wallet-stats .stat-item:not(.highlight) {
    padding: 0.45rem 0.15rem !important;
  }

  .wallet-stats .stat-label,
  .wallet-stats .stat-item.highlight .stat-label,
  .wallet-stats .stat-item:not(.highlight) .stat-label {
    font-size: 0.54rem !important;
    letter-spacing: 0 !important;
  }

  .wallet-stats .stat-val,
  .wallet-stats .stat-item.highlight .stat-val,
  .wallet-stats .stat-item:not(.highlight) .stat-val {
    font-size: 0.75rem !important;
  }

  .wallet-btn {
    padding: 0.55rem 0.25rem !important;
    font-size: 0.78rem !important;
    min-height: 36px !important;
    gap: 0.25rem !important;
  }
}