/* =========================================================
   GoBitURL — visual design system
   Brand: near-black ink + a single lime-green accent, echoing
   the wordmark's minimal black text + green dot.
   ========================================================= */
:root {
  --brand: #4285f4;          /* the logo's accent dot — used sparingly */
  --brand-ink: #ffffff;      /* charcoal text on the logo orange */
  --ink: #1f2937;            /* primary action color — mirrors the wordmark's black */
  --ink-hover: #23262c;
  --text: #14161c;
  --muted: #667085;
  --bg: #f5f8fe;
  --card: #ffffff;
  --border: #e2e8f3;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 8px 24px rgba(15,17,21,.05);
  --shadow-hover: 0 4px 10px rgba(15,17,21,.06), 0 20px 40px rgba(15,17,21,.08);
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #eef2fb;            /* primary buttons flip to light-on-dark */
  --ink-hover: #d5d8de;
  --text: #eef2fb;
  --muted: #9aa6bd;
  --bg: #0f1420;
  --card: #171d2b;
  --border: #2a3347;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.4);
  --shadow-hover: 0 4px 10px rgba(0,0,0,.4), 0 20px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--brand-link, var(--text)); text-decoration: none; }
a { color: #1a56c4; } /* accessible-contrast link color derived from the brand green */
[data-theme="dark"] a { color: #a8c7fa; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { display: flex; align-items: center; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo img { display: block; }
.logo-chip { display: inline-flex; align-items: center; }
[data-theme="dark"] .logo-chip { background: #fff; padding: 6px 10px; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 0.94rem; }
.main-nav a:hover { color: var(--text); opacity: .7; text-decoration: none; }
.btn-nav { background: var(--brand); color: var(--brand-ink) !important; padding: 9px 18px; border-radius: 999px; font-weight: 700; }
.btn-nav:hover { opacity: .88; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); flex-direction: column; align-items: stretch;
    padding: 10px 20px 16px; border-bottom: 1px solid var(--border); gap: 14px;
  }
  .main-nav.open { display: flex; }
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--bg); border: none; border-radius: 10px;
  padding: 12px 22px; font-family: inherit; font-weight: 600; font-size: 0.98rem;
  cursor: pointer; transition: background .15s ease, opacity .15s ease;
}
[data-theme="dark"] .btn { color: #0f1420; }
.btn:hover { background: var(--ink-hover); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-block { width: 100%; }

input[type="text"], input[type="url"], input[type="email"], input[type="password"],
input[type="date"], input[type="datetime-local"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: 1rem; background: var(--card); color: var(--text);
  transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
}
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > .field { flex: 1; min-width: 200px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; accent-color: var(--brand); }
.checkbox-row label { margin: 0; font-weight: 500; }
.phone-input-row { display: flex; gap: 8px; }
.phone-input-row .country-code-select { flex: 0 0 auto; width: auto; max-width: 190px; }
.phone-input-row input { flex: 1; }
@media (max-width: 480px) {
  .phone-input-row { flex-direction: column; }
  .phone-input-row .country-code-select { max-width: none; width: 100%; }
}

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 9px; margin: 16px 0; font-weight: 500; font-size: 0.92rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* ---------- Hero / shortener form ---------- */
.hero {
  text-align: center; padding: 72px 0 30px; position: relative;
  background: radial-gradient(560px 240px at 50% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 300; margin-bottom: 12px; letter-spacing: -0.03em; }
.hero h1 .accent-dot { color: var(--brand); }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto; font-weight: 400; }

.shorten-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 28px; max-width: 640px; margin: 28px auto; box-shadow: var(--shadow);
}
.result-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; max-width: 640px; margin: 18px auto; text-align: left; box-shadow: var(--shadow);
  animation: fadeInUp .35s ease;
  border-left: 3px solid var(--brand);
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-link { font-weight: 700; font-size: 1.05rem; word-break: break-all; }
.share-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.share-row a { background: color-mix(in srgb, var(--text) 6%, transparent); padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; color: var(--text); }
.share-row a:hover { text-decoration: none; background: color-mix(in srgb, var(--text) 10%, transparent); }
.qr-box { text-align: center; margin-top: 16px; }
.qr-box canvas, .qr-box img { border-radius: 8px; }

/* ---------- Cards / tables ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow-hover); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.stat-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.stat-box .num { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.stat-box .label { font-size: 0.78rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }

/* Below 700px, tables with data-label attributes on their <td>s become
   stacked cards instead of a horizontally-scrolling grid — easier to
   read one-handed on a phone. Tables without data-label keep the
   normal horizontal-scroll behavior from .table-wrap above. */
@media (max-width: 700px) {
  .table-responsive-cards thead { display: none; }
  .table-responsive-cards, .table-responsive-cards tbody, .table-responsive-cards tr, .table-responsive-cards td {
    display: block; width: 100%;
  }
  .table-responsive-cards tr {
    border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; padding: 6px 4px; background: var(--card);
  }
  .table-responsive-cards td {
    border-bottom: none; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right;
  }
  .table-responsive-cards td[data-label]::before {
    content: attr(data-label); font-weight: 600; font-size: 0.78rem; color: var(--muted); text-align: left; flex-shrink: 0;
  }
  .table-responsive-cards td[colspan] { display: block; text-align: center; }
  .table-responsive-cards td[colspan]::before { content: none; }
}

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: .01em; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-disabled { background: #f0f0f1; color: #52525b; }
.badge-expired { background: #fee2e2; color: #991b1b; }
.badge-scheduled { background: #fef9c3; color: #854d0e; }
.badge-password { background: #ede9fe; color: #1e40af; }

.page-title-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 26px 0 6px; }

/* ---------- Feature grid (homepage) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .15s ease; color: var(--text);
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); text-decoration: none; }
.feature-card img { margin-bottom: 14px; }
.feature-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 1.5; }

/* ---------- Auth pages ---------- */
.auth-card { max-width: 420px; margin: 50px auto; }
.auth-card h1 { font-size: 1.5rem; font-weight: 600; text-align: center; margin-bottom: 20px; letter-spacing: -0.01em; }
.auth-links { text-align: center; margin-top: 16px; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 26px 0; color: var(--muted); font-size: 0.85rem; }
.footer-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-nav a { color: var(--muted); margin-left: 16px; }
.footer-nav a:first-child { margin-left: 0; }
.footer-features { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.footer-features a { color: var(--muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 20px 0 4px; }
.pagination-link, .pagination-current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
}
.pagination-link { color: var(--text); border: 1px solid var(--border); }
.pagination-link:hover { background: color-mix(in srgb, var(--text) 6%, transparent); text-decoration: none; }
.pagination-current { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .pagination-current { color: #0f1420; }
.pagination-gap { color: var(--muted); padding: 0 2px; }

/* ---------- Blog module ---------- */
.blog-search-form { display: flex; gap: 8px; max-width: 520px; margin: 20px auto 40px; }
.blog-search-form input { flex: 1; }

.blog-featured-card {
  display: block; max-width: 960px; margin: 0 auto 40px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text);
}
.blog-featured-card:hover { box-shadow: var(--shadow-hover); text-decoration: none; }
.blog-featured-card img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.blog-featured-body { padding: 24px 28px; }
.blog-featured-label { display: inline-block; background: var(--brand); color: var(--brand-ink, #1f2937); font-weight: 700; font-size: 0.75rem; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.blog-featured-body h2 { margin: 0 0 8px; font-size: 1.5rem; }
.blog-featured-body p { color: var(--muted); margin: 0; }

.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 32px; max-width: 1080px; margin: 0 auto; align-items: start; }
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s ease, transform .15s ease; }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.blog-card-img-wrap { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 18px 20px; }
.blog-card-category { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--brand-ink, #1a56c4); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.blog-card-title { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }
.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { text-decoration: none; color: var(--brand-ink, inherit); }
.blog-card-excerpt { color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; line-height: 1.5; }
.blog-card-meta { color: var(--muted); font-size: 0.78rem; }

.blog-sidebar-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.blog-sidebar-box h3 { margin: 0 0 12px; font-size: 0.95rem; }
.blog-sidebar-list { list-style: none; padding: 0; margin: 0; }
.blog-sidebar-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.blog-sidebar-list li:last-child { border-bottom: none; }
.blog-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag-chip { background: color-mix(in srgb, var(--text) 6%, transparent); padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; color: var(--text); }
.blog-tag-chip:hover { background: color-mix(in srgb, var(--brand) 20%, transparent); text-decoration: none; }

.blog-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0; font-size: 0.85rem; color: var(--muted); }
.blog-breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--border); }

.blog-post { max-width: 1080px; margin: 0 auto; }
.blog-post-header { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.blog-post-header h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 10px 0; }
.blog-post-meta { color: var(--muted); font-size: 0.88rem; }
.blog-post-featured-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }

.blog-post-content { max-width: 760px; margin: 0 auto; }
.blog-toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.blog-toc ul { list-style: none; padding: 0; margin: 8px 0 0; }
.blog-toc li { padding: 4px 0; font-size: 0.9rem; }

.blog-content { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.blog-content h2 { margin: 32px 0 14px; font-size: 1.5rem; }
.blog-content h3 { margin: 26px 0 12px; font-size: 1.25rem; }
.blog-content p { margin: 0 0 18px; }
.blog-content img { max-width: 100%; border-radius: 10px; height: auto; }
.blog-content blockquote { border-left: 3px solid var(--brand); margin: 20px 0; padding: 4px 20px; color: var(--muted); font-style: italic; }
.blog-content pre { background: var(--ink); color: #e8e9f0; padding: 16px 18px; border-radius: 10px; overflow-x: auto; }
.blog-content code { background: color-mix(in srgb, var(--text) 8%, transparent); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.blog-content pre code { background: none; padding: 0; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.blog-content table td, .blog-content table th { border: 1px solid var(--border); padding: 8px 12px; }
.blog-content ul, .blog-content ol { margin: 0 0 18px; padding-left: 24px; }
.blog-content iframe { max-width: 100%; border-radius: 10px; }

.blog-author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 32px 0; }
.blog-author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blog-author-box p { color: var(--muted); margin: 6px 0 0; font-size: 0.9rem; }

.blog-prev-next { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0; padding-top: 20px; border-top: 1px solid var(--border); }
.blog-prev-next-link { font-weight: 600; max-width: 45%; }

.blog-related { max-width: 1080px; margin: 50px auto 0; }
.blog-related h2 { font-size: 1.3rem; margin-bottom: 18px; }

.blog-comments { max-width: 760px; margin: 40px auto 0; }
.blog-comment { padding: 14px 0; border-bottom: 1px solid var(--border); }
.blog-comment-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.blog-comment-body { font-size: 0.95rem; }
.blog-comment-replies { margin-left: 24px; margin-top: 10px; padding-left: 16px; border-left: 2px solid var(--border); }

/* ---------- Dark mode overrides ---------- */
[data-theme="dark"] .alert-success { background: #14281a; color: #86efac; }
[data-theme="dark"] .alert-error { background: #16243d; color: #fca5a5; }
[data-theme="dark"] .alert-info { background: #12233f; color: #93c5fd; }

[data-theme="dark"] .badge-active { background: #14281a; color: #86efac; }
[data-theme="dark"] .badge-disabled { background: #2a3347; color: #b4b9c9; }
[data-theme="dark"] .badge-expired { background: #16243d; color: #fca5a5; }
[data-theme="dark"] .badge-scheduled { background: #3a2f0a; color: #fde68a; }
[data-theme="dark"] .badge-password { background: #1e3a8a; color: #c6dafc; }

[data-theme="dark"] th { color: var(--muted); }
[data-theme="dark"] code { background: var(--border); color: var(--text); padding: 1px 5px; border-radius: 4px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  width: 34px; height: 34px; cursor: pointer; font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.theme-toggle-wide { width: auto; border-radius: 8px; padding: 8px 14px; color: inherit; }

@media (max-width: 600px) {
  .footer-wrap { flex-direction: column; text-align: center; }
  .footer-nav a { margin: 0 8px; }
}


/* ---- Blog: consistent image sizing (any upload size/shape) ---- */
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; height: 100%; border-radius: 16px; }
.blog-card-img-wrap { aspect-ratio: 16 / 9; width: 100%; flex: none; }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark, var(--brand))); }
.blog-card-noimg span { font-size: 3rem; font-weight: 800; color: var(--brand-ink, #1f2937); opacity: .55; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.blog-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.blog-card-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }

.blog-featured-card { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; border-radius: 18px; }
.blog-featured-card .blog-featured-img, .blog-featured-card img { width: 100%; height: 100%; aspect-ratio: 16 / 9; max-height: none; object-fit: cover; object-position: center; }
.blog-featured-body { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) { .blog-featured-card { grid-template-columns: 1fr; } }

.blog-post-featured-image { width: 100%; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }


/* ---- Blog listing: always 3 cards per row on desktop ---- */
.blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1160px; margin: 0 auto; gap: 24px; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 1160px; margin: 0 auto 26px; }
.blog-filters .blog-tag-chip.active { background: var(--brand); color: var(--brand-ink, #1f2937); border-color: var(--brand); font-weight: 700; }
.blog-card-badge { display: inline-block; background: var(--brand); color: var(--brand-ink, #1f2937); font-size: .68rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; margin: 0 8px 6px 0; }

/* ---- Icons & social share ---- */
.ico { flex: none; vertical-align: middle; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.share-icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.share-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; padding: 0;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.share-icon:hover { transform: translateY(-2px); text-decoration: none; color: #fff; border-color: transparent; }
.share-whatsapp:hover { background: #25D366; }
.share-facebook:hover { background: #1877F2; }
.share-x:hover        { background: #000; }
.share-linkedin:hover { background: #0A66C2; }
.share-telegram:hover { background: #229ED9; }
.share-mail:hover     { background: #EA4335; }
.share-copy:hover     { background: var(--brand); color: var(--brand-ink, #1f2937); }

/* ---- Global polish ---- */
.share-icon { position: relative; }
.share-icon.is-copied::after {
  content: "Copied!"; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; white-space: nowrap;
}
.site-header, header.site-header { backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
