/* ==============================================================================
   OATH RLV Collar System - 2026 Enterprise Luxury Glassmorphic Web UI
   Standards: ADA Section 508, WCAG 2.2 AA, European EN 301 549 Compliant
   Design Language: 2026 Obsidian Glass, Tactile Haptics & Responsive Mobile Architecture
   ============================================================================== */

:root {
    /* 2026 Obsidian Glass Palette */
    --bg-base: #08080c;
    --bg-surface: #101018;
    --bg-panel: rgba(18, 18, 28, 0.72);
    --bg-panel-solid: #131320;
    --bg-card: rgba(26, 26, 40, 0.65);
    --bg-card-hover: rgba(38, 38, 58, 0.85);
    --bg-subpanel: rgba(20, 20, 32, 0.8);
    --bg-input: rgba(12, 12, 18, 0.85);

    /* Text & Hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #b0b0cc;
    --text-muted: #757590;

    /* Accents - 2026 Cyber Luxury Neon */
    --accent-purple: #c084fc;
    --accent-purple-glow: rgba(192, 132, 252, 0.35);
    --accent-teal: #2dd4bf;
    --accent-teal-glow: rgba(45, 212, 191, 0.35);
    --accent-pink: #f43f5e;
    --accent-pink-glow: rgba(244, 63, 94, 0.35);
    --accent-danger: #ef4444;
    --accent-gold: #fbbf24;

    /* Glass Borders & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-glow: rgba(192, 132, 252, 0.4);
    --glass-blur: blur(20px) saturate(190%);

    --focus-ring: 0 0 0 3px #2dd4bf, 0 0 12px rgba(45, 212, 191, 0.6);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 24px var(--accent-purple-glow);
    --shadow-pink: 0 0 24px var(--accent-pink-glow);
}

/* Accessibility: High Contrast & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 132, 252, 0.28) rgba(15, 15, 24, 0.7);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
*::-webkit-scrollbar-track {
    background: rgba(15, 15, 24, 0.7);
}
*::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.28);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 132, 252, 0.55);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Helvetica, Arial, sans-serif;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 15% 15%, rgba(192, 132, 252, 0.07) 0px, transparent 50%),
        radial-gradient(at 85% 85%, rgba(45, 212, 191, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(244, 63, 94, 0.03) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* WCAG 2.4.1 Skip Link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 10px;
    background: var(--accent-teal);
    color: #000;
    padding: 10px 18px;
    z-index: 10000;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus {
    top: 12px;
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Focus Indicators */
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* 2026 Glassmorphic Header */
.glass-header {
    background: rgba(12, 12, 18, 0.82);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-glyph {
    color: var(--accent-purple);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 6px var(--accent-purple));
    animation: glyphSpin 10s infinite linear;
}

@keyframes glyphSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.badge-glow {
    background: rgba(192, 132, 252, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.badge-online {
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 8px var(--accent-teal);
    animation: pulseDot 2s infinite ease-in-out;
}

.pulse-dot-red {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #fff;
    animation: pulseDot 1s infinite ease-in-out;
    display: inline-block;
    margin-right: 4px;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px 4px 4px;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.user-info-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #eee;
}

.role-pill {
    background: rgba(192, 132, 252, 0.2);
    color: var(--accent-purple);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Modern Select Dropdown */
.select-modern {
    background: var(--bg-input);
    color: #fff;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.select-modern:hover {
    border-color: var(--accent-purple);
}

/* Glass Buttons */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.btn-pink {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.35);
    color: #ff8099;
}
.btn-pink:hover {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 16px var(--accent-pink-glow);
}

.btn-admin {
    background: rgba(192, 132, 252, 0.15);
    border-color: rgba(192, 132, 252, 0.35);
    color: var(--accent-purple);
}
.btn-admin:hover {
    background: var(--accent-purple);
    color: #000;
    box-shadow: 0 0 16px var(--accent-purple-glow);
}

.btn-panic {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: 1px solid #f87171;
    color: #fff;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    animation: panicSiren 2s infinite ease-in-out;
}

@keyframes panicSiren {
    0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.8); }
}

/* 911 Emergency Siren Banner */
.emergency-banner {
    background: linear-gradient(90deg, #b91c1c, #ef4444, #b91c1c);
    background-size: 200% 200%;
    animation: emergencyPulse 2s infinite ease-in-out;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

.emergency-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.emergency-pulse-icon {
    font-size: 1.3rem;
    animation: pulseDot 0.8s infinite;
}

/* Floating Sticky Target Bar */
.target-status-bar {
    background: rgba(14, 14, 22, 0.9);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 57px;
    z-index: 900;
    font-size: 0.85rem;
}

.target-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 8px var(--accent-purple);
}

.badge-count {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
}

.target-status-actions {
    display: flex;
    gap: 8px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-weight: 600;
    border: 1px solid var(--border-medium);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: all 0.15s;
}

.btn-party {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #ff8099;
}
.btn-party:hover {
    background: var(--accent-pink);
    color: #fff;
}

/* Main Content Grid */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 24px 80px 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.command-panel {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.card-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-purple);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Selection Bar */
.selection-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
}

.selection-count-pill {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.selection-count-pill span {
    color: var(--accent-teal);
    font-weight: 800;
}

.selection-buttons {
    display: flex;
    gap: 6px;
}

.btn-ghost-sm {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-ghost-sm:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Wearers List Items */
.wearer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 4px;
}

.wearer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 52px;
}

.wearer-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.wearer-item.selected {
    background: rgba(192, 132, 252, 0.12);
    border-color: var(--accent-purple);
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.25);
}

.wearer-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wearer-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.wearer-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.wearer-type-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag-neck { background: rgba(45, 212, 191, 0.2); color: var(--accent-teal); }
.tag-clit_ring { background: rgba(244, 63, 94, 0.2); color: var(--accent-pink); }
.tag-nipple_piercings { background: rgba(192, 132, 252, 0.2); color: var(--accent-purple); }
.tag-penis_piercing { background: rgba(251, 191, 36, 0.2); color: var(--accent-gold); }

