:root {
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-english: 'Outfit', sans-serif;
  
  /* Luxury Gold & Dark Theme (Default) */
  --bg-primary: #0a0c10;
  --bg-card: rgba(22, 27, 34, 0.82);
  --bg-card-hover: rgba(30, 37, 48, 0.95);
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-gold-hover: rgba(212, 175, 55, 0.7);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-gold: #e6c65b;
  --gold-glow: rgba(212, 175, 55, 0.18);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 9999px;
  
  /* Brand Colors */
  --c-instapay-purple: #3e1f6e;
  --c-instapay-orange: #ea580c;
  --c-vodafone: #e60000;
  --c-whatsapp: #25d366;
  --c-facebook: #1877f2;
  --c-instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --c-tiktok: #fe2c55;
  --c-youtube: #ff0000;
  --c-telegram: #229ed9;
  --c-google: #4285f4;
}

/* Theme variations */
body.theme-black-onyx {
  --bg-primary: #050505;
  --bg-card: rgba(18, 18, 18, 0.9);
  --border-gold: rgba(255, 255, 255, 0.12);
  --text-gold: #ffffff;
  --gold-glow: rgba(255, 255, 255, 0.08);
}

body.theme-neon-blue {
  --bg-primary: #060b14;
  --bg-card: rgba(10, 20, 36, 0.85);
  --border-gold: rgba(56, 189, 248, 0.3);
  --border-gold-hover: rgba(56, 189, 248, 0.8);
  --text-gold: #38bdf8;
  --gold-glow: rgba(56, 189, 248, 0.2);
}

body.theme-royal-emerald {
  --bg-primary: #06120e;
  --bg-card: rgba(11, 29, 22, 0.85);
  --border-gold: rgba(52, 211, 153, 0.3);
  --border-gold-hover: rgba(52, 211, 153, 0.8);
  --text-gold: #34d399;
  --gold-glow: rgba(52, 211, 153, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-arabic);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, var(--gold-glow) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 40%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 14px 10px 40px;
  overflow-x: hidden;
}

/* Mobile Wrapper */
.mobile-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.card-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Top Bar & NFC Badge */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}

.nfc-chip-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--text-gold);
  backdrop-filter: blur(8px);
}

.nfc-icon {
  width: 18px;
  height: 18px;
  animation: nfcPulse 2.4s infinite ease-in-out;
}

@keyframes nfcPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 6px var(--text-gold)); }
}

.btn-icon-top {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-icon-top:active {
  transform: scale(0.9);
}

/* Profile Header */
.profile-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 6px;
}

.avatar-ring {
  position: relative;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #d4af37, #f3e5ab, #aa771c, #ffd700);
  box-shadow: 0 0 24px var(--gold-glow);
  margin-bottom: 12px;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0d1117;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verified-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: #1877f2;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 3px solid #0d1117;
}

.store-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#storeCategory {
  color: var(--text-gold);
  font-size: 0.9rem;
  font-weight: 600;
}

.code-pill {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--font-english);
  font-size: 0.75rem;
  font-weight: 700;
}

.store-bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 340px;
}

/* Quick Actions (Call & Save Contact) */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-call {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.btn-save-contact {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  border: 1px solid var(--border-gold);
}

.btn-action:active {
  transform: translateY(2px) scale(0.98);
}

.btn-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Section Common */
.section-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 16px 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.section-title h2 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.text-gold {
  color: var(--text-gold);
}

/* Payment Section Grid */
.payment-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s ease;
}

.pay-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-hover);
  transform: translateX(-3px);
}

.pay-card:active {
  transform: scale(0.98);
}

.pay-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Specific Pay Brand Styles */
.pay-card-instapay .pay-logo-icon {
  background: linear-gradient(135deg, #4c1d95, #c2410c);
  color: #ffffff;
}

.pay-card-vodafone .pay-logo-icon {
  background: #e60000;
  color: #ffffff;
}

.pay-card-orange .pay-logo-icon {
  background: #ff6600;
  color: #ffffff;
}

.pay-card-etisalat .pay-logo-icon {
  background: #00853f;
  color: #ffffff;
}

.pay-card-we .pay-logo-icon {
  background: #501d7a;
  color: #ffffff;
}

.pay-card-info {
  display: flex;
  flex-direction: column;
}

.pay-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.pay-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pay-badge-action {
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-gold);
  border: 1px solid var(--border-gold);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Social Grid (Icons like in video) */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 6px;
  transition: transform 0.2s ease;
}

.social-item:active {
  transform: scale(0.92);
}

.social-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.social-icon-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent);
  border-radius: 16px 16px 0 0;
}

.social-name {
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
  max-width: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Social Brands */
.social-whatsapp { background: var(--c-whatsapp); }
.social-facebook { background: var(--c-facebook); }
.social-instagram { background: var(--c-instagram); }
.social-tiktok { background: #000000; border: 1px solid #333; }
.social-youtube { background: var(--c-youtube); }
.social-snapchat { background: #fffc00; color: #000000 !important; }
.social-telegram { background: var(--c-telegram); }
.social-linkedin { background: #0a66c2; }
.social-x { background: #000000; border: 1px solid #333; }
.social-behance { background: #053eff; }

/* Location and Reviews */
.review-location-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rev-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.25s ease;
}

.rev-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-hover);
}

.rev-card:active {
  transform: scale(0.98);
}

.rev-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rev-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.rev-google {
  background: #ffffff;
  color: #ea4335;
}

.rev-map {
  background: #34a853;
  color: #ffffff;
}

.rev-title {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.rev-stars {
  color: #f59e0b;
  font-size: 0.78rem;
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.rev-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.rev-arrow {
  color: var(--text-gold);
  font-size: 0.9rem;
}

/* Notice Banner (Matching the Stand in Image 2) */
.notice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.notice-icon {
  font-size: 1.1rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-link {
  color: var(--text-gold);
  text-decoration: none;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.admin-link:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--border-gold);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #11141a;
  border: 1px solid var(--border-gold);
  border-radius: 28px 28px 0 0;
  padding: 24px 20px 30px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.btn-modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.instapay-logo-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #3e1f6e, #c2410c);
  padding: 8px 24px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.instapay-gradient-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
}

.instapay-sub {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: #ffedd5;
  font-family: var(--font-english);
}

.wallet-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e60000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-field-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.field-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-value {
  font-family: var(--font-english);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-gold);
  direction: ltr;
}

.account-name-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--text-gold);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-arabic);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:active {
  transform: scale(0.92);
}

.ussd-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
}

.modal-actions {
  margin-top: 8px;
}

.btn-primary-action {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  transition: all 0.25s ease;
}

.instapay-launch-btn {
  background: linear-gradient(135deg, #4c1d95, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.35);
}

.wallet-dial-btn {
  background: linear-gradient(135deg, #e60000, #b91c1c);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(230, 0, 0, 0.35);
}

.btn-primary-action:active {
  transform: scale(0.98);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #10b981;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
