/* =============================================================================
   Ho Store — Public theme (Obsidian Edition)
   -----------------------------------------------------------------------------
   Refined, formal, luxurious dark theme for the homepage and the customer
   portal pages. Pure obsidian background with a subtle dot grid, hairline
   borders, generous whitespace, and emerald used as a single restrained
   accent — never as a backdrop.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* -----------------------------------------------------------------------------
   1. Page shell — used by every public page (Home + portal)
   -------------------------------------------------------------------------- */
body.ho-public {
    /* Token overrides for the public theme (deeper, more formal than dashboard) */
    --pub-bg:           #050608;
    --pub-bg-soft:      #0a0c12;
    --pub-surface:      rgba(255, 255, 255, 0.018);
    --pub-surface-2:    rgba(255, 255, 255, 0.030);
    --pub-hairline:     rgba(255, 255, 255, 0.060);
    --pub-hairline-2:   rgba(255, 255, 255, 0.090);
    --pub-hairline-3:   rgba(255, 255, 255, 0.140);
    --pub-text:         #f4f5f7;
    --pub-text-soft:    #b3b7c0;
    --pub-text-muted:   #6c7180;
    --pub-text-faint:   #4a4f5c;
    --pub-accent:       #10b981;
    --pub-accent-soft:  rgba(16, 185, 129, 0.14);
    --pub-accent-line:  rgba(16, 185, 129, 0.30);

    background: var(--pub-bg);
    color: var(--pub-text);
    font-family: 'Inter', 'Tajawal', system-ui, -apple-system, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.005em;
}

/* Background — fixed dot grid + a single, distant accent halo.
   Both pseudos sit at z-index -1 so they slide behind body content WITHOUT
   forcing main/section/footer into a separate stacking context (which
   would trap modals — modal at z-index 1050 inside main:z-index 1 is still
   below the navbar at z-index 1000 in the root context). */
body.ho-public::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-color: var(--pub-bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.055) 1px, transparent 0);
    background-size: 22px 22px;
}
body.ho-public::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(900px 600px at 50% -200px, rgba(16, 185, 129, 0.06), transparent 60%),
        radial-gradient(900px 700px at 50% calc(100% + 200px), rgba(16, 185, 129, 0.04), transparent 60%);
}
/* Navbar sits in the root stacking context — explicit z-index keeps it above
   page content but below the modal backdrop (1040) when a modal is open. */
.ho-public-nav { z-index: 1000; }

.ho-container {
    width: 100%;
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}
.ho-container * { box-sizing: border-box; }
@media (max-width: 768px) { .ho-container { padding: 0 20px; } }

.ho-page-body { padding-top: 110px; padding-bottom: 80px; }
.ho-page-body.tight { padding-top: 96px; }

/* -----------------------------------------------------------------------------
   2. Public navbar
   -------------------------------------------------------------------------- */
.ho-public-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.78) 0%, rgba(5, 6, 8, 0.62) 100%);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 28px rgba(0, 0, 0, 0.28);
    transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.ho-public-nav::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.18) 50%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}
.ho-public-nav.is-scrolled {
    background: linear-gradient(180deg, rgba(5, 6, 8, 0.92) 0%, rgba(5, 6, 8, 0.85) 100%);
    border-bottom-color: var(--pub-hairline-2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 36px rgba(0, 0, 0, 0.45);
}
.ho-nav-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}
@media (max-width: 768px) { .ho-nav-inner { padding: 0 20px; gap: 16px; } }

.ho-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--pub-text);
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    text-transform: uppercase;
    transition: opacity 180ms ease;
}
.ho-nav-brand:hover { opacity: 0.85; }
.ho-nav-brand img {
    height: 32px;
    width: auto;
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.18));
}
.ho-nav-brand span {
    color: var(--pub-text);
    background: linear-gradient(180deg, #ffffff 0%, #c9cdd6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ho-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    margin-left: 16px;
}
.ho-nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--pub-text-soft);
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 8px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
    white-space: nowrap;
    letter-spacing: 0.02em;
    position: relative;
}
.ho-nav-link:hover {
    color: var(--pub-text);
    background: rgba(255, 255, 255, 0.045);
}
.ho-nav-link.is-active {
    color: var(--pub-text);
    background: rgba(255, 255, 255, 0.025);
}
.ho-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 1px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--pub-accent);
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}

.ho-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }

.ho-nav-burger {
    display: none;
    background: transparent;
    border: 1px solid var(--pub-hairline-2);
    color: var(--pub-text);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 150ms ease;
}
.ho-nav-burger:hover { background: rgba(255, 255, 255, 0.04); }

@media (max-width: 900px) {
    .ho-nav-burger { display: inline-flex; order: 99; }
    .ho-public-nav .ho-nav-links {
        position: absolute;
        top: 70px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 18px 18px;
        background: rgba(5, 6, 8, 0.96);
        backdrop-filter: saturate(160%) blur(16px);
        -webkit-backdrop-filter: saturate(160%) blur(16px);
        border-bottom: 1px solid var(--pub-hairline);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }
    .ho-public-nav.is-open .ho-nav-links {
        transform: scaleY(1); opacity: 1; pointer-events: auto;
    }
    .ho-nav-link { padding: 12px 14px; border-radius: 6px; }
    .ho-nav-link.is-active::after { display: none; }
    .ho-nav-link.is-active { background: rgba(255, 255, 255, 0.035); }
}

/* -----------------------------------------------------------------------------
   3. Avatar dropdown
   -------------------------------------------------------------------------- */
.ho-avatar-wrap { position: relative; }
.ho-avatar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.030);
    border: 1px solid var(--pub-hairline-2);
    color: var(--pub-text);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
    font-family: inherit;
}
.ho-avatar-trigger:hover {
    border-color: var(--pub-hairline-3);
    background: rgba(255, 255, 255, 0.050);
}
.ho-avatar-trigger img {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ho-avatar-name {
    font-size: 13px;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ho-avatar-caret { font-size: 9px; opacity: 0.55; transition: transform 150ms ease; }
.ho-avatar-wrap.is-open .ho-avatar-caret { transform: rotate(180deg); }

.ho-avatar-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 280px;
    background-color: #0a0c12;
    background-image: linear-gradient(180deg, rgba(20, 22, 30, 0.98) 0%, rgba(10, 12, 18, 0.98) 100%);
    border: 1px solid var(--pub-hairline-2);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    padding: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 1200;
}
.ho-avatar-wrap.is-open .ho-avatar-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
[dir="rtl"] .ho-avatar-dropdown { right: auto; left: 0; }

.ho-dd-header { display: flex; gap: 12px; padding: 12px 12px 14px; }
.ho-dd-header img {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px var(--pub-hairline-2);
}
.ho-dd-meta { min-width: 0; flex: 1; }
.ho-dd-name { font-size: 13px; font-weight: 600; color: var(--pub-text); margin: 0 0 2px 0; }
.ho-dd-email { font-size: 11px; color: var(--pub-text-muted); margin: 0 0 6px 0; word-break: break-all; line-height: 1.3; }
.ho-dd-role {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--pub-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.ho-dd-divider { height: 1px; background: var(--pub-hairline); margin: 4px 6px; }

.ho-dd-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--pub-text-soft);
    font-size: 13px; font-weight: 500;
    transition: background 150ms ease, color 150ms ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}
.ho-dd-item i { width: 16px; text-align: center; opacity: 0.85; font-size: 12px; }
.ho-dd-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--pub-text); }
.ho-dd-item-accent {
    color: var(--pub-text);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px var(--pub-hairline-2);
}
.ho-dd-item-accent:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--pub-hairline-3); }
.ho-dd-item-accent .ho-dd-arrow { margin-left: auto; font-size: 10px; opacity: 0.7; }
[dir="rtl"] .ho-dd-item-accent .ho-dd-arrow { margin-left: 0; margin-right: auto; transform: rotate(180deg); }
.ho-dd-item-danger { color: #f87171; }
.ho-dd-item-danger:hover { background: rgba(244, 63, 94, 0.10); color: #fb7185; }

/* -----------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.ho-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.ho-btn:active { transform: translateY(1px); }

.ho-btn-primary {
    background: var(--pub-text);
    color: var(--pub-bg);
    font-weight: 600;
}
.ho-btn-primary:hover {
    background: #fff;
    color: var(--pub-bg);
}

.ho-btn-secondary {
    background: transparent;
    border-color: var(--pub-hairline-2);
    color: var(--pub-text);
}
.ho-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--pub-hairline-3);
    color: var(--pub-text);
}

.ho-btn-ghost {
    background: transparent;
    color: var(--pub-text-soft);
}
.ho-btn-ghost:hover { color: var(--pub-text); background: rgba(255, 255, 255, 0.03); }

.ho-btn-accent {
    background: var(--pub-accent);
    color: #021b12;
    font-weight: 600;
}
.ho-btn-accent:hover { background: #14c994; color: #021b12; }

.ho-btn-lg { padding: 14px 28px; font-size: 14px; }

.ho-btn-block { display: flex; width: 100%; justify-content: center; }

/* -----------------------------------------------------------------------------
   5. Hero (homepage)
   -------------------------------------------------------------------------- */
.ho-hero {
    position: relative;
    padding: 160px 0 110px;
    text-align: center;
}

.ho-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--pub-hairline-2);
    background: rgba(255, 255, 255, 0.020);
    color: var(--pub-text-soft);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.ho-eyebrow .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--pub-accent);
    box-shadow: 0 0 10px var(--pub-accent);
}

.ho-hero h1 {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin: 28px auto 26px;
    max-width: 880px;
    color: var(--pub-text);
}
.ho-hero h1 .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--pub-text-soft);
}
.ho-hero p.lede {
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.7;
    color: var(--pub-text-soft);
    max-width: 580px;
    margin: 0 auto 42px;
    font-weight: 400;
}
.ho-hero-ctas {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

/* -----------------------------------------------------------------------------
   6. Sections — formal, hairline-bound
   -------------------------------------------------------------------------- */
.ho-section {
    padding: 90px 0;
    border-top: 1px solid var(--pub-hairline);
}
.ho-section.tight { padding: 60px 0; }

.ho-section-head {
    max-width: 720px;
    margin: 0 0 56px 0;
}
.ho-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.ho-section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--pub-text-muted);
    margin-bottom: 14px;
}
.ho-section-head h2 {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.10;
    margin: 0 0 18px 0;
    color: var(--pub-text);
}
.ho-section-head p {
    font-size: 15px;
    color: var(--pub-text-soft);
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
}
.ho-section-head.center p { margin-left: auto; margin-right: auto; }

