@import url('irpa-themes.css');
@import url('irpa-premium.css');
@import url('irpa-layout.css');

:root {
  font-family: var(--theme-font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--theme-body-bg);
  color: var(--theme-text);
  font-family: var(--theme-font);
  font-size: var(--theme-font-size);
  line-height: var(--theme-line-height);
  min-height: 100vh;
}

/* خصائص الطائر الاختيارية (صفحة المزاد) */
.auction-characteristics .irpa-char-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--irpa-border);
}
.auction-characteristics .irpa-char-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.irpa-char-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--irpa-gold-soft);
  margin: 0 0 0.75rem;
}
.irpa-char-grid {
  display: grid;
  gap: 0.65rem 1.25rem;
  margin: 0;
}
@media (min-width: 640px) {
  .irpa-char-grid {
    grid-template-columns: minmax(7.5rem, 10.5rem) 1fr;
  }
}
.irpa-char-row { display: contents; }
.irpa-char-label {
  color: var(--irpa-muted);
  font-size: 0.85rem;
  margin: 0;
}
.irpa-char-value {
  margin: 0;
  color: var(--theme-text);
  white-space: pre-wrap;
  line-height: 1.5;
}
.irpa-char-form-block summary::-webkit-details-marker { display: none; }

/* خصائص مضغوطة — أسفل عمود المحتوى في صفحة المزاد */
.auction-characteristics--compact {
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
}
.auction-characteristics--compact .auction-char-summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--irpa-gold-soft);
  list-style: none;
  user-select: none;
}
.auction-characteristics--compact .auction-char-summary::-webkit-details-marker { display: none; }
.auction-characteristics--compact .irpa-char-body {
  margin-top: 0.5rem;
  max-height: 10.5rem;
  overflow-y: auto;
  padding-left: 0.15rem;
}
.auction-characteristics--compact .irpa-char-section {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
}
.auction-characteristics--compact .irpa-char-section-title {
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}
.auction-characteristics--compact .irpa-char-label { font-size: 0.68rem; }
.auction-characteristics--compact .irpa-char-value {
  font-size: 0.72rem;
  line-height: 1.35;
}
.auction-characteristics--compact .irpa-char-grid { gap: 0.2rem 0.65rem; }
@media (min-width: 640px) {
  .auction-characteristics--compact .irpa-char-grid {
    grid-template-columns: minmax(5.25rem, 6.75rem) 1fr;
  }
}

/* سجل المزايدات داخل لوحة المزايدة */
.bid-panel-bid-history {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
  margin-bottom: 0.85rem;
}
.bid-panel-bid-history h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(251, 191, 36, 0.9);
  margin: 0 0 0.5rem;
}
#bid-history.bid-panel-history-list {
  max-height: 9.5rem;
  overflow-y: auto;
  font-size: 0.72rem;
}
#bid-history.bid-panel-history-list .flex {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.irpa-glass {
  background: var(--theme-surface);
  backdrop-filter: var(--irpa-glass-blur);
  -webkit-backdrop-filter: var(--irpa-glass-blur);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-shadow);
}

