/* ============================================================
   SENTINEL - Premium Dark Theme
   Inspired by Ahrefs, Semrush & modern SaaS dashboards
   Glassmorphism + Indigo accent system
   ============================================================ */

/* ----- Google Font Import ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root {
    /* Backgrounds — light theme */
    --bg-primary: #f7f7f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f2f6;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-input: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-heavy: rgba(255, 255, 255, 0.92);

    /* Accents — warm orange gradient system (no pink/purple) */
    --accent: #7c3aed;            /* orange-500 */
    --accent-light: #a78bfa;       /* orange-400 */
    --accent-dark: #6d28d9;        /* orange-600 */
    --accent-secondary: #a78bfa;
    --accent-purple: #7c3aed;
    --accent-orange: #7c3aed;
    --accent-coral: #a78bfa;
    /* Primary brand gradient: deep orange → bright orange → amber */
    --accent-gradient: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(167, 139, 250, 0.08));
    /* Soft warm glows for visual elements behind mockups */
    --glow-pink: radial-gradient(circle, rgba(251, 146, 60, 0.32) 0%, rgba(251, 146, 60, 0) 70%);
    --glow-purple: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, rgba(124, 58, 237, 0) 70%);
    --glow-orange: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, rgba(167, 139, 250, 0) 70%);

    /* Text — dark on light */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.08);
    --warning: #8b5cf6;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --info: #7c3aed;
    --info-bg: rgba(124, 58, 237, 0.08);
    --danger: #ef4444;
    --purple: #7c3aed;
    --purple-bg: rgba(124, 58, 237, 0.08);

    /* Borders */
    --border: rgba(17, 24, 39, 0.08);
    --border-light: rgba(17, 24, 39, 0.12);
    --border-subtle: rgba(17, 24, 39, 0.05);

    /* Shadows — soft for light theme */
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 4px 16px rgba(17, 24, 39, 0.06);
    --shadow-lg: 0 10px 40px rgba(17, 24, 39, 0.08);
    --shadow-xl: 0 20px 60px rgba(17, 24, 39, 0.1);
    --shadow-glow: 0 10px 40px rgba(124, 58, 237, 0.15);
    --shadow-glow-strong: 0 20px 60px rgba(124, 58, 237, 0.2);
    --shadow-accent: 0 8px 24px rgba(124, 58, 237, 0.25);

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 5rem;
    --card-radius: 16px;
    --btn-radius: 10px;
    --input-radius: 10px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', 'Consolas', monospace;
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent-dark);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-dark);
    padding: 0.2em 0.5em;
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

::selection {
    background: #facc15;
    color: #0f172a;
    text-shadow: none;
}
::-moz-selection {
    background: #facc15;
    color: #0f172a;
    text-shadow: none;
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, 0.18);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 24, 39, 0.28);
}

::-webkit-scrollbar-corner {
    background: var(--bg-tertiary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 24, 39, 0.18) var(--bg-tertiary);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   CONTAINER & SECTION LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

/* Section eyebrow — uses the site-wide yellow highlighter-pen style.
   The background/border pill has been retired in favor of a single visual
   language shared with `.lph-hl-eyebrow`. */
.section-badge {
    position: relative;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f172a;
    padding: 0.15rem 0.55rem;
    margin-bottom: 1.25rem;
    isolation: isolate;
    background: transparent;
    border: none;
    border-radius: 0;
}
.section-badge::before {
    content: "";
    position: absolute;
    left: -3px; right: -3px;
    top: 0; bottom: 0;
    background: linear-gradient(100deg,
        rgba(253, 224, 71, 0) 0%,
        rgba(253, 224, 71, 0.95) 6%,
        rgba(250, 204, 21, 0.95) 94%,
        rgba(250, 204, 21, 0) 100%);
    z-index: -1;
    border-radius: 2px 6px 3px 7px;
    transform: skewX(-4deg) rotate(-0.6deg);
    filter: blur(0.3px);
}

.section-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ============================================================
   ACCENT BAR (top of page)
   ============================================================ */
.accent-bar {
    height: 3px;
    background: var(--accent-gradient);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

/* ============================================================
   HEADER / NAVIGATION - Glassmorphic
   ============================================================ */
.site-header {
    position: sticky;
    top: 3px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    flex-shrink: 0;
}
.logo-text-accent {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
}

/* Main Nav */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--btn-radius);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.06);
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

/* Invisible bridge to keep hover alive across the gap */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 320px;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    pointer-events: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.dropdown-item:hover {
    background: rgba(124, 58, 237, 0.06);
    color: var(--text-primary);
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.dropdown-item strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

.dropdown-item small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.15rem;
}

/* ─── Mega Menu (Bots + Free Tools) ──────────────────── */
.has-mega {
    position: static;
}
/* Nav items with a mega-menu use the same padding/height as plain nav-links
   so every top-level item sits on the same baseline. The hover-bridge that
   keeps the dropdown alive across the gap lives inside `.mega-menu`
   (negative `margin-top`) rather than on the link itself — otherwise the
   links with dropdown arrows render taller than plain links and knock the
   whole row out of alignment. */
.has-mega > .nav-link {
    /* intentionally no extra padding — inherits from `.nav-link` */
}
.has-mega .nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.has-mega .dropdown-arrow {
    /* nudge chevrons to the optical centre of the cap-height so they don't
       sit visually below the baseline of the adjacent text */
    position: relative;
    top: 1px;
}
.nav-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 2px;
    vertical-align: middle;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    /* Close delay: give users ~350ms grace period so diagonal cursor moves
       toward submenu items don't accidentally dismiss the panel. On open
       there's no delay so the menu feels snappy. */
    transition: opacity 0.18s ease 0.35s, visibility 0.18s 0.35s;
    pointer-events: none;
    z-index: 900;
    /* Invisible hover-bridge so the menu doesn't close when the cursor crosses
       the gap between the nav link and the panel */
    padding-top: 12px;
    margin-top: -12px;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.18s ease, visibility 0.18s;
}
.has-mega:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.mega-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}
.mega-menu-inner.mega-4col {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.75rem;
}
.mega-col {
    min-width: 0;
}
.mega-col-title {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.55rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}
.mega-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    margin-bottom: 0.15rem;
}
.mega-item:hover {
    background: rgba(124, 58, 237, 0.06);
    transform: translateX(2px);
}
.mega-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(109,40,217,0.05));
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
}
.mega-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}
.mega-item:hover .mega-icon {
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(109,40,217,0.1));
    color: var(--accent);
}
.mega-item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1px;
}
.mega-item small {
    display: block;
    font-size: 0.74rem;
    color: var(--text-tertiary);
    line-height: 1.35;
}
.mega-item-strong-only strong { margin-bottom: 0; }
.mega-col-promo {
    display: flex;
    align-items: stretch;
}
.mega-promo-card {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mega-promo-card.mega-promo-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: rgba(16, 185, 129, 0.25);
}
.mega-promo-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.mega-promo-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.mega-promo-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
}
.mega-promo-cta:hover {
    color: var(--accent);
}
.mega-promo-green .mega-promo-cta {
    color: #059669;
}
.mega-promo-green .mega-promo-cta:hover {
    color: #047857;
}
.mobile-nav-group-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    padding: 1rem 1.25rem 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (max-width: 1024px) {
    .mega-menu { display: none; }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-greeting {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1002;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    position: relative;
    z-index: 1001;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-nav-link:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.06);
}

.mobile-nav-sub {
    padding-left: 2.5rem;
    font-size: 0.9rem;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1.5rem;
}

