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

    :root {
      --bg: #f8f9fc; --white: #ffffff; --surface: #ffffff; --surface2: #f1f3f9;
      --border: #e5e7ef; --border-light: #eef0f6;
      --accent: #6366f1; --accent-hover: #4f46e5; --accent-soft: rgba(99,102,241,0.08);
      --accent2: #8b5cf6; --accent3: #ec4899;
      --text: #1e293b; --text2: #334155; --muted: #64748b; --light: #94a3b8;
      --green: #10b981; --green-bg: rgba(16,185,129,0.1);
      --red: #ef4444; --red-bg: rgba(239,68,68,0.08);
      --yellow: #f59e0b; --yellow-bg: rgba(245,158,11,0.1);
      --blue: #3b82f6; --blue-bg: rgba(59,130,246,0.08);
      --radius: 14px; --radius-sm: 10px; --radius-xs: 6px;
      --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
      --shadow-lg: 0 4px 24px rgba(0,0,0,0.06), 0 12px 48px rgba(0,0,0,0.04);
      --shadow-hover: 0 8px 32px rgba(99,102,241,0.12);
      --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      --sidebar-w: 260px;
}

    body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }

    /* ── Scrollbar ── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

    /* ── Animations ── */
    @keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
    @keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
    @keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
    @keyframes ripple { to { transform: scale(4); opacity: 0; } }
    @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
    @keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

    .animate-in { animation: fadeIn 0.4s ease forwards; }
    .animate-in-delay { animation: fadeIn 0.4s ease 0.1s forwards; opacity: 0; }
    .skeleton { background: linear-gradient(90deg, var(--surface2) 25%, #e8eaf2 50%, var(--surface2) 75%); background-size: 800px 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }

    /* ── Auth Screen ── */
    .auth-wrap {
      min-height: 100vh; display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, #f8f9fc 0%, #eef0ff 50%, #f0f0ff 100%);
      position: relative; overflow: hidden;
}
    .auth-wrap::before {
      content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
      background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
      top: -200px; right: -100px;
}
    .auth-wrap::after {
      content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
      background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
      bottom: -100px; left: -50px;
}
    .auth-box {
      background: var(--white); border: 1px solid var(--border-light); border-radius: 24px;
      padding: 48px 40px; width: 100%; max-width: 440px;
      box-shadow: var(--shadow-lg); position: relative; z-index: 1;
      animation: scaleIn 0.5s ease;
}
    .auth-logo {
      display: block; height: 72px; width: auto; max-width: 100%;
      margin: 0 auto 14px; object-fit: contain;
}
    .auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 36px; line-height: 1.5; }

    /* ── Form Controls ── */
    .form-group { margin-bottom: 20px; }
    .form-label {
      display: block; font-size: 12px; font-weight: 600; color: var(--muted);
      margin-bottom: 8px; letter-spacing: 0.05em; text-transform: uppercase;
}
    .form-input {
      width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
      border: 1.5px solid var(--border); background: var(--bg);
      color: var(--text); font-size: 14px; font-family: inherit;
      transition: border-color var(--transition), box-shadow var(--transition);
}
    .form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
    .form-input::placeholder { color: var(--light); }
    textarea.form-input { resize: vertical; min-height: 80px; }
    select.form-input { cursor: pointer; }

    /* ── Buttons ── */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 12px 24px; border-radius: var(--radius-sm); border: none;
      font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer;
      transition: all var(--transition); position: relative; overflow: hidden;
}
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: white; box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
    .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }
    .btn-primary:active { transform: translateY(0); }
    .btn-secondary { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
    .btn-secondary:hover { background: var(--border-light); border-color: var(--accent); color: var(--accent); }
    .btn-danger { background: var(--red-bg); color: var(--red); }
    .btn-danger:hover { background: var(--red); color: white; }
    .btn-sm { padding: 7px 14px; font-size: 12px; border-radius: var(--radius-xs); }
    .btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-xs); }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
    .btn-block { width: 100%; }

    /* ── Sidebar ── */
    .sidebar {
      position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
      background: var(--white); border-right: 1px solid var(--border-light);
      display: flex; flex-direction: column; padding: 24px 16px; z-index: 100;
      transition: transform var(--transition); overflow-y: auto; overflow-x: hidden;
}
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
    .sidebar-logo {
      display: block; height: 48px; width: auto; max-width: calc(100% - 8px);
      padding: 0 8px; margin: 0 0 6px; object-fit: contain; object-position: left center;
}
    .sidebar-sub { font-size: 11px; color: var(--light); padding: 0 12px; margin-bottom: 28px; }
    .nav-section { font-size: 10px; font-weight: 700; color: var(--light); letter-spacing: 0.1em; text-transform: uppercase; padding: 16px 12px 8px; }
    .nav-item {
      display: flex; align-items: center; gap: 12px; padding: 10px 12px;
      border-radius: var(--radius-sm); color: var(--muted); text-decoration: none;
      font-size: 13.5px; font-weight: 500; cursor: pointer; border: none; background: none;
      width: 100%; transition: all var(--transition); margin-bottom: 2px; text-align: left;
}
    .nav-item .nav-icon { width: 20px; text-align: center; font-size: 15px; }
    .nav-item:hover { background: var(--accent-soft); color: var(--accent); }
    .nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
    .nav-item .nav-badge {
      margin-left: auto; background: var(--accent); color: white;
      font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
}
    .nav-item .nav-badge.onboard-pulse {
      animation: onboardBadgePulse 1.6s ease-in-out infinite;
      box-shadow: 0 0 0 0 rgba(99,102,241,0.55);
    }
    @keyframes onboardBadgePulse {
      0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.5); transform: scale(1); }
      70% { box-shadow: 0 0 0 8px rgba(99,102,241,0); transform: scale(1.08); }
      100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); transform: scale(1); }
    }
    .onboard-spotlight {
      position: relative;
      border-radius: 12px !important;
      outline: 2px solid transparent;
      animation: onboardSpotlight 2s ease-in-out infinite;
      box-shadow: 0 0 0 0 rgba(99,102,241,0.35), 0 8px 28px rgba(99,102,241,0.12);
    }
    .onboard-spotlight::after {
      content: attr(data-onboard-hint);
      position: absolute;
      left: 12px;
      top: -12px;
      transform: translateY(-100%);
      background: linear-gradient(135deg, #4f46e5, #7c3aed);
      color: #fff;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.01em;
      padding: 8px 12px;
      border-radius: 999px;
      white-space: nowrap;
      box-shadow: 0 8px 20px rgba(79,70,229,0.35);
      z-index: 5;
      pointer-events: none;
      max-width: min(320px, calc(100% - 24px));
      white-space: normal;
      line-height: 1.35;
    }
    @keyframes onboardSpotlight {
      0%, 100% { outline-color: rgba(99,102,241,0.35); box-shadow: 0 0 0 0 rgba(99,102,241,0.25), 0 8px 28px rgba(99,102,241,0.1); }
      50% { outline-color: rgba(99,102,241,0.95); box-shadow: 0 0 0 6px rgba(99,102,241,0.12), 0 12px 32px rgba(99,102,241,0.18); }
    }
    .onboard-spotlight-btn {
      animation: onboardBtnGlow 1.5s ease-in-out infinite;
      position: relative;
      z-index: 2;
    }
    @keyframes onboardBtnGlow {
      0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.45); transform: translateY(0); }
      50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); transform: translateY(-1px); }
    }
    .sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-light); }
    .user-card {
      display: flex; align-items: center; gap: 10px; padding: 10px 12px;
      border-radius: var(--radius-sm); margin-bottom: 8px;
}
    .user-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      display: flex; align-items: center; justify-content: center;
      color: white; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
    .user-name { font-size: 13px; font-weight: 600; color: var(--text); }
    .user-email { font-size: 11px; color: var(--light); }

    /* ── Main Content ── */
    .main { margin-left: var(--sidebar-w); padding: 32px 40px; min-height: 100vh; }

    .ab-main-topbar {
      position: sticky; top: 0; z-index: 40; margin: -32px -40px 20px;
      padding: 12px 40px; background: rgba(248,249,252,0.92); backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border-light);
      display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    }
    .ab-bell-wrap { position: relative; }
    .ab-bell-btn {
      width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
      background: var(--white); cursor: pointer; font-size: 18px;
      display: flex; align-items: center; justify-content: center; position: relative;
    }
    .ab-bell-btn:hover { border-color: var(--accent); }
    .ab-bell-badge {
      position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
      padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff;
      font-size: 10px; font-weight: 700; display: none; align-items: center; justify-content: center;
    }
    .ab-bell-badge.show { display: flex; }
    .ab-notif-dropdown {
      display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 360px;
      max-height: 420px; overflow: auto; background: var(--white); border: 1px solid var(--border);
      border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 50;
    }
    .ab-notif-dropdown.show { display: block; }
    .ab-notif-drop-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-weight: 650; font-size: 13px;
    }
    .ab-notif-drop-head button {
      border: none; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 600;
    }
    .ab-notif-item {
      padding: 12px 14px; border-bottom: 1px solid var(--border-light); cursor: pointer; text-align: left;
    }
    .ab-notif-item:hover { background: var(--surface2); }
    .ab-notif-item.unread { background: var(--accent-soft); }
    .ab-notif-item-title { font-size: 13px; font-weight: 650; color: var(--text); }
    .ab-notif-item-body { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
    .ab-notif-item-time { font-size: 11px; color: var(--light); margin-top: 4px; }
    .ab-notif-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 13px; }
    .page { display: none; } .page.active { display: block; animation: fadeIn 0.3s ease; }
    .page-header { margin-bottom: 28px; }
    .page-title { font-size: 1.6rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
    .page-sub { color: var(--muted); font-size: 14px; line-height: 1.5; }

    /* Info tooltips — click to open, fixed portal (no clipping behind nav/cards) */
    .info-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font-size: 12px; font-weight: 700; cursor: help; border: 1px solid rgba(99,102,241,0.2); transition: background 0.15s, color 0.15s, box-shadow 0.15s; flex-shrink: 0; vertical-align: middle; }
    .info-tip:hover, .info-tip.active { background: var(--indigo); color: white; box-shadow: 0 2px 8px rgba(99,102,241,0.35); }
    .info-tip .tip-text { display: none; }
    .info-tip-popover {
      position: fixed; z-index: 10001; max-width: 300px; padding: 12px 16px;
      background: #1e293b; color: #f1f5f9; border-radius: 12px; font-size: 12px;
      font-weight: 400; line-height: 1.65; box-shadow: 0 8px 32px rgba(0,0,0,0.22);
      pointer-events: none; animation: tipFadeIn 0.15s ease;
    }
    .info-tip-popover::before {
      content: ''; position: absolute; width: 10px; height: 10px; background: #1e293b;
      transform: rotate(45deg); border-radius: 2px;
    }
    .info-tip-popover.tip-below::before { top: -5px; left: 18px; }
    .info-tip-popover.tip-above::before { bottom: -5px; left: 18px; }
    @keyframes tipFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

    /* ── Readers page ── */
    .readers-stats { grid-template-columns: repeat(4, 1fr) !important; margin-bottom: 20px; }
    .readers-layout { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
    .readers-aside { position: sticky; top: 24px; }
    .readers-chart-card {
      padding: 18px 16px; border-radius: 16px; text-align: center;
      background: linear-gradient(160deg, var(--white) 0%, var(--surface2) 100%);
    }
    .readers-chart-card .card-title { font-size: 13px; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
    .readers-doughnut-wrap { width: 140px; height: 140px; margin: 0 auto; position: relative; }
    .readers-doughnut-center {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center; pointer-events: none;
    }
    .readers-doughnut-center .rdc-val { font-size: 1.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
    .readers-doughnut-center .rdc-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }
    .readers-country-legend { margin-top: 14px; text-align: left; }
    .readers-country-legend .legend-row {
      display: flex; align-items: center; gap: 8px; padding: 5px 0;
      font-size: 12px; border-bottom: 1px solid var(--border-light);
    }
    .readers-country-legend .legend-row:last-child { border-bottom: none; }
    .legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
    .legend-name { flex: 1; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .legend-count { font-weight: 700; color: var(--text); font-size: 11px; }
    .reader-cell { display: flex; align-items: center; gap: 10px; }
    .reader-avatar {
      width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
      background: linear-gradient(135deg, var(--indigo-soft), var(--accent-soft));
      color: var(--indigo); font-size: 12px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid rgba(99,102,241,0.15);
    }
    .reader-name { font-weight: 600; font-size: 13px; }
    .reader-email-link {
      background: none; border: none; padding: 0; margin: 0;
      color: var(--indigo); font-size: 12px; cursor: pointer;
      text-decoration: underline; text-underline-offset: 2px;
    }
    .reader-email-link:hover { color: var(--purple); }
    .readers-table-card { padding: 0; border-radius: 14px; overflow: hidden; }
    @media (max-width: 960px) {
      .readers-layout { grid-template-columns: 1fr; }
      .readers-aside { order: -1; position: static; }
      .readers-stats { grid-template-columns: repeat(2, 1fr) !important; }
    }

    /* Connection status dot */
    .conn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
    .conn-dot.ok { background: var(--green); box-shadow: 0 0 6px rgba(16,185,129,0.4); }
    .conn-dot.err { background: var(--red); box-shadow: 0 0 6px rgba(239,68,68,0.4); animation: pulse 2s infinite; }

    /* ── Cards ── */
    .card {
      background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
      padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow);
      transition: box-shadow var(--transition), transform var(--transition);
}
    .card:hover { box-shadow: var(--shadow-hover); }
    .card-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
    .card-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

    /* ── Stat Cards ── */
    .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
    .stat-card {
      background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius);
      padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
      transition: all var(--transition); cursor: default;
}
    .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
    .stat-card::after {
      content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px;
      border-radius: 50%; opacity: 0.06; transform: translate(20px, -20px);
}
    .stat-card:nth-child(1)::after { background: var(--accent); }
    .stat-card:nth-child(2)::after { background: var(--green); }
    .stat-card:nth-child(3)::after { background: var(--accent2); }
    .stat-card:nth-child(4)::after { background: var(--yellow); }
    .stat-icon { font-size: 20px; margin-bottom: 12px; }
    .stat-val { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; animation: countUp 0.5s ease; }
    .stat-val.accent { color: var(--accent); }
    .stat-val.green { color: var(--green); }
    .stat-val.purple { color: var(--accent2); }
    .stat-val.yellow { color: var(--yellow); }
    .stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 500; }
    .stat-change { font-size: 11px; font-weight: 600; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; }
    .stat-change.up { color: var(--green); background: var(--green-bg); }
    .stat-change.down { color: var(--red); background: var(--red-bg); }

    /* ── Tables ── */
    .table-wrap { overflow-x: auto; border-radius: var(--radius); }
    table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
    thead { background: var(--surface2); }
    th { text-align: left; padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
    td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
    tr:hover td { background: var(--accent-soft); }
    tr:last-child td { border-bottom: none; }

    /* ── Badges ── */
    .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
    .badge-active { background: var(--green-bg); color: var(--green); }
    .badge-processing { background: var(--yellow-bg); color: var(--yellow); }
    .badge-failed { background: var(--red-bg); color: var(--red); }
    .badge-draft { background: var(--surface2); color: var(--muted); }
    .badge-info { background: var(--blue-bg); color: var(--blue); }

    /* ── Toast Notifications ── */
    .showToast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
    .showToast {
      background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
      padding: 14px 20px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
      font-size: 13px; font-weight: 500; animation: slideInLeft 0.3s ease; min-width: 280px;
      transition: all 0.3s ease;
}
    .showToast.success { border-left: 3px solid var(--green); }
    .showToast.error { border-left: 3px solid var(--red); }
    .showToast.info { border-left: 3px solid var(--blue); }
    .showToast-close { margin-left: auto; cursor: pointer; color: var(--light); font-size: 16px; background: none; border: none; }

    /* ── Modal ── */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(15,23,42,0.4); backdrop-filter: blur(4px);
      z-index: 1000; display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
    .modal-overlay.active { opacity: 1; pointer-events: auto; }
    .modal {
      background: var(--white); border-radius: 20px; padding: 32px; width: 100%; max-width: 520px;
      box-shadow: var(--shadow-lg); transform: scale(0.95); transition: transform 0.2s;
      max-height: 90vh; overflow-y: auto; overflow-x: hidden;
}
    .modal.modal--wide { max-width: 640px; }
    .modal-overlay.active .modal { transform: scale(1); }
    .modal-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
    .modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
    .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 24px; }
    .modal-actions .btn { flex: 0 1 auto; white-space: nowrap; }
    .modal-actions--dense { gap: 8px; }
    .modal-actions--dense .btn { padding: 7px 14px; font-size: 12px; }
    .modal-actions-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; width: 100%; }
    @media (max-width: 560px) {
      .modal-actions, .modal-actions-group { flex-direction: column; align-items: stretch; }
      .modal-actions .btn, .modal-actions-group .btn { width: 100%; }
    }

    /* ── Upload Zone ── */
    .upload-zone {
      border: 2px dashed var(--border); border-radius: var(--radius); padding: 48px 32px;
      text-align: center; cursor: pointer; transition: all var(--transition);
      background: var(--surface2);
}
    .upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
    .upload-zone .upload-icon { font-size: 40px; margin-bottom: 12px; }
    .upload-zone .upload-text { font-size: 14px; color: var(--muted); }
    .upload-zone .upload-text strong { color: var(--accent); }

    /* ── Progress Bar ── */
    .progress-bar { background: var(--surface2); border-radius: 8px; height: 8px; overflow: hidden; }
    .progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 8px; transition: width 0.4s ease; }
    .usage-bar-row { display: flex; flex-direction: column; gap: 6px; }
    .usage-bar-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); }
    .usage-bar-label strong { color: var(--text); font-weight: 600; }
    .modal-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .modal-close-btn { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; flex-shrink: 0; }
    .modal-close-btn:hover { color: var(--text); }
    .msg-thread-row { cursor: pointer; transition: background 0.15s ease; }
    .msg-thread-row:hover { background: var(--accent-soft); }
    .msg-thread-unread td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

    /* ── Support Messenger (premium) ── */
    .support-hub { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 0; min-height: 620px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-lg); background: var(--white); }
    .support-sidebar { border-right: 1px solid var(--border-light); display: flex; flex-direction: column; background: linear-gradient(180deg, #fafbff 0%, var(--white) 100%); }
    .support-sidebar-head { padding: 20px 18px 14px; border-bottom: 1px solid var(--border-light); }
    .support-inbox-search { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--white); }
    .support-inbox-search input { border: none; background: none; outline: none; font-size: 13px; width: 100%; font-family: inherit; color: var(--text); }
    .support-inbox-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
    .support-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
    .support-thread-list { flex: 1; overflow-y: auto; padding: 8px; }
    .support-thread-item { padding: 14px; border-radius: 12px; cursor: pointer; margin-bottom: 4px; transition: all 0.15s; border: 1px solid transparent; }
    .support-thread-item:hover { background: var(--accent-soft); }
    .support-thread-item.active { background: var(--accent-soft); border-color: rgba(99,102,241,0.22); box-shadow: 0 2px 10px rgba(99,102,241,0.1); }
    .support-thread-item.unread { border-left: 3px solid var(--accent); padding-left: 11px; }
    .support-thread-subject { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .support-thread-preview { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .support-thread-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--light); }
    .support-conv { display: flex; flex-direction: column; min-height: 520px; background: var(--white); }
    .support-conv-empty { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--muted); padding: 48px 24px; text-align: center; }
    .support-conv-empty-icon { font-size: 48px; opacity: 0.35; }
    .support-conv-head { padding: 18px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, rgba(99,102,241,0.05), transparent); }
    .support-bubbles { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, #f8f9ff 0%, var(--bg) 100%); }
    .chat-bubble { max-width: 82%; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.55; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
    .chat-bubble.from-author { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; border-bottom-right-radius: 4px; }
    .chat-bubble.from-support { align-self: flex-start; background: var(--white); color: var(--text); border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
    .chat-bubble-meta { font-size: 11px; opacity: 0.8; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .chat-bubble-del { background: none; border: none; color: inherit; opacity: 0.55; font-size: 11px; cursor: pointer; padding: 0; text-decoration: underline; }
    .chat-bubble-del:hover { opacity: 1; }
    .chat-att-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
    .media-thumb { display: block; width: 168px; height: 118px; border-radius: 18px; overflow: hidden; border: none; padding: 0; cursor: pointer; position: relative; background: rgba(0,0,0,0.05); box-shadow: 0 2px 10px rgba(0,0,0,0.07); transition: transform 0.18s ease, box-shadow 0.18s ease; }
    .media-thumb:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 20px rgba(99,102,241,0.2); }
    .media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
    .media-thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,0.28); color: white; pointer-events: none; }
    .media-pdf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,0.06); font-size: 12px; text-decoration: none; color: inherit; max-width: 220px; }
    .media-lightbox { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 32px 20px; }
    .media-lightbox.active { display: flex; }
    .media-lightbox-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.78); backdrop-filter: blur(10px); }
    .media-lightbox-panel { position: relative; z-index: 1; max-width: min(94vw, 1120px); max-height: 90vh; animation: mediaZoomIn 0.22s ease; }
    .media-lightbox-panel img, .media-lightbox-panel video { max-width: 100%; max-height: 90vh; border-radius: 14px; display: block; box-shadow: 0 20px 60px rgba(0,0,0,0.45); background: #000; }
    .media-lightbox-panel video { width: 100%; }
    .media-lightbox-close { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: white; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
    .media-lightbox-close:hover { background: rgba(255,255,255,0.22); }
    @keyframes mediaZoomIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
    .support-composer { padding: 16px 20px 20px; border-top: 1px solid var(--border-light); background: var(--white); }
    .support-att-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
    .support-att-chip { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
    .support-att-chip img { width: 72px; height: 72px; object-fit: cover; display: block; }
    .support-att-chip .att-rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,0.6); color: white; font-size: 12px; cursor: pointer; line-height: 1; }
    .support-composer-row { display: flex; gap: 10px; align-items: flex-end; }
    .support-composer-shell { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px 6px 6px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; }
    .support-composer-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
    .composer-attach-btn { width: 40px; height: 40px; border-radius: 12px; border: none; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
    .composer-attach-btn:hover { background: var(--accent-soft); color: var(--accent); }
    .composer-attach-btn svg { display: block; }
    .support-composer-input { flex: 1; min-height: 40px; max-height: 140px; resize: none; padding: 10px 8px; border-radius: 0; border: none; font-family: inherit; font-size: 14px; line-height: 1.45; background: transparent; outline: none; box-shadow: none; }
    .support-send-btn { flex-shrink: 0; min-height: 48px; padding-left: 20px; padding-right: 20px; border-radius: 14px; }
    .support-compose-panel { border-top: 1px solid var(--border-light); padding: 20px 24px; background: var(--surface2); }
    .usage-hero { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 20px; align-items: stretch; margin-bottom: 24px; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(99,102,241,0.07) 0%, rgba(139,92,246,0.03) 45%, var(--white) 100%); border: 1px solid var(--border-light); box-shadow: var(--shadow); }
    .usage-hero-plan h3 { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
    .usage-hero-plan p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
    .usage-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .usage-meter { background: var(--white); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--border-light); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
    .usage-meter-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 6px; }
    .usage-meter-val { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
    @media (max-width: 1100px) {
      .support-hub { grid-template-columns: 1fr; min-height: auto; }
      .support-sidebar { max-height: 280px; border-right: none; border-bottom: 1px solid var(--border-light); }
      .usage-hero { grid-template-columns: 1fr; }
      .usage-meters { grid-template-columns: 1fr; }
    }

    /* ── Tabs ── */
    .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
    .tab {
      padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--muted);
      cursor: pointer; border-bottom: 2px solid transparent; transition: all var(--transition);
      background: none; border-top: none; border-left: none; border-right: none;
}
    .tab:hover { color: var(--text); }
    .tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

    /* ── Search ── */
    .search-bar {
      display: flex; align-items: center; gap: 8px; padding: 10px 16px;
      background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm);
      transition: all var(--transition); max-width: 320px;
}
    .search-bar:focus-within { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px var(--accent-soft); }
    .search-bar input { border: none; background: none; outline: none; font-size: 13px; color: var(--text); width: 100%; font-family: inherit; }
    .search-bar input::placeholder { color: var(--light); }

    /* ── Toggle ── */
    .toggle { position: relative; width: 44px; height: 24px; cursor: pointer; }
    .toggle input { display: none; }
    .toggle-track {
      position: absolute; inset: 0; background: var(--border); border-radius: 12px;
      transition: background var(--transition);
}
    .toggle input:checked + .toggle-track { background: var(--accent); }
    .toggle-thumb {
      position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
      background: white; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
      transition: transform var(--transition);
}
    .toggle input:checked ~ .toggle-thumb { transform: translateX(20px); }

    /* ── Widget Preview ── */
    .widget-preview {
      width: 340px; height: 480px; border-radius: 20px; overflow: hidden;
      box-shadow: var(--shadow-lg); border: 1px solid var(--border);
      display: flex; flex-direction: column; background: var(--white);
}

    /* ── Empty State ── */
    .empty-state { text-align: center; padding: 60px 20px; }
    .empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
    .empty-state .empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
    .empty-state .empty-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

    /* ── Toolbar ── */
    .toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
    .toolbar-spacer { flex: 1; }

    /* ── Chart Container ── */
    .chart-container { position: relative; height: 280px; }

    /* ── Responsive ── */
    @media (max-width: 768px) {
      .sidebar { transform: translateX(-100%); }
      .sidebar.open { transform: translateX(0); }
      .main { margin-left: 0; padding: 20px; }
      .stat-grid { grid-template-columns: 1fr 1fr; }
}

    /* ── Misc ── */
    .flex { display: flex; } .flex-col { flex-direction: column; }
    .items-center { align-items: center; } .justify-between { justify-content: space-between; }
    .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
    .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mb-4 { margin-bottom: 16px; }
    .text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
    .text-muted { color: var(--muted); } .text-accent { color: var(--accent); }
    .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
    .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .hidden { display: none !important; }

    /* ── Platform Presence panel ── */
    .ab-pp-card {
      background: var(--surface2);
      border: 1px solid var(--border-light);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: var(--shadow);
}
    .ab-pp-header {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 20px;
      align-items: center;
      padding: 22px 24px;
      border-bottom: 1px solid var(--border-light);
      background: linear-gradient(135deg, rgba(16,185,129,0.05) 0%, transparent 60%);
}
    .ab-pp-ring {
      --pp-pct: 0;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: conic-gradient(var(--green) calc(var(--pp-pct) * 1%), rgba(0,0,0,0.06) 0);
      display: grid;
      place-items: center;
      flex-shrink: 0;
}
    .ab-pp-ring-inner {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: var(--surface2);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1;
      box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
    .ab-pp-score-num {
      font-size: 20px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.04em;
      line-height: 1;
}
    .ab-pp-score-denom {
      font-size: 10px;
      font-weight: 600;
      color: var(--muted);
      margin-top: 3px;
      letter-spacing: 0.04em;
}
    .ab-pp-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.01em;
      margin-bottom: 4px;
}
    .ab-pp-subtitle {
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.45;
}
    .ab-pp-listed {
      font-size: 12px;
      color: var(--green);
      font-weight: 600;
      margin-top: 8px;
}
    .ab-pp-table-head {
      display: grid;
      grid-template-columns: 36px 1fr 64px 92px;
      gap: 12px;
      align-items: center;
      padding: 10px 20px 6px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--light);
      border-bottom: 1px solid var(--border-light);
}
    .ab-pp-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 4px;
      font-size: 11px;
      font-weight: 600;
      color: var(--accent);
      text-decoration: none;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
}
    .ab-pp-link:hover { text-decoration: underline; }
    .ab-pp-link--search { color: var(--muted); font-weight: 500; }
    .ab-pp-price {
      font-size: 12px;
      font-weight: 600;
      color: var(--text2);
      margin-top: 3px;
      line-height: 1.3;
    }
    .ab-pp-price--fmts { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 400; }
    .ab-pp-fmt-pair { display: inline-flex; align-items: center; gap: 3px; background: var(--bg2, #f3f4f6); border-radius: 4px; padding: 1px 5px; }
    .ab-pp-fmt-name { font-size: 10px; color: var(--muted); }
    .ab-pp-fmt-price { font-size: 12px; font-weight: 600; color: var(--text2); }
    .ab-pp-fmt-price--na { color: var(--muted); font-weight: 500; font-style: italic; }
    .ab-pp-price--na { font-size: 11px; font-weight: 500; color: var(--muted); font-style: italic; }
    .ab-found-links {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed var(--border-light);
}
    .ab-found-links-label {
      width: 100%;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--light);
      margin-bottom: 2px;
}
    .ab-found-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 600;
      background: rgba(16,185,129,0.1);
      border: 1px solid rgba(16,185,129,0.25);
      color: #059669;
      text-decoration: none;
      transition: background 0.15s;
}
    .ab-found-link:hover { background: rgba(16,185,129,0.18); }
    .ab-pp-table-head span:nth-child(3),
    .ab-pp-table-head span:nth-child(4) { text-align: center; }
    .ab-pp-platforms {
      max-height: 280px;
      overflow-y: auto;
}
    .ab-pp-row {
      display: grid;
      grid-template-columns: 36px 1fr 64px 92px;
      gap: 12px;
      align-items: center;
      padding: 12px 20px;
      border-bottom: 1px solid var(--border-light);
      transition: background var(--transition);
}
    .ab-pp-row:last-child { border-bottom: none; }
    .ab-pp-row:hover { background: rgba(99,102,241,0.03); }
    .ab-pp-icon {
      font-size: 18px;
      line-height: 1;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
}
    .ab-pp-info { min-width: 0; }
    .ab-pp-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
}
    .ab-pp-benefit {
      font-size: 11px;
      color: var(--muted);
      margin-top: 3px;
      line-height: 1.4;
}
    .ab-pp-bar-wrap {
      height: 5px;
      background: rgba(0,0,0,0.06);
      border-radius: 99px;
      overflow: hidden;
}
    .ab-pp-bar {
      height: 100%;
      border-radius: 99px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
    .ab-pp-badge {
      justify-self: center;
      font-size: 10px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 99px;
      white-space: nowrap;
      letter-spacing: 0.03em;
      text-transform: uppercase;
}
    .ab-pp-badge--verified { color: #059669; background: rgba(16,185,129,0.12); }
    .ab-pp-badge--missing  { color: var(--muted); background: var(--surface); border: 1px solid var(--border-light); }
    .ab-pp-badge--error    { color: var(--red); background: var(--red-bg); }
    .ab-pp-recs {
      padding: 16px 20px 12px;
      border-top: 1px solid var(--border-light);
}
    .ab-pp-recs-title {
      font-size: 10px;
      font-weight: 800;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-bottom: 12px;
}
    .ab-pp-recs-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 10px;
}
    .ab-pp-rec-card {
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--surface);
      border: 1px solid var(--border-light);
      line-height: 1.4;
}
    .ab-pp-rec-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
}
    .ab-pp-rec-text {
      font-size: 11.5px;
      color: var(--muted);
}
    .ab-pp-recs-help {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px dashed var(--border-light);
      font-size: 12px;
      color: var(--light);
      line-height: 1.5;
}
    .ab-pp-recs-help a {
      color: var(--accent);
      font-weight: 600;
      text-decoration: none;
}
    .ab-pp-recs-help a:hover { text-decoration: underline; }
    .ab-pp-footer {
      padding: 12px 20px 14px;
      font-size: 11px;
      color: var(--muted);
      border-top: 1px solid var(--border-light);
      background: rgba(0,0,0,0.015);
      line-height: 1.45;
}
    @keyframes ab-pp-danger-pulse {
      0%, 100% { box-shadow: inset 3px 0 0 var(--red), 0 0 0 0 rgba(239,68,68,0); }
      50% { box-shadow: inset 3px 0 0 var(--red), 0 0 0 4px rgba(239,68,68,0.12); }
}
    @keyframes ab-pp-danger-glow {
      0%, 100% { border-color: rgba(239,68,68,0.45); }
      50% { border-color: rgba(239,68,68,0.85); }
}
    .ab-pp-listed--warn { color: var(--red); }
    .ab-pp-missing-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-left: 8px;
      padding: 2px 9px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 700;
      color: var(--red);
      background: var(--red-bg);
      border: 1px solid rgba(239,68,68,0.25);
      vertical-align: middle;
      animation: ab-pp-danger-glow 2.4s ease-in-out infinite;
}
    .ab-pp-row--missing {
      background: linear-gradient(90deg, rgba(239,68,68,0.06) 0%, transparent 55%);
      animation: ab-pp-danger-pulse 2.4s ease-in-out infinite;
}
    .ab-pp-row--missing:hover { background: linear-gradient(90deg, rgba(239,68,68,0.1) 0%, rgba(239,68,68,0.02) 55%); }
    .ab-pp-row--missing .ab-pp-name { color: #b91c1c; }
    .ab-pp-row--missing .ab-pp-bar { background: linear-gradient(90deg, #f87171, var(--red)); }
    .ab-pp-row--clickable {
      cursor: pointer;
      outline: none;
}
    .ab-pp-row--clickable:focus-visible {
      box-shadow: inset 0 0 0 2px var(--red);
}
    .ab-pp-badge--danger {
      color: #b91c1c;
      background: var(--red-bg);
      border: 1px solid rgba(239,68,68,0.35);
      animation: ab-pp-danger-glow 2.4s ease-in-out infinite;
}
    .ab-pp-recs-title-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
}
    .ab-pp-recs-title-row .ab-pp-recs-title { margin-bottom: 0; color: #b91c1c; }
    .ab-pp-rec-card--missing {
      cursor: pointer;
      border: 1.5px solid rgba(239,68,68,0.45);
      background: linear-gradient(135deg, rgba(239,68,68,0.05) 0%, var(--surface) 60%);
      animation: ab-pp-danger-glow 2.4s ease-in-out infinite;
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
      outline: none;
}
    .ab-pp-rec-card--missing:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(239,68,68,0.15);
      border-color: var(--red);
}
    .ab-pp-rec-card--missing:focus-visible {
      box-shadow: 0 0 0 3px rgba(239,68,68,0.25);
      border-color: var(--red);
}
    .ab-pp-rec-card--missing .ab-pp-rec-name { color: #b91c1c; }
    .ab-pp-rec-cta {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 8px;
      font-size: 11px;
      font-weight: 700;
      color: var(--red);
      letter-spacing: 0.02em;
}
    .ab-pp-modal-icon {
      width: 52px;
      height: 52px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 26px;
      background: var(--red-bg);
      border: 1px solid rgba(239,68,68,0.25);
      margin-bottom: 16px;
}
    .ab-pp-modal-benefit {
      padding: 12px 14px;
      border-radius: 12px;
      background: var(--surface2);
      border: 1px solid var(--border-light);
      font-size: 13px;
      color: var(--text2);
      line-height: 1.5;
      margin: 16px 0;
}
    .ab-pp-modal-tip {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5;
      margin-top: 12px;
}
    .ab-pp-sticky-banner {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      margin: 0 32px 0;
      padding: 14px 18px;
      border-radius: 12px;
      background: linear-gradient(90deg, rgba(239,68,68,0.1), rgba(239,68,68,0.04));
      border: 1.5px solid rgba(239,68,68,0.35);
      animation: ab-pp-danger-glow 2.4s ease-in-out infinite;
}
    .ab-pp-sticky-banner-text {
      font-size: 13px;
      font-weight: 600;
      color: #b91c1c;
      line-height: 1.45;
}
    .ab-pp-help-card {
      margin-top: 14px;
      padding: 16px 18px;
      border-radius: 14px;
      background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.02));
      border: 1.5px solid rgba(99,102,241,0.25);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
}
    .ab-pp-help-card-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
}
    .ab-pp-help-card-sub {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.45;
}
    .ab-missing-pill {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: 8px;
      padding: 2px 8px;
      border-radius: 99px;
      font-size: 10px;
      font-weight: 700;
      color: #b91c1c;
      background: var(--red-bg);
      border: 1px solid rgba(239,68,68,0.3);
      vertical-align: middle;
}
    .ab-pp-help-form .form-group { margin-bottom: 12px; }
    .ab-pp-help-readonly {
      font-size: 12px;
      color: var(--muted);
      padding: 8px 10px;
      background: var(--surface2);
      border-radius: 8px;
      border: 1px solid var(--border-light);
}
    .ab-pp-checklist {
      margin: 10px 0 0;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--surface2);
      border: 1px solid var(--border-light);
      font-size: 12px;
      color: var(--text2);
      line-height: 1.5;
}
    .ab-pp-checklist ul { margin: 6px 0 0 18px; padding: 0; }
    .ab-gaps-card {
      border: 1.5px solid rgba(239,68,68,0.3);
      background: linear-gradient(135deg, rgba(239,68,68,0.06), transparent);
}
    .ab-gaps-card .stat-val { color: #b91c1c !important; }

    /* Right-edge support tab — brand accent, restrained */
    .ab-contact-tab {
      position: fixed;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 850;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      padding: 18px 11px;
      border: none;
      border-radius: 8px 0 0 8px;
      background: var(--accent);
      color: #fff;
      font-family: inherit;
      cursor: pointer;
      box-shadow: -2px 0 12px rgba(99, 102, 241, 0.35);
      transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
    .ab-contact-tab:hover {
      background: var(--accent-hover);
      transform: translateY(-50%) translateX(-3px);
      box-shadow: -4px 0 18px rgba(99, 102, 241, 0.45);
}
    .ab-contact-tab:focus-visible {
      outline: none;
      box-shadow: -4px 0 18px rgba(99, 102, 241, 0.45), 0 0 0 3px var(--accent-soft);
}
    .ab-contact-tab-icon {
      width: 15px;
      height: 15px;
      stroke: currentColor;
      fill: none;
      stroke-width: 1.75;
      stroke-linecap: round;
      stroke-linejoin: round;
}
    .ab-contact-tab-text {
      writing-mode: vertical-rl;
      text-orientation: mixed;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      white-space: nowrap;
}
  
/* R-TB-008 Token usage bubble */
.ab-token-bubble {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 1200;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #0f172a;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  font-family: 'Inter', system-ui, sans-serif;
  animation: abTokenBob 2.8s ease-in-out infinite;
}
.ab-token-bubble.is-visible { display: flex; }
.ab-token-bubble.is-urgent {
  background: linear-gradient(145deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}
.ab-token-bubble.is-bursting {
  animation: abTokenBurst 0.45s ease-out forwards;
  pointer-events: none;
}
.ab-token-bubble__pct { font-size: 15px; font-weight: 700; line-height: 1; }
.ab-token-bubble__label { font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; margin-top: 2px; }
.ab-token-bubble__x {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
@keyframes abTokenBob {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-8px) translateX(-4px); }
  50% { transform: translateY(2px) translateX(3px); }
  75% { transform: translateY(-5px) translateX(2px); }
}
@keyframes abTokenBurst {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.35); opacity: 0.85; }
  100% { transform: scale(0.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-token-bubble { animation: none; }
}
