 :root {
    --bg: #080512;
    --surface: #23133a;
    --surface2: #1f1232;
    --surface3: #1a1230;
    --border: #3a1c63;
    --border-glow: #5e309d;
    --gold: #b94ade;
    --gold-bright: #d76df9;
    --gold-dim: #db98f2;
    --accent: #7B35B8;
    --accent-glow: rgba(123,53,184,0.15);
    --delinea: #6B2FA0;
    --delinea-bright: #9B4FD8;
    --delinea-glow: rgba(107,47,160,0.22);
    --delinea-gold: #b94ade;
    --green: #d76df9;
    --green-bright: #db98f2;
    --red: #9B4FD8;
    --yellow: #b94ade;
    --text: #e8eaf0;
    --text-dim: #e8f0ff;
    --text-faint: #d9cfee;
    --pam-glow: rgba(107, 47, 160, 0.07);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  .password-manager-comparison {
    background: #191127;
    color: var(--text);
    position: relative;
    font-size: 13px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Background grid */
  .password-manager-comparison::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(107,47,160,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(107,47,160,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  .wrapper {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px 80px;
  }

  /* ── HERO ─────────────────────────────── */
  .hero {
    text-align: center;
    padding: 64px 0 48px;
    position: relative;
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  }
  .hero-badge {
    display: inline-block;
    
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 24px;
    background: #23133a;
  }
  .hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #e8eaf0 30%, #8891a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
  }
  .hero h1 span {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--delinea-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .hero p {
    font-size: 15px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
    font-weight: 300;
  }

  /* ── STAT CARDS ───────────────────────── */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
  }
  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s;
  }
  .stat-card:hover { border-color: var(--border-glow); }
  .stat-card .num {
    
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-bright);
    display: block;
  }
  .stat-card .label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* ── FILTERS ──────────────────────────── */
  .controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .filter-label {
    
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-right: 4px;
  }
  .btn-filter {
    
    font-size: 11px;
    
    padding: 6px 14px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.18s;
  }
  .btn-filter:hover { border-color: var(--border-glow); color: var(--text); }
  .btn-filter.active { 
    border-color: #5e309d; 
    background: #873cf018; 
    color: var(--gold-bright); 
  }
  .search-box {
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 7px 14px;
    color: var(--text);
    font-size: 11px;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
  }
  .search-box:focus { border-color: var(--border-glow); }
  .search-box::placeholder { color: var(--text-faint); }

  /* ── LEGEND ───────────────────────────── */
  .legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--text-dim);
  }
  .legend-dot { width: 12px; height: 12px; border-radius: 2px; }

  /* ── TABLE CONTAINER ──────────────────── */
  .table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 8px 40px #be52e50f;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
  }

  /* ── HEADER ───────────────────────────── */
  thead tr {
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
  }
  th {
    padding: 14px 16px;
    text-align: left;
    
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    font-weight: 500;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--surface2);
    z-index: 1;
  }
  th:first-child { min-width: 200px; }
  th.col-feature { text-align: center; min-width: 110px; }
  th.sortable { cursor: pointer; user-select: none; }
  th.sortable:hover { color: var(--text); }

  /* ── ROWS ─────────────────────────────── */
  tbody tr {
    border-bottom: 1px solid #3a1c63;
    transition: background 0.15s;
  }
  tbody tr:hover { background: #1f1232; }
  tbody tr:last-child { border-bottom: none; }

  /* DELINEA HERO ROW */
  tbody tr.row-delinea {
    background: linear-gradient(90deg, rgba(107,47,160,0.10) 0%, rgba(133, 0, 195, 0.04) 100%);
    border-bottom: 1px solid rgba(155,79,216,0.25);
    border-top: 1px solid rgba(155,79,216,0.18);
    position: relative;
  }
  tbody tr.row-delinea:hover { background: linear-gradient(90deg, rgba(107,47,160,0.16) 0%, rgba(146, 0, 195, 0.07) 100%); }
  tbody tr.row-delinea td:first-child { border-left: 3px solid var(--delinea-bright); }

  /* PAM rows */
  tbody tr.row-pam {
    background: var(--pam-glow);
  }
  tbody tr.row-pam td:first-child { border-left: 3px solid var(--gold-dim); }

  td {
    padding: 11px 16px;
    vertical-align: middle;
  }

  /* ── NAME CELL ────────────────────────── */
  .name-cell { display: flex; flex-direction: column; gap: 3px; }
  .name-cell .prod-name {
    
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }
  .name-cell .prod-vendor {
    font-size: 10.5px;
    color: var(--text-dim);
    
  }
  .name-cell .prod-tag {
    display: inline-block;
    
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 2px;
    margin-top: 2px;
    width: fit-content;
    text-transform: uppercase;
  }
  .tag-pam { background: rgba(107,47,160,0.14); color: #b07ae0; border: 1px solid rgba(107,47,160,0.3); }
  .tag-vault { background: rgba(0,195,137,0.08); color: #00b87f; border: 1px solid rgba(0,195,137,0.2); }
  .tag-open { background: rgba(0,195,137,0.1); color: #00c389; border: 1px solid rgba(0,195,137,0.25); }
  .tag-browser { background: #291a3e; color: #d2dce6; border: 1px solid #3a1c63; }
  .tag-hero { 
    background: linear-gradient(90deg, rgba(107,47,160,0.25), rgba(159, 0, 195, 0.15)); 
    color: var(--delinea-gold); 
    border: 1px solid rgba(155,79,216,0.4); 
    font-weight: 600;
  }

  /* ── FEATURE CELLS ────────────────────── */
  td.col-feature { text-align: center; }

  .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
  }
  .check-yes { background: rgba(0,195,137,0.12); color: var(--green-bright); }
  .check-no  { background: rgba(107,47,160,0.1);  color: #5a3a7a; font-size: 16px; }
  .check-partial { background: rgba(155,79,216,0.12); color: #b07ae0; font-size: 12px; }

  /* Hero checkmarks */
  tr.row-delinea .check-yes {
    background: rgba(0,195,137,0.22);
    box-shadow: 0 0 8px rgba(0,195,137,0.2);
    color: #00e8a8;
  }

  /* ── SCORE CELL ───────────────────────── */
  .score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
  }
  .score-bar {
    flex: 1;
    height: 4px;
    background: #282035;
    border-radius: 2px;
    overflow: hidden;
  }
  .score-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), #b07ae0);
    transition: width 0.6s ease;
  }
  tr.row-delinea .score-fill {
    background: linear-gradient(90deg, var(--delinea-bright), var(--delinea-gold));
  }
  tr.row-pam .score-fill {
    background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  }
  .score-num {
    
    font-size: 11px;
    color: var(--text-dim);
    min-width: 20px;
  }

  /* ── DELINEA BANNER ───────────────────── */
  .delinea-banner {
    background: linear-gradient(135deg, #3a1c6348 0%, #6848954e 50%, #9a4fd85e 100%);
    border: 1px solid rgba(155,79,216,0.3);
    border-radius: 10px;
    padding: 32px 36px;
    margin: 40px 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    position: relative;
    overflow: hidden;
  }
  .delinea-banner::before {
    content: 'ENTERPRISE PAM';
    position: absolute;
    top: -1px; right: 24px;
    
    font-size: 9px;
    padding: 4px 12px;
    background: var(--delinea-bright);
    color: white;
    border-radius: 0 0 4px 4px;
  }
  .delinea-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--delinea-bright), var(--delinea-gold), transparent);
  }
  .banner-title {
    grid-column: 1 / -1;
    
    font-size: 22px;
    font-weight: 800;
  }
  .banner-title span { color: var(--delinea-gold); }
  .banner-subtitle {
    grid-column: 1 / -1;
    font-size: 13px;
    color: var(--text-dim);
    margin-top: -16px;
    line-height: 1.6;
  }
  .feat-card {
    background: #1f1232;
    border: 1px solid #3a1c63;
    border-radius: 8px;
    padding: 18px;
  }
  .feat-card .icon { font-size: 22px; margin-bottom: 10px; }
  .feat-card h4 {
    
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 6px;
  }
  .feat-card p {
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.6;
  }

  /* ── TOOLTIP ──────────────────────────── */
  [data-tip] { position: relative; cursor: help; }
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: #1f1232;
    border: 1px solid var(--border-glow);
    color: var(--text);
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1;
    
    font-weight: 400;
  }
  [data-tip]:hover::after { opacity: 1; }

  /* ── HIDDEN ───────────────────────────── */
  .hidden { display: none !important; }

  /* ── RESPONSIVE ───────────────────────── */
  @media (max-width: 900px) {
    .stats-row { grid-template-columns: repeat(2,1fr); }
    .delinea-banner { grid-template-columns: 1fr; }
    .banner-title, .banner-subtitle { grid-column: 1; }
  }

  /* ── ANIMATIONS ───────────────────────── */
  @keyframes fadeSlide {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
  }
  .table-wrapper { animation: fadeSlide 0.5s ease 0.1s both; }
  .delinea-banner { animation: fadeSlide 0.5s ease 0.05s both; }
  .stats-row { animation: fadeSlide 0.5s ease both; }

  /* ── FOOTER NOTE ──────────────────────── */
  .footer-note {
    margin-top: 32px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-size: 11px;
    color: var(--text-faint);
    line-height: 1.6;
  }
  .footer-note strong { color: var(--text-dim); }

  /* Sticky first column */
  th:first-child, td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
  }
  tr.row-delinea td:first-child {
    background: linear-gradient(90deg, rgba(107,47,160,0.12), var(--surface));
  }
  tr.row-pam td:first-child {
    background: linear-gradient(90deg, rgba(107,47,160,0.05), var(--surface));
  }
  thead th:first-child { background: var(--surface2); z-index: 1; }

  /* Row number */
  .row-num {
    
    font-size: 10px;
    color: var(--text-faint);
    min-width: 22px;
    display: inline-block;
  }

  .sort-arrow { margin-left: 4px; opacity: 0.4; }
  th.sort-asc .sort-arrow::after { content: '▲'; }
  th.sort-desc .sort-arrow::after { content: '▼'; }
  th:not(.sort-asc):not(.sort-desc) .sort-arrow::after { content: '⇅'; }

    /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 5px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }