:root {
  --backgroundColor: #f8fafc;
  --panelColor: rgba(255, 255, 255, 0.45);
  --panelBorder: rgba(148, 163, 184, 0.12);
  --primaryColor: #475569;
  --secondaryColor: #64748b;
  --accentColor: #0f172a;
  --dangerColor: #e11d48;
  --textPrimary: #0f172a;
  --textSecondary: #475569;
  --fontFamily: 'Outfit', sans-serif;
  --borderRadius: 16px;
  --transitionSpeed: 0.3s;
  --animationSnappy: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --animationBounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  --brandColor: #6366f1;
  --brandGlow: rgba(99, 102, 241, 0.15);
  --focusRing: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

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

html, body {
  overflow-x: hidden;
}

body {
  background-color: var(--backgroundColor);
  background-image: radial-gradient(at 0% 0%, rgba(203, 213, 225, 0.4) 0px, transparent 50%),
                    radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.8) 0px, transparent 50%);
  color: var(--textPrimary);
  font-family: var(--fontFamily);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.authContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px;
}

.authCard {
  background: var(--panelColor);
  backdrop-filter: blur(24px);
  border: 1px solid var(--panelBorder);
  border-radius: var(--borderRadius);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: 0 20px 40px -10px rgba(148, 163, 184, 0.12), 0 0 30px rgba(255, 255, 255, 0.6);
  animation: fadeInUp 0.6s var(--animationSnappy) both;
}

.authHeader {
  text-align: center;
  margin-bottom: 32px;
}

.authLogoWrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.authLogoVideo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--panelBorder);
  box-shadow: 0 0 20px rgba(148, 163, 184, 0.25);
}

.authHeader h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--accentColor), var(--primaryColor));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.authHeader p {
  color: var(--textSecondary);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
}

.authForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inputGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inputGroup label {
  font-size: 13px;
  font-weight: 500;
  color: var(--textSecondary);
  letter-spacing: 0.5px;
}

.inputGroup input {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--panelBorder);
  border-radius: 8px;
  color: var(--textPrimary);
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color var(--transitionSpeed) var(--animationSnappy), background-color var(--transitionSpeed) var(--animationSnappy), box-shadow var(--transitionSpeed) var(--animationSnappy), transform var(--transitionSpeed) var(--animationSnappy);
  outline: none;
}

.inputGroup input:focus {
  border-color: var(--brandColor);
  background: #ffffff;
  box-shadow: var(--focusRing);
  transform: scale(1.01);
}

.primaryBtn {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  transition: opacity var(--transitionSpeed), transform 0.1s, box-shadow var(--transitionSpeed);
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
}

.primaryBtn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.primaryBtn:active {
  transform: translateY(1px);
}

.authSwitch {
  text-align: center;
  font-size: 14px;
  color: var(--textSecondary);
  margin-top: 8px;
}

.authSwitch a {
  color: var(--primaryColor);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transitionSpeed);
}

.authSwitch a:hover {
  color: var(--accentColor);
  text-decoration: underline;
}

.alertBox {
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--panelBorder);
}

.alertBox.success {
  background: rgba(71, 85, 105, 0.05);
  color: var(--accentColor);
  border-left: 4px solid var(--accentColor);
}

.alertBox.error {
  background: rgba(225, 29, 72, 0.05);
  color: var(--dangerColor);
  border-left: 4px solid var(--dangerColor);
}

.dashboardContainer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
}

.appHeader {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panelBorder);
  z-index: 100;
  justify-content: space-between;
}

.logoWrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transitionSpeed);
}

.logoWrapper:hover {
  opacity: 0.9;
}

.logoVideo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--panelBorder);
  box-shadow: 0 0 15px rgba(148, 163, 184, 0.2);
}

.logoText {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, var(--accentColor), var(--brandColor), var(--primaryColor));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  animation: textGradientShift 4s ease infinite;
}

.userProfile {
  display: flex;
  align-items: center;
  gap: 32px;
}

.walletInfo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.walletLabel {
  font-size: 11px;
  color: var(--textSecondary);
  letter-spacing: 1px;
}

.walletAmount {
  font-size: 18px;
  font-weight: 700;
  color: var(--accentColor);
}

.userInfo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.usernameText {
  font-size: 15px;
  font-weight: 500;
}