.mobile-nav-cta {
    color: var(--accent) !important;
    font-weight: 600;
}

.mobile-user-greeting {
    color: var(--text-tertiary);
    cursor: default;
}

/* ─── Collapsible mobile nav groups ─────────────────────
   Each .mobile-nav-group button toggles the sibling .mobile-nav-submenu.
   Groups start collapsed so the mobile menu stays compact on open. */
.mobile-nav-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0.85rem 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-nav-group:hover,
.mobile-nav-group.open {
    background: rgba(124, 58, 237, 0.06);
    color: var(--text-primary);
}
.mobile-nav-group-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.mobile-nav-chevron {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
    opacity: 0.65;
}
.mobile-nav-group.open .mobile-nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}
.mobile-nav-submenu.open {
    /* Large enough to hold the longest group (Free Tools has ~11 items). */
    max-height: 800px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
/* ============================================================
   BUTTONS — Unified system matching homepage hero style
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 10px;
    padding: 12px 28px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-family);
    line-height: 1.2;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    border: none;
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
    transform: translateY(-1px);
}

/* Compact admin action button — matches .sec-btn pattern used in admin/security pages.
   Use for in-table action buttons like "Review", "View", "Edit" across admin pages. */
.sec-btn {
    display: inline-block;
    background: #6d28d9;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
.sec-btn:hover { background: #4c1d95; color: #fff; }
.sec-btn-ghost { background: #fff; color: #6d28d9; border: 1px solid #ddd6fe; }
.sec-btn-ghost:hover { background: #faf5ff; color: #6d28d9; }
.sec-btn-danger { background: #ef4444; }
.sec-btn-danger:hover { background: #dc2626; }

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(17, 24, 39, 0.08);
}
.btn-outline:hover {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.15);
    color: var(--text-primary);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(17, 24, 39, 0.04);
}

.btn-secondary {
    background: rgba(17, 24, 39, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(17, 24, 39, 0.08);
}
.btn-secondary:hover {
    background: rgba(17, 24, 39, 0.08);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-success {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

/* ============================================================
   HERO SECTION (Landing Page)
   ============================================================ */
.hero {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 15%, rgba(124, 58, 237, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(124, 58, 237, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: heroBgPulse 8s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.45em 1.2em;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.hero-title .gradient-text,
.hero-title span.gradient-text {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Dashboard Mockup in Hero */
.hero-dashboard-mockup {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transition: box-shadow var(--transition-slow);
}
.hero-dashboard-mockup:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow-strong);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-bottom: 1px solid var(--border);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #eab308; }
.mockup-dot.green { background: #22c55e; }

.mockup-title {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-left: 0.5rem;
}

.mockup-body {
    padding: 1.5rem;
}

.mockup-stat {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1.25rem;
    margin: 0.25rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.mockup-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mockup-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.2rem;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.mockup-bar {
    flex: 1;
    background: var(--accent-gradient);
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    animation: barGrow 1.5s ease-out forwards;
    opacity: 0.85;
}
.mockup-bar:hover {
    opacity: 1;
}

@keyframes barGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   PRODUCT CARDS - Glassmorphism
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.5rem;
}

.product-grid-detailed {
    gap: 2rem;
}

.product-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
    transform: translateY(-4px);
}
.product-card:hover::before {
    opacity: 1;
}

.product-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.1));
    color: var(--accent-light);
    margin-bottom: 1.25rem;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.product-card-icon.bounce-icon {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05));
    color: var(--warning);
    border-color: rgba(234, 179, 8, 0.15);
}
.product-card-icon.adclick-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.15);
}
.product-card-icon.searchad-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
    color: var(--accent-purple);
    border-color: rgba(124, 58, 237, 0.15);
}

.product-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.3em 0.85em;
    border-radius: 100px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.product-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.product-card-desc {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.product-card-features {
    margin-bottom: 1.5rem;
}

.product-card-features li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 4rem;
    color: var(--text-muted);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-accent);
}

.step-icon {
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.step-title {
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--card-radius);
    transition: transform var(--transition-base);
}
.stat-card:hover {
    transform: translateY(-2px);
}

.stats-section .stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.12);
    margin-bottom: 0.35rem;
}

.stats-section .stat-label {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.95rem;
}

/* ============================================================
   TECH SECTION
   ============================================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--card-radius);
    padding: 1.75rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.tech-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.tech-card-icon {
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.tech-card h4 { margin-bottom: 0.5rem; }
.tech-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    padding: 4rem 0;
}

.cta-banner {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    border-radius: 24px;
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Shared CTA button row used on SEO pages, the homepage final CTA,
   and any template that groups two or more CTA buttons. Ensures a
   consistent gap so buttons never visually stick together. */
.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.lph-hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cta-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
}

/* CTA banner buttons — ensure they look right on the gradient background */
.cta-banner .btn-primary {
    background: #ffffff;
    color: var(--accent-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}
.cta-banner .btn-primary:hover {
    background: #ffffff;
    color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.cta-banner .btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.cta-banner .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .cta-banner { padding: 48px 24px; }
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.pricing-toggle-label {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 500;
    transition: color var(--transition-fast);
    cursor: pointer;
}
.pricing-toggle-label.active {
    color: var(--text-primary);
}

.pricing-save-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    background: var(--success-bg);
    padding: 0.2em 0.65em;
    border-radius: 100px;
    margin-left: 0.25rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.pricing-toggle-switch {
    width: 48px;
    height: 26px;
    background: var(--bg-tertiary);
    border-radius: 13px;
    position: relative;
    transition: background var(--transition-base);
    border: 1px solid var(--border);
    cursor: pointer;
}

.pricing-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.pricing-toggle-switch.active .pricing-toggle-slider {
    transform: translateX(22px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
    max-width: 1050px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--card-radius);
    padding: 2.5rem 2rem;
    position: relative;
    transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.pricing-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.1);
}

/* Featured / Popular pricing card with animated gradient border */
.pricing-card-popular {
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
    position: relative;
    z-index: 1;
}
.pricing-card-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--card-radius) + 2px);
    background: conic-gradient(from var(--border-angle, 0deg), #7c3aed, #7c3aed, #7c3aed, #7c3aed, #7c3aed, #7c3aed);
    z-index: -2;
    animation: borderRotate 4s linear infinite;
}
.pricing-card-popular::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.98);
    z-index: -1;
}
.pricing-card-popular:hover {
    transform: scale(1.03) translateY(-4px);
}

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes borderRotate {
    to { --border-angle: 360deg; }
}

.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35em 1.25em;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    z-index: 2;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-plan-desc {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    margin-bottom: 2rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.pricing-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-tertiary);
}

/* Pricing Features */
.pricing-features {
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.pricing-feature.included { color: var(--text-secondary); }
.pricing-feature.excluded { color: var(--text-muted); }
.pricing-feature svg { flex-shrink: 0; margin-top: 2px; }

/* Comparison Table */
.pricing-comparison {
    margin-top: 4rem;
}

.comparison-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover td {
    background: rgba(124, 58, 237, 0.04);
}

.popular-col {
    background: rgba(124, 58, 237, 0.06);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.faq-question:hover {
    color: var(--accent-light);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--text-tertiary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0.25rem 1.5rem 1.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}
.faq-item.active .faq-answer { max-height: 800px; }
/* Support pages using [data-open] pattern (pricing.ejs) — neutralize the
   global max-height collapse so their display:block toggle still shows. */
.faq-item[data-open="true"] .faq-answer { max-height: none; overflow: visible; }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2.75rem;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.08), 0 4px 16px rgba(124, 58, 237, 0.06);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-link {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 500;
}
.form-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.form-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-family);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: #ffffff;
}