.wearer-meta {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Control Tabs Container - Non-sliding, wrapping luxury pills */
.control-tabs-scroll-container {
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding-bottom: 0;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.control-tabs-scroll-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.control-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0 !important;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.control-tabs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    user-select: none;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.25), rgba(168, 85, 247, 0.12));
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(192, 132, 252, 0.5);
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab-highlight {
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    border-color: rgba(244, 63, 94, 0.3);
}
.tab-highlight:hover {
    background: rgba(244, 63, 94, 0.22);
    color: #fff;
    border-color: rgba(244, 63, 94, 0.5);
    transform: translateY(-1px);
}
.tab-highlight.active {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    border-color: #fda4af;
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.45);
}

/* Action Grids & Buttons */
.pane-section-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.pane-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.pane-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.btn-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    color: #ffffff;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 52px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--accent-purple);
}

.btn-icon-symbol {
    font-size: 1.2rem;
}

.btn-primary {
    background: var(--accent-purple);
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
}
.btn-primary:hover {
    box-shadow: 0 0 16px var(--accent-purple-glow);
}

.btn-teal {
    background: rgba(45, 212, 191, 0.18);
    border-color: rgba(45, 212, 191, 0.4);
    color: var(--accent-teal);
}
.btn-teal:hover {
    background: var(--accent-teal);
    color: #000;
    box-shadow: 0 0 16px var(--accent-teal-glow);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
}
.btn-danger:hover {
    background: var(--accent-danger);
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.btn-full { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* Subpanels */
.subpanel-card {
    background: var(--bg-subpanel);
    border: 1px solid var(--border-subtle);
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.subpanel-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subpanel-pink { color: var(--accent-pink); }
.subpanel-teal { color: var(--accent-teal); }
.subpanel-gold { color: var(--accent-gold); }

.subpanel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* RLV Restrictions Grid */
.rlv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.rlv-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rlv-label {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modern Switch / Toggles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .2s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal-glow);
}
input:checked + .slider:before {
    transform: translateX(20px);
}

.switch-labeled {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Callouts */
.info-callout {
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.25);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 10px;
    font-size: 0.82rem;
    color: #b0e0d8;
    margin-top: 14px;
}

.dual-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.control-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==============================================================================
   2026 LUXURY HAPTIC CONTROLS CENTER (Singular, Plural, Party Mode)
   ============================================================================== */

.haptic-deck {
    margin-top: 10px;
}

.haptic-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.haptic-mode-pills {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.pill-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pill-party.active {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-pink-glow);
}

.glass-card {
    background: rgba(20, 20, 32, 0.7);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

/* Singular Mode Styling */
.haptic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.toy-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-cyan {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-teal);
    box-shadow: 0 0 12px var(--accent-teal);
    animation: pulseDot 1.5s infinite;
}

.toy-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

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

.toy-badges {
    display: flex;
    gap: 8px;
}

.badge-battery {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.badge-latency {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
}

/* Waveform Canvas */
.waveform-canvas-container {
    background: rgba(8, 8, 14, 0.9);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.canvas-header-overlay {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-teal);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.waveform-canvas {
    width: 100%;
    height: 90px;
    display: block;
}

/* Intensity Cluster */
.intensity-display-cluster {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .intensity-display-cluster {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* ==============================================================================
   INTERACTIVE ROTARY TACTILE DIAL & LATCHING ENGINE
   ============================================================================== */

.tactile-dial-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.tactile-dial-wrapper:hover {
    background: rgba(255, 255, 255, 0.02);
}

.tactile-dial-wrapper:active,
.tactile-dial-wrapper.is-dragging {
    cursor: grabbing;
}

.dial-outer-housing {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dial-svg-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform: rotate(135deg);
    transform-origin: 50% 50%;
}

.dial-track-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 235.62 314.16;
}

.dial-progress-bar {
    fill: none;
    stroke: url(#dialGrad);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 235.62 314.16;
    stroke-dashoffset: 235.62;
    transition: stroke-dashoffset 0.04s ease-out;
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7));
}

.dial-knob-body {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2c2c40 0%, #171724 65%, #0d0d16 100%);
    border: 2px solid rgba(192, 132, 252, 0.35);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.7),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 6px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(192, 132, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: 50% 50%;
    transition: transform 0.04s ease-out, box-shadow 0.2s, border-color 0.2s;
    touch-action: none;
}

.tactile-dial-wrapper.is-dragging .dial-knob-body {
    border-color: var(--accent-pink);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.9),
        0 0 24px rgba(244, 63, 94, 0.5),
        inset 0 0 12px rgba(244, 63, 94, 0.3);
}

.dial-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 14px;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff, 0 0 16px var(--accent-purple);
}

.tactile-dial-wrapper.is-dragging .dial-notch {
    background: #ff4d6d;
    box-shadow: 0 0 12px #ff4d6d, 0 0 20px #ff4d6d;
}

.dial-center-cap {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #0d0d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9);
    transition: transform 0.04s ease-out;
}

.intensity-big-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dial-latch-badge {
    font-size: 0.56rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 3px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.dial-latch-badge.is-latched {
    color: var(--accent-teal);
    text-shadow: 0 0 8px rgba(45, 212, 191, 0.6);
}

.dial-sub-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
}

.intensity-sub-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-purple);
    letter-spacing: 0.5px;
}

.dial-hint-text {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.slider-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.slider-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.latch-indicator-pill {
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent-teal);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(45, 212, 191, 0.3);
    transition: all 0.2s;
}