.logoutBtn {
  background: transparent;
  border: 1px solid var(--panelBorder);
  border-radius: 8px;
  color: var(--textSecondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  transition: border-color var(--transitionSpeed), color var(--transitionSpeed), background-color var(--transitionSpeed);
  text-decoration: none;
}

.logoutBtn:hover {
  border-color: var(--dangerColor);
  color: var(--dangerColor);
  background-color: rgba(225, 29, 72, 0.05);
}

.layoutWrapper {
  display: flex;
  flex: 1;
}

.sidebarNav {
  width: 260px;
  background: rgba(255, 255, 255, 0.3);
  border-right: 1px solid var(--panelBorder);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform var(--transitionSpeed) var(--animationBounce), background-color var(--transitionSpeed);
}

.toggle-bubble:hover {
  transform: scale(1.05);
}

.toggle-bubble:active {
  transform: scale(0.95);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-line {
  width: 20px;
  height: 2px;
  background: var(--textPrimary);
  border-radius: 2px;
  display: block;
  transition: transform 0.3s var(--animationSnappy), opacity 0.3s;
}

.menu-btn.open .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-btn.open .menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.bubble-menu-items {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 98;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(32px);
  overflow-y: auto;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}

.bubble-menu-items.fixed {
  position: fixed;
}

.bubble-menu-items.absolute {
  position: absolute;
}

.bubble-menu-items .pill-list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 4px;
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  pointer-events: auto;
  justify-content: stretch;
}

.bubble-menu-items .pill-list .pill-spacer {
  width: 100%;
  height: 0;
  pointer-events: none;
}

.bubble-menu-items .pill-list .pill-col {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
}

.bubble-menu-items .pill-list .pill-col:nth-child(4):nth-last-child(2) {
  margin-left: calc(100% / 6);
}

.bubble-menu-items .pill-list .pill-col:nth-child(4):last-child {
  margin-left: calc(100% / 3);
}

.bubble-menu-items .pill-link {
  --pill-bg: #ffffff;
  --pill-color: #111;
  --pill-border: rgba(0, 0, 0, 0.12);
  --item-rot: 0deg;
  --pill-min-h: 160px;
  --hover-bg: #f3f4f6;
  --hover-color: #111;
  width: 100%;
  min-height: var(--pill-min-h);
  padding: clamp(1.5rem, 3vw, 8rem) 0;
  font-size: clamp(1.5rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-color);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
  will-change: transform;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  height: auto;
}

@media (min-width: 900px) {
  .bubble-menu-items .pill-link {
    transform: rotate(var(--item-rot));
  }

  .bubble-menu-items .pill-link:hover {
    transform: rotate(var(--item-rot)) scale(1.06);
    background: var(--hover-bg);
    color: var(--hover-color);
  }

  .bubble-menu-items .pill-link:active {
    transform: rotate(var(--item-rot)) scale(0.94);
  }
}

.bubble-menu-items .pill-link .pill-label {
  display: inline-block;
  will-change: transform, opacity;
  height: 1.2em;
  line-height: 1.2;
}

@media (max-width: 899px) {
  .bubble-menu-items {
    padding-top: 120px;
    align-items: flex-start;
  }

  .bubble-menu-items .pill-list {
    row-gap: 16px;
  }

  .bubble-menu-items .pill-list .pill-col {
    flex: 0 0 100%;
    margin-left: 0 !important;
    overflow: visible;
  }

  .bubble-menu-items .pill-link {
    font-size: clamp(1.2rem, 3vw, 4rem);
    padding: clamp(1rem, 2vw, 2rem) 0;
    min-height: 80px;
  }

  .bubble-menu-items .pill-link:hover {
    transform: scale(1.06);
    background: var(--hover-bg);
    color: var(--hover-color);
  }

  .bubble-menu-items .pill-link:active {
    transform: scale(0.94);
  }
}

.navLink {
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--textSecondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  transition: background-color var(--transitionSpeed) var(--animationSnappy), 
              color var(--transitionSpeed) var(--animationSnappy), 
              transform var(--transitionSpeed) var(--animationSnappy),
              border-color var(--transitionSpeed) var(--animationSnappy);
  width: 100%;
  text-decoration: none;
  animation: fadeInUp 0.5s var(--animationSnappy) both;
}

.navLink:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--brandColor);
  transform: translateX(6px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.navLink.active {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--brandColor);
  color: var(--brandColor);
  font-weight: 600;
}

.navIcon {
  height: 20px;
  width: 20px;
  transition: transform var(--transitionSpeed) var(--animationBounce), color var(--transitionSpeed) var(--animationSnappy);
}

.navLink:hover .navIcon {
  transform: scale(1.15) rotate(5deg);
  color: var(--brandColor);
}

.navLink.active .navIcon {
  color: var(--brandColor);
}