.irpa-gold-text { color: var(--irpa-gold); }
.irpa-gradient-text {
  background: linear-gradient(135deg, var(--irpa-gold-soft), var(--irpa-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Brand logo — header wordmark */
.irpa-brand {
  transition: opacity 0.2s ease;
}
.irpa-brand:hover {
  opacity: 0.92;
}
.irpa-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.5rem 0.85rem;
  min-height: 2.625rem;
  border-radius: 0.85rem;
  direction: ltr;
  unicode-bidi: isolate;
  background:
    linear-gradient(145deg, rgba(212, 166, 58, 0.16) 0%, rgba(212, 166, 58, 0.04) 45%, rgba(0, 0, 0, 0.55) 100%);
  border: 1px solid rgba(212, 166, 58, 0.38);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.irpa-logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(212, 166, 58, 0.12) 50%, transparent 60%);
  pointer-events: none;
}
.irpa-logo-word {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  flex-direction: row;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.irpa-logo-ir {
  background: linear-gradient(135deg, #f5e6b8 0%, var(--irpa-gold-soft) 35%, var(--irpa-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.irpa-logo-pa {
  color: #f8fafc;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}
.irpa-logo-tld {
  margin-inline-start: 1px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--irpa-gold-soft);
  opacity: 0.95;
}
.irpa-brand-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  line-height: 1.2;
  max-width: 11rem;
  direction: ltr;
  text-align: left;
}

.btn-irpa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: var(--theme-btn-padding-y) var(--theme-btn-padding-x);
  border-radius: 999px;
  border: 2px solid var(--theme-btn-border);
  background: var(--theme-btn-bg);
  color: var(--theme-btn-text);
  font-weight: 600;
  font-size: var(--theme-btn-font-size);
  font-family: var(--theme-font);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-irpa:hover {
  transform: translateY(-2px);
  box-shadow: var(--theme-btn-shadow);
}
.btn-irpa-solid {
  background: var(--theme-btn-solid-bg);
  color: var(--theme-btn-solid-text);
  border-color: transparent;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(239,68,68,.15);
  color: #fecaca;
  border: 1px solid rgba(239,68,68,.45);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--irpa-live);
  animation: pulse-live 1.2s infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.35); }
}

.auction-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.auction-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,166,58,.55);
}

.auction-card-img-frame {
  height: 12rem;
  min-height: 12rem;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.auction-card-img {
  width: 100%;
  height: 100%;
  max-height: 12rem;
  object-fit: contain;
  object-position: center;
  display: block;
}

.countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.nav-link {
  color: var(--theme-text-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--theme-nav-active); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--theme-heading);
}

