/* MobileProxies.co.uk marketplace */
:root {
  --ink: #15171C;
  --ink-2: #3D424C;
  --muted: #5A5F6A;
  --ground: #F4F4F0;
  --surface: #FFFFFF;
  --line: #DEDED6;
  --line-strong: #A9AAA2;
  --blue: #1D4ED8;
  --blue-dark: #1E3A8A;
  --blue-tint: #EAF0FF;
  --amber: #7A3608;
  --amber-tint: #FFF7E6;
  --amber-line: #E5B95C;
  --red: #A61B1B;
  --red-tint: #FDECEC;
  --green: #14532D;
  --green-tint: #E7F6EC;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; }
h1 { font-size: 34px; letter-spacing: -0.01em; }
h2 { font-size: 20px; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.between { justify-content: space-between; }
.inline { display: inline; margin: 0; }

/* header */
.site-header { background: var(--ink); color: #fff; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font: 700 20px var(--head); }
.logo:hover { color: #fff; }
.logo .tld { color: #9DB8FF; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.mobile-signin { display: none; }
.main-nav a, .user-nav .plain { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: #D5D8DF; text-decoration: none; font: 600 15px Inter, sans-serif; background: none; border: 0; cursor: pointer; }
.main-nav a:hover, .user-nav .plain:hover { color: #fff; }
.main-nav a.on, .user-nav .plain.on { background: #2A2E37; color: #fff; }
.user-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font: 700 15px Inter, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2E37; color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-strong); font-weight: 600; font-size: 14px; padding: 0 12px; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-amber { background: #fff; color: var(--amber); border-color: #92400E; font-size: 14px; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); font-size: 14px; }
.btn-sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* flash messages */
.flash { padding: 12px 0; font-weight: 600; font-size: 15px; }
.flash-ok { background: var(--green-tint); color: var(--green); }
.flash-info { background: var(--blue-tint); color: var(--blue-dark); }
.flash-error { background: var(--red-tint); color: var(--red); }

/* page top */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-end; justify-content: space-between; padding-top: 32px; padding-bottom: 28px; }
.hero .intro { flex: 1 1 420px; min-width: 0; }
.hero p { max-width: 60ch; color: var(--muted); margin-top: 8px; }
.search { flex: 1 1 340px; display: flex; gap: 8px; min-width: 0; }
.search input { flex: 1 1 auto; min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); }

/* layout */
.page { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.page > .side { flex: 1 1 232px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.page > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.narrow { max-width: 520px; margin: 0 auto; padding: 40px 24px 64px; }
.medium { max-width: 820px; margin: 0 auto; padding: 32px 24px 64px; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card-dark { background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card-dark p { color: #D5D8DF; font-size: 14px; }
.card-dark h2 { font-size: 18px; }
.card-blue { background: var(--blue-tint); border: 1px solid var(--blue); border-radius: 10px; padding: 16px 20px; color: var(--blue-dark); }

/* filters */
.filters { display: flex; flex-direction: column; gap: 14px; }
.filters h2 { font-size: 17px; }
.filters .btn { width: 100%; }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 15px Inter, sans-serif;
}
textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #9DB8FF; outline-offset: 1px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.errors { background: var(--red-tint); color: var(--red); border: 1px solid var(--red); border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.errors ul { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* tags */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #ECECE6; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.tag-sub { background: var(--blue-tint); color: var(--blue-dark); }
.uses { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.uses-label { color: var(--muted); margin-right: 2px; }
.tag-use { background: #fff; border: 1px solid var(--line-strong); color: var(--ink-2); text-decoration: none; padding: 4px 10px; border-radius: 999px; }
.tag-use:hover { border-color: var(--blue); color: var(--blue-dark); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; border: 0; margin: 0; padding: 0; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 400; }
.checks input { width: 18px; height: 18px; accent-color: var(--blue); }
.tag-pin { background: #FFF1D1; color: var(--amber); font-weight: 700; }
.tag-wanted { background: var(--ink); color: #fff; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tag-ok { background: var(--green-tint); color: var(--green); }
.tag-bad { background: var(--red-tint); color: var(--red); }

/* listings */
.listing { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; justify-content: space-between; }
.listing-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.listing-side { flex: 0 1 auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bumped { color: var(--blue); display: inline-flex; }
.specs { font: 13px/1.5 var(--mono); color: var(--ink-2); }
.details { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.seller-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.price { font: 700 24px/1.1 var(--head); }
.price span { font: 500 14px Inter, sans-serif; color: var(--muted); }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 10px; padding: 28px 20px; text-align: center; color: var(--muted); }

/* pinned */
.pinned { background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pinned h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--amber); }
.pinned .note { font-size: 14px; color: var(--amber); }
.pin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pin-card { background: #fff; border: 1px solid #EAD4A2; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pin-card h3 { font-size: 16px; }
.pin-card h3 a { color: var(--ink); text-decoration: none; }
.pin-card .price { font-size: 20px; margin-top: auto; }
.pin-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #92400E; }
.pin-seller { font-size: 14px; color: var(--muted); }
.pin-card .btn-line { min-height: 44px; }

/* wanted teaser */
.teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 44px; padding: 12px 18px; border: 1px dashed var(--muted); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; }
.teaser .more { margin-left: auto; color: var(--blue); font-weight: 700; }

/* toolbar + pager */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; }

/* profile */
.avatar-img { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 6px; }
.mini-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line); vertical-align: middle; }
.logo-preview { width: 72px; height: 72px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
.avatar { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 16px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 40px var(--head); }
.profile { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; justify-content: space-between; width: 100%; }
.profile-main { flex: 1 1 460px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.profile-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.profile-contact { flex: 0 1 280px; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.profile-contact .btn { min-height: 48px; font-size: 15px; font-weight: 700; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font: 700 14px Inter, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan .amount { font: 700 36px/1 var(--head); }
.plan .amount span { font: 500 15px Inter, sans-serif; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
.plan-pin { background: var(--amber-tint); border-color: var(--amber-line); }
.plan-pin h3, .plan-pin .amount span { color: var(--amber); }
.plan-sub { border: 2px solid var(--blue); padding: 21px; }
.plan-sub h3 { color: var(--blue-dark); }
.plan .btn { margin-top: auto; }
.banner { background: var(--ink); color: #fff; border-radius: 10px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.banner p { flex: 1 1 360px; }

/* tables (dashboard, admin) */
.table-box { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .actions { display: flex; flex-wrap: wrap; gap: 6px; }
td form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stat b { display: block; font: 700 26px/1.1 var(--head); }
.stat span { font-size: 13px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--blue); }

/* replies */
.reply { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.reply p { overflow-wrap: anywhere; }
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

.only-narrow { display: none; }
@media (max-width: 867px) {
  /* On phones the offers come first and the filters follow. */
  .page > .side { order: 2; }
  .only-narrow { display: inline; }
}
@media (max-width: 600px) {
  .wrap { width: 100%; max-width: 100%; padding-left: 20px; padding-right: 20px; }
  html, body { max-width: 100%; overflow-x: hidden; }
  .site-header .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .logo { grid-column: 1; min-width: 0; min-height: 42px; gap: 8px; font-size: 18px; white-space: nowrap; overflow: hidden; }
  .logo .tld { display: none; }
  .user-nav { grid-column: 2; grid-row: 1; flex-wrap: nowrap; }
  .user-nav .plain { display: none; }
  .user-nav .account-link { display: inline-flex; padding: 0 10px; }
  .user-nav .btn { min-height: 42px; padding: 0 12px; font-size: 14px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; }
  .main-nav a { min-width: 0; min-height: 40px; justify-content: center; padding: 0 6px; font-size: 14px; white-space: nowrap; }
  .mobile-signin { display: inline-flex; }
  .hero .wrap { padding-top: 28px; padding-bottom: 24px; }
  .hero .intro, .search, .page > .main, .page > .side { flex-basis: 100%; width: 100%; }
  .search { flex-wrap: nowrap; }
  .search .btn { flex: 0 0 auto; width: auto; }
  h1 { font-size: 28px; }
  .listing-side { width: 100%; }
}
