/* ==========================================================================
   Universal OMM - Logitech HID++ 2.0 WebHID Manager
   Cyberpunk High-Tech Gaming Styling & Layout
   ========================================================================== */

:root {
    --bg-dark: #080b11;
    --bg-card: rgba(16, 22, 34, 0.78);
    --bg-card-border: rgba(0, 229, 255, 0.16);
    --bg-card-hover: rgba(22, 30, 48, 0.9);
    
    --primary-cyan: #00e5ff;
    --primary-cyan-glow: rgba(0, 229, 255, 0.35);
    --accent-purple: #7c4dff;
    --accent-purple-glow: rgba(124, 77, 255, 0.35);
    --accent-green: #00e676;
    --accent-red: #ff1744;
    --accent-amber: #ffab00;

    --text-main: #f0f4fc;
    --text-muted: #8292ab;
    --text-dim: #4d5b73;

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient dynamic backdrops */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.18;
}

.glow-cyan {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
}

.glow-purple {
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.app-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 20px;
}

/* ==========================================================================
   Header Styling
   ========================================================================== */

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 26px;
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(124, 77, 255, 0.2));
    border: 1px solid var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    box-shadow: 0 0 15px var(--primary-cyan-glow);
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.highlight-cyan {
    color: var(--primary-cyan);
    text-shadow: 0 0 12px var(--primary-cyan-glow);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Battery Badge */
.battery-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 12, 20, 0.65);
    border: 1px solid rgba(0, 230, 118, 0.25);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
}

.battery-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.battery-fill-level {
    position: absolute;
    left: 4px;
    top: 9px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.battery-charging-indicator {
    color: #ffeb3b;
    font-size: 0.95rem;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.device-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(8, 12, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    transition: var(--transition);
}

.status-indicator-dot.connected {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
}

.status-text-group {
    display: flex;
    flex-direction: column;
}

.status-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.device-name-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: #fff;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 14px var(--primary-cyan-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #0096c7 100%);
    box-shadow: 0 0 22px var(--primary-cyan-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #512da8 100%);
    color: #fff;
    border-color: var(--accent-purple);
    box-shadow: 0 0 14px var(--accent-purple-glow);
}

.btn-accent:hover {
    box-shadow: 0 0 22px var(--accent-purple-glow);
}

.btn-danger {
    background: rgba(255, 23, 68, 0.15);
    color: #ff5252;
    border-color: rgba(255, 23, 68, 0.4);
}

.btn-danger:hover {
    background: rgba(255, 23, 68, 0.3);
    box-shadow: 0 0 14px rgba(255, 23, 68, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-small, .btn-xs {
    padding: 6px 12px;
    font-size: 0.78rem;
}

.btn-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */

.nav-tabs-bar {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-card-border);
    overflow-x: auto;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 16px var(--primary-cyan-glow);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Cards & Layout Grid
   ========================================================================== */

.content-grid-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

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

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title-group h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-cyan);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.card-badge {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-badge.badge-success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
    border-color: rgba(0, 230, 118, 0.3);
}

.card-badge.badge-cyan {
    background: rgba(0, 229, 255, 0.15);
    color: var(--primary-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

.card-body {
    padding: 22px;
    flex: 1;
}

.card-body.no-pad {
    padding: 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   DPI Sensor Styling
   ========================================================================== */

.dpi-visualizer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.dpi-gauge {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(135deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 12;
    stroke-linecap: round;
}

.gauge-bar {
    fill: none;
    stroke: var(--primary-cyan);
    stroke-width: 12;
    stroke-dasharray: 515.2;
    stroke-dashoffset: 515.2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px var(--primary-cyan-glow));
    transition: stroke-dashoffset 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-center-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dpi-value {
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-cyan-glow);
}

.dpi-unit {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary-cyan);
}

.dpi-step-note {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.slider-wrapper {
    width: 100%;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.neon-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    outline: none;
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary-cyan);
    box-shadow: 0 0 14px var(--primary-cyan);
    cursor: pointer;
    transition: var(--transition);
}

.neon-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Multi-Stage DPI Chips */
.dpi-stages-section {
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sub-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.stage-btns {
    display: flex;
    gap: 6px;
}

.dpi-stage-chips-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.dpi-stage-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.dpi-stage-chip:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.05);
}

.dpi-stage-chip.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 14px var(--primary-cyan-glow);
}

.dpi-stage-chip .stage-num {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 700;
}

.dpi-stage-chip .stage-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 3px 0;
}

.dpi-stage-chip .stage-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    text-transform: uppercase;
}

.dpi-stage-chip.is-default .stage-tag {
    background: rgba(255, 171, 0, 0.2);
    color: var(--accent-amber);
}

.dpi-stage-chip.is-sniper .stage-tag {
    background: rgba(255, 23, 68, 0.2);
    color: #ff5252;
}

.stage-actions-row {
    display: flex;
    gap: 8px;
}

.command-preview-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.preview-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 4px;
}

