/* ═══════════════════════════════════════════
   متجر صايع بحر — Store Premium 2026
   sayebahr.com/store
   ═══════════════════════════════════════════ */

/* ── Hero ── */
.store-hero {
  padding: clamp(3rem, 8vw, 5rem) 5% 2rem;
  text-align: center;
  position: relative;
}

.store-hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.store-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  font-size: 0.8125rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.store-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.store-hero p {
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  font-size: 1.0625rem;
}

.store-trust-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.store-trust-hero span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Auth bar ── */
.store-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 5%;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: var(--header-h);
  z-index: 80;
}

.store-auth-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.store-user-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ── Success banner ── */
.store-success {
  margin: 1rem 5%;
  border-radius: var(--radius);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  overflow: hidden;
}

.store-success-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}

.store-success-icon { font-size: 2rem; flex-shrink: 0; }

.store-success-inner strong {
  display: block;
  color: #86efac;
  font-size: 1.0625rem;
}

.store-success-inner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.store-success-inner a { margin-right: auto; }

/* ── Flash offer banner ── */
.flash-offer-banner {
  background: linear-gradient(135deg, rgba(234,179,8,0.18) 0%, rgba(251,191,36,0.08) 100%);
  border-top: 1px solid rgba(251, 191, 36, 0.25);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
}

.flash-offer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 5%;
  text-align: center;
}

.flash-fire { font-size: 1.125rem; }
.flash-text { font-size: 0.875rem; color: var(--amber); }
.flash-text strong { color: var(--gold-light); }

.flash-countdown {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  min-width: 8ch;
  text-align: center;
}

/* ── Social ticker ── */
.social-ticker {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.5rem 0;
}

.social-ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.social-ticker-track span {
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-ticker-track strong { color: var(--text); }
.social-ticker-track em { color: var(--cyan); font-style: normal; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Main ── */
.store-main {
  max-width: 80rem;
  margin: 0 auto;
}

/* ── Section ── */
.store-section {
  padding: 2.5rem 5% 1.5rem;
}

.store-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.store-section-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.store-section-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 900;
  margin: 0 0 0.25rem;
  color: var(--amber);
}

.store-section-head p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Value meter */
.gems-value-meter {
  margin-right: auto;
  text-align: center;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

.value-meter-label { display: block; color: #86efac; font-weight: 700; margin-bottom: 0.35rem; }

.value-meter-bar {
  width: 8rem;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 0.25rem;
}

.value-meter-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #86efac);
  border-radius: 3px;
  animation: value-bar 3s ease-in-out infinite alternate;
}

@keyframes value-bar {
  from { transform: scaleX(0.3); transform-origin: right; }
  to { transform: scaleX(1); transform-origin: right; }
}

.value-meter-tip { color: var(--text-muted); }

/* ── Store Grid ── */
.store-grid {
  display: grid;
  gap: 1.25rem;
}

.store-gems-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.store-vip-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.store-offers-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* ── Store Card ── */
.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.375rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(234, 179, 8, 0.18);
  transition: transform 0.22s var(--ease-out), border-color 0.22s, box-shadow 0.22s;
  overflow: hidden;
  cursor: default;
}

.store-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(251,191,36,0.06), transparent);
  pointer-events: none;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(251,191,36,0.15);
}

.store-card.is-popular {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(165deg, rgba(30, 42, 60, 0.85), rgba(15, 23, 42, 0.85));
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.1), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.store-card-popular-crown {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold-dark), var(--amber), var(--gold-dark));
  color: #000;
  font-size: 0.6875rem;
  font-weight: 900;
  padding: 0.2rem 0.875rem;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.store-card-emoji { font-size: 2.5rem; line-height: 1; }

.store-card-img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(251, 191, 36, 0.3));
}

.store-card-title {
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
  color: var(--text);
}

.store-card-reward {
  font-size: 0.8125rem;
  color: #86efac;
  font-weight: 600;
}