/* -----------------------------------------------------------------------------
   7. Pill-card grid — used by both "Why" features and "How" flow steps.
       Each card is a soft pill with a large circular icon at the top, title
       and body text centered below. Flow cards optionally render a dashed
       arrow between them via the .ho-flow-arrow connector.
   -------------------------------------------------------------------------- */
.ho-pillcard-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin-top: 60px;
}
@media (max-width: 900px) {
    .ho-pillcard-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
    .ho-flow-arrow { display: none !important; }
}

.ho-pillcard {
    position: relative !important;
    padding: 56px 28px 32px !important;
    margin-top: 36px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.030) 0%, rgba(255, 255, 255, 0.008) 100%) !important;
    border: 1px solid var(--pub-hairline) !important;
    border-radius: 14px !important;
    text-align: center !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.ho-pillcard:hover {
    border-color: var(--pub-hairline-3) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ho-pillcard-icon {
    position: absolute !important;
    top: -36px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #14181f 0%, #0a0c12 100%) !important;
    color: var(--pub-accent) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px var(--pub-hairline-3);
}
.ho-pillcard-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    pointer-events: none;
}

.ho-pillcard-num {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pub-accent);
    margin-bottom: 10px;
}

.ho-pillcard h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--pub-text) !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.01em;
}

.ho-pillcard p {
    font-size: 13.5px !important;
    color: var(--pub-text-soft) !important;
    line-height: 1.7 !important;
    margin: 0 auto !important;
    max-width: 280px !important;
}

.ho-pillcard p code {
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid var(--pub-hairline);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Decorative dashed arrow between flow steps. Only renders on >900px screens.
   Uses an inline SVG via background — single file, no external request. */
.ho-flow-arrow {
    position: relative;
    align-self: center;
    height: 28px;
    margin-top: 50px; /* aligns with pill body, not the icon */
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 92% 100%;
    opacity: 0.55;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' fill='none'><path d='M3 18 C 30 -2, 90 -2, 117 18' stroke='%23b3b7c0' stroke-width='1.4' stroke-linecap='round' stroke-dasharray='3 5'/><path d='M111 13 L117 18 L111 23' stroke='%23b3b7c0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}
[dir="rtl"] .ho-flow-arrow { transform: scaleX(-1); }

/* When a row of pillcards has flow arrows interleaved, switch to a 5-column
   grid so the cards keep their sizing and arrows fit between them. */
.ho-pillcard-grid.has-flow {
    grid-template-columns: 1fr 56px 1fr 56px 1fr !important;
    gap: 6px !important;
}
@media (max-width: 900px) {
    .ho-pillcard-grid.has-flow { grid-template-columns: 1fr !important; gap: 22px !important; }
    .ho-pillcard-grid.has-flow .ho-flow-arrow { display: none !important; }
}

/* -----------------------------------------------------------------------------
   9. CTA panel
   -------------------------------------------------------------------------- */
.ho-cta {
    position: relative;
    border: 1px solid var(--pub-hairline);
    border-radius: 4px;
    overflow: hidden;
    padding: 64px 36px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.020), rgba(255,255,255,0.005));
}
.ho-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--pub-accent-line) 50%, transparent 100%);
}
.ho-cta * { position: relative; z-index: 1; }
.ho-cta h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 14px 0;
}
.ho-cta p {
    font-size: 15px;
    color: var(--pub-text-soft);
    line-height: 1.6;
    margin: 0 auto 30px;
    max-width: 540px;
}

/* -----------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.ho-footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--pub-hairline);
    margin-top: 70px;
}
.ho-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    justify-content: space-between;
}
.ho-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pub-text);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}
.ho-footer-brand img { height: 26px; opacity: 0.95; }
.ho-footer-meta { font-size: 12px; color: var(--pub-text-muted); }
.ho-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ho-footer-links a {
    color: var(--pub-text-soft);
    text-decoration: none;
    font-size: 12.5px;
    transition: color 150ms ease;
    letter-spacing: 0.01em;
}
.ho-footer-links a:hover { color: var(--pub-text); }

/* -----------------------------------------------------------------------------
   11. Customer-portal page shell
   -------------------------------------------------------------------------- */
.ho-portal-hero {
    position: relative;
    padding: 38px 0 30px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--pub-hairline);
}
.ho-portal-hero-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.ho-portal-hero-icon {
    width: 52px; height: 52px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pub-hairline-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--pub-accent);
    flex-shrink: 0;
}
.ho-portal-hero h1 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 4px 0;
    color: var(--pub-text);
    line-height: 1.15;
}
.ho-portal-hero p {
    font-size: 13.5px;
    color: var(--pub-text-soft);
    margin: 0;
    max-width: 520px;
    line-height: 1.55;
}
.ho-portal-hero .spacer { flex: 1 1 auto; min-width: 0; }

/* Sub-navbar (the only nav inside portal pages) */
.ho-portal-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--pub-hairline);
}
.ho-portal-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pub-text-soft);
    text-decoration: none;
    transition: color 150ms ease, border-color 150ms ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    letter-spacing: 0.01em;
}
.ho-portal-tab:hover { color: var(--pub-text); }
.ho-portal-tab.is-active {
    color: var(--pub-text);
    border-bottom-color: var(--pub-accent);
}
.ho-portal-tab i { font-size: 12px; opacity: 0.85; }
@media (max-width: 600px) {
    .ho-portal-tab { padding: 12px 14px; flex: 1 1 auto; justify-content: center; }
}

/* Tile (statistic) */
.ho-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    margin-bottom: 32px;
    border: 1px solid var(--pub-hairline);
    border-radius: 4px;
    overflow: hidden;
    background: var(--pub-surface);
}
.ho-tile {
    position: relative;
    padding: 26px 28px;
    border-right: 1px solid var(--pub-hairline);
}
.ho-tile:last-child { border-right: none; }
@media (max-width: 768px) {
    .ho-tile { border-right: none; border-bottom: 1px solid var(--pub-hairline); }
    .ho-tile:last-child { border-bottom: none; }
}
.ho-tile-label {
    font-size: 10.5px;
    color: var(--pub-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}
.ho-tile-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--pub-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.02em;
}
.ho-tile-suffix {
    font-size: 12px;
    color: var(--pub-text-muted);
    margin-top: 10px;
}
.ho-tile-icon {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 32px; height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pub-hairline-2);
    color: var(--pub-text-soft);
    font-size: 13px;
}
[dir="rtl"] .ho-tile-icon { right: auto; left: 22px; }

/* Section card */
.ho-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-hairline);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}
.ho-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--pub-hairline);
}
.ho-card-head h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--pub-text);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.ho-card-head .ho-card-meta {
    font-size: 12px;
    color: var(--pub-text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.ho-card-body { padding: 22px 24px; }
.ho-card-body.flush { padding: 0; }

/* Empty state */
.ho-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--pub-text-soft);
}
.ho-empty .ho-empty-ico {
    width: 60px; height: 60px;
    margin: 0 auto 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pub-hairline-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-text-muted);
    font-size: 22px;
}
.ho-empty h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--pub-text);
    margin: 0 0 8px 0;
    letter-spacing: -0.005em;
}
.ho-empty p { font-size: 13.5px; margin: 0; line-height: 1.6; }

/* Toast & blur reveal */
.toast-stack {
    position: fixed;
    top: 84px; right: 24px;
    z-index: 10050;
    display: flex; flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
}
[dir="rtl"] .toast-stack { right: auto; left: 24px; }

.blur {
    filter: blur(4px);
    transition: filter 220ms;
    cursor: pointer;
    user-select: none;
}
.blur:hover, .blur:focus, .blur.is-revealed { filter: blur(0); }
.blur.lic-key { display: inline-block; min-width: 200px; white-space: nowrap; }

/* -----------------------------------------------------------------------------
   Suspended-license row overlay — sealed-band edition.

   When a customer's licence is deactivated we keep the row visible (data
   blurred to a soft veil) and surface a refined horizontal banner that
   spans the *full* row width, centered, sized to the row height. It reads
   as part of the row — like a stamped seal across an archived record —
   rather than a floating tooltip parked on the right.

   Why the JS-driven width instead of `inset: 0`: `position: relative` on a
   `<tr>` is unreliable as a containing block across browsers, even with the
   classic `transform: translateZ(0)` hack. Setting `--lic-row-w` from JS
   (see view/client/scripts.php) guarantees the banner spans the row no
   matter how the table is laid out.
----------------------------------------------------------------------------- */
tr.lic-row-suspended {
    position: relative;
    transform: translateZ(0);
}
tr.lic-row-suspended > td:not(.lic-actions) {
    filter: blur(2px);
    opacity: 0.36;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    transition: filter 220ms ease, opacity 220ms ease;
}
/* Sharpen slightly on row hover so the customer can still read the data
   behind the banner if they want to verify which license this was. */
tr.lic-row-suspended:hover > td:not(.lic-actions) {
    filter: blur(0.6px);
    opacity: 0.66;
}
tr.lic-row-suspended > td.lic-actions {
    position: relative;
    overflow: visible;
}

/* Outer overlay — anchored to the right edge of the actions cell but
   stretched leftward to span the full row via the JS-set CSS var.
   Centers the inner banner with flexbox. */
tr.lic-row-suspended .lic-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: var(--lic-row-w, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

/* The banner card.
   - Three-column grid: thin-ring icon · stacked text · meta pill.
   - Sized to the row: ~44px tall inside a 52px row, ~640px max width with
     32px breathing room each side.
   - Refined dark surface, hairline border, tinted by state, with a very
     subtle 135° stripe weave + a slow scan-line gleam for life. */
.lic-overlay-card {
    position: relative;
    pointer-events: auto;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 14px;

    height: calc(100% - 8px);
    margin: 4px 32px;
    width: calc(100% - 64px);
    max-width: 640px;
    padding: 0 14px 0 11px;
    box-sizing: border-box;

    background:
        linear-gradient(180deg,
            rgba(251, 191, 36, 0.045) 0%,
            rgba(251, 191, 36, 0.015) 100%
        ),
        rgba(12, 15, 22, 0.86);

    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 9px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        inset 0 0 0 1px rgba(0, 0, 0, 0.20),
        0 6px 22px rgba(0, 0, 0, 0.36);

    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);

    overflow: hidden;
    isolation: isolate;

    animation: lic-overlay-enter 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lic-overlay-card.is-permanent {
    background:
        linear-gradient(180deg,
            rgba(248, 113, 113, 0.055) 0%,
            rgba(248, 113, 113, 0.015) 100%
        ),
        rgba(12, 15, 22, 0.90);
    border-color: rgba(248, 113, 113, 0.26);
}

/* Diagonal stripe weave — refined warning-tape texture, very low opacity. */
.lic-overlay-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 7px,
        rgba(251, 191, 36, 0.030) 7px,
        rgba(251, 191, 36, 0.030) 8px
    );
    opacity: 0.7;
}
.lic-overlay-card.is-permanent::before {
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 7px,
        rgba(248, 113, 113, 0.030) 7px,
        rgba(248, 113, 113, 0.030) 8px
    );
}

