/* ===== Page-Specific Styles (Amber/Gold Theme) ===== */

/* ===== HOME PAGE ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 20px 60px; position: relative; overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217,119,6,0.15); border: 1px solid rgba(217,119,6,0.35);
  color: var(--accent); padding: 6px 16px; border-radius: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 24px; animation: float 3s ease-in-out infinite;
}
.hero-title { font-family: var(--font-display); font-size: clamp(36px,6vw,72px); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { background: linear-gradient(135deg, var(--accent), var(--orange-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.6); max-width: 520px; margin: 0 auto 40px; line-height: 1.6; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary {
  padding: 16px 36px;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  color: #fff; border: none; border-radius: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(217,119,6,0.45);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(217,119,6,0.55); }
.btn-hero-outline {
  padding: 16px 36px;
  background: transparent; border: 2px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85); border-radius: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.3s;
}
.btn-hero-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-pixel-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.float-pixel { position: absolute; border-radius: 3px; background: var(--accent); opacity: 0.15; animation: float 4s ease-in-out infinite; }

/* Steps Section */
.steps-section { padding: 80px 20px; background: rgba(255,255,255,0.02); }
.section-title { text-align: center; margin-bottom: 12px; font-family: var(--font-display); font-size: clamp(24px,4vw,42px); font-weight: 700; color: #fff; }
.section-subtitle { text-align: center; color: rgba(255,255,255,0.45); margin-bottom: 50px; font-size: 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.step-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(217,119,6,0.25);
  border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: all 0.3s;
}
.step-card:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(217,119,6,0.08); }
.step-icon { font-size: 42px; margin-bottom: 16px; display: block; }
.step-num { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; line-height: 28px; text-align: center; margin-bottom: 12px; }
.step-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ===== GODS LIST ===== */
.gods-page { padding: 90px 20px 60px; min-height: 100vh; }
.gods-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 24px; margin-top: 40px; }
.god-card {
  background: rgba(255,255,255,0.97); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); cursor: pointer; transition: all 0.3s;
  border: 1px solid rgba(217,119,6,0.12);
}
.god-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(217,119,6,0.22); }
.god-card-img { width: 100%; height: 200px; background: linear-gradient(135deg, #FFFBEB, #FEF3C7); display: flex; align-items: center; justify-content: center; font-size: 80px; overflow: hidden; }
.god-card-img img { width: 100%; height: 100%; object-fit: contain; }
.god-card-noimg {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
}
.god-card-noimg::before { content: '🖼️'; font-size: 40px; }
.archana-god-img .god-card-noimg { font-size: 10px; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }
.archana-god-img .god-card-noimg::before { font-size: 20px; }
.god-card-body { padding: 20px; }
.god-card-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.god-card-temple { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.pixel-progress { width: 100%; height: 6px; background: #FEF3C7; border-radius: 3px; margin: 10px 0; overflow: hidden; }
.pixel-progress-fill { height: 100%; background: linear-gradient(90deg, #b45309, #f59e0b); border-radius: 3px; }
.pixel-count { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ===== GOD DETAIL ===== */
.god-detail-page { padding: 90px 20px 60px; min-height: 100vh; }
.god-detail-header {
  background: rgba(255,255,255,0.97); border-radius: var(--radius);
  padding: 32px; margin-bottom: 24px; display: flex; gap: 24px; align-items: center;
  box-shadow: var(--shadow-card);
}
.god-detail-emoji { font-size: 80px; flex-shrink: 0; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, #FFFBEB, #FEF3C7); }
.god-detail-emoji img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.god-detail-info h1 { font-family: var(--font-display); font-size: 28px; color: var(--text-dark); margin-bottom: 8px; }
.god-detail-info p { color: var(--text-muted); line-height: 1.6; font-size: 14px; }

.pixel-map-container { background: rgba(255,255,255,0.97); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.pixel-map-title { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.pixel-map-legend { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; }

.pixel-map-wrapper { position: relative; width: 100%; border-radius: 8px; overflow: hidden; background: #1a0a00; }
#pixelGrid { cursor: pointer; border-radius: 8px; }

#pixelTooltip {
  display: none;
  position: fixed;
  background: rgba(0,0,0,0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  transform: translateX(-50%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
#pixelTooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0,0,0,0.88);
}

#purchasedTooltip {
  display: none;
  position: fixed;
  background: rgba(15,10,5,0.94);
  border: 1px solid rgba(245,158,11,0.35);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45);
  transform: translate(-50%, -100%);
  min-width: 160px;
  max-width: 220px;
  white-space: normal;
}

.pixel-selection-panel { background: rgba(255,255,255,0.97); border-radius: var(--radius); padding: 24px; margin-top: 20px; box-shadow: var(--shadow-card); }
.selection-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* ===== PAYMENT ===== */
.payment-page { padding: 90px 20px 60px; min-height: 100vh; }
.payment-card { max-width: 480px; margin: 40px auto; background: rgba(255,255,255,0.97); border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow-card), var(--shadow-glow); }
.calendar-icon { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, #FEF3C7, #FDE68A); display: flex; align-items: center; justify-content: center; font-size: 44px; margin: 0 auto; position: relative; }
.calendar-badge { position: absolute; bottom: -4px; right: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 2px solid #fff; }
.price-badge { display: flex; align-items: center; gap: 10px; background: #FEF3C7; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 24px; border: 1px solid rgba(217,119,6,0.2); }
.price-badge-text { font-size: 14px; color: var(--text-mid); }
.price-badge-text strong { color: var(--primary); }
.days-dropdown-custom select { width: 100%; padding: 16px 20px; border: 2px solid rgba(217,119,6,0.2); border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; color: var(--text-dark); cursor: pointer; appearance: none; font-family: var(--font-body); background: #FFFDF5; outline: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d97706' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; transition: border-color 0.2s; }
.days-dropdown-custom select:focus { border-color: var(--primary); }
.total-cost-box { background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 1px solid rgba(217,119,6,0.25); border-radius: var(--radius-sm); padding: 20px; margin: 20px 0; }
.total-cost-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--primary-dark); }
.secure-badges { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 12px; margin: 12px 0; }

/* ===== PAYMENT STATUS PANEL ===== */
.pay-state { text-align: center; padding: 8px 0 16px; }
.pay-state-spinner { padding: 24px 0 20px; }
.pay-state-icon { font-size: 60px; display: block; margin-bottom: 12px; line-height: 1; }
.pay-state-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-bottom: 8px; color: var(--text-dark);
}
.pay-state-sub { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 4px; }

.pay-icon-success { animation: pay-pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275) both; }
.pay-icon-fail    { animation: pay-pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275) both; }
.pay-icon-cancel  { animation: pay-pop 0.4s cubic-bezier(0.175,0.885,0.32,1.275) both; }
@keyframes pay-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.pay-title-success { color: #15803d; }
.pay-title-fail    { color: #b91c1c; }
.pay-title-cancel  { color: #92400e; }

.pay-result-box {
  border-radius: var(--radius-sm); padding: 14px 16px;
  margin-top: 16px; text-align: left;
}
.pay-result-success { background: #f0fdf4; border: 1px solid #86efac; }
.pay-result-fail    { background: #fef2f2; border: 1px solid #fca5a5; }

.pay-result-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--text-muted);
}
.pay-result-row:last-child { border-bottom: none; }
.pay-result-row strong { color: var(--text-dark); font-weight: 600; }

.pay-fail-reason { font-size: 13px; color: #991b1b; line-height: 1.5; }

/* ===== ARCHANA ===== */
.archana-page { padding: 90px 20px 60px; min-height: 100vh; }
.archana-card { background: rgba(255,255,255,0.97); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 24px; cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.archana-card:hover, .archana-card.playing { border-color: var(--primary); transform: translateY(-4px); }
.archana-card-header { background: linear-gradient(135deg, #b45309, #f59e0b); padding: 20px 24px; color: #fff; display: flex; align-items: center; gap: 12px; }
.archana-card-icon { font-size: 32px; }
.archana-god-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.7); }
.archana-god-img img { width: 100%; height: 100%; object-fit: cover; }
.archana-card-title { font-family: var(--font-display); font-size: 18px; color: #fff; font-weight: 600; }
.archana-card-sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.archana-card-body { padding: 20px 24px; }
.audio-player { display: flex; align-items: center; gap: 12px; background: #FEF3C7; border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; }
.play-btn { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #b45309, #f59e0b); border: none; color: #fff; font-size: 14px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; box-shadow: 0 4px 12px rgba(217,119,6,0.4); }
.play-btn:hover { transform: scale(1.1); }
.audio-track { width: 100%; height: 4px; background: #FDE68A; border-radius: 2px; cursor: pointer; }
.audio-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== PROFILE ===== */
.profile-page { padding: 90px 20px 60px; min-height: 100vh; }
.profile-header-card { background: linear-gradient(135deg, #b45309, #f59e0b); border-radius: var(--radius); padding: 36px; color: #fff; margin-bottom: 24px; position: relative; overflow: hidden; }
.profile-header-card::before { content: '✦'; position: absolute; right: 30px; top: 20px; font-size: 80px; opacity: 0.15; animation: float 3s ease-in-out infinite; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.25); border: 3px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.profile-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.profile-phone { font-size: 14px; opacity: 0.8; }
.profile-stats { display: flex; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.profile-stat-val { font-size: 22px; font-weight: 700; }
.profile-stat-label { font-size: 12px; opacity: 0.7; }
.profile-section { background: rgba(255,255,255,0.97); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); margin-bottom: 20px; }
.profile-section-title { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.purchased-pixel-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid rgba(217,119,6,0.15); margin-bottom: 12px; transition: all 0.2s; }
.purchased-pixel-item:hover { border-color: var(--primary); background: rgba(217,119,6,0.02); }
.purchased-pixel-god { font-size: 32px; }
.purchased-pixel-name { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.purchased-pixel-details { font-size: 12px; color: var(--text-muted); }

/* ===== FOOTER ===== */
.site-footer { background: rgba(18,10,0,0.97); border-top: 1px solid rgba(217,119,6,0.2); padding: 60px 32px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.footer-col-title { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-link { display: block; color: rgba(255,255,255,0.4); font-size: 13px; margin-bottom: 10px; cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .god-detail-header { flex-direction: column; text-align: center; }
  .payment-card { padding: 28px 20px; }
  .hero { padding: 100px 20px 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
