/* ENSVision - Educational Portal
   Built on the Vision UI identity.
   Dark theme, premium, trusted.
   Colors from the ENSVision brand.
*/

@font-face { font-family:'Bai Jamjuree'; src:url('/assets/fonts/BaiJamjuree-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Bai Jamjuree'; src:url('/assets/fonts/BaiJamjuree-SemiBold.ttf') format('truetype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Bai Jamjuree'; src:url('/assets/fonts/BaiJamjuree-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Bai Jamjuree'; src:url('/assets/fonts/BaiJamjuree-Bold.ttf') format('truetype'); font-weight:800; font-style:normal; font-display:swap; }

:root {
  --bg: #1f161f;
  --surface: #2e212e;
  --surface2: #3a2d3a;
  --border: #4a3d4a;
  --accent: #ffa700;
  --accent2: #ffde1a;
  --cyan: #6ba5d4;
  --green: #22c55e;
  --text: #f5f6f8;
  --muted: #8a9199;
  --gradient-primary: linear-gradient(135deg, #ffa700, #30D5C8);
  --gradient-accent: linear-gradient(90deg, #FF9500, #30D5C8, #EF4444);
  --font: 'Bai Jamjuree', 'Inter', -apple-system, sans-serif;
  --font-body: 'Bai Jamjuree', 'Inter', -apple-system, sans-serif;
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* Native <select>/<option> do not inherit body font - force Bai Jamjuree
   everywhere so dropdowns match the rest of the site. */
select,
select option {
  font-family: var(--font);
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Main content: widen on large screens, keep a comfortable measure */
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(31, 22, 31, 0.97);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .header-inner { padding: 0 2.5rem; }
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark {
  width: 32px;
  height: 27px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.05;
  color: var(--text);
}
.logo-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.05rem;
  line-height: 1.1;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}
.nav-home {
  display: inline-flex;
  align-items: center;
  color: #fff;
}
.nav-home svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-home:hover,
.nav-home.active {
  color: var(--accent);
}

/* ── Nav dropdowns ── */
.nav-drop {
  position: relative;
}
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-drop-toggle:hover,
.nav-drop.open > .nav-drop-toggle,
.nav-drop-toggle.active {
  color: var(--accent);
}
.nav-drop-toggle .caret {
  transition: transform 0.18s ease;
}
.nav-drop:hover .caret,
.nav-drop.open .caret {
  transform: rotate(180deg);
}
.nav-drop-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 40;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop-menu a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.nav-drop-menu a:hover {
  color: var(--accent);
  background: var(--surface2);
}
.nav-drop-menu a.active {
  color: var(--accent);
}
.nav-drop:last-child .nav-drop-menu {
  left: auto;
  right: 0;
}
@media (max-width: 640px) {
  .nav-drop-toggle { font-size: 0.78rem; }
  .nav-drop-menu { max-width: calc(100vw - 2rem); }
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.15;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

/* ── Trust Band ── */
.trust-band {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.trust-item strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Sections ── */
.section {
  padding: 1.5rem 0;
}
.section-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.section-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.25s;
}
.card:hover {
  border-color: var(--accent);
}
.card-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  grid-auto-rows: 1fr;
}
.home-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .home-tools-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #1d1f22;
}
.btn-primary:hover {
  background: var(--accent2);
  color: #1d1f22;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-gradient {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(48, 213, 200, 0.25);
}
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(48, 213, 200, 0.4);
}

/* ── Article / Content Page ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
}
.article h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.article .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.article h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.article h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}
.article p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.7;
}
.article ul, .article ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text);
  line-height: 1.7;
}
.article li { margin-bottom: 0.3rem; }
.article .sponsored-tag {
  display: inline-block;
  background: rgba(255, 167, 0, 0.15);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-style: italic;
}
.article code {
  background: var(--surface2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── Glossary ── */
.glossary-term {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.glossary-term:last-child { border-bottom: none; }
.glossary-term h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--accent);
}
.glossary-term p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Sponsor Page ── */
.sponsor-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}
.sponsor-panel h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.sponsor-panel ul {
  margin: 0 0 0 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ── Header wallet button + logged-in state ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
#dotv-wallet { position: relative; }
.wconnect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  color: #1d1f22;
  background: var(--accent);
  border: none;
  border-radius: 9px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.wconnect-btn svg { width: 15px; height: 15px; }
.wconnect-btn:hover { background: var(--accent2); transform: translateY(-1px); }

.waddr-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.waddr-pill:hover { border-color: var(--accent); }
.waddr-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.waddr-text { font-family: monospace; font-size: 0.8rem; }
.waddr-name { font-family: var(--font); font-weight: 700; font-size: 0.82rem; }
.waddr-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; background: var(--surface); flex-shrink: 0;
}

.waddr-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem;
  display: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 40;
}
.waddr-menu.open { display: block; }
.waddr-menu-full {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
  word-break: break-all;
}
.waddr-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.waddr-menu-item:hover { background: var(--surface2); }
a.waddr-menu-item { color: var(--text); }
a.waddr-menu-item:hover { color: var(--text); }
.waddr-menu-danger { color: #e8685e; }
.waddr-menu-danger:hover { background: rgba(232, 104, 94, 0.1); }

/* ── Wallet modal ── */
.wmodal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.wmodal-overlay.open { display: flex; }
.wmodal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  padding: 1.4rem;
}
.wmodal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.2rem; }
.wmodal-title { font-family: var(--font); font-weight: 800; font-size: 1.05rem; color: var(--text); }
.wmodal-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.wmodal-close:hover { color: var(--text); }
.wmodal-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.45; }
.wmodal-mobile { display: flex; flex-direction: column; gap: 0.5rem; }
.wmodal-note { padding: 0.5rem 0; font-size: 0.82rem; }
.woption {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s;
}
.woption:hover { border-color: var(--accent); }
.woption-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.woption-icon svg { width: 28px; height: 28px; }
.woption-text { display: flex; flex-direction: column; }
.woption-name { font-size: 0.84rem; font-weight: 700; }
.woption-desc { font-size: 0.68rem; color: var(--muted); }