/* Kill browser autofill yellow/blue background */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='%2394a3b8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.35rem;
    min-height: 0;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   ALERTS & FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: var(--input-radius);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.alert p { margin-bottom: 0.25rem; }
.alert p:last-child { margin-bottom: 0; }

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-color: rgba(34, 197, 94, 0.2);
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.2);
}
.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning);
    border-color: rgba(234, 179, 8, 0.2);
}
.alert-info {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-light);
    border-color: rgba(124, 58, 237, 0.2);
}

.flash {
    padding: 0.85rem 0;
    font-size: 0.9rem;
    text-align: center;
    transition: opacity var(--transition-slow), max-height var(--transition-slow);
}

.flash-success { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.flash-error { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.flash.fade-out { opacity: 0; max-height: 0; overflow: hidden; padding: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form-title {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.contact-info-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.contact-info-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
    color: var(--accent-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-item p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.1rem;
}

/* ============================================================
   DOCS PAGE
   ============================================================ */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.docs-nav-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.docs-nav-heading:first-child { margin-top: 0; }

.docs-nav-list li { margin-bottom: 0.15rem; }

.docs-nav-link {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.docs-nav-link:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.06);
}
.docs-nav-link.active {
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    font-weight: 500;
}

/* Docs Content */
.docs-content {
    min-width: 0;
}

.docs-article {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.docs-article:last-child { border-bottom: none; }

.docs-article h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.docs-article h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-article p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.docs-article ul, .docs-article ol {
    margin-bottom: 1rem;
    padding-left: 0;
}

.docs-article ul li, .docs-article ol li {
    color: var(--text-secondary);
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
}

.docs-article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Docs Callout */
.docs-callout {
    padding: 1.25rem 1.5rem;
    border-radius: var(--input-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    background: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.docs-callout-info {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--accent);
    color: var(--text-secondary);
}

.docs-callout strong { color: var(--text-primary); }

/* Docs Steps */
.docs-steps { margin: 1.5rem 0; }

.docs-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.docs-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-accent);
}

.docs-step-content h4 { margin-bottom: 0.25rem; }
.docs-step-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0; }

/* Docs Table */
.docs-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--border);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.docs-table th, .docs-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.docs-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
}

.docs-table td { color: var(--text-secondary); }

.docs-table tbody tr:hover td {
    background: rgba(124, 58, 237, 0.04);
}

/* Docs Code Blocks */
.docs-code {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--input-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.docs-code pre { margin: 0; }
.docs-code code {
    background: none;
    padding: 0;
    border: none;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.7;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-hero {
    padding: 4rem 0 3rem;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
}

.breadcrumb-back {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: color var(--transition-fast);
}
.breadcrumb-back:hover { color: var(--accent-light); }

.product-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.product-hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.product-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.product-hero-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars { display: flex; gap: 2px; }
.star { font-size: 1.1rem; color: var(--text-muted); }
.star.filled { color: #eab308; }
.rating-text { font-size: 0.85rem; color: var(--text-tertiary); }

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.feature-card-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.feature-card-title { font-size: 1rem; }

/* How it Works List */
.how-it-works-list { max-width: 700px; margin: 0 auto; }

.hiw-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }

.hiw-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: var(--shadow-accent);
}

.hiw-step-title { margin-bottom: 0.35rem; }
.hiw-step-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--input-radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.benefit-item:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.08);
}

.benefit-check { flex-shrink: 0; }
.benefit-text { color: var(--text-secondary); font-size: 0.95rem; }

/* Specs Table */
.specs-table-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.spec-key { font-weight: 600; color: var(--text-primary); width: 40%; }
.spec-value { color: var(--text-secondary); }

/* ============================================================
   ADMIN PANEL LAYOUT
   ============================================================ */
.admin-body {
    background: var(--bg-primary);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 73px);
}

/* Dashboard sidebar background — reproduces the soft orange radial
   glow used on the desktop bots' Welcome screen (see
   sentinel_ui/screens.py `_WelcomePage.paintEvent`). Two radial gradients
   are layered over a flat #F7F7F9 base: a warm orange bloom from the
   top-right corner, plus a paler amber bloom from the bottom-left. */
.admin-sidebar {
    background:
        radial-gradient(circle at 95% 5%,
            rgba(124, 58, 237, 0.24) 0%,
            rgba(251, 146, 60, 0.10) 35%,
            rgba(255, 255, 255, 0) 85%),
        radial-gradient(circle at 5% 95%,
            rgba(167, 139, 250, 0.16) 0%,
            rgba(253, 186, 116, 0.07) 40%,
            rgba(255, 255, 255, 0) 80%),
        #F7F7F9;
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.admin-sidebar-heading {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.admin-sidebar-section {
    margin-bottom: 0.5rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    /* Darker than --text-secondary for WCAG AA on the orange-tinted sidebar bg */
    color: #1f2937; /* gray-800 */
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition-fast), background var(--transition-fast);
    border-radius: 8px;
    margin: 0 0.75rem;
}
.admin-sidebar-link:hover {
    color: #0f172a; /* slate-900 */
    background: rgba(124, 58, 237, 0.08);
}
.admin-sidebar-link.active {
    color: var(--accent-dark);
    background: rgba(124, 58, 237, 0.14);
    font-weight: 700;
}

.admin-content {
    padding: 2rem 2.5rem;
    max-width: 100%;
    overflow-x: auto;
}

.admin-page-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================================
   CUSTOMER PORTAL LAYOUT
   ============================================================ */
.customer-body {
    background: var(--bg-primary);
}

.customer-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 73px);
}

.customer-sidebar {
    /* Same soft orange/amber radial glow as .admin-sidebar — reproduces
       the desktop bots' Welcome screen background. */
    background:
        radial-gradient(circle at 95% 5%,
            rgba(124, 58, 237, 0.24) 0%,
            rgba(251, 146, 60, 0.10) 35%,
            rgba(255, 255, 255, 0) 85%),
        radial-gradient(circle at 5% 95%,
            rgba(167, 139, 250, 0.16) 0%,
            rgba(253, 186, 116, 0.07) 40%,
            rgba(255, 255, 255, 0) 80%),
        #F7F7F9;
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.customer-content {
    padding: 2rem 2.5rem;
}

/* Portal layout aliases (used in some templates) */
.portal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 73px);
}

/* ============================================================
   SHARED SIDEBAR STYLES (used by both admin and customer portals)
   The HTML uses these class names — must match.
   ============================================================ */

/* Mobile overlay — must be fixed so it doesn't break grid layout */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    z-index: 998;
}
.sidebar-overlay.active {
    display: block;
}

/* Sidebar header (logo area) */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.sidebar-brand:hover { color: var(--text-primary); }

.sidebar-brand-icon { flex-shrink: 0; }

.sidebar-brand-text {
    color: var(--text-primary);
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
}
.sidebar-toggle:hover {
    background: rgba(17, 24, 39, 0.05);
    color: var(--text-primary);
}

/* Sidebar nav menu */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin: 2px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.9rem;
    /* Darker than --text-secondary so the link reads cleanly on the light
       orange radial-gradient sidebar background (WCAG AA on #f7e2cf ≈ 4.5:1). */
    color: #1f2937; /* gray-800 */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.sidebar-link:hover {
    color: #0f172a; /* slate-900 */
    background: rgba(124, 58, 237, 0.08);
}
.sidebar-link.active {
    color: var(--accent-dark);
    background: rgba(124, 58, 237, 0.14);
    font-weight: 700;
}
.sidebar-link.active::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
    margin-right: -2px;
    margin-left: -10px;
}

