/* ============================================================
   LinkHub — Design System
   Modern · professional · minimalistic
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #a1a1aa;
  --primary: #18181b;
  --primary-hover: #000000;
  --accent: #059669;
  --accent-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --info-soft: #f0fdfa;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 6px 24px rgba(0, 0, 0, .07);
  --sidebar-bg: #fafafa;
  --sidebar-w: 264px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.text-muted { color: var(--text-2); }
.text-small { font-size: 13.5px; }
.mono { font-family: var(--font-mono); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: 14.5px; font-weight: 600;
  transition: all .16s ease; white-space: nowrap; min-height: 44px;
  text-align: center;
}
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #f4f4f5; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; min-height: 36px; min-width: 36px; border-radius: 8px; }

/* ---------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-label .req { color: var(--danger); }
.form-hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 14.5px; font-family: inherit;
  background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
  min-height: 44px;
}
.form-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 14px; }
.checkbox-row input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); }
fieldset.seo-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; background: var(--surface); }
fieldset.seo-fieldset legend { font-weight: 700; font-size: 14px; padding: 0 8px; letter-spacing: .02em; }

/* ---------------------------------------------------------- cards & panels */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: all .18s ease; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; }
.panel-body { padding: 22px; }
.panel-body-flush { padding: 0; }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th {
  text-align: left; padding: 11px 16px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); border-bottom: 1px solid var(--border); font-weight: 600;
  white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions-cell { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------- badges & chips */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.badge-success { background: var(--accent-soft); color: var(--accent); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warning { background: var(--warn-soft); color: var(--warn); }
.badge-premium { background: #1c1917; color: #fde68a; }
.badge-advanced { background: #fff1e2; color: #c2410c; border: 1px solid #fed7aa; }
.badge-trial { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-trial svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.badge-free { background: var(--surface-2); color: var(--text-2); }
.badge-locked { background: var(--surface-2); color: var(--text-3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--text-2);
}

/* ---------------------------------------------------------- toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong);
  transition: .18s; cursor: pointer;
}
.switch .slider:before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .18s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(20px); }
.switch.switch-green input:checked + .slider { background: var(--accent); }

/* ---------------------------------------------------------- flash messages */
.flash-wrap { position: fixed; top: 18px; right: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.flash {
  padding: 13px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); border: 1px solid; background: var(--surface);
  animation: flashIn .25s ease;
}
.flash-success { border-color: #a7f3d0; background: var(--accent-soft); color: #065f46; }
.flash-error { border-color: #fecaca; background: var(--danger-soft); color: #991b1b; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- pagination */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 500; padding: 0 10px;
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-3); opacity: .5; }
.pagination a:hover { border-color: var(--text-3); }

/* ---------------------------------------------------------- stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ---------------------------------------------------------- chart */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding: 8px 0 0; }
.chart-bar {
  flex: 1; min-width: 4px; background: var(--primary); opacity: .88;
  border-radius: 4px 4px 0 0; position: relative; transition: opacity .15s;
}
.chart-bar:hover { opacity: 1; }
.chart-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.chart-bar:hover .chart-tip { opacity: 1; }

/* ---------------------------------------------------------- shadcn-style area chart */
.area-chart { margin-top: 4px; }
.area-chart svg { display: block; width: 100%; height: auto; }
.ac-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.ac-tick { font-size: 10px; fill: var(--text-3); font-family: var(--font); }
.ac-xlabel { font-size: 10.5px; fill: var(--text-3); font-family: var(--font); }
.ac-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ac-dot { fill: #ffffff; stroke: var(--accent); stroke-width: 2.2; opacity: 0; transition: opacity .12s ease; pointer-events: none; }
.ac-pt:hover .ac-dot, .ac-pt.ac-last .ac-dot { opacity: 1; }
.ac-pt rect { cursor: pointer; }

/* ---------------------------------------------------------- admin/dashboard shell
   Sidebar = shadcn/ui style: light surface, grouped "featured blocks"
   (bordered rounded cards per section), muted rounded items. */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w); background: var(--sidebar-bg);
  color: var(--text-2); display: flex; flex-direction: column; position: fixed;
  top: 0; bottom: 0; left: 0; z-index: 60; transition: transform .22s ease;
  border-right: 1px solid var(--border);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 22px 22px 16px;
  color: var(--text); font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.sidebar-brand .brand-dot { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #34d399, #059669); display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 4px 10px rgba(5,150,105,.28); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 2px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
/* each nav section = one featured block card */
.sidebar-group {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; box-shadow: var(--shadow-sm);
}
.sidebar-section {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3);
  padding: 8px 10px 6px; font-weight: 800;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 1px; transition: all .14s;
  min-height: 40px;
}
.sidebar-link:last-child { margin-bottom: 0; }
.sidebar-link:hover { background: var(--surface-2); color: var(--text); }
.sidebar-link.active { background: var(--accent-soft); color: #065f46; font-weight: 600; }
.sidebar-link.active svg { color: var(--accent); }
.sidebar-link svg { flex: 0 0 auto; opacity: .85; }
.sidebar-footer { padding: 14px; border-top: 1px solid var(--border); font-size: 13px; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.sidebar-user .avatar { width: 34px; height: 34px; }
.sidebar-user .logout-link { color: var(--text-3); }
.sidebar-user .logout-link:hover { color: var(--danger); }

/* --- sidebar user card: vertical three-dot account menu --- */
.user-menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-3); cursor: pointer; transition: background-color .14s ease, color .14s ease;
}
.user-menu-btn:hover { background: var(--surface-2); color: var(--text); }
.user-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.user-menu-btn svg { width: 18px; height: 18px; }
.user-menu-pop {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 80; min-width: 172px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.14); padding: 6px; display: flex; flex-direction: column;
}
.user-menu-pop[hidden] { display: none; }
.user-menu-pop a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2); transition: all .12s ease; white-space: nowrap;
}
.user-menu-pop a svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .8; }
.user-menu-pop a:hover { background: var(--surface-2); color: var(--text); }
.user-menu-pop .user-menu-logout { color: #b91c1c; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 3px; padding-top: 9px; }
.user-menu-pop .user-menu-logout:hover { background: #fef2f2; color: #991b1b; }

.main-area {
  flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.topbar h1 { font-size: 18px; }
@media (max-width: 640px) { .topbar h1 { display: none; } }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.content { padding: 10px; max-width: 1200px; width: 100%; }
@media (min-width: 769px) { .content { padding: 30px; } }

.menu-btn { display: none; }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .main-area { margin-left: 0; }
  .menu-btn { display: inline-flex; }
}

/* ---------------------------------------------------------- avatar */
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); overflow: hidden; }
.avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap; border-radius: 8px 8px 0 0;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--text); border-bottom-color: var(--primary); }

