/* ===== lvlup.onl theme — SaaS pass ===== */
:root{
  --bg:#0b1220; --panel:#0f172a; --panel-2:#111827;
  --text:#e5e7eb; --muted:#9aa4b2; --border:#1f2937;
  --accent:#8b5cf6; --accent-2:#7c3aed;
  --danger:#ef4444; --success:#22c55e;
  --shadow:0 12px 40px rgba(0,0,0,.35);
  --glow:0 8px 30px rgba(139,92,246,.25);
  --radius:14px;
  --maxw:1120px;
  --sans: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  --mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* Reset-ish */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; color:var(--text);
  font:14px/1.5 var(--sans);
  background:
   radial-gradient(900px 500px at 12% 8%,  rgba(139,92,246,.14), transparent 60%),
   radial-gradient(700px 450px at 92% 14%, rgba(45,212,191,.10), transparent 60%),
   radial-gradient(900px 550px at 20% 92%, rgba(59,130,246,.10), transparent 60%),
   radial-gradient(800px 520px at 85% 88%, rgba(244,114,182,.08), transparent 60%),
   var(--bg);
  background-attachment: fixed;
  padding:24px 16px;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Containers */
.container{width:min(var(--maxw),calc(100vw - 32px));margin:0 auto}
.page-center{width:100%;display:grid;place-items:start center}
.center-card{margin-left:auto;margin-right:auto}

/* Headings/utility */
h1,h2,h3{margin:0 0 8px}
h1{font-size:40px}
h2{font-size:22px}
h3{font-size:16px}
.subtle{color:var(--muted);font-size:14px}
.text-gradient{
  background:linear-gradient(90deg,#fff 0%,#c7d2fe 40%,#a78bfa 70%,#22d3ee 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
/* Used across pages (incl. dashboard chips) */
.hero-name{display:inline-flex;align-items:baseline;gap:.4em;line-height:1.2;margin:6px 0 0;font-size:20px;font-weight:800;justify-self:center;text-align:center}

/* ---------- Header / Nav ---------- */
.header{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;
  position:relative; /* anchor mobile dropdown */
}
.brand{display:flex;align-items:center;gap:10px}
.brand img{width:28px;height:28px;border-radius:6px}
.nav{display:flex;gap:10px;align-items:center}
.nav a{color:var(--muted);font-size:14px;padding:8px 10px;border-radius:10px}
.nav a:hover{background:rgba(255,255,255,.04);color:var(--text)}
.nav .btn{color:#fff}
.nav a.active{color:#fff;background:rgba(255,255,255,.06)}
.nav-toggle{display:none} /* shown on mobile */

/* ---------- Hero (landing) ---------- */
.hero-wrap{position:relative;padding:52px 0 14px}
.hero-bg{position:absolute;inset:0;pointer-events:none;opacity:.22}
.card.hero-card{padding:20px}
.hero{text-align:center}
.kicker{color:var(--muted);font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.hero-title{font-size:40px;margin:10px 0 10px}

/* ===== index.php (landing) — base layout ===== */
.hero-shell{
  position:relative;
  margin:0 auto;
  width:min(var(--maxw), calc(100vw - 32px));
}
.hero-surface{
  border-radius:22px; overflow:hidden; padding:32px;
  background:
    radial-gradient(90% 120% at 10% 20%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(80% 120% at 90% 10%, rgba(34,211,238,.30), transparent 55%),
    linear-gradient(135deg,#0f1322,#0e1420);
  border:1px solid var(--border);
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.hero-copy .kicker{color:var(--muted);font-size:12px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px}
.hero-copy h1{font-size:44px;line-height:1.05;margin:8px 0 10px}
.hero-copy p{color:var(--muted);margin:0 0 14px;max-width:56ch}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}

.hero-card-mini{
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--panel);
  border-radius:16px; padding:16px; box-shadow:var(--shadow);
}
.hero-card-mini .copybar{margin-top:10px}
.hero-card-mini .btn{height:40px}
.hero-card-mini .row{margin-top:8px}

/* Sections used on landing */
.section{width:min(var(--maxw), calc(100vw - 32px));margin:28px auto 0}
.section h2{font-size:22px;margin:0 0 6px}
.section .subtle{margin-bottom:12px}
.pill{font-size:12px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;color:var(--muted)}
.gallery .card{background:var(--panel);box-shadow:none}
.footer{width:min(var(--maxw), calc(100vw - 32px));margin:28px auto 0}
.hero-sub{color:var(--muted);max-width:760px;margin:0 auto 14px}

/* ---------- Claim form + status ---------- */
.claim{
  display:grid;gap:10px;grid-template-columns:1fr auto;align-items:center;
  max-width:680px;margin:14px auto 4px
}
.claim .input{height:48px}
.claim .btn{height:48px}
.claim small{grid-column:1 / -1;color:var(--muted)}
.urlpreview{font-family:var(--mono);color:#c7d2fe}
.status{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:13px;min-height:22px;color:var(--muted)}
.status .dot{width:8px;height:8px;border-radius:999px;background:#64748b}
.status.ok .dot{background:var(--success)}
.status.busy .dot{background:#eab308}
.status.bad .dot{background:var(--danger)}
.cta-row{display:flex;gap:10px;justify-content:center;margin-top:10px;flex-wrap:wrap}

/* ---------- “Trust” pills ---------- */
.trust{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;align-items:center;margin:16px 0 6px}
.trust .pill{font-size:12px;padding:6px 10px;border:1px solid var(--border);border-radius:999px;color:var(--muted);display:flex;gap:8px;align-items:center}

/* ---------- Cards ---------- */
.card{
  position:relative;z-index:1;
  width:100%;max-width:640px;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--panel);
  border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow);
}
.card::before{
  content:"";position:absolute;inset:-1px;border-radius:18px;pointer-events:none;
  padding:1px;
  background:linear-gradient(135deg,#8b5cf6 0%,#22d3ee 35%,#34d399 70%,#f472b6 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;opacity:.18;
}
.card.sm{max-width:none;padding:12px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:0 16px;height:42px;border-radius:12px;border:1px solid transparent;cursor:pointer;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));color:#fff;font-weight:800;box-shadow:var(--glow);
  transition:filter .15s ease, transform .05s ease;
}
.btn:hover{filter:brightness(1.05)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.6;cursor:not-allowed}
.btn.secondary{background:#1b2337;border-color:var(--border);color:var(--text);box-shadow:none}
.btn.ghost{background:transparent;border-color:var(--border);color:var(--text);box-shadow:none}
.btn.danger{background:linear-gradient(180deg,#f87171,#ef4444)}
.btn.icon{padding:8px 10px;min-width:40px}

/* ---------- Inputs ---------- */
label{display:block;font-size:12px;color:var(--muted);margin:10px 0 6px}
.input, input[type=text], input[type=email], input[type=password]{
  width:100%;height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--border);
  background:#0b1324;color:var(--text);outline:0;
}
.input::placeholder{color:#6b7280}
textarea{min-height:96px;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:#0b1324;color:var(--text);resize:vertical}
.copybar{display:flex;gap:8px;align-items:center}

/* ---------- Feature grid ---------- */
.features{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.fcard{padding:14px}
.f-title{display:flex;align-items:center;gap:10px;margin:0 0 6px}
.f-title svg{width:18px;height:18px}
.fcard p{margin:0;color:var(--muted);font-size:13px}

/* ---------- How it works ---------- */
.steps{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.step{padding:14px}
.step .num{width:24px;height:24px;border-radius:999px;border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;font-size:12px;margin-bottom:8px}

/* ---------- Public link row (used on profile AND preview on landing) ---------- */
.link-row{--link-accent:#8b5cf6;--link-shadow:rgba(139,92,246,.22);
  display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;
  padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--panel-2);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .2s ease}
.link-row:hover{transform:translateY(-1px);border-color:var(--link-accent);box-shadow:0 10px 30px var(--link-shadow);background:linear-gradient(180deg,rgba(255,255,255,.01),rgba(255,255,255,0))}
.link-row .icon{width:48px;height:48px;border-radius:12px;object-fit:cover;border:1px solid var(--border);background:#0e1426;transition:box-shadow .2s ease,border-color .2s ease}
.link-row:hover .icon{box-shadow:0 0 0 2px var(--link-accent),0 8px 20px var(--link-shadow);border-color:transparent}
.link-row .title{font-weight:800}
.link-row .host{font-size:12px;color:var(--muted)}
.brand-default{--link-accent:#8b5cf6;--link-shadow:rgba(139,92,246,.22)}
.brand-youtube{--link-accent:#ff0033;--link-shadow:rgba(255,0,51,.22)}
.brand-twitter{--link-accent:#1d9bf0;--link-shadow:rgba(29,155,240,.22)}
.brand-instagram{--link-accent:#e1306c;--link-shadow:rgba(225,48,108,.22)}
.brand-tiktok{--link-accent:#69c9d0;--link-shadow:rgba(105,201,208,.22)}
.brand-twitch{--link-accent:#9146ff;--link-shadow:rgba(145,70,255,.22)}
.brand-discord{--link-accent:#5865f2;--link-shadow:rgba(88,101,242,.22)}
.brand-spotify{--link-accent:#1db954;--link-shadow:rgba(29,185,84,.22)}

/* ---------- Pricing ---------- */
.pricing{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.price-card{padding:16px}
.price{font-size:28px;font-weight:800}
.muted{color:var(--muted);font-size:13px}

/* ---------- FAQ ---------- */
.faq{display:grid;gap:10px}
.faq .q{border:1px solid var(--border);border-radius:12px;padding:12px;cursor:pointer;background:var(--panel)}
.faq .q h3{font-size:15px;margin:0}
.faq .q p{margin:8px 0 0;color:var(--muted);display:none}
.faq .q.open p{display:block}

/* ---------- Footer ---------- */
.footer{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;align-items:center;padding:18px 0;border-top:1px solid var(--border);margin-top:24px}
.footer small{color:var(--muted)}
.footer a{color:inherit;border-bottom:1px dashed rgba(255,255,255,.18)}
.footer a:hover{border-bottom-color:rgba(255,255,255,.38)}
.footer .sep{margin:0 6px;color:#64748b}

/* ---------- Dashboard bits ---------- */
.stat{display:flex;align-items:center;justify-content:space-between;padding:12px;border:1px solid var(--border);background:var(--panel-2);border-radius:12px}
.stat .k{font-size:12px;color:var(--muted)}
.stat .v{font-weight:800;font-size:18px}
.item{display:grid;grid-template-columns:64px 1fr;gap:12px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--panel-2)}
.item .thumb{width:64px;height:64px;border-radius:12px;object-fit:cover;border:1px solid var(--border);background:#0e1426}

/* Form wrappers */
.form-wrap{position:relative;width:min(720px,calc(100vw - 32px));margin:0 auto;--lift:36px}
.form-banner{position:absolute;left:0;right:0;top:calc(-1 * var(--lift));height:160px;border-radius:18px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35);
  background:
    radial-gradient(90% 120% at 10% 20%, rgba(139,92,246,.55), transparent 60%),
    radial-gradient(80% 120% at 90% 10%, rgba(34,211,238,.45), transparent 55%),
    radial-gradient(100% 130% at 50% 100%, rgba(52,211,153,.35), transparent 60%),
    linear-gradient(135deg,#121a2f,#0e1426)}
.form-card{margin:calc(110px - var(--lift)) auto 0}
@media (max-width:520px){
  .form-wrap{--lift:28px}
  .form-banner{height:140px}
  .form-card{margin:calc(96px - var(--lift)) auto 0}
}

/* Legacy hero banner card */
.hero-banner{position:absolute;left:0;right:0;top:-36px;height:160px;border-radius:22px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.35);
  background:
    radial-gradient(90% 120% at 10% 20%, rgba(139,92,246,.45), transparent 60%),
    radial-gradient(80% 120% at 90% 10%, rgba(34,211,238,.35), transparent 55%),
    linear-gradient(135deg,#121a2f,#0e1426)}
@media (max-width:720px){
  .hero-banner{top:-28px;height:140px}
  .card.hero-card{margin-top:92px}
}

/* Utilities */
.stack{display:grid;gap:12px}
.stack.center{place-items:center;text-align:center}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.grid-2{display:grid;gap:12px}
@media (min-width:740px){.grid-2{grid-template-columns:1fr 1fr}}
.note{font-size:12px;color:var(--muted);margin-top:8px}
.hidden{display:none !important}

/* register.php layout */
.auth-page{min-height:100svh;display:grid;place-items:center;padding:24px}
.auth-card{width:100%;max-width:420px}
.errors{margin:8px 0 0 0;padding:0;list-style:none}
.errors li{background:#2b1a1a;border:1px solid #5b2b2b;color:#ffd7d7;margin:8px 0;padding:8px 10px;border-radius:8px}

/* Styled primary button for auth forms */
.auth-card button{
  width:100%; height:44px; border-radius:12px;
  border:1px solid var(--accent);
  background:linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color:#fff; font-weight:700; letter-spacing:.2px; padding:0 14px; cursor:pointer;
  box-shadow: var(--glow);
  transition: background .2s ease, transform .06s ease, box-shadow .2s ease, filter .2s ease;
  margin-top:14px;
}
.auth-card button:hover{ filter:brightness(1.05); }
.auth-card button:active{ transform:translateY(1px); }
.auth-card button:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(139,92,246,.35), var(--glow); }
.auth-card button:disabled{ opacity:.6; cursor:not-allowed; filter:saturate(.6); }

/* ===== Mobile: hamburger nav & responsive layout ===== */
@media (max-width:720px){
  .header{align-items:center;justify-content:space-between;gap:12px;padding:12px 0;}
  .brand img{height:28px}
  .brand strong{font-size:16px}
  .nav-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto}
  #site-nav{
    display:none;
    position:absolute; right:0; top:52px; z-index:50;
    flex-direction:column; gap:8px;
    width:min(240px,88vw);
    padding:12px; border:1px solid var(--border); border-radius:16px;
    background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--panel);
    box-shadow:var(--shadow);
  }
  #site-nav.open{display:flex}
  #site-nav a, #site-nav .btn{
    display:flex;align-items:center;justify-content:center;
    width:100%;padding:10px 12px;font-size:14px;border-radius:12px;white-space:nowrap;
  }
  #site-nav a.active{background:rgba(255,255,255,.06);color:#fff}

  .hero-shell{width:calc(100vw - 24px)}
  .hero-surface{padding:18px;border-radius:16px}
  .hero-grid{grid-template-columns:1fr;gap:18px}
  .hero-copy h1{font-size:30px;line-height:1.15;margin:6px 0 8px}
  .hero-copy p{font-size:14px;margin:0 0 12px}

  .claim{display:grid;grid-template-columns:1fr;gap:10px}
  .copybar{display:grid;grid-template-columns:1fr;gap:10px}
  .hero-actions{gap:8px}
  .hero-actions .btn, .hero-actions .btn.ghost{flex:1 1 100%}

  .hero-card-mini{padding:14px}
  .hero-card-mini .row{flex-wrap:wrap}
  .avatar-ring{--r:48px}

  .section{width:calc(100vw - 24px);margin:22px auto 0}
  .section h2{font-size:20px}
  .subtle{font-size:13px}

  .features, .steps, .pricing, .gallery{
    display:grid; grid-template-columns:1fr; gap:12px;
  }
  .fcard,.step,.price-card,.gallery .card{padding:14px;border-radius:12px}

  .profrow .ava{width:44px;height:44px}
  .profrow .nm{font-size:15px}
  .profrow .handle{font-size:13px}

  .footer{width:calc(100vw - 24px);margin:22px auto}
  .footer .nav{flex-wrap:wrap;gap:10px}
}

/* Small tablets */
@media (min-width:721px) and (max-width:920px){
  #site-nav{display:flex !important; position:static; gap:10px; padding:0; width:auto; box-shadow:none; background:transparent; border:none;}
  .nav-toggle{display:none}
  .hero-shell{width:calc(100vw - 28px)}
  .hero-surface{padding:24px}
  .hero-grid{grid-template-columns:1fr}
  .hero-copy h1{font-size:36px}
  .features, .steps, .pricing, .gallery{
    display:grid; grid-template-columns:repeat(2,1fr); gap:14px;
  }
}

/* Desktop: ensure nav always visible */
@media (min-width:921px){
  #site-nav{display:flex !important; position:static; gap:10px; padding:0; width:auto; box-shadow:none; background:transparent; border:none;}
  .nav-toggle{display:none}
}

/* Smaller heading just for auth forms */
.auth-card h1{font-size:28px;line-height:1.2;margin:4px 0 8px}

/* Dashboard full-width alignment, when you wrap body or container with .dash */
.dash .card{max-width:none;width:100%}

/* === Avatar ring component (global) === */
.avatar-ring{
  --r:72px;                         /* default desktop size */
  width:var(--r);
  height:var(--r);
  border-radius:9999px;
  padding:4px;
  background:conic-gradient(from 220deg,#a78bfa,#22d3ee 35%,#34d399 70%,#f472b6);
  box-shadow:var(--glow);
}
.avatar-ring img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  background:#0e1426;
  border:1px solid var(--border);
}

/* ===== Dashboard profile header alignment ===== */
/* Vertically center the avatar + name row in dashboard cards */
.dash .profile-head,
.dash .header-row,
.dash .profile-row {
  display: flex;
  align-items: center;   /* <-- centers avatar + text */
  gap: 14px;
}

/* Keep the avatar from shrinking in tight layouts */
.dash .avatar-ring { flex-shrink: 0; }

/* Remove the global top offset so the name lines up with the avatar */
.dash .hero-name {
  margin: 0;            /* overrides the global 'margin: 6px 0 0' */
  line-height: 1.1;
}

/* If your name/handle are wrapped in a block, center that block too */
.dash .name-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

/* ===== Dashboard profile header: align avatar + name ===== */

/* Generic fallback (no :has) — matches your header row structure */
.card .row > .avatar-ring + .stack{
  display:flex;                 /* turn the name block into a flex column */
  flex-direction:column;
  justify-content:center;       /* vertically center the text with the avatar */
  gap:4px;
  min-width:220px;              /* preserve your current min width */
  align-self:center;            /* keep the block centered within the row */
}
.card .row > .avatar-ring + .stack .hero-name{
  margin:0 !important;          /* cancel global top margin */
  display:block;                /* stop inline-flex baseline quirks */
  text-align:left;              /* dashboard header is left-aligned */
  line-height:1.1;
}

/* If the card contains the copy bar (#puburl), tighten targeting (modern browsers) */
@supports selector(.card:has(#puburl)){
  .card:has(#puburl) .row{ align-items:center; }
  .card:has(#puburl) .avatar-ring + .stack{
    display:flex; flex-direction:column; justify-content:center;
  }
  .card:has(#puburl) .avatar-ring + .stack .hero-name{
    margin:0 !important; display:block; text-align:left; line-height:1.1;
  }
}

/* Keep avatar from shrinking in narrow widths */
.card .row .avatar-ring{ flex-shrink:0; }

/* ===== Dashboard mobile fixes ===== */
@media (max-width:720px){
  /* Top action buttons don’t crowd the logo */
  .dash-header{flex-wrap:wrap; gap:10px}
  .dash-actions{width:100%; justify-content:flex-end; gap:8px}
  .dash-actions .btn{height:38px; padding:0 12px}

  /* The profile card header (avatar + name + copy bar) stacks cleanly */
  .card:has(#puburl) .row{
    flex-direction:column;         /* stack vertically */
    align-items:stretch;           /* full-width children */
    gap:12px !important;
  }

  /* Avatar centered and not huge */
  .card:has(#puburl) .avatar-ring{
    --r:72px;                      /* was inherited too large for some devices */
    margin:0 auto;
  }

  /* Center name block and cancel global margins */
  .card:has(#puburl) .avatar-ring + .stack{
    align-items:center;
    min-width:0;
  }
  .card:has(#puburl) .avatar-ring + .stack .hero-name{
    margin:0 !important;
    text-align:center;
    line-height:1.15;
  }

  /* Copy bar becomes comfy to tap */
  .card:has(#puburl) .copybar{
    display:grid; gap:8px;
    grid-template-columns:1fr;    /* input on its own row */
  }
  .card:has(#puburl) .copybar .input{height:44px}
  .card:has(#puburl) .copybar .btn{height:44px}
}

/* Fallback for older browsers without :has()  */
@media (max-width:720px){
  /* We know the dashboard profile card has #puburl inside a .card */
  .card input#puburl{ /* hook */ }
  .card input#puburl { /* no-op to increase specificity */ }
  .card input#puburl ~ * { /* no-op */ }

  .card input#puburl { /* group selectors below use parent .card .row */
  }
  .card .row{ /* only affects the first row in that card visually */
  }
}

/* ===== Mobile fixes for the dashboard profile card ===== */
@media (max-width:720px){
  /* 1) Stack the avatar → name → copy bar vertically */
  .card > .row{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  /* 2) Avatar centered and a sensible size */
  .card > .row .avatar-ring{
    --r: 84px;
    margin: 0 auto;
    flex-shrink: 0;
  }

  /* 3) Name block centered; remove any top offset on the name */
  .card > .row .avatar-ring + .stack{
    min-width: 0 !important;
    align-items: center;
  }
  .card > .row .avatar-ring + .stack .hero-name{
    margin: 0 !important;
    text-align: center;
    line-height: 1.15;
  }
  .card > .row .mini-meta{
    text-align: center;
  }

  /* 4) Copy bar becomes single‑column, easy to tap */
  .card > .row .copybar{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .card > .row .copybar .input{ height: 44px; }
  .card > .row .copybar .btn{ height: 44px; }

  /* 5) Top action buttons wrap under the logo instead of overlapping */
  .dash-header{ flex-wrap: wrap; gap: 10px; }
  .dash-actions{ width: 100%; justify-content: flex-end; gap: 8px; }
  .dash-actions .btn{ height: 38px; padding: 0 12px; }

  /* 6) Stat strip: two-up tiles on phones */
  .statstrip{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Examples / Profiles (used on index.php gallery) ===== */
.gallery{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.profrow{
  display:flex;gap:10px;align-items:center;
  text-decoration:none;color:inherit;
}
.profrow .ava{
  width:44px;height:44px;border-radius:9999px;object-fit:cover;
  border:1px solid var(--border);background:#0e1426;
}
.profrow .nm{font-weight:800}
.profrow .handle{font-size:12px;color:var(--muted)}
.profrow:hover .ava{box-shadow:0 0 0 2px var(--accent)}
/* Verified badge mini (same look as profile) */
.badge-verified{width:14px;height:14px;vertical-align:baseline;filter:drop-shadow(0 0 6px rgba(37,99,235,.45))}
.badge-verified .ring{stroke:#bfe2ff;stroke-opacity:.85;stroke-width:.8}
.badge-verified .tick{stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