.sidebar-icon {
    flex-shrink: 0;
    color: currentColor;
}

.sidebar-link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link.sidebar-sublink {
    padding-left: 2.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151; /* gray-700 — slightly lighter than the top-level link */
}
.sidebar-link.sidebar-sublink .sidebar-icon {
    opacity: 0.9;
}

/* Collapsible sidebar group (e.g. License Server) */
.sidebar-menu.group-license-closed .sidebar-group-child { display: none; }
.sidebar-group .sidebar-chevron { transform: rotate(-90deg); transition: transform .2s; }
.sidebar-menu:not(.group-license-closed) .sidebar-group .sidebar-chevron { transform: rotate(0deg); }

/* Per-group collapsible behaviour (Hosting / Billing / Domains in admin sidebar).
   Each sublink <li> carries data-group matching its parent group's data-group.
   JS toggles the .open class on the .sidebar-group <li>; CSS below hides any
   sublink whose data-group does NOT match an open group. */
.sidebar-menu .sidebar-group-child[data-group] { display: none; }
.sidebar-menu .sidebar-group.open[data-group="hosting"] ~ .sidebar-group-child[data-group="hosting"],
.sidebar-menu .sidebar-group.open[data-group="billing"] ~ .sidebar-group-child[data-group="billing"],
.sidebar-menu .sidebar-group.open[data-group="domains"] ~ .sidebar-group-child[data-group="domains"] { display: list-item; }
.sidebar-group .sidebar-group-toggle .sidebar-chevron { transform: rotate(-90deg); transition: transform .2s; }
.sidebar-group.open .sidebar-group-toggle .sidebar-chevron { transform: rotate(0deg); }

/* Badge (e.g. open ticket count) */
.sidebar-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    flex-shrink: 0;
}

/* Divider between sections */
.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 1rem;
    list-style: none;
}

/* Sidebar footer (Back to Site link area) */
.sidebar-footer {
    margin-top: auto;
    padding: 1rem 12px 0.5rem;
    border-top: 1px solid var(--border);
}
.sidebar-footer .sidebar-link {
    color: #374151; /* gray-700 — readable on the orange gradient */
    font-weight: 600;
}

/* Force admin/customer sidebars to flex column so footer sticks to bottom */
.admin-sidebar,
.customer-sidebar {
    display: flex;
    flex-direction: column;
}

/* Shared content header used by dashboard pages */
.content-header {
    margin-bottom: 2rem;
}
.content-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
}
.content-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Stat cards row used by dashboards */
.stat-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 18px;
    margin-bottom: 2rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
    transition: all 0.2s;
}
.stat-card:hover {
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.1);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-card-icon-blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.stat-card-icon-green { background: rgba(16, 185, 129, 0.1); color: #059669; }
.stat-card-icon-orange { background: rgba(124, 58, 237, 0.1); color: #6d28d9; }
.stat-card-icon-purple { background: rgba(168, 85, 247, 0.1); color: #9333ea; }
.stat-card-icon-yellow { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.stat-card-icon-red { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

.stat-card-body { flex: 1; min-width: 0; }
.stat-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.4rem;
}
.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}
.stat-card-change {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-tertiary);
    margin: 0;
}
.stat-card-change-up { color: #059669; }
.stat-card-change-down { color: #dc2626; }
.stat-card-change span { font-weight: 700; }

/* Compact variant — forces a fixed number of columns so many small cards fit in one row */
.stat-cards-row--compact {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.stat-cards-row--compact .stat-card {
    padding: 1rem 0.9rem;
    gap: 0.6rem;
    border-radius: 12px;
}
.stat-cards-row--compact .stat-card-label {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    margin: 0 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-cards-row--compact .stat-card-value {
    font-size: 1.4rem;
    margin: 0;
}
@media (max-width: 1280px) {
    .stat-cards-row--compact {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    .stat-cards-row--compact .stat-card {
        padding: 0.85rem 0.7rem;
    }
    .stat-cards-row--compact .stat-card-label {
        font-size: 0.62rem;
    }
    .stat-cards-row--compact .stat-card-value {
        font-size: 1.25rem;
    }
}
@media (max-width: 1024px) {
    .stat-cards-row--compact {
        grid-template-columns: repeat(3, 1fr);
    }
    .stat-cards-row--compact .stat-card-label {
        font-size: 0.72rem;
    }
    .stat-cards-row--compact .stat-card-value {
        font-size: 1.5rem;
    }
}
@media (max-width: 600px) {
    .stat-cards-row--compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile sidebar toggle button (hidden on desktop) */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    top: 84px;
    left: 12px;
    z-index: 1001;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
    cursor: pointer;
}
.sidebar-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    z-index: 998;
}
.sidebar-mobile-overlay.open { display: block; }

@media (max-width: 768px) {
    .admin-layout, .customer-layout, .portal-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .admin-content, .customer-content, .portal-content { min-width: 0; }
    .admin-sidebar, .customer-sidebar {
        position: fixed !important;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100vh !important;
        z-index: 999;
        transition: left 0.25s ease;
        box-shadow: 0 0 30px rgba(17, 24, 39, 0.15);
    }
    .admin-sidebar.open, .customer-sidebar.open {
        left: 0;
    }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-mobile-toggle { display: inline-flex; }
}

.portal-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    overflow-y: auto;
}

.portal-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast), background var(--transition-fast);
    border-radius: 8px;
    margin: 0 0.75rem;
}
.portal-sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.06);
}
.portal-sidebar-link.active {
    color: var(--accent-dark);
    background: rgba(124, 58, 237, 0.12);
    font-weight: 700;
}

.portal-content {
    padding: 2rem 2.5rem;
}

/* ============================================================
   DASHBOARD STAT CARDS
   ============================================================ */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-stat-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.dashboard-stat-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.dashboard-stat-card h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.dashboard-stat-card .stat-value {
    font-size: 2rem;
}

/* Stat Card with gradient icon */
.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-card-icon-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.stat-card-icon-blue {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
    color: var(--accent-light);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.stat-card-icon-purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.05));
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.stat-card-icon-orange {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.05));
    color: var(--warning);
    border: 1px solid rgba(234, 179, 8, 0.15);
}

/* ============================================================
   DATA TABLES (Admin / Portal)
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f9fafb;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(124, 58, 237, 0.02);
}

.data-table tbody tr:hover td {
    background: rgba(124, 58, 237, 0.06);
}

.data-table a {
    color: var(--accent-light);
    font-weight: 500;
}
.data-table a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Global rule: any table column flagged with .col-actions centers its header
   label AND its cell content. Works on both the primary admin .data-table
   class and the security panel's .sec-table. Add class="col-actions" to the
   <th>Actions</th> and to the action <td> and the whole column snaps to
   center alignment — overrides text-align:left from the base .data-table th/td
   and any stray inline style="text-align:right" on older pages. */