/* ---------------------------------------------------------- feature rows */
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: none; }
.feature-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature-desc { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.feature-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------------- frontend header */
.site-header {
  position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-dot { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #34d399, #059669); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    display: none; flex-direction: column; padding: 10px 24px 18px; gap: 4px;
    border-top: 1px solid var(--border); background: #fff;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 10px; font-weight: 600; border-radius: 8px; }
  .mobile-nav a:hover { background: var(--surface-2); }
}
@media (min-width: 861px) { .mobile-nav { display: none !important; } }

/* ---------------------------------------------------------- hero */
.hero { padding: 84px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600;
  color: var(--text-2); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -0.035em; max-width: 820px; margin: 0 auto; }
.hero h1 .accent { color: var(--accent); }
.hero p.sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 620px; margin: 18px auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.03em; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* ------------------------------------ appearance builder: mobile stacking + collapsible cards */
@media (max-width: 640px) {
  .builder-grid { grid-template-columns: 1fr !important; }
}
.card-collapse-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; background: none; border: none; padding: 0; margin: 0 0 14px;
  cursor: pointer; font: inherit; color: inherit; text-align: left;
}
.card-collapse-head .cc-title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.card-collapse-head .cc-title svg { width: 16px; height: 16px; }
.card-collapse-head .cc-chevron { display: none; color: var(--text-3); transition: transform .18s ease; flex: 0 0 auto; }
.card-collapse-head .cc-chevron svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .card-collapse-head { padding: 6px 0; }
  .card-collapse-head .cc-chevron { display: inline-flex; }
  .card-collapse.is-collapsed .card-collapse-head { margin-bottom: 0 !important; }
  .card-collapse.is-collapsed .card-collapse-body { display: none; }
  .card-collapse.is-collapsed .cc-chevron { transform: rotate(-90deg); }
}

.icon-tile {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* ---------------------------------------------------------- pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; align-items: stretch; }
.pricing-grid.pricing-grid-3 { grid-template-columns: repeat(3, minmax(0, 360px)); }
@media (max-width: 1020px) { .pricing-grid.pricing-grid-3 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
@media (max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.price-card--advanced { border-color: #f97316; }
.price-card--advanced.featured { border: 2px solid #f97316; }
.price-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: .04em; }
.price-flag--advanced { background: #f97316; }
.price-amount { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 2px; }
.price-amount--advanced { color: #f97316; }
.price-amount small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.price-note { font-size: 12.5px; color: var(--text-3); margin: 12px 0 0; text-align: center; line-height: 1.5; }
.trial-reassure { max-width: 760px; margin: 26px auto 0; text-align: center; font-size: 14px; color: var(--text-2); background: var(--surface-2, #fafafa); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; line-height: 1.6; }
.price-list { list-style: none; margin: 22px 0 26px; flex: 1; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--text-2); }
.price-list li svg { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.price-list li.na { opacity: .45; }
.price-list li.na svg { color: var(--text-3); }

/* ---------------------------------------------------------- blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .18s ease; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-thumb { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.blog-thumb-1 { background: linear-gradient(135deg, #059669, #0d9488); }
.blog-thumb-2 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.blog-thumb-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.blog-thumb-4 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.blog-thumb-5 { background: linear-gradient(135deg, #171717, #525252); }
.blog-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-body h3 { font-size: 16.5px; }
.blog-body p { font-size: 13.5px; color: var(--text-2); flex: 1; }
.blog-meta { font-size: 12.5px; color: var(--text-3); }
.article-featured { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.prose { font-size: 16.5px; line-height: 1.75; color: #27272a; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 7px; }
.prose blockquote { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 14px 20px; border-radius: 0 10px 10px 0; margin: 22px 0; color: #064e3b; font-style: italic; }
.prose img { border-radius: 12px; margin: 10px 0; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------------------------------------------------------- CTA band */
.cta-band { background: var(--primary); color: #fff; border-radius: 22px; padding: 54px 30px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.03em; }
.cta-band p { color: #a1a1aa; margin: 10px auto 24px; max-width: 520px; }

/* ---------------------------------------------------------- footer (sticky) */
.site-footer { flex-shrink: 0; margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); padding: 26px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: var(--text-2); }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ---------------------------------------------------------- auth pages */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 23px; margin-bottom: 4px; }
.auth-card .lead { color: var(--text-2); font-size: 14.5px; margin-bottom: 24px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-2); }
.auth-alt a { font-weight: 600; text-decoration: underline; }

/* ---------------------------------------------------------- profile (public link page) */
.pl-page { min-height: 100vh; padding: 48px 18px 80px; display: flex; justify-content: center; align-items: flex-start; }
.pl-bg { position: fixed; inset: 0; z-index: -1; background: var(--pl-bg-color); }
.pl-bg.pl-has-image { background-size: cover; background-position: center; }
.pl-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.12)); }
.pl-card {
  width: 100%; max-width: 560px; border-radius: var(--pl-card-radius, 26px); background: var(--pl-card-bg);
  color: var(--pl-text); padding: 38px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.22);
  font-family: var(--pl-font, var(--font)); position: relative;
}

/* platform logo — top-left inside the card (Premium users can remove it) */
.pl-plat-logo {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--pl-text); opacity: .8;
  text-decoration: none; transition: opacity .15s ease;
}
.pl-plat-logo:hover { opacity: 1; }
.pl-plat-logo-mark {
  width: 20px; height: 20px; border-radius: 7px; background: #10b981; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.pl-plat-logo-mark svg { width: 11px; height: 11px; }
.pl-plat-logo-name { line-height: 1; }
.pl-head { text-align: center; margin-bottom: 26px; }
.pl-head.center { text-align: center; }
.pl-head.left { text-align: left; display: flex; gap: 16px; align-items: center; text-align: left; }
.pl-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.16); border: 3px solid rgba(255,255,255,.65);
}
.pl-head.left .pl-avatar { margin: 0; width: 76px; height: 76px; }
.pl-username { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 7px; }
.pl-verified { color: #0ea5e9; display: inline-flex; }
.pl-bio { margin-top: 8px; font-size: 14.5px; opacity: .85; line-height: 1.55; white-space: pre-line; }
.pl-links { display: flex; flex-direction: column; gap: 13px; }
.pl-link-item { position: relative; }
.pl-link {
  display: flex; align-items: center; gap: 14px; background: var(--pl-btn-bg);
  color: var(--pl-btn-text); border-radius: var(--pl-radius); padding: 14px 48px 14px 16px;
  border: 1px solid rgba(0,0,0,.06); transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
  min-height: 60px;
}
/* hover = configurable color swap (no movement, no shadow) */
.pl-link:hover {
  background: var(--pl-link-hover, color-mix(in srgb, var(--pl-btn-bg) 88%, #000));
  color: var(--pl-link-hover-text, var(--pl-btn-text));
}
.pl-link-icon {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.06);
}
.pl-link-text { flex: 1; min-width: 0; }
.pl-link-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.pl-link-desc { font-size: 13px; opacity: .72; margin-top: 2px; }
.pl-link-arrow { flex: 0 0 auto; opacity: .4; }
/* vertical 3-dot share trigger (replaces the old arrow icon) */
.pl-link-more {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px; border: none; background: transparent;
  color: var(--pl-btn-text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: .55; transition: background-color .15s ease, opacity .15s ease;
}
.pl-link-more:hover { background: rgba(0,0,0,.10); opacity: 1; }
.pl-link-more:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; opacity: 1; }

/* card footer: horizontal links + platform CTA buttons (not tinted by button color) */
.pl-foot-links {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px 18px; margin-top: 20px; font-size: 12px;
}
.pl-foot-links a, .pl-foot-links button {
  background: none; border: none; padding: 2px 0; font: inherit; color: inherit;
  opacity: .55; cursor: pointer; text-decoration: none; transition: opacity .14s ease;
}
.pl-foot-links a:hover, .pl-foot-links button:hover { opacity: .95; text-decoration: underline; }
.pl-cta-row {
  display: flex; gap: 10px; margin-top: 16px;
}
.pl-cta-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  text-align: center; text-decoration: none;
  background: transparent; color: var(--pl-text);
  border: 2px solid color-mix(in srgb, var(--pl-text) 28%, transparent);
  transition: filter .15s ease, background-color .15s ease;
}
.pl-cta-btn:hover { background: color-mix(in srgb, var(--pl-text) 8%, transparent); }
.pl-cta-primary { background: var(--pl-accent); color: var(--pl-accent-text); border-color: transparent; }
.pl-cta-primary:hover { filter: brightness(.94); background: var(--pl-accent); }
.pl-link.featured { outline: 2px solid var(--pl-accent); outline-offset: 2px; }
.pl-socials { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pl-social {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.06); color: var(--pl-text); transition: background-color .15s ease, color .15s ease;
}
/* hover = configurable color swap (no movement) */
.pl-social:hover {
  background: var(--pl-social-hover, rgba(0,0,0,.1));
  color: var(--pl-social-hover-text, var(--pl-text));
}
.pl-subscribe { margin-top: 26px; padding: 18px; border: 1px dashed rgba(0,0,0,.18); border-radius: 14px; }
.pl-subscribe h4 { font-size: 14.5px; margin-bottom: 4px; }
.pl-subscribe p { font-size: 12.5px; opacity: .7; margin-bottom: 12px; }
.pl-subscribe form { display: flex; flex-direction: column; }
.pl-subscribe input {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(0,0,0,.14);
  font-size: 14px; background: rgba(255,255,255,.75); color: inherit; min-height: 44px;
  box-sizing: border-box;
}
.pl-subscribe input:focus { outline: none; border-color: var(--pl-accent); }
.pl-subscribe button {
  width: 100%; background: var(--pl-accent); color: var(--pl-accent-text); border: none; border-radius: 10px;
  font-weight: 700; font-size: 14px; padding: 12px 18px; min-height: 44px; cursor: pointer;
}
.pl-join { margin-top: 26px; text-align: center; }
.pl-join-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px;
  background: transparent; color: var(--pl-text); border: 2px solid var(--pl-accent);
  font-weight: 700; font-size: 14.5px; transition: all .16s ease;
}
.pl-join-btn:hover { background: var(--pl-accent); color: var(--pl-accent-text); }
.pl-footer-note { text-align: center; margin-top: 26px; font-size: 12px; opacity: .5; }
.pl-footer-note a { text-decoration: underline; }

