:root {
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --gold-gradient: linear-gradient(135deg, #f9d423 0%, #d4af37 45%, #9a7b1a 100%);
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.35);
  --dark: #050506;
  --surface: #0c0c0f;
  --glass-bg: rgba(14, 14, 18, 0.72);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(22px);
  --accent-aurora: #6b4ce6;
  --accent-teal: #1a8f7a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: #fff;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  overflow-x: hidden;
  padding-top: 76px;
  min-height: 100vh;
}

.hidden { display: none !important; }
.align-right { text-align: right; }

/* ─── خلفية فريدة: aurora + noise + particles ─── */
.aurora-mesh {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(107, 76, 230, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(212, 175, 55, 0.12), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(26, 143, 122, 0.1), transparent 55%),
    var(--dark);
  animation: auroraShift 18s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(12deg) brightness(1.05); }
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.gold-particles::before,
.gold-particles::after {
  content: '';
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    12vw 18vh 0 rgba(212,175,55,0.4),
    45vw 72vh 0 rgba(212,175,55,0.25),
    78vw 35vh 0 rgba(212,175,55,0.35),
    88vw 82vh 0 rgba(212,175,55,0.2),
    25vw 55vh 0 rgba(212,175,55,0.3);
  animation: particleDrift 12s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.gold-particles::after {
  animation-delay: -6s;
  opacity: 0.6;
}

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

#animated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5,5,6,0.3) 0%, rgba(5,5,6,0.92) 100%);
  pointer-events: none;
}

.floating-img {
  position: absolute;
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.1;
  filter: saturate(0.7) blur(1px);
  animation: floatAnim 30s infinite linear;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

@keyframes floatAnim {
  0% { transform: translateY(110vh) rotate(-4deg) scale(0.85); opacity: 0; }
  8% { opacity: 0.2; }
  92% { opacity: 0.2; }
  100% { transform: translateY(-25vh) rotate(8deg) scale(1.05); opacity: 0; }
}

/* ─── شريط علوي Fanspic ─── */
.mami-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(8, 8, 10, 0.88);
  border-bottom: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  z-index: 10000;
  backdrop-filter: var(--glass-blur);
}

.btn-lang {
  justify-self: start;
  font-size: 13px;
  min-width: 88px;
}

.top-logo {
  justify-self: center;
  font-weight: 900;
  font-size: clamp(0.9rem, 3vw, 1.15rem);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
}

.top-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.mami-nav-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.mami-nav-btn:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.45);
  box-shadow: var(--gold-glow);
}

.mami-nav-link {
  text-decoration: none;
}

.modal-purse-content .purse-balance-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-purse-content .purse-balance-card.purse-ref {
  border-color: rgba(212,175,55,0.25);
}
.modal-purse-content .purse-label {
  font-size: 0.85rem;
  color: var(--muted, #8b8b96);
}
.modal-purse-content .purse-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
#btn-purse-recharge { width: 100%; margin-top: 8px; }

.balance-pill {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.35);
  color: var(--gold-light);
}

.mami-btn-vip {
  background: var(--gold-gradient);
  color: #0a0a0a;
  border: none;
  box-shadow: var(--gold-glow);
}

.mami-btn-vip:hover { transform: scale(1.04); }

/* ─── Hero ─── */
.store-main { max-width: 1200px; margin: 0 auto; }

.hero-section {
  text-align: center;
  padding: 40px 20px 24px;
  position: relative;
}

.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -55%) scale(1.1); }
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(212,175,55,0.08);
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(100deg, #fff 0%, var(--gold-light) 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  color: #a8a8b0;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── شريط ثقة ─── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  font-size: 0.85rem;
  color: #ccc;
  backdrop-filter: var(--glass-blur);
}

.trust-item i { color: var(--gold); }

.channels-heading {
  text-align: center;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 900;
  margin-bottom: 28px;
  padding: 0 20px;
}

.channels-heading span { color: var(--gold); }

.container,
#celeb-list {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ─── بطاقات القنوات + shimmer ─── */
.celeb-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  border-radius: 26px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.celeb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.7s;
  z-index: 4;
  pointer-events: none;
}

.celeb-card:hover::before { transform: translateX(120%); }

.celeb-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  transition: transform 0.6s;
}

.celeb-card:hover .celeb-cover { transform: scale(1.08); }

.celeb-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(8,8,10,0.85) 48%, rgba(5,5,6,0.98) 100%);
}

.celeb-card-content {
  padding: 52% 20px 22px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
}

.celeb-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), var(--gold-glow);
}

.celeb-img-wrap {
  margin: -72px auto 14px;
  position: relative;
  z-index: 3;
}

.celeb-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--gold), 0 12px 28px rgba(0,0,0,0.55);
  background: #111;
}

.celeb-name {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.media-stats {
  font-size: 0.82rem;
  color: #bbb;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.4);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.celeb-desc {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 14px;
  line-height: 1.55;
  max-height: 2.8em;
  overflow: hidden;
}

.plan-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 11px 14px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
  transition: 0.25s;
}

.plan-item:hover { background: rgba(255,255,255,0.06); }

.plan-item.selected {
  border-color: var(--gold);
  background: rgba(212,175,55,0.12);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.2);
}

.plan-item.selected strong { color: var(--gold-light); }

.btn-subscribe {
  background: var(--gold-gradient);
  color: #0a0a0a;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  font-family: inherit;
  transition: 0.3s;
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

.btn-subscribe:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px rgba(212,175,55,0.5);
}

/* ─── آراء + إثباتات ─── */
.section-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--gold-light);
}

.reviews-section,
.proofs-section {
  padding: 20px 20px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: var(--glass-blur);
}

