/* css/home.css — Premium Fintech Home Page Styles */
/* ===================================================
   IMPORTS & VARIABLES
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary-purple: #6C3BFF;
  --deep-blue: #1D4ED8;
  --neon-purple: #9B5CFF;
  --text-dark: #111827;
  --text-gray: #6B7280;
  --card-white: rgba(255, 255, 255, 0.92);
  --border-purple: rgba(108, 59, 255, 0.12);
  --shadow-card: 0 4px 20px rgba(108, 59, 255, 0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 8px 32px rgba(108, 59, 255, 0.16), 0 2px 8px rgba(0,0,0,0.06);
  --radius-card: 22px;
  --radius-large: 28px;
  --gap-card: 14px;
  --page-px: 16px;
}

/* ===================================================
   GLOBAL BODY OVERRIDE FOR HOME
   =================================================== */
body {
  font-family: 'Inter', 'Poppins', sans-serif !important;
  background: linear-gradient(180deg, #F8F7FF 0%, #FFFFFF 35%, #F1EEFF 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-dark) !important;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===================================================
   DECORATIVE BACKGROUND BLOBS
   =================================================== */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.bg-blob-tl {
  width: 220px;
  height: 220px;
  background: rgba(96, 165, 250, 0.18);
  top: -60px;
  left: -60px;
}

.bg-blob-tr {
  width: 200px;
  height: 200px;
  background: rgba(155, 92, 255, 0.15);
  top: -40px;
  right: -50px;
}

.bg-blob-mid {
  width: 300px;
  height: 200px;
  background: rgba(196, 181, 253, 0.12);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

/* ===================================================
   STICKY TOP HEADER
   =================================================== */
.sticky-top-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: transparent;
}

/* ===================================================
   ANNOUNCEMENT BAR
   =================================================== */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px var(--page-px) 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-purple);
  box-shadow: 0 2px 12px rgba(108, 59, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.announcement-icon-box {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #ffffff !important;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.announcement-icon-box i {
  color: #000000 !important;
  font-size: 13px;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--primary-purple);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.2);
  animation: announceDotPulse 2s ease-in-out infinite;
}

@keyframes announceDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(108, 59, 255, 0.08); }
}

/* ===================================================
   GREETING CARD
   =================================================== */
.greeting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px var(--page-px) 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}

.greeting-text {
  font-size: clamp(17px, 5vw, 21px);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.greeting-number {
  background: linear-gradient(135deg, #4F46E5, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.greeting-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  background: white;
  border: 1.5px solid rgba(108, 59, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  color: #6B7280;
  font-size: 15px;
}

.icon-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 59, 255, 0.15);
  border-color: rgba(108, 59, 255, 0.3);
  color: var(--primary-purple);
}

.icon-action-btn:active {
  transform: scale(0.93);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--primary-purple);
  border-radius: 50%;
  border: 1.5px solid white;
  animation: notifDotPulse 1.8s ease-in-out infinite;
}

@keyframes notifDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 59, 255, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(108, 59, 255, 0); }
}

/* ===================================================
   BALANCE CARD
   =================================================== */
.balance-card-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px var(--page-px) 0;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-large);
  padding: 18px 20px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  animation: cardFadeUp 0.5s ease-out 0.1s both;
}

.balance-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-label {
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

.balance-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-coin-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.balance-amount {
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1;
}

.bill-details-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4F46E5, #A855F7);
  color: white !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(108, 59, 255, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.bill-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 59, 255, 0.5);
}

.bill-details-btn:active {
  transform: scale(0.96);
}

/* ===================================================
   STATS ROW
   =================================================== */
.stats-row {
  display: flex;
  gap: var(--gap-card);
  padding: 10px var(--page-px) 0;
}

.stat-mini-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-card);
  padding: 14px 14px 8px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  animation: cardFadeUp 0.5s ease-out 0.2s both;
  transition: transform 0.18s ease;
}

.stat-mini-card:hover {
  transform: translateY(-2px);
}

.stat-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stat-mini-title {
  font-size: 11px;
  color: var(--text-gray);
  font-weight: 600;
  line-height: 1.3;
}