.latch-indicator-pill.is-hot {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.waveform-canvas-container {
    position: relative;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.waveform-canvas-container.is-dragging {
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
}

.canvas-meta-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.canvas-hint-pill {
    font-size: 0.65rem;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.12);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(192, 132, 252, 0.25);
    font-weight: 700;
}

.intensity-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intensity-bar-meter {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.intensity-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple), var(--accent-pink));
    transition: width 0.08s ease-out;
}

/* Luxury Range Input */
.luxury-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.luxury-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 12px var(--accent-purple);
    cursor: pointer;
    transition: transform 0.1s;
}
.luxury-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.intensity-scale-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Pattern Buttons */
.pattern-presets-section {
    margin-bottom: 20px;
}

.pattern-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.btn-pattern {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-medium);
    color: #eee;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.btn-pattern:hover {
    background: rgba(192, 132, 252, 0.15);
    border-color: var(--accent-purple);
    color: #fff;
    transform: translateY(-1px);
}

/* Plural Mode Styling */
.plural-master-bar {
    margin-bottom: 16px;
}

.master-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.master-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.master-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.plural-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channel-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.channel-intensity-badge {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Party Mode Styling */
.party-deck-card {
    border: 2px solid var(--accent-pink);
    box-shadow: 0 0 28px rgba(244, 63, 94, 0.35);
    animation: partyBorderGlow 4s infinite alternate ease-in-out;
}

@keyframes partyBorderGlow {
    0% { border-color: rgba(244, 63, 94, 0.5); box-shadow: 0 0 15px rgba(244, 63, 94, 0.2); }
    100% { border-color: var(--accent-pink); box-shadow: 0 0 35px rgba(244, 63, 94, 0.6); }
}

.party-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.party-neon-pill {
    background: var(--accent-pink);
    color: #fff;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.party-headline {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin-top: 4px;
}

.party-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-party-burst {
    background: linear-gradient(135deg, var(--accent-pink), #e11d48);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
    transition: transform 0.1s;
}
.btn-party-burst:active {
    transform: scale(0.96);
}

.party-visualizer-wrap {
    background: #050508;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

.party-canvas {
    width: 100%;
    height: 120px;
    display: block;
}

.party-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.party-mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.btn-party-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #eee;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.btn-party-action.active {
    background: rgba(244, 63, 94, 0.25);
    border-color: var(--accent-pink);
    color: #fff;
    font-weight: 800;
}

/* ==============================================================================
   2026 REAL ENTERPRISE ADMIN CONTROL CENTER (/admin)
   ============================================================================== */

.admin-dialog {
    max-width: 960px;
    width: 95vw;
}

.modern-dialog {
    background: rgba(14, 14, 22, 0.95);
    backdrop-filter: blur(28px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: #fff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 32px rgba(192, 132, 252, 0.15);
}

.modern-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-bottom: 16px;
    overflow: visible;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
    background: rgba(192, 132, 252, 0.2);
    color: var(--accent-purple);
    font-weight: 800;
    border: 1px solid rgba(192, 132, 252, 0.4);
}

.admin-tab-pane {
    animation: fadeIn 0.2s ease-out;
}

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

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.metric-val {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 4px 0;
}

.metric-sub {
    font-size: 0.72rem;
    color: #777;
}

.text-teal { color: var(--accent-teal); }
.text-purple { color: var(--accent-purple); }
.text-pink { color: var(--accent-pink); }
.text-gold { color: var(--accent-gold); }

.gateway-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.gateway-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.gateway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.gateway-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.badge-status-online {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

.gateway-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Admin Tables */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-table-container {
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.admin-table thead tr {
    background: rgba(20, 20, 32, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table th {
    padding: 10px 12px;
    color: var(--accent-purple);
    font-weight: 700;
    border-bottom: 1px solid var(--border-medium);
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Diagnostics & Secrets */
.diagnostics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.diag-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.diag-card h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 6px;
}

.diag-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.diag-input-row {
    display: flex;
    gap: 8px;
}

.diag-result-text {
    display: block;
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--accent-teal);
    font-weight: 600;
}

.secrets-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.secret-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    border: 1px solid var(--border-subtle);
}

/* ==============================================================================
   GLOBAL MANDATORY STATUTORY DISCLAIMERS MODAL & FOOTER (USA / EU / UK / INT)
   ============================================================================== */

.legal-dialog {
    max-width: 820px;
    width: 95vw;
}

.legal-content-scroll {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.legal-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-card p {
    font-size: 0.82rem;
    color: #c8c8d8;
    line-height: 1.6;
    margin-bottom: 6px;
}

.legal-card ul {
    margin-left: 20px;
    font-size: 0.8rem;
    color: #b0b0cc;
    line-height: 1.5;
}

/* Glass Footer */
.glass-footer {
    background: rgba(10, 10, 16, 0.9);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-subtle);
    padding: 30px 24px 20px 24px;
    margin-top: auto;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--accent-purple);
    margin-bottom: 6px;
}

.footer-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-version {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-col a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links-col a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

.footer-bottom-bar {
    max-width: 1400px;
    margin: 16px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.compliance-tags {
    color: var(--accent-purple);
    font-weight: 600;
}

/* ==============================================================================
   2026 ADAPTIVE MOBILE BOTTOM NAVIGATION DOCK & RESPONSIVE LAYOUT
   ============================================================================== */

.mobile-nav-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(12, 12, 20, 0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-top: 1px solid var(--border-medium);
    z-index: 2000;
    padding: 0 10px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    min-width: 54px;
    min-height: 48px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.mobile-nav-item svg {
    transition: transform 0.15s;
}

.mobile-nav-item.active {
    color: var(--accent-purple);
}
.mobile-nav-item.active svg {
    transform: scale(1.15);
}

.mobile-nav-item.item-toys.active {
    color: var(--accent-pink);
}

.mobile-nav-item.item-emergency {
    color: #f87171;
}

.mobile-nav-dot-red {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-danger);
    box-shadow: 0 0 10px var(--accent-danger);
    animation: panicSiren 1s infinite;
}

.drawer-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1400;
}

@media (max-width: 768px) {
    /* Main Layout on Mobile */
    .main-content {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 6px 4px 84px 4px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .command-panel {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 8px 6px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .control-tabs-scroll-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: visible !important;
        scrollbar-width: none !important;
    }
    .control-tabs-scroll-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .control-tabs {
        flex-wrap: wrap !important;
        min-width: 0 !important;
        gap: 6px !important;
        padding-bottom: 10px !important;
    }

    /* Mobile Bottom Navigation Dock Enabled */
    .mobile-nav-dock {
        display: flex;
    }

    /* Sliding Wearers Drawer */
    .wearers-panel {
        position: fixed;
        bottom: 64px;
        left: 0;
        right: 0;
        top: 60px;
        z-index: 1500;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        background: rgba(14, 14, 24, 0.98);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    }

    .wearers-panel.drawer-open {
        transform: translateY(0%);
    }

    .drawer-overlay.drawer-open {
        display: block;
    }

    /* Header Compact on Mobile */
    .glass-header {
        padding: 8px 10px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: hidden;
    }

    .brand-logo-wrap {
        gap: 4px;
    }

    .brand-logo {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }

    .brand-badge {
        display: none;
    }

    .user-profile-badge {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    /* Hide desktop-only buttons that are redundant with bottom dock */
    .header-actions .btn-glass.btn-pink,
    .header-actions .btn-glass.btn-admin,
    .header-actions button[onclick*="openHelpModal"],
    .header-actions .btn-panic {
        display: none !important;
    }

    /* Sleek touch role dropdown */
    .select-modern {
        padding: 6px 8px;
        font-size: 0.78rem;
        max-width: 175px;
    }

    /* Target Status Bar Compact */
    .target-status-bar {
        padding: 6px 10px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .target-status-info {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.76rem;
    }

    #target-summary {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
        display: inline-block;
        vertical-align: bottom;
    }

    .target-status-actions {
        display: flex;
        gap: 4px;
        flex-shrink: 0;
    }

    .btn-xs {
        padding: 4px 8px;
        font-size: 0.72rem;
    }

    /* Party Matrix Grid */
    .party-matrix-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Touch targets >= 44px */
    .btn-action, .tab-btn, .btn-glass {
        min-height: 44px;
    }

    /* ==============================================================
       HOUSEHOLD KEYS & TRUST MATRIX MOBILE SUITE
       ============================================================== */
    .household-header-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
        border-radius: var(--radius-sm);
        width: 100%;
        box-sizing: border-box;
    }

    .household-banner-left {
        gap: 10px;
    }

    .household-banner-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .household-banner-title {
        font-size: 1rem;
        line-height: 1.25;
    }

    .household-banner-quote {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .household-self-own-box {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .household-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .household-col {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 12px 10px;
        border-radius: var(--radius-sm);
    }

    .household-col-header {
        padding-bottom: 8px;
    }

    .household-col-title {
        font-size: 0.95rem;
    }

    .household-card-list {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 10px;
    }

    .household-member-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px;
        background: rgba(22, 22, 34, 0.88);
    }

    .household-card-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        margin-bottom: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .household-card-user {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }

    .household-avatar-circle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .household-user-names {
        min-width: 0;
        overflow: hidden;
    }

    .household-username {
        font-size: 0.86rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .household-sl-name {
        font-size: 0.68rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .household-badge-active,
    .household-badge-standby,
    .household-badge-revocable {
        font-size: 0.62rem;
        padding: 2px 6px;
        flex-shrink: 0;
        letter-spacing: 0.3px;
    }

    .household-perms-matrix {
        display: flex;
        flex-direction: column;
        gap: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .household-perm-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    .household-perm-row:last-child {
        border-bottom: none;
    }

    .household-perm-label {
        font-size: 0.78rem;
        color: #cbd5e1;
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1 1 auto;
        padding-right: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .oath-toggle-switch {
        width: 38px;
        height: 20px;
        flex-shrink: 0;
    }
    .oath-toggle-slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }
    .oath-toggle-switch input:checked + .oath-toggle-slider:before {
        transform: translateX(18px);
    }

    .household-add-member-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 8px;
        min-height: 40px;
        font-size: 0.8rem;
    }
}

/* ==============================================================================
   INTERACTIVE MOCK HUMAN MANNEQUIN & BONDAGE MATRIX STYLES (PRESERVED)
   ============================================================================== */

.bondage-workspace {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 960px) {
    .bondage-workspace {
        grid-template-columns: 1fr;
    }
}

.mannequin-container {
    background: #101018;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.mannequin-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #252535;
    padding-bottom: 6px;
}

.mannequin-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.4);
    text-transform: uppercase;
}

.badge-status.active {
    background: rgba(192, 132, 252, 0.2);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
    animation: badge-blink 1s infinite alternate;
}

@keyframes badge-blink {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.mannequin-canvas-wrap {
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
    position: relative;
}

.mannequin-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.mannequin-footer {
    margin-top: 8px;
    text-align: center;
}

.tip-text {
    font-size: 0.72rem;
    color: #888;
    font-style: italic;
}

.mannequin-node {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.mannequin-node .node-halo {
    fill: transparent;
    stroke: rgba(45, 212, 191, 0.3);
    stroke-width: 1.5;
    transition: all 0.2s ease;
}

.mannequin-node .node-dot {
    fill: #2dd4bf;
    stroke: #12121c;
    stroke-width: 1.5;
    transition: all 0.2s ease;
}

.mannequin-node .node-label {
    font-size: 7.5px;
    font-weight: 800;
    fill: #777790;
    letter-spacing: 0.5px;
    font-family: inherit;
    pointer-events: none;
    transition: fill 0.2s ease;
}

.mannequin-node:hover .node-halo {
    fill: rgba(45, 212, 191, 0.25);
    stroke: var(--accent-teal);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px var(--accent-teal));
}

.mannequin-node:hover .node-dot {
    fill: #ffffff;
}

.mannequin-node:hover .node-label {
    fill: var(--accent-teal);
    font-weight: 900;
}

.mannequin-node.selected-source .node-halo {
    fill: rgba(192, 132, 252, 0.4);
    stroke: var(--accent-purple);
    stroke-width: 3;
    animation: pulse-node 1.2s infinite alternate;
}

.mannequin-node.selected-source .node-dot {
    fill: #ffffff;
    filter: drop-shadow(0 0 6px var(--accent-purple));
}

.mannequin-node.selected-source .node-label {
    fill: var(--accent-purple);
    font-weight: 900;
}

.mannequin-node.is-tethered .node-dot {
    fill: var(--accent-pink);
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 0 6px var(--accent-pink));
}

.mannequin-node.is-tethered .node-halo {
    stroke: rgba(244, 63, 94, 0.5);
}

.mannequin-node.is-tethered .node-label {
    fill: var(--accent-pink);
}

@keyframes pulse-node {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 10px var(--accent-purple)); }
}

.tether-svg-line {
    fill: none;
    stroke-linecap: round;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tether-svg-line.style-chain {
    stroke: #e0e0f0;
    stroke-width: 3.5px;
    stroke-dasharray: 6 3;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
    animation: chain-glint 3s infinite linear;
}

.tether-svg-line.style-silk {
    stroke: #ff007f;
    stroke-width: 3px;
    filter: drop-shadow(0 0 8px #ff007f);
}

.tether-svg-line.style-rope {
    stroke: #d4a373;
    stroke-width: 4px;
    stroke-dasharray: 5 2;
    filter: drop-shadow(0 0 4px #8a5a36);
}

.tether-svg-line.style-leather {
    stroke: #991b1b;
    stroke-width: 4.5px;
    stroke-dasharray: 12 2;
    filter: drop-shadow(0 0 5px #dc2626);
}

@keyframes chain-glint {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 36; }
}

.bondage-console {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.console-box {
    background: var(--bg-subpanel);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.console-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.console-title {
    color: var(--accent-purple);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 700;
}

.source-indicator-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px dashed #444;
}

.source-prefix {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.source-point-tag {
    font-weight: 700;
    color: var(--accent-purple);
    font-size: 0.95rem;
}

.console-hint {
    font-size: 0.8rem;
    color: #aaa;
    margin: 6px 0 0 0;
}

.material-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.material-btn {
    background: #1e1e28;
    border: 1px solid #333345;
    color: #ccc;
    font-size: 0.75rem;
    padding: 8px 4px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-weight: 600;
    min-height: 38px;
}

.material-btn:hover {
    background: #28283a;
    border-color: #555;
    color: #fff;
}

.material-btn.active {
    background: rgba(192, 132, 252, 0.25);
    border-color: var(--accent-purple);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.35);
}

.target-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
    max-height: 155px;
    overflow-y: auto;
    padding-right: 4px;
}

.btn-target {
    background: #181824;
    border: 1px solid #2e2e40;
    color: #ddd;
    font-size: 0.75rem;
    padding: 6px 6px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    min-height: 36px;
    font-weight: 600;
}

.btn-target:hover {
    background: var(--accent-teal);
    color: #000;
    font-weight: 800;
    border-color: var(--accent-teal);
}

.bilateral-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 6px;
}

.btn-bilateral {
    font-size: 0.75rem;
    padding: 6px 10px;
    min-height: 36px;
    justify-content: flex-start;
    text-align: left;
    background: #1a1a24;
    border: 1px solid #2e2e40;
}

.btn-bilateral:hover {
    background: #252535;
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.active-tethers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
}

.tether-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-pink);
    font-size: 0.8rem;
    border-top: 1px solid #252535;
    border-right: 1px solid #252535;
    border-bottom: 1px solid #252535;
}

.tether-chip .chip-name {
    color: #eee;
    font-weight: 600;
}

.tether-chip .chip-style {
    color: var(--accent-teal);
    font-size: 0.7rem;
    font-style: italic;
    margin-left: 6px;
}

.tether-chip .chip-remove {
    background: transparent;
    border: none;
    color: var(--accent-danger);
    cursor: pointer;
    padding: 2px 6px;
    min-height: auto;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: background 0.15s;
}

.tether-chip .chip-remove:hover {
    background: rgba(239, 68, 68, 0.2);
}

.presets-summary {
    font-size: 0.85rem;
    color: var(--accent-purple);
    cursor: pointer;
    font-weight: 600;
    padding: 4px 0;
}

.placeholder-italic {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

/* Modals & Inputs */
.haptic-choice-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.haptic-choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    border: 1px solid var(--border-medium);
}

.choice-icon {
    font-size: 1.8rem;
}

.choice-info strong {
    display: block;
    font-size: 1rem;
}

.choice-info span {
    font-size: 0.8rem;
    color: #ccc;
}

.qr-box {
    margin: 16px auto;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-sm);
    max-width: 220px;
}

.qr-image {
    width: 100%;
    display: block;
}

.qr-instruction {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-weight: 700;
}

.intiface-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.dialog-actions-flex {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.consent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-subpanel);
    padding: 14px;
    border-radius: var(--radius-sm);
}

.emergency-override-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-danger);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.mfa-prompt {
    font-size: 0.9rem;
    color: var(--accent-teal);
    margin-bottom: 14px;
}

.mfa-input {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 6px;
    font-weight: 800;
}

.audit-badge {
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent-teal);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
}