/* Slow gleam — left-to-right scan once every ~8s, only ~12% of the cycle. */
.lic-overlay-card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.055) 50%,
        transparent 100%
    );
    animation: lic-overlay-scan 8s ease-in-out infinite;
}
@keyframes lic-overlay-scan {
    0%, 72%, 100% { transform: translateX(0); opacity: 0; }
    74%          { transform: translateX(0); opacity: 1; }
    100%         { transform: translateX(350%); opacity: 0; }
}

/* Icon — thin-ring circle, subtle inner glow. */
.lic-overlay-ico {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fbbf24;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow:
        inset 0 0 10px rgba(251, 191, 36, 0.18),
        0 0 0 3px rgba(251, 191, 36, 0.045);
}
.lic-overlay-card.is-permanent .lic-overlay-ico {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.50);
    color: #f87171;
    box-shadow:
        inset 0 0 10px rgba(248, 113, 113, 0.20),
        0 0 0 3px rgba(248, 113, 113, 0.045);
}

/* Text stack — stamped uppercase title + informational subtitle. */
.lic-overlay-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.lic-overlay-title {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--pub-text, #f4f5f7);
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.lic-overlay-sub {
    font-size: 11px;
    color: var(--pub-text-soft, #b3b7c0);
    line-height: 1.25;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Right-side meta — small archival pill. */
.lic-overlay-meta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(251, 191, 36, 0.24);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.92);
    line-height: 1;
    white-space: nowrap;
}
.lic-overlay-card.is-permanent .lic-overlay-meta {
    background: rgba(248, 113, 113, 0.07);
    border-color: rgba(248, 113, 113, 0.28);
    color: rgba(248, 113, 113, 0.92);
}
.lic-overlay-meta i {
    font-size: 9.5px;
    opacity: 0.92;
}

.lic-countdown {
    font-variant-numeric: tabular-nums;
    color: var(--pub-text, #f4f5f7);
    font-weight: 600;
    letter-spacing: 0.04em;
}

@keyframes lic-overlay-enter {
    0%   { opacity: 0; transform: translateY(2px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0)   scale(1); }
}

@media (max-width: 720px) {
    .lic-overlay-card {
        margin: 4px 12px;
        width: calc(100% - 24px);
        max-width: none;
        padding: 0 10px 0 8px;
        column-gap: 10px;
        grid-template-columns: auto 1fr;
    }
    .lic-overlay-meta { display: none; }
    .lic-overlay-title { font-size: 9.5px; letter-spacing: 0.08em; }
    .lic-overlay-sub   { font-size: 10.5px; }
}

/* -----------------------------------------------------------------------------
   Customer-portal table polish — keep every row on a single line and force
   the action-cell buttons to sit inline horizontally even when the generic
   dashboard rule (`table.table td > div[style*="inline-flex"] { flex-wrap:
   wrap }` in dashboard-pro.css) would wrap them. The .table-responsive
   wrapper handles horizontal overflow at narrow viewports.
----------------------------------------------------------------------------- */
.ho-public .ho-card .table > tbody > tr > td {
    white-space: nowrap;
    vertical-align: middle;
}
.ho-public .ho-card .table .lic-actions > div,
.ho-public .ho-card .table td.text-right > div {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}
.ho-public .ho-card .table .lic-actions form,
.ho-public .ho-card .table td.text-right form {
    display: inline-flex !important;
    margin: 0;
}
.ho-public .ho-card .table .lic-actions .btn,
.ho-public .ho-card .table td.text-right .btn {
    white-space: nowrap;
}

/* Disabled state for ho-btn */
.ho-btn[disabled], .ho-btn:disabled, .ho-btn.btn-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* RTL */
[dir="rtl"] .ho-nav-burger { order: -1; }

/* Utility */
.ho-hidden { display: none !important; }
@media (max-width: 768px) {
    .d-md-inline { display: inline-flex !important; }
}
@media (min-width: 769px) {
    .d-md-inline-only { display: inline !important; }
    .d-mobile-only    { display: none !important; }
}

/* -----------------------------------------------------------------------------
   12. Bootstrap modal harmonisation on public pages
       The project loads Bootstrap 4 CSS but Bootstrap 3.4.1 JS, which toggles
       `.in` (BS3) instead of `.show` (BS4) on the modal element. We need to
       handle BOTH so modals actually open.
   -------------------------------------------------------------------------- */
.ho-public .modal {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    z-index: 1050 !important;
    display: none;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    outline: 0;
    color: var(--pub-text);
}
.ho-public .modal.show,
.ho-public .modal.in {
    display: block !important;
    overflow-x: hidden;
    overflow-y: auto;
}
.ho-public .modal.fade .modal-dialog {
    transition: transform 220ms ease;
    transform: translate(0, -20px);
}
.ho-public .modal.show .modal-dialog,
.ho-public .modal.in .modal-dialog {
    transform: none;
    animation: ho-pub-modal-in 220ms ease both;
}
@keyframes ho-pub-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.modal-open { overflow: hidden; padding-right: 0 !important; }

.ho-public .modal-backdrop,
.modal-backdrop {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    z-index: 1040 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(2, 4, 8, 0.78) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-backdrop.fade { opacity: 0 !important; }
.modal-backdrop.show, .modal-backdrop.in,
.modal-backdrop.fade.show, .modal-backdrop.fade.in { opacity: 1 !important; }

.ho-public .modal-dialog {
    margin: 1.75rem auto !important;
    max-width: 540px;
    pointer-events: auto;
}
.ho-public .modal-content {
    background: #0a0c12 !important;
    border: 1px solid var(--pub-hairline-2) !important;
    border-radius: 6px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55) !important;
    color: var(--pub-text) !important;
    overflow: hidden;
}
.ho-public .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px;
    padding: 18px 22px !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--pub-hairline) !important;
    background: rgba(255, 255, 255, 0.02);
}
.ho-public .modal-title {
    flex: 1 1 auto;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: var(--pub-text) !important;
}
.ho-public .modal-header .close,
.ho-public .modal-header > .close,
.ho-public .modal .close {
    background: transparent !important;
    border: 1px solid var(--pub-hairline-2) !important;
    color: var(--pub-text-soft) !important;
    width: 30px; height: 30px;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center; justify-content: center;
    opacity: 1 !important;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    text-shadow: none !important;
}
.ho-public .modal .close:hover {
    color: var(--pub-text) !important;
    border-color: var(--pub-hairline-3) !important;
}
.ho-public .modal-body {
    padding: 22px !important;
}
.ho-public .modal-body label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pub-text-soft);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}
.ho-public .modal-body .form-group { margin-bottom: 16px; }
.ho-public .modal-body .form-group:last-child { margin-bottom: 0; }
.ho-public .modal-body .form-control {
    background: var(--pub-bg) !important;
    border: 1px solid var(--pub-hairline-2) !important;
    color: var(--pub-text) !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 13.5px !important;
    height: auto !important;
}
.ho-public .modal-body .form-control:focus {
    border-color: var(--pub-accent-line) !important;
    box-shadow: 0 0 0 3px var(--pub-accent-soft) !important;
    outline: 0 !important;
}
.ho-public .modal-body small,
.ho-public .modal-body .text-muted {
    color: var(--pub-text-muted) !important;
    font-size: 12px;
}
.ho-public .modal-footer {
    padding: 14px 22px !important;
    margin: 0 !important;
    border: none !important;
    border-top: 1px solid var(--pub-hairline) !important;
    background: rgba(255, 255, 255, 0.015);
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px;
}

/* -----------------------------------------------------------------------------
   13. Bootstrap button + badge harmonisation inside the public theme
   -------------------------------------------------------------------------- */
.ho-public .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    line-height: 1.2;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
    text-shadow: none !important;
    background-image: none !important;
}
.ho-public .btn-sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 5px;
}
.ho-public .btn-primary,
.ho-public .btn.btn-primary {
    background: var(--pub-text) !important;
    color: var(--pub-bg) !important;
    border-color: var(--pub-text) !important;
    font-weight: 600;
    box-shadow: none !important;
}
.ho-public .btn-primary:hover,
.ho-public .btn.btn-primary:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--pub-bg) !important;
}
.ho-public .btn-secondary,
.ho-public .btn.btn-secondary {
    background: transparent !important;
    border-color: var(--pub-hairline-2) !important;
    color: var(--pub-text) !important;
    box-shadow: none !important;
}
.ho-public .btn-secondary:hover,
.ho-public .btn.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--pub-hairline-3) !important;
    color: var(--pub-text) !important;
}
.ho-public .btn-ghost,
.ho-public .btn.btn-ghost {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--pub-text-soft) !important;
}
.ho-public .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--pub-text) !important;
}
.ho-public .btn-danger,
.ho-public .btn.btn-danger {
    background: rgba(244, 63, 94, 0.10) !important;
    border-color: rgba(244, 63, 94, 0.32) !important;
    color: #f87171 !important;
    box-shadow: none !important;
}
.ho-public .btn-danger:hover {
    background: rgba(244, 63, 94, 0.18) !important;
    color: #fb7185 !important;
}
.ho-public .btn[disabled],
.ho-public .btn:disabled,
.ho-public .btn.btn-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
}