.hex-preview {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--primary-cyan);
}

/* ==========================================================================
   Report Rate / Polling Frequency
   ========================================================================== */

.rate-selector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.rate-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.rate-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.05);
}

.rate-card.active {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 16px var(--primary-cyan-glow);
}

.rate-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.rate-desc {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin: 3px 0 8px;
}

.rate-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* Sensor Tuning Switches */
.sensor-tuning-group {
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 16px;
}

.group-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.tuning-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tuning-row:last-child {
    border-bottom: none;
}

.tuning-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

.tuning-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 24px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan-glow);
}

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

/* ==========================================================================
   Buttons & Remapping Tab
   ========================================================================== */

.button-list-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 16px;
}

.btn-remap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remap-item:hover {
    background: rgba(0, 229, 255, 0.06);
    border-color: rgba(0, 229, 255, 0.3);
}

.btn-remap-item.active {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px var(--primary-cyan-glow);
}

.btn-remap-item.testing {
    background: rgba(0, 230, 118, 0.2);
    border-color: var(--accent-green);
    box-shadow: 0 0 16px var(--accent-green);
}

.btn-remap-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-remap-action-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-cyan);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.button-tester-box {
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

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

.tester-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.tester-display {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-green);
    min-height: 24px;
    display: flex;
    align-items: center;
}

/* Action Configurator */
.action-category-tabs {
    display: flex;
    gap: 6px;
    background: rgba(8, 12, 20, 0.6);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    overflow-x: auto;
}

.action-cat-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.action-cat-tab.active {
    background: rgba(0, 229, 255, 0.15);
    color: var(--primary-cyan);
}

.action-pane {
    display: none;
}

.action-pane.active {
    display: block;
    margin-bottom: 18px;
}

.preset-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.opt-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.opt-btn:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.06);
}

.opt-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.14);
    color: var(--primary-cyan);
    font-weight: 600;
}

.keystroke-recorder-box {
    background: rgba(8, 12, 20, 0.5);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan-glow);
}

.key-recorder-input {
    font-family: var(--font-mono);
    text-align: center;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.modifier-checkboxes {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
}

.keystroke-preview {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-green);
    margin-top: 12px;
    text-align: center;
}

/* ==========================================================================
   Multiline Macro Editor Styling
   ========================================================================== */

.macro-editor-container {
    background: rgba(8, 12, 20, 0.65);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.macro-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.macro-compiler-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.macro-compiler-status.status-valid {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.macro-compiler-status.status-error {
    background: rgba(255, 23, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.macro-metrics {
    display: flex;
    gap: 8px;
}

.macro-metric-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.macro-target-selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.target-btn-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-cyan);
    white-space: nowrap;
}

.macro-target-dropdown {
    flex: 1;
    background: rgba(10, 16, 26, 0.95);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.macro-target-dropdown:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan-glow);
}

.macro-preset-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.preset-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.preset-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.preset-chip:hover {
    background: rgba(0, 229, 255, 0.14);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateY(-1px);
}

.macro-textarea-wrapper {
    position: relative;
}

.macro-script-textarea {
    width: 100%;
    background: rgba(4, 7, 12, 0.75);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #00e5ff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.55;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    outline: none;
    resize: vertical;
    min-height: 140px;
    transition: var(--transition);
    tab-size: 4;
}

.macro-script-textarea:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 14px var(--primary-cyan-glow);
    background: rgba(4, 7, 12, 0.9);
}

.macro-quick-insert-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.insert-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.insert-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.insert-btn:hover {
    background: rgba(124, 77, 255, 0.2);
    border-color: var(--accent-purple);
    color: #d1b8ff;
}

