/* Rent-a-Skill — public site & portal design system.
   Mobile-first. Dark by default with a light override, gradient (violet→cyan) accents. */


:root {
  --grad-a: #7c5cff;
  --grad-b: #22d3ee;
  --gradient: linear-gradient(135deg, var(--grad-a), var(--grad-b));

  --bg: #08070d;
  --bg-elevated: #0f0e18;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f2f9;
  --text-muted: #9c98b3;
  --text-faint: #6c6884;

  --success: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --info: #38bdf8;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.15), 0 20px 60px -20px rgba(124, 92, 255, 0.35);
  --container: 1180px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fbfaff;
  --border: rgba(20, 15, 45, 0.09);
  --border-strong: rgba(20, 15, 45, 0.16);
  --text: #16142b;
  --text-muted: #5c5876;
  --text-faint: #8a86a3;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* Ambient background glow, web3-flavored */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px circle at 10% -10%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(600px circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 55%);
  pointer-events: none;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Promo panels (ad slots) ----------
   Deliberately NOT named with an "ad-"/"ads" prefix: generic cosmetic
   filter lists shipped by mobile ad-blockers (AdGuard, Brave, many
   built-in mobile browser blockers) hide anything matching that class
   pattern — which was swallowing our own house "advertise here" card,
   not just third-party ad network code. */
.promo-panel { margin: 28px 0; text-align: center; }
.promo-panel-label {
  display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); margin-bottom: 8px;
}
.promo-panel-card {
  display: block; padding: 22px 16px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); background: var(--bg-card); transition: border-color .15s;
}
.promo-panel-card:hover { border-color: var(--grad-a); }
.promo-panel-title { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; }
.promo-panel-sub { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .15s ease, opacity .15s ease, border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px -8px rgba(124,92,255,.6); }
.btn-primary:hover { opacity: .92; }
.btn-ghost { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-danger { background: rgba(251,113,133,.12); color: var(--danger); border-color: rgba(251,113,133,.3); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
.nav-links { display: none; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--bg-card); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 18px 18px; border-bottom: 1px solid var(--border); background: var(--bg); }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 12px 10px; border-radius: 10px; color: var(--text-muted); font-weight: 500; }
.mobile-menu a.is-active, .mobile-menu a:hover { background: var(--bg-card); color: var(--text); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 80px; color: var(--text-muted); font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; }
.footer-maker { white-space: nowrap; }
.footer-maker a { color: var(--text); font-weight: 600; }
.footer-maker a:hover, .footer-maker a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 6vw, 54px); font-weight: 700; letter-spacing: -0.02em; }
.hero p.lead { font-size: 16.5px; color: var(--text-muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Search bar ---------- */
.search-bar { display: flex; flex-direction: column; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-top: 30px; }
.search-bar .input, .search-bar .select { flex: 1; }
@media (min-width: 720px) { .search-bar { flex-direction: row; align-items: center; padding: 10px; } }

/* ---------- Cards & grid ---------- */
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card-glow:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.pro-card { display: flex; flex-direction: column; gap: 12px; }
.pro-card-head { display: flex; gap: 12px; align-items: center; }
.pro-card-name { font-weight: 600; font-size: 15.5px; }
.pro-card-headline { color: var(--text-muted); font-size: 13.5px; }
.pro-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-faint); }
.pro-card-skills { display: flex; flex-wrap: wrap; gap: 6px; }

.listing-card { display: flex; flex-direction: column; gap: 10px; }
.listing-card-title { font-weight: 600; font-size: 15.5px; }
.listing-card-desc { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Avatar ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--gradient); color: #fff; font-weight: 700; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.avatar-md { width: 48px; height: 48px; font-size: 15px; }
.avatar-lg { width: 88px; height: 88px; font-size: 26px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Badges / tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); }
.tag-primary { background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.3); color: #a893ff; }
.tag-success { background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.3); color: var(--success); }
.tag-warning { background: rgba(251,191,36,.13); border-color: rgba(251,191,36,.3); color: var(--warning); }
.tag-danger { background: rgba(251,113,133,.13); border-color: rgba(251,113,133,.3); color: var(--danger); }
.tag-info { background: rgba(56,189,248,.13); border-color: rgba(56,189,248,.3); color: var(--info); }

