:root{
  --bg0:#ffffff;
  --bg1:#fbf7f1;
  --card:#ffffff;
  --ink:#0b1220;
  --muted:#5b677a;
  --border:rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 60px rgba(10, 22, 45, 0.10);

  /* Linkly-ish blue/purple accents */
  --a1:#2d6cff;
  --a2:#ed61fa;
  --a3:#22c55e;
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(900px 500px at 20% -10%, var(--bg1), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #eef2ff, transparent 55%),
    var(--bg0);
  color: var(--ink);
}

a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

.nav{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.70);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  height:72px; display:flex; align-items:center; justify-content:space-between;
}
.brand{
  display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-0.5px;
}
.logo-dot{
  width:14px;height:14px;border-radius:999px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 10px 30px rgba(45,108,255,0.35);
}

.nav-links{display:flex; align-items:center; gap:18px; color:var(--muted); font-weight:600}
.nav-links a{padding:10px 10px;border-radius:12px}
.nav-links a:hover{background:rgba(15,23,42,0.04); color:var(--ink)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:0 16px; border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.75);
  font-weight:700;
}
.btn:hover{transform: translateY(-1px); transition: 160ms ease; box-shadow: 0 12px 35px rgba(10,22,45,0.10)}
.btn-primary{
  border:none;
  color:white;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  box-shadow: 0 16px 40px rgba(45,108,255,0.30);
}
.btn-primary:hover{box-shadow: 0 20px 55px rgba(45,108,255,0.38)}
.btn-ghost{background: transparent}

.hero{padding:5px 0 22px}
.hero-grid{
  display:grid; gap:22px;
  grid-template-columns: 1.2fr 0.8fr;
}
@media (max-width: 980px){ .hero-grid{grid-template-columns:1fr;} }

.h-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:999px;
  background: rgba(45,108,255,0.08);
  border:1px solid rgba(45,108,255,0.16);
  color:#1c3faa; font-weight:800; font-size:13px;
  margin-left: 15px;
}
h1{
  margin:14px 0 10px;
  font-size:52px; line-height:1.04;
  letter-spacing:-1.5px;
  margin-left: 15px;
}
@media (max-width: 520px){ h1{font-size:40px;} }
.lead{color:var(--muted); margin-left: 15px; margin-right: 15px; font-size:18px; line-height:1.6; max-width:60ch}

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow: var(--shadow);
}
.card-pad{padding:18px}

.tool{
  padding:18px;
}
.field{
  display:flex; flex-direction:column; gap:8px; margin-bottom:12px;
}
.label{font-size:13px;color:var(--muted);font-weight:800}
.input, select{
  height:46px; padding:0 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255, 255, 255, 0.993);
  outline:none;
}
.input:focus, select:focus{
  border-color: rgba(45,108,255,0.45);
  box-shadow: 0 0 0 6px rgba(45,108,255,0.12);
}


.input_brand, select{
  height:46px; padding:0 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255, 255, 255, 0.993);
  outline:none;
  width: 60%;
}
.input_brand:focus, select:focus{
  border-color: rgba(45,108,255,0.45);
  box-shadow: 0 0 0 6px rgba(45,108,255,0.12);
}


.row{display:flex; gap:10px}
@media (max-width: 640px){ .row{flex-direction:column;} }

.pills{display:flex; gap:10px; flex-wrap:wrap}
.pill{
  padding:8px 12px; border-radius:999px;
  background: rgba(15,23,42,0.04);
  border:1px solid var(--border);
  color:var(--muted); font-weight:700; font-size:13px;
}

.result{
  margin-top:14px; display:none;
}
.result.show{display:block}
.result a{color: var(--a1); font-weight:800}
.small{font-size:16px;color:var(--muted)}
.hr{height:1px;background:var(--border);margin:16px 0}

.section{padding:24px 0}
.grid-3{display:grid; gap:14px; grid-template-columns:repeat(3,1fr)}
@media (max-width: 980px){ .grid-3{grid-template-columns:1fr;} }