.navLink:nth-child(1) { animation-delay: 0.04s; }
.navLink:nth-child(2) { animation-delay: 0.08s; }
.navLink:nth-child(3) { animation-delay: 0.12s; }
.navLink:nth-child(4) { animation-delay: 0.16s; }
.navLink:nth-child(5) { animation-delay: 0.2s; }
.navLink:nth-child(6) { animation-delay: 0.24s; }
.navLink:nth-child(7) { animation-delay: 0.28s; }


.contentArea {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.sectionHeader {
  margin-bottom: 32px;
}

.sectionHeader h2 {
  font-size: 26px;
  font-weight: 700;
}

.sectionHeader p {
  color: var(--textSecondary);
  font-size: 14px;
  margin-top: 4px;
}

.homeWelcomeCard {
  background: var(--panelColor);
  border: 1px solid var(--panelBorder);
  border-radius: var(--borderRadius);
  padding: 40px;
  margin-bottom: 32px;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(226, 232, 240, 0.5));
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.08);
  animation: fadeInUp 0.6s var(--animationBounce) both;
  transition: transform var(--transitionSpeed) var(--animationBounce), box-shadow var(--transitionSpeed) var(--animationSnappy);
}

.homeWelcomeCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(148, 163, 184, 0.12);
}

.homeWelcomeCard h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.homeWelcomeCard p {
  color: var(--textSecondary);
  font-size: 15px;
  line-height: 1.6;
}

.productsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.productCard {
  background: var(--panelColor);
  border: 1px solid var(--panelBorder);
  border-radius: var(--borderRadius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.05);
  transition: transform 0.6s var(--animationSnappy), 
              border-color 0.6s var(--animationSnappy), 
              box-shadow 0.6s var(--animationSnappy);
  animation: fadeInUp 0.6s var(--animationBounce) both;
}

.productCard:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--brandColor);
  box-shadow: 0 30px 45px -10px rgba(99, 102, 241, 0.15), 0 0 25px rgba(255, 255, 255, 0.7);
}

.productCard:nth-child(1) { animation-delay: 0.05s; }
.productCard:nth-child(2) { animation-delay: 0.1s; }
.productCard:nth-child(3) { animation-delay: 0.15s; }
.productCard:nth-child(4) { animation-delay: 0.2s; }
.productCard:nth-child(5) { animation-delay: 0.25s; }
.productCard:nth-child(6) { animation-delay: 0.3s; }
.productCard:nth-child(7) { animation-delay: 0.35s; }
.productCard:nth-child(8) { animation-delay: 0.4s; }

.productImageWrapper {
  height: 180px;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.productImagePlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--textSecondary);
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(226, 232, 240, 0.5));
}

.productImagePlaceholderIcon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  opacity: 0.4;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.productCard:hover .productImagePlaceholderIcon {
  transform: scale(1.15) rotate(5deg);
  opacity: 0.8;
}

.productInfo {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.productTitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.productDesc {
  color: var(--textSecondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.productFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.productPrice {
  font-size: 18px;
  font-weight: 700;
  color: var(--textPrimary);
}

.buyBtn {
  background: var(--primaryColor);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  transition: opacity var(--transitionSpeed), transform 0.1s;
  text-decoration: none;
}

.buyBtn:hover {
  opacity: 0.9;
}

.walletDashboard {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.balanceCard {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--borderRadius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
  animation: fadeInUp 0.6s var(--animationBounce) both, cardFloating 5s ease-in-out infinite 0.6s;
  transition: transform 0.6s var(--animationSnappy), box-shadow 0.6s var(--animationSnappy);
}

.balanceCard:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.25), 0 0 30px rgba(99, 102, 241, 0.2);
}

.cardLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.cardBalance {
  font-size: 32px;
  font-weight: 700;
  margin-top: 12px;
}

.topUpFormCard {
  background: var(--panelColor);
  border: 1px solid var(--panelBorder);
  border-radius: var(--borderRadius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.05);
  animation: fadeInUp 0.6s var(--animationBounce) both;
}

.topUpFormCard h4 {
  font-size: 18px;
  font-weight: 600;
}

.presetGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.presetLink {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--panelBorder);
  border-radius: 8px;
  color: var(--textPrimary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 12px;
  transition: background-color var(--transitionSpeed) var(--animationSnappy), border-color var(--transitionSpeed) var(--animationSnappy), transform var(--transitionSpeed) var(--animationBounce), box-shadow var(--transitionSpeed) var(--animationSnappy);
  text-decoration: none;
  text-align: center;
}

.presetLink:hover {
  background: #ffffff;
  border-color: var(--brandColor);
  color: var(--brandColor);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.1);
}

.customAmountGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customAmountGroup label {
  font-size: 13px;
  color: var(--textSecondary);
}

.customAmountGroup input {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--panelBorder);
  border-radius: 8px;
  color: var(--textPrimary);
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color var(--transitionSpeed) var(--animationSnappy), background-color var(--transitionSpeed) var(--animationSnappy), box-shadow var(--transitionSpeed) var(--animationSnappy), transform var(--transitionSpeed) var(--animationSnappy);
  outline: none;
}