/* ---------------------------------------------------------- public page — mobile
   On phones the card disappears as a floating box: the CARD color becomes the
   page background (full-bleed), and every button is tightened for small screens. */
@media (max-width: 640px) {
  .pl-page { padding: 26px 14px 56px; }
  /* card color IS the page background now (overrides colors, gradients and images) */
  .pl-bg { background: var(--pl-card-bg) !important; }
  .pl-bg.pl-has-image { background-image: none !important; }
  .pl-bg::after { display: none; }
  /* no card chrome — content sits directly on the background */
  .pl-card {
    background: transparent; box-shadow: none; border-radius: 0;
    padding: 34px 4px 30px; max-width: 100%;
  }
  .pl-plat-logo { top: 10px; left: 2px; }
  .pl-head { margin-bottom: 20px; }
  .pl-avatar { width: 84px; height: 84px; margin-bottom: 12px; }
  .pl-head.left .pl-avatar { width: 64px; height: 64px; }
  .pl-username { font-size: 19px; }
  .pl-bio { font-size: 13.5px; }

  /* tighter buttons that fit small screens */
  .pl-links { gap: 10px; }
  .pl-link { padding: 11px 42px 11px 12px; gap: 10px; min-height: 52px; }
  .pl-link-more { right: 5px; width: 32px; height: 32px; }
  .pl-link-more svg { width: 16px; height: 16px; }
  .pl-link-icon { width: 34px; height: 34px; border-radius: 9px; }
  .pl-link-icon svg, .pl-link-arrow svg { width: 16px; height: 16px; }
  .pl-link-title { font-size: 14px; }
  .pl-link-desc { font-size: 12px; }

  .pl-socials { gap: 8px; margin-top: 20px; }
  .pl-social { width: 40px; height: 40px; }
  .pl-social svg { width: 17px; height: 17px; }

  .pl-subscribe { margin-top: 20px; padding: 14px; border-radius: 12px; }
  .pl-subscribe input { padding: 9px 12px; font-size: 14px; min-height: 42px; }
  .pl-subscribe button { padding: 10px 14px; font-size: 13.5px; min-height: 42px; }

  .pl-join { margin-top: 20px; }
  .pl-join-btn { padding: 10px 16px; font-size: 13px; gap: 7px; max-width: 100%; }
  .pl-join-btn svg { width: 15px; height: 15px; }
  .pl-footer-note { margin-top: 20px; }
}

/* ---------------------------------------------------------- suspended page */
.suspended-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; background: var(--surface-2); }
.suspended-card { text-align: center; max-width: 430px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 44px 34px; }
.suspended-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