/* Admin stats: desktop side-by-side grid */
.stats-row{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

/* Make it adapt nicely on smaller screens */
@media (max-width: 1100px){
  .stats-row{ grid-template-columns: repeat(2, 1fr); }
}


/* ✅ Stats cards: 4 cards fit on mobile (2x2), desktop unchanged */
@media (max-width: 720px){
  .stats-row{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;          /* prevents extra horizontal space */
    overflow: visible;   /* no horizontal scrolling */
  }

  .stats-row > .card{
    min-width: 0;
  }

  .stats-row .card-pad{
    padding: 20px;
  }

  .stats-row .label{
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stats-row .price{
    font-size: 24px;
    line-height: 1.1;
    margin: 6px 0 4px;
  }

  .stats-row .small{
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}




.feature h3{margin:0 0 8px}
.feature p{margin:0;color:var(--muted);line-height:1.6}

.pricing{padding:22px 0 60px}
.pricing-grid{display:grid; gap:14px; grid-template-columns:repeat(4,1fr)}
@media (max-width: 1100px){ .pricing-grid{grid-template-columns:1fr 1fr} }
@media (max-width: 640px){ .pricing-grid{grid-template-columns:1fr} }

.price{
  font-size:34px; letter-spacing:-1px; margin:10px 0 8px;
}
.kicker{color:var(--muted); font-weight:700}

.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:999px;
  font-weight:800; font-size:12px;
  background: rgba(139,92,246,0.10);
  border:1px solid rgba(139,92,246,0.18);
}
.badge.green{background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.18)}
.badge.blue{background: rgba(45,108,255,0.10); border-color: rgba(45,108,255,0.18)}
.badge.gray{background: rgba(15,23,42,0.05); border-color: var(--border)}

.list{margin:12px 0 0; padding:0 0 0 18px; color:var(--muted); line-height:1.7}
.footer{
  padding:30px 0; color:var(--muted);
  border-top:1px solid var(--border);
  background: rgba(255,255,255,0.55);
}
.ad-slot{
  border:1px dashed rgba(15,23,42,0.20);
  border-radius:16px;
  padding:14px;
  background: rgba(255,255,255,0.55);
  color: var(--muted);
  font-weight:800;
  text-align:center;
}


.dest-url{
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



/* Segmented control */
.seg{
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
}

.seg-btn{
  border: 0;
  background: transparent;
  padding: 5px 7px;
  border-radius: 800px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  width: 100%;

}

.seg-btn.is-active{
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}


/* Desktop actions layout */
.td-actions .actions-wrap{
  display: inline-flex;
  align-items: center;
  gap: 10px;            /* space between buttons */
  flex-wrap: nowrap;    /* keep in one line */
  white-space: nowrap;  /* prevent line breaks */
}

/* Slightly smaller buttons (desktop + mobile) */
.btn-sm{
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #2d3bb8;
  background: rgba(157, 188, 245, 0.15);
}


.actions-wrap{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;      /* key */
}

td .row{
  flex-wrap: wrap;      /* allows Code+Copy to wrap if needed */
}


.btn-danger{
  background: rgba(239, 68, 68, 0.15);
  color: #7f1d1d;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-danger:hover{
  background: rgba(239, 68, 68, 0.25);
}

.btn-danger-con{
  background: rgba(239, 68, 68, 0.15);
  color: #e90909;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-danger-con:hover{
  background: rgba(239, 68, 68, 0.25);
}

/* #################### mobile view ################ */

/* Destination should be full-width stacked on mobile */
#rows td.td-dest{
  flex-direction: column;
  align-items: flex-start;
}

#rows td.td-dest::before{
  flex: none;
  margin-bottom: 6px;
}

/* Make both lines wrap nicely instead of squeezing */
#rows td.td-dest .dest-wrap{
  width: 100%;
  min-width: 0;
}

#rows td.td-dest .dest-url{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* keep short link neat too */
#rows td.td-dest .dest-short a{
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


/* Optional: soften the short link presentation */
#rows td.td-dest .dest-short a{
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
/* Mobile: make the 3 stat cards a swipe row instead of stacked */
/* ===== Mobile Stats Cards Layout ===== */
/* The cell must not auto-grow forever */
.td-dest{
  padding: 12px 10px;
  max-width: 200px;
  width: 100%;
  
}