/* -----------------------------------------------------------------------------
   Tooltip on disabled action buttons (Download / Change IP on the customer
   licenses page). We can't put the tooltip directly on the disabled <button>
   because:
     1. The rule above sets `pointer-events: none`, which silently kills the
        `:hover` CSS state too.
     2. `opacity: 0.4` on the button bleeds into any `::after` pseudo-element
        rendered on it, so a tooltip there would also look 40% faded.
   The PHP template wraps each disabled button in `<span class="cd-tip-wrap">`.
   The span has full opacity, receives `:hover` when the cursor is over the
   button (because the button is non-hit-tested, hit-testing finds the span
   underneath), and hosts the `::after` tooltip. `data-cd-tip` is set by the
   server (static reasons like "Script file not found") or by
   client-cooldowns.js (dynamic "You can download/change IP again in X").
----------------------------------------------------------------------------- */
.cd-tip-wrap {
    position: relative;
    display: inline-flex;
}
.cd-tip-wrap[data-cd-tip]:hover::after {
    content: attr(data-cd-tip);
    position: absolute;
    bottom: calc(100% + 9px);
    right: 0;

    background: rgba(13, 16, 24, 0.98);
    color: var(--pub-text, #f4f5f7);
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.005em;

    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);

    white-space: nowrap;
    pointer-events: none;
    z-index: 50;

    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);

    animation: cd-tip-show 160ms ease both;
}
.cd-tip-wrap[data-cd-tip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    right: 14px;
    width: 8px;
    height: 8px;
    background: rgba(13, 16, 24, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 49;
    animation: cd-tip-show 160ms ease both;
}
@keyframes cd-tip-show {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

/* Badges (Bootstrap defaults can render bright green/red) */
.ho-public .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--pub-hairline-2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--pub-text-soft);
}
.ho-public .badge.badge-dot::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.ho-public .badge.badge-success {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.30);
    color: #10b981;
}
.ho-public .badge.badge-danger {
    background: rgba(244, 63, 94, 0.10);
    border-color: rgba(244, 63, 94, 0.28);
    color: #f87171;
}
.ho-public .badge.badge-warning {
    background: rgba(245, 158, 11, 0.10);
    border-color: rgba(245, 158, 11, 0.28);
    color: #fbbf24;
}

/* -----------------------------------------------------------------------------
   14. DataTables harmonisation inside .ho-public
   -------------------------------------------------------------------------- */
.ho-public .table {
    color: var(--pub-text) !important;
    font-size: 13px;
    margin: 0 !important;
}
.ho-public .table thead th {
    background: transparent !important;
    color: var(--pub-text-muted) !important;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none !important;
    border-bottom: 1px solid var(--pub-hairline) !important;
    padding: 14px 16px !important;
    white-space: nowrap;
}
.ho-public .table tbody td {
    background: transparent !important;
    color: var(--pub-text) !important;
    border: none !important;
    border-bottom: 1px solid var(--pub-hairline) !important;
    padding: 14px 16px !important;
    vertical-align: middle;
}
.ho-public .table tbody tr:hover td { background: rgba(255, 255, 255, 0.020) !important; }
.ho-public .table tbody tr:last-child td { border-bottom: none !important; }

.ho-public .dataTables_wrapper {
    color: var(--pub-text-soft) !important;
    padding: 0 16px;
}
.ho-public .dataTables_wrapper .dataTables_length,
.ho-public .dataTables_wrapper .dataTables_filter {
    padding: 14px 0 10px;
}
.ho-public .dataTables_wrapper .dataTables_length label,
.ho-public .dataTables_wrapper .dataTables_filter label {
    color: var(--pub-text-muted) !important;
    font-size: 12px;
    font-weight: 500;
}
.ho-public .dataTables_wrapper .dataTables_length select,
.ho-public .dataTables_wrapper .dataTables_filter input,
.ho-public .dataTables_wrapper .dataTables_filter input.InputStyle {
    background: rgba(255, 255, 255, 0.025) !important;
    background-color: rgba(255, 255, 255, 0.025) !important;
    background-image: none !important;
    border: 1px solid var(--pub-hairline-2) !important;
    color: var(--pub-text) !important;
    border-radius: 6px !important;
    padding: 7px 12px !important;
    font-size: 12.5px;
    height: auto !important;
    margin: 0 8px !important;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    transition: border-color 150ms ease, background 150ms ease;
}
.ho-public .dataTables_wrapper .dataTables_length select {
    padding-right: 28px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%23b3b7c0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
}
.ho-public .dataTables_wrapper .dataTables_filter input,
.ho-public .dataTables_wrapper .dataTables_filter input.InputStyle {
    min-width: 220px;
}
.ho-public .dataTables_wrapper .dataTables_filter input::placeholder {
    color: var(--pub-text-muted) !important;
    opacity: 0.7;
}
.ho-public .dataTables_wrapper .dataTables_filter input:hover,
.ho-public .dataTables_wrapper .dataTables_length select:hover {
    border-color: var(--pub-hairline-3) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}
.ho-public .dataTables_wrapper .dataTables_filter input:focus,
.ho-public .dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--pub-accent-line) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow: 0 0 0 3px var(--pub-accent-soft) !important;
    outline: 0;
}

.ho-public .dataTables_wrapper .dataTables_paginate {
    padding: 14px 0;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}
.ho-public .dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 0 !important;
    border: 1px solid var(--pub-hairline-2) !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--pub-text-soft) !important;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.ho-public .dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.04) !important;
    color: var(--pub-text) !important;
    border-color: var(--pub-hairline-3) !important;
}
.ho-public .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.ho-public .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--pub-text) !important;
    color: var(--pub-bg) !important;
    border-color: var(--pub-text) !important;
}
.ho-public .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.ho-public .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: var(--pub-text-faint) !important;
    cursor: not-allowed;
    opacity: 0.5;
    background: transparent !important;
    border-color: var(--pub-hairline) !important;
}
.ho-public .dataTables_wrapper .dataTables_info {
    padding: 14px 0;
    color: var(--pub-text-muted) !important;
    font-size: 12px;
}
.ho-public .text-muted { color: var(--pub-text-muted) !important; }
.ho-public .text-right { text-align: right; }

/* Avatar dropdown safety: ensure click-throughability when open */
.ho-public .ho-avatar-dropdown { z-index: 1100; }
.ho-public-nav { z-index: 1000 !important; }

/* =============================================================================
   15. Comprehensive responsive layer
       Handles tablets (≤900px) and phones (≤600px / ≤480px). The headline goal
       is real device parity: tables collapse into stacked cards on small
       screens, the portal hero re-flows, modals fill the viewport, navbar
       drawer is touch-friendly, and every interactive target is ≥40px tall.
   ============================================================================= */

