/* =========================================================
   HB SEO Service - Guest Posting Sites page
   Needs services.css loaded first (shared tokens, buttons)
   ========================================================= */
   @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }
  .gp-page #sites { scroll-margin-top: 90px; }
  .gp-page {
    --gp-cyan: #3ad0ff;
    --gp-green: #3ee0a0;
    --gp-grad: linear-gradient(90deg, #2f7bff, #22c3ff);
  }
  
  /* ---------------- Hero ---------------- */
  .gp-hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
  .gp-hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(55% 70% at 80% 50%, rgba(47,123,255,.26), transparent 70%),
      radial-gradient(40% 50% at 8% 0%, rgba(47,123,255,.14), transparent 70%),
      linear-gradient(180deg, #060b16, #0a1226 60%, #060b16);
  }
  .gp-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
  
  .gp-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 600; color: #e6eeff;
    border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
  }
  .gp-eyebrow svg { width: 18px; height: 18px; fill: none; stroke: var(--sv-blue-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  
  .gp-hero__title {
    margin-top: 26px; font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
    font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; color: #fff;
  }
  .gp-hero__title em {
    display: inline-block; font-style: italic; padding-right: .1em;
    background: linear-gradient(90deg, #f0a52c, #ffd987); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .gp-hero__text { margin-top: 22px; max-width: 520px; font-size: 17px; line-height: 1.65; color: #b9c4dc; }
  .gp-hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
  
  /* hero visual */
  .gp-hero__visual { position: relative; min-height: 400px; display: grid; place-items: center; }
  .gp-demo {
    width: min(100%, 340px); padding: 20px; border-radius: 22px;
    border: 1px solid rgba(93,180,255,.35);
    background: linear-gradient(160deg, #16213a, #0f1727);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
  }
  .gp-demo--back { position: absolute; top: 4%; right: 2%; width: min(80%, 290px); transform: rotate(6deg); opacity: .55; }
  .gp-demo--front { position: relative; transform: rotate(-2deg); animation: gpFloat 6s ease-in-out infinite; }
  .gp-demo__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .gp-demo__head h3 { font-size: 18px; font-weight: 700; color: #fff; }
  .gp-demo__head p { margin-top: 2px; font-size: 14px; color: var(--sv-muted); }
  .gp-demo__meta { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; }
  .gp-demo__meta .gp-time { margin-left: auto; }
  .gp-demo .gp-order { display: block; text-align: center; }
  @keyframes gpFloat { 50% { transform: rotate(-2deg) translateY(-8px); } }
  
  .gp-chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: #fff;
    border: 1px solid rgba(93,180,255,.35); background: rgba(10,18,38,.92);
    box-shadow: 0 14px 30px rgba(0,0,0,.45); animation: gpFloat2 5s ease-in-out infinite;
  }
  .gp-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--gp-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .gp-chip--b svg { stroke: var(--sv-blue-2); stroke-width: 2.2; }
  .gp-chip--a { top: 6%; left: 2%; }
  .gp-chip--b { bottom: 6%; right: 0; animation-delay: .8s; }
  @keyframes gpFloat2 { 50% { transform: translateY(-6px); } }
  
  /* ---------------- Logo tile ---------------- */
  .gp-logo {
    position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 12px; background: #fff; overflow: hidden;
  }
  .gp-logo b { font-size: 19px; font-weight: 800; color: #1a2540; }
  .gp-logo__img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7px; object-fit: contain; background: #fff; }
  .gp-logo.is-fallback .gp-logo__img { display: none; }
  
  /* ---------------- Steps ---------------- */
  .gp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .gp-steps li { padding: 28px 24px; border-radius: var(--sv-radius); border: 1px solid var(--sv-line); background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card)); }
  .gp-steps b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 16px; font-weight: 800; color: var(--sv-blue-2); background: rgba(47,123,255,.14); }
  .gp-steps h3 { margin-top: 16px; font-size: 18px; font-weight: 700; }
  .gp-steps p { margin-top: 8px; font-size: 14.5px; }
  
  /* ---------------- Filters ---------------- */
  .gp-filters { margin-bottom: 22px; border: 1px solid var(--sv-line); border-radius: var(--sv-radius); background: rgba(8,13,22,.55); }
  .gp-filters > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; font-size: 16px; font-weight: 700; color: #fff;
  }
  .gp-filters > summary::-webkit-details-marker { display: none; }
  .gp-filters > summary em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 12px; background: rgba(47,123,255,.25); color: var(--sv-blue-2); }
  .gp-filters > summary svg { width: 20px; height: 20px; fill: none; stroke: var(--sv-muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
  .gp-filters[open] > summary svg { transform: rotate(180deg); }
  
  .gp-filters__body {
    padding: 4px 20px 20px; display: grid; gap: 14px; align-items: end;
    grid-template-columns: 2fr 1.3fr 1fr .8fr .9fr 1.3fr;
  }
  .gp-field { display: grid; gap: 8px; font-size: 13.5px; font-weight: 600; color: #cfd8ea; min-width: 0; }
  .gp-field input, .gp-field select {
    width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--sv-line);
    background: rgba(8,13,22,.7); color: #fff; font: inherit; font-size: 15px; font-weight: 400;
    transition: border-color .3s, box-shadow .3s;
  }
  .gp-field select {
    appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f9bb3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
  }
  .gp-field select option { background: #0f1727; color: #fff; }
  .gp-field input::placeholder { color: #5f6c85; }
  .gp-field input:focus, .gp-field select:focus { outline: none; border-color: var(--sv-blue); box-shadow: 0 0 0 4px rgba(47,123,255,.18); }
  
  .gp-filters__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
  .gp-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: #cfd8ea; }
  .gp-check input { width: 18px; height: 18px; accent-color: #2f7bff; }
  .gp-filters__btns { display: flex; align-items: center; gap: 16px; }
  .gp-reset { font-size: 14.5px; font-weight: 600; color: var(--sv-blue-2); border-bottom: 1px solid rgba(74,168,255,.4); }
  
  .gp-count { margin-bottom: 14px; font-size: 14.5px; color: var(--sv-muted); }
  
  /* ---------------- Sites list (table on desktop) ---------------- */
  .gp-list {
    border: 1px solid var(--sv-line); border-radius: var(--sv-radius); overflow: hidden;
    background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card));
  }
  .gp-cols, .gp-row {
    display: grid; align-items: center; gap: 14px; padding: 16px 22px;
    grid-template-columns: minmax(210px, 2.4fr) minmax(130px, 1.3fr) 56px 56px 84px 92px 104px 100px 120px;
  }
  .gp-cols {
    padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--sv-line); background: rgba(0,0,0,.22);
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sv-muted);
  }
  .gp-row { border-bottom: 1px solid rgba(39,50,74,.6); transition: background .3s; }
  .gp-row:last-child { border-bottom: 0; }
  .gp-row:hover { background: rgba(47,123,255,.06); }
  .gp-row > * { min-width: 0; }
  
  .gp-site { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .gp-site__text { min-width: 0; }
  .gp-site__text h3 { font-size: 16px; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
  .gp-site__text p { margin-top: 2px; font-size: 13.5px; color: var(--sv-muted); overflow-wrap: anywhere; }
  
  .gp-seller { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
  .gp-seller small { display: none; }
  .gp-seller__name a { font-size: 14.5px; font-weight: 600; color: #cdd6ff; transition: color .3s; }
  .gp-seller__name a:hover { color: #fff; }
  .gp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #9fb0d0; background: rgba(255,255,255,.07); white-space: nowrap; }
  .gp-badge--ok { color: var(--gp-green); background: rgba(34,197,130,.16); }
  .gp-badge--ok::before { content: "\2713\00a0"; }
  
  .gp-stats { display: contents; }
  .gp-stat b { font-size: 15px; font-weight: 700; color: #fff; }
  .gp-stat span { display: none; }
  
  .gp-price { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--gp-cyan); }
  .gp-link { justify-self: start; display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
  .gp-link--dofollow { color: var(--gp-green); background: rgba(34,197,130,.16); }
  .gp-link--nofollow { color: #cdd6ea; background: rgba(255,255,255,.09); }
  .gp-time { font-size: 14px; color: #b9c4dc; }
  
  .gp-order {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px;
    font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; background: var(--gp-grad);
    box-shadow: 0 10px 26px -8px rgba(34,195,255,.55); transition: transform .3s var(--sv-ease), box-shadow .3s, filter .3s;
  }
  a.gp-order:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 32px -8px rgba(34,195,255,.7); }
  
  /* ---------------- Pager / empty ---------------- */
  .gp-pager { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 22px; font-size: 15px; }
  .gp-pager a, .gp-pager span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--sv-line); font-weight: 600; }
  .gp-pager a { color: #fff; transition: border-color .3s, background .3s; }
  .gp-pager a:hover { border-color: var(--sv-blue); background: rgba(47,123,255,.12); }
  .gp-pager span { color: #5f6c85; }
  .gp-pager em { font-style: normal; color: var(--sv-muted); }
  
  .gp-empty { padding: 56px 24px; text-align: center; border-radius: var(--sv-radius); border: 1px dashed var(--sv-line); }
  .gp-empty h3 { font-size: 22px; font-weight: 700; }
  .gp-empty p { margin: 10px auto 22px; max-width: 420px; }
  
  /* ---------------- CTA ---------------- */
  .gp-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px;
    border-radius: 28px; border: 1px solid rgba(47,123,255,.4); background: linear-gradient(160deg, #16213a, #0f1727);
  }
  .gp-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
  .gp-cta p { margin-top: 10px; max-width: 560px; font-size: 16.5px; }
  .gp-cta .sv-btn { flex: none; }
  
  /* ---------------- Cards on tablet + phone ---------------- */
  @media (max-width: 1059px) {
    .gp-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; border: 0; overflow: visible; background: none; }
    .gp-cols { display: none; }
  
    .gp-row {
      grid-template-columns: auto auto 1fr; gap: 14px 10px; padding: 20px; border: 1px solid var(--sv-line); border-radius: 22px;
      background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card)); box-shadow: 0 20px 40px -24px rgba(0,0,0,.6);
      grid-template-areas: "site site site" "seller seller seller" "stats stats stats" "price link time" "order order order";
    }
    .gp-row:last-child { border-bottom: 1px solid var(--sv-line); }
    .gp-row:hover { background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card)); border-color: rgba(47,123,255,.5); }
    .gp-site { grid-area: site; }
    .gp-site__text h3 { font-size: 19px; }
    .gp-seller { grid-area: seller; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
    .gp-seller small { display: inline; font-size: 13.5px; color: var(--sv-muted); }
    .gp-stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .gp-price { grid-area: price; font-size: 26px; }
    .gp-link { grid-area: link; justify-self: start; }
    .gp-time { grid-area: time; justify-self: end; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 13px; white-space: nowrap; }
    .gp-order { grid-area: order; width: 100%; padding: 15px; font-size: 16px; }
  
    .gp-hero { padding: 40px 0 56px; }
    .gp-hero__inner { grid-template-columns: 1fr; gap: 50px; }
    .gp-hero__visual { max-width: 460px; width: 100%; margin: 0 auto; }
    .gp-steps { grid-template-columns: 1fr 1fr; }
    .gp-filters__body { grid-template-columns: 1fr 1fr 1fr; }
    .gp-field--q { grid-column: 1 / -1; }
    .gp-cta { padding: 36px 30px; }
  }
  
  /* the stat boxes (shared by phone cards and the hero sample card) */
  .gp-demo .gp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gp-demo .gp-stat, .gp-row .gp-stat { text-align: center; }
  @media (max-width: 1059px) {
    .gp-row .gp-stat { padding: 12px 6px; }
    .gp-row .gp-stat b { display: block; font-size: 22px; font-weight: 800; }
    .gp-row .gp-stat span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sv-muted); }
  }
  .gp-demo .gp-stat { padding: 12px 6px; }
  .gp-demo .gp-stat b { display: block; font-size: 22px; font-weight: 800; }
  .gp-demo .gp-stat span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sv-muted); }
  .gp-demo .gp-stat { border-radius: 14px; border: 1px solid var(--sv-line); background: rgba(255,255,255,.04); }
  @media (max-width: 1059px) {
    .gp-row .gp-stat { border-radius: 14px; border: 1px solid var(--sv-line); background: rgba(255,255,255,.04); }
  }
  
  @media (max-width: 700px) {
    .gp-list { grid-template-columns: 1fr; }
    .gp-steps { grid-template-columns: 1fr; }
    .gp-filters__body { grid-template-columns: 1fr 1fr; padding: 4px 16px 18px; }
    .gp-field--q { grid-column: 1 / -1; }
    .gp-filters__foot { flex-direction: column; align-items: stretch; }
    .gp-filters__btns { justify-content: space-between; }
    .gp-filters__btns .sv-btn { flex: 1; }
    .gp-hero__actions .sv-btn { width: 100%; }
    .gp-hero__visual { min-height: 360px; }
    .gp-chip--a { left: 0; }
    .gp-cta { flex-direction: column; align-items: stretch; text-align: left; }
    .gp-cta .sv-btn { width: 100%; }
    .gp-pager { gap: 10px; }
    .gp-pager a, .gp-pager span { padding: 9px 14px; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .gp-demo--front, .gp-chip { animation: none; }
  }