.stat-tile {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.fade-up {
  animation: fadeUp .7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Live bid ticker — unified homepage strip */
.bid-ticker-wrap,
.live-unified-bar {
  overflow: hidden;
  border-block: 1px solid rgba(212, 166, 58, 0.2);
  background: linear-gradient(90deg, rgba(212,166,58,.06), transparent 40%, rgba(212,166,58,.06));
}
.live-unified-bar.is-hidden { display: none; }
.live-unified-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f87171;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bid-ticker-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  animation: ticker-scroll 55s linear infinite;
  width: max-content;
  padding: 0.45rem 0;
}
.bid-ticker-wrap:hover .bid-ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.live-ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--irpa-muted);
  text-decoration: none;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  transition: border-color 0.2s, background 0.2s;
}
a.live-ticker-chip:hover {
  border-color: rgba(212, 166, 58, 0.45);
  background: rgba(212, 166, 58, 0.08);
  color: #fff;
}
.live-ticker-chip--muted { border-color: transparent; background: transparent; }
.live-ticker-chip-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.live-ticker-chip--bid .live-ticker-chip-tag { background: rgba(239,68,68,.15); color: #fca5a5; }
.live-ticker-chip--hot .live-ticker-chip-tag { background: rgba(212,166,58,.15); color: #fcd34d; }
.live-ticker-chip--news .live-ticker-chip-tag { background: rgba(56,189,248,.15); color: #7dd3fc; }
.live-ticker-chip--race .live-ticker-chip-tag { background: rgba(34,197,94,.15); color: #86efac; }
.live-ticker-chip strong { color: var(--irpa-gold-soft); font-weight: 600; }
.live-ticker-chip .price { color: #86efac; font-weight: 700; font-variant-numeric: tabular-nums; }
.bid-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--irpa-muted);
}
.bid-ticker-item strong { color: var(--irpa-gold-soft); }
.bid-ticker-item .price { color: #86efac; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Hot auctions strip (homepage) — single compact row */
.hot-auctions-bar {
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  background: linear-gradient(90deg, rgba(239,68,68,.06), rgba(212,166,58,.05), rgba(239,68,68,.06));
}
.hot-auctions-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2rem;
  padding: 0.3rem 0;
}
.hot-auctions-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--irpa-gold-soft, #fcd34d);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.hot-auctions-track {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hot-auctions-track::-webkit-scrollbar { display: none; }
.hot-auction-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(0,0,0,.35);
  color: #e5e7eb;
  font-size: 0.7rem;
  line-height: 1.2;
  transition: border-color 0.2s, background 0.2s;
}
.hot-auction-chip:hover {
  border-color: rgba(212, 166, 58, 0.55);
  background: rgba(212, 166, 58, 0.08);
  color: #fff;
}
.hot-auction-live {
  font-size: 0.55rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.05em;
}
.hot-auction-title { font-weight: 600; color: #fff; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-auction-price { color: #86efac; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.68rem; }
.hot-auction-bids { color: var(--irpa-muted); font-size: 0.65rem; white-space: nowrap; }

/* Notification bell (header) */
.irpa-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}
.irpa-notif-btn:hover { border-color: rgba(212,166,58,.45); }
.irpa-notif-badge {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.irpa-notif-badge.hidden { display: none; }
.irpa-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(320px, calc(100vw - 2rem));
  max-height: 380px;
  background: #0c0c0c;
  border: 1px solid rgba(212,166,58,.25);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.65);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.irpa-notif-panel.hidden { display: none; }
.irpa-notif-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.irpa-notif-list { overflow-y: auto; flex: 1; }
.irpa-notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
}
.irpa-notif-item:hover { background: rgba(212,166,58,.06); }
.irpa-notif-item.is-unread { border-inline-start: 3px solid var(--irpa-gold, #D4A63A); }
.irpa-notif-item-title { font-weight: 600; color: #fff; font-size: 0.85rem; }
.irpa-notif-item-body { font-size: 0.75rem; color: var(--irpa-muted); margin-top: 0.2rem; }
.irpa-notif-item-time { font-size: 0.65rem; color: #6b7280; margin-top: 0.35rem; }
.irpa-notif-footer {
  display: block;
  text-align: center;
  padding: 0.65rem;
  font-size: 0.75rem;
  color: var(--irpa-gold-soft);
  border-top: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
}
.irpa-notif-footer:hover { background: rgba(212,166,58,.08); }

/* Site-wide Bawariq Bilady announcement bar */
.irpa-announce-bar {
  background: linear-gradient(90deg, rgba(212,166,58,.18), rgba(139,105,20,.12));
  border-bottom: 1px solid rgba(212,166,58,.35);
  position: sticky;
  top: 0;
  z-index: 45;
}
.irpa-announce-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  position: relative;
}
.irpa-announce-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #d4a63a;
  border: 1px solid rgba(212,166,58,.45);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
}
.irpa-announce-text { color: var(--theme-text, #e5e7eb); flex: 1; min-width: 10rem; }
.irpa-announce-link { color: #fbbf24; font-size: 0.75rem; white-space: nowrap; }
.irpa-announce-close {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.irpa-announce-close:hover { color: #fff; }

/* Bawariq Bilady Help floating button */
.irpa-help-fab {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem;
  z-index: 280;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(212,166,58,.5);
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
  font-size: 1.35rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.irpa-help-fab:hover { transform: scale(1.06); box-shadow: 0 10px 32px rgba(212,166,58,.25); }
.irpa-help-panel {
  position: fixed;
  bottom: 5rem;
  inset-inline-start: 1.25rem;
  z-index: 281;
  width: min(22rem, calc(100vw - 2rem));
  background: #111;
  border: 1px solid rgba(212,166,58,.35);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 16px 48px rgba(0,0,0,.65);
}
.irpa-help-panel.hidden { display: none; }
.irpa-help-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.irpa-help-close { background: none; border: none; color: #9ca3af; font-size: 1.25rem; cursor: pointer; line-height: 1; }

/* Admin site alert toast */
.irpa-site-alert {
  position: fixed;
  bottom: 1rem;
  inset-inline: 1rem;
  z-index: 300;
  max-width: 400px;
  margin-inline-start: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
}
.irpa-site-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.irpa-site-alert-inner {
  background: #111;
  border: 1px solid rgba(212,166,58,.4);
  border-radius: 14px;
  padding: 1rem 2.5rem 1rem 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  position: relative;
}
.irpa-site-alert-close {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Mobile sticky bid bar */
.mobile-bid-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  background: rgba(5,5,5,.92);
  border-top: 1px solid rgba(212,166,58,.25);
  backdrop-filter: blur(12px);
}
.mobile-bid-bar-price { flex: 1; min-width: 0; }
.mobile-bid-bar-btn { flex-shrink: 0; white-space: nowrap; font-size: 0.8rem; padding: 0.5rem 0.75rem; }
.mobile-bid-bar-btn-outline { flex-shrink: 0; font-size: 0.75rem; padding: 0.5rem 0.6rem; }
body:has(.mobile-bid-bar) main { padding-bottom: 4.5rem; }

.badge-status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-status-new { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.35); }
.badge-status-promo { background: rgba(212,166,58,.2); color: var(--irpa-gold-soft); border: 1px solid var(--irpa-border); }
.badge-status-reserved { background: rgba(148,163,184,.15); color: #cbd5e1; border: 1px solid rgba(148,163,184,.3); }
.badge-status-upcoming { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }

.tab-auction {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--irpa-muted);
  cursor: pointer;
  font-weight: 600;
  transition: all .2s;
}
.tab-auction.active {
  border-color: rgba(212,166,58,.45);
  background: rgba(212,166,58,.12);
  color: var(--irpa-gold-soft);
}

.increments-table { width: 100%; font-size: 0.8rem; border-collapse: collapse; }
.increments-table th, .increments-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: right;
}
.increments-table tr.current-tier { background: rgba(212,166,58,.1); color: var(--irpa-gold-soft); }

/* Auth register */
.auth-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 1.5rem; }
.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--irpa-muted);
  cursor: pointer;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tab.active { color: var(--irpa-gold-soft); border-bottom-color: var(--irpa-gold); }
.auth-step-bar { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.auth-step-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
}
.auth-step-dot.done { background: var(--irpa-gold); }
.auth-step-dot.active { background: linear-gradient(90deg, var(--irpa-gold), var(--irpa-gold-soft)); }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-solid);
  color: var(--theme-text);
  cursor: pointer;
  font-weight: 600;
  transition: border-color .2s, transform .2s;
}
.social-btn:hover { border-color: rgba(212,166,58,.45); transform: translateY(-1px); }
.social-btn.wa { border-color: rgba(34,197,94,.35); }
.social-btn.google { border-color: rgba(59,130,246,.35); }
.social-btn.fb { border-color: rgba(59,130,246,.5); }
.social-btn.ig { border-color: rgba(236,72,153,.35); }
.pwd-strength-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin-top: 0.35rem; overflow: hidden; }
.pwd-strength-fill { height: 100%; transition: width .3s; border-radius: 4px; }
.auth-field { width: 100%; margin-top: 0.35rem; margin-bottom: 1rem; background: var(--theme-input-bg); border: 2px solid var(--theme-input-border); border-radius: 12px; padding: 0.85rem 1rem; color: var(--theme-input-text); font-family: var(--theme-font); font-size: var(--theme-font-size); }
.auth-field:focus { outline: none; border-color: var(--theme-input-focus); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.auth-label { font-size: 0.8rem; color: var(--irpa-muted); display: block; }
.auth-label .req { color: #f87171; }
.auth-alert {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}
.auth-alert.text-red-400 { border-color: rgba(248, 113, 113, 0.35); background: rgba(127, 29, 29, 0.15); }
.auth-alert.text-emerald-400 { border-color: rgba(52, 211, 153, 0.35); background: rgba(6, 78, 59, 0.15); }

.reg-section {
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--theme-surface-solid);
}
.reg-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--irpa-gold-soft);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212,166,58,.2);
}
.quick-auth-box {
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.quick-auth-status {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  color: #86efac;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.quick-auth-status.show { display: flex; }

.phone-field { margin-bottom: 0.5rem; }
.phone-field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.phone-dial-select {
  min-width: 9.5rem;
  max-width: 100%;
  flex: 0 1 auto;
  background: var(--theme-input-bg);
  border: 1px solid var(--theme-input-border);
  border-radius: 0.65rem;
  color: var(--theme-input-text);
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
}
.phone-dial-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  border-radius: 0.65rem;
  background: rgba(212, 166, 58, 0.12);
  border: 1px solid rgba(212, 166, 58, 0.35);
  color: var(--irpa-gold-soft);
  font-weight: 700;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}
.phone-field-row .auth-field { flex: 1 1 10rem; min-width: 8rem; margin-bottom: 0; }
.phone-field-hint { font-size: 0.75rem; color: #6b7280; margin-top: 0.35rem; }

/* Mobile header menu */
.irpa-mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(212, 166, 58, 0.35);
  background: rgba(212, 166, 58, 0.08);
  color: var(--irpa-gold-soft);
  flex-shrink: 0;
}
.irpa-mobile-menu-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.irpa-mobile-menu-icon {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.irpa-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.irpa-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(18.5rem, 88vw);
  height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  background: rgba(8, 8, 8, 0.98);
  border-left: 1px solid rgba(212, 166, 58, 0.25);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.irpa-mobile-nav.hidden,
.irpa-mobile-nav-backdrop.hidden {
  display: none !important;
}
body.irpa-mobile-nav-open { overflow: hidden; }
.irpa-mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.irpa-mobile-nav-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}
.irpa-mobile-nav-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem;
  flex: 1;
}
.irpa-mobile-nav-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  color: #e5e7eb;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: right;
  cursor: pointer;
}
.irpa-mobile-nav-link:hover,
.irpa-mobile-nav-link.active {
  background: rgba(212, 166, 58, 0.12);
  color: var(--irpa-gold-soft);
}
.irpa-mobile-nav-sublink {
  display: block;
  padding: 0.55rem 0.85rem 0.55rem 1.25rem;
  font-size: 0.88rem;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 0.5rem;
}
.irpa-mobile-nav-sublink:hover { color: var(--irpa-gold-soft); background: rgba(255,255,255,0.04); }
.irpa-mobile-eco-panel.hidden { display: none; }
.irpa-mobile-nav-foot {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Ecosystem nav dropdown — hidden until opened */
.eco-nav-dropdown { position: relative; }
.eco-nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 11rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(10, 10, 10, 0.97);
  border: 1px solid rgba(212, 166, 58, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  z-index: 80;
}
.eco-nav-dropdown.is-open .eco-nav-panel { display: block; }
.eco-nav-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.eco-nav-trigger .eco-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.65em;
  opacity: 0.7;
}
.eco-nav-dropdown.is-open .eco-nav-trigger .eco-chevron {
  transform: rotate(180deg);
}