/* ── Toast ── */
.wtoast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 300;
  pointer-events: none;
}
.wtoast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer .container {
  max-width: none;
}
@media (min-width: 1024px) {
  .site-footer .container { padding: 0 2.5rem; }
}
.site-footer a { color: var(--accent); }
.site-footer .footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.site-footer .footer-nav a {
  font-size: 0.82rem;
  color: var(--muted);
}
.site-footer .footer-nav a:hover { color: var(--accent); }

/* ── Brokered listing cards ── */
.listing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card-main { display: block; text-decoration: none; color: inherit; font-family: var(--font); }
.avatar-wrap { position: relative; width: 100%; aspect-ratio: 1/1; background: #1f161f; overflow: hidden; }
.avatar-base { position: absolute; inset: 0; }
.avatar-base img { width: 100%; height: 100%; object-fit: cover; }
.avatar-custom { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s ease; }
.avatar-custom.loaded { opacity: 1; }
.avatar-name { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 0.4rem 0.55rem 0.35rem; background: linear-gradient(transparent, rgba(0,0,0,0.72)); color: #fff; font-size: 1.05rem; font-weight: 700; font-family: var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-body { padding: 0.6rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; font-family: var(--font); }
.listing-price-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.3rem 0; }
.listing-price { font-weight: 800; font-size: 1.05rem; color: var(--accent); margin: 0; }
.listing-fee { font-size: 0.85rem; color: var(--muted); }
.detail-fee { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.listing-owner { font-size: 0.8rem; color: var(--text); margin-bottom: 0.4rem; }
.listing-owner .owner-label { color: var(--text); text-decoration: none; }
.listing-owner .owner-label:hover { color: var(--accent); }
.listing-buy { display: flex; justify-content: flex-end; padding: 0.4rem 1rem 1rem; margin-top: auto; }
.buy-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--accent); color: #1d1f22; border-radius: 8px; padding: 0.4rem 0.85rem; font-family: var(--font); font-weight: 700; font-size: 0.82rem; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.buy-btn:hover { background: var(--accent2); transform: translateY(-1px); color: #1d1f22; }
.buy-btn:hover span, .buy-btn:hover .ext-ico { color: #1d1f22; }
.buy-btn .ext-ico { flex: 0 0 auto; }
.listing-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.listing-actions .btn { width: 100%; }

/* ── Promoted names grid (homepage + listing page) ── */
.promoted-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) {
  .promoted-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .promoted-grid { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
}

/* Homepage: 5 names on one row at full width; hide the 6th on wide screens.
   On mobile (2-col) all 6 render as 3 rows of 2. */
.home-promoted-grid > .listing-card:nth-child(n+6) {
  display: none;
}
@media (max-width: 899px) {
  .home-promoted-grid > .listing-card:nth-child(n+6) {
    display: flex;   /* show all 6 on mobile/tablet */
  }
}

/* ── GDPR consent banner ── */
.gdpr-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 1rem 1.25rem; display: none; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}
.gdpr-banner.show { display: flex; }
.gdpr-banner p { margin: 0; color: var(--muted); font-size: 0.85rem; max-width: 560px; line-height: 1.5; }
.gdpr-banner a { color: var(--accent); }
.gdpr-actions { display: flex; gap: 0.5rem; }

/* ── Sponsored Badge ── */
.sponsored-badge {
  display: inline-block;
  background: rgba(255, 167, 0, 0.15);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .header-inner { flex-wrap: wrap; gap: 0.5rem; position: relative; }
  .main-nav { gap: 0.8rem; flex-wrap: wrap; }
  #dotv-wallet { position: absolute; top: 0; right: 0; z-index: 21; }
  .main-nav a { font-size: 0.78rem; }
  .card-grid { grid-template-columns: 1fr; }
  .trust-band { gap: 1rem; }
  .article h1 { font-size: 1.5rem; }
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Print ── */
@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
/* ── Sync Checker mobile ── */
@media (max-width: 640px) {
  .sync-table thead { display: none; }
  .sync-table tbody tr { display: block; padding: 0.75rem; border-bottom: 1px solid var(--border); }
  .sync-table tbody tr:last-child { border-bottom: none; }
  .sync-table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; border: none; font-size: 0.85rem; }
  .sync-table tbody td:before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
}
/* ── Promoted card actions: like + X share ── */
.card-actions {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0 1rem 0.9rem;
}
.like-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; background: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.7rem;
  color: var(--muted); font-family: var(--font); font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.like-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.like-btn .like-ico { flex: 0 0 auto; }
.like-btn.liked { color: #ff4d6d; border-color: #ff4d6d; }
.like-btn.liked .like-ico { fill: #ff4d6d; stroke: #ff4d6d; }
.like-count { min-width: 0.4rem; }
.x-share {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); text-decoration: none; transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.x-share:hover { color: #fff; background: #000; border-color: #000; }
@media (max-width: 899px) {
  .x-share { display: inline-flex; }
}
