/* FeedCard.module.css */

.FeedCard_feedCard___No75 {
  position: relative;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: none;
  aspect-ratio: 1/1.5;
  display: flex;
  flex-direction: column;
  border: none;
  margin: 0;
  padding: 0;
}


.FeedCard_coverContainer___oUbs {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  /* background-color: red; */
  align-items: center;
  padding-bottom: 25px;

  background: #232526;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #414345, #232526);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #414345, #232526);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.FeedCard_coverPlaceholder___eYo8 {
  width: 35%;
  height: 35%;
  object-fit: contain;
  display: block;
  opacity: 0.75;
}

.FeedCard_feedCard___No75:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.FeedCard_feedCard___No75:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Cover Image as full background */
.FeedCard_coverImage__5xrWL {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark overlay for better text readability */
.FeedCard_overlay__Plg0z {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
}

/* Viewer Count Overlay */
.FeedCard_viewerCount__y3UVQ {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.FeedCard_eyeIcon__IAqgI {
  font-size: 12px;
}

/* Live Badge */
.FeedCard_liveBadge__D4RJr {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4757;
  color: white;
  padding: 4px 10px;
  height: 22px;
  border-radius: 100px;
  animation: FeedCard_pulse__1Y0He 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 3;
}

.FeedCard_crownButton__eubpz {
  width: 15px;
  height: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.FeedCard_diamondButton__DhnI0 {
  width: 16px;
  height: 16px;
}

.FeedCard_liveBadge__D4RJr span {
  line-height: 1;
  font-size: 10px;
  font-weight: bold;
}

@keyframes FeedCard_pulse__1Y0He {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(255, 71, 87, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
  }
}

/* User Info Overlaid at bottom */
.FeedCard_userInfoOverlay__4vbYQ {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.FeedCard_profileImage__wXPd3 {
  width: 30px;
  height: 30px;
  border-radius: 100px;
  object-fit: cover;
  overflow: hidden;
  /* box-shadow: 0px 2px 20px rgba(255, 255, 255, 0.5); */
  /* border: 1px solid white; */
  flex-shrink: 0;
}

.FeedCard_userDetails__JBym9 {
  flex: 1;
  min-width: 0;
  /* background-color: red; */
}

.FeedCard_username__m_N3S {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.FeedCard_diamondCount__C5D9g {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.FeedCard_heartIcon__pkJ5p {
  font-size: 12px;
}
/* Feed.module.css */

.Feed_feedContainer__QOmXR {
  width: 100%;
  min-height: 100vh;
  background-color: #000;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px;
  /* Space for Go Live button */
  box-sizing: border-box;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
}

/* Header Styles */
.Feed_header__moq3N {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000000;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
}

.Feed_logoSection__PXhA2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.Feed_logo__q_7Ex {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.Feed_logoText__WXqtM {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.Feed_coinBalance__JaFa9 {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 193, 7, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #ffc107;
}

.Feed_coinIcon__Kuw_7 {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.Feed_coinAmount__UcSVU {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* Tab Navigation */
.Feed_tabNavigation__l6HyV {
  display: flex;
  padding: 16px 20px 0;
  gap: 8px;
  /* background-color: #0A0A0F; */
}

.Feed_tab__ZpkkD {
  padding: 8px 16px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #999;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.Feed_tab__ZpkkD:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.Feed_activeTab__AeU_H {
  background: #8E2DE2;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #4A00E0, #8E2DE2);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #4A00E0, #8E2DE2);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.Feed_activeTab__AeU_H:hover {
  /* background: #7C3AED; */
  background: #8E2DE2;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #4A00E0, #8E2DE2);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #4A00E0, #8E2DE2);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  transform: translateY(-1px);
}

/* Feed Grid */
.Feed_feedGrid___Skow {
  padding: 10px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Changed from repeat(2, minmax(0, 1fr)) */
  gap: 5px;
  /* Reduced from 1px to 0 for minimal spacing */
  flex: 1;
  /* background: #000000; */
  width: 100%;
  /*box-sizing: border-box; */
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Ensure equal width for all grid items */
.Feed_feedGrid___Skow>div {
  width: 100%;
  min-width: 0;
  display: block;
  /* Changed from flex */
  margin: 0;
  /* Remove any margin */
  padding: 0;
  /* Remove any padding */
}

/* Remove the nested flex styling that might cause width issues */
.Feed_feedGrid___Skow>div>* {
  width: 100%;
  /* Changed from flex: 1 */
  min-width: 0;
}

/* Go Live Button */
.Feed_goLiveContainer__yf8xV {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.Feed_goLiveButton__1M9lq {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #8B5CF6;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
}

.Feed_goLiveButton__1M9lq:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
  background: #7C3AED;
}

.Feed_goLiveButton__1M9lq:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.Feed_loadingContainer__48zzZ {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.Feed_loadingText__z2k8S {
  font-size: 20px;
  color: white;
}

.Feed_cameraIcon__duJWH {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Mobile Responsive */
@media (max-width: 450px) {
  .Feed_header__moq3N {
    padding: 12px 16px;
  }

  .Feed_logoText__WXqtM {
    font-size: 16px;
  }

  .Feed_coinAmount__UcSVU {
    font-size: 13px;
  }

  .Feed_tabNavigation__l6HyV {
    padding: 12px 16px 0;
  }

  .Feed_tab__ZpkkD {
    padding: 6px 14px;
    font-size: 13px;
  }

  .Feed_feedGrid___Skow {
    padding: 16px;
    gap: 12px;
  }

  .Feed_goLiveButton__1M9lq {
    padding: 10px 20px;
    font-size: 15px;
    bottom: 16px;
  }

  .Feed_cameraIcon__duJWH {
    width: 18px;
    height: 18px;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .Feed_feedGrid___Skow {
    padding: 12px;
    gap: 10px;
  }

  .Feed_header__moq3N {
    padding: 10px 12px;
  }

  .Feed_tabNavigation__l6HyV {
    padding: 10px 12px 0;
  }
}

/* Dark mode is now the default theme */
/* Remove dark mode media query since we're using dark theme by default */

/* Loading state */
.Feed_feedGrid___Skow.Feed_loading__Bz_Uv {
  opacity: 0.7;
  pointer-events: none;
}

/* Empty state */
.Feed_emptyState__B8oN8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.Feed_emptyState__B8oN8 h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #444;
}

.Feed_emptyState__B8oN8 p {
  font-size: 14px;
  line-height: 1.5;
}

.Feed_stickyTopBar__2mlyR {
  /* position: absolute; */
  /* background-color: red; */

  overflow-y: auto;
  padding: 12px 12px 0px 12px;
  width: 100%;
  z-index: 199;
  /* border-bottom: 1px solid #dddd; */
  display: flex;
  justify-content: space-between;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.5); */
  align-items: center;
}

.Feed_rechargeButton__W0wIL {
  background: #8E2DE2;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #4A00E0, #8E2DE2);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #4A00E0, #8E2DE2);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  color: white;
  border: none;
  border-radius: 50px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  /* box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2); */
}

.Feed_logoutBbutton__COdHM {
  /* background-color: #dd2d4a; */

  /* background: #EB3349; */
  /* fallback for old browsers */
  /* background: -webkit-linear-gradient(to right, #F45C43, #EB3349); */
  /* Chrome 10-25, Safari 5.1-6 */
  /* background: linear-gradient(to right, #F45C43, #EB3349); */
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


  color: white;
  /* padding: 10px 10px; */
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.Feed_logoSection__PXhA2 {
  /* height: 32px; */
  /* background-color: blue; */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* width: 140px; */
  /* height: 50px; */
}

.Feed_logoImage__qkUPs {
  height: 50px;
  /* background-color: red; */
  /* width: 140px; */
}
/* components/RechargeView.css */

.recharge-view {
    padding: 0 0 20px 0;
    position: relative;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.welcome-offer-banner {
    margin-top: 16px;
    background: #FC466B;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #3F5EFB, #FC466B);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #3F5EFB, #FC466B);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */



    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.welcome-offer-banner:hover {
    transform: translateY(-2px);
}

.welcome-offer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer-banner 3s ease-in-out infinite;
}

.offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.offer-illustration {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.coin-stack {
    position: relative;
    width: 60px;
    height: 40px;
}

.coin {
    position: absolute;
    font-size: 24px;
    animation: float 2s ease-in-out infinite;
}

.coin-1 {
    left: 0;
    top: 0;
    animation-delay: 0s;
}

.coin-2 {
    left: 15px;
    top: 5px;
    animation-delay: 0.5s;
}

.coin-3 {
    left: 30px;
    top: 10px;
    animation-delay: 1s;
}

.sparkles {
    position: absolute;
    width: 80px;
    height: 50px;
}

.sparkle {
    position: absolute;
    font-size: 12px;
    animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle-1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.sparkle-2 {
    bottom: 0;
    left: 20px;
    animation-delay: 0.5s;
}

.sparkle-3 {
    top: 50%;
    right: 20px;
    animation-delay: 1s;
}

.offer-text h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.offer-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

.offer-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.offer-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.section-title {
    margin-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;

}

.section-title h4 {
    font-size: 18px;
    font-weight: 600;
    color: black;
    margin: 0;
}

.coin-packages-wrapper {
    height: 100%;
    /* or 100vh or whatever your layout requires */
    display: flex;
    flex-direction: column;
}

.coin-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* Required so children with overflow can scroll */
}

.coin-packages {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    overflow-y: auto;
    /* padding-bottom: 300px; */
    min-height: 0;
}

.products-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.products-error .error-icon {
    font-size: 18px;
}

.products-error .error-text {
    flex: 1;
    font-size: 14px;
    color: #dc2626;
    font-weight: 500;
}

.products-error .retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.products-error .retry-btn:hover {
    background: #b91c1c;
}

.coin-package {
    /* background: white; */
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.coin-package:hover {
    border-color: #667eea;
    /* transform: translateY(-2px); */
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.coin-package.featured {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.coin-package.featured:hover {
    border-color: #059669;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.coin-package.processing {
    pointer-events: none;
    opacity: 0.7;
}

.package-label {
    position: absolute;
    top: -1px;
    left: 16px;
    background: #10b981;
    color: black;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.time-left {
    position: absolute;
    top: 8px;
    right: 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.package-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.coin-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coin-amount .coin-icon {
    font-size: 24px;
}

.coin-amount .amount {
    font-size: 20px;
    font-weight: 700;
    color: black;
}

.pricing {
    display: flex;
    margin-right: 20px;
    flex-direction: column;
    align-items: flex-end;
}

.current-price {
    font-size: 18px;
    /* font-weight: 700; */
    color: black;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-top: 2px;
}

.package-arrow {
    font-size: 20px;
    color: #999;
    font-weight: 300;
}

.processing-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.processing-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.processing-spinner-large {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.processing-content p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.coin-package.coin-package-skeleton {
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: default;
    animation: shimmer 1.5s infinite;
}

.coin-package.coin-package-skeleton:hover {
    transform: none;
    border-color: #e9ecef;
    box-shadow: none;
}

.coin-icon-skeleton {
    width: 24px;
    height: 24px;
    background: #e9ecef;
    border-radius: 50%;
    animation: shimmer 1.5s infinite;
}

.amount-skeleton {
    width: 60px;
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.price-skeleton {
    width: 50px;
    height: 18px;
    background: #e9ecef;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    margin-bottom: 4px;
}

.extra-coins {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-left: 4px;
}

.no-packages {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-packages-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-packages h4 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.no-packages p {
    font-size: 14px;
    margin: 0 0 20px 0;
}

.no-packages .retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.no-packages .retry-btn:hover {
    background: #5a6fd8;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer-banner {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.coin-balance {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-icon {
    font-size: 20px;
}

.balance-text {
    font-size: 20px;
    font-weight: 700;
    color: black;
}

.balance-label {
    font-size: 20px;
    color: black;
    font-weight: 600;
}

.balance-skeleton {
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

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

.animate-fadeIn {
  animation: fadeIn 0.5s ease forwards;
}

/* components/SpecialOffersView.css */

.special-offers-view {
    /* background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 25%, #6d28d9 50%, #5b21b6 75%, #4c1d95 100%); */

    background: #FC466B;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #3F5EFB, #FC466B);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #3F5EFB, #FC466B);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    /* min-height: 500px; */
    /* height: 100%; */
    /* overflow-y: hidden; */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
}

.floating-coins {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-coin {
    position: absolute;
    font-size: 16px;
    opacity: 0.6;
    animation: float-rotate 6s ease-in-out infinite;
}

.floating-coin-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-coin-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.floating-coin-3 {
    top: 60%;
    left: 8%;
    animation-delay: 2s;
}

.floating-coin-4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.floating-coin-5 {
    top: 40%;
    left: 15%;
    animation-delay: 4s;
}

.floating-coin-6 {
    bottom: 40%;
    left: 20%;
    animation-delay: 5s;
}

.floating-coin-7 {
    top: 70%;
    right: 20%;
    animation-delay: 0.5s;
}

.floating-coin-8 {
    top: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

.floating-coin-9 {
    bottom: 60%;
    left: 30%;
    animation-delay: 2.5s;
}

.floating-coin-10 {
    top: 80%;
    right: 30%;
    animation-delay: 3.5s;
}

.floating-coin-11 {
    top: 15%;
    left: 40%;
    animation-delay: 4.5s;
}

.floating-coin-12 {
    bottom: 30%;
    right: 5%;
    animation-delay: 0.3s;
}

.floating-coin-13 {
    top: 50%;
    left: 50%;
    animation-delay: 1.8s;
}

.floating-coin-14 {
    bottom: 70%;
    right: 40%;
    animation-delay: 2.3s;
}

.floating-coin-15 {
    top: 90%;
    left: 60%;
    animation-delay: 3.8s;
}

.special-offers-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.special-offers-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.special-offers-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.special-coin-packages-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.special-coin-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.special-packages-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(30px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 2;
    /* padding-bottom: 300px; */
    overflow-y: auto;
}

.special-package {
    background: rgba(0, 0, 0, 0.4);
    /* border: 2px solid rgba(255, 255, 255, 0.2); */
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 120px;
}

.special-package:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.special-package.popular {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

.special-package.popular:hover {
    border-color: #059669;
    background: rgba(16, 185, 129, 0.3);
}

.special-package.processing {
    pointer-events: none;
    opacity: 0.7;
}

.special-label {
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 6px 12px;
    border-radius: 0 16px 0 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.special-label.popular {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.special-label.hot {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.package-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.package-icon .coin-icon {
    font-size: 28px;
}

.package-icon .coin-amount {
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.coin-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.coin-burst {
    position: relative;
    width: 60px;
    height: 60px;
}

.coin-burst .burst-coin {
    position: absolute;
    font-size: 12px;
    opacity: 0;
    animation: burst 2s ease-out infinite;
}

.coin-burst .burst-coin:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.coin-burst .burst-coin:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.3s;
}

.coin-burst .burst-coin:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
}

.special-pricing {
    text-align: center;
}

.special-price {
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

.special-original-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.package-processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.processing-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.special-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.special-processing-content {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.special-processing-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.special-processing-content p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.special-error {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(254, 242, 242, 0.9);
    border: 1px solid rgba(254, 202, 202, 0.8);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.special-error .error-icon {
    font-size: 18px;
}

.special-error .error-text {
    flex: 1;
    font-size: 14px;
    color: #dc2626;
    font-weight: 500;
}

.error-retry-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.error-retry-btn:hover {
    background: #b91c1c;
}

.special-package.special-package-skeleton {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: default;
    animation: shimmer 1.5s infinite;
}

.special-package.special-package-skeleton:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.package-icon-skeleton {
    width: 60px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
    margin-bottom: 12px;
}

.special-pricing-skeleton {
    text-align: center;
}

.price-skeleton {
    width: 60px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    margin: 0 auto 4px;
}

.original-price-skeleton {
    width: 50px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
    margin: 0 auto;
}

.extra-coins-small {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-left: 4px;
}

.no-special-packages {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 3;
}

.no-special-packages .no-packages-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-special-packages h4 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: white;
}

.no-special-packages p {
    font-size: 14px;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.8);
}

.no-special-packages .retry-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.no-special-packages .retry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes float-rotate {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(90deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

@keyframes burst {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }

    20% {
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }

    80% {
        opacity: 1;
        transform: scale(1) translateY(-20px);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-30px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}
/* components/GiftBottomSheet.css */

.gift-sheet-content {
    padding: 0 16px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gift-sheet-header {
    position: sticky;
    top: 0;
    z-index: 10;
    /* background: white; */
    /* padding: 16px 0 12px 0; */
    /* border-bottom: 1px solid #f0f0f0; */
    margin-bottom: 0;
    flex-shrink: 0;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.sheet-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sheet-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    text-align: center;
}

.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    /* color: #666; */
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}
/* 
.back-btn:hover {
    background-color: #f5f5f5;
} */

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

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f5f5f5;
}

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

.view-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    /* padding-top: 4px; */
}

.view-container {
    height: auto;
    min-height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    /* padding-bottom: 200px; */
}

.view-container.animating-forward {
    /* animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; */
}

.view-container.animating-backward {
    animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Gifts View Wrapper */
.gifts-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.coin-balance-container {
    position: sticky;
    top: 0;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    border-radius: 12px;
    padding: 20px 16px;
    margin-bottom: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);

    background: #FC466B;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #3F5EFB, #FC466B);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #3F5EFB, #FC466B);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.coin-balance {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-icon {
    font-size: 20px;
}

.balance-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.balance-label {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.balance-skeleton {
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.recharge-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.recharge-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.recharge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.recharge-icon {
    font-size: 16px;
}

.gift-error {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.error-icon {
    font-size: 16px;
}

.error-text {
    flex: 1;
    font-size: 14px;
    color: #dc2626;
}

.error-dismiss {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.error-dismiss:hover {
    background: rgba(220, 38, 38, 0.1);
}

.gifts-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    padding-bottom: 20px;
}

.gift-item {
    /* background: white; */
    border: 1.5px solid rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.gift-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.gift-item-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gift-item-disabled:hover {
    transform: none;
    border-color: #f0f0f0;
    box-shadow: none;
}

.gift-item-sending {
    pointer-events: none;
}

.gift-image-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-image {
    border-radius: 6px;
}

.insufficient-coins-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.8);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sending-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gift-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.2);
    padding: 0 6px;
    color: black;
}

.coin-icon {
    font-size: 12px;
}

.price-text {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.8);
}

.gift-skeleton {
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: default;
}

.gift-skeleton:hover {
    transform: none;
    border-color: #e9ecef;
    box-shadow: none;
}

.gift-image-skeleton {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 6px;
    animation: shimmer 1.5s infinite;
}

.gift-price-skeleton {
    width: 30px;
    height: 12px;
    background: #e9ecef;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

.no-gifts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-gifts-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-gifts h4 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.no-gifts p {
    font-size: 14px;
    margin: 0 0 20px 0;
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background: #5a6fd8;
}

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

.sheet-bottom-spacing {
    height: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsiveness */
/* @media (max-width: 480px) {
    .gift-sheet-content {
        padding: 0 12px;
    }
    
    .gift-sheet-header {
        padding: 12px 0 8px 0;
    }
    
    .view-content {
        padding-top: 12px;
    }
    
    .gifts-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }
    
    .gift-item {
        padding: 10px;
    }
    
    .gift-image-container {
        width: 35px;
        height: 35px;
    }
    
    .coin-balance-container {
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 10px;
    }
    
    .balance-text {
        font-size: 18px;
    }
    
    .recharge-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .gift-error {
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
} */