.verify-banner {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   2026 CONTEXTUAL GLASSMORPHIC TOOLTIP & DEEP-DIVE KNOWLEDGE BASE
   ========================================================================== */

.glass-tooltip {
    position: fixed;
    z-index: 999999;
    max-width: 380px;
    background: rgba(15, 15, 24, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(192, 132, 252, 0.15);
    padding: 14px 16px;
    pointer-events: auto;
    animation: tooltipPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tooltipPop {
    from { opacity: 0; transform: scale(0.96) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.tooltip-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.2px;
}

.tooltip-cat-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(192, 132, 252, 0.15);
    color: var(--accent-purple);
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(192, 132, 252, 0.25);
    white-space: nowrap;
}

.tooltip-summary {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.tooltip-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

.tooltip-more-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.12), rgba(244, 114, 182, 0.12));
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: #f1f5f9;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.tooltip-more-btn:hover {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.25), rgba(244, 114, 182, 0.25));
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.3);
}

.tooltip-arrow {
    font-size: 0.9rem;
    color: var(--accent-teal);
    transition: transform 0.2s ease;
}

.tooltip-more-btn:hover .tooltip-arrow {
    transform: translateX(3px);
}

/* Deep-Dive Help Floating Popup */
.help-dialog:not([open]) {
    display: none !important;
}