/* ---------------------------------------------------------- wysiwyg editor */
.wysiwyg { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.wysiwyg-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 7px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.wysiwyg-btn {
  min-width: 34px; height: 34px; border: none; background: transparent; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.wysiwyg-btn:hover { background: var(--border); color: var(--text); }
.wysiwyg-sep { width: 1px; background: var(--border-strong); margin: 4px 5px; }
.wysiwyg-area {
  min-height: 260px; padding: 16px; font-size: 15px; line-height: 1.6; outline: none;
  background: var(--surface); color: var(--text);
}
.wysiwyg-area:focus { box-shadow: inset 0 0 0 2px rgba(0,0,0,.05); }
.wysiwyg-area img { max-width: 100%; border-radius: 8px; }
.wysiwyg-area blockquote { border-left: 3px solid var(--accent); padding-left: 14px; color: var(--text-2); margin: 10px 0; }
.wysiwyg-source { min-height: 260px; font-family: var(--font-mono); font-size: 13px; padding: 16px; border: none; width: 100%; resize: vertical; }

/* ---------------------------------------------------------- misc */
.empty-state { text-align: center; padding: 52px 20px; color: var(--text-2); }
.empty-state .icon-tile { margin-bottom: 10px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .form-input, .toolbar .form-select { width: auto; min-width: 160px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--text-2); }
.divider { height: 1px; background: var(--border); margin: 22px 0; border: none; }
.copy-box { display: flex; gap: 8px; align-items: stretch; }
.copy-box input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 13px; }
.progress-track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; }
details.faq { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; }
details.faq summary { padding: 15px 18px; font-weight: 600; cursor: pointer; font-size: 15px; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; margin-right: 10px; color: var(--accent); font-weight: 800; }
details.faq[open] summary::before { content: "–"; }
details.faq .faq-body { padding: 0 18px 16px; color: var(--text-2); font-size: 14.5px; }
.locked-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.source-pill { display: inline-flex; align-items: center; gap: 6px; }
.scroll-y { max-height: 420px; overflow-y: auto; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* appearance builder preview */
.builder-preview { position: sticky; top: 86px; }
.bp-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); position: relative; min-height: 480px; }
.bp-bg { position: absolute; inset: 0; background: var(--pl-bg-color); }
.bp-bg.has-image { background-size: cover; background-position: center; }
.bp-card { position: relative; max-width: 330px; margin: 34px auto; border-radius: 18px; background: var(--pl-card-bg); color: var(--pl-text); padding: 24px 18px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.bp-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: var(--surface-2); }
.bp-name { font-weight: 800; font-size: 16px; }
.bp-bio { font-size: 12.5px; opacity: .75; margin: 4px 0 16px; }
.bp-link { display: flex; align-items: center; gap: 10px; background: var(--pl-btn-bg); color: var(--pl-btn-text); border-radius: var(--pl-radius); padding: 11px 13px; margin-bottom: 9px; text-align: left; }
.bp-link-icon { width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.07); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.bp-link-title { font-weight: 700; font-size: 12.5px; }
.bp-social { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.bp-social span { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.07); display: inline-flex; align-items: center; justify-content: center; }

/* template picker */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
.tpl-item { border: 2px solid var(--border); border-radius: 12px; padding: 10px; cursor: pointer; text-align: center; background: var(--surface); transition: all .15s; }
.tpl-item:hover { border-color: var(--border-strong); }
.tpl-item.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,0,.07); }
.tpl-swatch { height: 52px; border-radius: 8px; margin-bottom: 8px; }
.tpl-label { font-size: 12.5px; font-weight: 600; }

@media print { .sidebar, .topbar, .site-header, .site-footer { display: none; } .main-area { margin: 0; } }