.macro-bytecode-inspector {
    background: rgba(4, 7, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.inspector-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.inspector-len {
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.bytecode-hex-view {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent-green);
    letter-spacing: 0.08em;
    word-break: break-all;
    max-height: 60px;
    overflow-y: auto;
    line-height: 1.4;
}

.macro-action-btn-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.btn-accent {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.8) 0%, rgba(98, 0, 234, 0.9) 100%);
    border: 1px solid var(--accent-purple);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.btn-accent:hover {
    background: linear-gradient(135deg, rgba(124, 77, 255, 1) 0%, rgba(106, 27, 154, 1) 100%);
    box-shadow: 0 0 16px var(--accent-purple-glow);
    transform: translateY(-1px);
}

.action-confirm-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   Onboard Profiles
   ========================================================================== */

.slot-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.slot-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.slot-tab:hover {
    border-color: rgba(0, 229, 255, 0.4);
}

.slot-tab.active {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 14px var(--primary-cyan-glow);
}

.slot-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.slot-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.profile-details-card {
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
}

.memory-meta {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 14px 0 18px;
}

.memory-meta code {
    color: var(--primary-cyan);
}

.profile-actions-flex {
    display: flex;
    gap: 10px;
}

.mode-toggle-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.mode-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.mode-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.info-callout {
    display: flex;
    gap: 14px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-main);
    font-size: 0.85rem;
}

.info-callout strong {
    color: var(--primary-cyan);
    display: block;
    margin-bottom: 4px;
}

/* ==========================================================================
   LIGHTSYNC RGB Tab
   ========================================================================== */

.rgb-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zone-pills, .mode-pills {
    display: flex;
    gap: 8px;
}

.zone-pill, .mode-pill {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.zone-pill.active, .mode-pill.active {
    background: rgba(124, 77, 255, 0.2);
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-purple-glow);
}

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

.color-swatch-picker {
    -webkit-appearance: none;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: transparent;
}

.color-swatch-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-swatch-picker::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
}

.color-hex-tag {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.palette-swatches {
    display: flex;
    gap: 8px;
}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.swatch:hover {
    transform: scale(1.2);
    border-color: #fff;
}

.rgb-preview-display {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(8, 12, 20, 0.5);
    border-radius: var(--radius-md);
}

.rgb-glow-demo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 20px var(--primary-cyan);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

.wire-breakdown-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 16px;
}

.breakdown-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 6px;
}

.wire-breakdown-box code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary-cyan);
    word-break: break-all;
}

.feature-list-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.f-item {
    display: flex;
    gap: 8px;
}

.f-bullet {
    color: var(--accent-green);
    font-weight: 700;
}

/* ==========================================================================
   Power & Battery Tab
   ========================================================================== */

.battery-hero-gauge {
    display: flex;
    justify-content: center;
    margin: 16px 0 24px;
}

.battery-ring {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 8px solid rgba(0, 230, 118, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.15);
}

.battery-percentage-big {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-green);
}

.battery-status-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.battery-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.b-metric {
    background: rgba(8, 12, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px;
}

.m-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.m-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.power-mode-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.pm-pill.active {
    background: rgba(0, 229, 255, 0.12);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 14px var(--primary-cyan-glow);
}

.pm-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

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

.form-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    outline: none;
    cursor: pointer;
}

/* ==========================================================================
   Wire Sniffer & Protocol Table
   ========================================================================== */

.table-scroll-container {
    max-height: 480px;
    overflow-y: auto;
}

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

.protocol-table th {
    background: rgba(8, 12, 20, 0.85);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 2;
}

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

.protocol-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.protocol-table code {
    font-family: var(--font-mono);
    color: var(--primary-cyan);
}

.badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.badge-success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--accent-green);
}

.packet-inspector-card {
    height: 520px;
}

.pulsing-record-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.inspector-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.packet-counter {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-right: 6px;
}

.console-body {
    height: 440px;
    background: #05070b;
}

.packet-stream-feed {
    height: 100%;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 8px;
}

.packet-row {
    display: grid;
    grid-template-columns: 80px 40px 50px 140px 1fr 180px;
    gap: 8px;
    align-items: center;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}

.packet-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.packet-row.tx {
    color: var(--primary-cyan);
}

.packet-row.rx {
    color: var(--accent-green);
}

.pkt-time {
    color: var(--text-dim);
}

