/* ==================================================
   AKANS STORE — UPGRADED CSS v2.0
   Clean Modern Design | No Glass Morphism
   All Bugs Fixed + Advanced Upgrades
================================================== */

/* ==================================================
   CSS VARIABLES
================================================== */
:root {
  --primary:     #4f46e5;
  --primary-lt:  #eef2ff;
  --primary-dk:  #3730a3;
  --purple:      #8b5cf6;
  --purple-lt:   #f5f3ff;
  --yellow:      #ffd600;
  --yellow-dk:   #f5c800;
  --green:       #10b981;
  --red:         #ef4444;
  --orange:      #f97316;
  --pink:        #ec4899;
  --text:        #0f172a;
  --text-2:      #475569;
  --text-3:      #94a3b8;
  --bg:          #f0f4ff;
  --card-bg:     #ffffff;
  --border:      #e2e8f0;
  --border-blue: rgba(99,102,241,0.15);
  --shadow-sm:   0 2px 10px rgba(79,70,229,0.07);
  --shadow-md:   0 6px 24px rgba(79,70,229,0.11);
  --shadow-lg:   0 14px 36px rgba(79,70,229,0.16);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   26px;
  --nav-h:       64px;
}


/* ==================================================
   ANIMATIONS — INDEX PAGE
================================================== */

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

@keyframes headerIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes trendIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,0.35); }
  60%     { box-shadow: 0 0 0 7px rgba(249,115,22,0); }
}

@keyframes priceGlow {
  0%,100% { text-shadow: 0 0 0px rgba(79,70,229,0); }
  50%     { text-shadow: 0 0 14px rgba(79,70,229,0.30); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

@keyframes ripplePop {
  from { transform: scale(0); opacity: 0.45; }
  to   { transform: scale(3); opacity: 0; }
}

@keyframes bounceIn {
  0%   { transform: scale(0.7);  opacity: 0; }
  55%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ==================================================
   RESET + BASE
================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--nav-h) + 16px);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ==================================================
   PAGE WRAPPER
================================================== */
.page-wrap {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 14px;
  animation: pageLoad 0.5s cubic-bezier(.22,1,.36,1) both;
}

/* ==================================================
   HEADER
================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 10px;
  margin-bottom: 6px;
  animation: headerIn 0.5s cubic-bezier(.22,1,.36,1) both;
}

.header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* ==================================================
   SECTION TITLE
================================================== */
.section-title {
  text-align: center;
  margin: 20px 0 16px;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 6px 0 4px;
  letter-spacing: -0.4px;
}

.section-title p {
  font-size: 13px;
  color: var(--text-2);
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  color: #c2410c;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #fdba74;
  animation: badgePulse 2.5s ease-in-out infinite, bounceIn 0.5s ease 0.1s both;
  letter-spacing: 0.2px;
}

/* ==================================================
   BUNDLE CARD — CLEAN SOLID DESIGN
================================================== */
.bundle-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-blue);
  padding: 14px;
  margin-bottom: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: cardIn 0.5s cubic-bezier(.22,1,.36,1) both;
  position: relative;
  overflow: hidden;
}

/* staggered card entrance */
.bundle-card:nth-child(1)  { animation-delay: 0.05s; }
.bundle-card:nth-child(2)  { animation-delay: 0.10s; }
.bundle-card:nth-child(3)  { animation-delay: 0.15s; }
.bundle-card:nth-child(4)  { animation-delay: 0.20s; }
.bundle-card:nth-child(5)  { animation-delay: 0.25s; }
.bundle-card:nth-child(6)  { animation-delay: 0.30s; }
.bundle-card:nth-child(7)  { animation-delay: 0.35s; }
.bundle-card:nth-child(8)  { animation-delay: 0.40s; }
.bundle-card:nth-child(9)  { animation-delay: 0.45s; }
.bundle-card:nth-child(10) { animation-delay: 0.50s; }
.bundle-card:nth-child(11) { animation-delay: 0.55s; }
.bundle-card:nth-child(12) { animation-delay: 0.60s; }
.bundle-card:nth-child(13) { animation-delay: 0.65s; }

/* top accent line */
.bundle-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.bundle-card:hover::before { opacity: 1; }

.bundle-card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-lg);
}

/* ==================================================
   CARD INNER LAYOUT
================================================== */
.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card-img {
  width: 105px;
  min-width: 105px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.card-text {
  flex: 1;
  min-width: 0;
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-lt);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.25);
  margin-bottom: 7px;
  animation: slideRight 0.4s ease both;
}

.popular-badge {
  background: #fef9c3;
  color: #92400e;
  border-color: #fde68a;
}

.hot-badge {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.card-text h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 5px;
}

.card-count {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
}

/* ==================================================
   PRICE ROW
================================================== */
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.price-row del {
  font-size: 13px;
  color: var(--text-3);
}

.price-now {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  animation: priceGlow 3s ease-in-out infinite;
}

.urgent {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 2px;
}

/* ==================================================
   BUTTON ROW
================================================== */
.btn-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.details-btn {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #bfdbfe;
  background: var(--primary-lt);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.18s, transform 0.15s;
}

.details-btn:active {
  transform: scale(0.95);
  background: #dbeafe;
}

.buy-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, #ffd600, #ffb300);
  color: #1a0a00;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(255,179,0,0.45);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.buy-btn:active {
  transform: scale(0.94);
  box-shadow: 0 2px 6px rgba(255,179,0,0.3);
}

.buy-btn.owned {
  background: var(--green) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(34,197,94,0.4) !important;
}

