@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 */
.bid-ticker-wrap {
  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));
}
.bid-ticker-track {
  display: flex;
  gap: 2.5rem;
  animation: ticker-scroll 45s linear infinite;
  width: max-content;
  padding: 0.85rem 0;
}
.bid-ticker-wrap:hover .bid-ticker-track {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.bid-ticker-item {
  display: 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) */
.hot-auctions-bar {
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  background: linear-gradient(90deg, rgba(239,68,68,.08), rgba(212,166,58,.06), rgba(239,68,68,.08));
}
.hot-auctions-flame { font-size: 1.1rem; animation: hot-pulse 1.2s ease-in-out infinite; }
@keyframes hot-pulse { 50% { transform: scale(1.15); opacity: 0.85; } }
.hot-auctions-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hot-auctions-track::-webkit-scrollbar { height: 4px; }
.hot-auctions-track::-webkit-scrollbar-thumb { background: rgba(212,166,58,.35); border-radius: 4px; }
.hot-auction-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(0,0,0,.45);
  color: #e5e7eb;
  font-size: 0.8rem;
  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.6rem;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.06em;
}
.hot-auction-title { font-weight: 600; color: #fff; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-auction-price { color: #86efac; font-weight: 700; font-variant-numeric: tabular-nums; }
.hot-auction-bids { color: var(--irpa-muted); font-size: 0.72rem; }

/* 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); }

/* 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; }

.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);
}