/* Tablet & below */
@media (max-width: 900px) {
    .ho-page-body { padding-top: 96px; padding-bottom: 56px; }

    /* Hero compresses */
    .ho-hero { padding: 110px 0 70px; }
    .ho-hero h1 { margin: 22px auto 18px; }
    .ho-hero p.lede { margin: 0 auto 28px; }
    .ho-hero-ctas {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        align-items: stretch;
    }
    .ho-hero-ctas .ho-btn { width: 100%; justify-content: center; }

    /* Sections */
    .ho-section { padding: 60px 0; }
    .ho-section-head { margin-bottom: 38px; }

    /* Portal hero re-flows */
    .ho-portal-hero-inner { gap: 14px; }
    .ho-portal-hero-inner > div:not(.ho-portal-hero-icon):not(.spacer) { flex: 1 1 auto; min-width: 0; }
    .ho-portal-hero .ho-btn { width: 100%; justify-content: center; }
    .ho-portal-hero .spacer { display: none; }

    /* Tile grid → 2 cols */
    .ho-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .ho-tile { border-right: 1px solid var(--pub-hairline) !important; border-bottom: 1px solid var(--pub-hairline); }
    .ho-tile:nth-child(even) { border-right: none !important; }

    /* CTA */
    .ho-cta { padding: 44px 24px; }

    /* Footer wraps */
    .ho-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Phones */
@media (max-width: 600px) {
    body.ho-public { overflow-x: hidden; }
    .ho-container { padding: 0 16px; max-width: 100vw; }
    .ho-nav-inner { padding: 0 14px; gap: 8px; }

    /* Brand: hide wordmark, keep logo */
    .ho-nav-brand span { display: none; }
    .ho-nav-brand img { height: 28px; }

    /* Sign In in navbar shrinks to icon only on phones */
    .ho-nav-actions .ho-btn-primary {
        padding: 9px 12px !important;
        font-size: 12px !important;
        min-height: 38px;
    }
    .ho-nav-actions .ho-btn-primary span { display: none; }
    .ho-nav-actions .ho-btn-primary i { margin: 0; font-size: 14px; }

    /* Burger button */
    .ho-nav-burger { padding: 7px 11px; }

    /* Hero */
    .ho-hero { padding: 96px 0 56px; }
    .ho-hero .ho-container { max-width: 100%; }
    .ho-eyebrow { font-size: 10px; padding: 5px 12px; }
    .ho-hero h1 {
        font-size: clamp(28px, 8vw, 40px);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    .ho-hero p.lede { font-size: 14px; }

    /* Sections — keep headings fully inside the viewport */
    .ho-section { padding: 48px 0; }
    .ho-section-head {
        max-width: 100%;
        padding: 0 4px;
    }
    .ho-section-head h2 {
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.18;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .ho-section-head p { font-size: 13.5px; }

    /* Tiles → 1 col */
    .ho-tile-grid { grid-template-columns: 1fr; }
    .ho-tile { border-right: none !important; border-bottom: 1px solid var(--pub-hairline); }
    .ho-tile:last-child { border-bottom: none; }
    .ho-tile { padding: 22px 22px; }
    .ho-tile-value { font-size: 26px; }

    /* Portal hero compact */
    .ho-portal-hero { padding: 28px 0 22px; margin-bottom: 22px; }
    .ho-portal-hero-icon { width: 44px; height: 44px; font-size: 16px; }
    .ho-portal-hero h1 { font-size: 22px; }
    .ho-portal-hero p { font-size: 12.5px; }

    /* Portal tabs become scrollable horizontal */
    .ho-portal-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ho-portal-tabs::-webkit-scrollbar { display: none; }
    .ho-portal-tab { white-space: nowrap; padding: 12px 16px; flex: 0 0 auto; }

    /* Card head wraps */
    .ho-card-head { padding: 14px 18px; }
    .ho-card-head h3 { font-size: 13px; }
    .ho-card-body { padding: 18px; }

    /* Buttons fill width inside card actions */
    .ho-empty .ho-btn { width: 100%; justify-content: center; }

    /* CTA */
    .ho-cta { padding: 36px 18px; }
    .ho-cta h2 { font-size: 22px; }
    .ho-cta p { font-size: 14px; }
    .ho-cta .ho-hero-ctas { width: 100%; }

    /* Footer */
    .ho-footer { padding: 28px 0 24px; margin-top: 48px; }
}

/* Tiny phones */
@media (max-width: 380px) {
    .ho-container { padding: 0 14px; }
    .ho-portal-tab { padding: 11px 12px; font-size: 12px; }
    .ho-portal-tab i { display: none; }
}

/* =============================================================================
   16. Responsive tables → card layout on small screens
       Whenever a .table inside .ho-public is rendered below 760px, each row
       collapses into a stacked card. We use [data-label] attributes when
       provided; otherwise the cell shows without a label. Action cells get
       full-width styling so buttons stay reachable.
   ============================================================================= */
@media (max-width: 760px) {
    .ho-public .table-responsive {
        border: none;
        overflow: visible;
    }
    .ho-public .table {
        display: block;
        width: 100% !important;
        background: transparent !important;
    }
    .ho-public .table thead {
        position: absolute !important;
        width: 1px; height: 1px;
        margin: -1px; padding: 0;
        overflow: hidden; clip: rect(0,0,0,0);
        white-space: nowrap; border: 0;
    }
    .ho-public .table tbody { display: block; width: 100%; }
    .ho-public .table tbody tr {
        display: block;
        background: var(--pub-surface) !important;
        border: 1px solid var(--pub-hairline) !important;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 14px 16px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    }
    .ho-public .table tbody tr:hover td { background: transparent !important; }
    .ho-public .table tbody tr:last-child td { border-bottom: 1px dashed var(--pub-hairline) !important; }
    .ho-public .table tbody td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0 !important;
        border: none !important;
        border-bottom: 1px dashed var(--pub-hairline) !important;
        text-align: right !important;
        white-space: normal !important;
        font-size: 13px;
    }
    .ho-public .table tbody td:last-child { border-bottom: none !important; }
    .ho-public .table tbody td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: 10.5px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.10em;
        color: var(--pub-text-muted);
        text-align: left;
        margin-right: 12px;
    }
    /* Action cells span the full row width */
    .ho-public .table tbody td.text-right,
    .ho-public .table tbody td.actions-cell {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
    }
    .ho-public .table tbody td.text-right > div,
    .ho-public .table tbody td.text-right form {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: stretch !important;
    }
    .ho-public .table tbody td .btn,
    .ho-public .table tbody td .ho-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .ho-public .table tbody td .blur {
        max-width: 60%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* DataTables wrapper compact */
    .ho-public .dataTables_wrapper { padding: 0 4px; }
    .ho-public .dataTables_wrapper .dataTables_filter input,
    .ho-public .dataTables_wrapper .dataTables_filter input.InputStyle { min-width: 0 !important; width: 100% !important; }
    .ho-public .dataTables_wrapper .dataTables_filter { padding: 12px 0; }
    .ho-public .dataTables_wrapper .dataTables_filter label { display: block; width: 100%; }
    .ho-public .dataTables_wrapper .dataTables_paginate { justify-content: center; flex-wrap: wrap; }
}

/* =============================================================================
   17. Modal mobile layer — fill the viewport, keep dialog reachable
   ============================================================================= */
@media (max-width: 600px) {
    .ho-public .modal-dialog,
    .modal-dialog {
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
    }
    .ho-public .modal-content,
    .modal-content {
        border-radius: 14px 14px 0 0 !important;
        width: 100%;
        max-height: 92vh;
        overflow: auto;
    }
    .ho-public .modal-header { padding: 16px 18px !important; }
    .ho-public .modal-body { padding: 18px !important; }
    .ho-public .modal-footer {
        padding: 12px 18px !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .ho-public .modal-footer .btn,
    .ho-public .modal-footer .ho-btn { flex: 1 1 auto; justify-content: center; }
}

/* =============================================================================
   18. Touch-target safety — every interactive element ≥ 40px tall on small
   ============================================================================= */
@media (max-width: 600px) {
    .ho-public .btn,
    .ho-public .ho-btn { min-height: 40px; }
    .ho-public .btn-sm { min-height: 36px; padding: 8px 12px !important; }
    .ho-nav-burger { min-height: 40px; min-width: 40px; }
    .ho-avatar-trigger { min-height: 40px; }
    .ho-avatar-trigger .ho-avatar-name { display: none !important; }
    .ho-portal-tab { min-height: 44px; }
}

/* =============================================================================
   19. Mobile button refinement — keeps every CTA visually balanced on phones.
       Earlier rules pushed buttons to look chunky on small screens; we tighten
       padding, font-size and gap so the call-to-actions feel consistent with
       the rest of the obsidian system, without losing tap-target safety.
   ============================================================================= */
@media (max-width: 600px) {
    .ho-public .ho-btn {
        padding: 10px 16px;
        font-size: 13px;
        gap: 7px;
        border-radius: 6px;
    }
    .ho-public .ho-btn-lg {
        padding: 12px 18px;
        font-size: 13.5px;
    }
    .ho-public .btn {
        padding: 9px 14px !important;
        font-size: 12.5px !important;
        gap: 6px !important;
    }
    .ho-public .btn-sm {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    /* Action button rows inside table cards: same width, tidy wrapping. */
    .ho-public .table tbody td .btn,
    .ho-public .table tbody td .ho-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        padding: 10px 12px !important;
    }
    /* Hero CTAs already stack — make the icon size echo the smaller text. */
    .ho-hero-ctas .ho-btn i,
    .ho-hero-ctas .ho-btn .fab,
    .ho-hero-ctas .ho-btn .fas { font-size: 13px; }
}
@media (max-width: 380px) {
    .ho-public .ho-btn { padding: 9px 14px; font-size: 12.5px; }
    .ho-public .btn { padding: 8px 12px !important; font-size: 12px !important; }
}

/* =============================================================================
   20. Hero — full-viewport mode + animated scroll cue
       The home hero now occupies a full screen. A soft mouse-tracked
       spotlight glows behind the headline, and a subtle "scroll" indicator
       sits at the bottom inviting the visitor down to the next section.
   ============================================================================= */
.ho-hero.is-fullscreen {
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ho-hero.is-fullscreen .ho-container {
    position: relative;
    z-index: 2;
}

/* Mouse-tracked spotlight. We feed cursor coords into CSS variables on the
   hero element via JS; the spotlight pseudo follows them. Falls back to a
   centered halo when the cursor never moves (e.g. touch). */
.ho-hero.is-fullscreen::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        520px 360px at var(--mx, 50%) var(--my, 40%),
        rgba(16, 185, 129, 0.12),
        rgba(16, 185, 129, 0.04) 35%,
        transparent 65%
    );
    transition: background-position 0s;
    z-index: 0;
    opacity: 0.95;
}
.ho-hero.is-fullscreen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 50% -120px, rgba(16, 185, 129, 0.10), transparent 60%),
        linear-gradient(180deg, transparent 0%, transparent 70%, rgba(5, 6, 8, 0.65) 100%);
    z-index: 0;
}

/* Scroll-down cue */
.ho-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--pub-text-muted);
    text-decoration: none;
    z-index: 3;
    cursor: pointer;
    transition: color 220ms ease, transform 220ms ease;
    user-select: none;
}
.ho-scroll-cue:hover { color: var(--pub-text); transform: translate(-50%, -2px); }
.ho-scroll-cue .label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.30em;
}
.ho-scroll-cue .mouse {
    position: relative;
    width: 24px;
    height: 38px;
    border-radius: 14px;
    border: 1.5px solid currentColor;
    opacity: 0.8;
    overflow: hidden;
}
.ho-scroll-cue .mouse::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 7px;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    border-radius: 99px;
    background: currentColor;
    animation: hoScrollDot 1.6s cubic-bezier(0.66, 0, 0.34, 1) infinite;
}
.ho-scroll-cue .chev {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-top: -2px;
    line-height: 1;
}
.ho-scroll-cue .chev i {
    font-size: 10px;
    opacity: 0.55;
    margin: -3px 0;
    animation: hoScrollChev 1.6s ease-in-out infinite;
}
.ho-scroll-cue .chev i:nth-child(2) { animation-delay: 0.18s; opacity: 0.9; }
.ho-scroll-cue .chev i:nth-child(3) { animation-delay: 0.36s; opacity: 0.55; }

@keyframes hoScrollDot {
    0%   { opacity: 0; transform: translate(-50%, 0); }
    25%  { opacity: 1; }
    75%  { opacity: 1; transform: translate(-50%, 14px); }
    100% { opacity: 0; transform: translate(-50%, 14px); }
}
@keyframes hoScrollChev {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50%      { transform: translateY(2px); opacity: 1; }
}

/* When the user has scrolled past the hero, fade & lift the cue out of view. */
.ho-scroll-cue.is-hidden {
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
}

/* Reveal-on-scroll bits used across the public pages for a touch of life.
   Opacity-only entry so we don't clip any element that overflows its bounds
   (the .ho-pillcard-icon sits at top: -36px above the card — a clip-path or
   transform-on-parent would hide it). The cards keep their own hover
   transforms intact. */
.ho-reveal {
    opacity: 0;
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}
.ho-reveal.is-in {
    opacity: 1;
}

/* Hero copy: a tasteful entrance + accent shimmer. */
.ho-hero h1 .accent {
    background: linear-gradient(120deg, var(--pub-accent) 0%, #6ee7b7 50%, var(--pub-accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: hoAccentSheen 6s linear infinite;
    font-style: italic;
    font-weight: 500;
}
@keyframes hoAccentSheen {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Mobile tweak — the cue gets in the way of the CTAs on phones. */
@media (max-width: 600px) {
    .ho-scroll-cue { bottom: 22px; gap: 8px; }
    .ho-scroll-cue .mouse { width: 22px; height: 34px; }
    .ho-scroll-cue .label { font-size: 9.5px; letter-spacing: 0.24em; }
    .ho-hero.is-fullscreen { padding: 80px 0 110px; }
}

/* =============================================================================
   21. Login page — split-screen Obsidian Edition
       Two-pane shell: left pane = brand + dashboard preview card, right pane
       = the Discord OAuth call-to-action. Stacks on tablets and below.
   ============================================================================= */
body.ho-login-body {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    display: block;
}
body.ho-login-body::before {
    /* Same dot grid, slightly denser to give the empty halves texture */
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.060) 1px, transparent 0);
    background-size: 24px 24px;
}
body.ho-login-body::after {
    background:
        radial-gradient(720px 460px at 22% 30%, rgba(16, 185, 129, 0.10), transparent 60%),
        radial-gradient(620px 420px at 82% 70%, rgba(124, 58, 237, 0.08), transparent 60%);
}