/* ==================================================
   DETAILS BOX — GRID STYLE
================================================== */
.details-box {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #f8faff;
  border: 1px solid #dbeafe;
  animation: fadeSlide 0.28s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.details-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--text);
}

.details-grid span:nth-child(odd) {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.details-grid span:nth-child(even) {
  color: var(--text-2);
}

/* ==================================================
   TRENDING SCROLL SECTION
================================================== */
.trending-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 14px 14px;
  margin-bottom: 8px;
  width: 100%;
}

.trending-scroll::-webkit-scrollbar { display: none; }

.trending-card {
  min-width: 140px !important;
  max-width: 140px !important;
  width: 140px !important;
  flex: 0 0 140px !important;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-blue);
  text-align: center;
  box-sizing: border-box;
  animation: trendIn 0.4s cubic-bezier(.22,1,.36,1) both;
  transition: transform 0.18s;
}

.trending-card:nth-child(1) { animation-delay: 0.05s; }
.trending-card:nth-child(2) { animation-delay: 0.12s; }
.trending-card:nth-child(3) { animation-delay: 0.19s; }
.trending-card:nth-child(4) { animation-delay: 0.26s; }

.trending-card:active { transform: scale(0.95); }

.trending-card img {
  width: 120px !important;
  height: 180px !important;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 7px;
  display: block;
}

.trending-card h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
  color: var(--text);
}

.trending-card p {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 2px;
}

.t-price {
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 700;
  margin-bottom: 7px !important;
}

.t-buy-btn {
  width: 100%;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

/* ==================================================
   INFO CARDS
================================================== */
.info-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 18px 16px;
  margin-bottom: 14px;
}

.support-card {
  text-align: center;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border-color: #bfdbfe;
}

.info-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.support-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.support-card p {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
}

.support-email {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  transition: background 0.18s;
}

.proof-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.proof-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proof-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

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

.blue-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(37,99,235,0.25);
  transition: background 0.18s, transform 0.15s;
}

.blue-btn:active {
  transform: scale(0.95);
  background: var(--primary-dk);
}

/* ==================================================
   TRUST FOOTER CARD
================================================== */
.trust-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.trust-item {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
  border: 1px solid #6ee7b7;
  animation: cardIn 0.5s ease both;
}

.trust-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* ==================================================
   BOTTOM NAVIGATION
================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: #1a1a2e;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.bottom-nav.hide { transform: translateY(100%); }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 10px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.18s;
  min-width: 60px;
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s;
}

.nav-item.active { color: #5eead4; }
.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-item:active { background: rgba(255,255,255,0.06); }

/* ==================================================
   WALLET CARD (Account Page)
================================================== */
.wallet-card {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(37,99,235,0.35);
  position: relative;
  overflow: hidden;
  animation: slideUpFade 0.5s ease forwards;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wallet-card:hover {
  box-shadow: 0 16px 40px rgba(37,99,235,0.45);
}

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

.wallet-card::after {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}

.wallet-card h2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.wallet-card h2 span:last-child {
  font-size: 34px !important;
  font-weight: 800 !important;
}

.wallet-card .currency {
  font-size: 18px !important;
  opacity: 0.85;
}

.wallet-card .amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==================================================
   ACCOUNT MENU ITEMS
================================================== */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.menu-item {
  opacity: 0;
  animation: slideUpFade 0.45s ease forwards;
  transition: transform 0.2s;
}

.menu-item:active { transform: scale(0.97); }

.menu-item:nth-child(1)  { animation-delay: 0.08s; }
.menu-item:nth-child(2)  { animation-delay: 0.16s; }
.menu-item:nth-child(3)  { animation-delay: 0.24s; }
.menu-item:nth-child(4)  { animation-delay: 0.32s; }
.menu-item:nth-child(5)  { animation-delay: 0.40s; }
.menu-item:nth-child(6)  { animation-delay: 0.48s; }
.menu-item:nth-child(7)  { animation-delay: 0.56s; }
.menu-item:nth-child(8)  { animation-delay: 0.64s; }
.menu-item:nth-child(9)  { animation-delay: 0.72s; }
.menu-item:nth-child(10) { animation-delay: 0.80s; }

/* ==================================================
   AI & EDITING PAGE
================================================== */
.ai-wrapper {
  padding: 12px 14px;
  padding-bottom: calc(var(--nav-h) + 20px);
  max-width: 440px;
  margin: 0 auto;
}

.ai-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.ai-card-header img { height: 34px; }
.ai-image { width: 100%; display: block; }

.ai-content {
  padding: 14px 16px;
  text-align: center;
}

.ai-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
}

.ai-content p {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.price { margin: 10px 0; }

.price del {
  color: var(--red);
  margin-right: 6px;
  font-size: 14px;
}

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

/* Full-width buttons for AI page */
.ai-content .details-btn,
.ai-content .buy-btn {
  width: 100%;
  flex: unset;
  display: block;
  margin-top: 10px;
  text-align: center;
}

/* ==================================================
   HEADER BOX
================================================== */
.header-box {
  margin: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.header-box span {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.header-box img { height: 38px; }

/* ==================================================
   MOBILE RESPONSIVE
================================================== */
@media (max-width: 380px) {
  .card-img { width: 90px; min-width: 90px; }
  .card-text h3 { font-size: 14px; }
  .price-now { font-size: 18px; }
  .trending-card { min-width: 145px; }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (min-width: 480px) {
  .page-wrap { padding: 0 20px; }
}