.data-table th.col-actions,
.data-table td.col-actions,
.sec-table th.col-actions,
.sec-table td.col-actions,
table th.col-actions,
table td.col-actions {
    text-align: center !important;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.75em;
    border-radius: 100px;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.badge-sm {
    font-size: 0.68rem;
    padding: 0.2em 0.6em;
}

.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.12);
    color: var(--warning);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-purple {
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-default {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-tertiary);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Status-specific badges */
.badge-status {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.badge-status-open {
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-status-pending {
    background: rgba(234, 179, 8, 0.12);
    color: var(--warning);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-status-in_progress,
.badge-status-in-progress {
    background: rgba(6, 182, 212, 0.12);
    color: var(--info);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-status-resolved {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-status-closed {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-tertiary);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Priority badges */
.badge-priority {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

.badge-priority-low {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-priority-medium {
    background: rgba(234, 179, 8, 0.12);
    color: var(--warning);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-priority-high {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-priority-urgent,
.badge-priority-critical {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* ============================================================
   TICKET SYSTEM
   ============================================================ */
.ticket-list {
    margin-top: 1rem;
}

.ticket-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--input-radius);
    margin-bottom: 0.75rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.ticket-item:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.06);
    background: rgba(17, 24, 39, 0.7);
}

.ticket-id {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ticket-subject { font-weight: 600; }
.ticket-subject a { color: var(--text-primary); }
.ticket-subject a:hover { color: var(--accent-light); }

.ticket-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25em 0.75em;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ticket-status-open {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-light);
}
.ticket-status-pending {
    background: rgba(234, 179, 8, 0.1);
    color: var(--warning);
}
.ticket-status-closed {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-tertiary);
}
.ticket-status-resolved {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.ticket-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Ticket Detail */
.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ticket-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Ticket Thread */
.ticket-thread {
    margin-bottom: 2rem;
}

.ticket-thread-customer {
    max-width: 100%;
}

.message {
    padding: 1.25rem 1.5rem;
    border-radius: var(--card-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    background: rgba(17, 24, 39, 0.4);
    transition: box-shadow var(--transition-fast);
}

.message-admin {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
}

.message-customer {
    background: #ffffff;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.message-sender-info {
    display: flex;
    flex-direction: column;
}

.message-sender-name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.message-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.message-body {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.75;
}

.message-body p {
    margin-bottom: 0.5rem;
}
.message-body p:last-child {
    margin-bottom: 0;
}

/* Status Timeline */
.status-timeline {
    padding: 1rem 0;
}

.status-timeline-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.status-timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 1.5rem;
    bottom: -0.5rem;
    width: 2px;
    background: var(--border);
}

.status-timeline-item:last-child::before {
    display: none;
}

.status-timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent);
}

.status-timeline-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-timeline-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================
   LICENSE CARDS
   ============================================================ */
.license-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1.5rem;
}

.license-card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.license-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.1);
}

.license-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.license-card-tool {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.license-card-tool-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.license-card-tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.1));
    color: var(--accent-light);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.license-card-tool-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.license-card-body {
    padding: 1.5rem;
}

.license-key-display {
    margin-bottom: 1rem;
}

.license-key {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    color: var(--accent-light);
    word-break: break-all;
    user-select: all;
}

.license-key-masked {
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.license-key-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.license-key-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.license-key-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.license-key-row .license-key {
    flex: 1;
    margin: 0;
}

.license-key-actions {
    display: flex;
    gap: 0.25rem;
    margin-top: 0;
}

.license-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
}

.license-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.license-detail-label,
.license-card-detail-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.license-detail-value,
.license-card-detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.license-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.license-instructions-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
    color: var(--text-secondary);
    font-weight: 600;
}

.license-instructions-toggle svg:last-child {
    margin-left: auto;
    transition: transform var(--transition-base);
}

.license-instructions-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
    padding: 0;
}

.license-instructions-content.open {
    max-height: 500px;
    padding-top: 1rem;
}

.license-instructions-steps {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.license-instructions-steps li {
    margin-bottom: 0.35rem;
}

.license-instructions-steps a {
    color: var(--accent);
    text-decoration: none;
}
.license-instructions-steps a:hover { text-decoration: underline; }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon-wrapper {
    margin-bottom: 1.5rem;
}

.empty-state-icon {
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.empty-state-text {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.empty-state-sm {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.modal-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
    background: none;
    border: none;
}
.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pagination a:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--text-primary);
    border-color: var(--border);
}

.pagination .active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.pagination .disabled {
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.5;
}

/* ============================================================
   FOOTER - 4 Column with Gradient Top Border
   ============================================================ */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 4.5rem 0 1.5rem;
    position: relative;
    /* No margin-top: CTAs and other sections above the footer should sit
       flush against it. A blank white strip between a dark CTA and the
       dark footer looks broken; sections that want breathing room should
       add their own bottom padding. */
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

/* Main grid: brand column on the left, 4 link columns on the right */
.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 2.7fr;
    gap: 4rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-col { max-width: 340px; }
.footer-brand-col .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-brand-col .footer-logo .logo-icon { flex: 0 0 auto; }
.footer-brand-col .footer-logo .logo-text-accent { color: var(--accent-light, #a78bfa); }

.footer-tagline {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.footer-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}
.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
}
.footer-trust-badge .footer-trust-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.footer-trust-badge svg { color: var(--accent-light, #a78bfa); }

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-heading {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

/* Bottom bar */
.footer-bottom { padding-top: 1.5rem; }
.footer-bottom-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}
.footer-copyright {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.1rem;
    justify-content: center;
}
.footer-legal a {
    color: #94a3b8;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-legal a:hover { color: #fff; }

/* Socials */
.footer-social {
    display: flex;
    gap: 0.6rem;
}
.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    color: #cbd5e1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: color .15s, background .15s, transform .15s, border-color .15s;
}
.footer-social .social-link:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Payment strip — now on dark, single row, subtle */
.footer-payments {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.footer-payments img {
    height: 18px;
    width: auto;
    max-width: 38px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
    opacity: 0.95;
    transition: opacity .15s, transform .15s;
}
.footer-payments img:hover { opacity: 1; transform: translateY(-1px); }

/* Legacy .social-link styles used elsewhere (e.g. on light sections).
   The footer-scoped .footer-social .social-link rules above override these. */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--text-tertiary);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.social-link:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-up {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.1); }
    50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.25); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stagger children animations */
.product-grid .animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.product-grid .animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.product-grid .animate-fade-in:nth-child(3) { animation-delay: 0.3s; }
.product-grid .animate-fade-in:nth-child(4) { animation-delay: 0.4s; }

.stats-grid .animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .animate-fade-in:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .animate-fade-in:nth-child(4) { animation-delay: 0.4s; }

.steps-grid .animate-slide-up:nth-child(1) { animation-delay: 0.1s; }
.steps-grid .animate-slide-up:nth-child(3) { animation-delay: 0.3s; }
.steps-grid .animate-slide-up:nth-child(5) { animation-delay: 0.5s; }

.pricing-grid .animate-fade-in:nth-child(1) { animation-delay: 0.1s; }
.pricing-grid .animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.pricing-grid .animate-fade-in:nth-child(3) { animation-delay: 0.3s; }

.features-grid .animate-fade-in:nth-child(1) { animation-delay: 0.05s; }
.features-grid .animate-fade-in:nth-child(2) { animation-delay: 0.1s; }
.features-grid .animate-fade-in:nth-child(3) { animation-delay: 0.15s; }
.features-grid .animate-fade-in:nth-child(4) { animation-delay: 0.2s; }
.features-grid .animate-fade-in:nth-child(5) { animation-delay: 0.25s; }
.features-grid .animate-fade-in:nth-child(6) { animation-delay: 0.3s; }

.dashboard-stats .animate-fade-in:nth-child(1) { animation-delay: 0.05s; }
.dashboard-stats .animate-fade-in:nth-child(2) { animation-delay: 0.1s; }
.dashboard-stats .animate-fade-in:nth-child(3) { animation-delay: 0.15s; }
.dashboard-stats .animate-fade-in:nth-child(4) { animation-delay: 0.2s; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent-light); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }

.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-100 { width: 100%; }
.rounded { border-radius: var(--card-radius); }
.border { border: 1px solid var(--border); }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Card utility */
.card {
    background: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--card-radius);
    padding: 1.5rem;
}