.pkt-dir {
    font-weight: 700;
}

.pkt-report {
    color: var(--accent-purple);
}

.pkt-feat {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkt-hex {
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pkt-meta {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Footer & Toasts
   ========================================================================== */

.app-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.separator {
    margin: 0 8px;
    color: var(--text-dim);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 22, 34, 0.95);
    border: 1px solid var(--primary-cyan);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: auto;
    animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success {
    border-color: var(--accent-green);
}

.toast-error {
    border-color: var(--accent-red);
}

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

/* ==========================================================================
   Browser Incompatibility Modal
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: #0d121c;
    border: 1px solid rgba(255, 171, 0, 0.4);
    box-shadow: 0 0 50px rgba(255, 171, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 100%;
    padding: 32px;
    text-align: center;
}

.modal-icon-group {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 171, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-info-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: left;
    margin-bottom: 20px;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-info-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-recommendation {
    text-align: left;
    margin-bottom: 24px;
}

.rec-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 10px;
}

.browser-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.browser-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.b-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.b-chrome { background: #4285f4; }
.b-edge { background: #0078d7; }
.b-brave { background: #fb542b; }
.b-opera { background: #ff1b2d; }

.modal-actions {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Header Action Buttons & Identify Tools
   ========================================================================== */
.header-action-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-active {
    background: rgba(255, 0, 85, 0.25) !important;
    border-color: #ff0055 !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(255, 0, 85, 0.5) !important;
}

.identify-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 0, 85, 0.12);
    border: 1px solid rgba(255, 0, 85, 0.4);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #ff4081;
    font-size: 0.85rem;
}

.identify-banner.hidden {
    display: none;
}

.pulsing-record-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff0055;
    box-shadow: 0 0 10px #ff0055;
    animation: pulse-glow 1s infinite alternate;
}

.btn-remap-item.identified-flash {
    border-color: #00e5ff !important;
    background: rgba(0, 229, 255, 0.25) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8) !important;
    transform: scale(1.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ==========================================================================
   Lighting Sliders & Value Badges
   ========================================================================== */
.param-label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.param-value-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 229, 255, 0.25);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* ==========================================================================
   Wired Power Notice & Status Badges
   ========================================================================== */
.wired-power-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.wired-power-box.hidden {
    display: none;
}

.power-status-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.power-status-text {
    flex: 1;
}

.power-status-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.power-status-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.status-pill-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.status-pill-badge.badge-green {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-pill-badge.badge-muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Profile Restore & Reset Actions
   ========================================================================== */
.profile-restore-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-restore-row .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 10px 14px;
}

.btn-danger-outline {
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid rgba(255, 0, 85, 0.4);
    color: #ff3377;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger-outline:hover {
    background: rgba(255, 0, 85, 0.22);
    border-color: #ff0055;
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 0, 85, 0.4);
}

/* ==========================================================================
   Live Hardware Configuration Dashboard
   ========================================================================== */

.live-config-dashboard {
    background: linear-gradient(135deg, rgba(16, 22, 36, 0.92), rgba(11, 15, 25, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 229, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    animation: fadeInSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.dash-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.live-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 10px #00e676;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.dash-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary-cyan);
    text-transform: uppercase;
}

.dash-chip {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 229, 255, 0.1);
    color: #e0f7fa;
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.dash-chip-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.dash-meta-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-pill {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

@media (max-width: 1400px) {
    .dash-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .dash-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .dash-cards-grid {
        grid-template-columns: 1fr;
    }
}

.dash-card {
    background: rgba(22, 29, 44, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: var(--transition);
}

.dash-card:hover {
    background: rgba(26, 35, 54, 0.85);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.dash-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-card-icon.icon-cyan {
    background: rgba(0, 229, 255, 0.12);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.dash-card-icon.icon-purple {
    background: rgba(124, 77, 255, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 77, 255, 0.3);
}

.dash-card-icon.icon-amber {
    background: rgba(255, 171, 0, 0.12);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 171, 0, 0.3);
}

.dash-card-icon.icon-green {
    background: rgba(0, 230, 118, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.dash-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.dash-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.dash-feat-tag {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: var(--text-dim);
}

.dash-metric-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
}

.dash-metric-val {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
    white-space: nowrap;
}

.dash-status-pill {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.dash-desc-row {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-rgb-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

