/* BuySellSim premium visual layer */
/* Mobile login: place the brand above the form and let the card fit its content. */
@media (max-width: 780px) {
 body:has(#authView:not(.hidden)) {
   min-height: 100dvh;
   background: #f5f8ff;
 }
 #authView.auth-page {
   box-sizing: border-box;
   min-height: 100dvh;
   height: auto;
   padding: 8px 12px;
   gap: 0;
 }
 #authView .auth-brand {
   display: flex !important;
   position: static !important;
   align-self: center;
   margin: 0 auto 10px !important;
   line-height: 0;
 }
 #authView .auth-brand .brand-logo {
   display: block;
   width: 132px;
   height: 40px;
   padding: 2px 7px;
   object-fit: contain !important;
 }
:root {
  --bss-blue: #155eef;
  --bss-blue-dark: #1049bd;
  --bss-orange: #f28a2e;
  --bss-cyan: #35baf6;
  --bss-ink: #172334;
  --bss-muted: #667085;
  --bss-line: #e1e8f2;
  --bss-bg: #f6f9ff;
  --bss-card: #ffffff;
  --bss-radius: 16px;
  --bss-shadow-sm: 0 8px 22px rgba(21, 94, 239, .08);
  --bss-shadow-md: 0 18px 44px rgba(16, 73, 189, .13);
  --bss-shadow-orange: 0 12px 28px rgba(242, 138, 46, .22);
}

