/* Nuffx Marketplace */
.marketplace-page {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 2px 0 36px;
}

.marketplace-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 32px 26px;
  background: linear-gradient(135deg, rgba(14,27,53,.96), rgba(7,13,25,.97));
  box-shadow: var(--shadow-sm);
}

.marketplace-hero::after {
  content: "";
  position: absolute;
  inset: -45% -5% auto 52%;
  height: 420px;
  background: radial-gradient(circle, rgba(77,105,255,.18), transparent 64%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 320px;
  gap: 26px;
  align-items: center;
}

.hero-copy .pill { margin-bottom: 13px; }
.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.04;
  max-width: 720px;
  letter-spacing: -.055em;
}
.hero-copy p {
  margin: 0;
  max-width: 690px;
  color: #8f9fba;
  font-size: 13px;
  line-height: 1.75;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 23px;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hero-feature-icon {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #1c3156;
  border-radius: 11px;
  background: #0f203f;
  color: #79a7ff;
}
.hero-feature-icon svg {
  width: 29px;
  height: 30px;
  display: block;
  margin: 0;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-feature strong {
  display: block;
  font-size: 11px;
  line-height: 1.25;
}
.hero-feature span {
  display: block;
  margin-top: 3px;
  color: #61738f;
  font-size: 10px;
  line-height: 1.35;
}

.hero-visual {
  min-height: 230px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(85,115,180,.30);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 50% 66%, rgba(30,103,242,.21), transparent 56%),
    radial-gradient(ellipse at 50% 0%, rgba(52,104,229,.13), transparent 64%),
    linear-gradient(145deg, rgba(12,29,58,.96), rgba(6,14,29,.98));
  box-shadow: inset 0 1px 0 rgba(157,190,255,.08), 0 12px 28px rgba(0,0,0,.14);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image: radial-gradient(rgba(100,145,242,.48) .8px, transparent .8px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, transparent 3%, #000 44%, transparent 94%);
  pointer-events: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 78%;
  height: 1px;
  left: 11%;
  bottom: 23px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(65,140,255,.55), transparent);
  box-shadow: 0 0 22px 4px rgba(35,108,255,.2);
  pointer-events: none;
}
.hero-visual-glow {
  position: absolute;
  width: 76%;
  height: 76%;
  left: 12%;
  top: 12%;
  border-radius: 50%;
  background: rgba(18,91,225,.16);
  filter: blur(34px);
  pointer-events: none;
  z-index: -1;
}
.hero-visual-art {
  position: relative;
  z-index: 0;
  display: block;
  width: 112%;
  max-width: 420px;
  height: 248px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 20px rgba(0,76,225,.17));
  transform: translateY(1px);
  animation: marketplaceHeroFloat 7s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.hero-visual-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(105,151,235,.28);
  border-radius: 10px;
  background: rgba(8,20,41,.82);
  color: #dce8ff;
  box-shadow: 0 7px 20px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.hero-visual-badge--secure { top: 13px; right: 13px; }
.hero-visual-badge-icon { display: grid; width: 19px; height: 19px; place-items: center; color: #7faeff; }
.hero-visual-badge-icon svg { display: block; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual-badge--live { left: 13px; bottom: 13px; gap: 6px; color: #a9c0e7; direction: ltr; font-size: 9px; letter-spacing: .035em; }
.hero-visual-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #43e3ad; box-shadow: 0 0 10px rgba(67,227,173,.75); }
.hero-visual-live-divider { width: 1px; height: 12px; margin: 0 2px; background: rgba(135,166,218,.32); }
@keyframes marketplaceHeroFloat {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-5px); }
}

.rate-panel {
  position: relative;
  z-index: 2;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(7,13,26,.82);
}
.rate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rate-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 11px rgba(40,215,154,.6);
}
.rate-switch {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0d1730;
}
.rate-switch button {
  border: 0;
  border-radius: 7px;
  padding: 5px 7px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 8px;
}
.rate-switch button.active {
  background: #152a57;
  color: #cfe0ff;
}
.rate-value {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(180deg, #0b1730, #081120);
}
.rate-number { font-size: 19px; font-weight: 950; }
.rate-meta { margin-top: 5px; color: var(--muted); font-size: 9px; }
.rate-stale { color: var(--warning); }

.marketplace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 14px;
  margin-top: 14px;
}
.workspace { min-width: 0; }
.filter-panel {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #09111f;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  color: #8191aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field select,
.field input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  outline: none;
  background: #081221;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.field select:focus,
.field input:focus {
  border-color: #527cff;
  box-shadow: 0 0 0 4px rgba(77,124,255,.09);
}
.searchbox { position: relative; width: 100%; }
.searchbox input { padding-inline-end: 42px; }
.searchbox .search-glyph {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  color: #667a9a;
}
.searchbox .search-glyph svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-clear {
  position: absolute;
  inset-inline-end: 35px;
  top: 8px;
  width: 27px;
  height: 27px;
  display: none;
  border: 0;
  background: transparent;
  color: #61718f;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 1;
}

/* Country selector / flags */
.country-picker{position:relative;width:100%;}
.country-native-select{position:absolute !important;width:1px !important;height:1px !important;opacity:0 !important;pointer-events:none !important;overflow:hidden !important;}
.country-picker-trigger{width:100%;min-height:48px;border:1px solid var(--border);background:#091729;border-radius:12px;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;cursor:pointer;font:inherit;text-align:left;direction:ltr;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}
.country-picker-trigger:hover,.country-picker-trigger[aria-expanded="true"]{border-color:rgba(81,112,255,.75);background:#0b1a2f;box-shadow:0 0 0 3px rgba(81,112,255,.08);}
.country-picker-current{display:flex;align-items:center;gap:9px;min-width:0;overflow:hidden;}
.country-picker-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.country-picker-chevron{font-size:15px;color:#93a7c7;line-height:1;transform:translateY(-1px);}
.country-picker-menu{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:50;max-height:300px;overflow:auto;padding:6px;border:1px solid var(--border);background:#081526;border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.38);}
.country-picker-option{width:100%;min-height:40px;border:0;background:transparent;color:var(--text);display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;cursor:pointer;font:inherit;text-align:left;direction:ltr;}
.country-picker-option:hover,.country-picker-option[aria-selected="true"]{background:#10223b;}
.country-picker-flag,.country-picker-option-flag,.filter-tag-flag{width:22px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.08);flex:0 0 auto;display:block;}
.country-picker-option-flag{width:22px;height:16px;}
.filter-tag-country{display:inline-flex;align-items:center;gap:7px;direction:ltr;}
.filter-tag-country .filter-tag-flag{width:18px;height:13px;}
.country-with-flag{display:inline-flex;align-items:center;gap:8px;direction:ltr;}
.country-table-flag{width:20px;height:14px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.08);flex:0 0 auto;}

.filter-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.filter-tag {
  padding: 6px 9px;
  border: 1px solid #172844;
  border-radius: 999px;
  background: #0b1527;
  color: #8294b0;
  font-size: 10px;
}

.catalog-loader {
  display: none;
  margin: 9px 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #08101d;
  color: var(--muted);
  font-size: 12px;
}
.catalog-loader.show { display: block; }
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 11px;
}
.catalog-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.01em;
}
.catalog-head .muted { color: #647793; font-size: 10.5px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 64px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(180deg, #0b1427, #09101e);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: .15s transform, .15s border-color, .15s background;
}
.service-card:hover {
  transform: translateY(-1px);
  border-color: #294477;
  background: #0d1830;
}
.service-card:focus-visible {
  outline: 2px solid #5a82ff;
  outline-offset: 2px;
}
.service-card.is-selected {
  border-color: #416de4;
  background: linear-gradient(180deg, #0f1c35, #0b1527);
  box-shadow: 0 0 0 1px rgba(65,109,228,.18), 0 12px 30px rgba(20,55,140,.12);
}
.service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #213761;
  border-radius: 11px;
  background: #111f3e;
  color: #9ab6ff;
  font-size: 13px;
  font-weight: 950;
}
.service-info { min-width: 0; display:flex; flex-direction:column; justify-content:center; }
.service-name-row { display:flex; align-items:center; justify-content:flex-start; gap:8px; min-width:0; direction:ltr; }
.service-info strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-info span {
  display: block;
  margin-top: 2px;
  color: #61738f;
  font-size: 11px;
  line-height: 1.4;
}
.service-price {
  text-align: end;
  white-space: nowrap;
}
.service-price .main {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}
.service-price .sub {
  display: block;
  margin-top: 2px;
  color: #61738f;
  font-size: 10px;
  line-height: 1.35;
}

.sidebar-panel { display: flex; flex-direction: column; gap: 10px; }
.side-box {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #09111f;
}
.side-box h3 { margin: 0 0 11px; font-size: 14px; }
.cart-empty {
  min-height: 185px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}
.cart-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  opacity: .45;
}
.cart-icon svg {
  width: 34px;
  height: 34px;
  stroke: #7f91ad;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-empty strong { display: block; color: #c7d3e7; font-size: 14px; }
.cart-empty span { font-size: 12px; }
.checkout {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101e36;
  color: #667996;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}
.benefit-list { display: flex; flex-direction: column; gap: 8px; }
.benefit { display: flex; align-items: flex-start; gap: 8px; color: #98a8c0; font-size: 12px; }
.benefit i {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0c382c;
  color: #41e5ad;
  font-size: 10px;
  font-style: normal;
}
.different { background: linear-gradient(135deg, #0a1428, #101a36); }
.different p { margin: 6px 0 12px; color: #6d809c; font-size: 12px; line-height: 1.6; }
.small-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid #27406d;
  border-radius: 9px;
  background: #0d1930;
  color: #bed0f5;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.selected-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #09111f;
  scroll-margin-top: 96px;
}
.selected-card.is-targeted { animation: selectedTargetPulse 1.2s ease-out; }
.selected-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}
.selected-head strong { font-size: 14px; }
.selected-head span { color: var(--muted); font-size: 11px; }
.offers-table { width: 100%; border-collapse: collapse; }
.offers-table th,
.offers-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #111d31;
  text-align: start;
  font-size: 12px;
  line-height: 1.4;
}
.offers-table th {
  color: #607392;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.offers-table tr:last-child td { border-bottom: 0; }
.offer-op { display: flex; align-items: center; gap: 9px; }
.offer-op strong { font-size: 14px; line-height: 1.25; }
.operator-badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #101f3f;
  color: #94b6ff;
  font-size: 12px;
  font-weight: 900;
}
.stock { color: #8296b4; font-size: 12px; }
.success-meter { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.meter {
  width: 68px;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #18263d;
}
.meter b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #20c997, #50e0a6);
}
.offer-price {
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}
.offer-price-sub {
  margin-top: 4px;
  color: #6e7f9e;
  font-size: 10.5px;
  line-height: 1.3;
}
.buy-button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #416de4;
  border-radius: 8px;
  background: linear-gradient(135deg, #3e6df1, #5661f0);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}
.buy-button[disabled] { opacity: .55; cursor: not-allowed; }
.buy-button[aria-busy="true"] { position: relative; cursor: progress; opacity: .68; }
.buy-button.is-processing { position: relative; overflow: hidden; opacity: 1; cursor: wait; }
/* Keep the button dimensions and text layout completely unchanged while processing.
   A full-button glass veil hides the label, and the spinner sits exactly at center. */
.buy-button.is-processing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.buy-button.is-processing::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.34);
  border-top-color: #fff;
  border-right-color: #fff;
  border-radius: 50%;
  z-index: 2;
  animation: nuffx-buy-spin .7s linear infinite;
  pointer-events: none;
}
@keyframes nuffx-buy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .buy-button.is-processing::after { animation: none; } }
.empty-state {
  padding: 23px;
  border: 1px dashed var(--border-strong);
  border-radius: 15px;
  background: #08101d;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.market-error {
  margin-bottom: 11px;
  padding: 11px;
  border: 1px solid #5a2430;
  border-radius: 11px;
  background: #190d13;
  color: #ffb1bc;
  font-size: 11px;
}
.market-catalog-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  line-height: 1.7;
}
.market-catalog-error[hidden] { display: none; }
.market-catalog-error button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #75404a;
  border-radius: 9px;
  background: #2a131b;
  color: #ffe1e6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.market-catalog-error button:hover:not(:disabled) { background: #3a1a25; }
.market-catalog-error button:focus-visible { outline: 2px solid #ffb1bc; outline-offset: 2px; }
.market-catalog-error button:disabled { opacity: .6; cursor: wait; }
.loading-shimmer {
  animation: shimmer 1.1s infinite linear;
  background: linear-gradient(90deg, #09111f 0%, #13213a 45%, #09111f 80%);
  background-size: 220% 100%;
}
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes selectedTargetPulse {
  0% { box-shadow: 0 0 0 0 rgba(84,125,255,.55); }
  100% { box-shadow: 0 0 0 14px rgba(84,125,255,0); }
}
.offers-table tbody tr.is-focus td { background: rgba(65,109,228,.08); }
.offers-table tbody tr.is-focus td:first-child { box-shadow: inset 3px 0 0 #4d79f4; }

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: grid; width: min(100%, 560px); min-height: 250px; margin: 4px auto 0; }
  .hero-visual-art { width: min(100%, 440px); height: 260px; }
  .marketplace-layout { grid-template-columns: 1fr; }
  .sidebar-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .sidebar-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .marketplace-page { padding-bottom: 26px; }
  .marketplace-hero { padding: 22px 18px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-visual { min-height: 194px; border-radius: 14px; }
  .hero-visual-art { width: 112%; height: 208px; }
  .hero-visual-badge { min-height: 27px; padding: 4px 7px; font-size: 9px; }
  .hero-visual-badge--secure { top: 9px; right: 9px; }
  .hero-visual-badge--live { left: 9px; bottom: 9px; font-size: 8px; }
  .hero-features { gap: 11px; grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .service-info strong { font-size: 14px; }
  .service-info span { font-size: 10.5px; }
  .service-price .main { font-size: 14px; }
  .service-price .sub { font-size: 10px; }
  .offers-table th:nth-child(2),
  .offers-table td:nth-child(2),
  .offers-table th:nth-child(3),
  .offers-table td:nth-child(3) { display: none; }
  .offers-table th,
  .offers-table td { padding: 10px 9px; font-size: 11.5px; }
  .offers-table th { font-size: 9.5px; }
  .selected-head { padding: 12px; }
  .offer-op strong { font-size: 14px; }
  .stock,
  .success-meter { font-size: 11.5px; }
  .buy-button { padding: 8px 11px; font-size: 11px; }
  .offer-price { font-size: 14px; }
  .offer-price-sub { font-size: 10px; }
  .app-header { position: static; }
}

.searchbox{min-height:48px;border-radius:13px}.searchbox input{height:48px;font-size:14px;font-weight:600;border-radius:13px;background:#0a1526}.searchbox .search-glyph{top:15px}.search-clear{top:10px}

.service-icon {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:11px;
  overflow:hidden;
}
.service-icon img {
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}
.service-icon-fallback {
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
}
.country-flag { width:18px; height:13px; object-fit:cover; border-radius:2px; vertical-align:middle; box-shadow:0 0 0 1px rgba(255,255,255,.08); }
.country-flag-fallback { display:inline-flex; min-width:18px; justify-content:center; }
.selected-head > div { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }

.selected-service-title{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.selected-service-title .selected-service-icon{width:28px;height:28px;display:grid;place-items:center;border:1px solid #213761;border-radius:9px;background:#101f3f;overflow:hidden}.selected-service-title .selected-service-icon img{width:20px;height:20px;object-fit:contain;display:block}.selected-service-title .selected-service-icon-fallback{width:100%;height:100%;display:grid;place-items:center;color:#cfe0ff;font-size:12px;font-weight:800}.selected-service-title .selected-service-icon-fallback[hidden]{display:none}.selected-service-title .selected-service-icon[hidden]{display:none}.service-name-row .service-icon{flex:0 0 auto}.service-name-row strong{min-width:0}


/* v30: final service-card and country-flag alignment */
.service-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:0;
  padding:12px 14px;
}
.service-main {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.service-copy {
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}
.service-copy strong {
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  line-height:1.2;
  font-weight:750;
}
.service-copy span {
  display:block;
  margin:0;
  color:#7182a0;
  font-size:11.5px;
  line-height:1.35;
}
.service-icon {
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #213761;
  border-radius:11px;
  background:#111f3e;
}
.service-icon img {
  width:24px;
  height:24px;
  object-fit:contain;
  display:block;
}
.service-icon-fallback {
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#cfe0ff;
  font-size:15px;
  font-weight:800;
}
.service-price {
  flex:0 0 auto;
  min-width:74px;
  text-align:end;
  white-space:nowrap;
}
.service-price .main {
  font-size:14px;
  font-weight:900;
  line-height:1.2;
}
.service-price .sub {
  display:block;
  margin-top:3px;
  color:#6f809c;
  font-size:10px;
  line-height:1.25;
}

/* Country flags: force system emoji font so Windows/Chrome render regional flags instead of ISO letters. */
.country-flag-fallback,
.country-picker-flag,
.country-picker-option-flag,
.filter-tag-flag,
.country-table-flag,
.country-meta-flag {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  min-width:24px;
  height:22px;
  border:0;
  box-shadow:none;
  border-radius:0;
  flex:0 0 24px;
  font-family:"Segoe UI Emoji","Noto Color Emoji","Apple Color Emoji",sans-serif;
  font-size:20px;
  line-height:1;
  font-weight:400;
  font-variant-emoji:emoji;
  letter-spacing:0;
  text-rendering:auto;
  -webkit-font-smoothing:antialiased;
}
.country-picker-current,
.country-picker-option,
.filter-tag-country,
.country-with-flag,
.selected-head > #selected-service-country,
#selected-service-country {
  display:inline-flex;
  align-items:center;
  gap:9px;
}
.country-picker-current,
.country-picker-option,
.filter-tag-country,
.country-with-flag,
#selected-service-country {
  direction:ltr;
}
.country-picker-option { justify-content:flex-start; }
.country-picker-label { color:var(--text); }

html[dir="rtl"] .service-card .service-main { order:2; }
html[dir="rtl"] .service-card .service-price { order:1; text-align:left; }
html[dir="rtl"] .service-main { direction:rtl; }
html[dir="rtl"] .service-main .service-icon { order:2; }
html[dir="rtl"] .service-main .service-copy { order:1; text-align:right; }
html[dir="ltr"] .service-main .service-icon { order:1; }
html[dir="ltr"] .service-main .service-copy { order:2; text-align:left; }

@media (max-width:620px) {
  .service-card { padding:11px 12px; gap:10px; }
  .service-icon { width:38px; height:38px; flex-basis:38px; }
  .service-copy strong { font-size:14px; }
  .service-copy span { font-size:11px; }
  .service-price { min-width:70px; }
  .service-price .main { font-size:14px; }
}


/* v31: stable flag images + explicit RTL card alignment */
.country-flag-image { display:inline-flex; align-items:center; justify-content:center; width:24px; min-width:24px; height:18px; flex:0 0 24px; overflow:hidden; border-radius:3px; background:#0f1d34; box-shadow:0 0 0 1px rgba(255,255,255,.08); }
.country-flag-image img { display:block; width:100%; height:100%; object-fit:cover; }
.country-flag-image .country-flag-fallback { display:none; }
.country-flag-image.is-fallback .country-flag-fallback { display:grid; place-items:center; width:100%; height:100%; color:#9db4e5; font-size:9px; font-weight:900; letter-spacing:.04em; }
.country-picker-current .country-flag-image,
.country-picker-option .country-flag-image,
.filter-tag-country .country-flag-image { margin-inline:0; }
.country-table-flag, .country-meta-flag { display:inline-flex; align-items:center; justify-content:center; width:24px; min-width:24px; height:18px; overflow:hidden; border-radius:3px; background:#0f1d34; box-shadow:0 0 0 1px rgba(255,255,255,.08); }
.country-table-flag img, .country-meta-flag img { display:block; width:100%; height:100%; object-fit:cover; }

html[dir="rtl"] .service-grid { direction:rtl; }
html[dir="ltr"] .service-grid { direction:ltr; }
html[dir="rtl"] .service-card { direction:rtl; }
html[dir="rtl"] .service-card .service-main { order:2; direction:rtl; justify-content:flex-end; flex:1 1 auto; }
html[dir="rtl"] .service-card .service-main .service-icon { order:2; }
html[dir="rtl"] .service-card .service-main .service-copy { order:1; text-align:right; align-items:flex-start; }
html[dir="rtl"] .service-card .service-price { order:1; text-align:left; }
html[dir="ltr"] .service-card { direction:ltr; }
html[dir="ltr"] .service-card .service-main { order:1; direction:ltr; justify-content:flex-start; flex:1 1 auto; }
html[dir="ltr"] .service-card .service-main .service-icon { order:1; }
html[dir="ltr"] .service-card .service-main .service-copy { order:2; text-align:left; }
html[dir="ltr"] .service-card .service-price { order:2; text-align:right; }
.service-card .service-main { min-width:0; }
.service-card .service-copy { min-width:0; }

/* v32: final service-card RTL/LTR balance
   RTL: service group is anchored to the right, price to the left.
   LTR: service group is anchored to the left, price to the right. */
html[dir="rtl"] .service-card {
  direction: rtl;
}
html[dir="rtl"] .service-card .service-main {
  order: 1;
  direction: rtl;
  justify-content: flex-start;
  align-items: center;
  flex: 1 1 auto;
}
html[dir="rtl"] .service-card .service-main .service-icon {
  order: 1;
}
html[dir="rtl"] .service-card .service-main .service-copy {
  order: 2;
  text-align: right;
  align-items: flex-start;
}
html[dir="rtl"] .service-card .service-price {
  order: 2;
  text-align: left;
}

html[dir="ltr"] .service-card {
  direction: ltr;
}
html[dir="ltr"] .service-card .service-main {
  order: 1;
  direction: ltr;
  justify-content: flex-start;
  align-items: center;
  flex: 1 1 auto;
}
html[dir="ltr"] .service-card .service-main .service-icon {
  order: 1;
}
html[dir="ltr"] .service-card .service-main .service-copy {
  order: 2;
  text-align: left;
  align-items: flex-start;
}
html[dir="ltr"] .service-card .service-price {
  order: 2;
  text-align: right;
}

.service-card .service-main,
.service-card .service-copy,
.service-card .service-price {
  min-width: 0;
}


/* v34: operator picker follows service selection. Hide stale offer section while filters change. */
.operator-field.is-hidden { display:none !important; }
.operator-field.is-disabled { opacity: .68; }
.operator-field.is-disabled select { cursor: not-allowed; }
.operator-field select:disabled { color: #7d8cab; }
.selected-card[hidden] { display: none !important; }


.cart-product {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
  text-align:right;
  direction:rtl;
  padding:18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#0b1528;
}
.cart-product-title{
  font-size:16px;
  font-weight:800;
  color:#fff;
}
.cart-product-row{
  font-size:13px;
  color:var(--muted);
}
.cart-product-price{
  margin-top:4px;
  font-size:15px;
  font-weight:800;
  color:#4f7cff;
}


@media (max-width: 520px) {
  .market-catalog-error { align-items: stretch; flex-direction: column; }
  .market-catalog-error button { width: 100%; }
}


/* Compact pagination; preserves the existing marketplace card design. */
.service-pagination{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;margin:22px 0 8px}
.service-pagination[hidden]{display:none!important}
.service-pagination button{min-width:38px;height:38px;padding:0 12px;border:1px solid var(--border-color, #1d2c47);border-radius:12px;background:var(--card-bg, #0b1220);color:inherit;cursor:pointer;font:inherit;transition:border-color .15s ease,background .15s ease}
.service-pagination button:hover:not(:disabled),.service-pagination button[aria-current="page"]{border-color:#5d7cff;background:rgba(93,124,255,.16)}
.service-pagination button:disabled{opacity:.4;cursor:not-allowed}

/* Keep the service fallback hidden only while a usable icon is present. */
.service-icon-fallback[hidden] { display: none !important; }
.selected-service-icon-fallback[hidden] { display: none !important; }

/* v3: never render empty brand tiles while lazy/remote/local SVGs are pending or broken. */
.service-icon,
.selected-service-title .selected-service-icon { position: relative; }
.service-icon img,
.selected-service-title .selected-service-icon img {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity .12s ease;
}
.service-icon img.is-loaded,
.selected-service-title .selected-service-icon img.is-loaded { opacity: 1; z-index: 2; }
.service-icon-fallback,
.selected-service-title .selected-service-icon-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: #cfe0ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.service-icon-fallback[hidden],
.selected-service-icon-fallback[hidden] { display: none !important; }



/* Asset loading optimization: country-code fallback stays visible until a flag SVG loads. */
.country-flag-image img { opacity:1; transition:opacity .12s ease; }
.country-flag-image.is-fallback img { opacity:0; }
.country-flag-image.is-fallback .country-flag-fallback { display:grid; place-items:center; width:100%; height:100%; color:#9db4e5; font-size:9px; font-weight:900; letter-spacing:.04em; }
.service-icon img { image-rendering:auto; }

/* Keep local Unicode country flags legible when no bundled SVG is available. */
.country-flag-image.is-fallback .country-flag-fallback { font-size: 12px; letter-spacing: 0; line-height: 1; }


/* v8 icon speed hotfix: render flag emoji immediately; overlay verified SVG only when loaded. */
.country-flag-image { position: relative; }
.country-flag-image img { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .12s ease; }
.country-flag-image.is-loading .country-flag-fallback,
.country-flag-image.is-fallback .country-flag-fallback { display: grid !important; position: absolute; inset: 0; z-index: 1; place-items: center; width: 100%; height: 100%; }
.country-flag-image:not(.is-loading):not(.is-fallback) img { opacity: 1; }


/* v11: a symbol is shown only after it is safely registered in the inline sprite. */
.service-icon, .selected-service-title .selected-service-icon, .country-flag-image { position: relative; }
.service-icon-svg, .selected-service-icon-svg, .country-flag-svg { display:none !important; width:100%; height:100%; overflow:visible; flex:0 0 auto; }
.service-icon-svg.is-ready, .selected-service-icon-svg.is-ready, .country-flag-svg.is-ready { display:block !important; position:absolute; inset:0; z-index:2; }
.service-icon-svg, .selected-service-icon-svg { color:#eaf0ff; fill:currentColor; }
.country-flag-svg { object-fit:cover; }
.country-flag-image .country-flag-fallback { display:grid; position:absolute; inset:0; z-index:1; align-items:center; justify-content:center; }

/* v11 fail-safe: never hide fallback before the sprite symbol is confirmed in-document. */
.country-flag-image .country-flag-fallback { display:grid !important; }
.country-flag-image .country-flag-fallback[hidden] { display:none !important; }


/* v12: compact, balanced service icons; preserve the 24x18 country flag frame. */
.service-card .service-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
}
.service-card .service-icon-svg.is-ready {
  width: 23px !important;
  height: 23px !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  max-width: 23px;
  max-height: 23px;
}
.service-card .service-icon-fallback {
  font-size: 13px;
  line-height: 1;
}
.selected-service-title .selected-service-icon-svg.is-ready {
  width: 17px !important;
  height: 17px !important;
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  max-width: 17px;
  max-height: 17px;
}
@media (max-width: 620px) {
  .service-card .service-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }
  .service-card .service-icon-svg.is-ready {
    width: 21px !important;
    height: 21px !important;
    max-width: 21px;
    max-height: 21px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero-visual-art { animation: none !important; }
}


/* iNumber marketplace hero layout guard — keep the artwork compact on desktop */
@media (min-width: 1181px) {
  .marketplace-hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-rows: auto;
    align-items: center;
    min-height: 0;
    gap: 26px;
  }
  .marketplace-hero .hero-copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: center;
  }
  .marketplace-hero .hero-visual {
    grid-column: 2;
    grid-row: 1;
    box-sizing: border-box;
    width: 320px !important;
    min-width: 0;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    align-self: center;
    margin: 0;
  }
  .marketplace-hero .hero-visual-art {
    display: block;
    width: 100% !important;
    max-width: 300px;
    height: 218px !important;
    max-height: 218px;
    object-fit: contain;
    object-position: center;
  }
}

@media (max-width: 1180px) {
  .marketplace-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
    gap: 20px;
  }
  .marketplace-hero .hero-copy { grid-column: 1; grid-row: 1; }
  .marketplace-hero .hero-visual {
    grid-column: 1; grid-row: 2;
    box-sizing: border-box;
    width: min(100%, 560px) !important;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    margin: 0 auto;
  }
  .marketplace-hero .hero-visual-art {
    width: min(100%, 420px) !important;
    height: 218px !important;
    max-height: 218px;
  }
}

@media (max-width: 620px) {
  .marketplace-hero .hero-visual {
    width: 100% !important;
    height: 194px !important;
    min-height: 194px !important;
    max-height: 194px !important;
  }
  .marketplace-hero .hero-visual-art {
    width: min(100%, 340px) !important;
    height: 184px !important;
    max-height: 184px;
  }
}