/* Critical: allow children to shrink */
.dest-wrap{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

/* One-line truncation */
.truncate{
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* If something else is forcing wrapping, this overrides it */
.dest-url{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* ===== Mobile Stats Cards Layout (PRO) ===== */



/* LANDING: keep the tool card in the aside, but stop it from expanding */
.hero .hero-grid{
  align-items: start;                 /* prevent the aside from stretching */
}



/* MOBILE: move the tool card above the features grid */
@media (max-width: 860px){
  .hero .hero-grid{
    display: flex;
    flex-direction: column;
  }

  /* keep section first */
  .hero .hero-grid > section{
    order: 1;
  }



  /* features + FAQ go after the tool */
  .hero .hero-grid > section .hero-below-tool{
    order: 3; /* works because it's inside section */
    margin-top: 14px;
  }
}



/* Status */

.status-pill.is-active { background: rgba(16,185,129,.15); color: #065f46; border: 1px solid rgba(16,185,129,.35); }
.status-pill.is-inactive { background: rgba(148,163,184,.18); color: #334155; border: 1px solid rgba(148,163,184,.35); }
.status-pill.is-expired { background: rgba(239,68,68,.15); color: #7f1d1d; border: 1px solid rgba(239,68,68,.35); }


/* =========================
   MOBILE LINKS REDESIGN
   (desktop unchanged)
========================= */
.links-mobile { display: none; }

@media (max-width: 720px){
  /* hide the desktop table only on mobile */
  .table-wrap { display: none; }

  /* show mobile list */
  .links-mobile{
    display: grid;
    gap: 12px;
    margin-top: 10px;
  }

  .mcard{
    position: relative;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(10, 22, 45, 0.10);
    padding: 20px;
  }

  .mcard-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  .m-short{
    display:block;
    min-width:0;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size: 15px;
    color: var(--ink);
  }

  .m-more{
    flex: 0 0 auto;
    width: 42px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.70);
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .m-dest{
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;   /* 2 lines max */
    overflow: hidden;
  }

  .m-meta{
    margin-top: 10px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }

  .m-type{
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15,23,42,0.04);
    text-transform: lowercase;
  }

  /* popover menu */
  .m-menu{
    position: absolute;
    top: 52px;
    right: 12px;
    width: 190px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 60px rgba(10, 22, 45, 0.18);
    padding: 8px;
    z-index: 20;
  }

  .m-item{
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .m-item:hover{
    background: rgba(15,23,42,0.06);
  }

  .m-danger{
    color: #7f1d1d;
  }

  .m-danger:hover{
    background: rgba(239, 68, 68, 0.14);
  }

  /* Make search row match sketch on mobile */
  #searchForm{
    flex-direction: row !important;
    align-items:center;
  }

  #searchForm .input{
    flex: 1 1 auto;
    min-width: 0;
  }

  .m-leftmeta{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  }

  .m-copy{
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.70);
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
  }
  .m-copy:active{
    transform: scale(0.98);
  }

}



@media (max-width: 720px){
  .m-menu{
    right: 12px;
    left: auto;
    max-width: calc(100vw - 24px);
  }
}

/* Keep pagination controls horizontal on mobile */
@media (max-width: 720px){
  .pager-row{
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;              /* allow wrapping, but stay horizontal */
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pager-row .pager-buttons{
    display: flex;
    flex-direction: row !important;
    gap: 8px;
    flex-wrap: wrap;
  }
}


/* ---------------- Profile dropdown (matches your light UI) ---------------- */
.profile{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.profile-btn:hover{
  background: rgba(15,23,42,0.04);
  color: var(--ink);
}

.avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(45,108,255,0.16), rgba(139,92,246,0.16));
  border: 1px solid rgba(45,108,255,0.20);
  color: #1c3faa;
}

.profile-label{ font-weight: 900; }
.caret{ opacity: .7; font-size: 12px; }

.profile-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(10, 22, 45, 0.14);
  padding: 8px;
  display: none;
  z-index: 60;
}

.profile-menu a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 900;
  color: var(--ink);
}
.profile-menu a:hover{
  background: rgba(15,23,42,0.06);
}

.profile-menu .menu-sep{
  height: 1px;
  background: var(--border);
  margin: 6px 6px;
}

@media (hover:hover){
  .profile:hover .profile-menu{ display:block; }
}
.profile:focus-within .profile-menu{ display:block; }

@media (max-width: 720px){
  .profile-label{ display:none; }
  .profile-btn{ padding: 0 10px; }
  .profile-menu{ min-width: 190px; }
}


/* ---------------- Modal (soft danger) ---------------- */
.hidden { display: none !important; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

.modal-card{
  position: relative;
  width: min(560px, 92vw);
  background: #0f1115;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  padding: 18px;
}

.modal-head{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.modal-icon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: #7f1d1d;
  background: rgba(239,68,68,0.16);
  border: 1px solid rgba(239,68,68,0.30);
}

.modal-title{
  font-weight: 900;
  letter-spacing: -0.2px;
}

.modal-sub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.modal-body{ margin-top: 12px; }

.modal-warn{
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.22);
  color: #7f1d1d;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}

.modal-actions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* nice small animation */
.modal-card{
  animation: modalIn 160ms ease-out;
}
@keyframes modalIn{
  from { transform: translateY(8px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.field-err{
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #7f1d1d;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
}
.input.is-invalid{
  border-color: rgba(239,68,68,0.55) !important;
  box-shadow: 0 0 0 6px rgba(239,68,68,0.12) !important;
}

.flash{
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
  box-shadow: 0 12px 35px rgba(10,22,45,0.08);
  font-weight: 900;
}
.flash-success{
  border-color: rgba(16,185,129,.30);
  background: rgba(16,185,129,.10);
  color: #065f46;
}
.flash-error{
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.10);
  color: #7f1d1d;
}
.flash-info{
  border-color: rgba(45,108,255,.25);
  background: rgba(45,108,255,.10);
  color: #1c3faa;
}

.warn-box{
  margin: 12px auto;              /* centers horizontally */
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.28);
  color: #7c4a03;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
  width: 1120px;
  max-width: calc(100% - 24px);   /* keeps it off the edges on small screens */
  text-align: center;             /* centers the text */
}

/* --- 3-dot actions menu --- */

.kebab {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
}

.kebab-btn {
  width: 36px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kebab-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* Open to the LEFT, aligned with the kebab button */
.kebab-menu{
  position: absolute;
  right: calc(50% + 8px);
  left: auto;

  top: 50%;
  bottom: auto;
  transform: translateY(-50%);

  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  padding: 6px;
  display: none;
  z-index: 50;
}

.kebab.open .kebab-menu{
  display: block;
}

.kebab-menu form {
  margin: 0;
}

.kebab-item {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.kebab-item:hover {
  background: rgba(0,0,0,0.06);
}

.kebab-item.danger:hover {
  background: rgba(220, 38, 38, 0.10);
}



/* --- Confirm Modal --- */
.hidden { display: none !important; }

.modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-title{
  font-weight: 900;
  font-size: 16px;
}

.modal-x{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.modal-body{
  padding: 14px 14px 4px;
}

.modal-msg{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

.modal-sub{
  margin: 0 0 10px;
  color: var(--muted);
}

.modal-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
}


/* ✅ FINAL OVERRIDE: stats cards are 2x2 on mobile */
@media (max-width: 720px){
  .section.grid-3.stats-row{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 20px !important;
    overflow: visible !important;
  }

  .section.grid-3.stats-row > .card{
    min-width: 0;
  }

  .section.grid-3.stats-row .card-pad{ padding: 12px; }

  .section.grid-3.stats-row .label,
  .section.grid-3.stats-row .small{
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section.grid-3.stats-row .price{
    font-size: 24px;
    margin: 6px 0 4px;
    line-height: 1.1;
  }
}

/* ✅ Mobile gutters: stop edge-to-edge */
@media (max-width: 720px){
  .container{
    padding-left: 20px;
    padding-right: 20px;
  }

  /* make every section respect the container */
  .section{
    padding-left: 20px;
    padding-right: 20px;
  }
}


.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 18px 0;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  justify-content:flex-end;
}

.footer-link{
  text-decoration:none;
  color: var(--muted);
  font-size: 14px;
}

.footer-link:hover{
  color: var(--ink);
}

@media (max-width: 640px){
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
    padding: 20px;
  }
  .footer-links{
    justify-content:flex-start;
  }
}


/* Contact page helpers */
.form { display:flex; flex-direction:column; gap:14px; }
.field label { display:block; font-weight:600; margin:0 0 6px; }
.field input, .field textarea, .field select{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border, rgba(15,23,42,.12));
  border-radius:12px;
  background: var(--card, #fff);
  color: var(--ink, #0b1220);
  outline:none;
}
.field textarea{ resize:vertical; min-height:140px; }
.hint{ display:block; margin-top:6px; color: var(--muted, #5b677a); font-size:.92rem; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:6px; }

.btn{ display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; text-decoration:none; border:1px solid transparent;
}
.btn.primary{ background: var(--a1, #2d6cff); color:#fff; }
.btn.ghost{ background: transparent; border-color: var(--border, rgba(15,23,42,.12)); color: var(--ink, #0b1220); }

@media (max-width: 720px){
  .grid2{ grid-template-columns: 1fr; }
  .container{ padding-left:14px !important; padding-right:14px !important; } /* prevents edge-to-edge */
}

.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.brand-logo{width:28px;height:28px;border-radius:8px;object-fit:contain}



@media (max-width: 720px){

  /* destination: 1-line truncation like desktop */
  .m-dest{
    font-size: 12px;
    color: var(--muted);

    display: block;
    min-width: 0;
    max-width: 100%;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    /* remove the 2-line clamp behavior */
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    display: block;
  }

  /* if destination is rendered as a link */
  .m-dest a{
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* important in your flex layout so text can shrink */
  .mcard, .mcard-top, .m-leftmeta{ min-width: 0; }
}


/* Mobile-only: make the 3 metric cards fit side-by-side in the analytics modal */
@media (max-width: 720px){

  /* tighten modal padding a bit */
  #modal{ padding: 10px !important; }

  /* make the metric cards a true 3-column row */
  #modal .grid-3{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* shrink the metric cards */
  #modal .grid-3 > .card{
    padding: 10px !important;        /* card-pad is usually padding; override safely */
    border-radius: 12px !important;
    min-width: 0 !important;
  }

  /* tighten text so it fits */
  #modal .grid-3 .label{
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #modal .grid-3 .price{
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  /* you had Top device at 24px inline; tame it on mobile */
  #modal #aTopDevice{
    font-size: 18px !important;
  }
}


/* ################################################### */

/* Layout: ensures burger stays visible */
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Defaults */
.nav-burger{ display:none; }
.mobile-menu{ display:none; }

/* Burger */
.nav-burger{
  border:0;
  background:transparent;
  font-size:26px;
  line-height:1;
  padding:6px 10px;
  border-radius:12px;
  cursor:pointer;
}
/* Mobile dropdown panel */
.mobile-menu{
  position:absolute;            /* dropdown */
  top:64px;                     /* adjust if your header height differs */
  right:16px;
  width:min(92vw, 320px);
  padding:12px;
  border-radius:14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  z-index: 9999;
}


.mobile-menu a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
}

.mobile-menu a.btn{
  display:block;
  text-align:center;
  margin-top:8px;
}

/* Mobile rules */
@media (max-width: 900px){
  #navLinksDesktop{ display:none; }
  .nav-burger{ display:inline-flex; align-items:center; justify-content:center; }
}

/* Open state */
.mobile-menu.open{ display:block; }


.prose { font-size: 1.05rem; line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose h1, .prose h2, .prose h3 { margin: 1.6em 0 .6em; line-height: 1.25; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1em 1.2em; padding: 0; }
.prose li { margin: .35em 0; }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 4px solid #ddd; opacity: .9; }
.prose code { padding: .15em .35em; border-radius: .25em; background: #f5f5f5; }
.prose pre { padding: 1em; border-radius: .5em; overflow-x: auto; background: #111; color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid #e5e5e5; padding: .5em; text-align: left; }


.editor-card{
  max-width: 980px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.87);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.editor-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}

.editor-title{
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.editor-sub{
  margin: 4px 0 0;
  opacity:.75;
  font-size:.92rem;
}

.grid{
  display:grid;
  gap: 12px;
}

.grid-2{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 860px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
}

.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.label{
  font-weight: 650;
  font-size: .95rem;
}

.help{
  opacity:.75;
  font-size: .88rem;
  line-height: 1.35;
}

.input, .textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 10px 12px;
  outline: none;
  background: rgba(255,255,255,.92);
  transition: box-shadow .15s ease, border-color .15s ease, transform .05s ease;
  font-size: .98rem;
}

.textarea{ resize: vertical; min-height: 84px; }

.input:focus, .textarea:focus{
  border-color: rgba(17, 110, 255, .55);
  box-shadow: 0 0 0 4px rgba(17, 110, 255, .15);
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
}


.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.75);
  font-size: .9rem;
}

/* Toggle */
.toggle{
  display:flex;
  align-items:center;
  gap:10px;
}
.switch{
  position: relative;
  width: 46px;
  height: 28px;
  display:inline-block;
}
.switch input{ display:none; }
.slider{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.18);
  border-radius: 999px;
  transition: .18s ease;
}
.slider:before{
  content:"";
  position:absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: .18s ease;
}
.switch input:checked + .slider{
  background: rgba(34, 197, 94, .75);
}
.switch input:checked + .slider:before{
  transform: translateX(18px);
}

.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn2{
  appearance:none;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 650;
  cursor:pointer;
  transition: transform .05s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration:none;
  color: inherit;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn2:hover{
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}
.btn2:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(17, 110, 255, .35);
  box-shadow: 0 0 0 0 rgba(17,110,255,.0);
}
.btn-primary:hover{
  border-color: rgba(17, 110, 255, .55);
}

.divider{
  height:1px;
  background: rgba(0,0,0,.08);
  margin: 10px 0;
}

/* Optional: dark admin page support */
@media (prefers-color-scheme: light){
  .editor-card{
    background: rgba(17,17,17,.6);
    border-color: rgba(255,255,255,.10);
  }
  .input, .textarea{
    background: rgba(20,20,20,.85);
    color: rgba(255,255,255,.92);
    border-color: rgba(255,255,255,.12);
  }
  .chip{
    background: rgba(20,20,20,.65);
    border-color: rgba(255,255,255,.12);
  }
  .btn2{
    background: rgba(20,20,20,.75);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
  }
  .divider{ background: rgba(255,255,255,.08); }
}





/* ===== Stats row layout ===== */
.section.stats-row{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
  margin: 14px 0;
  align-items: stretch;
}
@media (max-width: 1100px){
  .section.stats-row{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .section.stats-row{ grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.section.stats-row .card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  min-height: 118px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.section.stats-row .card:hover{
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 22px 70px rgba(10, 22, 45, 0.14);
}
.section.stats-row .card::before{
  content:"";
  position:absolute;
  inset:-60px -60px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, rgba(45,108,255,.18), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}
.section.stats-row .card:nth-child(2)::before{
  background: radial-gradient(circle at 30% 30%, rgba(237,97,250,.18), transparent 60%);
}
.section.stats-row .card:nth-child(3)::before{
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.16), transparent 60%);
}
.section.stats-row .card:nth-child(4)::before{
  background: radial-gradient(circle at 30% 30%, rgba(45,108,255,.12), transparent 60%);
}

/* ===== Label + icon chip (no HTML change) ===== */
.section.stats-row .label{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 12.5px;
  letter-spacing: .2px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.section.stats-row .label::before{
  content:"";
  width: 33px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  display:inline-grid;
  place-items:center;
  flex: 0 0 auto;
  color: var(--ink);
}
.section.stats-row .card:nth-child(1) .label::before{ content:"🔗"; font-size: 12px; }
.section.stats-row .card:nth-child(2) .label::before{ content:"▦"; font-size: 12px; } /* QR-ish glyph, consistent on most fonts */
.section.stats-row .card:nth-child(3) .label::before{ content:"↗"; font-size: 12px; }
.section.stats-row .card:nth-child(4) .label::before{ content:"⌁"; font-size: 12px; } /* scan-ish glyph */

/* ===== Number ===== */
.section.stats-row .price{
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}

/* ===== Subtext row ===== */
.section.stats-row .small{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--muted) 88%, transparent);
  font-weight: 700;
}

/* If you want "Unlimited" to look like a badge */
.section.stats-row .small:not(:has(#linksLimit)):not(:has(#qrLimit)){
  justify-content: flex-start;
}
.section.stats-row .small:not(:has(#linksLimit)):not(:has(#qrLimit))::before{
  content:"";
  display:inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.8);
  margin-right: 8px;
}

/* ===== Usage bar (injected by JS for monthly cards) ===== */
.section.stats-row .usage{
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow:hidden;
}
.section.stats-row .usage > i{
  display:block;
  height:100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  transition: width .55s ease;
}

/* ===== Nice focus ring for accessibility ===== */
.section.stats-row .card:focus-within{
  outline: none;
  box-shadow: var(--shadow), 0 0 0 4px rgba(45,108,255,.18);
}



  .dash-title{
    margin: 18px 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.72));
    box-shadow: 0 12px 34px rgba(10, 22, 45, 0.06);
    font-size: 13px;
    font-weight: 900;
    color: var(--ink);
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
  }
  .dash-title span{
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
  }


/* --- Analytics modal upgrades --- */
.grid-4{display:grid; gap:14px; grid-template-columns:repeat(4,1fr)}
@media (max-width: 900px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 520px){
  .grid-4{grid-template-columns:1fr}
}

.legend{display:flex; flex-wrap:wrap; gap:8px}
.lg-item{display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px;
  border:1px solid var(--border); background: rgba(255,255,255,0.55); font-weight:700}
.lg-dot{width:10px; height:10px; border-radius:999px; display:inline-block}
.muted{color:var(--muted); font-weight:700}

.pill-soft{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.60);
  color:var(--ink);
  font-weight:800;
  font-size:12.5px;
  margin-right:8px;
  margin-bottom:8px;
}
.pill-soft b{
  margin-left:6px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(45,108,255,0.10);
  border:1px solid rgba(45,108,255,0.18);
  color: rgba(15,23,42,0.88);
  font-weight:900;
}


.legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.legend-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-weight:800;
  font-size:12px;
}
.legend-item i{
  width:10px;height:10px;border-radius:999px;display:inline-block;
}
.pill-soft{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-weight:800;
  font-size:12px;
  margin: 0 6px 6px 0;
}
.pill-soft b{
  color: var(--ink);
  font-weight:900;
}
.chart-box{ position:relative; }


/* Big analytics chart size */
.chart-box.am-big{
  height: 340px;               /* bigger than 260 */
}
@media (max-width: 640px){
  .chart-box.am-big{ height: 290px; }
}

/* Smaller charts under big chart */
.chart-box.am-mini{
  height: 220px;
}
@media (max-width: 640px){
  .chart-box.am-mini{ height: 210px; }
}

/* Ensure the under section stacks cleanly on small screens */
@media (max-width: 900px){
  .grid-2.am-under{
    grid-template-columns: 1fr !important;
  }
}

/* Professional legend pills */
.legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.legend-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.65);
  color: var(--muted);
  font-weight:800;
  font-size:12px;
}
.legend-item i{
  width:10px;height:10px;border-radius:999px;display:inline-block;
}
.legend-item b{
  color: var(--ink);
  font-weight: 900;
}




/* Mobile: make ONLY the referrers/browsers/OS row horizontal inside the modal */
@media (max-width: 720px) {
  /* horizontal swipe row with a "peek" */
  #modal .grid-3.mobile-hscroll{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:12px !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    width:100% !important;
    max-width:100% !important;

    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;

    padding: 2px 14px 12px 2px; /* right padding creates visible peek */
    position:relative;
  }

  /* card width tuned for peek */
  #modal .grid-3.mobile-hscroll > .card{
    flex:0 0 72vw !important;   /* smaller so next card shows */
    max-width: 320px !important;
    scroll-snap-align:start;
  }

  /* subtle right-edge fade to suggest more */
  #modal .grid-3.mobile-hscroll::after{
    content:"";
    position:sticky;
    right:0;
    top:0;
    width:40px;
    height:100%;
    pointer-events:none;
    background: linear-gradient(to right,
      rgba(0,0,0,0),
      rgba(0,0,0,0.10)
    );
  }

  /* optional: hide scrollbar (still scrollable) */
  #modal .grid-3.mobile-hscroll{
    scrollbar-width: none; /* Firefox */
  }
  #modal .grid-3.mobile-hscroll::-webkit-scrollbar{
    display:none; /* Chrome/Safari */
  }
}

