
:root {
  --brand-bg: #0f172a; /* slate-900 */
  --brand-accent: #06b6d4; /* turquoise/cyan */
  --brand-accent-2: #0891b2; /* darker turquoise */
  --text: #e5e7eb; /* gray-200 */
  --muted: #94a3b8; /* slate-400 */
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --mobile-nav-top: 88px;
  --mobile-nav-height: 108px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  background-color: var(--brand-bg);
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(11, 17, 32, 0.84)), url("/assets/landscape_scit.png");
  background-size: cover, 100vw auto;
  background-repeat: no-repeat;
  background-position: center, top center;
  background-attachment: fixed, fixed;
  color: var(--text);
}
@media (max-width: 900px) {
  html, body {
    background-attachment: scroll, scroll;
  }
}
a { color: var(--brand-accent); text-decoration: none; }
a:hover { color: var(--brand-accent-2); }
[hidden] { display: none !important; }
.hidden { display: none !important; }

.container { max-width: 1080px; margin: 0 auto; padding: 16px; }
.container.wide { max-width: 1080px; }
.container.narrow { max-width: 780px; }
.snap-section { scroll-margin-top: 140px; }
@media (max-width: 1024px) {
  .snap-section { scroll-margin-top: 104px; }
}
.navbar { backdrop-filter: blur(8px); background: linear-gradient(180deg, rgba(11,17,32,0.9), rgba(6,10,18,0.75)); border-bottom: 1px solid #111827; position: sticky; top:0; z-index:1000; transform: translateZ(0); }
.navbar-inner { display:flex; align-items:center; gap: 16px; padding: 10px 20px; max-width:1200px; margin:0 auto; }
.navbar img.logo { height: 40px; border-radius: 8px; }
@media (max-width:1024px) {
  body.navbar-condensed .navbar-inner {
    padding:6px 12px;
  }
  body.navbar-condensed .audience-dropdown,
  body.navbar-condensed .lang-dropdown {
    display:none;
  }
  body.navbar-condensed .brand {
    max-width:60%;
  }
  body.navbar-condensed #menuToggle {
    transform:scale(0.92);
  }
}
@media (max-width: 900px) {
  body { padding-top: var(--mobile-nav-height); }
  .snap-section { scroll-margin-top: var(--mobile-nav-height); }
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #0b1220;
    backdrop-filter: none;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  }
  .navbar-inner {
    max-width: 100%;
    padding: 10px 14px;
  }
  /* Désactiver le mode condensed sur mobile pour éviter le flicker/duplication */
  body.navbar-condensed .navbar-inner { padding: 10px 14px; }
  body.navbar-condensed .audience-dropdown,
  body.navbar-condensed .lang-dropdown,
  body.navbar-condensed .auth { display:flex; }
  body.navbar-condensed .brand { max-width: 100%; }
  body.navbar-condensed #menuToggle { transform:none; }
}
.brand {
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  margin:0;
  border-radius:12px;
  font-weight:600;
  font-size:18px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.22s ease;
}
.brand:hover,
.brand:focus-visible {
  color: var(--brand-accent);
  background: rgba(255,255,255,0.04);
}
.nav { display:flex; gap:8px; margin:0 auto; }
.nav a { color:var(--text); padding:8px 12px; border-radius:12px; position:relative; display:inline-flex; align-items:center; gap:4px; }
.nav-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(56,189,248,0.18);
  border:1px solid rgba(56,189,248,0.45);
  color:#bbf7d0;
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.nav a.active{ background: rgba(255,255,255,0.04); }
.pill-dropdown,
.lang-dropdown,
.audience-dropdown {
  position:relative;
  display:inline-flex;
  align-items:center;
  margin-left:8px;
}
.pill-button,
.lang-current,
.audience-current {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:999px;
  padding:6px 13px;
  border:1px solid rgba(33,48,63,0.85);
  background: linear-gradient(135deg, rgba(8,13,24,0.8), rgba(7,15,30,0.95));
  color:#e2e8f0;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(2,6,23,0.38);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.pill-button:hover,
.lang-current:hover,
.lang-current:focus-visible,
.audience-current:hover,
.audience-current:focus-visible,
.pill-button:focus-visible {
  border-color: rgba(6,182,212,0.6);
  background: rgba(6,19,32,0.95);
  outline:none;
}
.lang-flag { font-size:16px; line-height:1; }
.pill-caret,
.lang-caret,
.audience-caret {
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  opacity:.8;
  transition:transform .2s ease;
}
.pill-dropdown.is-open .pill-caret,
.lang-dropdown.is-open .lang-caret,
.audience-dropdown.is-open .audience-caret {
  transform:rotate(180deg);
}
.pill-options,
.lang-options,
.audience-options {
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  min-width:170px;
  max-width:220px;
  max-height:260px;
  overflow:auto;
  background: rgba(7,12,24,0.98);
  border:1px solid #1f2937;
  border-radius:16px;
  box-shadow:0 20px 40px rgba(0,0,0,0.65);
  padding:6px;
  display:none;
  z-index:160;
}
.pill-dropdown.is-open .pill-options,
.lang-dropdown.is-open .lang-options,
.audience-dropdown.is-open .audience-options {
  display:block;
}
.audience-options button {
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  border:none;
  border-radius:10px;
  background:transparent;
  color:#cbd5f5;
  font-weight:500;
  padding:8px 10px;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.audience-options button.is-active {
  background:rgba(6,182,212,0.18);
  color:#f8fafc;
}
.audience-options button:hover,
.audience-options button:focus-visible {
  background:rgba(15,23,42,0.9);
  color:#f8fafc;
  outline:none;
}
.brand-menu {
  display:flex;
  align-items:center;
  gap:8px;
  position:relative;
}
.brand-menu .brand-caret {
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid #9ca3af;
  margin-left:4px;
  opacity:.65;
  transition:transform .2s ease, opacity .2s ease;
  display:none;
}
.brand-menu .nav { margin:0; }
.brand-menu nav { z-index:140; }
@media (min-width: 900px) {
  .brand-menu {
    padding-bottom:36px;
    margin-bottom:-36px;
  }
  .brand-menu::after {
    content:"";
    position:absolute;
    left:-12px;
    right:-12px;
    top:100%;
    height:28px;
    display:block;
  }
  .brand-menu .brand-caret { display:inline-block; }
  .brand-menu nav {
    position:absolute;
    top:calc(100% - 36px);
    left:0;
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:12px;
    border-radius:18px;
    background:rgba(7,12,24,0.97);
    border:1px solid #1f2937;
    box-shadow:0 22px 44px rgba(0,0,0,0.55);
    opacity:0;
    pointer-events:none;
    transform:translateY(-6px);
    transition:opacity .2s ease, transform .2s ease;
    min-width:220px;
  }
  .brand-menu nav:not(.is-open) { visibility:hidden; }
  .brand-menu:hover nav,
  .brand-menu:focus-within nav {
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
    visibility:visible;
  }
  .brand-menu:hover .brand-caret,
  .brand-menu:focus-within .brand-caret {
    opacity:1;
    transform:rotate(180deg);
  }
  .brand-menu nav a {
    width:100%;
    justify-content:flex-start;
  }
}
@media (min-width: 1025px) and (max-width: 1180px) {
  .brand-menu nav {
    position:static;
    display:flex;
    flex-direction:row;
    gap:8px;
    padding:0;
    background:transparent;
    border:none;
    box-shadow:none;
    opacity:1;
    pointer-events:auto;
    transform:none;
    visibility:visible;
    min-width:0;
  }
  .brand-menu .brand-caret { display:none; }
}
.nav-return-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(56,189,248,0.45);
  color:#7dd3fc;
  text-decoration:none;
  font-size:14px;
  line-height:1;
  font-weight:500;
  white-space:nowrap;
  flex-shrink:0;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.nav-return-btn:hover,
.nav-return-btn:focus-visible {
  color:#f8fafc;
  border-color:#38bdf8;
  background:rgba(56,189,248,0.12);
  outline:none;
}
.lang-option {
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  border:none;
  border-radius:10px;
  background:transparent;
  color:#cbd5f5;
  font-weight:500;
  padding:8px 10px;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.lang-option:hover,
.lang-option:focus-visible {
  background:rgba(15,23,42,0.9);
  color:#f8fafc;
  outline:none;
}
.lang-option-flag { font-size:16px; line-height:1; }
.lang-option.is-active {
  background:rgba(6,182,212,0.18);
  color:#f8fafc;
}
.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;
}
.menu-toggle { border:1px solid rgba(6,182,212,0.6); background: rgba(8,13,24,0.7); color:#5cf2ff; cursor:pointer; padding:10px; display:inline-flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; border-radius:12px; min-width:48px; min-height:48px; transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease; }
.menu-toggle:hover,
.menu-toggle:focus-visible { background: rgba(8,13,24,0.92); border-color: var(--brand-accent); color:#9df7ff; box-shadow:0 0 12px rgba(6,182,212,0.45); outline:none; }
.menu-toggle-bar { width:22px; height:2px; border-radius:999px; background: currentColor; transition: transform 0.22s ease, opacity 0.22s ease; }
.menu-toggle::after {
  content: "Menu";
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: currentColor;
  margin-top: 4px;
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity:0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.spacer { flex:1; order:80; min-width:0; }
.auth {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:10px;
  min-width:0;
  margin-left:auto;
  order:90;
}
.auth .btn {
  order:0;
}
.auth .btn.ghost {
  padding:6px 12px;
}
.user-chip {
  order:0;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 14px 6px 8px;
  border-radius:999px;
  border:1px solid #21303f;
  background: rgba(255,255,255,0.02);
  font-size:13px;
  font-weight:600;
  color: var(--text);
  cursor:pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  appearance:none;
  outline:none;
}
.user-chip:focus-visible {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.35);
}
.user-chip:disabled {
  cursor: not-allowed;
  opacity:0.9;
}
.user-chip.is-authenticated {
  background: rgba(34,197,94,0.16);
  border-color: rgba(34,197,94,0.6);
  color: #bbf7d0;
  box-shadow: 0 0 12px rgba(34,197,94,0.22);
}
.user-chip.is-authenticated:hover:not(:disabled),
.user-chip.is-authenticated:focus-visible {
  background: rgba(34,197,94,0.22);
}
.user-chip.is-guest {
  background: rgba(220,38,38,0.15);
  border-color: rgba(248,113,113,0.7);
  color: #fecaca;
  box-shadow: 0 0 8px rgba(248,113,113,0.18);
}
.user-chip-avatar {
  width:28px;
  height:28px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,0.55);
  border:1px solid rgba(148,163,184,0.32);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.user-chip-avatar.is-empty { color: var(--brand-accent); }
.user-chip-avatar img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.user-chip-label { white-space:nowrap; }

.user-menu {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
}
.user-menu-toggle {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(56,189,248,0.35);
  background: rgba(8,13,24,0.74);
  font-size:13px;
  font-weight:600;
  color: var(--text);
  cursor:pointer;
  transition:border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  min-width:0;
  max-width:100%;
}
.user-menu-toggle:hover,
.user-menu-toggle:focus-visible {
  border-color: rgba(94,234,212,0.65);
  background: rgba(10,20,34,0.94);
  box-shadow:0 0 0 3px rgba(6,182,212,0.2);
  outline:none;
}
.user-menu-toggle.is-disabled {
  cursor:not-allowed;
  opacity:0.6;
}
.user-menu-toggle.hidden {
  display:inline-flex !important;
}
.user-menu-toggle .nav-badge {
  margin-left:4px;
  position:relative;
}
.user-menu-toggle.has-unseen {
  border-color: rgba(94,234,212,0.75);
  box-shadow:0 0 0 3px rgba(94,234,212,0.2);
}
.user-menu-label {
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.user-menu-toggle .user-menu-avatar {
  width:28px;
  height:28px;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(15,23,42,0.55);
  border:1px solid rgba(148,163,184,0.32);
  color: var(--brand-accent);
  font-size:13px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.user-menu-toggle .user-menu-avatar img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.user-menu-avatar-initial {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size:13px;
  font-weight:700;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:#7dd3fc;
}
.user-menu-panel {
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:min(360px, calc(100vw - 28px));
  max-height:min(80vh, 640px);
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(30,41,59,0.9);
  background: rgba(8,13,24,0.97);
  box-shadow:0 22px 55px rgba(2,6,23,0.55);
  display:flex;
  flex-direction:column;
  gap:18px;
  z-index:220;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.user-menu-panel[hidden] { display:none; }
.user-menu-section {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.user-menu-section + .user-menu-section {
  border-top:1px solid rgba(30,41,59,0.7);
  padding-top:14px;
}
.user-menu-actions.list-actions {
  flex-direction:column;
  align-items:flex-start;
}
.user-menu-actions.list-actions .menu-link {
  width:100%;
  justify-content:flex-start;
}
.user-menu-account-header {
  display:flex;
  align-items:center;
  gap:12px;
}
.user-menu-avatar-large {
  width:48px;
  height:48px;
  border-radius:50%;
  border:1px solid rgba(94,234,212,0.45);
  background: rgba(8,13,24,0.7);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  font-weight:700;
  color:#a5f3fc;
  overflow:hidden;
}
.user-menu-avatar-large img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.user-menu-account-info {
  display:flex;
  flex-direction:column;
  gap:4px;
}
.user-menu-name {
  font-size:15px;
  font-weight:600;
  color: var(--text);
}
.user-menu-tier {
  font-size:13px;
  color: var(--muted);
}
.user-menu-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.user-menu-actions.list-actions {
  flex-direction:column;
  align-items:flex-start;
}
.user-menu-actions.list-actions .menu-link {
  width:100%;
  justify-content:flex-start;
}
.menu-link.admin-only { display:none; }
.user-menu-auth {
  gap:10px;
}
.user-menu-auth .menu-link {
  width:100%;
  justify-content:center;
}
.user-menu-auth .menu-link + .menu-link {
  margin-top:6px;
}
.user-menu-section-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color: var(--muted);
}
.menu-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:none;
  background: rgba(8,13,24,0.65);
  color:#e0f2fe;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  padding:8px 14px;
  border-radius:12px;
  cursor:pointer;
  transition:background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-align:left;
}
.menu-link.small {
  font-size:12px;
  padding:6px 10px;
}
.menu-link:hover,
.menu-link:focus-visible {
  background: rgba(14,24,42,0.92);
  color:#f8fafc;
  box-shadow:0 0 0 3px rgba(6,182,212,0.22);
  outline:none;
}
.menu-link[disabled],
.menu-link.is-disabled {
  cursor:not-allowed;
  opacity:0.6;
  box-shadow:none;
  pointer-events:none;
}
.user-menu-panel .menu-link {
  pointer-events:auto;
}
.user-menu-panel .menu-link.is-disabled,
.user-menu-panel .menu-link[disabled]{
  pointer-events:auto;
  opacity:1;
  cursor:pointer;
}
.notifications-list {
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:320px;
  overflow-y:auto;
  padding-right:4px;
}
.user-menu-notifications .notifications-list {
  max-height:260px;
}
.notifications-empty {
  margin:0;
  font-size:13px;
  color: var(--muted);
  line-height:1.5;
}
.notification-item {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(56,189,248,0.25);
  background: rgba(15,23,42,0.78);
  color: var(--text);
  cursor:pointer;
  transition:border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.notification-item.is-unread {
  border-color: rgba(94,234,212,0.45);
  background: rgba(12,26,42,0.92);
  box-shadow:0 0 0 1px rgba(94,234,212,0.28);
}
.notification-item:hover,
.notification-item:focus-visible {
  border-color: rgba(94,234,212,0.6);
  background: rgba(12,20,36,0.95);
  box-shadow:0 10px 28px rgba(2,6,23,0.45);
  transform: translateY(-1px);
  outline:none;
}
.notification-item:active {
  transform: translateY(0);
}
.notification-item-header {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.notification-item-ref {
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(56,189,248,0.18);
  border:1px solid rgba(56,189,248,0.35);
  color:#bae6fd;
}
.notification-item-status {
  font-size:12px;
  padding:2px 10px;
  border-radius:999px;
}
.notification-item-title {
  font-size:14px;
  font-weight:600;
  color: var(--text);
}
.notification-item-meta {
  font-size:12px;
  color: var(--muted);
  letter-spacing:.04em;
  text-transform:uppercase;
}
.notification-item-preview {
  font-size:13px;
  color: var(--muted);
  line-height:1.4;
}
.notification-item-actions {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}
.notification-item-actions .menu-link {
  padding:5px 10px;
  font-size:11px;
  text-transform:none;
  letter-spacing:0.02em;
}

@media (max-width:1024px){
  .navbar-inner {
    padding:10px 12px;
    gap:6px;
    flex-wrap:nowrap;
    align-items:center;
    overflow-x:auto;
    overflow-y:visible;
    justify-content:flex-start;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .navbar-inner::-webkit-scrollbar { display:none; }
  .navbar-inner > * { flex-shrink:0; }
  .brand-menu {
    width:auto;
    justify-content:flex-start;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
    max-width:none;
    min-width:0;
    margin-right:8px;
    flex-shrink:0;
  }
  .brand {
    flex:0 0 auto;
    max-width:none;
    font-size:15px;
    padding:6px 8px;
    gap:6px;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
    min-width:96px;
  }
  .menu-toggle {
    order:0;
    margin-left:0;
    flex:0 0 auto;
    min-width:44px;
    min-height:44px;
  }
  .pill-dropdown { margin:0; width:auto; }
  .audience-dropdown,
  .lang-dropdown {
    flex:0 0 auto;
    min-width:80px;
    max-width:none;
    width:auto;
    margin:0 2px 0 0;
  }
  .pill-button,
  .lang-current,
  .audience-current {
    width:auto;
    justify-content:center;
    padding:5px 9px;
    min-height:34px;
    font-size:13px;
  }
  .pill-options,
  .lang-options,
  .audience-options {
    left:0;
    right:auto;
    width:100%;
  }
  .spacer { display:none; }
  body.nav-open { overflow:hidden; }
  body.nav-open::before { content:""; position:fixed; inset:0; background:rgba(7,11,20,0.6); backdrop-filter:blur(2px); z-index:90; }
  .navbar { z-index:120; }
  #mainNav {
    display:none;
    position:fixed;
    top:calc(var(--mobile-nav-top, 96px));
    left:12px;
    right:12px;
    margin:0;
    flex-direction:column;
    padding:12px;
    gap:6px;
    background:rgba(6,10,18,0.97);
    border:1px solid #1f2937;
    border-radius:18px;
    box-shadow:0 18px 45px rgba(0,0,0,0.55);
    z-index:150;
    max-height:calc(100vh - var(--mobile-nav-top, 96px) - 16px);
    overflow:auto;
  }
  #mainNav.is-open {
    display:flex;
  }
  #mainNav a { display:block; padding:11px 12px; font-size:15px; }
  .auth {
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:8px;
    order:90;
    margin-top:0;
    margin-left:auto;
    flex-wrap:nowrap;
  }
  .auth .btn:not(.nav-return-btn) { display:none; }
  .nav-return-btn {
    display:inline-flex;
    padding:6px 12px;
    font-size:13px;
  }
  .user-menu {
    width:auto;
    align-self:center;
    position:static;
    flex:0 0 auto;
  }
  .user-menu-toggle {
    width:40px;
    height:40px;
    padding:6px;
    justify-content:center;
    border-radius:999px;
    font-size:0;
    gap:0;
  }
  .user-menu-toggle .user-menu-label {
    display:none;
  }
  .user-menu-toggle .user-menu-avatar {
    width:28px;
    height:28px;
  }
  .user-menu-toggle .nav-badge {
    position:absolute;
    top:-6px;
    right:-6px;
  }
  .user-menu-panel {
    position:fixed;
    left:12px;
    right:12px;
    width:auto;
    max-width:none;
    min-width:0;
    max-height:75vh;
    top:calc(var(--mobile-nav-top, 96px) + 54px);
    z-index:180;
  }
  .notifications-panel {
    max-height:65vh;
  }
}

@media (max-width: 720px) {
  .nav-return-btn {
    padding:6px 9px;
    font-size:0;
    min-width:34px;
  }
  .nav-return-btn::after {
    content:"←";
    font-size:14px;
    font-weight:700;
  }
  .lang-flag { font-size:14px; }
  .pill-button,
  .lang-current,
  .audience-current {
    padding:4px 8px;
    min-height:32px;
    font-size:12px;
  }
}

@media (max-width: 560px) {
  :root {
    --mobile-nav-top: 72px;
    --mobile-nav-height: 88px;
  }
  .navbar-inner {
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:4px;
    padding:6px 8px;
    overflow-x:auto;
    overflow-y:visible;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    justify-content:flex-start;
  }
  .navbar-inner::-webkit-scrollbar { display:none; }
  .navbar-inner > * { flex-shrink:0; }
  .brand-menu {
    min-width:0;
    flex:0 0 auto;
    width:auto;
    justify-content:flex-start;
    gap:4px;
    margin-right:6px;
    max-width:none;
  }
  .brand {
    font-size:12px;
    padding:3px 5px;
    gap:4px;
    min-width:82px;
    max-width:110px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .audience-dropdown {
    margin:0;
    min-width:70px;
    width:auto;
    max-width:none;
    flex:0 0 auto;
  }
  .lang-dropdown {
    margin:0;
    min-width:60px;
    width:auto;
    max-width:none;
    flex:0 0 auto;
  }
  .pill-button,
  .lang-current,
  .audience-current {
    padding:3px 6px;
    min-height:30px;
    font-size:11px;
    white-space:nowrap;
  }
  .menu-toggle::after { font-size:11px; }
  #menuToggle {
    margin-left:6px;
    padding:6px;
    min-width:32px;
    min-height:32px;
  }
  .auth {
    gap:8px;
    justify-content:flex-end;
    align-items:center;
    flex:0 0 auto;
  }
  .user-menu { width:auto; }
  .user-menu-toggle { width:34px; height:34px; padding:6px; }
  .spacer { display:none; }
}

@media (max-height: 500px) {
  .navbar-inner {
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
  }
  .brand-menu { min-width:0; flex:0 1 auto; }
  .audience-dropdown { flex:0 0 auto; max-width:160px; }
  .lang-dropdown { flex:0 0 auto; max-width:130px; }
  .auth { flex:0 0 auto; }
  .spacer { display:none; }
}

@media (max-width:1180px) and (min-width:1025px){
  .navbar-inner {
    flex-wrap:wrap;
    column-gap:12px;
    row-gap:8px;
    justify-content:flex-start;
  }
  .nav {
    order:2;
    flex:1 1 100%;
    margin:0;
    justify-content:center;
  }
  .audience-dropdown {
    order:3;
    margin-left:0;
    width:100%;
    max-width:340px;
    margin-right:auto;
    margin-left:auto;
    justify-content:center;
  }
  .spacer {
    display:none;
  }
  .auth {
    order:4;
    width:100%;
    justify-content:flex-end;
    gap:8px;
  }
  .user-menu {
    width:100%;
    justify-content:flex-end;
  }
  .user-menu-toggle {
    padding:6px 10px;
    gap:8px;
    font-size:12px;
  }
}


.dropdown { position: relative; }
.dropdown-menu { display:none; position:absolute; top:100%; left:0; background:#0b1220; border: 1px solid #1f2937; border-radius: 12px; min-width: 220px; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dropdown:hover .dropdown-menu { display:block; }
.dropdown-menu a { display:block; padding:8px 10px; border-radius: 8px;}
.dropdown-menu a:hover{ background:#111827; }

.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #111827; border: 1px solid #334155; color: var(--muted); }
.lock { opacity: .6; }
.hero { padding: 28px 16px; border-bottom: 1px solid #1f2937; }
.cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:16px; }
.card { background: #0b1220; border:1px solid #1f2937; border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.card h3 { margin: 8px 0 6px; }
.card p { color: var(--muted); }

.contact-form { display:flex; flex-direction:column; gap:24px; padding:28px; }
.contact-form h2 { margin:0; font-size:24px; }
.contact-form .form-intro { margin:0; color:var(--muted); font-size:15px; }
.contact-form .field { display:block; font-size:14px; color:var(--muted); }
.contact-form .field + .field { margin-top:14px; }
.contact-form .field span { display:block; margin-bottom:6px; }
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  background:#081427;
  border:1px solid #1f2937;
  border-radius:12px;
  padding:11px 12px;
  color:var(--text);
  font-size:15px;
  transition:border-color 0.18s ease, box-shadow 0.18s ease;
  width:100%;
  display:block;
}
.contact-form .form-actions { display:flex; gap:16px; flex-wrap:wrap; align-items:center; justify-content:center; margin-top:20px; }
.packs-hint {
  margin:0 0 16px;
  color: var(--muted);
  font-size:14px;
}
.packs-carousel,
.tools-carousel {
  position:relative;
  padding:6px 0 36px;
}
.packs-carousel-viewport,
.tools-carousel-viewport {
  overflow:hidden;
  padding-bottom:0;
}
.packs-carousel-viewport { overflow-x:auto; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:8px; scroll-padding-left:16px; scroll-padding-right:16px; }
.packs-carousel-viewport::-webkit-scrollbar { display:none; }
.tools-carousel-viewport { overflow:visible; }
.packs-carousel-track {
  display:flex !important;
  width:100%;
  gap:0;
  flex-wrap:nowrap;
  white-space:nowrap;
  transition:transform .45s ease;
}
.packs-carousel-nav,
.tools-carousel-nav,
.packs-carousel-dots,
.tools-carousel-dots {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.packs-carousel-nav.is-hidden,
.tools-carousel-nav.is-hidden { display:none; }
.pack-slide {
  flex:0 0 100% !important;
  width:100%;
  min-width:100%;
  padding:6px 12px;
  transition:transform .35s ease;
  display:flex;
  justify-content:center;
  scroll-snap-align:center;
  scroll-snap-stop:always;
}
.pack-slide .card {
  margin:0 auto;
  width:72%;
  max-width:720px;
  min-width:520px;
  padding:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  transition:transform .35s ease, box-shadow .35s ease, opacity .3s ease;
  transform:scale(.96);
  opacity:.92;
  overflow:hidden;
  min-height:auto;
}
.pack-slide.is-active .card {
  transform:scale(1.0);
  opacity:1;
  box-shadow:0 35px 60px rgba(3,6,23,0.55);
}
.pack-slide:not(.is-active) .card {
  filter:brightness(0.95);
}

.tool-slider-card {
  width:100%;
  height:100%;
  display:flex;
}
.tool-slider-hero {
  position:relative;
  flex:1;
  border-radius:32px;
  border:1px solid rgba(15,23,42,0.55);
  background:radial-gradient(circle at top, rgba(59,130,246,0.25), rgba(5,10,18,0.92));
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  overflow:hidden;
}
.tool-slider-hero-overlay {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(3,6,17,0.3), rgba(1,3,10,0.92));
  z-index:1;
}
.tool-slider-content {
  position:absolute;
  inset:auto 0 0;
  padding:20px 26px 24px;
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:2;
}
.tool-slider-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.tool-slider-heading h3 {
  margin:0;
  font-size:22px;
  letter-spacing:0.01em;
  flex:1;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.tool-slider-copy {
  margin:0;
  color:var(--muted);
  font-size:15px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tool-slider-actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.tool-slide-cta {
  padding:10px 22px;
  border-radius:999px;
  border:none;
  background:linear-gradient(120deg, #38bdf8, #0284c7);
  color:#0b1220;
  font-weight:600;
  cursor:pointer;
}
.tool-slide-cta.secondary {
  background:rgba(255,255,255,0.12);
  color:#e2e8f0;
  text-decoration:none;
}
.tool-slide-cta.secondary:hover,
.tool-slide-cta.secondary:focus-visible {
  background:rgba(255,255,255,0.2);
}
.tool-slide-cta.disabled {
  background:rgba(255,255,255,0.1);
  color:var(--muted);
  cursor:not-allowed;
}
.tool-slider-access {
  display:flex;
  align-items:center;
  gap:8px;
}

.carousel-btn {
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.45);
  background:rgba(8,15,30,0.72);
  color:#e2e8f0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  cursor:pointer;
  transition:background .22s ease,border-color .22s ease,transform .22s ease;
}
.carousel-btn:hover,
.carousel-btn:focus-visible {
  background:rgba(8,15,30,0.9);
  border-color:rgba(56,189,248,0.7);
  transform:translateY(-1px);
  outline:none;
}
.carousel-btn:disabled {
  opacity:0.35;
  cursor:default;
  transform:none;
}
.packs-carousel-dots[hidden],
.tools-carousel-dots[hidden] { display:none; }
.carousel-dot {
  width:10px;
  height:10px;
  border-radius:999px;
  border:none;
  background:#1f2937;
  cursor:pointer;
  padding:0;
  transition:background .2s ease, transform .2s ease;
}
.carousel-dot.is-active {
  background:#38bdf8;
  transform:scale(1.2);
}
.packs-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap:20px;
}
.packs-carousel .packs-grid {
  display:flex !important;
  width:100%;
  gap:0;
  padding:0;
  grid-template-columns:none;
}
.packs-carousel-track .card,
.tools-slideshow .tool-slider-card { height:100%; }

.tools-slideshow {
  position:relative;
  width:min(900px, calc(100vw - 48px));
  aspect-ratio:16/9;
  margin:0 auto;
  border-radius:32px;
  overflow:hidden;
}
.tools-slideshow .tool-slider-card {
  margin:0;
  max-width:none;
}
.tool-slide {
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .6s ease;
}
.tool-slide.is-active {
  opacity:1;
  pointer-events:auto;
}
.tool-slider-card {
  width:100%;
  height:100%;
  display:flex;
}

@media (max-width: 1100px) {
  .packs-carousel-nav,
  .packs-carousel-dots,
  .tools-carousel-nav,
  .tools-carousel-dots {
    gap:16px;
  }
  .carousel-btn { width:44px; height:44px; }
  .pack-slide {
    flex:0 0 100% !important;
    width:100%;
    min-width:100%;
  }
}
@media (max-width: 820px) {
  .pack-slide .card {
    width:100%;
    max-width:none;
    min-width:0;
    transform:scale(1);
  }
  .pack-slide {
    padding:0 8px;
  }
  .packs-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
  .packs-carousel-viewport { padding-bottom: 12px; }
  .packs-carousel-track { gap: 12px; }
}

.packs-carousel-nav {
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  pointer-events:none;
  padding:0 12px;
}
.packs-carousel-nav .carousel-btn {
  pointer-events:auto;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(148, 163, 184, 0.35);
  background:rgba(9,16,30,0.78);
  color:#e2e8f0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  box-shadow:0 12px 24px rgba(0,0,0,0.35);
}
.packs-carousel-nav .packs-carousel-dots {
  pointer-events:auto;
  justify-content:center;
  align-self:end;
  margin-bottom:12px;
}

.pack-description {
  margin:12px 0 18px;
  color: var(--muted);
  font-size:14px;
  line-height:1.5;
  white-space: pre-line;
}
.pack-single stripe-buy-button,
.packs-grid .pack stripe-buy-button {
  display:block;
  margin-top:18px;
  border-radius:14px;
  overflow:hidden;
}
.packs-grid .pack stripe-buy-button::part(frame) {
  border-radius:14px;
}

@media (max-width:640px){
  .audience-btn {
    min-width:72px;
    font-size:11px;
    padding:6px 10px;
  }
}
.pack-card {
  position:relative;
  border-radius:32px;
  border:1px solid rgba(59,130,246,0.18);
  background:radial-gradient(circle at top, rgba(56,189,248,0.08), rgba(15,23,42,0.75));
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:0;
  isolation:isolate;
}
.pack-card::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:0 35px 80px rgba(5,10,25,0.55);
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}
.pack-slide.is-active .pack-card::after {
  opacity:1;
}
.pack-card-overlay {
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:inherit;
}
.pack-card-hero {
  position:relative;
  aspect-ratio:16 / 9;
  background:linear-gradient(135deg, rgba(12,30,60,0.95), rgba(4,9,18,0.9));
  background-size:cover;
  background-repeat:repeat;
  background-position:center;
  border-bottom:1px solid rgba(59,130,246,0.15);
}
.pack-card-hero::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(135deg, rgba(255,255,255,0.08) 25%, transparent 25%),
                    linear-gradient(225deg, rgba(255,255,255,0.06) 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.04) 75%),
                    linear-gradient(315deg, transparent 75%, rgba(255,255,255,0.05) 75%);
  background-size:48px 48px;
  opacity:0.18;
  z-index:1;
}
.pack-card-hero-inner {
  position:absolute;
  inset:auto 24px 20px;
  display:flex;
  align-items:center;
  gap:12px;
  z-index:2;
}
.pack-card-tier {
  font-size:13px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:rgba(226,232,240,0.9);
}
.pack-card-body {
  position:relative;
  z-index:2;
  padding:24px 24px 6px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.pack-card-header h3 {
  margin:0;
  font-size:26px;
  color:#f8fafc;
}
.pack-card-subtitle {
  margin:4px 0 0;
  font-size:15px;
  color:#94a3b8;
}
.pack-summary {
  margin:0;
  font-size:15px;
  color:#cbd5f5;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pack-feature-preview {
  list-style:disc;
  padding-left:22px;
  margin:4px 0 0;
  color:#9fb9ff;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:14px;
}
.pack-card-footer {
  position:relative;
  z-index:2;
  padding:18px 24px 24px;
  border-top:1px solid rgba(59,130,246,0.12);
}
.pack-card-cta {
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
  z-index:3;
}
.pack-card-cta .btn {
  flex:1;
  min-width:0;
  text-align:center;
}
.pack-card-stripe {
  width:100%;
  min-width:220px;
}
.pack-card-stripe stripe-buy-button {
  width:100%;
  border-radius:50px;
  overflow:visible;
  display:block;
  min-height:48px;
}
.pack-card-stripe stripe-buy-button::part(frame) {
  border-radius:999px;
  min-height:48px;
  width:100%;
}
.pack-card-stripe stripe-buy-button::part(button) {
  min-height:48px;
  height:auto;
  border-radius:999px;
}
.pack-quote-inline {
  margin-top:12px;
}
.pack-quote-inline .pack-quote-btn {
  width:auto;
}
.pack-price-label {
  font-size:15px;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color: var(--muted);
}
.pack-price-amount {
  font-size:28px;
  font-weight:600;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:6px;
}
.pack-price-amount small,
.pack-price-amount .unit {
  font-size:14px;
  font-weight:500;
  color: var(--muted);
  margin-left:4px;
}
.pack-price-amount .unit {
  text-transform:none;
}
.pack-features {
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.pack-features li {
  position:relative;
  padding-left:16px;
  color:var(--muted);
  font-size:14px;
}
.pack-features li::before {
  content:"•";
  position:absolute;
  left:0;
  color:var(--brand-accent);
}
.packs-grid .pack-empty {
  text-align:center;
  color: var(--muted);
}
.packs-grid .pack {
  min-height:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.packs-grid .pack .small { color:var(--muted); }
.pack-checkout,
.pack-checkout-inner { display:none; }

.tool-card-main {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:stretch;
}
.tool-card-info {
  flex:1 1 240px;
  display:flex;
  flex-direction:column;
  gap:8px;
  word-break:break-word;
}
.tool-card-info h3 {
  margin:0;
  word-break:break-word;
  overflow-wrap:anywhere;
  hyphens:auto;
}
.tool-card-description {
  margin:0;
  color: var(--muted);
  font-size:14px;
  white-space: pre-line;
}
.tool-card-url {
  display:inline-block;
  color: var(--brand-accent);
  word-break: break-word;
}
.tool-card-url:hover,
.tool-card-url:focus-visible {
  text-decoration:underline;
  color: var(--brand-accent-2);
}
.tool-card-url.is-locked {
  color: var(--muted);
  font-style:italic;
  text-decoration:none;
}
.tool-card-media {
  flex:0 0 220px;
  max-width:220px;
  min-height:160px;
  border-radius:16px;
  overflow:hidden;
  background: rgba(8,13,24,0.55);
  border:1px solid rgba(15,23,42,0.6);
  box-shadow:0 12px 25px rgba(3,10,24,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
}
.tool-card-media img {
  width:100%;
  height:auto;
  object-fit:cover;
}
.tool-card {
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:100%;
  overflow:hidden;
}
.tool-card-thumb {
  width:100%;
  height:160px;
  border-radius:14px;
  overflow:hidden;
  background: rgba(8,13,24,0.55);
  border:1px solid rgba(15,23,42,0.6);
  box-shadow:0 12px 25px rgba(3,10,24,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
}
.tool-card-thumb img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.tool-card-actions {
  flex:0 0 200px;
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:center;
  align-items:flex-start;
}
.tool-card-actions .btn {
  width:100%;
}
.tool-card-access {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
}
.slug-field {
  display:flex;
  gap:8px;
  align-items:center;
  margin-top:4px;
}
.slug-field input { flex:1; }
.slug-field button {
  border-radius:10px;
  border:1px solid rgba(59,130,246,0.45);
  background:rgba(59,130,246,0.15);
  color:#dbeafe;
  padding:8px 14px;
  cursor:pointer;
}
.tool-detail-page {
  min-height:100vh;
  background:var(--brand-bg);
  color:var(--text);
}
.tool-detail {
  max-width:1100px;
  margin:0 auto;
  padding:32px 16px 80px;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.tool-detail-hero {
  position:relative;
  border-radius:32px;
  min-height:320px;
  background:radial-gradient(circle at top, rgba(59,130,246,0.25), rgba(5,10,18,0.92));
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
.tool-detail-hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(3,6,17,0.35), rgba(2,6,23,0.92));
  z-index:0;
}
.tool-detail-hero::after {
  content:"";
  position:absolute;
  inset:-8%;
  background-image:var(--tool-detail-image);
  background-size:auto 60%;
  background-repeat:repeat;
  background-position:center;
  opacity:0;
  filter:saturate(1.05);
  transition:opacity .35s ease;
  z-index:0;
}
.tool-detail-hero[data-img="1"]::after {
  opacity:0.18;
}
.tool-detail-hero-content {
  position:relative;
  z-index:1;
  padding:36px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.tool-detail-tier {
  margin:0;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:12px;
  color:#bae6fd;
}
.tool-detail-hero h1 {
  margin:0;
  font-size:32px;
}
.tool-detail-excerpt {
  margin:0;
  max-width:720px;
  color:var(--muted);
  font-size:16px;
}
.tool-detail-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.tool-detail-body {
  display:flex;
  gap:24px;
  flex-wrap:wrap;
}
.tool-detail-description {
  flex:2 1 520px;
  background:rgba(8,13,24,0.9);
  border-radius:24px;
  border:1px solid rgba(15,23,42,0.6);
  padding:24px;
  box-shadow:0 20px 40px rgba(3,6,23,0.4);
}
.tool-detail-description p {
  margin:0 0 1em;
  line-height:1.6;
}
.tool-detail-side {
  flex:1 1 320px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.tool-detail-playlist {
  flex:1 1 320px;
  background:rgba(8,13,24,0.85);
  border-radius:24px;
  border:1px solid rgba(15,23,42,0.6);
  padding:16px;
  box-shadow:0 20px 40px rgba(3,6,23,0.35);
}
.tool-detail-playlist h3 { margin-top:0; }
.tool-detail-playlist iframe {
  width:100%;
  min-height:280px;
  border:none;
  border-radius:16px;
}
.tool-detail-related {
  background:rgba(8,13,24,0.85);
  border-radius:24px;
  border:1px solid rgba(15,23,42,0.6);
  padding:18px;
  box-shadow:0 20px 40px rgba(3,6,23,0.35);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.tool-related-list {
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tool-related-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(59,130,246,0.25);
  background:rgba(14,23,43,0.8);
  color:#e2e8f0;
  text-decoration:none;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.tool-related-item:hover,
.tool-related-item:focus-visible {
  border-color:rgba(59,130,246,0.5);
  background:rgba(17,29,52,0.95);
  transform:translateY(-1px);
}
.tool-related-item .badge {
  flex-shrink:0;
}
.tool-related-empty {
  margin:0;
  color:var(--muted);
}
.tool-detail-upgrade {
  border-radius:18px;
  border:1px solid rgba(248,113,113,0.35);
  background:rgba(69,10,10,0.35);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tool-detail-upgrade h4 {
  margin:0;
}
.tool-upgrade-list {
  margin:0;
  padding-left:18px;
  color:#fecdd3;
}
.tool-upgrade-list li { margin-bottom:6px; }
@media (max-width: 768px) {
  .tool-detail-hero-content { padding:24px; }
  .tool-detail-body { flex-direction:column; }
}
.pack-stripe {
  width:100%;
  max-width:100%;
  display:flex;
  justify-content:center;
}
.pack-stripe stripe-buy-button,
stripe-buy-button.pack-buy-stripe {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
stripe-buy-button.pack-buy-stripe::part(frame),
stripe-buy-button.pack-buy-stripe::part(button) {
  width:100%;
  max-width:100%;
  min-width:0;
}
.pack-detail-page {
  background:radial-gradient(circle at top, rgba(59,130,246,0.08), rgba(2,6,23,0.92));
  color:#e2e8f0;
}
.pack-detail {
  max-width:1160px;
  margin:0 auto 60px;
  padding:38px 18px 64px;
  display:flex;
  flex-direction:column;
  gap:32px;
}
.pack-detail-hero {
  position:relative;
  border-radius:38px;
  overflow:hidden;
  min-height:360px;
  background:linear-gradient(135deg, rgba(12,27,60,0.85), rgba(5,11,24,0.95));
  background-image:var(--pack-hero-image);
  background-size:cover;
  background-position:center;
  background-repeat:repeat;
}
.pack-detail-hero::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(120deg, rgba(255,255,255,0.08) 25%, transparent 25%),
                    linear-gradient(300deg, rgba(255,255,255,0.05) 25%, transparent 25%),
                    linear-gradient(120deg, transparent 75%, rgba(255,255,255,0.04) 75%),
                    linear-gradient(300deg, transparent 75%, rgba(255,255,255,0.03) 75%);
  background-size:60px 60px;
  opacity:0.18;
  z-index:1;
}
.pack-detail-hero-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, rgba(4,9,20,0.35), rgba(3,7,18,0.92));
  backdrop-filter:blur(2px);
  z-index:2;
}
.pack-detail-hero-content {
  position:relative;
  z-index:3;
  padding:50px 60px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.pack-detail-tier {
  margin:0;
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-weight:600;
  color:#c7d2fe;
}
.pack-detail-hero h1 {
  margin:0;
  font-size:40px;
}
.pack-detail-subtitle,
.pack-detail-summary {
  margin:0;
  font-size:17px;
  color:#cbd5f5;
}
.pack-detail-price {
  font-size:26px;
  font-weight:600;
  color:#fef9c3;
}
.pack-detail-price p {
  margin:6px 0 0;
  font-size:15px;
  color:#e2e8f0;
}
.pack-detail-actions {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}
.pack-detail-body {
  display:grid;
  grid-template-columns:minmax(0,2.1fr) minmax(0,1fr);
  gap:30px;
}
.pack-detail-description {
  background:rgba(4,10,22,0.85);
  border:1px solid rgba(59,130,246,0.2);
  border-radius:26px;
  padding:28px;
  box-shadow:0 25px 50px rgba(2,6,23,0.4);
  display:flex;
  flex-direction:column;
  gap:24px;
}
.pack-detail-description p {
  margin:0 0 12px;
  line-height:1.6;
}
.pack-detail-features h3 {
  margin:0 0 10px;
}
.pack-detail-features ul {
  list-style:disc;
  padding-left:20px;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.pack-detail-side {
  display:flex;
  flex-direction:column;
  gap:20px;
}
.pack-detail-side > div {
  border:1px solid rgba(59,130,246,0.18);
  border-radius:24px;
  padding:20px;
  background:rgba(3,6,21,0.92);
}
.pack-related-list {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}
.pack-related-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border-radius:16px;
  border:1px solid rgba(59,130,246,0.18);
  text-decoration:none;
  color:#e2e8f0;
  background:rgba(15,23,42,0.75);
  transition:border-color .2s ease, transform .2s ease;
}
.pack-related-item:hover,
.pack-related-item:focus-visible {
  border-color:rgba(59,130,246,0.45);
  transform:translateY(-2px);
}
.pack-related-empty {
  margin:12px 0 0;
  font-size:14px;
  color:#94a3b8;
}
.pack-detail-upgrade h4 {
  margin:0 0 6px;
  font-size:18px;
}
.pack-upgrade-list {
  list-style:disc;
  padding-left:20px;
  margin:8px 0 16px;
  color:#cbd5f5;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.pack-detail-playlist h3 {
  margin:0 0 10px;
}
.pack-detail-playlist iframe {
  width:100%;
  aspect-ratio:16/9;
  border:none;
  border-radius:18px;
  background:#000;
}
@media (max-width: 1100px) {
  .pack-detail-body {
    grid-template-columns:minmax(0,1fr);
  }
}
@media (max-width: 720px) {
  .pack-detail-hero-content {
    padding:30px 26px;
  }
  .pack-detail {
    padding:30px 16px 50px;
  }
}

.contact-form .field textarea { min-height:160px; resize:vertical; }
.contact-form .field input:focus-visible,
.contact-form .field select:focus-visible,
.contact-form .field textarea:focus-visible {
  outline:none;
  border-color: var(--brand-accent);
  box-shadow:0 0 0 2px rgba(6,182,212,0.25);
}
.contact-form .field select { appearance:none; background-image: linear-gradient(45deg, transparent 50%, #06b6d4 50%), linear-gradient(135deg, #06b6d4 50%, transparent 50%); background-position: calc(100% - 18px) calc(1.1em + 2px), calc(100% - 13px) calc(1.1em + 2px); background-size:5px 5px, 5px 5px; background-repeat:no-repeat; padding-right:36px; }
.contact-form .status { margin:0; min-height:1.25em; color:var(--muted); font-size:14px; text-align:center; }
.contact-form .status.ok { color:var(--ok); }
.contact-form .status.err { color:var(--danger); }
.contact-form #contactSubmit { position:relative; padding-inline:22px; }
.contact-form #contactSubmit .label-loading { display:none; }
.contact-form #contactSubmit.is-loading .label-default { opacity:0; }
.contact-form #contactSubmit.is-loading .label-loading { display:inline; }

.contact-callout { display:flex; flex-direction:column; gap:18px; align-items:flex-start; }
.contact-callout p { margin:0; color:var(--muted); font-size:15px; }
.contact-cta-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.catalog-header { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; align-items:flex-end; margin-bottom:24px; }
.catalog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:18px; }
.catalog-search .field { margin:0; }
.catalog-card { position:relative; }

.auth-modal { border:none; padding:0; background:transparent; }
.auth-modal::backdrop { background:rgba(7,11,20,0.72); backdrop-filter:blur(4px); }
.auth-card {
  color: var(--text);
  width:min(420px, 92vw);
  padding:28px;
  border-radius:20px;
  border:1px solid rgba(30,41,59,0.85);
  background: linear-gradient(180deg, rgba(8,14,28,0.96), rgba(5,10,22,0.94));
  box-shadow:0 28px 60px rgba(2,6,23,0.55);
  display:flex;
  flex-direction:column;
  gap:18px;
}
.auth-card h2 { margin:0; font-size:24px; text-align:center; }
.auth-tabs {
  display:flex;
  gap:8px;
  padding:4px;
  border-radius:12px;
  background: rgba(7,13,24,0.82);
  border:1px solid rgba(148,163,184,0.25);
}
.auth-tabs .tab {
  flex:1 1 0;
  border:none;
  background:transparent;
  color: var(--muted);
  font-size:14px;
  font-weight:600;
  padding:8px 12px;
  border-radius:9px;
  cursor:pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.auth-tabs .tab:hover,
.auth-tabs .tab:focus-visible {
  color:#f8fafc;
  outline:none;
}
.auth-tabs .tab.active {
  color:#e6faff;
  background: rgba(6,182,212,0.22);
  box-shadow: inset 0 6px 22px rgba(6,182,212,0.18);
}
.auth-card .tabpanel {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.auth-card .grid.two {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.auth-card .row {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.auth-card label {
  font-size:13px;
  font-weight:500;
  color: var(--muted);
}
.auth-card input {
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  background:#082033;
  border:1px solid #0b3b47;
  color: var(--text);
  transition:border-color 0.18s ease, box-shadow 0.18s ease;
}
.auth-card input:focus-visible {
  outline:none;
  border-color: var(--brand-accent);
  box-shadow:0 0 0 2px rgba(6,182,212,0.3);
}
.auth-card .btn.primary {
  width:100%;
  color:#012;
}
.auth-card .btn.ghost {
  width:auto;
  min-width:160px;
  align-self:center;
}
.link-button {
  background:none;
  border:none;
  color: var(--brand-accent);
  text-decoration: underline;
  cursor:pointer;
  font-size:13px;
  padding:0;
  align-self:flex-start;
}
.link-button:hover,
.link-button:focus-visible {
  color: var(--brand-accent-2);
}
.forgot-password-panel {
  border:1px solid rgba(6,182,212,0.3);
  border-radius:12px;
  padding:12px;
  background:rgba(6,182,212,0.06);
}
.forgot-password-panel .form-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-start;
}
.forgot-password-panel .status {
  margin:8px 0 0;
  font-size:13px;
  color: var(--muted);
}
.forgot-password-panel .status.ok { color: var(--ok); }
.forgot-password-panel .status.err { color: var(--danger); }
.auth-card .status {
  margin:0;
  text-align:center;
  min-height:1.4em;
  font-size:13px;
  color: var(--muted);
}
.auth-card .status.ok { color: var(--ok); }
.auth-card .status.err { color: var(--danger); }

.auth-card .grid.two .row { min-width:0; }

.auth-card .tabpanel button.btn.primary { margin-top:4px; }

.auth-modal .btn.ghost { color: var(--brand-accent); }

@media (max-width:540px){
  .auth-card {
    padding:22px 20px;
    gap:16px;
  }
  .auth-card .grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-tabs {
    flex-wrap:wrap;
  }
}

.contact-modal { border:none; padding:0; background:transparent; }
.contact-modal::backdrop { background:rgba(7,11,20,0.72); backdrop-filter:blur(4px); }
.contact-modal .contact-form { width:min(560px, 90vw); padding:32px; }

.profile-modal-backdrop {
  position:fixed;
  inset:0;
  background:rgba(7,11,20,0.72);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:220;
}
.profile-modal-backdrop[hidden] {
  display:none;
}
.profile-modal-card {
  width:min(420px, 90vw);
  padding:28px;
  border-radius:18px;
  background:#0b1220;
  border:1px solid #1f2937;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.profile-modal-card h2 {
  margin:0;
  color:var(--text);
  font-size:20px;
}
.profile-modal-card .profile-modal-intro {
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.profile-modal-card .field span {
  color:var(--text);
  font-weight:500;
}
.profile-modal-card input {
  width:100%;
}
.profile-modal-error {
  min-height:18px;
  margin:0;
  color:var(--danger);
  font-size:13px;
}
.profile-modal-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.profile-form {
  width:min(520px, 92vw);
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.profile-form.profile-form-page {
  width:100%;
  max-width:none;
  padding:32px 36px;
}
.profile-form h2 {
  color: var(--text);
}
.profile-intro { margin:0; color:var(--muted); font-size:14px; }
.profile-avatar { display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.profile-form .field span {
  display:block;
  margin-bottom:6px;
  color: var(--text);
  font-weight:500;
}
.profile-email-row {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.profile-email-row input {
  flex:1 1 220px;
}
.profile-email-row .btn {
  flex:0 0 auto;
}
.profile-form input,
.profile-form select,
.profile-form textarea {
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  background:#081427;
  border:1px solid #1f2937;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.profile-form input:disabled {
  opacity:0.65;
  cursor:not-allowed;
}
.profile-form input:focus-visible,
.profile-form select:focus-visible,
.profile-form textarea:focus-visible {
  outline:none;
  border-color: var(--brand-accent);
  box-shadow:0 0 0 2px rgba(6,182,212,0.25);
}
.avatar-preview {
  width:96px;
  height:96px;
  border-radius:50%;
  border:1px dashed rgba(148,163,184,0.4);
  background: rgba(8,13,24,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  overflow:hidden;
}
.avatar-preview.has-image {
  border-style:solid;
  color:transparent;
  background: rgba(8,13,24,0.9);
}
.avatar-preview img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.avatar-actions { display:flex; gap:10px; flex-wrap:wrap; }
.avatar-upload { position:relative; overflow:hidden; cursor:pointer; }
.avatar-upload input {
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.avatar-remove {
  border-color: rgba(248,113,113,0.45);
  color: #fecaca;
}
.avatar-remove:hover,
.avatar-remove:focus-visible {
  border-color: rgba(248,113,113,0.8);
  color:#fee2e2;
}
.profile-password {
  margin:0;
  padding:16px;
  border-radius:16px;
  border:1px solid #1f2937;
  background: rgba(2,6,23,0.45);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.profile-password legend {
  font-weight:600;
  margin-bottom:6px;
  color: var(--text);
}
.profile-hint { margin:0; font-size:13px; color:var(--muted); }
.profile-form .status { margin:0; font-size:13px; }
.profile-form .status.ok { color:#10b981; }
.profile-form .status.err { color:#f87171; }
.profile-form .status.warn { color: var(--warn); }
.profile-form .label-loading { display:none; }
.profile-form .btn { color:#f8fafc; }
.profile-form .btn.primary { color:#f8fafc; }
.profile-form .btn.ghost {
  color: var(--brand-accent);
  background: rgba(8,13,24,0.55);
  border:1px solid rgba(6,182,212,0.35);
}
.profile-form .btn.ghost:hover,
.profile-form .btn.ghost:focus-visible {
  color:#60efff;
  border-color: rgba(6,182,212,0.7);
}
.profile-form .btn.ghost.is-active {
  background: rgba(6,182,212,0.2);
  color:#5eead4;
}
.profile-form .btn.is-loading .label-default { opacity:0; }
.profile-form .btn.is-loading .label-loading { display:inline; }

.profile-main {
  padding-top:32px;
}
.profile-form-card {
  display:flex;
  flex-direction:column;
  gap:28px;
}
.profile-header h1 {
  margin:0 0 12px;
  font-size:28px;
}
.profile-header .profile-intro {
  font-size:15px;
  color:var(--muted);
}
.profile-section {
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px 0;
  border-top:1px solid rgba(15,23,42,0.65);
}
.profile-section:first-of-type {
  padding-top:0;
  border-top:none;
}
.profile-section h2 {
  margin:0;
  font-size:20px;
  color: var(--text);
}
.profile-grid {
  display:grid;
  grid-template-columns:240px minmax(0, 1fr);
  gap:24px;
  align-items:flex-start;
}
.profile-grid.small {
  grid-template-columns: minmax(0, 1fr);
}
.profile-fields {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:18px;
}
.profile-address-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:18px;
}
.profile-actions {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:flex-end;
  margin-top:12px;
}
.profile-form-page .status {
  margin-top:4px;
  text-align:right;
}

@media (max-width:960px){
  .profile-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width:640px){
  .profile-form.profile-form-page {
    padding:24px 20px;
  }
  .profile-actions {
    justify-content:flex-start;
  }
  .profile-actions .btn {
    width:100%;
  }
  .profile-email-row {
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .profile-email-row .btn {
    width:100%;
  }
}

.signup-main {
  padding-top:48px;
}
.signup-form-card {
  max-width:760px;
  margin:0 auto;
}
.signup-form sup {
  color: var(--danger);
  font-size:0.75em;
  margin-left:2px;
}
.signup-actions .btn {
  min-width:180px;
}
.signup-actions .btn.ghost {
  text-align:center;
}

/* Tickets */
.tickets-actions {
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:16px;
}
.tickets-quota {
  margin:0;
  font-size:14px;
  color:var(--muted);
}
.tickets-columns {
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:24px;
  margin-top:24px;
  align-items:start;
}
.ticket-column {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ticket-column h2 {
  margin:0;
  font-size:18px;
  color:var(--text);
}
.ticket-column-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
}
.ticket-column-hint {
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.ticket-list {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.ticket-history-list {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.16);
  background: rgba(7,12,24,0.78);
  box-shadow:0 14px 32px rgba(2,6,23,0.45);
  max-height:620px;
  overflow:auto;
}
.ticket-history-item {
  display:grid;
  grid-template-columns: 1fr auto;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.16);
  background: rgba(8,13,24,0.65);
  cursor:pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ticket-history-item:hover {
  transform: translateY(-2px);
  box-shadow:0 16px 32px rgba(2,6,23,0.55);
  border-color: rgba(6,182,212,0.35);
  background: rgba(10,17,30,0.82);
}
.ticket-history-item:focus-visible {
  outline:2px solid rgba(6,182,212,0.55);
  outline-offset:4px;
}
.ticket-history-header {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.ticket-history-title {
  font-size:15px;
  font-weight:600;
  color:var(--text);
  margin:4px 0 0;
  line-height:1.3;
}
.ticket-history-preview {
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}
.ticket-history-preview.is-empty {
  font-style:italic;
  color:#64748b;
}
.ticket-history-meta {
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.ticket-history-date {
  display:flex;
  align-items:center;
  gap:6px;
  color:#94a3b8;
  font-size:12px;
}
.ticket-history-chevron {
  color:#38bdf8;
  font-size:18px;
}
.ticket-history-list .ticket-severity-pill {
  font-size:10px;
  padding:3px 10px;
}
.ticket-history-list .ticket-status {
  padding:3px 10px;
  font-size:11px;
}
.ticket-card {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.16);
  background: rgba(7,12,24,0.78);
  box-shadow:0 14px 32px rgba(2,6,23,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor:pointer;
}
.ticket-card:hover {
  transform: translateY(-2px);
  box-shadow:0 16px 38px rgba(2,6,23,0.65);
  border-color: rgba(6,182,212,0.35);
}
.ticket-card:focus-visible {
  outline:2px solid rgba(6,182,212,0.55);
  outline-offset:4px;
}
.ticket-card-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.ticket-card-header-left {
  display:flex;
  align-items:center;
  gap:10px;
}
.ticket-status {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  background: rgba(6,182,212,0.16);
  border:1px solid rgba(6,182,212,0.42);
  color:#8bf2ff;
}
.ticket-status-assigned { background: rgba(59,130,246,0.16); border-color: rgba(59,130,246,0.4); color:#bfdbfe; }
.ticket-status-in-progress,
.ticket-status-in_progress { background: rgba(250,204,21,0.16); border-color: rgba(250,204,21,0.35); color:#fde68a; }
.ticket-status-resolved { background: rgba(34,197,94,0.16); border-color: rgba(34,197,94,0.35); color:#bbf7d0; }
.ticket-status-closed { background: rgba(148,163,184,0.16); border-color: rgba(148,163,184,0.3); color:#e2e8f0; }
.ticket-severity-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  border:1px solid rgba(148,163,184,0.35);
  background:#111827;
  color:#e5e7eb;
}
.ticket-severity-pill.severity-critical { border-color:rgba(239,68,68,0.7); background:rgba(127,29,29,0.65); color:#fecaca; }
.ticket-severity-pill.severity-high { border-color:rgba(249,115,22,0.65); background:rgba(120,53,15,0.6); color:#fed7aa; }
.ticket-severity-pill.severity-medium { border-color:rgba(59,130,246,0.55); background:rgba(15,23,42,0.7); color:#bfdbfe; }
.ticket-severity-pill.severity-low { border-color:rgba(16,185,129,0.5); background:rgba(12,36,31,0.65); color:#bbf7d0; }
.ticket-card-title {
  margin:2px 0 4px;
  font-size:18px;
  color:var(--text);
}
.ticket-card-meta {
  margin:0;
  color:var(--muted);
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.ticket-card-note {
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.ticket-card-note.is-empty {
  font-style:italic;
  color:#64748b;
}
.ticket-card-alert {
  display:inline-flex;
  align-items:center;
  gap:6px;
  align-self:flex-start;
  padding:4px 12px;
  border-radius:999px;
  background:rgba(250,204,21,0.14);
  border:1px solid rgba(250,204,21,0.35);
  color:#facc15;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.ticket-card-ref {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.08em;
  color:#7dd3fc;
  text-transform:uppercase;
}
.ticket-card-update {
  margin:0;
  font-size:12px;
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.ticket-card .btn {
  align-self:flex-start;
  margin-top:8px;
}
.ticket-card.severity-critical { border-color:rgba(239,68,68,0.55); box-shadow:0 18px 38px rgba(68,10,15,0.55); }
.ticket-card.severity-high { border-color:rgba(249,115,22,0.45); box-shadow:0 18px 38px rgba(88,35,7,0.55); }
.ticket-card.severity-low { border-color:rgba(16,185,129,0.35); }
.ticket-card.severity-medium { border-color:rgba(59,130,246,0.3); }
.ticket-card-header-left .ticket-severity-pill { font-size:10px; padding:3px 10px; }
.ticket-empty,
.ticket-loading,
.ticket-error {
  padding:16px;
  border-radius:16px;
  border:1px dashed rgba(148,163,184,0.4);
  background: rgba(8,13,24,0.6);
  color:var(--muted);
  font-size:14px;
  text-align:center;
}
.ticket-error {
  border-color: rgba(239,68,68,0.45);
  color:#fecaca;
  background: rgba(69,10,10,0.45);
}
.ticket-modal,
.ticket-detail-modal {
  border:none;
  border-radius:20px;
  padding:0;
  width:min(560px, 92vw);
  background:transparent;
}
.ticket-form,
.ticket-detail-card {
  background: rgba(7,12,24,0.95);
  border:1px solid rgba(30,41,59,0.6);
  border-radius:20px;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  color:var(--text);
  box-shadow:0 22px 48px rgba(2,6,23,0.6);
}
.ticket-form-intro {
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.ticket-form .field {
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:14px;
  color:var(--muted);
}
.severity-field-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.severity-field select {
  appearance:none;
}
.ticket-form .field textarea { min-height:140px; }
.ticket-form .field.attachments {
  border:1px dashed rgba(56,189,248,0.35);
  border-radius:16px;
  padding:12px;
  background:rgba(8,13,24,0.6);
}
.ticket-attachments-controls {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.ticket-attachments-controls .field-hint {
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.ticket-attachments-list {
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  min-height:60px;
}
.ticket-attachments-empty {
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.ticket-attachment-chip {
  position:relative;
  border:1px solid rgba(56,189,248,0.35);
  border-radius:14px;
  padding:6px;
  background:rgba(7,12,24,0.82);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  width:96px;
}
.ticket-attachment-thumb {
  width:72px;
  height:72px;
  border-radius:10px;
  overflow:hidden;
  background:#050a16;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ticket-attachment-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.ticket-attachment-name {
  font-size:11px;
  text-align:center;
  color:var(--muted);
  word-break:break-word;
}
.ticket-attachment-remove {
  position:absolute;
  top:2px;
  right:2px;
  border:none;
  background:rgba(15,23,42,0.85);
  color:#f87171;
  width:20px;
  height:20px;
  border-radius:999px;
  cursor:pointer;
  font-size:12px;
  line-height:1;
}
.ticket-attachment-remove:hover,
.ticket-attachment-remove:focus-visible {
  background:#be123c;
  color:#fff;
}
.severity-field {
  gap:8px;
}
.severity-field-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
select[data-severity-select] {
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.4);
  background:#0b1628;
  color:#e5e7eb;
  padding:10px 12px;
  transition:border-color .2s ease, background .2s ease;
}
select[data-severity-select][data-severity="critical"] { border-color:rgba(239,68,68,0.6); background:rgba(67,15,23,0.7); }
select[data-severity-select][data-severity="high"] { border-color:rgba(249,115,22,0.5); background:rgba(78,32,12,0.65); }
select[data-severity-select][data-severity="low"] { border-color:rgba(16,185,129,0.45); background:rgba(8,40,29,0.65); }
.ticket-contact-grid {
  display:grid;
  gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top:4px;
}
.ticket-contact-grid .field {
  margin:0;
}
.ticket-contact-grid input {
  width:100%;
}
.ticket-quota-hint {
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.ticket-form .status {
  margin:0;
  font-size:13px;
}
.ticket-form .status.err { color:#f87171; }
.ticket-form .status.ok { color:#34d399; }
.ticket-detail-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.ticket-detail-header-text {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ticket-detail-header-text .ticket-detail-ref {
  font-size:13px;
  font-weight:600;
  color:#7dd3fc;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ticket-detail-header h2 {
  margin:0;
  font-size:22px;
}
.ticket-detail-status {
  display:inline-flex;
  align-items:center;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  background: rgba(6,182,212,0.16);
  border:1px solid rgba(6,182,212,0.4);
  color:#8bf2ff;
}
.ticket-detail-status.ticket-status-in-progress,
.ticket-detail-status.ticket-status-in_progress { background: rgba(250,204,21,0.16); border-color:rgba(250,204,21,0.35); color:#fde68a; }
.ticket-detail-status.ticket-status-resolved { background: rgba(34,197,94,0.16); border-color:rgba(34,197,94,0.35); color:#bbf7d0; }
.ticket-detail-status.ticket-status-closed { background: rgba(148,163,184,0.16); border-color:rgba(148,163,184,0.3); color:#e2e8f0; }
.ticket-detail-meta {
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  font-size:14px;
  color:var(--muted);
}
.ticket-detail-meta span { display:block; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:#64748b; }
.ticket-detail-meta strong { display:block; margin-top:4px; color:var(--text); font-size:14px; }
.ticket-detail-alert {
  margin:12px 0;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(250,204,21,0.4);
  background:rgba(250,204,21,0.08);
  color:#fef3c7;
}
.ticket-detail-alert[hidden] { display:none !important; }
.ticket-detail-alert-title {
  margin:0 0 6px;
  font-size:15px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.ticket-detail-alert-meta {
  font-size:12px;
  color:#fde68a;
  margin-top:6px;
}
.ticket-reply-block {
  margin:12px 0 4px;
}
.ticket-reply-form {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.25);
  background:rgba(10,16,30,0.85);
}
.ticket-reply-form textarea {
  width:100%;
  min-height:110px;
  border-radius:12px;
  border:1px solid rgba(51,65,85,0.6);
  background:#0b1628;
  color:var(--text);
  padding:10px;
  font-size:14px;
}
.ticket-reply-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.ticket-reply-status {
  margin:0;
  font-size:13px;
  color:#a5b4fc;
}
.ticket-reply-status.error { color:#fca5a5; }
.ticket-reply-status.success { color:#bbf7d0; }
.ticket-notes {
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:8px;
}
.ticket-note {
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(51,65,85,0.6);
  background:linear-gradient(180deg,rgba(8,15,30,0.95),rgba(6,12,24,0.9));
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ticket-note.requires-response {
  box-shadow:0 0 0 1px rgba(250,204,21,0.55);
}
.ticket-note.response-resolved {
  box-shadow:0 0 0 1px rgba(34,197,94,0.45);
}
.ticket-note.is-admin {
  border-color:rgba(239,68,68,0.55);
  background:linear-gradient(180deg,rgba(51,12,16,0.92),rgba(34,10,12,0.95));
  color:#ffe4e6;
}
.ticket-note.is-client {
  border-color:rgba(34,197,94,0.5);
  background:linear-gradient(180deg,rgba(12,32,22,0.92),rgba(8,22,15,0.94));
  color:#dcfce7;
}
.ticket-note-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:13px;
  color:#e2e8f0;
}
.ticket-note-author {font-weight:700;}
.ticket-note.is-admin .ticket-note-author{color:#fecaca;}
.ticket-note.is-client .ticket-note-author{color:#bbf7d0;}
.ticket-note-header time {
  font-size:12px;
  color:#94a3b8;
}
.ticket-note-body {
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
}
.ticket-note.is-admin .ticket-note-body{color:#ffe4e6;}
.ticket-note.is-client .ticket-note-body{color:#dcfce7;}
.ticket-note-status {
  margin-top:-4px;
}
.ticket-note-badge {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:2px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
}
.ticket-note-badge.is-pending {
  background:rgba(250,204,21,0.16);
  border:1px solid rgba(250,204,21,0.4);
  color:#fde68a;
}
.ticket-note-badge.is-complete {
  background:rgba(34,197,94,0.16);
  border:1px solid rgba(34,197,94,0.4);
  color:#bbf7d0;
}
.ticket-note-empty,
.ticket-note-loading {
  margin:0;
  padding:16px;
  border-radius:14px;
  border:1px dashed rgba(148,163,184,0.4);
  background: rgba(7,14,28,0.8);
  color:var(--muted);
  text-align:center;
  font-size:13px;
}
.ticket-detail-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:4px;
}

@media (max-width:960px){
  .tickets-columns {
    grid-template-columns: minmax(0,1fr);
  }
  .ticket-history-list {
    max-height:none;
  }
}

@media (max-width:600px){
  .ticket-detail-meta {
    grid-template-columns: minmax(0,1fr);
  }
  .ticket-form,
  .ticket-detail-card {
    padding:20px;
  }
}

@media (max-width:1180px){
  .packs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width:860px){
  .contact-form { padding:20px; }
  .profile-form { padding:24px; }
  .pack-card-main { flex-direction:column; }
  .pack-checkout { width:100%; max-width:none; margin-left:0; }
  .pack-media { width:100%; max-width:none; min-height:200px; }
  .tool-card-info { width:100%; }
  .tool-card-media { width:100%; max-width:none; }
  .tool-card-actions { width:100%; align-items:flex-start; }
  .tool-card-actions .btn { width:100%; }
  .video-card { padding:20px; }
  .video-card-main { flex-direction:column; gap:16px; }
  .video-card-media { width:100%; max-width:none; flex:1 1 auto; }
  .video-card-aside { width:100%; align-items:flex-start; }
  .video-card-actions { flex-direction:row; flex-wrap:wrap; }
  .video-card-actions .btn,
  .video-card-actions .video-card-login { width:100%; justify-content:center; }
}

.videos-grid { display:flex; flex-direction:column; gap:32px; margin-top:24px; width:100%; }
.video-card { display:flex; flex-direction:column; gap:28px; padding:36px; width:100%; }
.video-card-main { display:flex; flex-wrap:wrap; gap:24px; align-items:stretch; }
.video-card-info { flex:1 1 260px; display:flex; flex-direction:column; gap:12px; }

.video-card-thumb {
  width:100%;
  border-radius:16px;
  overflow:hidden;
  background: rgba(8,13,24,0.55);
  border:1px solid rgba(15,23,42,0.5);
}
.video-card-thumb img {
  width:100%;
  height:auto;
  max-height:240px;
  display:block;
  object-fit:cover;
}
.video-card-media { position:relative; flex:0 0 320px; max-width:360px; margin:0; border-radius:16px; overflow:hidden; background:#020617; box-shadow:0 18px 40px rgba(2,6,23,0.55); }
.video-card-media::before { content:""; display:block; padding-top:56.25%; }
.video-card-media iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-card-media .video-card-placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:14px; letter-spacing:.02em; background:linear-gradient(135deg,#1f2937,#0f172a); }
.video-card-aside { flex:0 0 200px; display:flex; flex-direction:column; gap:12px; justify-content:center; }
.video-card-title { margin:0; display:flex; flex-wrap:wrap; gap:10px; align-items:center; font-size:22px; }
.video-card-status { margin:0; color:var(--muted); font-size:15px; }
.video-card-meta { margin:0; color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:.06em; }
.video-card-hint { margin:0; color:#f59e0b; font-size:13px; }
.video-card-actions { display:flex; flex-direction:column; gap:12px; }
.video-card-actions-empty { color:#64748b; font-style:italic; min-height:1px; }
.video-card-link,
.video-card-login { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 16px; border-radius:12px; border:1px solid #1f2937; background:rgba(8,13,24,0.65); color:var(--brand-accent); font-weight:500; text-decoration:none; cursor:pointer; transition: all 0.18s ease; }
.video-card-link:hover,
.video-card-login:hover { border-color: var(--brand-accent); background: rgba(6,182,212,0.18); color:#13d4ff; }
.video-card-login { color: var(--text); border-color:#334155; }
.video-card-login:hover { color: var(--brand-accent); }
.badge-private { background:#2c1332; border-color:#7e22ce; color:#f5e0ff; }
.badge-public { background:#0f2c23; border-color:#0f766e; color:#99f6e4; }

.video-card-empty { text-align:center; padding:48px; color:var(--muted); font-style:italic; width:100%; max-width:960px; margin:0 auto; }

@media (max-width:960px){
  .video-card { padding:24px; }
  .video-card-main { flex-direction:column; gap:18px; }
  .video-card-media { flex:1 1 100%; max-width:none; }
  .video-card-aside { flex:1 1 100%; align-items:flex-start; }
  .video-card-actions { flex-direction:row; flex-wrap:wrap; }
  .video-card-title { font-size:20px; }
}

.btn { display:inline-block; padding:10px 14px; border-radius: 12px; border:none; background: var(--brand-accent); color:#012; cursor:pointer; }
.btn.primary { background: linear-gradient(180deg, var(--brand-accent), var(--brand-accent-2)); border: none; color:#012; }
.btn.ghost {
  background: rgba(6,182,212,0.12);
  border:1px solid rgba(6,182,212,0.42);
  color:#8beaff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(6,182,212,0.22);
  border-color: rgba(6,182,212,0.75);
  color:#d0f6ff;
  box-shadow:0 0 0 2px rgba(6,182,212,0.25);
}
.btn.danger {
  background: rgba(239,68,68,0.18);
  border:1px solid rgba(248,113,113,0.6);
  color:#fecaca;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn.danger:hover,
.btn.danger:focus-visible {
  background: rgba(239,68,68,0.28);
  border-color: rgba(248,113,113,0.85);
  color:#fee2e2;
  box-shadow:0 0 0 2px rgba(248,113,113,0.25);
}
.btn.danger.outline {
  background: transparent;
  border:1px solid rgba(248,113,113,0.6);
  color:#fca5a5;
}
.btn.danger.outline:hover,
.btn.danger.outline:focus-visible {
  border-color: rgba(248,113,113,0.85);
  color:#fee2e2;
  background: rgba(239,68,68,0.18);
  box-shadow:0 0 0 2px rgba(248,113,113,0.25);
}
.btn.lock {
  background: rgba(148,163,184,0.18);
  border:1px dashed rgba(148,163,184,0.45);
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}
.btn.lock:disabled {
  opacity: 1 !important;
}
.btn.block { display:block; width:100%; text-align:center; }
.btn:disabled { opacity: .5; cursor:not-allowed; }

.text-preline {
  white-space: pre-line;
}

.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.input { width:100%; padding:10px 12px; border-radius: 10px; background:#0b1220; border:1px solid #334155; color:var(--text); }
label { font-size: 14px; color: var(--muted); }

/* Mobile menu button visibility */
@media (min-width:1025px){ .hide-mobile{ display:none; } }
@media (max-width:1024px){ .hide-mobile{ display:inline-block; } }
@media (min-width:821px){
  .nav a:hover,
  .nav a:focus-visible { background: rgba(6,182,212,0.18); color:var(--brand-accent); }
}
@media (max-width:1024px){
  .nav a:hover,
  .nav a:focus-visible { background: rgba(255,255,255,0.08); }
}

.notice { padding:10px 12px; border:1px dashed #334155; border-radius: 12px; background:#0a1220; color: var(--muted); }
.hide { display:none !important; }

.footer { padding: 40px 16px; color: var(--muted); text-align:center; border-top: 1px solid #1f2937; margin-top:40px; }
.small { font-size: 12px; color: var(--muted); }

/* Toast notifications */
.toast-container { position: fixed; right: 18px; bottom: 18px; display:flex; flex-direction:column; gap:10px; z-index:9999; }
.toast { min-width:220px; max-width:360px; padding:10px 14px; border-radius:12px; color: #071124; background: #e6f6ff; box-shadow: 0 6px 20px rgba(2,6,23,0.5); border-left: 6px solid var(--brand-accent); font-weight:500; }
.toast.ok { border-left-color: var(--ok); background: #ecfdf5; color: #052e1f; }
.toast.warn { border-left-color: var(--warn); background: #fff7ed; color: #663c00; }
.toast.err { border-left-color: var(--danger); background: #fff1f2; color: #5f0b0b; }
.toast .title { font-weight:700; margin-bottom:6px; }
.toast .meta { font-size:12px; opacity:0.8; }

.downloads-main { padding: 80px 16px; max-width: 960px; margin: 0 auto; }
.downloads-hero { text-align: center; margin-bottom: 32px; }
.downloads-panel { background:#0b1220; border:1px solid #1f2937; border-radius:20px; padding:24px; display:flex; flex-direction:column; gap:16px; }
.downloads-status { font-size:14px; color:#94a3b8; }
.downloads-status.ok { color:#4ade80; }
.downloads-status.error { color:#f97316; }
.downloads-status.warn { color:#fbbf24; }
.downloads-status.loading { color:#7dd3fc; }
.downloads-list { display:flex; flex-direction:column; gap:16px; }
.download-card { display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; padding:16px; border-radius:16px; border:1px solid #1f2937; background:#060b18; }
.download-card-body { flex:1 1 260px; min-width:0; }
.download-card-body h3 { margin:0 0 6px; }
.download-meta { font-size:13px; color:#94a3b8; margin:0 0 8px; }
.download-description,
.download-instructions { font-size:14px; margin:0 0 10px; color:#e5e7eb; }
.download-instructions { color:#7dd3fc; }
.download-media { margin:10px 0; border-radius:12px; overflow:hidden; background:#0f172a; border:1px solid #1f2937; }
.download-media iframe { width:100%; min-height:260px; border:0; display:block; }
.download-media-link { margin:0 0 8px; }
.download-media-link a { color: var(--brand-accent); word-break: break-word; }
.download-card-actions { display:flex; align-items:center; gap:10px; }
.download-card-actions .btn { min-width:150px; }
.download-placeholder { padding:20px; text-align:center; border:1px dashed #1f2937; border-radius:12px; color:#94a3b8; }
.downloads-panel .btn.ghost { align-self:flex-end; }
.tool-card-main {
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:stretch;
}
.tool-card-info {
  flex:1 1 240px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.tool-card-description {
  margin:0;
  color: var(--muted);
  font-size:14px;
  white-space: pre-line;
}
.tool-card-url {
  display:inline-block;
  color: var(--brand-accent);
  word-break: break-word;
}
.tool-card-url:hover,
.tool-card-url:focus-visible {
  text-decoration:underline;
  color: var(--brand-accent-2);
}
.tool-card-url.is-locked {
  color: var(--muted);
  font-style:italic;
  text-decoration:none;
}
.tool-card-media {
  flex:0 0 220px;
  max-width:220px;
  min-height:160px;
  border-radius:16px;
  overflow:hidden;
  background: rgba(8,13,24,0.55);
  border:1px solid rgba(15,23,42,0.6);
  box-shadow:0 12px 25px rgba(3,10,24,0.25);
  display:flex;
  align-items:center;
  justify-content:center;
}
.tool-card-media img {
  width:100%;
  height:auto;
  object-fit:cover;
}
.tool-card-actions {
  flex:0 0 200px;
  display:flex;
  flex-direction:column;
  gap:12px;
  justify-content:center;
  align-items:flex-start;
}
.tool-card-actions .btn {
  width:100%;
}
.tool-card-access {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
}
.tools-slideshow .tool-slider-card {
  margin:0;
  width:100%;
  max-width:none;
}
.tools-slideshow .tool-slider-card,
.tools-slideshow .tool-slider-hero {
  border-radius:32px;
}

.headline a,
.section-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.headline a:hover,
.section-link:hover { text-decoration: underline; }
.section-more {
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}
.section-more .btn { margin:0; }
.catalog-filters { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0; }
.catalog-filters label { display:flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid rgba(148,163,184,0.3); border-radius:10px; color:var(--muted); background:rgba(7,13,24,0.5); }
.catalog-filters input[type="checkbox"] { accent-color: var(--brand-accent); width:16px; height:16px; }

.admin-page .admin-nav{display:none!important;}
.admin-page .admin-logo .brand-caret{display:none!important;}