.customAmountGroup input:focus {
  border-color: var(--brandColor);
  background: #ffffff;
  box-shadow: var(--focusRing);
  transform: scale(1.01);
}

.historyTableContainer {
  background: var(--panelColor);
  border: 1px solid var(--panelBorder);
  border-radius: var(--borderRadius);
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.05);
  margin-top: 32px;
  animation: fadeInUp 0.6s var(--animationBounce) both;
}

.historyTable {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.historyTable th {
  background: rgba(226, 232, 240, 0.4);
  color: var(--textSecondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 16px 24px;
  text-transform: uppercase;
}

.historyTable td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--panelBorder);
  font-size: 14px;
}

.historyTable tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge.deposit {
  background: rgba(15, 23, 42, 0.05);
  color: var(--accentColor);
}

.badge.purchase {
  background: rgba(71, 85, 105, 0.08);
  color: var(--primaryColor);
}

.noHistoryMessage {
  padding: 40px;
  text-align: center;
  color: var(--textSecondary);
  font-size: 15px;
}

.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  .walletDashboard, .contactGrid {
    grid-template-columns: 1fr;
  }
  .layoutWrapper {
    flex-direction: column;
  }
  .sidebarNav {
    width: 100%;
    flex-direction: row;
    padding: 16px;
    overflow-x: auto;
  }
  .appHeader {
    padding: 10px 16px;
    gap: 12px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .logoText {
    font-size: 15px;
  }
  .logoWrapper {
    gap: 8px;
  }
  .logoVideo {
    width: 30px;
    height: 30px;
  }
  .userProfile {
    gap: 12px;
  }
  .walletAmount {
    font-size: 15px;
  }
  .walletLabel {
    font-size: 9px;
  }
  .usernameText, .logoutBtn, .userInfo .usernameText, .userInfo .logoutBtn {
    display: none !important;
  }
  .contentArea {
    padding: 16px;
  }
  .homeWelcomeCard {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .appHeader {
    padding: 10px 12px;
  }
  .logoText {
    display: none !important;
  }
}

.primaryBtn, .buyBtn {
  position: relative;
  overflow: hidden;
}

.primaryBtn::after, .buyBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
}

.primaryBtn:hover::after, .buyBtn:hover::after {
  left: 150%;
  transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes driftGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(40px, -30px) scale(1.1); opacity: 0.9; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
}

@keyframes textGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes violetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(88, 101, 242, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
  }
}

@keyframes cardFloating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes activeIndicator {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.presetLink {
  animation: fadeInUp 0.5s var(--animationBounce) both;
}
.presetLink:nth-child(1) { animation-delay: 0.05s; }
.presetLink:nth-child(2) { animation-delay: 0.1s; }
.presetLink:nth-child(3) { animation-delay: 0.15s; }
.presetLink:nth-child(4) { animation-delay: 0.2s; }
.presetLink:nth-child(5) { animation-delay: 0.25s; }
.presetLink:nth-child(6) { animation-delay: 0.3s; }

.contactGrid > div {
  animation: fadeInUp 0.6s var(--animationBounce) both;
}
.contactGrid > div:nth-child(1) { animation-delay: 0.08s; }
.contactGrid > div:nth-child(2) { animation-delay: 0.16s; }

.historyTable tbody tr {
  transition: background-color var(--transitionSpeed) var(--animationSnappy), transform var(--transitionSpeed) var(--animationSnappy);
}
.historyTable tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.04);
  transform: scale(1.005) translateX(4px);
}

.alertBox {
  animation: fadeInUp 0.5s var(--animationBounce) both;
}

.productImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--animationSnappy);
}

.productCard:hover .productImage {
  transform: scale(1.08);
}

.productStock {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brandColor);
  background: rgba(99, 102, 241, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.purchaseForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.quantityWrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.quantityLabel {
  font-size: 13px;
  color: var(--textSecondary);
  font-weight: 500;
}

.quantityInput {
  width: 70px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--panelBorder);
  background: rgba(255, 255, 255, 0.6);
  color: var(--textPrimary);
  outline: none;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  transition: border-color var(--transitionSpeed), background-color var(--transitionSpeed);
}

.quantityInput:focus {
  border-color: var(--brandColor);
  background: #ffffff;
}