/* ---------------------------------------------------------- join modal (public card) */
.plm-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.plm-overlay[hidden] { display: none; }
.plm-backdrop { position: absolute; inset: 0; background: rgba(9,9,11,.62); backdrop-filter: blur(4px); }
.plm-modal {
  position: relative; width: 100%; max-width: 440px; background: #ffffff; color: #18181b;
  border-radius: 22px; overflow: hidden; box-shadow: 0 40px 110px rgba(0,0,0,.45);
  animation: plm-pop .22s ease;
}
@keyframes plm-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.plm-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.22); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease;
}
.plm-close:hover { background: rgba(255,255,255,.38); }
.plm-banner {
  background: linear-gradient(150deg, #064e3b 0%, #059669 55%, #10b981 100%);
  color: #ffffff; padding: 30px 28px 26px; position: relative; overflow: hidden;
}
.plm-banner::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 210px; height: 210px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.plm-banner::before {
  content: ""; position: absolute; right: 26px; bottom: -90px; width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.plm-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; margin-bottom: 16px; letter-spacing: -0.01em; }
.plm-brand-mark {
  width: 22px; height: 22px; border-radius: 7px; background: #ffffff; color: #059669;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.plm-brand-mark svg { width: 12px; height: 12px; }
.plm-banner h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 8px; }
.plm-sub { font-size: 13.5px; opacity: .92; line-height: 1.5; margin: 0 0 14px; max-width: 34ch; }
.plm-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.plm-points li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.plm-points li svg { width: 14px; height: 14px; color: #a7f3d0; flex: 0 0 auto; }
.plm-body { padding: 24px 28px 26px; }
.plm-claim-label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #71717a; margin-bottom: 8px; }
.plm-claim-row {
  display: flex; align-items: stretch; border: 1.5px solid #d4d4d8; border-radius: 13px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease; background: #fafafa;
}
.plm-claim-row:focus-within { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,.14); background: #fff; }
.plm-modal.is-free .plm-claim-row { border-color: #059669; }
.plm-modal.is-taken .plm-claim-row { border-color: #dc2626; }
.plm-prefix {
  display: flex; align-items: center; padding: 0 10px 0 14px; font-size: 14px; font-weight: 600;
  color: #a1a1aa; white-space: nowrap; border-right: 1px solid #e4e4e7; max-width: 46%; overflow: hidden;
}
.plm-claim-row input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 13px 12px;
  font-size: 15px; font-weight: 700; color: inherit;
}
.plm-msg { font-size: 13px; font-weight: 600; margin: 9px 2px 0; color: #71717a; }
.plm-modal.is-free .plm-msg { color: #059669; }
.plm-modal.is-taken .plm-msg { color: #dc2626; }
.plm-start {
  width: 100%; margin-top: 14px; min-height: 48px; border: none; border-radius: 13px;
  background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
  box-shadow: 0 12px 26px rgba(5,150,105,.32);
}
.plm-start:hover:not(:disabled) { box-shadow: 0 16px 32px rgba(5,150,105,.4); }
.plm-start:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.plm-fine { text-align: center; font-size: 12px; color: #a1a1aa; margin: 12px 0 0; }

@media (max-width: 480px) {
  .plm-overlay { padding: 12px; align-items: flex-end; }
  .plm-modal { max-height: 92vh; overflow-y: auto; }
  .plm-banner { padding: 24px 22px 20px; }
  .plm-body { padding: 20px 22px 22px; }
}

/* ---------------------------------------------------------- share + about modals (public card) */
.shm-modal {
  position: relative; width: 100%; max-width: 470px; background: #ffffff; color: #18181b;
  border-radius: 20px; padding: 26px 26px 24px; box-shadow: 0 40px 110px rgba(0,0,0,.45);
  animation: plm-pop .22s ease; max-height: 88vh; overflow-y: auto;
}
.shm-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; text-align: center; }
.shm-x { background: rgba(24,24,27,.08); color: #18181b; }
.shm-x:hover { background: rgba(24,24,27,.16); }
.shm-preview {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 150px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #f4f4f5, #e4e4e7);
  border: 1px solid #e4e4e7;
}
.shm-preview-media {
  width: 58px; height: 58px; border-radius: 14px; background: #ffffff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); color: #18181b;
}
.shm-preview-media.has-img { width: 84px; height: 84px; border-radius: 16px; background: #fff; }
.shm-preview-media.has-img img { width: 100%; height: 100%; object-fit: cover; }
.shm-preview-media svg { width: 26px; height: 26px; }
.shm-preview-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(9,9,11,.62); color: #ffffff;
  font-size: 11.5px; font-weight: 600; padding: 7px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.shm-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #a1a1aa; text-align: center; margin: 16px 0 10px;
}
.shm-actions {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start;
  gap: 10px 8px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  padding: 2px 2px 8px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: #d4d4d8 transparent;
}
.shm-actions::-webkit-scrollbar { height: 6px; }
.shm-actions::-webkit-scrollbar-track { background: transparent; }
.shm-actions::-webkit-scrollbar-thumb { background: #e4e4e7; border-radius: 999px; }
.shm-opt {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 52px; flex: 0 0 auto; background: none; border: none; padding: 0; cursor: pointer; text-decoration: none;
  scroll-snap-align: start;
}
.shm-cta-row { display: flex; gap: 10px; margin-top: 18px; }
.shm-cta {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 18px; border-radius: 50px;
  font-size: 13.5px; font-weight: 700; text-decoration: none; letter-spacing: -.01em;
  transition: filter .14s ease, background .14s ease;
}
/* Sign up free = black pill · Find more = white pill with #eee border (platform buttons, never tinted) */
.shm-cta-primary { background: #111111; color: #ffffff; }
.shm-cta-primary:hover { filter: brightness(.9); }
.shm-cta-ghost { background: #ffffff; color: #18181b; border: 1.5px solid #eeeeee; }
.shm-cta-ghost:hover { background: #f7f7f7; }
.shm-opt-ico {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #ffffff; transition: transform .14s ease, filter .14s ease;
}
.shm-opt:hover .shm-opt-ico { filter: brightness(1.06); }
.shm-opt-ico svg { width: 21px; height: 21px; }
.shm-opt-name { font-size: 10.5px; font-weight: 600; color: #52525b; line-height: 1.2; text-align: center; }
.shm-ico-copy { background: linear-gradient(135deg, #059669, #10b981); }
.shm-x-brand .shm-opt-ico { background: #000000; }
.shm-facebook .shm-opt-ico { background: #1877f2; }
.shm-whatsapp .shm-opt-ico { background: #25d366; }
.shm-linkedin .shm-opt-ico { background: #0a66c2; }
.shm-messenger .shm-opt-ico { background: linear-gradient(135deg, #00b2ff, #006aff); }
.shm-snapchat .shm-opt-ico { background: #fffc00; color: #111111; }
.shm-mail .shm-opt-ico { background: #18181b; }

/* about this account modal */
.abt-modal { max-width: 360px; padding: 24px 22px 22px; }
.abt-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; }
.abt-avatar {
  width: 74px; height: 74px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,.14); border: 3px solid rgba(24,24,27,.06);
}
.abt-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #059669, #10b981); color: #fff; font-weight: 800; font-size: 30px;
}
.abt-username { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.abt-joined {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #52525b;
  background: #f4f4f5; border: 1px solid #e4e4e7; border-radius: 999px; padding: 5px 12px;
}
.abt-joined svg { width: 13px; height: 13px; color: #059669; }
.abt-stats {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; color: #71717a; margin-top: 12px;
}
.abt-stats strong { color: #18181b; }
.abt-sub {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #a1a1aa; margin: 16px 0 8px; text-align: center;
}
.abt-links {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 200px; overflow-y: auto;
  border: 1px solid #e4e4e7; border-radius: 12px; padding: 8px;
  background: #fafafa;
}
.abt-link-row {
  display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600;
  background: #ffffff; border: 1px solid #f4f4f5; border-radius: 9px; padding: 8px 10px;
}
.abt-link-ico {
  width: 28px; height: 28px; border-radius: 8px; background: #f4f4f5;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #18181b;
}
.abt-link-ico svg { width: 14px; height: 14px; }
.abt-link-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abt-fine { text-align: center; font-size: 12px; color: #a1a1aa; margin: 14px 0 0; }
.abt-fine a { text-decoration: underline; }

@media (max-width: 480px) {
  .shm-modal { padding: 20px 16px 18px; }
  .shm-preview { height: 130px; }
  .shm-opt { width: 46px; }
  .shm-opt-ico { width: 40px; height: 40px; }
  .pl-foot-links { gap: 5px 14px; }
  .pl-cta-row { flex-direction: row; gap: 8px; }
  .pl-cta-btn { min-height: 44px; padding: 10px 12px; font-size: 13.5px; }
}

/* ---------------------------------------------------------- register (split layout) */
.reg-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 44%) 1fr; }
.reg-side { position: relative; overflow: hidden; background: #064e3b; }
.reg-side-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9;
}
.reg-side-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 34px 40px; background: linear-gradient(200deg, rgba(4,47,36,.18) 0%, rgba(4,47,36,.78) 78%);
  color: #fff;
}
.reg-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: #fff; text-decoration: none; letter-spacing: -0.01em; width: fit-content; }
.reg-brand-mark {
  width: 30px; height: 30px; border-radius: 10px; background: #ffffff; color: #059669;
  display: inline-flex; align-items: center; justify-content: center;
}
.reg-brand-mark svg { width: 16px; height: 16px; }
.reg-side-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 12px; }
.reg-side-copy p { font-size: 15px; opacity: .92; line-height: 1.6; margin: 0 0 20px; max-width: 40ch; }
.reg-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.reg-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.reg-points li svg { width: 16px; height: 16px; color: #6ee7b7; flex: 0 0 auto; }
.reg-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface-2, #fafafa); }
.reg-box { width: 100%; max-width: 420px; background: var(--surface, #fff); border: 1px solid var(--border, #e4e4e7); border-radius: 22px; padding: 38px 36px; box-shadow: var(--shadow, 0 18px 50px rgba(0,0,0,.08)); }
.reg-box h1 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.reg-box .lead { color: var(--text-2, #71717a); font-size: 14.5px; line-height: 1.55; margin-bottom: 24px; }
.reg-handle-box {
  border: 1px dashed var(--border-strong, #d4d4d8); background: var(--surface-2, #fafafa);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.reg-handle-value { font-size: 15.5px; }
.reg-handle-value strong { color: var(--accent, #059669); letter-spacing: -0.01em; }
.reg-terms { font-size: 12.5px; color: var(--text-2, #71717a); line-height: 1.6; margin-top: 18px; text-align: center; }
.reg-terms a { font-weight: 600; text-decoration: underline; }
.reg-code-input {
  font-family: var(--font-mono, ui-monospace, monospace) !important; font-size: 26px !important;
  letter-spacing: 14px; text-align: center; font-weight: 800; min-height: 60px !important;
}
.reg-code-hint {
  margin-top: 16px; padding: 11px 14px; border-radius: 11px; text-align: center;
  background: var(--surface-2, #f4f4f5); border: 1px dashed var(--border-strong, #d4d4d8);
  font-size: 13px; color: var(--text-2, #52525b);
}
.reg-code-hint code {
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 16px; font-weight: 800;
  letter-spacing: 3px; color: var(--accent, #059669); margin: 0 4px;
}
.reg-copy-btn {
  border: 1px solid var(--border-strong, #d4d4d8); background: #fff; border-radius: 8px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; cursor: pointer; color: inherit;
}
.reg-copy-btn:hover { border-color: var(--accent, #059669); color: var(--accent, #059669); }

@media (max-width: 860px) {
  .reg-wrap { grid-template-columns: 1fr; }
  .reg-side { min-height: 190px; }
  .reg-side-overlay { padding: 22px 24px; justify-content: flex-start; gap: 14px; background: linear-gradient(200deg, rgba(4,47,36,.25) 0%, rgba(4,47,36,.82) 100%); }
  .reg-side-copy h2 { font-size: 22px; margin-bottom: 6px; }
  .reg-side-copy p { display: none; }
  .reg-points { display: none; }
  .reg-main { padding: 26px 16px 44px; }
  .reg-box { padding: 28px 22px; }
}

/* ============================================================
   ---- link app blocks (plb-*) — public profile page ----
   Rendered by src/Helpers/blocks.php inside .pl-links. Blocks
   inherit the owner's theme via the --pl-* custom properties and
   adapt to any card color using color-mix with currentColor.
   ============================================================ */
.plb {
  font-size: 14px; line-height: 1.5; color: var(--pl-text); text-align: left;
  background: color-mix(in srgb, currentColor 4%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 14px; padding: 16px;
}

/* --- shared primitives ------------------------------------------------ */
.plb-block-title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; line-height: 1.35; }
.plb-block-desc { font-size: 13.5px; opacity: .75; margin-top: 3px; }
.plb-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin-bottom: 1px; }
.plb-sponsored {
  display: inline-block; vertical-align: 2px; margin-left: 4px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent); opacity: .85;
}
.plb-disclosure { text-align: center; font-size: 11.5px; opacity: .55; padding: 2px 0; }
.plb-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--pl-radius, 12px);
  background: var(--pl-accent); color: var(--pl-accent-text);
  border: 1px solid color-mix(in srgb, var(--pl-accent) 72%, transparent);
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: filter .15s ease;
}
.plb-btn:hover { filter: brightness(.92); }
.plb-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.plb-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plb-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.plb-chip svg { width: 13px; height: 13px; }
.plb-chip-muted { opacity: .65; }
.plb-profile-head { display: flex; gap: 12px; align-items: flex-start; }
.plb-profile-head > div { flex: 1; min-width: 0; }
.plb-profile-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  background: color-mix(in srgb, currentColor 8%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.plb-profile-icon svg { width: 20px; height: 20px; }

/* inputs inside blocks (email capture, contact form, unlock forms) */
.plb-form, .plb-capture { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.plb-capture { flex-direction: row; }
.plb-input, .plb-capture input {
  width: 100%; padding: 11px 14px; border-radius: 10px; min-height: 44px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, var(--pl-card-bg) 55%, #ffffff); color: var(--pl-text);
  font-size: 14px; font-family: inherit; box-sizing: border-box;
}
.plb-capture input { flex: 1; min-width: 0; width: auto; }
.plb-input:focus, .plb-capture input:focus { outline: none; border-color: var(--pl-accent); }
.plb-capture button {
  border: none; border-radius: 10px; min-height: 44px; padding: 0 18px; cursor: pointer;
  background: var(--pl-accent); color: var(--pl-accent-text); font-weight: 700; font-size: 14px; font-family: inherit;
}
.plb-submit { width: 100%; }

/* --- header / text ------------------------------------------------------ */
.plb-header {
  background: transparent; border: none; border-left: 3px solid var(--pl-accent);
  border-radius: 4px; padding: 6px 0 6px 12px;
}
.plb-header.plb-header-centered { text-align: center; border-left: none; padding: 8px 0; }
.plb-header.plb-header-card {
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  border-radius: 14px; padding: 14px 16px; text-align: center;
}
.plb-header-title { display: block; font-weight: 800; font-size: 14.5px; text-transform: uppercase; letter-spacing: .07em; }
.plb-header-sub { display: block; font-size: 12.5px; opacity: .6; margin-top: 2px; }
.plb-text { background: transparent; }
.plb-text-title { font-weight: 800; font-size: 15px; }
.plb-text-body { font-size: 13.5px; opacity: .8; margin-top: 4px; white-space: pre-line; }

/* --- video embed -------------------------------------------------------- */
.plb-video-frame {
  position: relative; margin-top: 12px; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; background: color-mix(in srgb, currentColor 8%, transparent);
}
.plb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- images (covers, product, grid) ------------------------------------ */
.plb-cover { display: block; width: 100%; max-width: 100%; border-radius: 10px; margin-bottom: 12px; }
.plb-presave .plb-cover { max-height: 280px; width: auto; margin: 0 auto 12px; }
.plb-product-img { width: 100%; max-height: 250px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.plb-book-layout { display: flex; gap: 14px; align-items: flex-start; }
.plb-book-cover { width: 92px; flex: 0 0 auto; margin: 0; }
.plb-book-body { flex: 1; min-width: 0; }
.plb-book-author { font-size: 13px; font-style: italic; opacity: .7; margin-top: 2px; }
.plb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; border-radius: 10px; overflow: hidden; }
.plb-grid-cell { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: color-mix(in srgb, currentColor 8%, transparent); }
.plb-grid-cell img { width: 100%; height: 100%; object-fit: cover; }

/* --- FAQ ----------------------------------------------------------------- */
.plb-faq-item { border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.plb-faq-item:first-of-type { border-top: none; }
.plb-faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 14px; padding: 11px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.plb-faq-item summary::-webkit-details-marker { display: none; }
.plb-faq-item summary::after { content: "+"; font-weight: 800; opacity: .5; flex: 0 0 auto; }
.plb-faq-item[open] summary::after { content: "–"; }
.plb-faq-item p { font-size: 13.5px; opacity: .78; padding: 0 0 12px; }

/* --- discount code ------------------------------------------------------- */
.plb-code-box { display: flex; gap: 8px; margin-top: 12px; }
.plb-code-box code {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 46px;
  font-family: var(--font-mono, monospace); font-size: 15px; font-weight: 700; letter-spacing: .12em;
  padding: 10px 12px; border-radius: 10px; word-break: break-all; text-align: center;
  border: 1.5px dashed color-mix(in srgb, currentColor 30%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
}
.plb-copy {
  border: none; border-radius: 10px; min-height: 46px; padding: 0 16px; cursor: pointer;
  background: var(--pl-accent); color: var(--pl-accent-text); font-weight: 700; font-size: 13px; font-family: inherit;
}

/* --- contact card -------------------------------------------------------- */
.plb-contact-list { margin-top: 6px; }
.plb-contact-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px;
  font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; word-break: break-all;
  border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}
.plb-contact-row:first-child { border-top: none; }
.plb-contact-row svg { width: 16px; height: 16px; opacity: .6; flex: 0 0 auto; }

/* --- locked links -------------------------------------------------------- */
.plb-lock { position: relative; overflow: hidden; }
.plb-lock-head { display: flex; gap: 12px; align-items: center; }
.plb-lock-badge {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: color-mix(in srgb, currentColor 10%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.plb-lock-badge svg { width: 17px; height: 17px; }
.plb-lock-teaser { margin: 12px 0 2px; display: flex; flex-direction: column; gap: 6px; }
.plb-lock-teaser span {
  display: block; height: 12px; border-radius: 6px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  filter: blur(3px); user-select: none;
}
.plb-lock-teaser span:nth-child(2) { width: 78%; }
.plb-lock-teaser span:nth-child(3) { width: 55%; }

/* --- redirect banner ------------------------------------------------------ */
.plb-redirect { padding: 12px 14px; background: color-mix(in srgb, currentColor 6%, transparent); }
.plb-redirect-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plb-redirect-ico { display: flex; flex: 0 0 auto; opacity: .7; }
.plb-redirect-ico svg { width: 16px; height: 16px; }
.plb-redirect-text { flex: 1; min-width: 0; font-size: 13.5px; }
.plb-redirect-text a { text-decoration: underline; }
.plb-redirect-sec { font-weight: 800; }
.plb-redirect-cancel {
  border: none; background: transparent; color: inherit; cursor: pointer;
  font-weight: 700; font-size: 12.5px; opacity: .6; text-decoration: underline; padding: 4px;
}
.plb-redirect-cancel:hover { opacity: 1; }
.plb-redirect.is-cancelled { opacity: .75; }

/* --- map card -------------------------------------------------------------- */
.plb-map-box {
  display: flex; gap: 10px; align-items: center; margin-top: 12px;
  padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.plb-map-box svg { width: 16px; height: 16px; opacity: .6; flex: 0 0 auto; }

/* --- owner extras: support banner, hero, logo title, thumbnails, terms ---- */
.pl-support {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 12px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
  background: color-mix(in srgb, var(--pl-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pl-accent) 30%, transparent);
}
.pl-support-heart { display: flex; flex: 0 0 auto; color: var(--pl-accent); }
.pl-support-heart svg { width: 16px; height: 16px; }
.pl-support-text { flex: 1; min-width: 0; }
.pl-support-btn {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: var(--pl-accent); color: var(--pl-accent-text);
  font-weight: 700; font-size: 12.5px; text-decoration: none;
}
/* hero banner — full-bleed: no card padding around it, it spans the whole card
   edge to edge, and the profile avatar overlaps its bottom edge by 50% */
.pl-hero {
  display: block;
  width: calc(100% + 52px);
  margin: -38px -26px 0;
  border-radius: var(--pl-card-radius, 26px) var(--pl-card-radius, 26px) 0 0;
}
.pl-hero ~ .pl-head { margin-top: 0; }
.pl-hero ~ .pl-head .pl-avatar { margin-top: -48px; position: relative; z-index: 2; }
.pl-hero ~ .pl-head.left .pl-avatar { margin-top: -38px; }
.pl-logo-title { display: inline-block; max-height: 44px; max-width: 240px; width: auto; }
.pl-link-thumb { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; }
.pl-terms { font-size: 11.5px; opacity: .55; margin-top: 10px; text-align: center; }
.pl-terms a { text-decoration: underline; }

/* --- link app blocks — mobile --------------------------------------------- */
@media (max-width: 640px) {
  .plb { padding: 13px 12px; border-radius: 12px; font-size: 13.5px; }
  .plb-header { padding: 4px 0 4px 10px; }
  .plb-header.plb-header-card { padding: 12px; }
  .plb-btn { min-height: 42px; padding: 9px 14px; font-size: 13.5px; }
  .plb-capture { flex-direction: column; }
  .plb-capture button { width: 100%; min-height: 42px; }
  .plb-code-box code { font-size: 13.5px; letter-spacing: .08em; min-height: 44px; }
  .plb-copy { min-height: 44px; }
  .plb-support { padding: 11px 12px; margin-bottom: 16px; }
  /* banner full-bleed on mobile too — the card has no chrome there */
  .pl-hero {
    width: calc(100% + 8px);
    margin: -34px -4px 0;
    border-radius: 0;
  }
  .pl-hero ~ .pl-head .pl-avatar { margin-top: -42px; }
  .pl-hero ~ .pl-head.left .pl-avatar { margin-top: -32px; }
  .plb-grid { gap: 3px; }
  .plb-video-frame { border-radius: 10px; }
  .plb-faq-item summary { padding: 10px 0; }
  .plb-contact-row { padding: 9px 2px; }
}

/* ---------------------------------------------------------- icon picker modal (dashboard links) */
.ipk-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ipk-overlay[hidden] { display: none; }
.ipk-backdrop, .ipk-overlay::before {
  content: ""; position: absolute; inset: 0; background: rgba(9,9,11,.55); backdrop-filter: blur(3px);
}
.ipk-modal {
  position: relative; width: 100%; max-width: 480px; background: var(--surface); color: var(--text);
  border-radius: 18px; padding: 20px; box-shadow: 0 40px 110px rgba(0,0,0,.4);
  animation: plm-pop .2s ease; max-height: 84vh; display: flex; flex-direction: column;
}
.ipk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ipk-head strong { font-size: 15.5px; letter-spacing: -.01em; }
.ipk-close {
  width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--surface-2); color: var(--text-2); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ipk-close:hover { background: var(--border); color: var(--text); }
.ipk-search { position: relative; margin-bottom: 12px; }
.ipk-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--text-3); pointer-events: none;
}
.ipk-search input {
  width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--border-strong);
  border-radius: 10px; font-size: 14px; font-family: inherit; background: var(--surface);
  color: var(--text); min-height: 42px;
}
.ipk-search input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.ipk-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px;
  overflow-y: auto; padding: 2px;
}
.ipk-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1.5px solid transparent; background: var(--surface-2); border-radius: 12px;
  padding: 10px 4px 8px; cursor: pointer; transition: background-color .13s ease, border-color .13s ease;
}
.ipk-item:hover { background: var(--border); }
.ipk-item.selected { border-color: var(--accent); background: var(--accent-soft); }
.ipk-item-ico {
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.ipk-item-ico svg { width: 17px; height: 17px; }
.ipk-item-name {
  font-size: 10.5px; font-weight: 600; color: var(--text-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ipk-trigger {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 12px; min-height: 44px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  font-size: 14.5px; font-family: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.ipk-trigger:hover { border-color: var(--text-3); }
.ipk-trigger:focus-visible { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.ipk-trigger-ico {
  width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.ipk-trigger-ico svg { width: 16px; height: 16px; }
.ipk-trigger-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ipk-trigger-chev { display: flex; flex: 0 0 auto; color: var(--text-3); }
.ipk-trigger-chev svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- billing page */
.bill-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
}
.bill-plan-cell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bill-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.bill-value { font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bill-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch;
}
@media (max-width: 900px) { .bill-grid { grid-template-columns: 1fr; max-width: 480px; } }
@media (max-width: 640px) { .bill-summary { grid-template-columns: 1fr; } .bill-grid { grid-template-columns: 1fr; } }
.bill-card { padding: 26px 24px; }
.bill-card-current { border: 2px solid var(--accent, #10b981); box-shadow: var(--shadow); }
.bill-flag-current { background: var(--accent, #10b981); }
.bill-current-note {
  background: var(--accent-soft, rgba(16,185,129,.1)); color: #065f46;
  border-radius: 10px; padding: 11px 12px; font-size: 13.5px; font-weight: 700; text-align: center;
}
.bill-trial-link { display: flex; justify-content: center; margin-bottom: 8px; }

/* ---------------------------------------------------------- notifications page */
.notif-list { max-height: 560px; overflow-y: auto; }
.notif-item { border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item summary {
  display: flex; align-items: center; gap: 12px; padding: 13px 20px; cursor: pointer;
  list-style: none; transition: background-color .12s ease;
}
.notif-item summary::-webkit-details-marker { display: none; }
.notif-item summary:hover { background: var(--surface-2); }
.notif-icon {
  width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.notif-icon svg { width: 16px; height: 16px; }
.notif-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-subject { font-weight: 600; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-date { font-size: 12px; color: var(--text-3); }
.notif-badge { flex: 0 0 auto; }
.notif-body { padding: 0 20px 15px 66px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 640px) {
  .notif-item summary { padding: 12px 14px; }
  .notif-body { padding: 0 14px 14px 14px; }
}

/* ---------------------------------------------------------- social icons: inline edit */
.social-row-wrap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); padding-top: 4px;
}
.social-edit-form { border-bottom: 1px solid var(--border); padding: 4px 22px 16px; background: var(--surface-2); }
@media (max-width: 640px) {
  .social-row-wrap { padding: 12px 14px; }
  .social-edit-form { padding: 12px 14px 14px; }
}

/* ---------------------------------------------------------- notification bell (dashboard topbar) */
.notif-bell { position: relative; }
.notif-bell-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.notif-bell-btn:hover { background: var(--surface-2); color: var(--text); }
.notif-bell-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.notif-bell-btn svg { width: 17px; height: 17px; }
.notif-bell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #e11d48; color: #ffffff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface); pointer-events: none;
}
.notif-pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 90; width: 340px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.16); overflow: hidden;
}
.notif-pop[hidden] { display: none; }
.notif-pop-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.notif-pop-head strong { font-size: 13.5px; color: var(--text); }
.notif-pop-head a { font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.notif-pop-head a:hover { text-decoration: underline; }
.notif-pop-list { max-height: 340px; overflow-y: auto; }
.notif-pop-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); text-decoration: none; }
.notif-pop-item:last-child { border-bottom: none; }
.notif-pop-item:hover { background: var(--surface-2); }
.notif-pop-ico {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.notif-pop-ico svg { width: 15px; height: 15px; }
.notif-pop-item.is-message .notif-pop-ico { background: var(--accent-soft, #ecfdf5); color: var(--accent); border-color: transparent; }
.notif-pop-main { flex: 1; min-width: 0; }
.notif-pop-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-pop-item.is-unread .notif-pop-title { font-weight: 800; }
.notif-pop-time { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.notif-pop-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; margin-top: 6px; }
.notif-pop-empty { padding: 30px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

/* unread styling for the notifications page list */
.notif-item.is-unread { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.notif-item.is-unread .notif-subject { font-weight: 800; }
.notif-new-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 7px; flex: 0 0 auto;
}
@media (max-width: 640px) {
  .notif-pop { width: 320px; }
  .notif-bell-btn { width: 34px; height: 34px; }
}

/* ---------------------------------------------------------- page forms toggles (links dashboard) */
.forms-card { display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap; }
.forms-card .form-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; }
.forms-card .form-toggle strong { font-size: 13.5px; font-weight: 700; color: var(--text); }
.forms-card .form-toggle small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.forms-card.locked { opacity: .75; }

/* ---------------------------------------------------------- hero split (claim | showcase) */
.hero-split { padding: 70px 0 64px; text-align: left; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.hero-split h1 { margin: 0; font-size: clamp(32px, 4.6vw, 52px); }
.hero-split p.sub { margin: 16px 0 28px; }
.hero-claim { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); max-width: 540px; }
.hero-claim-label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin: 0 2px 10px; }
.hero-claim-row { display: flex; align-items: stretch; }
.hero-prefix {
  display: flex; align-items: center; padding: 0 8px 0 13px; background: var(--surface-2);
  border: 1px solid var(--border-strong); border-right: none; border-radius: 10px 0 0 10px;
  color: var(--text-3); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.hero-claim input {
  flex: 1; min-width: 0; border: 1px solid var(--border-strong); border-right: none; border-radius: 0;
  padding: 12px 10px; font-size: 15px; font-weight: 700; background: var(--surface); color: var(--text);
}
.hero-claim input:focus { outline: none; border-color: var(--text); }
.hero-claim-row .btn { border-radius: 0 10px 10px 0; padding: 10px 18px; min-height: 46px; }
.hero-claim-row .btn:disabled { opacity: .45; cursor: not-allowed; }
.hero-claim-msg { font-size: 13px; font-weight: 600; margin: 9px 2px 0; color: var(--text-2); }
.hero-claim-msg.is-free { color: var(--accent); }
.hero-claim-msg.is-taken { color: var(--danger); }
.hero-claim-note { font-size: 12.5px; color: var(--text-3); margin: 10px 2px 0; }
.hero-claim-note a { font-weight: 700; color: var(--text-2); text-decoration: underline; }
.hero-shot {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 34px 80px rgba(0,0,0,.24); border: 1px solid var(--border);
  background: linear-gradient(160deg, #f97316, #db2777 55%, #7c3aed);
}
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 960px) {
  .hero-split { padding: 52px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-claim { max-width: none; }
}
@media (max-width: 560px) {
  .hero-claim-row { flex-wrap: wrap; }
  .hero-prefix { border-radius: 10px 0 0 0; }
  .hero-claim input { border-radius: 0 10px 0 0; border-right: 1px solid var(--border-strong); }
  .hero-claim-row .btn { border-radius: 10px; flex: 1 1 100%; margin-top: 10px; }
}

/* register modal — email field (plm modal reused on the home hero) */
.regm-email-label { margin-top: 16px; }
.regm-email {
  width: 100%; padding: 13px 14px; border: 1.5px solid #d4d4d8; border-radius: 13px;
  font-size: 15px; font-weight: 600; background: #fafafa; color: #18181b; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.regm-email:focus { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,.14); background: #fff; }

/* ---------------------------------------------------------- minimal sidebar scrollbar (admin + client panels) */
.sidebar-nav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar-nav:hover { scrollbar-color: #d9d9de transparent; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; border: none; }
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: #d9d9de; }