.ho-login-back {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.030);
    border: 1px solid var(--pub-hairline-2);
    color: var(--pub-text-soft);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.ho-login-back:hover {
    color: var(--pub-text);
    border-color: var(--pub-hairline-3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-2px);
}
.ho-login-back i { font-size: 11px; }

.ho-login-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    z-index: 1;
}
@media (max-width: 980px) {
    .ho-login-shell { grid-template-columns: 1fr; }
}

/* ---- LEFT PANEL ---- */
.ho-login-side {
    position: relative;
    padding: 80px 56px 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid var(--pub-hairline);
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(255, 255, 255, 0.005) 100%);
}
.ho-login-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 440px at 30% 20%, rgba(16, 185, 129, 0.10), transparent 60%),
        radial-gradient(520px 380px at 80% 90%, rgba(56, 189, 248, 0.08), transparent 60%);
    pointer-events: none;
    opacity: 0.9;
}
.ho-login-side-inner {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.ho-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--pub-text);
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 38px;
}
.ho-login-brand img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.25));
}
.ho-login-brand span {
    background: linear-gradient(180deg, #ffffff 0%, #c9cdd6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ho-login-side-copy { margin-bottom: 36px; }
.ho-login-side-copy h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    line-height: 1.10;
    letter-spacing: -0.025em;
    margin: 18px 0 14px;
    color: var(--pub-text);
}
.ho-login-side-copy h2 .accent {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(120deg, var(--pub-accent) 0%, #6ee7b7 50%, var(--pub-accent) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hoAccentSheen 6s linear infinite;
}
.ho-login-side-copy p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pub-text-soft);
    max-width: 440px;
    margin: 0;
}

/* Dashboard-preview card */
.ho-login-preview {
    position: relative;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.040) 0%, rgba(255, 255, 255, 0.010) 100%);
    border: 1px solid var(--pub-hairline-2);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    padding: 18px 18px 14px;
    margin-bottom: 28px;
    transform: perspective(1200px) rotateX(2deg) rotateY(-3deg);
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ho-login-preview:hover {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateY(-2px);
}
.ho-login-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ho-login-preview-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--pub-text);
    letter-spacing: 0.005em;
}
.ho-login-preview-sub {
    font-size: 10.5px;
    color: var(--pub-text-muted);
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ho-login-preview-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--pub-text);
    border: 1px solid var(--pub-hairline-2);
    font-size: 11.5px;
    font-weight: 500;
    cursor: default;
}
.ho-login-preview-add i { font-size: 10px; }
.ho-login-preview-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ho-login-preview-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.020);
    border: 1px solid rgba(255, 255, 255, 0.040);
}
.ho-login-preview-col-key { font-size: 12px; color: var(--pub-text-muted); }
.ho-login-preview-col-key .muted { color: var(--pub-text-muted); font-variant-numeric: tabular-nums; }
.ho-login-preview-col-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pub-text);
    min-width: 0;
}
.ho-login-preview-col-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.ho-login-preview-folder {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: var(--pub-accent);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 11px;
    flex-shrink: 0;
}
.ho-login-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pub-hairline-2);
    color: var(--pub-text-soft);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.ho-login-preview-pill .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.ho-login-preview-pill.is-active {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.30);
    color: var(--pub-accent);
}
.ho-login-preview-pill.is-active .dot {
    box-shadow: 0 0 6px var(--pub-accent);
    animation: hoPulse 1.6s ease-in-out infinite;
}
@keyframes hoPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1.1);  }
}

.ho-login-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ho-login-bullets li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--pub-text-soft);
    letter-spacing: 0.005em;
}
.ho-login-bullets li i {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--pub-accent);
    font-size: 11px;
    flex-shrink: 0;
}

/* ---- RIGHT PANEL ---- */
.ho-login-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 36px;
}
.ho-login-card-inner {
    width: 100%;
    max-width: 440px;
}

.ho-login-card-head {
    text-align: center;
    margin-bottom: 36px;
}
.ho-login-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--pub-hairline-2);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}
.ho-login-mark::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 22px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    pointer-events: none;
}
.ho-login-mark img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.30));
}
.ho-login-card-head h1 {
    font-size: clamp(26px, 3.2vw, 32px);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 8px 0;
    line-height: 1.15;
    color: var(--pub-text);
}
.ho-login-card-head p {
    margin: 0;
    font-size: 14px;
    color: var(--pub-text-soft);
    line-height: 1.6;
}

.ho-login-form { margin-bottom: 22px; }

/* Discord button — the hero of this page. Big, gradient, animated. */
.ho-discord-btn {
    --d-bg-1: #5865F2;
    --d-bg-2: #4752C4;
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(88, 101, 242, 0.55);
    background:
        linear-gradient(180deg, rgba(88, 101, 242, 0.20) 0%, rgba(88, 101, 242, 0.08) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    color: var(--pub-text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    overflow: hidden;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 240ms ease,
                box-shadow 240ms ease;
    box-shadow:
        0 12px 30px rgba(88, 101, 242, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ho-discord-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, 0.85);
    box-shadow:
        0 22px 50px rgba(88, 101, 242, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.ho-discord-btn:active { transform: translateY(0); }

.ho-discord-btn-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(380px 120px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 240ms ease;
}
.ho-discord-btn:hover .ho-discord-btn-glow { opacity: 1; }

.ho-discord-btn-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: linear-gradient(180deg, var(--d-bg-1) 0%, var(--d-bg-2) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow:
        0 10px 24px rgba(88, 101, 242, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    position: relative;
}
.ho-discord-btn-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120px 80px at 50% 0%, rgba(255, 255, 255, 0.30), transparent 70%);
    pointer-events: none;
}

.ho-discord-btn-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ho-discord-btn-label .lead {
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.005em;
    line-height: 1.3;
}
.ho-discord-btn-label .sub {
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.005em;
    line-height: 1.3;
}
.ho-discord-btn-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 11px;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease;
}
.ho-discord-btn:hover .ho-discord-btn-arrow {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.18);
}

/* "or" divider */
.ho-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--pub-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.20em;
    text-transform: uppercase;
}
.ho-login-divider::before,
.ho-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--pub-hairline) 50%, transparent 100%);
}

/* Magic-link block — single shape that morphs from "Sign in with email"
   trigger into an email + send pill in place. Both states are absolutely
   positioned inside .ho-magic-stack so swapping is genuinely in-place
   (no layout shift, no second row appearing).
   ----------------------------------------------------------------------- */