.review-stars { color: var(--gold); margin-bottom: 8px; letter-spacing: 2px; }
.review-text { color: #bbb; font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.review-author { font-weight: 700; font-size: 0.85rem; color: #888; }

.proofs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.proof-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px;
  text-align: right;
  transition: 0.25s;
}

.proof-card:hover {
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-3px);
}

.proof-card h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 6px; }
.proof-card p { color: #999; font-size: 0.82rem; }

/* ─── Modals ─── */
.mami-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  z-index: 20000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.mami-modal.open { display: flex; }

.mami-modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), var(--gold-glow);
  backdrop-filter: var(--glass-blur);
  width: 100%;
  max-width: 460px;
  padding: 32px 28px;
  border-radius: 28px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-vip-content .vip-modal-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  filter: drop-shadow(var(--gold-glow));
}

@keyframes modalPop {
  from { transform: scale(0.88) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: 0.2s;
}

.modal-close-btn:hover { background: rgba(212,175,55,0.2); }

.modal-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; color: var(--gold-light); }
.modal-sub { color: #999; font-size: 0.9rem; margin-bottom: 20px; }

.vip-features-list {
  text-align: right;
  font-size: 0.9rem;
  color: #ddd;
  line-height: 2;
  margin: 16px 0;
}

.vip-price-display {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  margin: 12px 0 20px;
  text-shadow: var(--gold-glow);
}

/* دفع متعدد الخطوات */
.pay-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.pay-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #666;
  transition: 0.3s;
}

.pay-step-dot.active {
  border-color: var(--gold);
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  box-shadow: var(--gold-glow);
}

.pay-step-dot.done {
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
}

.pay-step-line {
  width: 40px;
  height: 2px;
  background: var(--glass-border);
}

.pay-panel { display: none; }
.pay-panel.active { display: block; }

.pay-summary-card {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  text-align: right;
  line-height: 2;
}

.pay-amount-row strong { color: var(--gold); font-size: 1.2rem; }

.field-label {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, select:focus { outline: none; border-color: var(--gold); }

.method-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
  width: 100%;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.25s;
}

.method-btn i { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }

.method-btn:hover { background: rgba(255,255,255,0.07); }

.method-btn.selected {
  border-color: var(--gold);
  background: rgba(212,175,55,0.1);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.25);
}

.orders-scroll { max-height: 50vh; overflow-y: auto; margin: 16px 0; }

.order-item {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: right;
}

.order-item h4 { color: var(--gold); margin-bottom: 8px; }

.order-link {
  font-size: 0.78rem;
  word-break: break-all;
  color: #888;
  margin: 8px 0;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0a0a0a;
  border: none;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  margin-top: 8px;
  transition: 0.25s;
}

.btn-gold:hover { box-shadow: var(--gold-glow); transform: scale(1.02); }

.link-btn { display: inline-block; text-decoration: none; }

.btn-ghost-modal {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #aaa;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  margin-top: 8px;
}

.modal-divider { border: none; border-top: 1px solid var(--glass-border); margin: 16px 0; }

.success-icon { font-size: 3rem; margin-bottom: 8px; }
.warn-once { font-size: 0.8rem; color: #f88; margin-top: 14px; }

.toast-notify {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #0a0a0a;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 900;
  z-index: 99999;
  display: none;
  box-shadow: 0 12px 32px rgba(212,175,55,0.45);
  max-width: 90vw;
  text-align: center;
}

.toast-notify.show { display: block; animation: slideDown 0.3s ease; }

@keyframes slideDown {
  from { top: 70px; opacity: 0; }
  to { top: 88px; opacity: 1; }
}

.pay-status {
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 8px 0;
  text-align: right;
}
.pay-status.info { background: rgba(212,175,55,0.12); color: var(--gold-light); border: 1px solid rgba(212,175,55,0.25); }
.pay-status.ok { background: rgba(34,197,94,0.12); color: #86efac; }
.pay-status.err { background: rgba(239,68,68,0.12); color: #fca5a5; }
.pay-method-btn.selected { border-color: var(--gold); background: rgba(212,175,55,0.1); }
.pay-hint {
  font-size: 0.8rem;
  color: #888;
  margin: -4px 0 12px;
  line-height: 1.5;
  text-align: right;
}

.balance-chip {
  display: inline-block;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold-light);
}

#telegram-login-wrap { min-height: 52px; display: flex; justify-content: center; }

.site-footer {
  text-align: center;
  padding: 48px 20px;
  color: #555;
  font-size: 0.85rem;
  border-top: 1px solid var(--glass-border);
}

.footer-links a { color: var(--gold); text-decoration: none; }
.footer-links span { margin: 0 8px; color: #333; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #666;
}

.empty-state i { font-size: 3rem; color: var(--gold); opacity: 0.4; margin-bottom: 16px; display: block; }

/* LTR English */
html[lang="en"] { direction: ltr; }
html[lang="en"] .mami-top-bar { direction: ltr; }
html[lang="en"] .modal-close-btn { left: auto; right: 12px; }
html[lang="en"] .align-right,
html[lang="en"] .vip-features-list,
html[lang="en"] .pay-summary-card,
html[lang="en"] .order-item,
html[lang="en"] .proof-card { text-align: left; }
html[lang="en"] .field-label { text-align: left; }
html[lang="en"] .method-btn { text-align: left; }

@media (max-width: 720px) {
  .mami-top-bar {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 10px 12px;
    gap: 8px;
  }
  .btn-lang { grid-row: 1; }
  .top-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .top-actions {
    grid-column: 1 / -1;
    justify-self: center;
    justify-content: center;
  }
  body { padding-top: 120px; }
  .container, #celeb-list { grid-template-columns: 1fr; }
  .mami-nav-btn { padding: 7px 11px; font-size: 12px; }
}