@media (max-width: 720px) {
  /* make the 4 stat cards swipeable on mobile */
  #modal .grid-4{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:12px !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    width:100% !important;
    max-width:100% !important;

    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;

    padding: 2px 14px 12px 2px; /* right padding makes next card "peek" */
    position:relative;

    scrollbar-width:none; /* Firefox */
  }
  #modal .grid-4::-webkit-scrollbar{ display:none; } /* Chrome/Safari */

  #modal .grid-4 > .card{
    flex:0 0 62vw !important;   /* smaller so next card peeks */
    max-width: 300px !important;
    scroll-snap-align:start;
  }

  /* subtle right-edge fade to suggest more */
  #modal .grid-4::after{
    content:"";
    position:sticky;
    right:0;
    top:0;
    width:40px;
    height:100%;
    pointer-events:none;
    background: linear-gradient(to right,
      rgba(0,0,0,0),
      rgba(0,0,0,0.10)
    );
  }
}



/* #################################### */
 /* Overlay */
.aburl-modal-overlay,
.aburl-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.aburl-modal-overlay.is-open,
.aburl-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

  .aburl-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #333;
  }

  /* Header */
  .aburl-modal-header { padding: 6px 6px 12px; }
  .aburl-success { font-weight: 600; margin-bottom: 6px; }
  .aburl-modal-title { font-size: 1.25rem; margin: 0 0 6px; }
  .aburl-modal-subtitle { margin: 0 0 12px; color: #555; }

  .aburl-link-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }
  .aburl-link-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fafb;
  }

  /* Buttons */
  .aburl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .aburl-btn-primary {
    background: #23af00;
    color: #fff;
    width: 100%;
  }

  a.aburl-btn-primary,
  a.aburl-btn-primary:visited,
  a.aburl-btn-primary:hover,
  a.aburl-btn-primary:active,
  a.aburl-btn-primary:focus {
    color: #fff;
    text-decoration: none;
  }

  .aburl-btn-secondary { background: #e5e7eb; color: #111827; }

  /* Analytics preview block */
  .aburl-analytics-preview {
    margin: 14px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
  }

  .aburl-analytics-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
    filter: blur(3px);
    opacity: 0.9;
  }

  .aburl-stat {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 10px;
  }
  .aburl-stat-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
  .aburl-stat-value { font-size: 14px; font-weight: 700; color: #111827; }

  .aburl-chart {
    height: 90px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    filter: blur(3px);
    opacity: 0.9;
  }
  .aburl-chart-bar {
    flex: 1;
    border-radius: 10px;
    background: #cbd5e1;
  }

  /* Blur overlay + lock card */
  .aburl-blur-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
  }
  .aburl-lock-card {
    background: rgba(17,24,39,.92);
    color: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    text-align: center;
    width: min(380px, calc(100% - 24px));
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
  }
  .aburl-lock-title { font-weight: 800; margin-bottom: 6px; }
  .aburl-lock-text { color: rgba(255,255,255,.85); font-size: 14px; }

  /* Feature list */
  .feature-list {
    list-style: none;
    padding: 0;
    margin: 12px 6px 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  @media (min-width: 760px) {
    .feature-list { grid-template-columns: repeat(3, 1fr); }
    .aburl-modal { padding: 20px; }
  }
  .feature-group {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
  }
  .feature-title { font-weight: 800; margin-bottom: 8px; }
  .feature-group ul { list-style: none; padding: 0; margin: 0; }
  .feature-group li { color: #4b5563; margin-bottom: 6px; font-size: 14px; }

  /* Footer */
  .aburl-modal-footer { padding: 12px 6px 6px; }
  .aburl-note { margin: 0 0 10px; color: #6b7280; font-size: 13px; }
  .aburl-footer-links { margin-top: 10px; text-align: center; font-size: 13px; }
  .aburl-footer-links a { color: #374151; text-decoration: underline; }
  .aburl-dot { margin: 0 8px; color: #9ca3af; }

  /* Mobile tightening */
  @media (max-width: 520px) {
    .aburl-analytics-top { grid-template-columns: repeat(2, 1fr); }
  }

.hero-sub {
  font-size: 1.05rem;
  color: #374151;
  margin: 8px 0 4px;
}

.hero-trust {
  font-size: 0.9rem;
  color: #6b7280;
}

.seo-hero-image {
  margin: 18px 0 10px;
  border-radius: 14px;
  overflow: hidden;
}
.seo-hero-image img {
  display: block;
  width: 100%;
  height: auto;
}