.help-dialog[open],
.help-dialog.open {
    display: flex !important;
}

.help-dialog {
    position: fixed !important;
    width: 490px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 64px);
    top: 75px;
    right: 20px;
    left: auto;
    bottom: auto;
    margin: 0;
    z-index: 99999;
    background: rgba(13, 13, 20, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(192, 132, 252, 0.4);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(192, 132, 252, 0.2);
    flex-direction: column;
    padding: 14px 16px;
    color: var(--text-primary);
    resize: both;
    overflow: hidden;
}

.help-dialog::backdrop {
    background: transparent !important;
    pointer-events: none !important;
}

.help-dialog .modal-header {
    cursor: grab;
    user-select: none;
    padding-bottom: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.help-dialog .modal-header:active {
    cursor: grabbing;
}

.help-dialog .modal-title {
    font-size: 0.98rem;
    font-weight: 700;
}

.help-dialog .modal-subtitle {
    font-size: 0.72rem;
}

.help-drag-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0.75;
}

.help-sparkle-icon {
    font-size: 1.1rem;
}

.help-dialog-grid,
.help-dialog-body {
    display: flex;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.help-sidebar-col {
    width: 155px;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    padding-right: 8px;
    min-height: 0;
    flex-shrink: 0;
}

.help-search-wrap {
    margin-bottom: 6px;
}

.help-search-wrap input {
    font-size: 0.72rem;
    padding: 5px 7px;
}

.help-topics-nav {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.help-topic-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.help-topic-item:hover, .help-topic-item:focus-visible {
    background: rgba(192, 132, 252, 0.12);
    border-color: rgba(192, 132, 252, 0.35);
    color: #fff;
}

.topic-item-title {
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.topic-item-cat {
    font-size: 0.62rem;
    color: var(--text-muted);
}

.help-content-pane {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.help-section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 10px;
}

.help-sec-title {
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.help-sec-text {
    font-size: 0.73rem;
    line-height: 1.4;
    color: #cbd5e1;
    margin: 0 0 6px 0;
}

.help-how-to-box {
    background: rgba(45, 212, 191, 0.08);
    border-left: 3px solid var(--accent-teal);
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    line-height: 1.35;
    color: #e2e8f0;
}

.rlv-syntax-box {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--accent-teal);
    overflow-x: auto;
}

.integration-flow-box {
    background: rgba(244, 114, 182, 0.06);
    border: 1px dashed rgba(244, 114, 182, 0.35);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #f1f5f9;
}

.permissions-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.perm-pill {
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--accent-gold);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 12px;
}

.help-dialog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
    margin-top: 6px;
    flex-shrink: 0;
}

.help-footer-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .help-dialog {
        width: calc(100vw - 20px);
        height: 75vh;
        top: 60px;
        right: 10px;
        padding: 10px;
    }
    .help-dialog-grid,
    .help-dialog-body {
        flex-direction: column;
    }
    .help-sidebar-col {
        width: 100%;
        max-height: 110px;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding-right: 0;
        padding-bottom: 6px;
    }
}