.ho-magic {
    margin-bottom: 10px;
    direction: ltr;
}
.ho-magic-stack {
    position: relative;
    height: 48px;
}
.ho-magic-pill {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 18px;
    background: transparent;
    color: var(--pub-text);
    border: 1px solid var(--pub-hairline-2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 200ms cubic-bezier(0.16, 1, 0.3, 1),
                background 200ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trigger state — visible by default. */
.ho-magic-pill--trigger {
    justify-content: center;
    gap: 10px;
    opacity: 1;
    transform: scale(1);
}
.ho-magic-pill--trigger:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--pub-hairline-3);
}
.ho-magic-pill-icon {
    color: var(--pub-accent);
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Form state — hidden until .is-open. */
.ho-magic-pill--form {
    padding: 0;
    background: rgba(255, 255, 255, 0.025);
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    cursor: text;
}
.ho-magic-pill--form .ho-magic-pill-icon {
    align-self: center;
    padding: 0 6px 0 16px;
    pointer-events: none;
    transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ho-magic-pill--form input[type="email"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: transparent;
    color: var(--pub-text);
    border: 0;
    outline: none;
    padding: 0 8px;
    font: inherit;
    font-size: 14px;
    letter-spacing: 0.005em;
    direction: ltr;
    text-align: left;
}
.ho-magic-pill--form input[type="email"]::placeholder { color: var(--pub-text-faint); }
.ho-magic-pill--form:focus-within {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 3px var(--pub-accent-soft);
    background: rgba(16, 185, 129, 0.04);
}
.ho-magic-pill--form:focus-within .ho-magic-pill-icon { color: var(--pub-accent); }

.ho-magic-send {
    flex-shrink: 0;
    width: 52px;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: var(--pub-accent);
    color: #021b12;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease;
}
.ho-magic-send:hover { background: var(--pub-accent-2); }
.ho-magic-send:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px #f4f5f7;
}
.ho-magic-send:disabled,
.ho-magic-send.is-loading { opacity: 0.55; cursor: progress; }
.ho-magic-send.is-loading i {
    animation: hoMagicSpin 800ms linear infinite;
}
@keyframes hoMagicSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Open state — swap visibility AND interactivity, in place. */
.ho-magic.is-open .ho-magic-pill--trigger {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
}
.ho-magic.is-open .ho-magic-pill--form {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.ho-magic-hint {
    margin: 10px 2px 0 2px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--pub-text-soft);
    text-align: left;
    direction: ltr;
}
.ho-magic-hint.is-ok  { color: var(--pub-accent); }
.ho-magic-hint.is-err { color: var(--pub-danger); }

/* Stack of fallback buttons (Browse store, Discord). Heights are pinned to
   match .ho-magic-input-wrap and .ho-btn-magic so the whole block reads as
   a single rhythm. */
.ho-login-altrow {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}
/* Pin every block button in the alt row to the same dimensions as the
   magic-link pill so the column reads as a single rhythm regardless of
   whether the magic block is collapsed (button) or open (input). */
.ho-login-altrow .ho-btn-block {
    box-sizing: border-box;
    height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
}
.ho-login-altrow .ho-btn-block i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.ho-login-fineprint {
    font-size: 11.5px;
    color: var(--pub-text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.6;
    letter-spacing: 0.005em;
}

/* Tablet stack — left becomes a compact header strip with the brand only,
   preview card hides since the right pane should dominate. */
@media (max-width: 980px) {
    body.ho-login-body { overflow: auto; }
    .ho-login-side {
        padding: 64px 28px 32px;
        border-right: none;
        border-bottom: 1px solid var(--pub-hairline);
        min-height: auto;
    }
    .ho-login-side-inner { max-width: 720px; }
    .ho-login-preview { transform: none; }
    .ho-login-preview:hover { transform: translateY(-2px); }
    .ho-login-card { padding: 40px 22px 60px; }
}
@media (max-width: 600px) {
    .ho-login-back {
        top: 14px; left: 14px;
        padding: 8px 12px;
        font-size: 12px;
    }
    .ho-login-back span { display: none; }
    .ho-login-side {
        padding: 70px 20px 28px;
    }
    .ho-login-brand { margin-bottom: 26px; }
    .ho-login-brand span { display: none; }
    .ho-login-side-copy { margin-bottom: 24px; }
    .ho-login-side-copy h2 { font-size: 26px; }
    .ho-login-side-copy p { font-size: 13.5px; }
    .ho-login-bullets { display: none; }
    .ho-login-preview { padding: 14px; margin-bottom: 18px; }
    .ho-login-preview-row { grid-template-columns: 44px 1fr auto; padding: 10px; gap: 8px; }
    .ho-login-preview-col-key { font-size: 11px; }
    .ho-login-preview-col-name { font-size: 12px; gap: 8px; }
    .ho-login-preview-folder { width: 24px; height: 24px; }
    .ho-login-preview-pill { font-size: 9.5px; padding: 3px 8px; }
    .ho-login-card-inner { max-width: 100%; }
    .ho-login-card-head { margin-bottom: 26px; }
    .ho-login-mark { width: 54px; height: 54px; }
    .ho-login-mark img { height: 30px; }
    .ho-login-card-head h1 { font-size: 23px; }
    .ho-discord-btn { padding: 12px 14px 12px 12px; gap: 12px; border-radius: 12px; }
    .ho-discord-btn-icon { width: 40px; height: 40px; font-size: 19px; }
    .ho-discord-btn-label .lead { font-size: 13.5px; }
    .ho-discord-btn-label .sub { font-size: 11px; }
    .ho-discord-btn-arrow { width: 28px; height: 28px; }
}

/* =============================================================================
   22. Status pages — 404, link-expired, anything else that needs a one-screen
       message in the Obsidian style.
   ============================================================================= */
body.ho-status-body {
    min-height: 100vh;
    min-height: 100svh;
    display: block;
    overflow-x: hidden;
}
body.ho-status-body::after {
    background:
        radial-gradient(720px 480px at 30% 20%, rgba(16, 185, 129, 0.10), transparent 60%),
        radial-gradient(620px 420px at 78% 78%, rgba(124, 58, 237, 0.07), transparent 60%);
}

.ho-status-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    position: relative;
}

.ho-status-card {
    width: 100%;
    max-width: 720px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: hoStatusIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes hoStatusIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ho-status-card .ho-eyebrow {
    margin-bottom: 22px;
}

.ho-status-card h1 {
    font-size: clamp(28px, 4.6vw, 48px);
    font-weight: 700;
    line-height: 1.10;
    letter-spacing: -0.030em;
    margin: 0 0 18px 0;
    color: var(--pub-text);
}

.ho-status-card .lede {
    font-size: clamp(14px, 1.7vw, 16px);
    line-height: 1.7;
    color: var(--pub-text-soft);
    max-width: 540px;
    margin: 0 auto 36px;
    font-weight: 400;
}

/* ---- 404 large glyph (4 [orb] 4) ----
   Block-level flex (NOT inline-flex) so it sits on its own row inside the
   centered .ho-status-card and the eyebrow naturally falls below. */
.ho-status-glyph {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 30px;
    line-height: 1;
}
.ho-status-glyph .digit {
    font-size: clamp(80px, 14vw, 140px);
    font-weight: 800;
    letter-spacing: -0.06em;
    background: linear-gradient(180deg, #f4f5f7 0%, #6c7180 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.ho-status-glyph .orb {
    width: clamp(70px, 11vw, 110px);
    height: clamp(70px, 11vw, 110px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.05) 60%),
        linear-gradient(180deg, #14181f 0%, #0a0c12 100%);
    border: 1px solid var(--pub-hairline-3);
    color: var(--pub-accent);
    font-size: clamp(28px, 4.4vw, 42px);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 8px rgba(16, 185, 129, 0.04);
    position: relative;
    animation: hoStatusFloat 6s ease-in-out infinite;
}
.ho-status-glyph .orb::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.25);
    animation: hoStatusSpin 16s linear infinite;
}
@keyframes hoStatusFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes hoStatusSpin {
    to { transform: rotate(360deg); }
}

/* ---- Link-expired icon ---- */
.ho-status-icon {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 28px;
    display: flex; /* block-level so eyebrow falls onto its own line below */
    align-items: center;
    justify-content: center;
}
.ho-status-icon .icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(244, 63, 94, 0.32);
    animation: hoStatusSpin 22s linear infinite reverse;
}
.ho-status-icon .icon-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(244, 63, 94, 0.22);
}
.ho-status-icon .icon-shape {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 25%, rgba(244, 63, 94, 0.20), rgba(244, 63, 94, 0.04) 60%),
        linear-gradient(180deg, #16101a 0%, #0a0c12 100%);
    border: 1px solid rgba(244, 63, 94, 0.40);
    color: #fb7185;
    font-size: 28px;
    box-shadow:
        0 16px 40px rgba(244, 63, 94, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

/* ---- Tips list shown on link-expired ---- */
.ho-status-tips {
    display: grid;
    gap: 12px;
    margin: 0 auto 36px;
    max-width: 560px;
    text-align: left;
}
[dir="rtl"] .ho-status-tips { text-align: right; }

.ho-status-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--pub-hairline);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.005) 100%);
    transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}
.ho-status-tip:hover {
    border-color: var(--pub-hairline-3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.040) 0%, rgba(255, 255, 255, 0.010) 100%);
    transform: translateY(-1px);
}
.ho-status-tip-ico {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--pub-accent);
    font-size: 13px;
}
.ho-status-tip > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ho-status-tip strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pub-text);
    letter-spacing: 0.005em;
}
.ho-status-tip span {
    font-size: 13px;
    color: var(--pub-text-soft);
    line-height: 1.55;
}
.ho-status-tip a {
    color: var(--pub-accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(16, 185, 129, 0.45);
    transition: border-color 150ms ease, color 150ms ease;
}
.ho-status-tip a:hover {
    color: #6ee7b7;
    border-bottom-color: #6ee7b7;
}

/* ---- CTA row ---- */
.ho-status-ctas {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 100%;
}

/* Tablets — keep horizontal layout but pull everything in. */
@media (max-width: 768px) {
    .ho-status-shell { padding: 72px 18px 80px; }
    .ho-status-card .lede { font-size: 14px; }
    .ho-status-tips { max-width: 100%; }
}

/* Phones */
@media (max-width: 600px) {
    .ho-status-shell { padding: 64px 14px 70px; }
    .ho-status-card h1 { font-size: 24px; line-height: 1.16; }
    .ho-status-card .lede { font-size: 13px; margin-bottom: 26px; }

    .ho-login-back {
        top: 14px; left: 14px;
        padding: 7px 11px;
        font-size: 11.5px;
    }
    .ho-login-back span { display: none; }

    /* 404 glyph — shrink and tighten gap so the trio still fits one row. */
    .ho-status-glyph { gap: 6px; margin-bottom: 22px; }
    .ho-status-glyph .digit { font-size: clamp(60px, 22vw, 92px); }
    .ho-status-glyph .orb { width: clamp(56px, 18vw, 80px); height: clamp(56px, 18vw, 80px); font-size: clamp(22px, 7vw, 32px); }

    /* Link-expired icon */
    .ho-status-icon { width: 88px; height: 88px; margin-bottom: 22px; }
    .ho-status-icon .icon-shape { width: 58px; height: 58px; font-size: 22px; }

    /* Tips list */
    .ho-status-tips { gap: 10px; margin-bottom: 30px; }
    .ho-status-tip { padding: 12px 14px; gap: 12px; }
    .ho-status-tip-ico { width: 30px; height: 30px; font-size: 12px; }
    .ho-status-tip strong { font-size: 13px; }
    .ho-status-tip span { font-size: 12.5px; }

    /* CTA row stacks on mobile */
    .ho-status-ctas {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        gap: 8px;
    }
    .ho-status-ctas .ho-btn { width: 100%; justify-content: center; }

    /* Link-discord stage shrinks; bridge tightens. */
    .ho-link-stage { gap: 8px; margin-bottom: 22px; padding-top: 12px; }
    .ho-link-node { width: 60px; height: 60px; border-radius: 16px; font-size: 24px; }
    .ho-link-node svg { width: 24px; height: 24px; }
    .ho-link-node-tag { font-size: 8.5px; bottom: -16px; letter-spacing: 0.14em; }
    .ho-link-bridge { width: 64px; height: 26px; }
    .ho-link-bridge-icon { width: 24px; height: 24px; font-size: 9.5px; }
    .ho-link-bridge-line { background-size: 9px 2px; }

    .ho-link-card { padding: 0; }
    .ho-link-actions { max-width: 100%; }
    .ho-link-alert,
    .ho-link-bullets { max-width: 100%; }
    .ho-link-bullets li { font-size: 12.5px; gap: 10px; }
    .ho-link-bullet-ico { width: 20px; height: 20px; font-size: 8.5px; }

    /* Picker glyph */
    .ho-picker-glyph { width: 84px; height: 84px; margin-bottom: 22px; }
    .ho-picker-glyph-mark { width: 56px; height: 56px; }
    .ho-picker-glyph-mark svg { width: 24px; height: 24px; }

    /* Picker rows */
    .ho-account-list { max-width: 100%; gap: 8px; margin-bottom: 22px; }
    .ho-account-item {
        padding: 12px;
        gap: 12px;
        border-radius: 12px;
    }
    .ho-account-item-pic { width: 42px; height: 42px; }
    .ho-account-item-name { font-size: 13.5px; }
    .ho-account-item-email { font-size: 11.5px; }
    .ho-account-item-role,
    .ho-account-item-tag { padding: 2px 7px; font-size: 9px; }
    .ho-account-item-arrow { width: 28px; height: 28px; }
    .ho-account-item:hover { transform: none; } /* avoid hover lift on touch */

    /* Eyebrow inside status cards: keep wrap-friendly on small screens */
    .ho-status-eyebrow,
    .ho-status-card .ho-eyebrow {
        font-size: 9.5px;
        padding: 5px 11px;
        letter-spacing: 0.14em;
    }
}

/* Tiny phones — extra-compact layout (Galaxy Fold-class). */
@media (max-width: 380px) {
    .ho-status-shell { padding: 60px 10px 64px; }
    .ho-status-card h1 { font-size: 22px; }
    .ho-status-card .lede { font-size: 12.5px; }

    .ho-status-glyph { gap: 4px; }
    .ho-link-stage { gap: 6px; }
    .ho-link-node { width: 52px; height: 52px; border-radius: 14px; font-size: 20px; }
    .ho-link-node svg { width: 20px; height: 20px; }
    .ho-link-bridge { width: 46px; }
    .ho-link-bridge-icon { width: 22px; height: 22px; font-size: 9px; }

    .ho-status-tip { padding: 10px 12px; gap: 10px; }
    .ho-status-tip strong { font-size: 12.5px; }
    .ho-status-tip span { font-size: 12px; }

    .ho-discord-btn { padding: 11px 12px 11px 10px; gap: 10px; }
    .ho-discord-btn-icon { width: 36px; height: 36px; font-size: 18px; }
    .ho-discord-btn-arrow { width: 26px; height: 26px; }

    .ho-account-item { padding: 10px; gap: 10px; }
    .ho-account-item-pic { width: 38px; height: 38px; }
}

/* =============================================================================
   23. Google sign-in button — sits on the login page directly under the
       Discord button. Light surface to mirror Google brand expectations,
       still consistent with the obsidian frame around it.
   ============================================================================= */
.ho-google-btn {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 12px 14px;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid var(--pub-hairline-3);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 244, 246, 0.96) 100%);
    color: #1f2937;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    overflow: hidden;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 220ms ease,
                box-shadow 220ms ease,
                background 220ms ease;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ho-google-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    border-color: #d1d5db;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.30);
}
.ho-google-btn:active { transform: translateY(0); }