.card-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================================
   RESPONSIVE - 1280px (Large Desktop)
   ============================================================ */
@media (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }

    .hero-content {
        gap: 3rem;
    }

    .admin-content,
    .portal-content,
    .customer-content {
        padding: 2rem;
    }
}

/* ============================================================
   RESPONSIVE - 1024px (Tablet Landscape)
   ============================================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .pricing-card-popular {
        transform: none;
    }
    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        position: static;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        max-height: none;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .customer-layout,
    .portal-layout {
        grid-template-columns: 1fr;
    }

    .customer-sidebar,
    .portal-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-brand-col { max-width: none; }
}

/* ============================================================
   RESPONSIVE - 768px (Tablet Portrait / Mobile)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem;
        --card-radius: 12px;
    }

    .main-nav { display: none; }
    .header-actions { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }

    .hero {
        padding: 3.5rem 0;
    }

    .hero-visual { display: none; }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem 1.5rem;
    }

    .footer-bottom-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
        justify-items: center;
    }

    .footer-legal { justify-content: center; }

    .footer-payments {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .ticket-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ticket-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.75rem;
    }

    .cta-banner {
        padding: 2.5rem 1.5rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .admin-content,
    .portal-content,
    .customer-content {
        padding: 1.25rem;
    }

    .license-cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-dialog {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .message {
        padding: 1rem;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================================
   RESPONSIVE - 480px (Small Mobile)
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem;
    }

    body {
        font-size: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .license-card-details {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 2rem 1.25rem;
    }

    .pricing-amount {
        font-size: 2.75rem;
    }

    .cta-banner {
        padding: 2rem 1.25rem;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .container {
        padding: 0 1rem;
    }

    .message-sender {
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .site-header,
    .site-footer,
    .accent-bar,
    .hamburger,
    .mobile-menu,
    .admin-sidebar,
    .customer-sidebar,
    .portal-sidebar,
    .docs-sidebar,
    .cta-section,
    .cta-banner,
    .hero-bg,
    .btn,
    .pagination,
    .modal,
    .flash {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .admin-layout,
    .customer-layout,
    .portal-layout,
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .admin-content,
    .customer-content,
    .portal-content,
    .docs-content {
        padding: 0;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
    }

    .data-table,
    .comparison-table,
    .docs-table,
    .specs-table {
        border: 1px solid #ccc;
    }

    .data-table th,
    .data-table td,
    .comparison-table th,
    .comparison-table td {
        border: 1px solid #ccc;
        padding: 0.5rem;
    }

    .badge {
        border: 1px solid #666;
    }

    .gradient-text,
    .hero-title {
        -webkit-text-fill-color: #000 !important;
        background: none !important;
    }

    .product-card,
    .pricing-card,
    .tech-card,
    .feature-card,
    .auth-card,
    .contact-info-card,
    .license-card,
    .dashboard-stat-card {
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    .hero {
        padding: 1rem 0;
    }

    .section {
        padding: 1.5rem 0;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 2cm;
    }
}

/* ============================================================
   CUSTOMER PORTAL - Dashboard, Tickets, Cards
   ============================================================ */

.content-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Subscription card on dashboard */
.portal-subscription-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
    margin-bottom: 1.75rem;
}
.portal-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.portal-subscription-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.portal-subscription-plan {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}
.portal-subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.portal-subscription-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.portal-detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}
.portal-detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.portal-subscription-empty {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.portal-subscription-empty p { margin: 0; }

/* Portal grid (dashboard 2-column) */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    gap: 1.5rem;
}
.portal-grid > * { min-width: 0; }

/* Generic dashboard card */
.dashboard-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
}
.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.dashboard-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

/* License list inside dashboard card */
.portal-licenses-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.portal-license-item {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafafa;
}
.portal-license-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.portal-license-tool {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.portal-license-key-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.portal-license-key-row .license-key {
    flex: 1;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.78rem;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quick links */
.portal-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.portal-quick-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.18s;
}
.portal-quick-link:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: #faf5ff;
    transform: translateX(2px);
}
.portal-quick-link-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #4c1d95;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.portal-quick-link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.portal-quick-link-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.portal-quick-link-text small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.portal-quick-link-arrow {
    color: var(--text-secondary);
    flex-shrink: 0;
}
.portal-quick-link:hover .portal-quick-link-arrow {
    color: #6d28d9;
}

/* Filter bar (tickets) */
.filter-bar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}
.filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.filter-group {
    flex: 0 0 auto;
}
.filter-group .form-control,
.filter-form select.form-control {
    min-width: 180px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Table container */
.table-container {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
}
.table-container .data-table {
    margin: 0;
    width: 100%;
    border: none;
    border-radius: 0;
}

/* Clickable rows */
.table-row-clickable { cursor: pointer; }
.table-row-clickable:hover td { background: #faf5ff; }
.table-cell-id {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.table-link-strong {
    color: var(--text-primary) !important;
    font-weight: 600;
    text-decoration: none;
}
.table-link-strong:hover { color: #6d28d9 !important; }
.table-cell-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Empty state inside table */
.table-empty {
    text-align: center;
    padding: 3.5rem 1rem !important;
    background: #fff;
}
.table-empty .empty-state-sm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-secondary);
}
.table-empty .empty-state-icon {
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}
.table-empty p {
    margin: 0;
    font-size: 0.95rem;
}
/* Override .data-table a color for buttons inside empty state */
.data-table .table-empty a.btn-primary,
.table-empty a.btn-primary {
    color: #fff !important;
}
.data-table .table-empty a.btn-ghost,
.table-empty a.btn-ghost {
    color: var(--text-primary) !important;
}

/* Empty-state-sm tweak inside dashboard cards */
.dashboard-card .empty-state-sm {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}
.dashboard-card .empty-state-sm p {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
}

/* ============================================================
   ADMIN DASHBOARD — GRID, ACTIVITY FEED, QUICK ACTIONS
   ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.dashboard-card-wide { grid-column: auto; }

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Activity feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: background var(--transition-base);
}
.activity-item:hover { background: #fff; }

.activity-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.activity-icon-user      { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.activity-icon-payment   { background: linear-gradient(135deg, #10b981, #34d399); }
.activity-icon-ticket    { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.activity-icon-license   { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.activity-body {
    flex: 1;
    min-width: 0;
}
.activity-text {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}
.activity-text strong { color: var(--text-primary); }
.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Quick actions row — sits at the bottom of the dashboard */
.quick-actions {
    margin-top: 0.5rem;
}
.quick-actions .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
}
.quick-action-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.quick-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}
.quick-action-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(251, 146, 60, 0.12));
    color: var(--accent);
    border: 1px solid rgba(124, 58, 237, 0.18);
}
.quick-action-label {
    flex: 1;
    color: var(--text-primary);
}

@media (max-width: 960px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .chart-container { height: 260px; }
}