/* ==============================================================================
   MANDATORY FIRST-LOGIN LEGAL COMPLIANCE GATE & FLORIDA LIABILITY WAIVER MODAL
   ============================================================================== */

.mandatory-legal-dialog {
    max-width: 1240px;
    width: 96vw;
    height: 92vh;
    max-height: 94vh;
    background: rgba(10, 10, 16, 0.98);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95), 0 0 48px rgba(192, 132, 252, 0.2);
    padding: 0;
    color: #fff;
    overflow: hidden;
}

.mandatory-legal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
}

.legal-gate-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

.legal-gate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 14px;
}

.gate-logo-badge {
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--accent-pink);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gate-main-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.gate-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.gate-mandatory-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.15), rgba(192, 132, 252, 0.1));
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 14px 0 12px 0;
}

.gate-mandatory-banner .banner-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.gate-mandatory-banner .banner-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #fecdd3;
}

.legal-gate-workspace {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
    margin-bottom: 14px;
}

.legal-gate-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 6px;
}

.gate-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #cbd5e1;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.gate-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(192, 132, 252, 0.3);
}

.gate-tab-btn.active {
    background: rgba(192, 132, 252, 0.16);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(192, 132, 252, 0.2);
}

.gate-tab-btn.agreed {
    border-left: 4px solid var(--accent-teal);
}

.tab-btn-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.tab-index-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.gate-tab-btn.active .tab-index-dot {
    background: var(--accent-purple);
    color: #000;
}

.tab-title-text {
    font-size: 0.84rem;
    font-weight: 700;
}