.store-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.store-tag,
.store-bonus,
.store-popular {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.store-tag { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.store-bonus { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.store-popular { background: rgba(251, 191, 36, 0.18); color: #fde68a; border: 1px solid rgba(251,191,36,0.25); }

.store-perks {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.store-perks li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.store-perks li:last-child { border-bottom: none; }

.store-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.store-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
}

.store-price small {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 0.1rem;
}

.store-buy-btn {
  flex: 1;
  min-width: 7rem;
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  white-space: nowrap;
}

.store-card-skeleton { min-height: 240px; pointer-events: none; }

.store-skel-block {
  height: 100%;
  min-height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: store-skel 1.4s ease infinite;
}

@keyframes store-skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── VIP Comparison Table ── */
.vip-compare-section { padding-bottom: 2.5rem; }

.offers-hot-badge {
  margin-right: auto;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.vip-table-wrap {
  margin-top: 2rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.vip-table-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  padding: 1rem 1rem 0.5rem;
  margin: 0;
}

.vip-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.vip-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.vip-table th, .vip-table td {
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vip-table th:first-child, .vip-table td:first-child {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.vip-table thead th { color: var(--text-muted); font-size: 0.8125rem; font-weight: 700; }
.vip-table tbody tr:hover td { background: rgba(255,255,255,0.025); }

.vip-table .is-popular { background: rgba(251, 191, 36, 0.06); color: var(--gold-light); font-weight: 700; }
.vip-table thead .is-popular {
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 2px solid rgba(251, 191, 36, 0.5);
  color: var(--amber);
  font-size: 0.9375rem;
}

/* ── Why Buy ── */
.why-buy-section {
  padding: 2rem 5% 1.5rem;
  background: rgba(15, 23, 42, 0.45);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.why-buy-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
}

.why-buy-card {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s;
}

.why-buy-card:hover { border-color: var(--glass-border-hover); }

.why-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.why-buy-card h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.why-buy-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Gem Calculator ── */
.gem-calc-section {
  padding: 2rem 5% 2.5rem;
}

.gem-calc-inner {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.gem-calc-inner h2 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.gem-calc-inner > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.gem-calc-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gem-calc-item {
  flex: 1 1 10rem;
  max-width: 14rem;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.gem-calc-item:hover { transform: translateY(-2px); border-color: var(--glass-border-hover); }

.gem-calc-item-hot {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(160deg, rgba(30,42,60,0.85), rgba(15,23,42,0.85));
}

.gem-calc-icon { font-size: 2rem; line-height: 1; }
.gem-calc-item strong { font-size: 0.9375rem; font-weight: 900; color: var(--gold-light); }
.gem-calc-item small { font-size: 0.75rem; color: var(--text-muted); }

/* ── Trust row bottom ── */
.trust-row-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  padding: 1rem 5%;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(10, 18, 30, 0.6);
  border-top: 1px solid var(--glass-border);
}

.trust-row-bottom span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Auth Modal ── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-panel {
  width: min(100%, 23rem);
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #112035, #08111f);
  border: 2px solid rgba(234, 179, 8, 0.4);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(234,179,8,0.1);
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.125rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.15s;
}

.auth-modal-close:hover { color: var(--text); }

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-modal-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

.auth-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold-light);
  margin: 0 0 0.35rem;
}

.auth-modal-header p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.auth-google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #ea4335 50%, #fbbc05 85%, #34a853);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-divider span { white-space: nowrap; }

.auth-field {
  margin-bottom: 0.875rem;
}

.auth-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.auth-field input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(234, 179, 8, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(234, 179, 8, 0.65);
}

.auth-msg {
  min-height: 1.25rem;
  font-size: 0.8125rem;
  color: #fca5a5;
  margin: 0 0 0.75rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.auth-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-note {
  margin-top: 0.875rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(251, 191, 36, 0.6);
  padding: 0.5rem 0.75rem;
  background: rgba(251, 191, 36, 0.06);
  border-radius: 6px;
}

/* ── Toast ── */
.store-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 400;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.96);
  border: 1px solid rgba(234, 179, 8, 0.4);
  font-weight: 700;
  font-size: 0.875rem;
  transition: transform 0.3s var(--ease-out);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.store-toast.is-visible { transform: translateX(-50%) translateY(0); }
.store-toast.is-ok { border-color: rgba(34, 197, 94, 0.5); color: #86efac; }
.store-toast.is-warn { border-color: rgba(251, 191, 36, 0.5); color: #fde68a; }
.store-toast.is-err { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }

/* ── nav active ── */
.nav .active, .nav a.active { color: var(--amber) !important; font-weight: 800; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .store-section-head { flex-direction: column; }
  .gems-value-meter, .offers-hot-badge { margin-right: 0; }
  .store-gems-grid, .store-vip-grid, .store-offers-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  }
  .vip-table-wrap { padding: 0.25rem; }
  .store-trust-hero { gap: 0.5rem; }
  .flash-offer-inner { flex-direction: column; gap: 0.35rem; }
}