.stat-mini-sub {
  font-size: 9px;
  font-weight: 500;
  color: #9CA3AF;
}

.stat-mini-arrow {
  font-size: 10px;
  color: #CBD5E1;
}

.stat-mini-body {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.stat-mini-icon {
  width: 34px;
  height: 34px;
  background: rgba(108, 59, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  font-size: 14px;
  flex-shrink: 0;
}

.stat-mini-rs {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-mini-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.stat-mini-wave {
  height: 24px;
  margin: 0 -14px -8px;
}

.stat-mini-wave svg {
  width: 100%;
  height: 100%;
}

/* ===================================================
   ACTION GRID (Buy / Sell / +UPI / Corporate)
   =================================================== */
.action-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0;
  padding: 16px var(--page-px) 18px;
  margin: 10px 0 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1.5px solid var(--border-purple);
  box-shadow: 0 6px 20px rgba(108, 59, 255, 0.08);
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
}

.action-item span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.1px;
}

.action-icon-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #2563EB, #9333EA);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(108, 59, 255, 0.38);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.action-icon-circle i {
  color: white;
  font-size: 22px;
}

.action-item:hover .action-icon-circle {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 28px rgba(108, 59, 255, 0.5);
}

.action-item:active .action-icon-circle {
  transform: scale(0.93);
}

/* ===================================================
   SCROLLABLE CONTENT AREA
   =================================================== */
.scrollable-content {
  padding-left: var(--page-px);
  padding-right: var(--page-px);
  position: relative;
  z-index: 1;
}

/* ===================================================
   REWARD BANNER CARD
   =================================================== */
.reward-banner-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-large);
  padding: 22px 20px 18px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-card);
  position: relative;
  overflow: hidden;
}

.reward-banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 60%);
  background-size: 200% 100%;
  background-position: 200% 0;
  animation: shineEffect 3.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

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

.reward-banner-left {
  flex: 1;
}

.reward-banner-label {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 600;
  margin: 0 0 4px;
}

.reward-banner-pct-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.reward-banner-pct {
  font-size: clamp(36px, 10vw, 48px);
  font-weight: 900;
  background: linear-gradient(135deg, #4F46E5, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -2px;
}

.reward-banner-text {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 600;
  max-width: 110px;
  line-height: 1.4;
}

.reward-banner-right {
  flex-shrink: 0;
  margin-left: 12px;
}

.reward-gift-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(108,59,255,0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #A855F7;
  border: 1.5px solid rgba(168, 85, 247, 0.2);
  animation: giftFloat 3s ease-in-out infinite;
}

@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.reward-banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(108, 59, 255, 0.2);
  border-radius: 50%;
}

.dot-active {
  width: 18px;
  border-radius: 3px;
  background: var(--primary-purple);
}

/* ===================================================
   PRICE CARD
   =================================================== */
.price-card-new {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--gap-card);
}

.price-col {
  flex: 1;
}

.price-col-right {
  text-align: right;
}

.price-col-label {
  font-size: 11px;
  color: var(--text-gray);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0.1px;
}

.price-col-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.price-col-underline {
  height: 3px;
  width: 36px;
  background: linear-gradient(90deg, #4F46E5, #A855F7);
  border-radius: 2px;
}

.price-col-right .price-col-underline {
  margin-left: auto;
}

.price-col-center {
  flex-shrink: 0;
  margin: 0 12px;
}

.price-trend-circle {
  width: 46px;
  height: 46px;
  background: rgba(108, 59, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  font-size: 18px;
  border: 1.5px solid rgba(108, 59, 255, 0.15);
}

/* ===================================================
   HOME SECTION HEADERS
   =================================================== */
.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0;
}

.home-section-header h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.go-link {
  color: var(--primary-purple);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===================================================
   PROFIT INFO CARD (existing, enhanced)
   =================================================== */
.profit-info-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-card);
  padding: 20px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--gap-card);
  text-align: center;
}