body { background: var(--bss-bg); color: var(--bss-ink); font-size: 15px; }
button, input, select { transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.site-header { box-shadow: 0 4px 18px rgba(16, 73, 189, .06); border-bottom: 0; }
.utility { background: linear-gradient(90deg, #102d70, #155eef); }
.market-strip { background: linear-gradient(90deg, #eef6ff, #fff8ef); border-bottom: 1px solid #dce9f8; }
.strip-grid > div { border-left-color: #dbe7f5; }
.main-nav a:hover, .main-nav .active { color: var(--bss-blue); border-bottom-color: var(--bss-orange); }
.sell-button, .search-row button { border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--bss-blue), #287df4); box-shadow: var(--bss-shadow-sm); }
.sell-button:hover, .search-row button:hover { background: linear-gradient(135deg, var(--bss-blue-dark), var(--bss-blue)); transform: translateY(-2px); box-shadow: var(--bss-shadow-md); }
.filters, .listing-section, .auction-card, .store, .seller-cta { border: 1px solid var(--bss-line); border-radius: var(--bss-radius); box-shadow: var(--bss-shadow-sm); }
.filters { overflow: hidden; }
.filter-title { background: linear-gradient(135deg, #f4f8ff, #fff); }
.filter-choice, .chips button, .radio-line { border-radius: 9px; }
.filter-choice { padding: 7px 8px; }
.filter-choice:hover { background: #eef5ff; color: var(--bss-blue); }
.chips button { padding: 6px 10px; border-color: #d6e2f2; }
.chips button:hover, .chips button.active { background: #eaf2ff; border-color: #8eb5fa; color: var(--bss-blue); }
.listing-section { background: rgba(255,255,255,.92); }
.search-panel { border: 0; border-radius: 14px; background: linear-gradient(135deg, #edf5ff, #fff8ef); box-shadow: inset 0 0 0 1px #e1ebf8; }
.search-row { border: 1px solid #cbdaf0; border-radius: 12px; box-shadow: 0 5px 14px rgba(21,94,239,.05); }
.search-row:focus-within { border-color: var(--bss-blue); box-shadow: 0 0 0 4px rgba(21,94,239,.12), var(--bss-shadow-sm); }
.listing-table-head { border: 0; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, #edf4ff, #fff6eb); color: #53657f; }
.number-card { border-color: #e4ebf4; background: #fff; }
@media (min-width: 901px) {
  .number-card { border-radius: 0; }
  .number-card:last-child { border-radius: 0 0 12px 12px; }
  .number-card:hover { border-color: #a9c5f8; background: #fbfdff; transform: translateY(-3px); box-shadow: var(--bss-shadow-md); z-index: 1; }
}
.operator-logo { box-shadow: 0 6px 14px rgba(21,94,239,.16); }
.operator-tag, .number-tags span, .status, .verified { border-radius: 999px; }
.number-tags span { padding: 4px 9px; background: #f0f5fb; }
.number-tags .special { background: #fff1e3; color: #bd5f13; }
.favorite, .details-button, .empty-state button, .bid-row button { border-radius: 9px; }
.favorite:hover, .details-button:hover, .bid-row button:hover, .empty-state button:hover { background: #edf4ff; border-color: #8eb5fa; color: var(--bss-blue); transform: translateY(-2px); }
.auction-card, .store { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.auction-card:hover, .store:hover { transform: translateY(-5px); border-color: #a9c5f8; box-shadow: var(--bss-shadow-md); }
.store-logo { border-radius: 12px; box-shadow: var(--bss-shadow-sm); }
.seller-cta { border: 0; background: linear-gradient(120deg, #102d70, #155eef 64%, #f28a2e); box-shadow: var(--bss-shadow-md); }
.seller-cta a { border-radius: 10px; box-shadow: var(--bss-shadow-orange); transition: transform .2s ease, box-shadow .2s ease; }
.seller-cta a:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(255,255,255,.2); }
.toast { border-radius: 12px; box-shadow: var(--bss-shadow-md); }

/* Dashboard and authentication */
.auth-page { background: radial-gradient(circle at 12% 12%, #e5f1ff 0, transparent 38%), radial-gradient(circle at 88% 90%, #fff0df 0, transparent 34%), #f7faff; }
.auth-card { border: 1px solid #e1e9f5; border-top: 5px solid var(--bss-orange); border-radius: 22px; box-shadow: var(--bss-shadow-md); }
.auth-card input, .auth-card select, .dash-main input, .dash-main select { border: 1px solid #d5e1ef; border-radius: 11px; background: #fff; }
.auth-card input:focus, .auth-card select:focus, .dash-main input:focus, .dash-main select:focus { border-color: var(--bss-blue); box-shadow: 0 0 0 4px rgba(21,94,239,.12); outline: 0; }
.primary-button { border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--bss-blue), #287df4); box-shadow: var(--bss-shadow-sm); }
.primary-button:hover { background: linear-gradient(135deg, var(--bss-blue-dark), var(--bss-blue)); transform: translateY(-2px); box-shadow: var(--bss-shadow-md); }
.side-nav { box-shadow: 8px 0 28px rgba(16,73,189,.08); }
.nav-links button, .logout { border-radius: 11px; transition: transform .2s ease, background .2s ease, color .2s ease; }
.nav-links button:hover, .logout:hover { transform: translateX(-3px); background: #edf4ff; color: var(--bss-blue); }
.nav-links button.active { background: linear-gradient(135deg, var(--bss-blue), #287df4); border-radius: 11px; box-shadow: var(--bss-shadow-sm); }
.panel, .stat-card, .action-card { border: 1px solid var(--bss-line); border-radius: 17px; box-shadow: var(--bss-shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.panel:hover, .stat-card:hover, .action-card:hover { transform: translateY(-3px); border-color: #b8cdf2; box-shadow: var(--bss-shadow-md); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #fff8ee, #fff); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #effcff, #fff); }
.stat-card:nth-child(4) { background: linear-gradient(135deg, #f2efff, #fff); }
.status { padding: 4px 10px; }
.date-label, .wallet-amount { border-radius: 10px; }
.order-row { border-radius: 12px; transition: background .2s ease, transform .2s ease; }
.order-row:hover { background: #f4f8ff; transform: translateX(-3px); }
.empty { border-radius: 14px; background: linear-gradient(135deg, #f5f9ff, #fff); }

@media (max-width: 660px) {
  .number-card { border-radius: 13px; margin-bottom: 10px; box-shadow: 0 5px 16px rgba(21,94,239,.06); }
  .number-card:hover { transform: translateY(-2px); }
  .listing-table-head { border-radius: 12px; }
  .market-heading h1 { font-size: 23px; }
}

/* Mobile navigation and responsive refinements */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe7f3;
  border-radius: 11px;
  background: #fff;
  color: #0b63b6;
  cursor: pointer;
}

.mobile-menu-toggle svg { width: 21px; height: 21px; }
.mobile-menu-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(13, 31, 50, .42); backdrop-filter: blur(3px); }
.mobile-menu-backdrop[hidden], .mobile-menu[hidden] { display: none !important; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  width: min(88vw, 360px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  box-shadow: -18px 0 40px rgba(23, 35, 52, .2);
  transform: translateX(105%);
  transition: transform .25s ease;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-open { overflow: hidden; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid #e9eef5; }
.mobile-menu-title { direction: ltr; color: #0b59a5; font-size: 20px; font-weight: 800; }
.mobile-menu-close { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: #f3f7fb; color: #526579; cursor: pointer; }
.mobile-menu-close svg { width: 20px; height: 20px; }
.mobile-menu-links { display: grid; gap: 8px; margin-top: 22px; }
.mobile-menu-links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; color: #344054; text-decoration: none; font-weight: 700; }
.mobile-menu-links a.active, .mobile-menu-links a:hover { color: #0b63b6; background: #eef7ff; }
.mobile-menu-links svg { width: 19px; height: 19px; }
.mobile-menu-actions { display: grid; gap: 10px; margin-top: auto; }
.mobile-login, .mobile-sell { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.mobile-login { color: #0b63b6; background: #eef7ff; }
.mobile-sell { color: #fff; background: #f28c18; }

@media (max-width: 760px) {
  .mobile-menu-toggle { display: inline-flex; }
  .main-nav { display: none !important; }
  .header-actions .sell-button { display: none !important; }
  .header-inner { gap: 10px !important; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .login-link { width: 40px; min-width: 40px; padding: 0 !important; justify-content: center; font-size: 0; }
  .header-actions .login-link svg { margin: 0; }
  .utility-links { display: none !important; }
  .utility-inner { justify-content: center; text-align: center; font-size: 11px; }
  .market-heading { display: grid !important; grid-template-columns: 1fr !important; gap: 18px; align-items: start; }
  .auction-pill { width: 100%; min-width: 0; box-sizing: border-box; }
  .market-layout { grid-template-columns: 1fr !important; }
  .filters { position: static !important; width: auto !important; }
  .filter-group { display: block !important; }
  .operator-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-row { height: auto; min-height: 48px; padding: 7px 9px; }
  .search-row input { font-size: 13px; }
  .search-row button { flex: 0 0 auto; padding-inline: 12px; }
  .listing-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .listing-toolbar > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .number-card h3 { font-size: 18px !important; letter-spacing: .5px; }
  .trade-process { grid-template-columns: 1fr !important; gap: 20px; }
  .trade-process ol { grid-template-columns: 1fr !important; }
  .auction-grid, .store-grid { grid-template-columns: 1fr !important; }
  .seller-cta { display: block; }
  .seller-cta a { display: inline-flex; }
  .footer-main { display: block; }
}

/* Final visual system: editorial marketplace, accessible contrast, touch-first layout */
:root {
  --ink:#10233d; --muted:#71839a; --line:#e2eaf3; --canvas:#f5f8fc;
  --blue:#155eef; --blue-dark:#0d3fa9; --blue-pale:#edf3ff; --cyan:#0f9f9a;
  --orange:#f28a2e; --shadow:0 16px 42px rgba(25,55,94,.09); --radius:22px;
}
body { background:var(--canvas); color:var(--ink); }
.utility { background:#10233d; color:#b8c8dc; border:0; }
.site-header { background:rgba(255,255,255,.94); border-bottom:1px solid var(--line); box-shadow:0 5px 22px rgba(18,48,83,.05); backdrop-filter:blur(16px); }
.header-inner { min-height:76px; gap:26px; }
.brand { color:var(--ink); gap:11px; }
.brand strong { font-size:1.16rem; letter-spacing:-.03em; }
.brand small { color:var(--muted); }
.brand-logo { box-shadow:0 8px 18px rgba(21,94,239,.16); }
.main-nav a { color:#536983; font-weight:700; border-radius:12px; padding:10px 12px; }
.main-nav a:hover,.main-nav a.active { color:var(--blue); background:var(--blue-pale); }
.header-actions .login-link { color:var(--blue); font-weight:800; }
.sell-button,.primary-button,.details-button { background:linear-gradient(135deg,var(--blue),#3479f5); border:0; box-shadow:0 9px 20px rgba(21,94,239,.2); }
.sell-button:hover,.primary-button:hover,.details-button:hover { background:var(--blue-dark); transform:translateY(-1px); }
.market-strip { background:#fff; border-bottom:1px solid var(--line); }
.strip-card { border:1px solid var(--line); background:#fff; box-shadow:none; border-radius:16px; }
.strip-card strong { color:var(--ink); }
.market-heading { margin-top:26px; border-radius:28px; padding:clamp(26px,5vw,58px); background:radial-gradient(circle at 12% 20%,rgba(255,255,255,.2),transparent 35%),linear-gradient(120deg,#0e387d 0%,#155eef 55%,#0f9f9a 130%); box-shadow:0 22px 45px rgba(21,94,239,.18); }
.market-heading h1 { max-width:720px; font-size:clamp(2rem,4.8vw,4rem); line-height:1.15; letter-spacing:-.055em; }
.market-heading p { max-width:650px; color:#d9e7ff; font-size:1rem; }
.auction-pill { background:#fff; color:var(--blue); box-shadow:0 10px 24px rgba(0,0,0,.12); }
.market-layout { align-items:start; gap:24px; }
.filters,.listing-section,.auction-card,.store-card,.process-card,.seller-cta { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.filters { position:sticky; top:18px; padding:22px; }
.filter-title { color:var(--ink); font-size:1.08rem; }
.search-panel { background:#f6f9fd; border:1px solid var(--line); border-radius:16px; }
.search-row input,.price-inputs input { background:#fff; border:1px solid #d8e2ee; border-radius:12px; min-height:44px; }
.search-row input:focus,.price-inputs input:focus { outline:3px solid rgba(21,94,239,.12); border-color:var(--blue); }
.filter-group { border-top:1px solid var(--line); }
.choice-list label,.chips button { border-radius:11px; color:#536983; }
.chips button.active,.chips button:hover { background:var(--blue-pale); color:var(--blue); border-color:#b9d0ff; }
.listing-section { padding:22px; }
.listing-toolbar { border-bottom:1px solid var(--line); padding-bottom:16px; }
.listing-table-head { color:#8393a6; font-size:.8rem; font-weight:800; }
.number-card { border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 7px 20px rgba(24,52,86,.06); transition:.2s ease; }
.number-card:hover { border-color:#a9c4f7; box-shadow:0 16px 32px rgba(21,94,239,.12); transform:translateY(-2px); }
.number-card-head { background:#f8fbff; border-bottom:1px solid #edf2f7; }
.number-card .phone-number { color:var(--ink); font-size:1.2rem; letter-spacing:.02em; }
.operator-tag { background:#e9f8f5; color:#087e76; }
.number-card-foot { border-top:1px solid #edf2f7; }
.number-card-foot b { color:var(--blue); }
.favorite { border:1px solid var(--line); background:#fff; color:#8a9ab0; }
.favorite:hover,.favorite.saved { color:#e4556b; background:#fff1f3; border-color:#ffc5ce; }
.trade-process,.auction-section,.stores-section { padding-block:30px; }
.process-card { padding:22px; }
.process-card strong { color:var(--ink); }
.auction-card,.store-card { transition:.2s ease; }
.auction-card:hover,.store-card:hover { transform:translateY(-3px); box-shadow:0 20px 40px rgba(25,55,94,.13); }
.seller-cta { background:linear-gradient(120deg,#102f6e,#155eef); color:#fff; }
.seller-cta p { color:#d5e3ff; }
.mobile-bottom-nav { border:1px solid var(--line); background:rgba(255,255,255,.94); box-shadow:0 12px 36px rgba(16,35,61,.18); backdrop-filter:blur(18px); }
.mobile-bottom-nav a.active { color:var(--blue); background:var(--blue-pale); }

/* Auth and dashboards share the same product language. */
.auth-page { background:radial-gradient(circle at 10% 5%,#dfeaff,transparent 30%),var(--canvas); }
.auth-layout { max-width:1180px; gap:28px; }
.auth-aside { border-radius:28px; background:linear-gradient(145deg,#102f6e,#155eef 62%,#0f9f9a); box-shadow:var(--shadow); }
.auth-card { border:1px solid var(--line); border-radius:28px; box-shadow:var(--shadow); }
.auth-card h1 { color:var(--ink); letter-spacing:-.04em; }
.auth-card input,.auth-card select { border:1px solid #d8e2ee; border-radius:12px; min-height:48px; }
.auth-card input:focus { border-color:var(--blue); box-shadow:0 0 0 4px rgba(21,94,239,.1); }
.auth-submit { background:linear-gradient(135deg,var(--blue),#3479f5); border:0; border-radius:13px; min-height:50px; box-shadow:0 10px 22px rgba(21,94,239,.2); }
.app-shell { background:var(--canvas); }
.side-nav { background:linear-gradient(180deg,#10233d,#0b1828); }
.side-nav .nav-links button.active { background:rgba(67,133,255,.2); box-shadow:inset -3px 0 var(--blue); }
.dash-top,.panel,.stat-card { border:1px solid var(--line); box-shadow:0 10px 30px rgba(25,55,94,.06); }
.dash-top,.panel { border-radius:22px; }
.stat-card { border-radius:18px; background:#fff; }
.role-hero { background:linear-gradient(120deg,#102f6e,#155eef 65%,#0f9f9a); }
@media (max-width:900px) {
  .header-inner { min-height:68px; }
  .main-nav,.header-actions .login-link,.header-actions .register-link { display:none !important; }
  .market-layout { grid-template-columns:1fr; }
  .filters { position:static; }
  .listing-section { padding:16px; }
  .listing-table-head { display:none; }
}
@media (max-width:660px) {
  .container { width:min(100% - 24px,1180px); }
  .utility { font-size:.72rem; }
  .market-heading { margin-top:14px; border-radius:22px; padding:24px 20px; }
  .market-heading h1 { font-size:2rem; }
  .strip-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
  .strip-card { padding:12px; }
  .filters { padding:16px; border-radius:18px; }
  .number-card { padding:0; }
  .number-card-head,.number-card-foot { padding:14px; }
  .number-card-foot { align-items:center; }
  .details-button { min-height:42px; padding-inline:13px; }
  .trade-process,.auction-section,.stores-section { padding-block:20px; }
  .auth-layout { width:min(100% - 24px,560px); }
  .auth-aside { display:none; }
  .auth-card { border-radius:20px; padding:22px 18px; }
  .mobile-bottom-nav { right:10px; left:10px; bottom:10px; border-radius:18px; }
  .site-footer { padding-bottom:92px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px) !important; }
  .listing-grid { grid-template-columns: 1fr !important; }
  .operator-choices { grid-template-columns: 1fr; }
  .market-heading h1 { font-size: 25px !important; }
  .search-row button { font-size: 11px; padding-inline: 10px; }
  .auction-top, .bid-row { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .auction-card > strong { font-size: 19px; }
}

/* Mobile navigation and separate authentication states */
.mobile-bottom-nav { display: none; }
.auth-form-stack { width: min(480px, 100%); }
.auth-form-panel[hidden] { display: none !important; }
.auth-switch { margin: 18px 0 0 !important; text-align: center; color: #56677a !important; font-size: 14px !important; }
.auth-switch a { color: #125fc4; font-weight: 800; text-decoration: none; }
.auth-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 18px; }
.auth-method { min-height: 44px; border: 1px solid #dbe4ef; border-radius: 10px; background: #f8fafc; color: #526276; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.auth-method.active { border-color: #125fc4; background: #eef5ff; color: #125fc4; box-shadow: 0 0 0 3px rgba(18,95,196,.08); }
.auth-method:disabled { cursor: not-allowed; opacity: .58; }
.auth-method small { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; }
.mobile-menu[hidden], .mobile-menu-backdrop[hidden] { display: none !important; }

@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav {
    position: fixed; z-index: 900; inset-inline: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 64px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5ebf3; background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 24px rgba(20,45,80,.10); backdrop-filter: blur(12px);
  }
  .mobile-bottom-nav a { display: grid; align-content: center; justify-items: center; gap: 3px; min-width: 0; color: #66758a; text-decoration: none; font-size: 11px; font-weight: 700; }
  .mobile-bottom-nav a svg { width: 20px; height: 20px; }
  .mobile-bottom-nav a.is-active { color: #125fc4; }
  .mobile-bottom-nav a:focus-visible, .mobile-menu a:focus-visible, .mobile-menu-toggle:focus-visible { outline: 3px solid rgba(18,95,196,.35); outline-offset: 2px; }
  .auth-page { padding-inline: 14px; }
  .auth-layout { width: 100%; }
  .auth-card-wrap { min-width: 0; }
}

@media (min-width: 761px) {
  .header-actions .register-link, .header-actions .login-link { display: inline-flex !important; visibility: visible; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

/* Number marketplace: card grid and stronger readable type */
.listing-table-head { display: none; }
.listing-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.number-card {
  display: block !important;
  min-width: 0;
  padding: 17px;
  border: 1px solid #d8e4f2;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(21, 94, 239, .08);
}
.number-card-head { display: flex !important; }
.number-card-head .verified { margin-top: 0 !important; }
.number-card h3 {
  margin: 17px 0 6px !important;
  font-size: 24px !important;
  font-weight: 800;
  color: #12233d !important;
}
.number-meta { margin: 0 !important; font-size: 13px !important; color: #45566f !important; font-weight: 600; }
.number-tags { margin: 14px 0 !important; }
.number-tags span { font-size: 12px !important; font-weight: 600; padding: 5px 10px !important; color: #34465f; }
.number-card-foot { padding-top: 13px !important; }
.number-card-foot small { font-size: 12px !important; color: #53647d !important; font-weight: 600; }
.number-card-foot b { font-size: 17px !important; color: #112e63; }
.number-card-foot b em { font-size: 11px !important; color: #53647d; }
.details-button { font-size: 12px !important; font-weight: 800; padding: 0 11px !important; }
.operator-tag { font-size: 11px !important; padding: 4px 9px !important; }
.verified { font-size: 11px !important; color: #52627a !important; font-weight: 600; }
.number-card:hover { transform: translateY(-4px) !important; box-shadow: 0 16px 32px rgba(16, 73, 189, .15) !important; }

@media (max-width: 1100px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .listing-grid { grid-template-columns: 1fr; gap: 12px; }
  .number-card { margin-bottom: 0; }
  .number-card h3 { font-size: 23px !important; }
}

/* Operator artwork and normalized brand presentation */
.brand-logo { object-fit: contain !important; object-position: center !important; background: #fff; border-radius: 10px; }
.header-inner .brand-logo { width: 190px; height: 58px; }
.auth-brand .brand-logo { width: 240px; height: 78px; }
.footer-brand .brand-logo { width: 190px; height: 58px; }
.operator-logo { width: 36px !important; height: 36px !important; min-width: 36px; flex: 0 0 36px; display: block !important; box-sizing: border-box; background-color: #fff !important; background-repeat: no-repeat !important; background-position: center !important; background-size: contain !important; border: 1px solid #e5edf8; border-radius: 10px; box-shadow: 0 6px 14px rgba(21,94,239,.16); font-size: 0 !important; color: transparent !important; }
.operator-logo.mci { background-image: url('assets/operators/mci-user-20261007.svg') !important; }
.operator-logo.irancell { background-image: url('assets/operators/irancell.svg') !important; }
.operator-logo.rightel { background-image: url('assets/operators/rightel.svg') !important; }
.operator-logo.taliya, .operator-logo.other { background-image: url('assets/operators/taliya.svg') !important; }
.operator-logo-mark { display: block; width: 100%; height: 100%; }
.operator-tag { display: inline-flex; align-items: center; gap: 6px; }
.auction-top .operator-tag { background-repeat: no-repeat; background-position: right center; background-size: 22px 22px; padding-right: 30px; }
.auction-top .operator-tag.mci { background-image: url('assets/operators/mci-user-20261007.svg'); }
.auction-top .operator-tag.irancell { background-image: url('assets/operators/irancell.svg'); }
.auction-top .operator-tag.rightel { background-image: url('assets/operators/rightel.svg'); }
.auction-top .operator-tag.taliya { background-image: url('assets/operators/taliya.svg'); }
@media (max-width: 660px) {
  .header-inner .brand-logo { width: 155px; height: 50px; }
  .footer-brand .brand-logo { width: 155px; height: 50px; }
  .auth-brand .brand-logo { width: 210px; height: 68px; }
}

/* Final marketplace polish: spacing, centered numbers, readable actions */
.container { width: min(1240px, calc(100% - 56px)) !important; }
.market-layout { gap: 24px !important; }
.filters, .listing-section, .auction-card, .store {
  border: 1px solid #dbe6f5 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 28px rgba(16, 73, 189, .08) !important;
}
.filters { overflow: hidden; }
.filter-title { padding: 17px 18px !important; background: linear-gradient(100deg, #eef5ff, #fff7eb); }
.filter-group { padding: 15px 18px !important; }
.filter-choice { width: 100%; padding: 8px 10px !important; border-radius: 10px !important; }
.filter-choice:hover { background: #f1f6ff !important; }
.listing-section { padding: 20px !important; }
.search-panel { padding: 16px !important; border-radius: 16px !important; box-shadow: 0 8px 22px rgba(21, 94, 239, .08), inset 0 0 0 1px #e1ebf8 !important; }
.listing-toolbar { padding: 22px 4px 14px !important; }
.listing-grid { gap: 16px !important; }
.number-card { overflow: hidden; }
.number-card-head { align-items: center !important; gap: 8px !important; min-width: 0; }
.operator-cell { display: inline-flex !important; align-items: center; gap: 7px; min-width: 0; }
.operator-tag { max-width: 106px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.number-card h3 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  direction: ltr;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 18px 0 10px !important;
  padding: 10px 6px;
  border: 1px solid #e2ebfb;
  border-radius: 12px;
  background: #f5f8ff;
  font-size: clamp(18px, 1.55vw, 24px) !important;
  letter-spacing: .35px !important;
}
.number-meta { text-align: center !important; }
.number-tags { justify-content: center !important; }
.number-card-foot { align-items: center !important; gap: 10px; }
.number-card-actions { flex: 0 0 auto; min-width: 0; }
.details-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 92px;
  max-width: 120px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 10px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}
.favorite { flex: 0 0 31px; border-radius: 9px !important; }

/* Keep the mobile header usable on narrow screens. */
@media (max-width: 760px) {
  .site-header { position: sticky; top: 0; z-index: 900; }
  .header-inner { min-width: 0; overflow: visible; }
  .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .header-inner .brand-logo {
    width: 132px;
    height: 43px;
    flex: 0 0 132px;
  }
  .header-actions { flex: 0 0 auto; margin-inline-start: 0 !important; }
  .mobile-menu-toggle { position: relative; z-index: 2; flex: 0 0 42px; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .header-inner .brand-logo { width: 116px; height: 38px; flex-basis: 116px; }
  .header-actions .login-link { display: none; }
  .mobile-menu-toggle { width: 40px; height: 40px; flex-basis: 40px; }
}
.number-card-head .verified { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified { display: inline-flex !important; align-items: center; gap: 4px !important; font-size: 10px !important; }
.verified i { width: 14px !important; height: 14px !important; flex: 0 0 14px; color: #1d9bf0 !important; stroke-width: 2.4 !important; }
.op-dot {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px;
  border: 1px solid #e2eaf4 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}
.op-dot.mci { background-image: url('assets/operators/mci-user-20261007.svg') !important; }
.op-dot.irancell { background-image: url('assets/operators/irancell.svg') !important; }
.op-dot.rightel { background-image: url('assets/operators/rightel.svg') !important; }
.op-dot.taliya, .op-dot.other { background-image: url('assets/operators/taliya.svg') !important; }

@media (max-width: 660px) {
  .container { width: calc(100% - 28px) !important; }
  .listing-section { padding: 14px !important; }
  .listing-grid { gap: 10px !important; }
  .number-card { padding: 12px !important; }
  .number-card-foot { display: block !important; }
  .number-card-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
  .details-button { max-width: none; flex: 1 1 auto; }
}

/* Login page: balanced RTL layout with a clear form hierarchy. */
.auth-page {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 104px 24px 32px;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 138, 46, .12), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(21, 94, 239, .12), transparent 32%),
    #f6f9ff;
}

.auth-brand {
  top: 26px !important;
  right: max(24px, calc((100vw - 1240px) / 2)) !important;
  padding: 7px 13px;
  border: 1px solid #e3eaf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 57, 110, .10);
}

.auth-brand .brand-logo {
  width: 190px !important;
  height: 56px !important;
  object-fit: contain !important;
  object-position: center;
  border-radius: 8px;
}

.auth-layout {
  width: min(1240px, 100%);
  min-height: min(720px, calc(100vh - 136px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  direction: ltr;
  overflow: hidden;
  border: 1px solid #e2eaf5;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(29, 64, 123, .14);
}

.auth-aside,
.auth-card-wrap {
  direction: rtl;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px clamp(34px, 7vw, 92px);
  background: linear-gradient(145deg, #1049bd 0%, #155eef 58%, #f28a2e 150%);
}

.auth-aside h1 {
  max-width: 520px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.45;
  letter-spacing: -.4px;
}

.auth-aside > p {
  max-width: 500px;
  color: rgba(255, 255, 255, .86);
  font-size: 15px;
  line-height: 2;
}

.auth-points {
  max-width: 500px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.auth-card-wrap {
  display: grid;
  place-items: center;
  padding: 58px clamp(22px, 6vw, 82px);
  background: #fff;
}

.auth-card {
  width: min(100%, 466px);
  box-sizing: border-box;
  padding: 38px clamp(24px, 4vw, 42px) 34px;
  border: 1px solid #e2eaf5;
  border-top: 5px solid #f28a2e;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 73, 189, .12);
}

.auth-card h2 {
  margin: 0 0 10px;
  color: #14213d;
  font-size: 27px;
  line-height: 1.45;
}

.auth-card > p:first-of-type {
  margin: 0 0 28px;
  color: #68758b;
  font-size: 14px;
  line-height: 1.9;
}

.auth-card label {
  gap: 8px;
  margin: 0 0 18px;
  color: #253653;
  font-size: 13px;
  line-height: 1.6;
}

.auth-card input {
  min-height: 52px;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #d6e0ee;
  border-radius: 12px;
  background: #fbfdff;
  color: #1c2c46;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-card input:focus {
  border-color: #155eef;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .11);
  outline: none;
}

.auth-card .primary-button {
  min-height: 54px;
  margin-top: 7px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(21, 94, 239, .20);
  font-size: 14px;
}

.auth-card .message {
  min-height: 22px;
  margin: 14px 0 0;
  line-height: 1.8;
}

.auth-note {
  margin-top: 24px !important;
  padding-top: 18px;
  border-top: 1px solid #edf1f7;
  color: #7c8798 !important;
  font-size: 12px !important;
  line-height: 1.9 !important;
}

@media (max-width: 880px) {
  .auth-page { padding: 94px 18px 24px; }
  .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .auth-aside { min-height: 330px; padding: 88px 40px 42px; }
  .auth-card-wrap { padding: 38px 24px 46px; }
}

@media (max-width: 520px) {
  .auth-page { padding: 82px 0 0; }
  .auth-brand {
    top: 14px !important;
    right: 16px !important;
    padding: 4px 8px;
    border-radius: 11px;
  }
  .auth-brand .brand-logo { width: 150px !important; height: 44px !important; }
  .auth-layout { width: 100%; border-radius: 0; border-inline: 0; }
  .auth-aside { min-height: 254px; padding: 72px 24px 30px; }
  .auth-aside h1 { margin: 12px 0 8px; font-size: 27px; }
  .auth-aside > p { font-size: 13px; line-height: 1.85; }
  .auth-points { display: none; }
  .auth-card-wrap { padding: 26px 16px 34px; }
  .auth-card { padding: 28px 20px 24px; border-radius: 18px; }
  .auth-card h2 { font-size: 24px; }
}

/* Keep the mobile navigation available throughout the tablet/mobile range. */
@media (max-width: 760px) {
  .mobile-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  .mobile-menu-backdrop:not([hidden]) { display: block !important; }
  .mobile-menu:not([hidden]) { display: flex !important; }
  .main-nav { display: none !important; }
  .mobile-bottom-nav { display: grid !important; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (min-width: 761px) {
  .mobile-bottom-nav, .mobile-menu-toggle, .mobile-menu-backdrop, .mobile-menu { display: none !important; }
  .header-actions .register-link, .header-actions .login-link {
    display: inline-flex !important;
    align-items: center;
    visibility: visible;
    opacity: 1;
  }
  .header-actions .login-link { width: auto; min-width: 0; padding: 9px 12px !important; font-size: 13px !important; }
}

.mobile-menu-links a { min-height: 50px; }
.mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
.mobile-bottom-nav a { font-size: 12px; }
.auth-page { min-height: 100svh; }
.auth-layout, .auth-card-wrap, .auth-card { min-width: 0; }
.auth-card { width: 100%; }
@media (max-width: 520px) {
  .auth-page { padding-inline: 14px; }
  .auth-card-wrap { padding-inline: 14px; }
  .auth-aside { padding-inline: 22px; }
}

/* Reliable responsive header, drawer and authentication layout. */
.header-actions .register-link,
.header-actions .login-link { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }
.site-header, header.site-header, .header { position: relative; z-index: 120; }
.mobile-menu-toggle { position: relative; z-index: 122; touch-action: manipulation; cursor: pointer; }
.mobile-menu-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 1100; background: rgba(13, 27, 48, .48); backdrop-filter: blur(2px); }
.mobile-menu:not([hidden]) {
  position: fixed !important; z-index: 1101 !important; inset-block: 0 !important;
  inset-inline-start: auto !important; inset-inline-end: 0 !important; right: 0 !important; left: auto !important;
  width: min(88vw, 360px) !important; height: 100vh !important; height: 100dvh !important;
  display: flex !important; flex-direction: column !important; overflow-y: auto !important;
  visibility: visible !important; opacity: 1 !important; transform: translateX(0) !important;
  box-sizing: border-box; padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.mobile-menu[hidden], .mobile-menu-backdrop[hidden] { display: none !important; }
.auth-page { box-sizing: border-box; display: flex; align-items: center; justify-content: center; padding: 96px 24px 32px; }
.auth-layout { width: min(1240px, 100%); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-card-wrap { min-width: 0; }
.auth-form-stack { width: min(466px, 100%); min-width: 0; }
.auth-form-panel[hidden] { display: none !important; }
.auth-card { max-width: 100%; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { min-height: 0; }
}
@media (max-width: 760px) {
  .mobile-bottom-nav { display: grid !important; }
  .header-actions .register-link { display: none !important; }
  .header-actions .login-link { display: inline-flex !important; width: 40px; min-width: 40px; font-size: 0 !important; }
  .mobile-menu-toggle { display: inline-flex !important; }
  .main-nav { display: none !important; }
  .auth-page { align-items: flex-start; padding: 82px 14px 28px; }
  .auth-layout { border-radius: 22px; }
  .auth-aside { padding: 68px 26px 28px; }
  .auth-card-wrap { padding: 24px 16px 28px; }
}
@media (max-width: 420px) {
  .auth-page { padding-inline: 10px; }
  .auth-layout { border-radius: 16px; }
  .auth-aside { padding-inline: 20px; }
  .auth-card-wrap { padding-inline: 12px; }
  .auth-card { padding: 24px 16px; }
}

/* Keep account actions unmistakable on desktop and keep the drawer above the mobile dock. */
.header-actions { gap: 10px; }
.header-actions .register-link,
.header-actions .login-link {
  min-height: 42px; padding: 0 15px !important; border-radius: 12px;
  align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  font-size: 14px !important; font-weight: 800; text-decoration: none;
}
.header-actions .register-link { color: #fff; background: #f28b2d; border: 1px solid #e77d20; box-shadow: 0 5px 14px rgba(231, 125, 32, .2); }
.header-actions .login-link { color: #1758b8; background: #fff; border: 1px solid #d6e3f5; }
.header-actions .register-link svg, .header-actions .login-link svg { width: 17px; height: 17px; margin: 0; }
.header-actions .register-link:hover { background: #e77d20; }
.header-actions .login-link:hover { background: #f4f8ff; }
.auth-page { min-height: 100vh; min-height: 100dvh; }
.auth-layout { overflow: hidden; }
.auth-form-panel:not([hidden]) { display: block; }

@media (max-width: 760px) {
  .mobile-menu-backdrop:not([hidden]) { z-index: 1100 !important; }
  .mobile-menu:not([hidden]) { z-index: 1101 !important; }
  .mobile-bottom-nav { z-index: 900 !important; }
  .header-actions .register-link { display: none !important; }
  .header-actions .login-link { width: 42px; min-width: 42px; padding: 0 !important; font-size: 0 !important; }
  .auth-page { min-height: 100dvh; padding: 24px 14px calc(28px + env(safe-area-inset-bottom)); }
  .auth-layout { width: min(560px, 100%); margin: 0 auto; grid-template-columns: minmax(0, 1fr); }
  .auth-aside { min-width: 0; }
  .auth-card-wrap, .auth-card, .auth-form-stack { width: 100%; min-width: 0; }
  .auth-card { overflow-wrap: anywhere; }
}

/* Final responsive overrides: keep navigation tappable and auth states distinct. */
#loginForm[hidden], #registerForm[hidden] { display: none !important; }
#loginForm:not([hidden]), #registerForm:not([hidden]) { display: block !important; }
.auth-form-stack { width: min(466px, 100%); min-width: 0; }
.auth-card { box-sizing: border-box; }
.auth-switch { padding-top: 14px; border-top: 1px solid #e8edf4; line-height: 1.8; }

@media (max-width: 760px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important; }
  .mobile-menu-toggle { display: inline-flex !important; position: relative; z-index: 122 !important; align-items: center; justify-content: center; touch-action: manipulation; }
  .mobile-bottom-nav {
    position: fixed !important; z-index: 1000 !important; inset-inline: 0 !important; bottom: 0 !important;
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    min-height: 64px; box-sizing: border-box; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-menu-backdrop:not([hidden]) { z-index: 1200 !important; }
  .mobile-menu:not([hidden]) { z-index: 1201 !important; }
  .header-actions .register-link { display: none !important; }
  .header-actions .login-link { width: 40px; min-width: 40px; padding: 0 !important; font-size: 0 !important; }
  .auth-page { min-height: 100dvh; box-sizing: border-box; padding: 24px 16px calc(88px + env(safe-area-inset-bottom)) !important; }
  .auth-layout { width: min(560px, 100%) !important; margin-inline: auto; grid-template-columns: minmax(0, 1fr) !important; }
  .auth-aside, .auth-card-wrap, .auth-card, .auth-form-stack { min-width: 0; max-width: 100%; }
  .auth-card-wrap { padding-inline: clamp(12px, 4vw, 22px); }
}

@media (min-width: 761px) {
  .mobile-bottom-nav, .mobile-menu-toggle, .mobile-menu-backdrop, .mobile-menu { display: none !important; }
  .header-actions .register-link, .header-actions .login-link {
    display: inline-flex !important; visibility: visible !important; opacity: 1 !important;
    width: auto; min-width: 0; font-size: 14px !important;
  }
}

/* Header account and listing actions only */
.header-actions { gap: 8px; }
.header-actions .register-link,
.header-actions .login-link,
.header-actions .sell-button {
  display: inline-flex !important;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px !important;
  border-radius: 12px;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.header-actions .register-link {
  color: #315477;
  background: transparent;
  border: 1px solid transparent;
}
.header-actions .login-link {
  color: #1758b8;
  background: #f2f7ff;
  border: 1px solid #dce8f8;
}
.header-actions .sell-button {
  color: #fff;
  background: linear-gradient(135deg, #f18a2b, #e76f1d);
  border: 1px solid #e57824;
  box-shadow: 0 7px 16px rgba(231, 111, 29, .22);
}
.header-actions .register-link svg,
.header-actions .login-link svg,
.header-actions .sell-button svg { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; }
.header-actions .register-link:hover { color: #155eef; background: #f4f8ff; }
.header-actions .login-link:hover { background: #e8f1ff; border-color: #bfd4f5; }
.header-actions .sell-button:hover { background: linear-gradient(135deg, #e57824, #cf5b14); border-color: #cf5b14; box-shadow: 0 9px 20px rgba(207, 91, 20, .27); transform: translateY(-1px); }
.header-actions .register-link:focus-visible,
.header-actions .login-link:focus-visible,
.header-actions .sell-button:focus-visible { outline: 3px solid rgba(21, 94, 239, .3); outline-offset: 2px; }

@media (min-width: 761px) and (max-width: 1000px) {
  .header-actions { gap: 5px; }
  .header-actions .register-link,
  .header-actions .login-link { width: 40px; min-width: 40px; padding: 0 !important; }
  .header-actions .register-link .header-action-label,
  .header-actions .login-link .header-action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

@media (max-width: 760px) {
  .header-actions { gap: 5px; }
  .header-actions .register-link,
  .header-actions .login-link { display: inline-flex !important; width: 38px; min-width: 38px; min-height: 38px; padding: 0 !important; }
  .header-actions .register-link .header-action-label,
  .header-actions .login-link .header-action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .header-actions .sell-button { display: inline-flex !important; min-height: 38px; padding: 0 11px !important; font-size: 12px !important; }
}

@media (max-width: 420px) {
  .header-actions { gap: 4px; }
  .header-actions .register-link,
  .header-actions .login-link { width: 34px; min-width: 34px; min-height: 36px; }
  .header-actions .sell-button { width: 36px; min-width: 36px; min-height: 36px; padding: 0 !important; }
  .header-actions .sell-button .header-action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
/* Focused role workspaces and touch-first dashboard polish */
.app-shell { background: #f5f7fb; }
.side-nav { background: linear-gradient(180deg,#13283d 0%,#0e1d2e 100%); }
.side-nav .nav-links button { min-height: 48px; border-radius: 14px; }
.side-nav .nav-links button.active { background: rgba(30,183,162,.18); color: #fff; box-shadow: inset -3px 0 #24c2aa; }
.role-hero { position:relative; overflow:hidden; border-radius:24px; padding:30px; color:#fff; background:linear-gradient(135deg,#173b58,#087e89); box-shadow:0 18px 40px rgba(17,53,80,.15); }
.role-hero h2 { margin:8px 0; font-size:clamp(1.45rem,3vw,2.2rem); }
.role-hero p { margin:0; max-width:620px; color:rgba(255,255,255,.8); }
.role-kicker { font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:#9ce8dc; font-weight:800; }
.role-stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:20px 0; }
.role-stat { background:#fff; border:1px solid #e9edf4; border-radius:18px; padding:20px; box-shadow:0 8px 24px rgba(22,38,62,.05); }
.role-stat span { display:block; color:#718096; font-size:.82rem; margin-bottom:10px; }
.role-stat strong { color:#14283e; font-size:1.55rem; }
.role-stat.accent { border-color:#f4d99a; background:#fffaf0; }
.data-table { display:grid; gap:8px; }
.table-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 14px; border-radius:12px; background:#f8fafc; color:#637287; font-size:.85rem; }
.table-row strong { color:#24364c; }
.dashboard-mobile-nav { display:none; }
@media (max-width: 760px) {
  .role-stat-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .role-stat { padding:15px; }
  .role-stat strong { font-size:1.25rem; }
  .role-hero { padding:22px 18px; border-radius:18px; }
  .dashboard-mobile-nav { position:fixed; z-index:30; display:grid; grid-template-columns:repeat(5,1fr); right:10px; left:10px; bottom:10px; padding:7px; border:1px solid #e3e9f1; border-radius:20px; background:rgba(255,255,255,.94); box-shadow:0 12px 32px rgba(21,42,68,.18); backdrop-filter:blur(14px); }
  .dashboard-mobile-nav button { min-height:53px; display:grid; place-items:center; gap:2px; border:0; background:transparent; color:#8090a4; border-radius:14px; font:inherit; font-size:.65rem; }
  .dashboard-mobile-nav button svg { width:19px; }
  .dashboard-mobile-nav button.active { color:#087e89; background:#e9f8f5; font-weight:800; }
  #panelView .dash-main { padding-bottom:90px; }
}
/* Product direction: BuySellSim only lists MCI 0912 numbers. Auctions are retired. */
#auction, .auction-pill, .main-nav a[href="#auction"], .mobile-menu-links a[href="#auction"], .mobile-bottom-nav a[href="#auction"] { display:none !important; }

/* Bright, card-first responsive system for the public marketplace and dashboard. */
:root { --joy-blue:#2563eb; --joy-cyan:#06b6d4; --joy-teal:#0f9f8f; --joy-orange:#f97316; --joy-pink:#ec4899; --joy-purple:#7c3aed; --joy-ink:#172b4d; }
@media (max-width:760px) {
  body { background:linear-gradient(180deg,#f7fbff 0%,#eef7ff 48%,#fff7ef 100%); }
  .container { width:min(100% - 24px, 1180px); }
  .site-header { background:rgba(255,255,255,.94); box-shadow:0 8px 24px rgba(37,99,235,.08); }
  .header-inner { min-height:68px; }
  .brand-logo { max-width:145px; }
  .market-strip .strip-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .market-strip .strip-grid > div { padding:14px 11px; border:1px solid #dcecff; border-radius:18px; background:#fff; box-shadow:0 8px 20px rgba(37,99,235,.08); }
  .market-heading, .filters, .listing-section, .trade-process, .stores-section, .seller-cta { border-radius:24px; box-shadow:0 12px 30px rgba(23,43,77,.08); }
  .market-heading { display:block; padding:20px; border:1px solid #d8e7ff; background:linear-gradient(135deg,#fff 0%,#eef6ff 100%); }
  .market-heading h1 { margin:0 0 8px; color:var(--joy-ink); font-size:clamp(1.35rem,6vw,2rem); }
  .market-heading p { margin:0; line-height:1.9; }
  .market-layout { display:grid; grid-template-columns:1fr; gap:14px; }
  .filters, .listing-section { padding:16px; background:#fff; border:1px solid #e1ebfa; }
  .filter-grid, .filter-row { grid-template-columns:1fr !important; gap:10px; }
  .listing-table-head { display:none; }
  .listing-toolbar { display:flex; flex-wrap:wrap; gap:9px; padding:12px; margin-bottom:12px; border:1px solid #e4edfb; border-radius:17px; background:#f8fbff; }
  .number-card { display:grid; gap:12px; padding:16px; border:1px solid #dce9fb; border-radius:20px; background:#fff; box-shadow:0 8px 20px rgba(37,99,235,.07); }
  .number-card .card-actions, .number-card .number-meta { width:100%; }
  .trade-process, .stores-section, .seller-cta { padding:18px; background:#fff; border:1px solid #e2ecfa; }
  .trade-process ol, .store-grid { grid-template-columns:1fr; gap:12px; }
  .trade-process li, .store { padding:16px; border-radius:18px; background:#f8fbff; border:1px solid #e1ecfb; }
  .mobile-bottom-nav { padding:7px; border:1px solid #d7e7ff; border-radius:23px; background:rgba(255,255,255,.96); box-shadow:0 12px 32px rgba(37,99,235,.2); }
  .mobile-bottom-nav a { min-height:54px; border-radius:17px; font-weight:800; transition:.2s ease; }
  .mobile-bottom-nav a:nth-child(1) { color:var(--joy-blue); } .mobile-bottom-nav a:nth-child(2) { color:var(--joy-teal); } .mobile-bottom-nav a:nth-child(3) { color:var(--joy-orange); } .mobile-bottom-nav a:nth-child(4) { color:var(--joy-purple); }
  .mobile-bottom-nav a.active { color:#fff !important; background:linear-gradient(135deg,var(--joy-blue),var(--joy-cyan)); box-shadow:0 7px 16px rgba(37,99,235,.25); }
  .mobile-menu-links a, .mobile-menu-actions a { margin-bottom:9px; border:1px solid #dce8fb; border-radius:15px; box-shadow:0 5px 14px rgba(37,99,235,.06); }
  #panelView .dash-main { padding:16px 12px 104px; }
  #panelView .side-nav { border-radius:0 0 26px 26px; background:linear-gradient(145deg,#172b4d,#2563eb); }
  #panelView .panel, #panelView .stat-card, #panelView .wallet-amount, #panelView .action-card, #panelView .seller-status, #panelView .kyc-card, #panelView .plans-card, #panelView .listing-form-card, #panelView .role-hero, #panelView .role-stat { border-radius:20px; box-shadow:0 10px 25px rgba(23,43,77,.08); }
  #panelView .panel, #panelView .stat-card, #panelView .wallet-amount, #panelView .action-card, #panelView .seller-status, #panelView .kyc-card, #panelView .plans-card, #panelView .listing-form-card { border:1px solid #e0eafb; }
  .dashboard-mobile-nav { border-color:#d7e7ff; background:rgba(255,255,255,.97); box-shadow:0 12px 32px rgba(23,43,77,.22); }
  .dashboard-mobile-nav button:nth-child(1) { color:var(--joy-blue); } .dashboard-mobile-nav button:nth-child(2) { color:var(--joy-teal); } .dashboard-mobile-nav button:nth-child(3) { color:var(--joy-orange); } .dashboard-mobile-nav button:nth-child(4) { color:var(--joy-purple); } .dashboard-mobile-nav button:nth-child(5) { color:var(--joy-pink); }
  .dashboard-mobile-nav button.active { color:#fff !important; background:linear-gradient(135deg,var(--joy-blue),var(--joy-cyan)); box-shadow:0 6px 14px rgba(37,99,235,.25); }
}
@media (max-width:420px) { .market-strip .strip-grid { grid-template-columns:1fr; } .mobile-bottom-nav a, .dashboard-mobile-nav button { font-size:.61rem; } .mobile-bottom-nav svg, .dashboard-mobile-nav svg { width:18px; height:18px; } }

/* Seller workspace */
.seller-workspace{display:grid;gap:18px}.seller-status{display:flex;align-items:center;justify-content:space-between;gap:20px}.eyebrow{display:block;color:#71809a;font-size:.75rem;font-weight:800;letter-spacing:.04em;margin-bottom:7px}.status-pill{border-radius:999px;padding:8px 13px;background:#fff4df;color:#a56600;font-size:.78rem;font-weight:800;white-space:nowrap}.status-pill.success{background:#e7f8f1;color:#087c58}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.step-number{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#edf2ff;color:#4057d6;font-weight:900}.inline-form{display:flex;gap:10px;margin-top:15px}.inline-form input{flex:1}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}.plan-card{display:grid;gap:8px;padding:18px;border:1px solid #e6eaf2;border-radius:18px;background:linear-gradient(145deg,#fff,#f8faff)}.plan-card h4{margin:0;font-size:1rem}.plan-card strong{color:#17244c;font-size:1.15rem}.plan-card small{color:#71809a}.secondary-button{border:1px solid #d9def0;background:#fff;color:#4057d6;border-radius:11px;padding:10px 12px;font-weight:800;cursor:pointer}.listing-form{display:grid;gap:14px}.listing-form .form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.listing-form textarea{grid-column:1/-1;resize:vertical}.is-locked{opacity:.62}.account-type-choice{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 8px}.account-type-choice label{display:flex;align-items:center;gap:7px;padding:10px 12px;border:1px solid #e1e6f0;border-radius:12px;cursor:pointer;font-size:.86rem}.account-type-choice input{accent-color:#4057d6}@media(max-width:700px){.seller-status{align-items:flex-start;flex-direction:column}.inline-form{flex-direction:column}.plan-grid{grid-template-columns:1fr}.listing-form .form-grid{grid-template-columns:1fr}.listing-form textarea{grid-column:auto}}

/* Compact layout scale: keep every page readable without oversized empty areas. */
@media (min-width: 761px) {
  .container { width: min(1120px, calc(100% - 40px)) !important; }
  .market-heading { padding: 30px 34px !important; border-radius: 20px !important; }
  .market-heading h1 { font-size: clamp(2rem, 3.2vw, 2.8rem) !important; }
  .market-layout { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) !important; gap: 16px !important; }
  .filters, .listing-section { padding: 16px !important; }
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
  .trade-process, .stores-section, .seller-cta { margin-block: 28px !important; }
  .auth-page { padding: 72px 20px 28px !important; }
  .auth-layout { width: min(1080px, 100%) !important; min-height: 560px !important; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr) !important; border-radius: 22px !important; }
  .auth-aside { padding: 48px clamp(28px, 5vw, 62px) !important; }
  .auth-card-wrap { padding: 38px clamp(20px, 4vw, 54px) !important; }
  .auth-card { width: min(420px, 100%) !important; padding: 28px 30px 26px !important; }
  #panelView .dash-main { max-width: 1220px; padding: 28px 34px !important; }
  #panelView .role-hero { padding: 24px !important; border-radius: 20px !important; }
  #panelView .role-stat-grid { gap: 10px !important; margin: 14px 0 !important; }
  #panelView .role-stat { padding: 16px !important; }
}
@media (min-width: 1121px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 330px)) !important; } }
@media (max-width: 760px) {
  .container { width: calc(100% - 28px) !important; }
  .market-heading { padding: 18px !important; border-radius: 18px !important; }
  .market-heading h1 { font-size: clamp(1.35rem, 6vw, 1.85rem) !important; }
  .market-layout { gap: 10px !important; }
  .filters, .listing-section { padding: 12px !important; border-radius: 18px !important; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .number-card { padding: 12px !important; border-radius: 16px !important; }
  .trade-process, .stores-section, .seller-cta { margin-block: 16px !important; padding: 14px !important; border-radius: 18px !important; }
  #panelView .dash-main { padding: 14px 12px 104px !important; }
}
@media (max-width: 540px) {
  .listing-grid { grid-template-columns: 1fr !important; }
  .market-strip .strip-grid { gap: 8px !important; }
  .market-strip .strip-grid > div { padding: 11px 9px !important; border-radius: 14px !important; }
}

/* Useful marketplace sections */
.market-tools, .faq-section { margin: 28px auto; }
.section-note { color: #64748b; margin: 8px 0 0; font-size: .92rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: flex; gap: 13px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid #e8edf5; border-radius: 18px; box-shadow: 0 10px 28px rgba(31, 65, 114, .06); }
.tool-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }
.tool-icon.blue { color: #1769d1; background: #e8f2ff; }
.tool-icon.orange { color: #d86b10; background: #fff0df; }
.tool-icon.green { color: #138a62; background: #e6f8f0; }
.tool-card h3 { margin: 0 0 7px; font-size: 1rem; color: #172b4d; }
.tool-card p { margin: 0 0 12px; color: #64748b; font-size: .83rem; line-height: 1.8; }
.tool-card a { color: #1769d1; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.tool-card a svg { width: 14px; height: 14px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.faq-grid details { background: #fff; border: 1px solid #e8edf5; border-radius: 15px; padding: 0 16px; box-shadow: 0 8px 22px rgba(31, 65, 114, .04); }
.faq-grid summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; color: #172b4d; font-weight: 700; font-size: .9rem; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary svg { width: 17px; color: #1769d1; transition: transform .2s ease; }
.faq-grid details[open] summary svg { transform: rotate(180deg); }
.faq-grid details p { margin: -3px 0 16px; color: #64748b; font-size: .83rem; line-height: 1.9; }
@media (max-width: 760px) {
  .tool-grid, .faq-grid { grid-template-columns: 1fr; }
  .market-tools, .faq-section { margin-block: 16px !important; padding: 14px !important; border-radius: 18px !important; }
  .tool-card { padding: 15px; }
}
/* Login experience: compact, focused and responsive */
.auth-page{min-height:100svh;padding:clamp(18px,4vw,42px);display:grid;place-items:center;position:relative;overflow:hidden;background:radial-gradient(circle at 8% 12%,rgba(242,138,46,.16),transparent 28%),radial-gradient(circle at 92% 88%,rgba(37,99,235,.16),transparent 32%),#f5f8ff}
.auth-brand{position:absolute;top:clamp(16px,3vw,34px);right:clamp(18px,4vw,52px);z-index:2}
.auth-brand .brand-logo,.side-brand .brand-logo{object-fit:contain!important;background:#fff}
.auth-brand .brand-logo{width:178px;height:54px;padding:5px 11px;border:1px solid #e7edf7;border-radius:15px;box-shadow:0 8px 22px rgba(23,43,77,.08)}
.auth-layout{width:min(1080px,100%);min-height:620px;display:grid;grid-template-columns:minmax(0,.95fr) minmax(390px,.8fr);direction:rtl;overflow:hidden;border:1px solid #e0e8f5;border-radius:30px;background:#fff;box-shadow:0 24px 70px rgba(27,57,102,.14);position:relative;z-index:1}
.auth-aside{padding:clamp(38px,5vw,70px);display:flex;flex-direction:column;justify-content:center;color:#fff;background:radial-gradient(circle at 20% 18%,rgba(255,255,255,.16),transparent 24%),linear-gradient(145deg,#123d91 0%,#155eef 62%,#0e4bb8 100%)}
.auth-aside .eyebrow{width:fit-content;margin-bottom:20px;padding:7px 12px;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#dce9ff;background:rgba(255,255,255,.1);font-size:11px;font-weight:800;letter-spacing:.11em}
.auth-aside h1{margin:0 0 18px;color:#fff;font-size:clamp(28px,3.5vw,46px);line-height:1.35;letter-spacing:-.04em}
.auth-aside>p{max-width:400px;margin:0;color:#e7efff;font-size:15px;line-height:2}
.auth-points{display:grid;gap:13px;margin-top:34px}.auth-points>div{display:flex;align-items:center;gap:10px;color:#f7faff;font-size:13px}.auth-points svg{width:19px;height:19px;color:#ffc078;flex:0 0 auto}
.auth-card-wrap{display:flex;align-items:center;justify-content:center;padding:clamp(28px,5vw,66px);background:#fff}.auth-form-stack{width:min(100%,410px)}
.auth-card.auth-form-panel{width:100%;max-width:none;padding:0;border:0;box-shadow:none}.auth-card.auth-form-panel h2{margin:0 0 8px;color:#172b4d;font-size:clamp(24px,3vw,30px);letter-spacing:-.03em}.auth-card.auth-form-panel>p:not(.auth-switch):not(.message):not(.auth-note){margin:0 0 24px;color:#71809a;font-size:13px;line-height:1.9}
.auth-methods{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:23px;padding:5px;border:1px solid #e3eaf5;border-radius:14px;background:#f7f9fd}.auth-method{min-height:42px;border:0;border-radius:10px;color:#7786a0;background:transparent;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}.auth-method.active{color:#155eef;background:#fff;box-shadow:0 4px 12px rgba(28,68,130,.1)}.auth-method:disabled{opacity:.58;cursor:not-allowed}.auth-method small{display:block;margin-top:2px;font-size:9px}
.auth-card.auth-form-panel>label{display:block;margin:0 0 16px;color:#33476a;font-size:12px;font-weight:700}.auth-card.auth-form-panel input{width:100%;min-height:50px;margin-top:8px;padding:0 15px;border:1px solid #dbe4f1;border-radius:12px;outline:0;color:#172b4d;background:#fbfcff;font:inherit;transition:.2s ease}.auth-card.auth-form-panel input:focus{border-color:#6d9cf9;background:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.auth-card.auth-form-panel .primary-button{width:100%;min-height:52px;margin-top:6px;border-radius:13px;background:linear-gradient(135deg,#155eef,#1049bd);box-shadow:0 10px 22px rgba(21,94,239,.22);font-size:14px}.auth-note{margin:16px 0 0;color:#8793a8;font-size:11px;line-height:1.8}.auth-switch{margin:24px 0 0;color:#71809a;font-size:12px;text-align:center}.auth-switch a{color:#155eef;font-weight:800}.account-type-choice{margin-bottom:20px}.auth-card.auth-form-panel[hidden]{display:none!important}
@media (max-width:780px){.auth-page{display:block;padding:88px 14px 22px}.auth-brand{top:16px;right:14px}.auth-brand .brand-logo{width:150px;height:46px}.auth-layout{min-height:0;display:block;border-radius:23px}.auth-aside{padding:28px 22px 25px}.auth-aside .eyebrow{margin-bottom:12px}.auth-aside h1{margin-bottom:9px;font-size:27px}.auth-aside>p{font-size:13px;line-height:1.8}.auth-points{grid-template-columns:1fr;gap:9px;margin-top:17px}.auth-points>div{font-size:11px}.auth-card-wrap{padding:28px 20px 30px}}
@media (max-width:420px){.auth-page{padding-inline:10px}.auth-aside{padding-inline:17px}.auth-card-wrap{padding-inline:16px}.auth-method{font-size:11px}}

/* Final login cleanup: less empty space, stronger focus, compact mobile card */
.auth-page{padding:18px clamp(14px,3vw,34px) 24px}
.auth-brand{top:14px;right:clamp(14px,3vw,34px)}
.auth-brand .brand-logo{width:164px;height:48px;padding:3px 9px}
.auth-layout{width:min(980px,100%);min-height:0;grid-template-columns:minmax(0,1fr) minmax(360px,.88fr);border-radius:24px}
.auth-aside{padding:42px clamp(30px,5vw,58px)}
.auth-card-wrap{padding:42px clamp(28px,5vw,58px)}
.auth-form-stack{width:min(100%,390px)}
.auth-card.auth-form-panel>p:not(.auth-switch):not(.message):not(.auth-note){margin-bottom:18px}
.auth-switch{margin-top:18px}

  @media (max-width:780px){
    .auth-page{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:100dvh;box-sizing:border-box;padding:10px 12px 14px}
    .auth-brand{display:none!important}
  .auth-layout{display:block;width:min(100%,460px);min-height:calc(100dvh - 24px);border-radius:22px}
  .auth-aside{display:none!important}
  .auth-card-wrap{min-height:calc(100dvh - 24px);box-sizing:border-box;padding:22px 18px 20px}
  .auth-form-stack{width:100%}
  .auth-card.auth-form-panel h2{margin-bottom:5px}
  .auth-card.auth-form-panel>p:not(.auth-switch):not(.message):not(.auth-note){margin-bottom:14px}
  .auth-methods{margin-bottom:16px;padding:4px}
  .auth-method{min-height:38px}
  .auth-card.auth-form-panel>label{margin-bottom:12px}
  .auth-card.auth-form-panel input{min-height:46px;margin-top:6px}
  .auth-card.auth-form-panel .primary-button{min-height:48px;margin-top:3px}
  .auth-switch{margin-top:14px}
}

  @media (max-width:420px){
    .auth-page{padding-inline:8px}
    .auth-brand{right:auto;left:auto;margin-bottom:6px}
    .auth-layout{border-radius:18px}
    .auth-card-wrap{padding:20px 16px 18px}
  }

  @media (max-width:780px){
    body:has(#authView:not(.hidden)) .dashboard-mobile-nav{display:none!important}
  }

/* Box-first layout system: every functional area keeps a clear visual boundary. */
.market-heading,
.market-tools,
.trade-process,
.stores-section,
.faq-section,
.seller-cta {
  border: 1px solid #dfe8f5;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 30px rgba(29,67,122,.07);
}
.market-heading { padding: 28px 32px !important; }
.section-title { padding: 0 2px 16px; }
.tool-card,
.process-card,
.store,
.faq-grid details,
.strip-card,
.number-card,
.auction-card {
  border: 1px solid #dfe8f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(29,67,122,.06);
}
.filters,
.listing-section {
  border: 1px solid #d7e4f4 !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(29,67,122,.08) !important;
}
.filter-group,
.listing-toolbar,
.panel-head,
.number-card-head,
.number-card-foot { border-color: #e4ebf5 !important; }
.mobile-bottom-nav a,
.dashboard-mobile-nav button,
.mobile-menu-links a,
.mobile-menu-actions a { border: 1px solid #dce7f5; }

#panelView .dash-main { background: #f5f8fd; }
#panelView .dash-top,
#panelView .role-hero,
#panelView .role-stat,
#panelView .panel,
#panelView .wallet-amount,
#panelView .action-card,
#panelView .seller-status,
#panelView .kyc-card,
#panelView .plans-card,
#panelView .listing-form-card,
#panelView .plan-card {
  border: 1px solid #dce7f5;
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(29,67,122,.07);
}
#panelView .dash-top { padding: 18px 20px; background: #fff; }
#panelView .role-stat,
#panelView .panel,
#panelView .wallet-amount,
#panelView .action-card,
#panelView .seller-status,
#panelView .kyc-card,
#panelView .plans-card,
#panelView .listing-form-card { background: #fff; }

@media (max-width:760px) {
  main > section,
  .market-strip,
  .market-heading,
  .market-layout,
  .market-tools,
  .trade-process,
  .stores-section,
  .faq-section,
  .seller-cta,
  .footer-main,
  .footer-bottom { width: 100%; box-sizing: border-box; }
  .market-heading,
  .market-tools,
  .trade-process,
  .stores-section,
  .faq-section,
  .seller-cta {
    padding: 14px !important;
    margin-block: 12px !important;
    border-radius: 18px !important;
  }
  .market-heading { padding: 18px !important; }
  .market-layout { gap: 12px !important; }
  .filters,
  .listing-section { padding: 12px !important; border-radius: 18px !important; }
  .tool-grid,
  .trade-process ol,
  .store-grid,
  .faq-grid { gap: 10px !important; }
  .tool-card,
  .process-card,
  .store,
  .faq-grid details,
  .number-card {
    border-radius: 15px !important;
    box-shadow: 0 6px 16px rgba(29,67,122,.06) !important;
  }
  .section-title { padding: 0 2px 12px; }
  .section-title h2 { font-size: 1.08rem; line-height: 1.7; }
  #panelView .dash-main { padding: 12px 10px 104px !important; }
  #panelView .dash-top,
  #panelView .role-hero,
  #panelView .role-stat,
  #panelView .panel,
  #panelView .wallet-amount,
  #panelView .action-card,
  #panelView .seller-status,
  #panelView .kyc-card,
  #panelView .plans-card,
  #panelView .listing-form-card,
  #panelView .plan-card { border-radius: 16px !important; }
  #panelView .dash-top { padding: 14px !important; margin-bottom: 10px; }
  #panelView .role-stat-grid { gap: 8px !important; margin: 10px 0 !important; }
  #panelView .role-stat { padding: 13px !important; }
  #panelView .panel-head { padding: 13px 14px !important; }
  #panelView .order-list { padding: 0 14px !important; }
  .mobile-bottom-nav,
  .dashboard-mobile-nav {
    right: 8px !important;
    left: 8px !important;
    bottom: 8px !important;
    border-radius: 18px !important;
  }
}

/* Responsive heading scale shared by the storefront, auth screens and dashboards. */
:root {
  --bss-heading-1: clamp(1.875rem, 1.48rem + 1.3vw, 2.625rem);
  --bss-heading-2: clamp(1.4375rem, 1.25rem + .55vw, 1.8125rem);
  --bss-heading-3: clamp(1.0625rem, 1rem + .22vw, 1.25rem);
  --bss-heading-4: clamp(1rem, .96rem + .16vw, 1.125rem);
}

.market-heading h1,
.auth-aside h1,
#panelView .dash-top h1 {
  font-size: var(--bss-heading-1) !important;
  line-height: 1.35 !important;
}

.section-title h2,
.filter-title h2,
#resultTitle,
.trade-process h2,
.seller-cta h2,
.auth-card.auth-form-panel h2,
#panelView .role-hero h2,
#panelView .dash-page > h2 {
  font-size: var(--bss-heading-2) !important;
  line-height: 1.55 !important;
}

.filter-group h3,
.tool-card h3,
.process-card h3,
.store h3,
.empty-state h3,
.faq-section h3,
#panelView .panel-head h3,
#panelView .action-card h3,
#panelView .seller-status h3,
#panelView .secure-box h3,
#panelView .dash-page h3 {
  font-size: var(--bss-heading-3) !important;
  line-height: 1.55 !important;
}

#panelView .plan-card h4,
#panelView .dash-page h4 {
  font-size: var(--bss-heading-4) !important;
  line-height: 1.55 !important;
}

@media (max-width: 760px) {
  :root {
    --bss-heading-1: clamp(1.5rem, 5.8vw, 2rem);
    --bss-heading-2: clamp(1.25rem, 4.9vw, 1.5rem);
    --bss-heading-3: clamp(1rem, 4vw, 1.125rem);
    --bss-heading-4: 1rem;
  }
}

@media (max-width: 380px) {
  :root {
    --bss-heading-1: 1.45rem;
    --bss-heading-2: 1.2rem;
  }
}

/* 0912 is fixed; users search by the leading digits of the remaining number. */
.filters .search-prefix {
  flex: 0 0 auto;
  direction: ltr;
  padding-inline: 8px;
  border-inline-start: 1px solid #dce5f2;
  color: var(--bss-blue, #155eef);
  font: 800 13px/1 Arial, sans-serif;
}
.filters .search-row input {
  direction: ltr;
  text-align: left;
  flex: 1 1 auto;
}
.filters .price-sort {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #536781;
  font-weight: 700;
}
.filters .price-sort select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  padding: 7px 10px;
  background: #fff;
  color: #18345b;
}
@media (min-width: 901px) {
  .listing-table-head,
  .number-card {
    grid-template-columns: 130px 1.5fr 1fr 1.6fr;
  }
}

/* Compact, centered desktop layout with clearly boxed content sections. */
@media (min-width: 761px) {
  .container {
    width: min(1060px, calc(100% - 40px)) !important;
  }

  main {
    width: min(1060px, calc(100% - 40px));
    margin-inline: auto;
    box-sizing: border-box;
  }

  main > .container {
    width: 100% !important;
    margin-inline: 0;
  }

  main > .market-heading,
  main > .market-layout,
  main > .trade-process,
  main > .market-tools,
  main > .stores-section,
  main > .faq-section,
  main > .seller-cta {
    width: 100%;
    box-sizing: border-box;
    margin-inline: 0;
    border-radius: 18px;
  }

  main > .market-heading {
    margin-top: 18px;
    padding: clamp(22px, 3vw, 34px) !important;
  }

  .market-layout {
    grid-template-columns: minmax(205px, 228px) minmax(0, 1fr) !important;
    gap: 14px !important;
    margin-block: 16px !important;
  }

  .filters,
  .listing-section {
    min-width: 0;
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .filters { position: static; }

  .listing-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .number-card {
    min-width: 0;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  main > .trade-process,
  main > .market-tools,
  main > .stores-section,
  main > .faq-section,
  main > .seller-cta {
    margin-block: 16px !important;
    padding: 20px !important;
    border: 1px solid #dfe8f5;
    box-shadow: 0 8px 22px rgba(29, 67, 122, .06);
  }

  main > .seller-cta {
    border: 0;
  }
}

@media (min-width: 1001px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Fast MCI 0912 prefix-code shortcuts; codes are populated from live listings. */
.filters .quick-code-filter {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5ebf4;
}

.filters .quick-code-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: #18345b;
  font-size: 12px;
  font-weight: 800;
}

.filters .quick-code-heading small {
  color: #71819a;
  font-size: 10px;
  font-weight: 600;
}

.filters .quick-code-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filters .quick-code-options:empty::after {
  content: "با ثبت آگهی‌های ۰۹۱۲، کدهای موجود اینجا نمایش داده می‌شوند";
  color: #78869a;
  font-size: 10px;
  line-height: 1.8;
}

.filters .quick-code {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #d5e1f2;
  border-radius: 11px;
  background: #fff;
  color: #24549b;
  font-size: 13px;
  font-weight: 800;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.filters .quick-code:hover {
  transform: translateY(-1px);
  border-color: #8eb3ef;
  background: #f3f7ff;
}

.filters .quick-code.active {
  border-color: #155eef;
  background: #eaf1ff;
  color: #1049bd;
  box-shadow: 0 0 0 2px rgba(21, 94, 239, .12);
}

@media (max-width: 600px) {
  .filters .search-panel { padding: 13px !important; }
  .filters .quick-code-filter { margin-top: 12px; }
  .filters .quick-code-options { gap: 8px; }
  .filters .quick-code { min-width: 40px; min-height: 40px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .tool-grid,
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.seller-cta > div > p,
.seller-cta > div > h2,
.seller-cta > div > span {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(10, 24, 54, .38);
}

.seller-cta > div > p {
  font-weight: 800;
}

.seller-cta > div > span {
  display: block;
  max-width: 62ch;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.9;
}

/* Compact, structured marketplace footer */
.site-footer {
  margin-top: 34px;
  padding: 0;
  color: #d7e3f3;
  background: linear-gradient(135deg, #10233d, #142f50);
  border-top: 3px solid #f28a2e;
}

.site-footer .footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.55fr) repeat(3, minmax(135px, 1fr));
  align-items: start;
  gap: clamp(20px, 3vw, 42px);
  padding-block: 34px 28px;
}

.footer-brand-block { min-width: 0; }
.site-footer .footer-brand { display: inline-flex; margin-bottom: 12px; }
.site-footer .footer-brand .brand-logo {
  width: 172px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
}

.footer-brand-block > p,
.footer-contact > p {
  margin: 0;
  color: #c0d0e3;
  font-size: 12px;
  line-height: 1.9;
}

.footer-focus {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 6px 10px;
  border: 1px solid rgba(161, 190, 224, .24);
  border-radius: 999px;
  color: #e4edf8;
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 700;
}

.footer-focus svg { width: 15px; height: 15px; color: #65d6b2; }
.site-footer .footer-links,
.site-footer .footer-contact { display: grid; align-content: start; gap: 11px; }

.site-footer .footer-links h2,
.site-footer .footer-contact h2 {
  margin: 3px 0 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.site-footer .footer-links a,
.site-footer .footer-email {
  width: fit-content;
  color: #c0d0e3;
  font-size: 12px;
  line-height: 1.7;
  text-decoration: none;
  transition: color .16s ease;
}

.site-footer .footer-links a:hover,
.site-footer .footer-email:hover { color: #fff; }
.site-footer .footer-email { display: inline-flex; align-items: center; gap: 7px; color: #fff; direction: ltr; }
.site-footer .footer-email svg { width: 15px; height: 15px; color: #77a9ff; }

.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid rgba(194, 214, 239, .16);
  color: #aebfd4;
  font-size: 10px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .site-footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-footer { margin-top: 22px; padding-bottom: 92px; }
  .site-footer .footer-main { gap: 18px 12px; padding-block: 23px 20px; }
  .site-footer .footer-brand .brand-logo { width: 148px; height: 48px; }
  .site-footer .footer-links,
  .site-footer .footer-contact {
    padding: 13px;
    border: 1px solid rgba(194, 214, 239, .15);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
  }
  .site-footer .footer-contact { grid-column: 1 / -1; }
  .site-footer .footer-bottom { flex-direction: column; gap: 4px; padding-block: 12px; }
}

/* Mobile marketplace header, number cards and primary navigation. */
@media (max-width: 760px) {
  .site-header .header-inner {
    position: relative !important;
    min-height: 66px !important;
    justify-content: center !important;
    padding-inline: 46px !important;
    box-sizing: border-box;
  }

  .site-header .brand {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    z-index: 1;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 104px) !important;
    gap: 0 !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
  }

  .site-header .brand > :not(.brand-logo) { display: none !important; }

  .site-header .brand-logo {
    display: block !important;
    width: clamp(112px, 34vw, 142px) !important;
    height: 42px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    box-shadow: none !important;
  }

  .site-header .header-actions {
    position: absolute !important;
    inset-inline-start: 0 !important;
    z-index: 2;
    margin: 0 !important;
  }

  .site-header .header-actions .register-link,
  .site-header .header-actions .sell-button { display: none !important; }

  .site-header .header-actions .login-link {
    display: inline-flex !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .site-header .header-actions .login-link svg { margin: 0 !important; }

  .site-header .mobile-menu-toggle {
    position: absolute !important;
    inset-inline-end: 0 !important;
    z-index: 2 !important;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .listing-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .number-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px !important;
    border: 1px solid #dce7f4 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(29, 67, 122, .07) !important;
    text-align: right;
  }

  .number-card-head {
    display: flex !important;
    grid-column: 1;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f7 !important;
    background: transparent !important;
  }

  .number-card h3 {
    width: 100%;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 11px;
    background: #f3f7fd;
    text-align: center !important;
    font-size: clamp(20px, 5vw, 24px) !important;
    line-height: 1.2 !important;
    letter-spacing: .035em;
  }

  .number-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px 7px;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.6;
  }

  .number-meta span {
    padding: 3px 8px;
    border-radius: 8px;
    background: #f3f6fa;
    color: #53657d;
  }

  .number-meta span + span::before { content: none !important; }

  .number-card-foot {
    display: flex !important;
    grid-column: 1;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 10px !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid #e8eef6 !important;
  }

  .number-card-foot > div:first-child { display: grid; gap: 2px; }
  .number-card-actions { display: flex !important; align-items: center; justify-content: flex-end; gap: 7px; margin: 0 !important; }
  .number-card-actions .favorite { width: 40px !important; height: 40px !important; flex: 0 0 40px !important; }
  .number-card-actions .details-button { min-height: 40px !important; flex: 0 0 auto !important; padding-inline: 13px !important; }

  .mobile-bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: end;
    gap: 2px !important;
    padding-inline: 4px !important;
  }

  .mobile-bottom-nav a {
    min-width: 0;
    padding-inline: 1px;
    white-space: nowrap;
    font-size: clamp(.52rem, 2.6vw, .68rem) !important;
  }

  .mobile-bottom-nav a svg { width: 19px; height: 19px; }

  .mobile-bottom-nav .mobile-nav-create {
    position: relative;
    z-index: 1;
    min-height: 55px !important;
    margin-top: -6px;
    border: 1px solid #ffd7b0 !important;
    border-radius: 14px !important;
    color: #b85c0b !important;
    background: linear-gradient(145deg, #fff9f3, #ffead8) !important;
    box-shadow: 0 5px 14px rgba(225, 112, 23, .16) !important;
    font-weight: 900 !important;
    font-size: clamp(.56rem, 2.8vw, .72rem) !important;
  }

  .mobile-bottom-nav .mobile-nav-create svg { width: 21px; height: 21px; }
}

/* Slightly roomier desktop canvas while keeping the boxed layout. */
@media (min-width: 761px) {
  .container { width: min(1200px, calc(100% - 48px)) !important; }
  main { width: min(1160px, calc(100% - 48px)) !important; }
  .auth-layout { width: min(1160px, 100%) !important; }
  #panelView .dash-main { max-width: 1280px; }
}

/* Final mobile marketplace layout corrections. */
@media (max-width: 760px) {
  .site-header > .container.header-inner {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 66px !important;
    margin-inline: 0 !important;
    padding-inline: 48px !important;
    box-sizing: border-box !important;
  }

  .site-header .brand {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    max-width: calc(100% - 112px) !important;
    margin: 0 !important;
    z-index: 1 !important;
  }

  .site-header .brand > :not(.brand-logo) { display: none !important; }
  .site-header .brand-logo {
    display: block !important;
    width: clamp(108px, 34vw, 138px) !important;
    height: 40px !important;
    object-fit: contain !important;
  }

  .listing-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .number-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    min-width: 0 !important;
    overflow: hidden;
  }

  .number-card h3 {
    direction: ltr !important;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
  }

  .number-card-head .operator-cell { display: none !important; }

  .number-card-head .verified {
    max-width: 60%;
    text-align: end;
  }

  .number-meta { display: flex; flex-wrap: wrap; gap: 6px; }

  .mobile-bottom-nav {
    direction: rtl !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 3px !important;
  }

  .mobile-bottom-nav > a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 5px 1px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-size: clamp(.54rem, 2.55vw, .67rem) !important;
  }

  .mobile-bottom-nav > a.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .22) !important;
  }

  .mobile-bottom-nav > a.mobile-nav-create {
    min-height: 57px !important;
    transform: translateY(-2px);
    font-size: clamp(.61rem, 2.9vw, .74rem) !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav > a { font-size: .54rem !important; }
  .mobile-bottom-nav > a.mobile-nav-create { font-size: .60rem !important; }
}

/* Mobile header cleanup and requested control order. */
@media (max-width: 760px) {
  .utility,
  .market-heading {
    display: none !important;
  }

  .site-header > .container.header-inner {
    position: relative !important;
  }

  .site-header .header-actions {
    position: absolute !important;
    inset-inline-start: auto !important;
    inset-inline-end: 8px !important;
    z-index: 3 !important;
    margin: 0 !important;
  }

  .site-header .header-actions .register-link {
    display: none !important;
  }

  .site-header .header-actions .login-link {
    display: inline-flex !important;
    width: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .site-header .mobile-menu-toggle {
    position: absolute !important;
    inset-inline-end: auto !important;
    inset-inline-start: 8px !important;
    z-index: 3 !important;
    margin: 0 !important;
  }
}


/* Mobile marketplace cards and navigation refinements. */
@media (max-width: 760px) {
  .market-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .market-layout > .filters,
  .filters { display: none !important; }
  .listing-section { width: 100% !important; min-width: 0 !important; }
  .number-card {
    gap: 8px !important;
    padding: 11px !important;
    border-radius: 14px !important;
    box-shadow: 0 3px 12px rgba(27, 52, 91, .06) !important;
  }
  .number-card-head .operator-cell,
  .number-card .seller-name,
  .number-card .brand-name,
  .number-card .site-brand { display: none !important; }
  .number-card-head {
    justify-content: flex-start !important;
    border-bottom: 0 !important;
    padding: 0 !important;
  }
  .number-card-head .verified { max-width: 100% !important; font-size: .68rem !important; }
  .number-card h3 {
    padding: 9px 10px !important;
    border: 1px solid #e7edf6;
    background: #f7f9fc !important;
    font-size: clamp(19px, 5vw, 23px) !important;
  }
  .number-meta { gap: 5px !important; }
  .number-meta span { padding: 3px 7px !important; font-size: .66rem !important; }
  .number-card-foot { padding-top: 8px !important; }
  .mobile-bottom-nav > a {
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: clamp(.56rem, 2.5vw, .65rem) !important;
    font-weight: 600 !important;
  }
  .mobile-bottom-nav > a.is-active:not(.mobile-nav-create) {
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .mobile-bottom-nav > a.mobile-nav-create {
    min-height: 56px !important;
    transform: translateY(-1px) !important;
    font-size: clamp(.63rem, 2.85vw, .72rem) !important;
    font-weight: 850 !important;
  }
}

/* Final live mobile pass: compact marketplace cards, hidden filter column and ordered bottom navigation. */
@media (max-width: 900px) {
  .market-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .market-layout > .filters,
  .market-layout .filters,
  .market-layout > .filter-column {
    display: none !important;
  }
  .market-layout > .listing-section,
  .listing-section {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }
  .listing-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .listing-table-head { display: none !important; }
  .number-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #e2eaf3 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(25, 55, 94, .07) !important;
    box-sizing: border-box !important;
  }
  .number-card-head .operator-cell,
  .number-card .seller-name,
  .number-card .brand-name,
  .number-card .site-brand {
    display: none !important;
  }
  .number-card-head {
    display: flex !important;
    grid-column: 1 !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f7 !important;
    background: transparent !important;
  }
  .number-card h3 {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #e7edf6 !important;
    border-radius: 10px !important;
    background: #f7f9fc !important;
    text-align: center !important;
    font-size: clamp(19px, 5vw, 24px) !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
  }
  .number-card .number-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px 7px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .number-card .number-meta span {
    padding: 3px 8px !important;
    border-radius: 8px !important;
    background: #f3f6fa !important;
    font-size: .68rem !important;
  }
  .number-card-foot {
    display: flex !important;
    grid-column: 1 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding: 9px 0 0 !important;
    border-top: 1px solid #e8eef6 !important;
  }
}

@media (max-width: 760px) {
  .mobile-bottom-nav {
    position: fixed !important;
    inset-inline: 0 !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    direction: rtl !important;
    width: 100% !important;
    min-height: 62px !important;
    box-sizing: border-box !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #e7edf4 !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -5px 20px rgba(31, 53, 82, .08) !important;
  }
  .mobile-bottom-nav > a {
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #596a81 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: clamp(.58rem, 2.6vw, .70rem) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    transform: none !important;
  }
  .mobile-bottom-nav > a.is-active:not(.mobile-nav-create) {
    color: #596a81 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 600 !important;
  }
  .mobile-bottom-nav > a > i,
  .mobile-bottom-nav > a > svg {
    width: 19px !important;
    height: 19px !important;
  }
  .mobile-bottom-nav > a.mobile-nav-create {
    min-height: 52px !important;
    border: 1px solid #ffe0bf !important;
    border-radius: 14px !important;
    color: #a84b08 !important;
    background: #fff3e6 !important;
    font-size: clamp(.62rem, 2.8vw, .74rem) !important;
    font-weight: 800 !important;
    transform: translateY(-2px) !important;
  }
}


/* Mobile filter drawer opened from the bottom navigation. */
@media (max-width: 760px) {
  .mobile-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  .mobile-bottom-nav > .mobile-nav-filter {
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #596a81 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: clamp(.56rem, 2.4vw, .68rem) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer;
  }
  .mobile-bottom-nav > .mobile-nav-filter > i,
  .mobile-bottom-nav > .mobile-nav-filter > svg {
    width: 19px !important;
    height: 19px !important;
  }
  .mobile-bottom-nav > .mobile-nav-filter:focus-visible,
  .mobile-filter-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35) !important;
    outline-offset: 2px !important;
  }
  .mobile-filter-backdrop[hidden] { display: none !important; }
  body.mobile-filters-open .mobile-filter-backdrop:not([hidden]) {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 1090 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border: 0 !important;
    background: rgba(14, 29, 49, .48) !important;
    cursor: default;
  }
  body.mobile-filters-open .market-layout > #market-filters {
    display: block !important;
    position: fixed !important;
    inset-block: 10px !important;
    inset-inline-start: 10px !important;
    inset-inline-end: auto !important;
    z-index: 1100 !important;
    width: min(380px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    margin: 0 !important;
    padding: 18px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid #e4eaf2 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 20px 60px rgba(16, 35, 61, .24) !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-filter-close-row { display: flex !important; justify-content: flex-start !important; margin: 0 0 12px !important; }
  .mobile-filter-close {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 40px !important;
    padding: 7px 11px !important;
    border: 1px solid #e4eaf2 !important;
    border-radius: 12px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    font: inherit !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
    cursor: pointer;
  }
  .mobile-filter-close svg { width: 17px !important; height: 17px !important; }
}
.details-button,
.details-button:hover,
.details-button:focus-visible { color: #fff !important; }

.verified,
.verified i { color: #1d9bf0 !important; }
/* Mobile listing cards: two columns per row. */
@media (max-width: 760px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; align-items: stretch !important; }
  .number-card { align-content: start !important; gap: 7px !important; padding: 9px !important; }
  .number-card-head { padding-bottom: 6px !important; }
  .number-card-head .verified { max-width: 100% !important; font-size: clamp(.55rem, 2.5vw, .68rem) !important; }
  .number-card h3 { padding: 9px 3px !important; font-size: clamp(14px, 4.2vw, 19px) !important; letter-spacing: -.4px !important; white-space: nowrap !important; }
  .number-card .number-meta { gap: 4px !important; }
  .number-card .number-meta span { padding: 3px 5px !important; font-size: clamp(.57rem, 2.25vw, .68rem) !important; }
  .number-card-foot { flex-direction: column !important; align-items: stretch !important; gap: 7px !important; }
  .number-card-foot > div:first-child { min-width: 0 !important; }
  .number-card-foot b { font-size: clamp(12px, 3.3vw, 15px) !important; }
  .number-card-actions { width: 100% !important; justify-content: space-between !important; gap: 5px !important; }
  .number-card-actions .favorite { width: 34px !important; height: 34px !important; flex: 0 0 34px !important; }
  .number-card-actions .details-button { min-width: 0 !important; min-height: 34px !important; flex: 1 1 auto !important; padding: 0 5px !important; font-size: clamp(9px, 2.7vw, 11px) !important; white-space: nowrap !important; }
}
/* Hide the footer on phones only; preserve tablet and desktop layouts. */
@media (max-width: 760px) {
  .site-footer { display: none !important; }
}
/* Hide verified sellers on mobile only. */
@media (max-width: 760px) {
  .stores-section { display: none !important; }
}
/* Mobile login: centered logo above the form; remove forced blank space below. */ @media(max-width:780px){body:has(#authView:not(.hidden)){min-height:100dvh;background:#f5f8ff}#authView.auth-page{box-sizing:border-box;min-height:100dvh;height:auto;padding:8px 12px;gap:0}#authView .auth-brand{display:flex!important;position:static!important;align-self:center;margin:0 auto 10px!important;line-height:0}#authView .auth-brand .brand-logo{display:block;width:132px;height:40px;padding:2px 7px;object-fit:contain!important}#authView .auth-layout{min-height:0!important;height:auto;flex:0 0 auto}#authView .auth-card-wrap{min-height:0!important;height:auto;align-items:flex-start;padding:14px 18px 12px}#authView .auth-form-stack{width:100%}}
/* Hide account-type choices on signup on mobile only. */ @media(max-width:780px){#authView #registerForm .account-type-choice{display:none!important}}


/* Keep dashboard and admin content within the mobile viewport. */
@media (max-width: 760px) {
  #panelView.app-shell {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
  }
  #panelView > .side-nav,
  #panelView > .dash-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
  #panelView > .dash-main {
    padding-inline: 10px !important;
  }
  #panelView .dash-page,
  #panelView .dash-top,
  #panelView .role-hero,
  #panelView .role-stat-grid,
  #panelView .role-stat,
  #panelView .panel-grid,
  #panelView .panel,
  #panelView .panel-head,
  #panelView .data-table,
  #panelView .table-row {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }
  #panelView .dash-top,
  #panelView .panel-head {
    flex-wrap: wrap;
  }
  #panelView .stats,
  #panelView .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #panelView .role-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  #panelView .table-row {
    flex-wrap: wrap;
    overflow-wrap: anywhere;
  }
  #panelView .table-row > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  #panelView img,
  #panelView svg {
    max-width: 100%;
  }
  .dashboard-mobile-nav {
    box-sizing: border-box;
    right: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 350px) {
  #panelView .role-stat-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Unified mobile navigation: match the homepage bar across dashboard views. */
@media (max-width: 760px) {
  #panelView .side-nav { display: none !important; }
  #panelView .dash-main { padding-bottom: 96px !important; }
  .dashboard-mobile-nav {
    position: fixed !important; inset-inline: 0 !important; bottom: 0 !important; z-index: 1100 !important;
    display: none !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; direction: rtl !important;
    width: 100% !important; max-width: none !important; min-height: 62px !important; box-sizing: border-box !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    border: 0 !important; border-top: 1px solid #e7edf4 !important; border-radius: 0 !important;
    background: rgba(255,255,255,.98) !important; box-shadow: 0 -5px 20px rgba(31,53,82,.08) !important;
    backdrop-filter: none !important;
  }
  #panelView:not(.hidden) ~ .dashboard-mobile-nav { display: grid !important; }
  .dashboard-mobile-nav button {
    display: grid !important; align-content: center !important; justify-items: center !important; gap: 3px !important;
    min-width: 0 !important; min-height: 48px !important; padding: 4px 2px !important;
    border: 0 !important; border-radius: 12px !important; color: #596a81 !important;
    background: transparent !important; box-shadow: none !important; font-family: inherit !important;
    font-size: clamp(.58rem, 2.6vw, .70rem) !important; font-weight: 600 !important; line-height: 1.2 !important;
    text-align: center !important;
    transform: none !important;
  }
  .dashboard-mobile-nav button svg { width: 19px !important; height: 19px !important; }
  .dashboard-mobile-nav button.active:not([data-page="listings"]) {
    color: #596a81 !important; background: transparent !important; font-weight: 600 !important;
    box-shadow: none !important;
  }
  .dashboard-mobile-nav button[hidden] { display: none !important; }
  .dashboard-mobile-nav button[data-page="listings"] {
    min-height: 52px !important; border: 1px solid #ffe0bf !important; border-radius: 14px !important;
    color: #a84b08 !important; background: #fff3e6 !important; font-size: clamp(.62rem,2.8vw,.74rem) !important;
    font-weight: 800 !important; transform: translateY(-2px) !important;
  }
  .dashboard-mobile-nav button[data-page="listings"].active {
    color: #923d00 !important; background: #ffe8d2 !important; box-shadow: 0 5px 13px rgba(249,115,22,.18) !important;
  }
}
@media (max-width: 420px) { .dashboard-mobile-nav button { font-size: .61rem !important; } .dashboard-mobile-nav button svg { width: 18px !important; height: 18px !important; } }

/* Hide the results-count strip on small screens. */
@media (max-width: 760px) { .listing-section .listing-toolbar { display: none !important; } }

/* Live 0912 number suggestions */
.filters .search-panel { position: relative; }
.number-suggestions {
  display: grid;
  margin-top: 8px;
  max-height: 264px;
  overflow: auto;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 50, 91, .12);
}
.number-suggestions[hidden] { display: none; }
.number-suggestion-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
  color: #172334;
  text-align: right;
  cursor: pointer;
}
.number-suggestion-option:last-child { border-bottom: 0; }
.number-suggestion-option:hover,
.number-suggestion-option:focus-visible,
.number-suggestion-option[aria-selected="true"] { background: #f1f6ff; outline: none; }
.number-suggestion-value { direction: ltr; font: 800 15px/1.4 Arial, sans-serif; letter-spacing: .03em; }
.number-suggestion-price { color: #61738c; font-size: 12px; font-weight: 700; white-space: nowrap; }
.number-suggestions-empty { padding: 14px; color: #718096; font-size: 13px; text-align: center; }
@media (max-width: 600px) {
  .number-suggestions { max-height: 220px; border-radius: 10px; }
  .number-suggestion-option { min-height: 46px; padding-inline: 11px; }
}

/* Direct seller contact on active listing cards. */
.contact-seller-row { width: 100%; margin-top: 9px; }
.contact-seller-button {
  display: flex; flex-direction: row; direction: rtl; width: 100%; min-height: 38px; box-sizing: border-box;
  align-items: center; justify-content: center; gap: 7px; padding: 6px 10px;
  border: 1px solid #9adbc3; border-radius: 10px; background: #effbf5;
  color: #087f61 !important; font-size: 12px; font-weight: 800;
  text-decoration: none !important; transition: background .18s ease, transform .18s ease;
}
.contact-seller-button:hover, .contact-seller-button:focus-visible {
  background: #def6e9; border-color: #66c99e; transform: translateY(-1px);
}
.contact-seller-button svg { width: 16px; height: 16px; flex: 0 0 auto; }
@media (max-width: 600px) {
  .contact-seller-row { margin-top: 7px; }
  .contact-seller-button { min-height: 35px; font-size: 11px; }
}


/* Premium 0912 marketplace heading and direct price sorting controls. */
.listing-section .listing-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 4px 2px 18px !important;
  border-bottom: 1px solid #e8edf5 !important;
}
.market-listing-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.market-prefix-badge {
  display: flex; flex: 0 0 70px; flex-direction: column; align-items: center; justify-content: center;
  min-height: 64px; gap: 3px; border-radius: 16px 16px 7px 16px;
  background: linear-gradient(155deg,#075b6b,#06495a); color: #fff;
  box-shadow: 0 7px 16px rgba(5,83,101,.2);
}
.market-prefix-badge small { color: rgba(255,255,255,.78); font-size: 9px; font-weight: 700; }
.market-prefix-badge strong { font-size: 17px; line-height: 1.2; letter-spacing: .02em; }
.market-listing-title-copy { display: grid; gap: 4px; }
.market-listing-title-copy h2 { margin: 0; color: #173a4b; font-size: clamp(18px,2vw,24px); font-weight: 900; line-height: 1.35; }
.market-listing-title-copy #resultCount { color: #78889b; font-size: 12px; font-weight: 700; }
.market-list-sort { display: flex; align-items: center; gap: 8px; }
.market-list-sort button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px;
  padding: 0 14px; border: 1px solid #e0e8ef; border-radius: 12px;
  background: #fff; color: #476071; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  transition: .18s ease;
}
.market-list-sort button svg { width: 16px; height: 16px; }
.market-list-sort button:hover { border-color: #8fc2c5; background: #f2fbfa; color: #075b6b; }
.market-list-sort button[aria-pressed="true"] { border-color: #0a6672; background: #e8f6f5; color: #075b6b; box-shadow: 0 0 0 2px rgba(10,102,114,.08); }
@media (max-width: 600px) {
  .listing-section .listing-toolbar { align-items: stretch !important; flex-direction: column !important; gap: 12px !important; padding: 2px 0 14px !important; }
  .market-listing-title { gap: 10px; }
  .market-prefix-badge { flex-basis: 60px; min-height: 56px; border-radius: 14px 14px 6px 14px; }
  .market-prefix-badge strong { font-size: 15px; }
  .market-listing-title-copy h2 { font-size: 18px; }
  .market-list-sort { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .market-list-sort button { min-height: 40px; padding: 0 8px; }
}


/* Compact VIP showcase: separate from live listings until the API supports VIP flags. */
.vip-section { margin: 26px 0 42px; padding: 20px; border: 1px solid #f0dfb6; border-radius: 16px; background: linear-gradient(135deg,#fffdf7 0%,#fff 70%); box-shadow: 0 8px 24px rgba(116,83,25,.07); }
.vip-section[hidden] { display: none !important; }
.vip-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.vip-section-heading .eyebrow { margin: 0 0 4px; color: #a4761d; font-size: 11px; font-weight: 800; }
.vip-section-heading h2 { margin: 0; color: #18394c; font-size: clamp(18px,2vw,23px); font-weight: 900; }
.vip-sample-note,.vip-demo-tag { color: #796440; font-size: 10px; font-weight: 700; }
.vip-listing-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.vip-number-card { min-width: 0; padding: 14px; border: 1px solid #eee4cf; border-radius: 13px; background: #fff; box-shadow: 0 4px 12px rgba(29,45,58,.04); }
.vip-number-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vip-number-top .operator-tag { margin: 0; }
.vip-number-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 13px 0 5px; }
.vip-number-line h3 { min-width: 0; margin: 0; color: #173a4b; direction: ltr; text-align: left; font: 800 clamp(16px,2vw,21px)/1.3 Arial,sans-serif; letter-spacing: .015em; white-space: nowrap; }
.vip-badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 5px 9px; border-radius: 7px; background: linear-gradient(135deg,#c89224,#e2b94f); color: #fff; font: 900 11px/1 Arial,sans-serif; letter-spacing: .05em; box-shadow: 0 3px 8px rgba(171,123,24,.22); }
.vip-number-meta { margin: 0; color: #718091; font-size: 10px; }
.vip-number-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #f1eee7; color: #7a8490; font-size: 10px; }
.vip-number-price strong { color: #203b4b; font-size: 13px; white-space: nowrap; }
.vip-number-price small { color: #77828e; font-size: 9px; font-weight: 600; }
@media (max-width:600px) { .vip-section { margin: 18px 0 30px; padding: 13px; border-radius: 13px; } .vip-section-heading { align-items: start; flex-direction: column; gap: 4px; margin-bottom: 11px; } .vip-listing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; } .vip-number-card { padding: 10px 8px; border-radius: 11px; } .vip-number-line { gap: 5px; margin-top: 11px; } .vip-number-line h3 { font-size: clamp(13px,4vw,16px); letter-spacing: 0; } .vip-badge { min-width: 35px; padding: 5px 6px; font-size: 10px; } .vip-number-meta { font-size: 9px; white-space: nowrap; } .vip-number-price { margin-top: 9px; padding-top: 8px; font-size: 9px; } .vip-number-price strong { font-size: 11px; } .vip-demo-tag,.vip-sample-note { font-size: 9px; } }


/* Blue phone-number card backgrounds */
.number-card, .vip-number-card { background-color: #e8f2ff !important; border-color: #b9d3f5 !important; }
.number-card-head, .number-card-foot { background-color: #e8f2ff !important; }


/* Hamburger account actions: two columns */
@media (max-width: 760px) {
  .mobile-menu-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .mobile-menu-actions > .mobile-register,
  .mobile-menu-actions > .mobile-login {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 6px;
    white-space: nowrap;
    font-size: 12px;
  }
  .mobile-menu-actions > .mobile-register svg,
  .mobile-menu-actions > .mobile-login svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }
  .mobile-menu-actions > .mobile-sell {
    grid-column: 1 / -1;
    margin: 0 !important;
  }
}


/* Center the brand logo in the hamburger menu */
.mobile-menu-head {
  position: relative;
  justify-content: center;
}
.mobile-menu-logo {
  display: block;
  flex: 0 0 auto;
  width: 148px;
  height: 44px;
  object-fit: contain;
}
.mobile-menu-close {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
}


/* Number cards: four columns on desktop, two columns on mobile. */
body .listing-section #listingGrid.listing-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  gap: 12px !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  scroll-snap-type: none !important;
}
body .listing-section #listingGrid.listing-grid > .number-card {
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
}
@media (max-width: 900px) {
  body .listing-section #listingGrid.listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}
@media (max-width: 380px) {
  body .listing-section #listingGrid.listing-grid { gap: 7px !important; }
}
/* Keep the marketplace area visible when there are no live listings. */
body .listing-section.is-empty .listing-table-head { display: none !important; }
body .listing-section.is-empty .empty-state { display: block; }

/* Decorative 0912 placeholders used only before the first real listing. */
body .listing-section #listingGrid > .listing-placeholder {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 176px !important;
  padding: 15px !important;
  border: 1px solid #c9dcf4 !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #f5f9ff, #e7f1ff) !important;
  box-shadow: 0 5px 16px rgba(27, 76, 135, .08) !important;
}
.listing-placeholder .placeholder-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.listing-placeholder .placeholder-label { padding: 4px 8px; border-radius: 999px; background: #dceafe; color: #245b9e; font-size: 10px; font-weight: 800; }
.listing-placeholder h3 { margin: 2px 0 0 !important; color: #174b83 !important; font: 800 clamp(17px, 1.5vw, 21px)/1.3 Arial, sans-serif !important; letter-spacing: .03em; text-align: right; direction: ltr; }
.listing-placeholder h3 span { color: #6d8eb5; letter-spacing: .08em; }
.listing-placeholder .placeholder-meta { margin: 0 !important; color: #637991; font-size: 11px; }
.listing-placeholder .placeholder-caption { padding-top: 8px; border-top: 1px solid #d3e2f5; color: #53759c; font-size: 10px; font-weight: 700; }
body .listing-section.is-empty .empty-state[hidden] { display: none !important; }
@media (max-width: 600px) {
  body .listing-section #listingGrid > .listing-placeholder { min-height: 154px !important; padding: 11px !important; border-radius: 12px !important; }
  .listing-placeholder .placeholder-label { padding: 3px 6px; font-size: 9px; }
  .listing-placeholder h3 { font-size: clamp(14px, 4vw, 17px) !important; }
  .listing-placeholder .placeholder-meta, .listing-placeholder .placeholder-caption { font-size: 9px; }
}

}

/* Desktop-only layout recovery: isolate desktop/tablet from mobile rules. */
@media (min-width: 761px) {
  body { overflow-x: hidden; }
  .container { width: min(1440px, calc(100% - 48px)) !important; max-width: 1440px !important; }
  .mobile-bottom-nav,
  .mobile-menu-toggle,
  .mobile-menu-backdrop,
  .mobile-menu,
  .mobile-filter-backdrop,
  .mobile-filter-close-row { display: none !important; }
  .market-layout {
    display: grid !important;
    grid-template-columns: minmax(225px, 270px) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 18px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto !important;
  }
  .market-layout > .filters,
  .market-layout .filters,
  .market-layout > .filter-column {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding: 18px !important;
    border-radius: 16px !important;
  }
  .market-layout > .listing-section,
  .market-layout .listing-section {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 16px !important;
    overflow: visible !important;
  }
  body .listing-section #listingGrid.listing-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  body .listing-section #listingGrid.listing-grid > .number-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
  }
  .number-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
    padding: 0 0 9px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f7 !important;
    background: transparent !important;
  }
  .number-card-head .operator-cell { display: inline-flex !important; }
  .number-card .seller-name,
  .number-card .brand-name,
  .number-card .site-brand { display: none !important; }
  .number-card h3 {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 11px 8px !important;
    border: 1px solid #e7edf6 !important;
    border-radius: 11px !important;
    background: #f5f9ff !important;
    color: #174b83 !important;
    text-align: center !important;
    font-size: clamp(19px, 1.65vw, 25px) !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  .number-card .number-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .number-card .number-meta span {
    padding: 5px 8px !important;
    border-radius: 8px !important;
    background: #f2f6fb !important;
    font-size: 11px !important;
  }
  .number-card-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    min-width: 0 !important;
    margin-top: auto !important;
    padding: 10px 0 0 !important;
    border-top: 1px solid #e8eef6 !important;
  }
  .number-card-actions { display: flex !important; align-items: center !important; gap: 7px !important; }
  .number-card-actions .details-button { white-space: nowrap !important; }
  .listing-section.is-empty .listing-table-head { display: none !important; }
  .vip-listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1000px) {
  body .listing-section #listingGrid.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .vip-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1280px) {
  body .listing-section #listingGrid.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .vip-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}


/* Desktop homepage section grid repair — mobile rules remain unchanged. */
@media (min-width: 761px) {
  main > .vip-section,
  main > .trade-process,
  main > .market-tools {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .vip-listing-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 14px !important;
    width: 100%;
  }
  .vip-number-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    min-height: 190px;
    height: 100%;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid #dce8f6;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #f5f9ff 100%);
    box-shadow: 0 8px 22px rgba(23, 75, 131, .08);
  }
  .vip-number-top,
  .vip-number-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
  .vip-number-line { margin-block: 18px 12px; }
  .vip-number-line h3 { min-width: 0; margin: 0; font-size: clamp(20px, 1.7vw, 27px); line-height: 1.35; white-space: nowrap; }
  .vip-number-meta { margin: auto 0 0; line-height: 1.8; }

  .trade-process {
    display: block !important;
    min-width: 0;
    padding: 24px !important;
    border: 1px solid #dce8f6;
    border-radius: 20px;
    background: linear-gradient(135deg, #f3f8ff, #fff 70%);
    box-sizing: border-box;
  }
  .trade-process > div { max-width: 760px; margin: 0 0 20px; }
  .trade-process > div h2 { margin-bottom: 0; }
  .trade-process > ol {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 14px !important;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .trade-process > ol > li {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    min-height: 128px;
    padding: 16px !important;
    border: 1px solid #e0eaf7 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: 0 5px 16px rgba(31, 65, 105, .05);
    box-sizing: border-box;
  }
  .trade-process > ol > li > b { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e8f1ff; color: #1769d1; }
  .trade-process > ol > li > span { display: block; min-width: 0; line-height: 1.8; overflow-wrap: anywhere; }
  .trade-process > ol > li strong { display: block; margin-bottom: 5px; color: #173c67; }

  .market-tools > .tool-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 14px !important;
    width: 100%;
    min-width: 0;
  }
  .market-tools .tool-card {
    display: flex !important;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 170px;
    height: 100%;
    padding: 18px !important;
    border: 1px solid #e0eaf7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(31, 65, 105, .06);
    box-sizing: border-box;
  }
  .market-tools .tool-card > div { flex: 1 1 auto; min-width: 0; }
  .market-tools .tool-card h3 { line-height: 1.5; }
  .market-tools .tool-card p { line-height: 1.9; overflow-wrap: anywhere; }
}

@media (min-width: 1000px) {
  .vip-listing-grid,
  .market-tools > .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1280px) {
  .vip-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* Intermediate-width layout for non-filter homepage sections. */
@media (min-width: 761px) and (max-width: 999px) {
  .trade-process > ol { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .trade-process > ol > li:last-child { grid-column: 1 / -1; }
  .vip-number-card { padding: 16px; }
  .vip-number-line h3 { font-size: clamp(18px, 2.5vw, 24px); }
}

/* Refined MCI marketplace: compact filter rail and responsive number cards. */
.market-layout {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  max-width: 1420px;
  margin-inline: auto;
}
.market-layout > .filters {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e1e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(22, 54, 88, .07);
}
.filter-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:16px; }
.filter-title h2 { margin:0; color:#123d59; font-size:18px; }
.market-layout .search-panel,
.market-layout .filter-group { min-width:0; padding:14px 0; border-top:1px solid #edf1f5; }
.market-layout .search-panel { padding-top:0; border-top:0; }
.market-layout .search-row { display:flex; align-items:center; gap:8px; min-height:48px; padding:0 10px; border:1px solid #d7e1eb; border-radius:11px; background:#f8fafc; }
.market-layout .search-row:focus-within { border-color:#1682a5; background:#fff; box-shadow:0 0 0 3px rgba(22,130,165,.12); }
.market-layout .search-prefix { flex:0 0 auto; padding:6px 8px; border-radius:7px; background:#e7f3f8; color:#075673; font-weight:800; direction:ltr; }
.market-layout #numberSearch { min-width:0; width:100%; border:0; outline:0; background:transparent; text-align:right; }
.market-layout .quick-code-heading { display:flex; justify-content:space-between; gap:8px; margin:12px 0 8px; color:#526477; font-size:12px; }
.market-layout .quick-code-options { display:flex; flex-wrap:wrap; gap:6px; }
.market-layout .quick-code-options button { min-width:34px; min-height:32px; border:1px solid #dfe7ef; border-radius:8px; background:#fff; color:#28485f; }
.market-layout .filter-group h3 { margin:0 0 10px; color:#254257; font-size:14px; }
.market-layout .radio-line { display:flex; align-items:center; gap:8px; min-height:34px; color:#44596b; font-size:13px; }
.market-layout .price-inputs { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:7px; }
.market-layout .price-inputs input { min-width:0; width:100%; height:40px; padding:0 9px; border:1px solid #dce5ed; border-radius:9px; background:#fff; }
.market-layout .sort-select { display:grid; gap:6px; margin-top:10px; color:#566a7b; font-size:12px; }
.market-layout .sort-select select { width:100%; min-height:40px; padding:0 9px; border:1px solid #dce5ed; border-radius:9px; background:#fff; color:#23435a; }
.market-layout .status-chips { display:flex; gap:7px; }
.market-layout .status-chips button { min-height:34px; padding:0 13px; border:1px solid #dce5ed; border-radius:9px; background:#fff; color:#40596d; }
.market-layout .listing-section { min-width:0; }
.listing-section .listing-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 14px; padding:14px 16px; border:1px solid #e1e8f0; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(22,54,88,.05); }
.market-listing-title { min-width:0; }
.market-listing-title-copy h2 { margin:0; color:#123d59; font-size:clamp(17px,2vw,22px); }
.market-listing-title-copy span { color:#6b7e8f; font-size:12px; }
.market-prefix-badge { display:inline-flex; align-items:center; gap:7px; }
.listing-section #listingGrid.listing-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important; }
.listing-section #listingGrid > .number-card { min-width:0; overflow:hidden; border:1px solid #dfe8f1; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(21,54,85,.06); }
.listing-section #listingGrid > .number-card h3 { overflow-wrap:anywhere; color:#123f60; }
.listing-section #listingGrid > .number-card .operator-tag { align-self:flex-start; }
.number-suggestions { z-index:20; border:1px solid #dfe7ef; border-radius:11px; box-shadow:0 12px 28px rgba(20,48,75,.14); }
@media (min-width: 761px) {
  .market-layout { grid-template-columns:minmax(220px,250px) minmax(0,1fr); gap:18px; }
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (min-width: 1080px) {
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (min-width: 1360px) {
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media (max-width: 760px) {
  .market-layout { display:block; }
  .market-layout > .filters { position:fixed; }
  .listing-section .listing-toolbar { align-items:center; gap:8px; padding:11px; }
  .market-listing-title-copy h2 { font-size:16px; }
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:9px !important; }
  .listing-section #listingGrid > .number-card { border-radius:12px; }
}

/* 0912 marketplace refinement — desktop rail, card density and mobile drawer. */
.market-layout { width:min(100% - 32px, 1480px); gap:20px; }
.market-layout > .filters { border-radius:18px; box-shadow:0 12px 34px rgba(11,53,82,.09); }
.market-layout .filter-title h2 { font-size:19px; font-weight:800; }
.market-layout .search-panel label { display:block; margin-bottom:10px; color:#183e56; font-weight:750; }
.market-layout .search-row { min-height:52px; border:1.5px solid #b9d5e3; background:#f4fbfd; }
.market-layout .search-row:focus-within { border-color:#0584a8; box-shadow:0 0 0 4px rgba(5,132,168,.13); }
.market-layout .quick-code-options button { cursor:pointer; font-weight:750; transition:background .15s,border-color .15s,color .15s; }
.market-layout .quick-code-options button:hover,
.market-layout .quick-code-options button.active,
.market-layout .status-chips button.active { border-color:#087b9d; background:#e6f6fb; color:#075875; }
.market-layout .filter-group { padding-block:16px; }
.market-layout .price-inputs input:focus,
.market-layout .sort-select select:focus { outline:2px solid #8dd2e3; outline-offset:1px; }
.listing-section .listing-toolbar { min-height:72px; border-radius:17px; background:linear-gradient(125deg,#f3fbfd,#fff 65%); }
.listing-section #listingGrid > .number-card { display:flex; flex-direction:column; height:100%; box-sizing:border-box; border-color:#d8e5ed; border-radius:16px; box-shadow:0 8px 25px rgba(10,58,83,.07); transition:transform .18s,box-shadow .18s,border-color .18s; }
.listing-section #listingGrid > .number-card:hover { transform:translateY(-3px); border-color:#92cbd8; box-shadow:0 15px 32px rgba(10,58,83,.13); }
.listing-section #listingGrid > .number-card h3 { direction:ltr; unicode-bidi:isolate; text-align:center; margin-block:10px; padding:10px 5px; border-radius:11px; background:#eaf5fd; color:#0b4f7a !important; font-variant-numeric:tabular-nums; font-size:clamp(16px,1.45vw,22px); line-height:1.45; white-space:nowrap; overflow-wrap:normal; }
.listing-section #listingGrid > .number-card .number-meta { display:flex; flex-wrap:wrap; justify-content:center; gap:5px; }
.listing-section #listingGrid > .number-card .number-card-foot { margin-top:auto; }
.listing-section #listingGrid > .number-card .details-button { color:#fff !important; }
.listing-section #listingGrid > .listing-placeholder { min-height:205px; padding:14px; }
.listing-section #listingGrid > .listing-placeholder h3 { width:100%; margin:14px 0 8px; letter-spacing:.04em; }
.listing-section #listingGrid > .listing-placeholder .placeholder-top { width:100%; display:flex; align-items:center; justify-content:space-between; gap:6px; }
.listing-section #listingGrid > .listing-placeholder .placeholder-caption { margin-top:auto; }
@media (min-width:1280px) {
  .market-layout { grid-template-columns:250px minmax(0,1fr); }
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media (min-width:761px) and (max-width:1279px) {
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (min-width:761px) and (max-width:1000px) {
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:760px) {
  .market-layout { width:calc(100% - 20px); }
  .market-layout > .filters { width:min(380px,100vw) !important; max-width:100vw; box-sizing:border-box; border-radius:18px 0 0 18px; overflow-y:auto; overscroll-behavior:contain; }
  .listing-section .listing-toolbar { min-height:64px; }
  .listing-section #listingGrid.listing-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
  .listing-section #listingGrid > .number-card { border-radius:13px; }
  .listing-section #listingGrid > .number-card h3 { font-size:clamp(13px,3.6vw,17px) !important; padding:8px 2px; }
  .listing-section #listingGrid > .listing-placeholder { min-height:174px; padding:10px; }
  .listing-section #listingGrid > .listing-placeholder .placeholder-meta { font-size:11px; }
  .listing-section #listingGrid > .listing-placeholder .placeholder-caption { font-size:11px; }
}

/* BuySellSim search filter: match the supplied desktop and mobile references. */
#market-filters.filters {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dce3e9;
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
  color: #101820;
}
#market-filters .filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  color: #fff;
  background: #004c63;
}
#market-filters .filter-title h2 { margin: 0; color: inherit; font-size: 1rem; font-weight: 800; }
#market-filters .filter-title > i { width: 17px; height: 17px; color: #ff8a00; }
#market-filters .filter-title #clearFilters {
  margin-inline-start: auto;
  border: 0;
  border-radius: 6px;
  padding: 4px 7px;
  color: #536273;
  background: #e8edf1;
  font: inherit;
  font-size: .69rem;
  cursor: pointer;
}
#market-filters .filter-body { min-height: 0; padding: 0 12px; overflow-y: auto; overscroll-behavior: contain; }
#market-filters .filter-accordion,
#market-filters .filter-field,
#market-filters .toggle-filter { border-bottom: 1px solid #dbe1e6; }
#market-filters .filter-accordion { margin: 0; }
#market-filters .filter-accordion > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  list-style: none;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
}
#market-filters .filter-accordion > summary::-webkit-details-marker { display: none; }
#market-filters .filter-accordion > summary::before { content: '⌄'; order: 1; margin-inline-start: auto; color: #566a7e; font-size: 15px; font-weight: 500; }
#market-filters .filter-accordion > summary > span { order: 2; }
#market-filters .filter-accordion > summary > small { order: 3; margin-inline-start: 2px; color: #718096; font-size: .68rem; font-weight: 500; }
#market-filters .filter-accordion > summary > b { order: 4; margin-inline-start: auto; padding: 4px 6px; border-radius: 5px; color: #66717c; background: #e8edf1; font-size: .65rem; font-weight: 600; }
#market-filters .filter-detail { padding: 0 2px 10px; color: #526174; font-size: .73rem; line-height: 1.7; }
#market-filters .filter-field { padding: 9px 0; }
#market-filters .filter-field > label,
#market-filters .filter-field > label:first-child { display: block; margin: 0 0 7px; font-size: .86rem; font-weight: 800; }
#market-filters .digit-entry { position: relative; min-height: 34px; }
#market-filters .digit-boxes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; min-height: 34px; }
#market-filters .digit-boxes [data-number-box] { display: block; min-width: 0; border: 1px solid #aab7c3; border-radius: 9px; background: #fff; }
#market-filters .digit-entry:focus-within .digit-boxes [data-number-box] { border-color: #00708b; box-shadow: 0 0 0 1px rgba(0,112,139,.1); }
#market-filters #numberSearch { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; opacity: .015; cursor: text; }
#market-filters .number-suggestions { position: relative; z-index: 5; max-height: 180px; overflow: auto; border: 1px solid #dbe1e6; border-radius: 9px; background: #fff; }
#market-filters .quick-code-filter, #market-filters .sort-accordion { display: none !important; }
#market-filters .price-field { padding-top: 9px; }
#market-filters .price-line { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 6px; margin: 4px 0; }
#market-filters .price-line > span { font-size: .75rem; font-weight: 800; }
#market-filters .price-line > input,
#market-filters .filter-detail select,
#market-filters .location-selects select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 33px;
  padding: 5px 8px;
  border: 1px solid #d3dce4;
  border-radius: 8px;
  color: #243446;
  background: #fff;
  font: inherit;
  font-size: .75rem;
}
#market-filters .condition-options { display: flex; gap: 6px; }
#market-filters .condition-options button { flex: 1; min-height: 31px; border: 1px solid #d3dce4; border-radius: 7px; color: #526174; background: #fff; font: inherit; font-size: .72rem; cursor: pointer; }
#market-filters .condition-options button[aria-pressed="true"] { border-color: #ff8a00; color: #fff; background: #ff8a00; }
#market-filters .type-field > label { margin-bottom: 7px; }
#market-filters .type-segment { display: flex; width: 100%; padding: 3px; border: 1px solid #b9c5cf; border-radius: 9px; }
#market-filters .type-segment label { flex: 1; min-width: 0; cursor: pointer; }
#market-filters .type-segment input { position: absolute; opacity: 0; pointer-events: none; }
#market-filters .type-segment span { display: block; padding: 5px 3px; border-radius: 6px; color: #667789; text-align: center; font-size: .69rem; }
#market-filters .type-segment input:checked + span { color: #fff; background: #ff8a00; }
#market-filters .toggle-filter { display: flex; align-items: center; justify-content: space-between; min-height: 41px; margin: 0; font-size: .84rem; font-weight: 800; cursor: pointer; }
#market-filters .toggle-filter input { position: absolute; opacity: 0; }
#market-filters .toggle-filter i { position: relative; width: 38px; height: 21px; border: 1px solid #d1d8de; border-radius: 20px; background: #fff; }
#market-filters .toggle-filter i::after { position: absolute; top: 3px; inset-inline-start: 3px; width: 13px; height: 13px; border-radius: 50%; background: #c5cbd0; content: ''; transition: transform .16s ease; }
#market-filters .toggle-filter input:checked + i { border-color: #ff8a00; background: #ff8a00; }
#market-filters .toggle-filter input:checked + i::after { background: #fff; transform: translateX(-16px); }
#market-filters .filter-note { margin: 7px 0 0; color: #718096; font-size: .67rem; line-height: 1.6; }
#market-filters .location-selects { display: grid; gap: 7px; }
#market-filters .filter-actions { display: flex; gap: 7px; padding: 9px 12px 11px; background: #fff; }
#market-filters #applyFilters { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 36px; border: 0; border-radius: 9px; color: #fff; background: #004c63; font: inherit; font-size: .77rem; font-weight: 800; cursor: pointer; }
#market-filters #applyFilters svg { width: 16px; height: 16px; color: #ff8a00; }
@media (min-width: 761px) {
  #market-filters.filters { position: sticky; top: 16px; max-height: calc(100vh - 32px); }
  #market-filters .filter-body { flex: 1 1 auto; }
  #market-filters .filter-actions { padding-top: 8px; }
  #market-filters .mobile-filter-close { display: none !important; }
}
@media (max-width: 760px) {
  #market-filters .filter-title { min-height: 39px; }
  #market-filters .filter-title h2 { font-size: .9rem; }
  #market-filters .filter-body { flex: 1 1 auto; padding-inline: 10px; }
  #market-filters .filter-accordion > summary { min-height: 39px; font-size: .78rem; }
  #market-filters .filter-field { padding-block: 7px; }
  #market-filters .filter-field > label, #market-filters .filter-field > label:first-child { margin-bottom: 5px; font-size: .78rem; }
  #market-filters .digit-entry, #market-filters .digit-boxes { min-height: 29px; }
  #market-filters .digit-boxes [data-number-box] { border-radius: 7px; }
  #market-filters .price-line > input, #market-filters .filter-detail select, #market-filters .location-selects select { min-height: 30px; font-size: .7rem; }
  #market-filters .toggle-filter { min-height: 37px; font-size: .76rem; }
  #market-filters .filter-actions { padding: 8px 10px 10px; }
  #market-filters .mobile-filter-close { display: inline-flex !important; align-items: center; justify-content: center; gap: 5px; min-height: 36px; border: 0; border-radius: 8px; color: #596575; background: #e8edf1; font: inherit; font-size: .72rem; }
}

#market-filters .condition-options button.active { background:#ff9800; color:#fff; border-color:#ff9800; }

/* Match the marketplace number grid at every viewport width. */
.vip-section .vip-listing-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
@media (min-width: 1080px) {
  .vip-section .vip-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1360px) {
  .vip-section .vip-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* Keep the smart buying and selling guide content within its cards. */
.market-tools,
.market-tools > .section-title,
.market-tools > .section-title > div,
.market-tools > .tool-grid,
.market-tools .tool-card,
.market-tools .tool-card > div {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.market-tools { width: 100%; }
.market-tools .section-title h2,
.market-tools .tool-card h3,
.market-tools .tool-card p,
.market-tools .tool-card a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.market-tools > .tool-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
  width: 100%;
}
.market-tools .tool-card { width: 100%; }
.market-tools .tool-card > span.tool-icon { flex: 0 0 42px; }
.market-tools .tool-card > div { flex: 1 1 0; }
.market-tools .tool-card a { white-space: normal; }
@media (min-width: 761px) and (max-width: 999px) {
  .market-tools > .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  .market-tools > .tool-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .market-tools .tool-card { min-height: 0; height: auto; }
}

/* Mobile marketplace heading: title on the right with prefix and sort controls in one row. */
@media (max-width: 600px) {
  .listing-section .listing-toolbar {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 2px 0 11px !important;
    direction: rtl !important;
  }
  .market-listing-title {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 0 !important;
  }
  .market-listing-title-copy {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    text-align: right !important;
  }
  .market-listing-title-copy h2 {
    overflow: hidden !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .market-listing-title-copy #resultCount { display: none !important; }
  .market-prefix-badge {
    box-sizing: border-box !important;
    flex: 0 0 49px !important;
    min-height: 36px !important;
    gap: 1px !important;
    border-radius: 8px !important;
  }
  .market-prefix-badge small { font-size: 7px !important; }
  .market-prefix-badge strong { font-size: 12px !important; }
  .market-list-sort {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
  }
  .market-list-sort button {
    flex: 0 1 auto !important;
    gap: 3px !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 4px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }
  .market-list-sort button svg { width: 12px !important; height: 12px !important; }
}
@media (max-width: 370px) {
  .market-list-sort button svg { display: none !important; }
  .market-list-sort button { font-size: 9px !important; padding-inline: 3px !important; }
  .market-prefix-badge { flex-basis: 45px !important; }
  .market-listing-title-copy h2 { font-size: 11px !important; }
}


/* Hamrah Aval labels and the official local MCI logo in number cards. */
.listing-section #listingGrid > .number-card .operator-cell { direction: rtl; }
.listing-section #listingGrid > .number-card .operator-name { color: #075875; font-size: 11px; font-weight: 800; white-space: nowrap; }
.listing-section #listingGrid > .listing-placeholder .placeholder-top { direction: rtl; justify-content: flex-start; }
.vip-number-top .operator-tag.mci { direction: rtl; gap: 6px; max-width: none; white-space: nowrap; }
.vip-number-top .mci-logo-image { display: block; width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }

/* Mobile outer gutters for marketplace content. */
@media (max-width: 760px) {
  main {
    box-sizing: border-box;
    padding-inline: 12px;
  }
  main > .container {
    width: 100% !important;
    margin-inline: 0 !important;
  }
  main > section {
    width: 100%;
    box-sizing: border-box;
  }
  main > .market-layout {
    width: 100% !important;
  }
}


/* VIP cards aligned with the marketplace listing cards; compact crown badge from the reference. */
.vip-section .vip-listing-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
}
@media (min-width: 1000px) {
  .vip-section .vip-listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 1280px) {
  .vip-section .vip-listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.vip-section .vip-listing-grid > .vip-number-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 15px !important;
  border: 1px solid #d8e5ed !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(10, 58, 83, .07) !important;
  box-sizing: border-box !important;
}
.vip-section .vip-number-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  padding: 0 0 9px !important;
  border: 0 !important;
  border-bottom: 1px solid #edf1f7 !important;
  background: transparent !important;
}
.vip-section .vip-number-line {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.vip-section .vip-number-line h3 {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 11px 8px !important;
  border: 1px solid #e7edf6 !important;
  border-radius: 11px !important;
  background: #f5f9ff !important;
  color: #174b83 !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: center !important;
  font-size: clamp(16px, 1.65vw, 25px) !important;
  line-height: 1.3 !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.vip-section .vip-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 3px 6px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #ffb900 !important;
  color: #073f5a !important;
  font: 800 10px/1 Arial, sans-serif !important;
  letter-spacing: .01em !important;
  box-shadow: none !important;
}
.vip-section .vip-badge-icon { display: block !important; width: 10px !important; height: 10px !important; flex: 0 0 10px !important; }
.vip-section .vip-number-meta {
  min-width: 0 !important;
  margin: auto 0 0 !important;
  padding-top: 8px !important;
  border-top: 1px solid #edf1f7 !important;
  color: #637386 !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
}
@media (max-width: 760px) {
  .vip-section .vip-listing-grid { gap: 14px !important; }
  .vip-section .vip-listing-grid > .vip-number-card { gap: 8px !important; padding: 11px 9px !important; }
  .vip-section .vip-number-line h3 { padding: 9px 4px !important; font-size: clamp(13px, 4vw, 16px) !important; }
  .vip-section .vip-number-meta { font-size: 9px !important; }
  .vip-section .vip-badge { padding: 3px 5px !important; font-size: 9px !important; }
  .vip-section .vip-badge-icon { width: 9px !important; height: 9px !important; flex-basis: 9px !important; }
}


/* Match VIP operator label to the rand listing card structure. */
.vip-section .vip-number-top .placeholder-label { padding: 4px 8px; border-radius: 999px; background: #dceafe; color: #245b9e; font-size: 10px; font-weight: 800; }
@media (max-width: 600px) { .vip-section .vip-number-top .placeholder-label { padding: 3px 6px; font-size: 9px; } }


/* VIP cards follow the live rand-SIM marketplace grid dimensions. */
.vip-section .vip-listing-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
.vip-section .vip-number-card{box-sizing:border-box!important;min-width:0;min-height:205px;padding:14px!important;border-radius:14px!important;display:flex;flex-direction:column;height:100%}
.vip-section .vip-number-top{display:flex;align-items:center;justify-content:space-between;direction:rtl;gap:8px}
.vip-section .vip-operator-tag{display:inline-flex;align-items:center;justify-content:flex-start;flex-direction:row;direction:rtl;gap:6px;min-width:0}
.vip-section .vip-operator-tag .placeholder-label{white-space:nowrap}
.vip-section .vip-number-top .mci-logo-image{display:block;width:24px;height:24px;object-fit:contain;flex:0 0 auto}
.vip-section .vip-number-line .vip-badge{display:none!important}
.vip-section .vip-number-meta{margin:0!important}
.vip-section .vip-contact-row{width:100%;margin-top:auto;padding-top:8px}
.vip-section .vip-contact-button{width:100%;min-height:38px;box-sizing:border-box;direction:rtl;flex-direction:row;gap:7px}
.vip-section .vip-contact-button svg{width:16px;height:16px;flex:0 0 auto}
@media(min-width:1001px){.vip-section .vip-listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:1280px){.vip-section .vip-listing-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:760px){.vip-section .vip-listing-grid{gap:8px!important}.vip-section .vip-number-card{min-height:174px;padding:10px!important;border-radius:13px!important}.vip-section .vip-contact-row{padding-top:7px}.vip-section .vip-contact-button{min-height:35px;font-size:11px}}
@media(max-width:380px){.vip-section .vip-listing-grid{gap:7px!important}}


/* Page width increased by 20px on desktop and 10px on mobile. */
@media (min-width: 761px) {
  .container {
    width: min(1410px, calc(100% - 30px)) !important;
    max-width: 1410px !important;
  }
  main {
    width: min(1130px, calc(100% - 30px)) !important;
    margin-inline: auto !important;
    box-sizing: border-box !important;
  }
  main > .container { width: 100% !important; }
  #authView.auth-page { padding-inline: 15px !important; }
  #authView .auth-layout { width: min(1130px, 100%) !important; margin-inline: auto !important; }
  #panelView.app-shell { width: calc(100% - 30px) !important; margin-inline: auto !important; }
}
@media (max-width: 760px) {
  .container:not(.header-inner) { width: calc(100% - 40px) !important; }
  main {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box !important;
  }
  main > .container { width: 100% !important; margin-inline: 0 !important; }
  #authView.auth-page { padding-inline: 20px !important; }
  #authView .auth-layout { width: 100% !important; }
  #panelView.app-shell {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }
}

/* Slightly more breathing room between marketplace number cards. */

.listing-section #listingGrid.listing-grid { gap:16px !important; }

@media (max-width:760px) { .listing-section #listingGrid.listing-grid { gap:12px !important; } }

/* Keep VIP and marketplace sections aligned at every viewport width. */
main > .market-layout,
main > #vip-listings.vip-section {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
}


/* VIP heading toolbar-style card, matching the rand SIM listing header. */
.vip-section .vip-section-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  border: 1px solid #e1e8f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(22, 54, 88, .05) !important;
}
.vip-section .vip-section-heading > div { min-width: 0 !important; }
@media (max-width: 600px) {
  .vip-section .vip-section-heading {
    padding: 10px 12px !important;
    margin-bottom: 11px !important;
  }
}


/* Center seller contact content in both market card sections. */
.listing-section .contact-seller-row,
.vip-section .vip-contact-row {
  display: flex !important;
  justify-content: center !important;
}
.listing-section .contact-seller-button,
.vip-section .vip-contact-button {
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}


/* server-update-20261007-mobile-only-headings-and-card-edges */
/* Slightly stronger outlines and a soft shadow for the visible marketplace panels and cards. */
main > .market-layout,
main > .market-layout > .filters,
main > .market-layout > .listing-section,
main > .market-heading,
main > .vip-section,
main > .trade-process,
main > .market-tools,
main .number-card,
main .vip-number-card,
main .tool-card,
main .process-card {
  box-sizing: border-box;
  border-color: #c5d3e0 !important;
  box-shadow: 0 5px 15px rgba(23, 43, 77, .09) !important;
}

/* Match the rounded MCI logo frame used by the regular SIM cards. */
.vip-section .vip-number-top .mci-logo-image {
  border: 1px solid #e5edf8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(21, 94, 239, .16);
}

/* Mobile-only heading adjustments: desktop typography and alignment stay unchanged. */
@media (max-width: 600px) {
  .market-tools > .section-title,
  .market-tools > .section-title > div {
    justify-content: center !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .market-tools > .section-title h2 {
    width: 100%;
    font-size: 18px !important;
    text-align: center !important;
  }
  .trade-process > div {
    margin-inline: auto !important;
    text-align: center !important;
  }
  .trade-process > div h2 {
    font-size: 18px !important;
    text-align: center !important;
  }
  .trade-process > div > .eyebrow {
    display: none !important;
  }
}

/* Frame the smart guide heading like the process heading panel. */
.market-tools > .section-title {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 0 0 18px !important;
  padding: 16px 20px !important;
  border: 1px solid #dfe8f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(29, 67, 122, .06);
}
.market-tools > .section-title > div { width: 100%; }
.market-tools > .section-title h2 { margin: 0; }


/* Add breathing room between the smart guide and footer. */
.market-tools { margin-bottom: 48px !important; }
@media (max-width: 760px) {
  .market-tools { margin-bottom: 30px !important; }
}
/* Center the footer brand logo and its description within their own block. */
.site-footer .footer-brand {
  display: flex;
  width: fit-content;
  margin: 0 auto 12px;
}
.site-footer .footer-brand-block > p {
  text-align: center;
}


/* server-update-20261007-mobile-center-operator-and-footer-copy */
/* Mobile only: center the operator and logo, and enlarge its name by 2px. */
@media (max-width: 760px) {
  .listing-section #listingGrid > .number-card .number-card-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-areas: "operator operator" "verified verified" !important;
    justify-content: stretch !important;
    row-gap: 4px !important;
  }
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell {
    grid-area: operator !important;
    justify-self: center !important;
    direction: rtl !important;
  }
  .listing-section #listingGrid > .number-card .number-card-head .verified {
    grid-area: verified !important;
    justify-self: center !important;
    max-width: 100% !important;
  }
  .listing-section #listingGrid > .number-card .operator-name {
    font-size: 13px !important;
  }
  .listing-section #listingGrid > .listing-placeholder .placeholder-top {
    justify-content: center !important;
  }
  .vip-section .vip-number-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  }
  .vip-section .vip-number-top .vip-operator-tag {
    grid-column: 2 !important;
    justify-self: center !important;
  }
  .vip-section .vip-number-top > .vip-badge {
    grid-column: 3 !important;
    justify-self: end !important;
  }
  .listing-section #listingGrid > .listing-placeholder .placeholder-label,
  .vip-section .vip-number-top .placeholder-label {
    font-size: 12px !important;
  }
}
@media (max-width: 600px) {
  .listing-section #listingGrid > .listing-placeholder .placeholder-label,
  .vip-section .vip-number-top .placeholder-label {
    font-size: 11px !important;
  }
}


/* Align the market tool titles with their icons and keep the mobile palette on desktop too. */
.market-tools .tool-card h3 {
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
}
.market-tools .tool-card h3 .tool-icon {
  display: inline-grid !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center !important;
  border-radius: 13px !important;
}
.market-tools .tool-card h3 .tool-icon.blue { color: #1769d1 !important; background: #e8f2ff !important; }
.market-tools .tool-card h3 .tool-icon.orange { color: #d86b10 !important; background: #fff0df !important; }
.market-tools .tool-card h3 .tool-icon.green { color: #138a62 !important; background: #e6f8f0 !important; }
.market-tools .tool-card h3 .tool-icon svg { color: inherit !important; stroke: currentColor !important; }
/* Keep the description and action aligned under the title text, after its icon. */
.market-tools .tool-card h3 + p,
.market-tools .tool-card h3 + p + a { margin-inline-start: 54px !important; }


/* server-update-20261007-final-market-copy */
.listing-section #listingGrid > .listing-placeholder .placeholder-meta {
  text-align: center !important;
}
.vip-section .vip-number-meta {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.vip-section .vip-prefix-meta {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  direction: rtl;
  color: #637386;
  font-size: 11px;
  line-height: 1.5;
}
.market-desktop-title { display: none; }
@media (min-width: 761px) {
  .listing-section .market-listing-title {
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
  .listing-section .market-listing-title .market-prefix-badge,
  .listing-section .market-listing-title .market-listing-title-copy {
    display: none !important;
  }
  .listing-section .market-listing-title .market-desktop-title {
    display: block !important;
    margin: 0 !important;
    color: #123d59 !important;
    font-size: clamp(17px, 2vw, 22px) !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }
}

/* server-update-20261007-desktop-market-heading-border-copy */
.market-heading-desktop-copy { display: none !important; }
@media (min-width: 761px) {
  .market-heading-mobile-copy { display: none !important; }
  .market-heading-desktop-copy { display: block !important; }
  main > .market-heading {
    border: 2px solid rgba(255, 255, 255, .78) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(8, 35, 65, .24), inset 0 0 0 1px rgba(8, 35, 65, .20) !important;
    margin-bottom: 18px !important;
  }
}

/* server-update-20261007-market-heading-inner-padding */
main > .market-heading { padding: clamp(26px, 3.2vw, 38px) !important; }
@media (max-width: 760px) {
  main > .market-heading { padding: 22px !important; }
}

/* server-update-20261007-market-sort-controls */
.market-list-sort { gap: 10px !important; }
.market-list-sort button { border-radius: 10px !important; }
@media (max-width: 760px) {
  .market-list-sort { gap: 6px !important; }
}
@media (min-width: 901px) {
  .listing-table-head { display: none !important; }
}


/* server-update-20261007-mobile-market-center-desktop-mci-label */
@media (min-width: 761px) {
  .listing-section #listingGrid > .number-card .operator-name,
  .listing-section #listingGrid > .listing-placeholder .placeholder-label,
  .listing-section #listingGrid > .listing-placeholder .placeholder-meta {
    display: none !important;
  }
}
@media (max-width: 760px) {
  .listing-section .listing-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .listing-section .market-listing-title {
    display: flex !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    text-align: center !important;
  }
  .listing-section .market-listing-title-copy,
  .listing-section .market-listing-title-copy h2 {
    text-align: center !important;
  }
  .listing-section .market-list-sort {
    display: flex !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    gap: 8px !important;
  }
  .listing-section .market-list-sort button {
    flex: 0 1 auto !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* server-update-20261007-mobile-header-logo-larger */
@media (max-width: 760px) {
  .site-header .brand { max-width: calc(100% - 88px) !important; }
  .site-header .brand-logo {
    width: clamp(146px, 44vw, 180px) !important;
    height: 52px !important;
    max-width: 100% !important;
  }
}


/* server-update-20261007-mobile-rand-toolbar-single-row */
@media (max-width: 760px) {
  .listing-section .listing-toolbar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }
  .listing-section .market-listing-title {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
  }
  .listing-section .market-listing-title .market-prefix-badge,
  .listing-section .market-listing-title .market-listing-title-copy {
    display: none !important;
  }
  .listing-section .market-listing-title .market-desktop-title {
    display: block !important;
    margin: 0 !important;
    font-size: clamp(12px, 3.6vw, 16px) !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  .listing-section .market-listing-title .market-desktop-title bdi {
    white-space: nowrap !important;
  }
  .listing-section .market-list-sort {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    gap: 4px !important;
  }
  .listing-section .market-list-sort button {
    flex: 0 0 auto !important;
    gap: 3px !important;
    min-width: 0 !important;
    padding: 6px 7px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }
  .listing-section .market-list-sort button svg {
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
  }
}
@media (max-width: 370px) {
  .listing-section .listing-toolbar { gap: 4px !important; }
  .listing-section .market-listing-title .market-desktop-title { font-size: 11px !important; }
  .listing-section .market-list-sort { gap: 3px !important; }
  .listing-section .market-list-sort button { padding: 5px 5px !important; font-size: 9px !important; }
  .listing-section .market-list-sort button svg { display: none !important; }
}

/* server-update-20261008-mobile-market-toolbar-spacing */
@media (max-width: 760px) {
  .listing-section .listing-toolbar { gap: 11px !important; }
  .listing-section .market-listing-title .market-desktop-title {
    font-size: clamp(14px, 4.1vw, 18px) !important;
  }
  .listing-section .market-list-sort { gap: 8px !important; }
}
@media (max-width: 370px) {
  .listing-section .listing-toolbar { gap: 7px !important; }
  .listing-section .market-listing-title .market-desktop-title { font-size: 12.5px !important; }
  .listing-section .market-list-sort { gap: 6px !important; }
}

/* server-update-20261008-mobile-hide-mci-card-logo */
@media (max-width: 760px) {
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-logo.mci,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .operator-logo.mci {
    display: none !important;
  }
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-name,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .placeholder-label {
    display: inline-flex !important;
  }
}


/* server-update-20261008-contact-phone-left-all-screens */
/* Keep the phone glyph visually left of the Persian seller-contact label on every viewport. */
.listing-section .contact-seller-button,
.vip-section .vip-contact-button {
  direction: ltr !important;
  flex-direction: row !important;
}
.listing-section .contact-seller-button > span,
.vip-section .vip-contact-button > span {
  direction: rtl !important;
  unicode-bidi: plaintext;
}
.listing-section .contact-seller-button > svg,
.listing-section .contact-seller-button > i,
.vip-section .vip-contact-button > svg,
.vip-section .vip-contact-button > i {
  flex: 0 0 auto;
}


/* Contact text size matches between rand and VIP cards on desktop and mobile. */
.listing-section .contact-seller-button,
.vip-section .vip-contact-button {
  font-size: 12px !important;
  white-space: nowrap !important;
}
.listing-section .contact-seller-button > span,
.vip-section .vip-contact-button > span {
  white-space: nowrap !important;
}
@media (max-width: 760px) {
  .listing-section .contact-seller-button,
  .vip-section .vip-contact-button {
    font-size: 11px !important;
  }
}


/* server-update-20261008-final-edits-sync */
@media (min-width: 761px) {
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-name,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .placeholder-label {
    display: inline-flex !important;
  }
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-logo.mci,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .operator-logo.mci {
    display: inline-flex !important;
  }
  .listing-section #listingGrid > .listing-placeholder .placeholder-meta { display: none !important; }
  .listing-section .market-listing-title { justify-content: flex-end !important; }
  .listing-section .market-listing-title .market-desktop-title {
    text-align: right !important; margin-inline-start: auto !important;
    margin-inline-end: 0 !important; padding-inline: 8px !important;
  }
}
@media (max-width: 760px) {
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-logo.mci,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .operator-logo.mci {
    display: none !important;
  }
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-name,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .placeholder-label {
    display: inline-flex !important;
  }
  .listing-section #listingGrid > .listing-placeholder .placeholder-meta {
    display: none !important;
  }
}


/* server-update-20261008-mobile-hide-mci-label-and-logo-rand-only */
@media (max-width: 760px) {
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-name,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .placeholder-label,
  .listing-section #listingGrid > .number-card .number-card-head .operator-cell .operator-logo.mci,
  .listing-section #listingGrid > .listing-placeholder .placeholder-top .operator-logo.mci {
    display: none !important;
  }
}