.stars { display: inline-flex; gap: 2px; color: var(--warning); }
.stars svg { width: 14px; height: 14px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field-hint { font-size: 12px; color: var(--text-faint); }
.input, .select, .textarea {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-size: 14.5px; font-family: inherit; transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--grad-a); }
.textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.28); color: var(--success); }
.alert-danger { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.28); color: var(--danger); }
.alert-info { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.28); color: var(--info); }

/* ---------- Section shells ---------- */
.section { padding: 52px 0; }
.section-head { margin-bottom: 28px; }
.section-head .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grad-b); }
.section-head h2 { font-size: clamp(22px, 4vw, 32px); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-box { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 26px; }
.auth-box h1 { font-size: 24px; margin-bottom: 6px; }
.auth-box .sub { color: var(--text-muted); font-size: 13.5px; margin-bottom: 24px; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-toggle a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); text-align: center; font-size: 13px; color: var(--text-muted); }
.role-toggle a strong { color: var(--text); font-size: 14px; }
.role-toggle a.is-active { border-color: var(--grad-a); background: rgba(124,92,255,.1); color: var(--text); }

/* ---------- Portal shell (professional/seeker dashboards) ---------- */
.portal { display: flex; min-height: calc(100vh - 68px); }
.portal-sidebar {
  display: none; flex-direction: column; width: 240px; flex-shrink: 0; padding: 24px 14px;
  border-right: 1px solid var(--border); position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
}
.portal-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.portal-nav a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.portal-nav a:hover { background: var(--bg-card); color: var(--text); }
.portal-nav a.is-active { background: var(--bg-card); color: var(--text); box-shadow: inset 2px 0 0 var(--grad-a); }
.portal-nav .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); padding: 16px 12px 6px; }
.portal-main { flex: 1; min-width: 0; padding: 24px 16px 60px; }
.portal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.portal-mobile-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.portal-mobile-nav a { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 500; }
.portal-mobile-nav a.is-active { background: var(--gradient); color: #fff; border-color: transparent; }

@media (min-width: 920px) {
  .portal-sidebar { display: flex; }
  .portal-mobile-nav { display: none; }
  .portal-main { padding: 32px; }
}

.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.stat-card .stat-label { font-size: 12.5px; color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.table-wrap { overflow-x: auto; }
table.simple-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.simple-table th { text-align: left; color: var(--text-faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.simple-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: .5; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.pagination a:hover { border-color: var(--grad-a); color: var(--text); }
.pagination .is-current { background: var(--gradient); border-color: transparent; color: #fff; }

/* ---------- Chat / messages ---------- */
.chat-shell { display: flex; flex-direction: column; height: calc(100vh - 68px - 130px); min-height: 420px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 16px 4px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); font-size: 13.5px; }
.chat-msg.is-me { align-self: flex-end; background: var(--gradient); color: #fff; border: none; }
.chat-msg .chat-time { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.chat-compose { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.chat-compose input { flex: 1; }

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.w-full { width: 100%; }

/* ---------- Responsive two-column block (dashboards) ---------- */
.grid-2 { grid-template-columns: 1fr; }
.grid-2 > * { min-width: 0; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer headings (semantic h2, same look as before) ---------- */
.footer-col .footer-heading { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 14px; }

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--grad-a); color: #fff; font-weight: 600; transition: top .15s; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: flex; flex-direction: column; gap: 12px;
  max-width: 720px; margin: 0 auto; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-elevated);
  border: 1px solid var(--border-strong); box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); font-size: 13.5px; color: var(--text-muted); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--text); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (min-width: 640px) { .cookie-banner { flex-direction: row; align-items: center; } }

/* ---------- Legal / long-form pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin-top: 32px; }
.prose h3 { font-size: 16px; margin-top: 22px; }
.prose p, .prose li { color: var(--text-muted); font-size: 15px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--text); text-decoration: underline; }
.breadcrumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.report-link { font-size: 12.5px; color: var(--text-faint); }
.report-link:hover { color: var(--danger); }

/* ---------- Dashboard drill-down ---------- */
.stat-link { color: inherit; text-decoration: none; }
.stat-link:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.stat-link:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 2px; }
.stat-link .stat-label::after { content: " →"; opacity: 0; transition: opacity .15s; }
.stat-link:hover .stat-label::after, .stat-link:focus-visible .stat-label::after { opacity: 1; }
.drill-chip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--text-muted);
  background: rgba(124,92,255,.10); border: 1px solid rgba(124,92,255,.28); }
.drill-chip strong { color: var(--text); }
.drill-chip a { font-weight: 600; color: #a893ff; }

/* ---------- Skill picker (professional profile) ---------- */
.skill-search { margin: 6px 0 10px; }
.skill-sector { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 10px; background: var(--bg-elevated); }
.skill-sector > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.skill-sector > summary::-webkit-details-marker { display: none; }
.skill-sector > summary::after { content: "▾"; color: var(--text-faint); }
.skill-sector[open] > summary::after { content: "▴"; }
.skill-sector-count { margin-left: auto; font-weight: 500; font-size: 12.5px; color: #a893ff; }
.skill-industry { padding: 4px 14px 12px; }
.skill-industry-name { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 6px; }
.skill-chip { cursor: pointer; }
.skill-chip input { margin-right: 5px; }
.skill-chip:has(input:checked) { background: rgba(124,92,255,.16); border-color: var(--grad-a); color: var(--text); }
.skill-chip[hidden], .skill-industry[hidden], .skill-sector[hidden] { display: none; }

/* Logout is a POST form styled like the other sidebar links */
.logout-form { margin: 0; }
.logout-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--danger); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.logout-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.logout-link:hover { background: var(--bg-card); }

/* Portfolio link preview cards */
.link-card { display: flex; flex-direction: column; min-width: 0; max-width: 100%; margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.02); color: inherit; transition: border-color .15s, background .15s; }
.link-card:hover, .link-card:focus-visible { border-color: var(--grad-a); background: rgba(124,92,255,.06); }
.link-card-img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #111; }
.link-card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; min-width: 0; }
.link-card-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-card-domain { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; color: var(--text-faint); }
.link-card-domain svg { flex-shrink: 0; }
.link-card-url { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-card.is-compact { flex-direction: row; align-items: center; }
.link-card.is-compact .link-card-img { width: 92px; aspect-ratio: 1 / 1; flex-shrink: 0; }
.link-card.is-compact .link-card-title { -webkit-line-clamp: 1; }
.link-card.is-plain .link-card-body { padding: 10px 12px; }
.link-card.is-plain .link-card-domain { color: var(--text-muted); font-size: 13px; }
.grid-cards.portfolio-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 640px) { .grid-cards.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Portfolio tiles on public profiles: every tile the same size */
.grid-cards.portfolio-grid.is-tiles { align-items: stretch; }
.pf-tile { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.pf-tile-media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(34,211,238,.12)); overflow: hidden; flex-shrink: 0; }
.pf-tile-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
a.pf-tile-media:hover img { transform: scale(1.03); }
.pf-tile-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 13px; padding: 0 16px; text-align: center; }
.pf-tile-placeholder span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tile-badge { position: absolute; top: 10px; left: 10px; background: rgba(8,7,13,.82); backdrop-filter: blur(4px); }
.pf-tile-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; flex: 1; min-width: 0; }
.pf-tile-title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; min-height: calc(1.35em * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-tile-desc { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; min-height: calc(1.5em * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-tile-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; min-height: 30px; display: flex; align-items: center; min-width: 0; }
.pf-tile-foot > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tile-link { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; color: var(--text-muted); }
.pf-tile-link svg { flex-shrink: 0; }
.pf-tile-link span:first-of-type { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tile-link:hover, .pf-tile-link:focus-visible { color: var(--text); }
.pf-tile-arrow { flex-shrink: 0; }

/* Ad slots: when Google has no ad for a slot (data-ad-status="unfilled", which includes a
   rejected ad unit), hide the whole box so visitors never see an empty "Advertisement". */
.promo-panel:not([data-ad-fallback]):has(> ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
/* A slot with both an ad unit and custom code shows the custom code when AdSense has no ad. */
.promo-panel[data-ad-fallback-active] > ins.adsbygoogle { display: none !important; }