.profit-percentage {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #4F46E5, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

.profit-text {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 600;
}

.price-comparison {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  gap: 10px;
}

.price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.price-label {
  font-size: 11px;
  color: var(--text-gray);
  font-weight: 600;
  text-align: center;
}

.price-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

/* ===================================================
   MORE GRID
   =================================================== */
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.more-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 18px 16px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.more-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.more-card:active {
  transform: scale(0.97);
}

.more-card-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(108,59,255,0.12), rgba(155,92,255,0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  font-size: 22px;
  border: 1.5px solid rgba(108, 59, 255, 0.15);
  flex-shrink: 0;
}

/* ===================================================
   RECENT TRANSACTIONS CARD
   =================================================== */
.recent-tx-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-large);
  padding: 18px 18px;
  border: 1.5px solid var(--border-purple);
  box-shadow: var(--shadow-card);
}

.recent-tx-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.recent-tx-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.recent-tx-viewall {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-purple);
  text-decoration: none;
  background: rgba(108, 59, 255, 0.08);
  padding: 5px 10px;
  border-radius: 8px;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(108, 59, 255, 0.07);
}

.tx-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tx-icon-circle {
  width: 40px;
  height: 40px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22C55E;
  font-size: 16px;
  flex-shrink: 0;
}

.tx-info {
  flex: 1;
  min-width: 0;
}

.tx-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-sub {
  font-size: 11px;
  color: var(--text-gray);
  font-weight: 500;
  margin: 2px 0 0;
}

.tx-right {
  text-align: right;
  flex-shrink: 0;
}

.tx-amount {
  font-size: 14px;
  font-weight: 800;
  color: #22C55E;
  margin: 0;
}

.tx-status {
  font-size: 10px;
  font-weight: 700;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 3px;
}

/* ===================================================
   BOTTOM NAVIGATION (PREMIUM)
   =================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 72px;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1.5px solid rgba(108, 59, 255, 0.1);
  box-shadow: 0 -4px 24px rgba(108, 59, 255, 0.1);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: var(--text-gray);
  text-decoration: none;
  flex: 1;
  position: relative;
  padding: 8px 0;
  border-radius: 14px;
  transition: color 0.2s ease;
}

.nav-item i {
  font-size: 20px;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.nav-item span {
  font-size: 10px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.nav-item.active {
  color: var(--primary-purple);
}

.nav-item.active i {
  color: var(--primary-purple);
  transform: translateY(-1px);
}

.nav-active-pill {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 44px;
  background: rgba(108, 59, 255, 0.1);
  border-radius: 14px;
  z-index: 0;
}

.nav-item:not(.active) .nav-active-pill {
  display: none;
}

/* ===================================================
   FLOATING SUPPORT BUTTON PULSE
   =================================================== */
#floatingSupport {
  animation: supportPulseGlow 2.5s ease-in-out infinite;
}

@keyframes supportPulseGlow {
  0%, 100% { box-shadow: 0 8px 25px rgba(108, 59, 255, 0.45); }
  50% { box-shadow: 0 8px 35px rgba(108, 59, 255, 0.7), 0 0 0 8px rgba(108, 59, 255, 0.1); }
}

/* ===================================================
   CARD FADE-UP ANIMATION
   =================================================== */
.card-fadein {
  animation: cardFadeUp 0.55s ease-out both;
}

@keyframes cardFadeUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Stagger delays for cards */
.reward-banner-card { animation-delay: 0.05s; }
.price-card-new { animation-delay: 0.1s; }
.more-grid { animation-delay: 0.15s; }
.recent-tx-card { animation-delay: 0.2s; }

/* ===================================================
   RESPONSIVE OVERRIDES
   =================================================== */
@media (max-width: 360px) {
  :root {
    --page-px: 12px;
    --gap-card: 11px;
  }
  .balance-amount { font-size: 24px; }
  .action-icon-circle { width: 56px; height: 56px; }
  .action-icon-circle i { font-size: 20px; }
  .action-item span { font-size: 10px; }
  .greeting-text { font-size: 15px; }
}

@media (min-width: 430px) {
  .action-icon-circle { width: 68px; height: 68px; }
}

/* ===================================================
   UTILITY: NO HORIZONTAL SCROLL GUARD
   =================================================== */
* {
  max-width: 100%;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}