.tab-status-mini {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.legal-gate-panels {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 18px;
}

.gate-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.gate-panel.active {
    display: flex;
}

.panel-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.schedule-full-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.schedule-summary-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.scroll-progress-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.scroll-progress-pill.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.scroll-progress-pill.near-end {
    background: rgba(192, 132, 252, 0.2);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.4);
}

.scroll-progress-pill.complete {
    background: rgba(45, 212, 191, 0.18);
    color: var(--accent-teal);
    border: 1px solid rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.3);
}

.schedule-scroll-box {
    flex: 1;
    overflow-y: auto;
    background: rgba(5, 5, 8, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.schedule-scroll-box h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 0;
}

.schedule-scroll-box h4 {
    font-size: 0.92rem;
    color: var(--accent-purple);
    margin: 16px 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-scroll-box p {
    margin: 0 0 10px 0;
}

.schedule-scroll-box ul {
    margin: 0 0 12px 20px;
    padding: 0;
}

.schedule-scroll-box li {
    margin-bottom: 6px;
}

.legal-statutory-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.statutory-cite {
    font-size: 0.74rem;
    color: var(--accent-teal);
    font-weight: 700;
    font-family: monospace;
}

.all-caps-legal {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-left: 3px solid var(--accent-pink);
    border-radius: 4px;
}

.scroll-end-marker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 10px 0;
    color: var(--accent-teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.end-marker-line {
    flex: 1;
    height: 1px;
    background: rgba(45, 212, 191, 0.3);
}

.schedule-agreement-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    opacity: 0.6;
}

.schedule-agreement-row.unlocked {
    opacity: 1;
    background: rgba(45, 212, 191, 0.04);
    border-color: rgba(45, 212, 191, 0.3);
}

.agreement-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.agreement-checkbox-label input[disabled] {
    cursor: not-allowed;
}

.legal-schedule-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-teal);
    cursor: pointer;
    margin-top: 2px;
}

.agreement-label-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.84rem;
}

.agreement-sub-disclaimer {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.lock-indicator-badge {
    font-size: 0.74rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    white-space: nowrap;
    margin-left: 14px;
}

.lock-indicator-badge.unlocked {
    color: var(--accent-teal);
    background: rgba(45, 212, 191, 0.1);
    border-color: rgba(45, 212, 191, 0.3);
}

/* Master Signing Footer */
.legal-gate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-meta-cluster {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-counter-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agreed-counter-pill {
    background: rgba(192, 132, 252, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(192, 132, 252, 0.35);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
}

.master-instruction-text {
    font-size: 0.8rem;
    color: #94a3b8;
}

.legal-jurisdiction-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.btn-master-accept {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-master-accept.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
}

.btn-master-accept.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: #ffffff;
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.5);
    animation: masterPulse 2.5s infinite;
}

.btn-master-accept.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(244, 63, 94, 0.8);
}

@keyframes masterPulse {
    0% { box-shadow: 0 0 16px rgba(192, 132, 252, 0.4); }
    50% { box-shadow: 0 0 30px rgba(244, 63, 94, 0.7); }
    100% { box-shadow: 0 0 16px rgba(192, 132, 252, 0.4); }
}

/* Compliance Certificate Modal */
.cert-dialog {
    max-width: 760px;
    width: 95vw;
}

.cert-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 0 0 24px rgba(45, 212, 191, 0.1);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.cert-badge {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--accent-teal);
    letter-spacing: 1px;
}

.cert-hash-pill {
    font-size: 0.72rem;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    color: #94a3b8;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.cert-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-field.full-width {
    grid-column: span 2;
}

.cert-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cert-val {
    font-size: 0.84rem;
    color: #f1f5f9;
    font-weight: 600;
}

.cert-schedules-list h4 {
    font-size: 0.85rem;
    color: var(--accent-purple);
    margin: 0 0 8px 0;
}

.cert-schedules-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-schedules-list li {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .legal-gate-workspace {
        grid-template-columns: 1fr;
    }
    .legal-gate-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .gate-tab-btn {
        min-width: 140px;
    }
    .schedule-scroll-box {
        height: 320px;
    }
}

/* ==============================================================================
   OATH Enterprise Splash Landing Page (Minimalist Pure Logo & Continue)
   ============================================================================== */
.splash-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: radial-gradient(circle at 50% 45%, #101017 0%, #060609 65%, #020204 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.splash-fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-minimal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: default;
    animation: splashFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    cursor: pointer;
}

.splash-hero-logo {
    width: min(340px, 80vw);
    height: auto;
    max-height: 340px;
    object-fit: contain;
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.4));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.splash-hero-logo:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.7));
}

.btn-splash-continue {
    background: rgba(212, 175, 55, 0.08);
    color: #e5c158;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 14px 42px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.12);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.btn-splash-continue:hover {
    background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
    color: #08080c;
    border-color: #d4af37;
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px) scale(1.03);
}

.btn-splash-continue:active {
    transform: translateY(0) scale(0.98);
}

/* ==============================================================================
   Web Account Registration & Audit Ledger Binding
   ============================================================================== */
.create-account-dialog {
    max-width: 540px;
    width: 92vw;
}

.audit-bound-banner {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.audit-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.audit-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #34d399;
    animation: auditPulse 1.8s infinite;
}

@keyframes auditPulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.audit-timestamp {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: #94a3b8;
}

.audit-hash-text {
    font-family: var(--font-mono, monospace);
    font-size: 0.74rem;
    color: #f1f5f9;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #d4af37;
    margin-bottom: 6px;
}

.audit-notice-text {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
}

.reg-error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-top: 10px;
    line-height: 1.4;
}

@media (max-width: 680px) {
    .splash-card {
        padding: 24px 18px;
    }
    .splash-title {
        font-size: 1.6rem;
    }
    .splash-pillars-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .btn-splash-continue {
        width: 100%;
        justify-content: center;
    }
}

/* ==============================================================================
   HOUSEHOLD MANAGEMENT & TRUST MATRIX SUITE (2026 Obsidian Glass)
   ============================================================================== */