.ho-google-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.ho-google-btn-icon svg { display: block; }

.ho-google-btn-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ho-google-btn-label .lead {
    font-size: 14.5px;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.005em;
    line-height: 1.3;
}
.ho-google-btn-label .sub {
    font-size: 11.5px;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 0.005em;
    line-height: 1.3;
}
.ho-google-btn-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    flex-shrink: 0;
    font-size: 11px;
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 220ms ease;
}
.ho-google-btn:hover .ho-google-btn-arrow {
    transform: translateX(3px);
    background: #fff;
}

@media (max-width: 600px) {
    .ho-google-btn { padding: 11px 14px 11px 12px; gap: 12px; border-radius: 12px; }
    .ho-google-btn-icon { width: 36px; height: 36px; }
    .ho-google-btn-icon svg { width: 20px; height: 20px; }
    .ho-google-btn-label .lead { font-size: 13.5px; }
    .ho-google-btn-label .sub { font-size: 11px; }
    .ho-google-btn-arrow { width: 26px; height: 26px; }
}

/* =============================================================================
   24. Link-Discord page (the "you must connect Discord" screen the user is
       parked on between Google sign-in and account creation). Reuses the
       .ho-status-shell from §22 plus a few page-specific extras.
   ============================================================================= */
.ho-link-card {
    max-width: 640px;
}

/* Stage = Google node — animated bridge — Discord node, centred above the
   eyebrow. Uses display:flex with margin:auto so it sits on its own line
   (the previous inline-flex flowed next to the eyebrow which broke the
   layout). */
.ho-link-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 26px;
    max-width: 100%;
    flex-wrap: nowrap;
    padding-top: 14px; /* leaves room for the .ho-link-node-tag */
}

.ho-link-node {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    flex-shrink: 0;
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: hoLinkFloat 5s ease-in-out infinite;
}
.ho-link-node.is-discord { animation-delay: 0.6s; }
@keyframes hoLinkFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
.ho-link-node.is-google {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}
.ho-link-node.is-google svg { display: block; }
.ho-link-node.is-discord {
    background: linear-gradient(180deg, #5865F2 0%, #4752C4 100%);
}
/* Soft pulse glow behind each node */
.ho-link-node-glow {
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(50% 50% at 50% 50%, rgba(16,185,129,0.20), transparent 70%);
    animation: hoLinkGlow 3.2s ease-in-out infinite;
}
.ho-link-node.is-discord .ho-link-node-glow {
    background: radial-gradient(50% 50% at 50% 50%, rgba(88,101,242,0.35), transparent 70%);
    animation-delay: 0.6s;
}
@keyframes hoLinkGlow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 0.95; transform: scale(1.05); }
}
/* Tiny brand label below each node */
.ho-link-node-tag {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translateX(-50%);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pub-text-muted);
    white-space: nowrap;
}

/* Bridge — animated dashed line + central link icon. */
.ho-link-bridge {
    position: relative;
    width: 110px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ho-link-bridge-line {
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background-image: linear-gradient(90deg, var(--pub-accent-line) 50%, transparent 50%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    animation: hoLinkDash 1.4s linear infinite;
    opacity: 0.85;
}
@keyframes hoLinkDash {
    from { background-position: 0 0; }
    to   { background-position: 12px 0; }
}
.ho-link-bridge-icon {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pub-bg-soft);
    border: 1px solid var(--pub-hairline-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pub-accent);
    font-size: 11px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(5, 6, 8, 1), 0 0 18px rgba(16, 185, 129, 0.30);
}

/* Eyebrow inside .ho-status-card — force its own row so it doesn't sit
   beside the stage element above. */
.ho-status-eyebrow,
.ho-status-card .ho-eyebrow {
    display: inline-flex;
    margin-bottom: 18px;
}

/* Inline email "chip" used in the lede paragraph. */
.ho-link-email {
    display: inline-block;
    color: var(--pub-text);
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pub-hairline);
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.94em;
    letter-spacing: 0.005em;
    line-height: 1.5;
}

.ho-link-actions {
    margin: 0 auto 26px;
    max-width: 520px;
}

.ho-link-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 0 auto 22px;
    max-width: 520px;
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
}
[dir="rtl"] .ho-link-alert { text-align: right; }
.ho-link-alert.is-danger {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.30);
    color: #fecaca;
}
.ho-link-alert i {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #fb7185;
}
.ho-link-alert strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 13.5px;
}
.ho-link-alert span { word-break: break-word; }
.ho-link-alert code {
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    word-break: break-all;
}

.ho-link-bullets {
    list-style: none;
    margin: 0 auto 22px;
    padding: 0;
    max-width: 520px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
[dir="rtl"] .ho-link-bullets { text-align: right; }
.ho-link-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--pub-text-soft);
    line-height: 1.55;
}
.ho-link-bullet-ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.30);
    color: var(--pub-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-top: 1px;
}

.ho-status-fineprint {
    font-size: 12px;
    color: var(--pub-text-muted);
    text-align: center;
    margin: 0;
}
.ho-status-fineprint a {
    color: var(--pub-text-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 150ms ease;
}
.ho-status-fineprint a:hover { color: var(--pub-text); }

/* =============================================================================
   25. Account picker — shown when a Google email maps to multiple existing
       accounts (e.g. someone with both `mail@gmail.com` and `mail+x@gmail.com`).
   ============================================================================= */
.ho-picker-card { max-width: 600px; }

/* Big Google glyph at the top of the picker — stand-in for the linked-flow
   icon used on /link-discord. Block-level flex so the eyebrow sits below. */
.ho-picker-glyph {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ho-picker-glyph-mark {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}
.ho-picker-glyph-mark svg { display: block; }
.ho-picker-glyph-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.30);
    animation: hoStatusSpin 14s linear infinite;
}
.ho-picker-glyph-orbit::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.ho-account-list {
    display: grid;
    gap: 10px;
    margin: 4px auto 24px;
    max-width: 520px;
    text-align: left;
}
[dir="rtl"] .ho-account-list { text-align: right; }

.ho-account-item {
    --idx: 0;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px 14px 14px;
    border: 1px solid var(--pub-hairline-2);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.030) 0%, rgba(255, 255, 255, 0.008) 100%);
    color: var(--pub-text);
    cursor: pointer;
    text-align: inherit;
    width: 100%;
    font-family: inherit;
    overflow: hidden;
    transition:
        border-color 220ms ease,
        background 220ms ease,
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 220ms ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
    animation: hoPickerIn 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--idx) * 70ms + 40ms);
}
@keyframes hoPickerIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Left-edge accent rail that lights up on hover. */
.ho-account-item::before {
    content: '';
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--pub-accent);
    opacity: 0;
    transform: scaleY(0.4);
    transform-origin: center;
    transition: opacity 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] .ho-account-item::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }

.ho-account-item:hover {
    border-color: var(--pub-hairline-3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.060) 0%, rgba(255, 255, 255, 0.018) 100%);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.ho-account-item:hover::before {
    opacity: 1;
    transform: scaleY(1);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
}
.ho-account-item:focus-visible {
    outline: none;
    border-color: var(--pub-accent-line);
    box-shadow: 0 0 0 3px var(--pub-accent-soft);
}

.ho-account-item-pic {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}
.ho-account-item-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--pub-surface-2);
    border: 1px solid var(--pub-hairline-2);
    object-fit: cover;
    display: block;
    transition: border-color 220ms ease;
}
.ho-account-item:hover .ho-account-item-avatar { border-color: var(--pub-accent-line); }

.ho-account-item-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ho-account-item-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.ho-account-item-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--pub-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.005em;
    max-width: 100%;
}

.ho-account-item-role {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--pub-hairline-2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--pub-text-soft);
    line-height: 1.3;
    flex-shrink: 0;
}
.ho-account-item-role.is-owner {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.30);
    color: #c4b5fd;
}
.ho-account-item-role.is-admin {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.30);
    color: var(--pub-accent);
}
.ho-account-item-role.is-seller {
    background: rgba(56, 189, 248, 0.10);
    border-color: rgba(56, 189, 248, 0.30);
    color: #38bdf8;
}
.ho-account-item-role.is-member {
    /* default styling */
}

.ho-account-item-tag {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.30);
    color: var(--pub-accent);
    flex-shrink: 0;
}

.ho-account-item-email {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--pub-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}
.ho-account-item-email i {
    font-size: 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

.ho-account-item-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pub-hairline-2);
    color: var(--pub-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    transition:
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
        background 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}
.ho-account-item:hover .ho-account-item-arrow {
    transform: translateX(4px);
    background: var(--pub-accent);
    color: #021b12;
    border-color: var(--pub-accent);
}
[dir="rtl"] .ho-account-item:hover .ho-account-item-arrow {
    transform: translateX(-4px) rotate(180deg);
}
[dir="rtl"] .ho-account-item-arrow i { transform: rotate(180deg); }
/* .ho-link-email + picker/link-discord mobile rules live in §22 above. */