/* Bawariq Bilady unified inner-page skin */
:root,
[data-theme="dark"],
[data-theme="light"] {
  color-scheme: light;
  --bb-navy: #062b58;
  --bb-navy-2: #001f47;
  --bb-blue: #088bd8;
  --bb-blue-2: #0f65b5;
  --bb-sky: #eaf6ff;
  --bb-ink: #092b5c;
  --bb-muted: #66758a;
  --bb-border: #dfe9f4;
  --bb-soft: #f5faff;

  --irpa-black: #ffffff;
  --irpa-dark: #f5faff;
  --irpa-panel: #ffffff;
  --irpa-gold: var(--bb-blue);
  --irpa-gold-soft: var(--bb-blue-2);
  --irpa-white: #ffffff;
  --irpa-muted: var(--bb-muted);
  --irpa-border: var(--bb-border);
  --irpa-glass-blur: none;

  --theme-font: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --theme-font-size: 1rem;
  --theme-line-height: 1.6;
  --theme-text: var(--bb-ink);
  --theme-text-muted: var(--bb-muted);
  --theme-heading: var(--bb-navy);
  --theme-body-bg:
    radial-gradient(circle at 88% 6%, rgba(8, 139, 216, 0.14), transparent 28rem),
    linear-gradient(180deg, #f3faff 0%, #ffffff 42%, #f8fbff 100%);
  --theme-surface: #ffffff;
  --theme-surface-solid: #ffffff;
  --theme-border: var(--bb-border);
  --theme-shadow: 0 12px 32px rgba(5, 42, 86, 0.10);
  --theme-accent: var(--bb-blue);
  --theme-accent-soft: var(--bb-blue-2);
  --theme-accent-hover: #10a5ed;
  --theme-header-bg: #ffffff;
  --theme-header-border: var(--bb-border);
  --theme-footer-bg: linear-gradient(90deg, #00366d, #052a58 55%, #003b78);
  --theme-footer-border: rgba(255, 255, 255, 0.14);
  --theme-btn-bg: #ffffff;
  --theme-btn-border: #bfd7ec;
  --theme-btn-text: var(--bb-blue-2);
  --theme-btn-solid-bg: linear-gradient(180deg, #12a5ed, #0876c3);
  --theme-btn-solid-text: #ffffff;
  --theme-btn-shadow: 0 10px 22px rgba(8, 118, 195, 0.22);
  --theme-btn-padding-y: 0.62rem;
  --theme-btn-padding-x: 1rem;
  --theme-btn-font-size: 0.92rem;
  --theme-input-bg: #ffffff;
  --theme-input-border: #ccddeb;
  --theme-input-text: var(--bb-ink);
  --theme-input-focus: var(--bb-blue);
  --theme-nav-active: #ffffff;
  --theme-card-bg: #ffffff;
  --theme-card-border: var(--bb-border);
  --theme-switcher-bg: #ffffff;
  --theme-switcher-border: #c7dceb;
  --theme-switcher-panel: #ffffff;
}

body {
  background: var(--theme-body-bg) !important;
  color: var(--theme-text) !important;
}

main {
  color: var(--theme-text);
}

.bb-inner-header.irpa-site-header {
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 2px 14px rgba(1, 35, 74, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bb-inner-top {
  min-height: 82px;
  padding: 0 18px !important;
  display: grid;
  grid-template-columns: 270px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 22px;
  direction: ltr;
}

.bb-inner-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.bb-inner-brand {
  display: inline-flex;
  align-items: center;
  height: 76px;
  max-width: 220px;
  overflow: hidden;
}

.bb-inner-brand img {
  width: auto;
  height: 70px;
  object-fit: contain;
}

.bb-inner-search {
  justify-self: center;
  width: min(470px, 100%);
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #d9e3ef;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 5px rgba(0, 34, 72, 0.04);
  overflow: hidden;
  direction: rtl;
}

.bb-inner-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 24px 0 58px;
  color: #24435f;
  background: transparent;
  text-align: right;
}

.bb-inner-search button {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #10a5ed, #006fba);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bb-inner-actions {
  color: var(--bb-navy);
  white-space: nowrap;
  direction: rtl;
}

.bb-inner-whatsapp {
  display: inline-flex;
  align-items: center;
  color: var(--bb-navy);
  font-size: 13px;
  font-weight: 900;
}

.bb-inner-whatsapp::before {
  content: "☏";
  margin-inline-end: 0.45rem;
  color: var(--bb-blue-2);
  font-size: 22px;
}

.bb-inner-nav {
  height: 43px;
  background: linear-gradient(90deg, #002957 0%, #06376f 44%, #002957 100%);
}

.bb-inner-nav-scroll {
  height: 100%;
  padding: 0 18px !important;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
}

.bb-inner-nav .nav-link,
.bb-inner-nav .eco-nav-trigger {
  height: 100%;
  padding: 0 16px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border-radius: 0 !important;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.bb-inner-nav .nav-link:hover,
.bb-inner-nav .nav-link.active,
.bb-inner-nav .eco-nav-trigger:hover {
  background: linear-gradient(180deg, #15a8ed, #0876c3);
}

.irpa-theme-btn,
.irpa-lang-btn,
.irpa-currency-btn,
.btn-irpa {
  border-radius: 999px;
  border-color: var(--theme-btn-border);
  background: #fff;
  color: var(--bb-blue-2);
  box-shadow: none;
}

.btn-irpa:hover,
.irpa-theme-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--theme-btn-shadow);
}

.btn-irpa-solid {
  color: #fff !important;
  background: var(--theme-btn-solid-bg);
  border-color: transparent;
}

.irpa-glass,
.quick-auth-box,
.reg-section,
.store-card,
.store-summary,
.store-order-card,
.rank-row,
.auction-hero-gallery,
.bid-panel-premium,
.tv-card-premium {
  background: #fff !important;
  border: 1px solid var(--bb-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--theme-shadow) !important;
  color: var(--bb-ink) !important;
}

.premium-section-kicker,
.irpa-gold-text,
.irpa-char-section-title,
.store-card-price,
.store-summary-total,
.cinema-stat-val,
.rank-num {
  color: var(--bb-blue-2) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor;
}

.section-title,
.cinema-title,
h1,
h2,
h3 {
  color: var(--bb-navy);
}

.cinema-hero,
.store-hero {
  min-height: auto;
  padding: 2.25rem 0;
  background:
    radial-gradient(circle at 84% 35%, rgba(8, 139, 216, 0.18), transparent 24rem),
    linear-gradient(90deg, #eef8ff 0%, #ffffff 44%, #dff2ff 100%) !important;
  border-bottom: 1px solid var(--bb-border) !important;
}

.cinema-hero-bg,
.cinema-grid,
.cinema-glow {
  display: none !important;
}

.cinema-sub,
.store-hero-sub,
.store-card-cat,
.store-card-brand,
.store-card-unit,
.auction-stats-bar .lbl,
.cinema-stat-lbl {
  color: var(--bb-muted) !important;
}

.cinema-stat,
.auction-stats-bar {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid var(--bb-border) !important;
}

.store-search,
.store-qty-input,
.phone-dial-select,
input,
select,
textarea,
.auth-field {
  background: #fff !important;
  color: var(--bb-ink) !important;
  border-color: var(--theme-input-border) !important;
}

.store-cat-btn {
  color: var(--bb-blue-2);
  background: #fff;
  border-color: #cfe0ef;
}

.store-cat-btn:hover,
.store-cat-btn.is-active {
  color: #fff;
  background: linear-gradient(180deg, #15a8ed, #0876c3);
  border-color: transparent;
}

.store-card-media,
.auction-main-frame,
.auction-main-img,
.store-product-gallery,
.store-cart-thumb {
  background-color: var(--bb-soft) !important;
}

.store-cart-float {
  background: var(--theme-btn-solid-bg) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(8, 118, 195, 0.28);
}

.store-cart-count {
  background: #fff;
  color: var(--bb-navy);
}

.irpa-site-footer {
  background: var(--theme-footer-bg) !important;
  color: rgba(255,255,255,.78) !important;
}

.irpa-site-footer .irpa-footer-title,
.irpa-site-footer .irpa-footer-section-title,
.irpa-site-footer .nav-link {
  color: #fff !important;
}

.irpa-mobile-menu-btn {
  border-color: #cfe0ef;
  background: #fff;
  color: var(--bb-blue-2);
}

.irpa-mobile-nav {
  background: #fff;
  border-left: 1px solid var(--bb-border);
  box-shadow: -8px 0 32px rgba(5, 42, 86, 0.16);
}

.irpa-mobile-nav-head,
.irpa-mobile-nav-foot {
  border-color: var(--bb-border);
}

.irpa-mobile-nav-link,
.irpa-mobile-nav-sublink {
  color: var(--bb-ink);
}

.irpa-mobile-nav-link:hover,
.irpa-mobile-nav-link.active,
.irpa-mobile-nav-sublink:hover {
  color: var(--bb-blue-2);
  background: var(--bb-soft);
}

.eco-nav-panel,
.irpa-theme-panel,
.irpa-lang-panel,
.irpa-currency-panel {
  background: #fff !important;
  border: 1px solid var(--bb-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--theme-shadow) !important;
}

.text-white,
.text-gray-100,
.text-gray-200,
.text-gray-300 {
  color: var(--bb-ink) !important;
}

.bg-black,
.bg-gray-900,
.bg-zinc-900,
.bg-neutral-900 {
  background-color: #fff !important;
}

@media (max-width: 1180px) {
  .bb-inner-top {
    grid-template-columns: 210px 1fr;
    min-height: auto;
    padding-block: 10px !important;
  }
  .bb-inner-actions {
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .bb-inner-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bb-inner-brand-wrap,
  .bb-inner-search {
    justify-self: center;
  }
  .bb-inner-brand {
    height: 64px;
  }
  .bb-inner-brand img {
    height: 58px;
  }
  .bb-inner-whatsapp {
    display: none;
  }
  .bb-inner-nav {
    display: none;
  }
}