/* Responsive */
@media (max-width: 768px) {
    .portal-grid { grid-template-columns: 1fr; }
    .portal-subscription-header { flex-direction: column; align-items: flex-start; }
    .content-header-row { flex-direction: column; align-items: stretch; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-form .form-control,
    .filter-form .btn { width: 100%; }
}

/* ============================================================
   FORMS - Card, Inputs, Breadcrumbs (customer portal)
   ============================================================ */

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.05);
    max-width: 880px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 140px;
}
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.4rem;
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.form-required {
    color: #ef4444;
    margin-left: 0.15rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form-group-half { width: 100%; }

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.breadcrumb-link {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb-link:hover { text-decoration: underline; }
.breadcrumb-separator { color: #cbd5e1; }
.breadcrumb-current { color: var(--text-secondary); }

/* Alert list */
.alert-list {
    margin: 0;
    padding-left: 1.25rem;
}
.alert-list li { margin: 0.15rem 0; }

@media (max-width: 700px) {
    .form-card { padding: 1.5rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .form-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   ADMIN TABLES — User cell, action buttons, search, status pills
   ============================================================ */

/* User cell with avatar */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #4c1d95;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Inline action buttons in tables */
.table-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
}
.inline-form {
    display: inline-flex;
    margin: 0;
}
.form-control-xs {
    padding: 0.3rem 0.55rem;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text-primary);
    min-width: 90px;
}

/* Search input with icon */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrapper .search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}
.search-input-wrapper .search-input {
    padding-left: 2.4rem;
    min-width: 260px;
}

/* Status pills row (admin tickets) */
.ticket-status-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.status-pill {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}
.status-pill-count {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.status-pill-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* License key cell */
.license-key-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 320px;
}
.license-key-cell .license-key {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.78rem;
    background: #f9fafb;
    border: 1px solid var(--border);
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* table-link generic */
.table-link {
    color: #6d28d9;
    font-weight: 600;
    text-decoration: none;
}
.table-link:hover { text-decoration: underline; }

/* Override .data-table a inside admin tables */
.data-table .table-link,
.data-table .table-link-strong {
    color: var(--text-primary);
}
.data-table a.table-link { color: #6d28d9; }
.data-table a.table-link:hover { color: #4c1d95; text-decoration: underline; }

/* ============================================================
   TOOL COMPARISON TABLE  (home + pricing)
   ============================================================ */

/* ============================================================
   PROMO BANNER (sitewide announcement bar)
   ============================================================ */
.promo-banner {
    background: linear-gradient(90deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 16px;
    box-shadow: 0 2px 12px rgba(109, 40, 217, 0.25);
    position: relative;
    z-index: 101;
}
.promo-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
}
.promo-banner-icon { display: inline-flex; opacity: 0.95; }
.promo-banner-text { letter-spacing: 0.01em; }
.promo-banner-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px dashed rgba(255, 255, 255, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.promo-banner-code:hover { background: rgba(255, 255, 255, 0.28); }
.promo-banner-code.copied {
    background: #ffffff;
    color: #6d28d9;
    transform: scale(1.02);
}
.promo-banner-cta {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}
.promo-banner-cta:hover { text-decoration: none; }
@media (max-width: 640px) {
    .promo-banner { font-size: 0.82rem; padding: 8px 12px; }
    .promo-banner-inner { gap: 8px; }
}

/* ============================================================
   CHECKOUT COUPON ROW
   ============================================================ */
.coupon-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}
.coupon-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}
.coupon-input-group {
    display: flex;
    gap: 8px;
}
.coupon-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #ffffff;
    color: var(--text-primary);
}
.coupon-input-group input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.coupon-input-group button {
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
}
.coupon-input-group button:hover {
    border-color: #7c3aed;
    color: #6d28d9;
}
.coupon-feedback {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}
.coupon-feedback.success { display: block; color: #059669; }
.coupon-feedback.error { display: block; color: #dc2626; }
.checkout-summary-row.discount-row .value { color: #059669; }

/* Product-detail hero 2-column layout collapse */
@media (max-width: 900px) {
    .product-hero-content { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .product-hero-aside { max-width: 640px; }
}

/* Product-detail "Why It Won't Get You Caught" 4-column grid */
@media (max-width: 1100px) {
    .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
    .safety-grid { grid-template-columns: 1fr !important; }
}

/* ===================== TOOL COMPARISON TABLE (modernized, vertical group rail) ===================== */
.tool-comparison-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 60%, #faf5ff 100%);
}

.tool-comparison-section .section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

/* Swipe hint shown only on narrow viewports */
.comparison-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6d28d9;
    background: #faf5ff;
    border: 1px solid #ddd6fe;
    border-radius: 100px;
    padding: 0.4rem 0.85rem;
    margin: 0 auto 1rem;
    width: fit-content;
    animation: scroll-hint-pulse 2.4s ease-in-out infinite;
}
.comparison-scroll-hint svg { flex-shrink: 0; }
@keyframes scroll-hint-pulse {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

.comparison-table-wrapper {
    background: #ffffff;
    border: 1px solid #ddd6fe;
    border-radius: 20px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 20px 50px -12px rgba(17, 24, 39, 0.08),
                0 6px 20px -8px rgba(124, 58, 237, 0.06);
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd6fe #ffffff;
}
.comparison-table-wrapper::-webkit-scrollbar { height: 10px; }
.comparison-table-wrapper::-webkit-scrollbar-track { background: #fafafa; border-radius: 0 0 20px 20px; }
.comparison-table-wrapper::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 10px; }
.comparison-table-wrapper::-webkit-scrollbar-thumb:hover { background: #c4b5fd; }

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
    font-size: 0.92rem;
    color: #4b5563;
}

/* ----- Vertical group-label rail (leftmost column) ----- */
.comparison-group-col { width: 46px; padding: 0 !important; background: #ffffff !important; border-bottom: none !important; }
.comparison-table tbody td.comparison-group-label {
    width: 46px;
    min-width: 46px;
    padding: 0 !important;
    background: linear-gradient(180deg, #faf5ff 0%, #ede9fe 100%) !important;
    border-right: 2px solid #ddd6fe;
    border-bottom: 1px solid #ddd6fe;
    position: relative;
    vertical-align: middle;
    text-align: center;
}
.comparison-group-text {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #4c1d95;
    white-space: nowrap;
    padding: 1rem 0;
    line-height: 1;
}
/* Bracket-like accent on the right edge of each group cell */
.comparison-table tbody td.comparison-group-label::before,
.comparison-table tbody td.comparison-group-label::after {
    content: "";
    position: absolute;
    right: -2px;
    width: 10px;
    height: 12px;
    border-color: #6d28d9;
    border-style: solid;
    border-width: 0;
}
.comparison-table tbody td.comparison-group-label::before {
    top: 10px;
    border-top-width: 2px;
    border-right-width: 2px;
    border-top-right-radius: 4px;
}
.comparison-table tbody td.comparison-group-label::after {
    bottom: 10px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-bottom-right-radius: 4px;
}

/* First row in each group gets a stronger top divider */
.comparison-table tbody tr.comparison-group-first td {
    border-top: 2px solid #ddd6fe;
}
.comparison-table tbody tr.comparison-group-first:first-child td { border-top: none; }

/* ----- Header row ----- */
.comparison-table thead th {
    padding: 1.5rem 1.1rem 1.6rem;
    border-bottom: 1px solid #ddd6fe;
    text-align: center;
    vertical-align: top;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 3;
}
.comparison-table thead th.comparison-feature-col {
    background: #fafafa;
    border-right: 1px solid #ddd6fe;
    position: sticky;
    left: 46px;
    z-index: 4;
}
.comparison-feature-col-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111827;
    font-weight: 700;
    padding-top: 1rem;
}
.comparison-feature-col {
    width: 22%;
    text-align: left !important;
    vertical-align: bottom !important;
    padding-bottom: 1.4rem !important;
    padding-left: 1.5rem !important;
}

.comparison-tool-col { width: 19.5%; position: relative; }

/* Popular column — elevated, orange border, ribbon */
.comparison-table thead th.comparison-tool-col--popular {
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    border-top: 3px solid #6d28d9;
    border-left: 1px solid #ddd6fe;
    border-right: 1px solid #ddd6fe;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 16px -4px rgba(109, 40, 217, 0.12);
}

/* Highlight the entire "Most Popular" column.
   With rowspan group cells, the popular column's td index shifts:
   - First row of each group has 6 tds: group(1) + feature(2) + 4 tools(3–6) → popular = 3
   - Subsequent rows have 5 tds: feature(1) + 4 tools(2–5)              → popular = 2 */
.comparison-table tbody tr.comparison-group-first:not(.comparison-cta-row) td:nth-child(3),
.comparison-table tbody tr:not(.comparison-group-first):not(.comparison-cta-row) td:nth-child(2) {
    background: rgba(255, 247, 237, 0.45);
    border-left: 1px solid #ddd6fe;
    border-right: 1px solid #ddd6fe;
}
.comparison-table tbody tr.comparison-group-first:hover td:nth-child(3),
.comparison-table tbody tr:not(.comparison-group-first):not(.comparison-cta-row):hover td:nth-child(2) {
    background: #ede9fe;
}

.comparison-tool-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    position: relative;
}
.comparison-popular-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3);
    position: absolute;
    top: -2.6rem;
    white-space: nowrap;
}
.comparison-tool-label {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    max-width: 170px;
    letter-spacing: -0.01em;
}
/* Header tag pills + price blocks removed — pricing now lives in the CTA row as plain text */

/* ----- Body rows ----- */
.comparison-table tbody tr { transition: background 160ms ease; }
.comparison-table tbody td {
    padding: 1rem 1.1rem;
    text-align: center;
    vertical-align: middle;
    line-height: 1.45;
    color: #4b5563;
    border-bottom: 1px solid #ddd6fe;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-table tbody td.comparison-feature {
    background: #fafafa !important;
    text-align: left !important;
    font-weight: 600;
    color: #111827 !important;
    font-size: 0.9rem;
    border-right: 1px solid #ddd6fe;
    position: sticky;
    left: 46px;
    z-index: 1;
    padding-left: 1.25rem !important;
}

/* Full-row hover highlight (except CTA) */
.comparison-table tbody tr:not(.comparison-cta-row):hover td:not(.comparison-group-label) {
    background: #faf5ff;
}
.comparison-table tbody tr:not(.comparison-cta-row):hover td.comparison-feature {
    background: #ede9fe !important;
}

/* ----- Icons ----- */
.comparison-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 700;
    transition: transform 160ms ease;
}
.comparison-check {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}
.comparison-table tbody tr:hover .comparison-check { transform: scale(1.08); }
.comparison-dash {
    background: #f3f4f6;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
}

/* ----- Value pills ----- */
.comparison-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.comparison-pill small {
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 0.15rem;
}
.comparison-pill--muted {
    background: #fafafa;
    color: #6b7280;
    border-style: dashed;
}
.comparison-pill--accent {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    color: #4c1d95;
    border-color: #ddd6fe;
    font-weight: 700;
}
.comparison-pill--success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
    font-weight: 700;
}

/* ----- CTA row ----- */
.comparison-cta-row td {
    padding: 1.5rem 1rem !important;
    background: #fafafa !important;
    border-top: 2px solid #ddd6fe;
    border-bottom: none;
}
.comparison-cta-row td:first-child {
    background: #ffffff !important;
    border-top: none;
}
.comparison-cta-row:hover td { background: #fafafa !important; }
.comparison-cta-row td:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.8) 0%, #fafafa 100%) !important;
}
.comparison-cta-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}
.comparison-cta-row .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}
.comparison-cta-row .btn-block:hover { transform: translateY(-1px); }
.comparison-cta-row .comparison-cta span {
    transition: transform 180ms ease;
    display: inline-block;
}
.comparison-cta-row .comparison-cta:hover span { transform: translateX(3px); }