.household-header-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(20, 20, 32, 0.65) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.household-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.household-banner-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.household-banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.household-banner-quote {
    font-size: 0.85rem;
    font-style: italic;
    color: #d4af37;
    margin: 0;
}

.household-self-own-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(10, 10, 16, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
}

.household-self-own-info {
    display: flex;
    flex-direction: column;
}

.household-self-own-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.household-self-own-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
}

.household-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .household-columns-grid {
        grid-template-columns: 1fr;
    }
}

.household-col {
    background: rgba(18, 18, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.household-col.tier-primary {
    border-top: 3px solid #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
}

.household-col.tier-trustee {
    border-top: 3px solid #38bdf8;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
}

.household-col.tier-circle {
    border-top: 3px solid #c084fc;
    box-shadow: 0 4px 20px rgba(192, 132, 252, 0.08);
}

.household-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.household-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.household-col-count {
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    color: #e2e8f0;
}

.household-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.household-member-card {
    background: rgba(26, 26, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: all 0.25s ease;
}

.household-member-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.household-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.household-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.household-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.household-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #101018;
}

.household-user-names {
    display: flex;
    flex-direction: column;
}

.household-username {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.household-sl-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.household-badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.household-badge-standby {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.household-badge-revocable {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.household-perms-matrix {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.household-perm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.household-perm-label {
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 2026 Smooth Neon Switch */
.oath-toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.oath-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.oath-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
}

.oath-toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

.oath-toggle-switch input:checked + .oath-toggle-slider {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.oath-toggle-switch input:checked + .oath-toggle-slider:before {
    transform: translateX(18px);
}

.household-add-member-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #94a3b8;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.household-add-member-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #f8fafc;
}

/* ==============================================================================
   HOUSEHOLD MANAGEMENT MOBILE ADAPTATION (Enforced at Bottom of Cascade)
   ============================================================================== */
@media (max-width: 768px) {
    .household-header-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px 10px !important;
        gap: 10px !important;
        border-radius: var(--radius-sm) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .household-banner-left {
        gap: 10px !important;
    }

    .household-banner-icon {
        font-size: 1.5rem !important;
        flex-shrink: 0 !important;
    }

    .household-banner-title {
        font-size: 0.98rem !important;
        line-height: 1.25 !important;
    }

    .household-banner-quote {
        font-size: 0.74rem !important;
        line-height: 1.35 !important;
    }

    .household-self-own-box {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
    }

    .household-columns-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .household-col {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 8px 6px !important;
        border-radius: var(--radius-sm) !important;
    }

    .household-col-header {
        padding-bottom: 6px !important;
    }

    .household-col-title {
        font-size: 0.92rem !important;
    }

    .household-card-list {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 8px !important;
    }

    .household-member-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 8px 6px !important;
        background: rgba(22, 22, 34, 0.9) !important;
    }

    .household-card-top {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .household-card-user {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    .household-avatar-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.85rem !important;
        flex-shrink: 0 !important;
    }

    .household-user-names {
        min-width: 0 !important;
        overflow: hidden !important;
        flex: 1 1 auto !important;
    }

    .household-username {
        font-size: 0.82rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .household-sl-name {
        font-size: 0.66rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .household-badge-active,
    .household-badge-standby,
    .household-badge-revocable {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
        flex-shrink: 0 !important;
        letter-spacing: 0.2px !important;
    }

    .household-perms-matrix {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding-top: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .household-perm-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 5px 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    }

    .household-perm-row:last-child {
        border-bottom: none !important;
    }

    .household-perm-label {
        font-size: 0.76rem !important;
        color: #cbd5e1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 1 1 auto !important;
        padding-right: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .oath-toggle-switch {
        width: 36px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }

    .oath-toggle-slider:before {
        height: 14px !important;
        width: 14px !important;
        left: 3px !important;
        bottom: 3px !important;
    }

    .oath-toggle-switch input:checked + .oath-toggle-slider:before {
        transform: translateX(16px) !important;
    }

    .household-add-member-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px !important;
        min-height: 40px !important;
        font-size: 0.78rem !important;
    }
}

/* ==============================================================================
   ULTRA-COMPACT PHONE OPTIMIZATIONS (<= 480px: iPhone SE, Mini, Galaxy)
   ============================================================================== */
@media (max-width: 480px) {
    .main-content {
        padding: 4px 4px 80px 4px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .command-panel {
        padding: 6px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #tab-household {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .household-header-banner {
        padding: 10px 8px !important;
    }

    .household-banner-title {
        font-size: 0.9rem !important;
        word-wrap: break-word !important;
        min-width: 0 !important;
    }

    .household-banner-quote {
        font-size: 0.7rem !important;
        word-wrap: break-word !important;
        min-width: 0 !important;
    }

    .household-col {
        padding: 8px 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .household-member-card {
        padding: 8px 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .household-card-top {
        gap: 4px !important;
    }

    .household-username {
        font-size: 0.78rem !important;
    }

    .household-sl-name {
        font-size: 0.64rem !important;
    }

    .household-badge-active,
    .household-badge-standby,
    .household-badge-revocable {
        font-size: 0.55rem !important;
        padding: 1px 4px !important;
    }

    .household-perm-row {
        padding: 4px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .household-perm-label {
        font-size: 0.72rem !important;
        max-width: calc(100% - 40px) !important;
    }

    .oath-toggle-switch {
        width: 34px !important;
        height: 18px !important;
    }

    .oath-toggle-slider:before {
        height: 12px !important;
        width: 12px !important;
        left: 3px !important;
        bottom: 3px !important;
    }

    .oath-toggle-switch input:checked + .oath-toggle-slider:before {
        transform: translateX(16px) !important;
    }

    .select-modern {
        max-width: 135px !important;
        font-size: 0.72rem !important;
    }
}