/* All non-popular Get Started buttons: theme accent orange border + text */
.comparison-cta-row .comparison-cta.btn-outline {
    background: #ffffff;
    border: 1.5px solid #6d28d9;
    color: #6d28d9;
    font-weight: 700;
}
.comparison-cta-row .comparison-cta.btn-outline:hover {
    background: #faf5ff;
    border-color: #4c1d95;
    color: #4c1d95;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
}

/* Plain-text price beneath each Get Started button (no button/pill shape) */
.comparison-cta-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.comparison-cta-price-from {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}
.comparison-cta-price-amount {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}
.comparison-cta-price-per {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 600;
}
.comparison-cta-row td:nth-child(3) .comparison-cta-price-amount {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .comparison-table { font-size: 0.85rem; }
    .comparison-table thead th,
    .comparison-table tbody td { padding: 0.85rem 0.75rem; }
    .comparison-tool-label { font-size: 0.9rem; }
    .comparison-cta-price-amount { font-size: 0.95rem; }
    .comparison-popular-ribbon { top: -2.2rem; font-size: 0.58rem; padding: 0.25rem 0.6rem; }
    .comparison-group-col,
    .comparison-table tbody td.comparison-group-label { width: 40px; min-width: 40px; }
    .comparison-table thead th.comparison-feature-col { left: 40px; }
    .comparison-table tbody td.comparison-feature { left: 40px; }
    .comparison-group-text { font-size: 0.6rem; letter-spacing: 0.12em; }
}

@media (max-width: 900px) {
    .comparison-scroll-hint { display: inline-flex; }
    .comparison-table-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 100%);
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .comparison-table {
        min-width: 820px;
        font-size: 0.82rem;
    }
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.8rem 0.6rem !important;
    }
    .comparison-table thead th.comparison-feature-col,
    .comparison-table tbody td.comparison-feature {
        padding-left: 1rem !important;
    }
}

@media (max-width: 768px) {
    .tool-comparison-section { padding: 3rem 0; }
    .comparison-table-wrapper {
        border-radius: 14px;
        margin: 0 -0.5rem;
    }
    .comparison-table thead th.comparison-tool-col--popular { border-radius: 14px 14px 0 0; }
    .comparison-popular-ribbon { top: -2rem; }
    .comparison-group-col,
    .comparison-table tbody td.comparison-group-label { width: 34px; min-width: 34px; }
    .comparison-table thead th.comparison-feature-col { left: 34px; }
    .comparison-table tbody td.comparison-feature { left: 34px; }
    .comparison-group-text { font-size: 0.55rem; padding: 0.6rem 0; }
}

/* Global cap: no heading should ever exceed font-weight 600 */
h1, h2, h3, h4, h5, h6,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 * { font-weight: 600 !important; }

/* Admin + Customer Portal: logo pinned to the extreme left of the viewport
   (header container goes full-width, nav items keep their relative layout) */
body.admin-body .site-header .header-inner,
body.customer-body .site-header .header-inner,
body.portal-body .site-header .header-inner {
    max-width: none;
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.5rem;
}
body.admin-body .site-header .logo,
body.customer-body .site-header .logo,
body.portal-body .site-header .logo {
    margin-right: auto;
}

/* Cap: FAQ questions and mega-menu / dropdown sub items never exceed 600 */
.faq-question, .faq-question *,
.mega-menu, .mega-menu *,
.dropdown-menu, .dropdown-menu *,
.mobile-nav-group-label { font-weight: 600 !important; }
.faq-question strong, .mega-item strong, .dropdown-item strong { font-weight: 500 !important; }

