.tools-hero {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 2px solid #FFD72D;
    margin-bottom: 40px;
}

.tools-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.tools-hero h1 span {
    color: #FFD72D;
}

.tools-hero p {
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
}

/* Tools Grid */
.tools-category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

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

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

.tool-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #FFD72D;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #FFD72D;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: #111;
}

.tool-icon svg {
    width: 28px;
    height: 28px;
    stroke: #111;
    stroke-width: 2;
    fill: none;
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111111;
    text-align: center;
}

.tool-card p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.tool-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111111;
    margin-top: auto;
}

.tool-card-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-btn svg {
    transform: translateX(4px);
}

/* Single Tool Workbench */
.tool-workbench {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.tool-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-box {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-box .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    word-break: break-word;
}

.stat-box .stat-note {
    font-size: 0.75rem;
    color: #888888;
    margin-top: 6px;
    line-height: 1.3;
}

/* Buttons and Controls */
.tools-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-tools-primary {
    background: #FFD72D;
    color: #000000;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-tools-primary:hover {
    background: #e6c228;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 45, 0.3);
}

.btn-tools-primary:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-tools-secondary {
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-tools-secondary:hover {
    background: #e5e7eb;
}

.btn-tools-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tools-select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    outline: none;
}

.tools-select:focus {
    border-color: #FFD72D;
    box-shadow: 0 0 0 3px rgba(255, 215, 45, 0.3);
}

/* Keyboard Layout Styles */
.keyboard-wrapper {
    overflow-x: auto;
    padding: 15px 0;
}

.keyboard-board {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    min-width: 1140px;
    background: #1e1e24;
    padding: 24px;
    border-radius: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.kb-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kb-row {
    display: flex;
    gap: 6px;
}

.kb-row-spacer {
    height: 44px;
    width: 100%;
}

.kb-key-spacer {
    width: 44px;
    height: 44px;
    visibility: hidden;
    flex-shrink: 0;
}

.kb-f-gap {
    margin-right: 14px;
}

.kb-numpad-grid {
    display: grid;
    grid-template-columns: repeat(4, 44px);
    grid-template-rows: repeat(5, 44px);
    gap: 6px;
}

.kb-key-tall {
    grid-row: span 2;
    height: 94px !important;
}

.kb-key-wide-2 {
    grid-column: span 2;
    min-width: 94px !important;
    width: 94px !important;
}

.kb-key {
    background: #2b2b36;
    color: #d1d5db;
    border: 1px solid #3f3f4e;
    border-radius: 6px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    user-select: none;
    transition: all 0.1s ease;
    box-shadow: 0 3px 0 #181820;
    box-sizing: border-box;
}

.kb-key.active {
    background: #22c55e !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    transform: translateY(2px);
    box-shadow: 0 1px 0 #181820 !important;
}

.kb-key.pressed {
    background: #FFD72D !important;
    color: #000000 !important;
    border-color: #e6be19 !important;
    transform: translateY(2px);
    box-shadow: 0 1px 0 #181820 !important;
    font-weight: 800;
}

/* Key Sizing Helpers */
.kb-key.w-1-25 {
    min-width: 55px;
}

.kb-key.w-1-5 {
    min-width: 66px;
}

.kb-key.w-1-75 {
    min-width: 78px;
}

.kb-key.w-2 {
    min-width: 88px;
}

.kb-key.w-2-25 {
    min-width: 98px;
}

.kb-key.w-2-75 {
    min-width: 124px;
}

.kb-key.w-space {
    width: 236px;
    min-width: 236px;
}

/* Mouse Test Area */
.mouse-box {
    background: #18181f;
    border-radius: 20px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    cursor: crosshair;
    user-select: none;
    overflow: hidden;
    padding: 30px 20px;
    border: 1px solid #2a2a36;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.6);
}

.mouse-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mouse-graphic-container {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.mouse-body {
    width: 250px;
    height: 350px;
    background: #23232e;
    border: 3px solid #38384a;
    border-radius: 125px 125px 85px 85px;
    position: relative;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.08);
}

.mouse-top-row {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 175px;
    position: relative;
}

.main-btn {
    flex: 1;
    height: 100%;
    background: #2e2e3d;
    border: 2px solid #444456;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.left-btn {
    border-radius: 105px 15px 15px 20px;
}

.right-btn {
    border-radius: 15px 105px 20px 15px;
}

.mouse-wheel-housing {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.wheel-btn {
    width: 36px;
    height: 68px;
    background: #38384a;
    border: 2px solid #505068;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wheel-icon {
    font-size: 1.1rem;
    line-height: 1;
    color: #a0a0b8;
}

.scroll-arrow {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 2px 6px;
    border-radius: 4px;
    user-select: none;
}

.side-btn {
    position: absolute;
    left: -16px;
    width: 16px;
    height: 52px;
    background: #2e2e3d;
    border: 2px solid #444456;
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #a0a0b8;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.side-btn-top {
    top: 65px;
    border-radius: 10px 0 0 10px;
}

.side-btn-bottom {
    top: 125px;
    border-radius: 10px 0 0 10px;
}

.click-counter {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    color: #FFD72D;
}

.mouse-palm {
    flex: 1;
    width: 100%;
    border-radius: 15px 15px 75px 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #38384a;
    margin-top: 10px;
    background: linear-gradient(180deg, #252532 0%, #1e1e28 100%);
}

.mouse-logo {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.15);
}

.mouse-buttons-visual {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    z-index: 2;
}

.btn-indicator {
    padding: 10px 18px;
    background: #2b2b36;
    border: 2px solid #3f3f4e;
    border-radius: 10px;
    font-weight: 700;
    color: #aaaaaa;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-indicator.active {
    background: #22c55e !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4) !important;
}

.btn-indicator.pressed {
    background: #FFD72D !important;
    color: #000000 !important;
    border-color: #e6be19 !important;
    box-shadow: 0 0 20px rgba(255, 215, 45, 0.6) !important;
    transform: scale(0.97);
}

.badge-item {
    font-size: 0.85rem;
    padding: 8px 14px;
}

.mouse-instruction-text {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 15px;
    z-index: 2;
    text-align: center;
}

.stat-alert {
    color: #ef4444 !important;
    transform: scale(1.15);
    transition: transform 0.15s ease;
}


/* Speaker Channel Test Grid */
.speaker-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.speaker-btn {
    background: #111827;
    color: #ffffff;
    border: 2px solid #FFD72D;
    border-radius: 16px;
    padding: 24px 16px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
}

.speaker-btn:hover {
    background: #000000;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 45, 0.25);
}

.speaker-btn.active {
    background: #f97316 !important;
    border-color: #ff9800 !important;
    color: #ffffff !important;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.7) !important;
    transform: scale(1.02);
}

.speaker-btn.active svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
}

.speaker-btn svg {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    color: #FFD72D;
    flex-shrink: 0;
}

/* Audio VU Meter */
.audio-vu-bar {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
}

.audio-vu-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 70%, #ef4444 100%);
    transition: width 0.05s ease;
}

/* Display Dead Pixel Fullscreen Overlay */
.fullscreen-test-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Touch Test Grid */
.touch-canvas {
    width: 100%;
    height: 450px;
    background: #111;
    border-radius: 16px;
    touch-action: none;
}

/* SEO Article Section */
.seo-article-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px 20px 0 0;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-top: 40px;
    line-height: 1.7;
}

.seo-article-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.seo-article-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #FFD72D;
}

.seo-article-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 24px;
    margin-bottom: 12px;
}

.seo-article-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-top: 18px;
    margin-bottom: 8px;
}

.seo-article-card p {
    color: #4b5563;
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.seo-article-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.seo-article-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.6;
}

.seo-article-card ul li::before {
    content: "•";
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: 4px;
    top: -3px;
}

.seo-article-card strong {
    color: #111827;
    font-weight: 700;
}

.seo-article-card p:last-child,
.seo-article-card ul:last-child {
    margin-bottom: 0;
}

.seo-article-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 25px;
    font-size: 0.95rem;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.seo-article-card th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.seo-article-card td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.seo-article-card tr:last-child td {
    border-bottom: none;
}

.seo-article-card tr:nth-child(even) {
    background: #f1f5f9;
}

/* Custom Alert Banner */
.tools-alert {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tools-alert[style*="display: none"],
.tools-alert[style*="display:none"] {
    display: none !important;
}

.tools-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.tools-alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.tools-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    flex-shrink: 0 !important;
}

.tools-alert-warning .tools-alert-icon {
    background: #fef3c7;
    color: #d97706;
}

.tools-alert-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Tools Interlinking Section */
.tools-links-section {
    padding: 45px 0 55px;
    margin-top: 0;
}

.tools-links-title {
    margin-bottom: 6px;
    text-align: center;
}

.tools-links-subtitle {
    font-size: 1.0rem;
    text-align: center;
    margin-bottom: 28px;
}

.tools-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.tools-link-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.tools-link-card:hover {
    border-color: #FFD72D;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    color: #000000;
}

.tools-link-card.active {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.tools-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.tools-link-card:hover .tools-link-icon {
    background: #FFD72D;
    color: #000000;
}

.tools-link-card.active .tools-link-icon {
    background: #fef3c7;
    color: #d97706;
}

.tools-link-icon svg {
    width: 17px;
    height: 17px;
}

/* PC Specs Dashboard */
.pcinfo-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .pcinfo-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pcinfo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
}

.pcinfo-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pcinfo-card-header {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcinfo-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #FFD72D;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcinfo-card-icon svg {
    width: 18px;
    height: 18px;
}

.pcinfo-card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.pcinfo-card-body {
    padding: 12px 20px;
}

.spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.92rem;
    gap: 12px;
}

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

.spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
}

.spec-label svg {
    width: 15px;
    height: 15px;
    color: #94a3b8;
    flex-shrink: 0;
}

.spec-value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 55%;
}

.spec-value-highlight {
    color: #0f172a;
    font-weight: 700;
}

.spec-info-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 4px;
    user-select: none;
}

.spec-info-btn:hover {
    background: #FFD72D;
    color: #000000;
}

/* Custom Tooltip on Hover */
.spec-info-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: normal;
    width: max-content;
    max-width: 260px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    text-align: left;
    line-height: 1.4;
}

.spec-info-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.spec-info-btn[data-tooltip]:hover::after,
.spec-info-btn[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Multi-Monitor Breakdown Styles */
.multi-screens-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.multi-screens-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.btn-scan-monitors {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: auto !important;
    height: auto !important;
    max-width: fit-content !important;
    margin-top: 6px !important;
}

.btn-scan-monitors:hover {
    background: #1e293b !important;
    border-color: #FFD72D !important;
    transform: translateY(-1px) !important;
}

.btn-scan-monitors svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0 !important;
}

.multi-screens-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.monitor-card-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
}

.monitor-card-item.is-current {
    border-color: #FFD72D;
    background: #fffdf5;
}

.monitor-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.monitor-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.monitor-badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.monitor-badge-internal {
    background: #fef3c7;
    color: #92400e;
}

.monitor-badge-current {
    background: #dcfce7;
    color: #166534;
}

.monitor-card-specs {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* PCInfo Custom Modal */
.pcinfo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 16px;
}

.pcinfo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pcinfo-modal-card {
    background: #ffffff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #e2e8f0;
}

.pcinfo-modal-overlay.active .pcinfo-modal-card {
    transform: scale(1);
}

.pcinfo-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.pcinfo-modal-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.pcinfo-modal-close {
    background: #e2e8f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pcinfo-modal-close:hover {
    background: #FFD72D;
    color: #0f172a;
}

.pcinfo-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.pcinfo-modal-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 10px;
    color: #1e293b;
    line-height: 1.5;
}

.spec-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.spec-badge-green {
    background: #dcfce7;
    color: #15803d;
}

.spec-badge-amber {
    background: #fef3c7;
    color: #b45309;
}

.pcinfo-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

/* Battery Diagnostic Widget Styles */
.battery-display-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.battery-graphic-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 20px;
    position: relative;
}

.battery-shell {
    width: 260px;
    height: 105px;
    border: 4px solid #334155;
    border-radius: 16px;
    padding: 5px;
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.battery-cap {
    width: 12px;
    height: 42px;
    background: #334155;
    border-radius: 0 6px 6px 0;
    margin-left: 2px;
}

.battery-graphic-fill {
    height: 100%;
    width: 100%;
    background: #22c55e;
    border-radius: 9px;
    transition: width 0.5s ease-in-out, background-color 0.3s ease;
}

.battery-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
    width: 100%;
}

.battery-pct-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.battery-bolt-icon {
    width: 28px;
    height: 28px;
    color: #f59e0b;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
    animation: pulse-bolt 1.5s infinite alternate;
}

@keyframes pulse-bolt {
    0% { transform: scale(0.95); opacity: 0.85; }
    100% { transform: scale(1.12); opacity: 1; }
}

.battery-live-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 18px;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.battery-live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.battery-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 4px;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.tools-alert {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.tools-alert-warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

.tools-alert-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* SEO Article Tables & Responsive Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.seo-article-card table,
.tools-seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
    background: #ffffff;
}

.seo-article-card th,
.tools-seo-table th {
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 14px 18px;
    border-bottom: 2px solid #334155;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
}

.seo-article-card td,
.tools-seo-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    color: #1e293b;
    font-size: 0.92rem;
}

.seo-article-card td:last-child,
.tools-seo-table td:last-child {
    border-right: none;
}

.seo-article-card tr:last-child td,
.tools-seo-table tr:last-child td {
    border-bottom: none;
}

.seo-article-card tr:nth-child(even),
.tools-seo-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.seo-article-card tr:hover,
.tools-seo-table tr:hover {
    background-color: #f1f5f9;
}

/* Display Tool Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-status-prompt {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-status-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-status-inactive {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.display-icon-box {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.display-icon-box svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
}

/* Display Diagnostic Tool Specific Styles */
.display-toolbar-card {
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.display-toolbar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.display-toolbar-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

.display-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.display-count-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.btn-scan-monitors {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
}

.btn-scan-monitors:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.display-canvas-card {
    background: #0f172a;
    border-radius: 12px;
    padding: 20px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.display-canvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
    flex-wrap: wrap;
    gap: 12px;
}

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

.display-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.display-canvas-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin: 0;
}

.display-legend-group {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.display-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.legend-dot-primary { background: #3b82f6; }
.legend-dot-current { background: #f59e0b; }
.legend-dot-window { border: 1px dashed #facc15; background: transparent; }

.canvas-container {
    position: relative;
    width: 100%;
    height: 420px;
    background: #020617;
    border-radius: 8px;
    border: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.canvas-overlay-hint {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.screens-breakdown-section {
    margin-top: 8px;
}

.screens-breakdown-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.display-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.display-screen-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.display-screen-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.display-screen-card-active {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.display-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.display-card-title-row {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.display-card-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.display-card-title {
    color: #0f172a;
    font-weight: 700;
}

.display-card-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.screen-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
    white-space: nowrap;
}

.screen-badge-primary { background: #dbeafe; color: #1e40af; }
.screen-badge-internal { background: #fef3c7; color: #92400e; }
.screen-badge-external { background: #f1f5f9; color: #475569; }
.screen-badge-current { background: #d1fae5; color: #065f46; }

.display-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: #475569;
    flex: 1;
}

.display-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 6px;
}

.display-card-row-last {
    border-bottom: none;
    padding-bottom: 0;
}

.display-card-label {
    color: #64748b;
}

.display-card-val {
    font-family: monospace;
    font-weight: 600;
    color: #334155;
}

.display-card-val-accent {
    font-family: monospace;
    font-weight: 700;
    color: #0f172a;
}

.display-card-val-pos {
    font-weight: 600;
    color: #2563eb;
}

.display-card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.display-card-link {
    font-size: 0.78rem;
    color: #2563eb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.display-card-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Monitor Diagnostic Workbench Custom Styles */
.monitor-workbench {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.monitor-control-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 24px;
}

.monitor-swatches-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.monitor-swatches-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #374151;
}

.monitor-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.monitor-swatch-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.monitor-swatch-btn:hover {
    transform: scale(1.1);
}

.monitor-swatch-btn.active {
    border-color: #111111 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 45, 0.8) !important;
    transform: scale(1.12);
}

.btn-start-monitor {
    width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 16px 24px;
    justify-content: center;
    border-radius: 12px;
}

.monitor-hotkeys-box {
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 24px;
}

.monitor-hotkeys-title {
    color: #111111;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitor-hotkeys-title svg {
    width: 22px;
    height: 22px;
    color: #eab308;
    flex-shrink: 0;
}

.monitor-hotkeys-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .monitor-hotkeys-grid {
        grid-template-columns: 1fr;
    }
}

.monitor-hotkey-card {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.monitor-hotkey-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.monitor-hotkey-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
}

.monitor-hotkey-sub {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.3;
}

.monitor-hotkey-badge {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111111;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.monitor-hotkey-badge.badge-danger {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* USB Diagnostic Workbench Custom Styles */
.usb-workbench {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.usb-control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 20px 24px;
}

@media (max-width: 640px) {
    .usb-control-panel {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.usb-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.usb-workbench-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

@media (max-width: 640px) {
    .usb-workbench-title {
        justify-content: center;
    }
}

.usb-workbench-title svg {
    width: 22px;
    height: 22px;
    color: #eab308;
    flex-shrink: 0;
}

.usb-workbench-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.usb-scan-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 10px;
}

.usb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: #f8f9fa;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    text-align: center;
    color: #6b7280;
    gap: 12px;
}

.usb-empty-state svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.usb-empty-state p {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.usb-table-wrapper {
    overflow-x: auto;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    background: #ffffff;
}

.usb-devices-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.usb-devices-table th {
    background: #f8f9fa;
    padding: 14px 18px;
    font-weight: 700;
    color: #374151;
    border-bottom: 1px solid #eaedf1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.usb-devices-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    vertical-align: middle;
}

.usb-devices-table tr:last-child td {
    border-bottom: none;
}

.usb-devices-table tr:hover td {
    background: #fafafa;
}

.usb-device-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usb-device-icon {
    width: 32px;
    height: 32px;
    background: #fffbeb;
    border: 1px solid #fef08a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    flex-shrink: 0;
}

.usb-device-icon svg {
    width: 18px;
    height: 18px;
}

.usb-device-title {
    font-weight: 700;
    color: #111111;
}

.usb-code-cell code {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: #1f2937;
    font-weight: 600;
}

.usb-badge-connected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 20px;
}

.usb-status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.usb-status-dot.dot-closed {
    background-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.2);
}

.usb-status-dot.dot-opened {
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.usb-device-sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

/* USB Inspector Modal Backdrop & Container */
.usb-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.usb-modal-container {
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: usbModalSlide 0.25s ease-out;
}

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

.usb-modal-header {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaedf1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.usb-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.usb-modal-icon {
    width: 44px;
    height: 44px;
    background: #fffbeb;
    border: 1px solid #fef08a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    flex-shrink: 0;
}

.usb-modal-icon svg {
    width: 24px;
    height: 24px;
}

.usb-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111111;
    margin: 0 0 2px;
}

.usb-modal-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.usb-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usb-modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.2s ease;
}

.usb-modal-close:hover {
    color: #111111;
    background: #e5e7eb;
}

.usb-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Sections & Title */
.usb-inspector-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.usb-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.usb-section-title svg {
    width: 20px;
    height: 20px;
    color: #eab308;
}

/* Metadata Grid */
.usb-metadata-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .usb-metadata-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .usb-metadata-grid {
        grid-template-columns: 1fr;
    }
}

.usb-meta-item {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
    word-break: break-word;
}

.meta-value code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Topology Tree */
.usb-topology-tree {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tree-config-node, .tree-iface-node, .tree-alt-node {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tree-children {
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px dashed #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tree-node-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.tree-tag {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.tag-config {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.tag-iface {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.tag-alt {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #e9d5ff;
}

.tree-endpoints-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 640px) {
    .tree-endpoints-grid {
        grid-template-columns: 1fr;
    }
}

.tree-ep-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

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

.ep-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111111;
}

.ep-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
}

.badge-in {
    background: #dcfce7;
    color: #15803d;
}

.badge-out {
    background: #dbeafe;
    color: #1d4ed8;
}

.ep-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #6b7280;
}

/* Console & Data Controls */
.usb-console-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 14px 18px;
}

.usb-control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usb-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    margin-right: 8px;
}

.usb-select-input {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #ffffff;
    color: #111111;
}

.usb-text-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.88rem;
    background: #ffffff;
    color: #111111;
}

.usb-text-input.width-small {
    width: 70px;
}

.usb-transfer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .usb-transfer-grid {
        grid-template-columns: 1fr;
    }
}

.usb-transfer-card {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usb-transfer-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}

.usb-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.usb-input-row input[type="text"] {
    flex: 1;
}

/* Terminal Log Output */
.usb-terminal-wrapper {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.usb-terminal-bar {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #334155;
}

.usb-terminal-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-tools-text {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;

}

.btn-tools-text:hover {
    color: #f8fafc;
    text-decoration: underline;
}

.usb-terminal-log {
    padding: 14px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #e2e8f0;
}

.log-line {
    word-break: break-all;
    line-height: 1.4;
}

.log-info {
    color: #94a3b8;
}

.log-success {
    color: #4ade80;
}

.log-warn {
    color: #fbbf24;
}

.log-error {
    color: #f87171;
}

/* Grade Brand Button Styles for USB Inspector */
.btn-inspect-device {
    background: #FFD72D;
    color: #000000;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e6c228;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    box-shadow: 0 2px 6px rgba(255, 215, 45, 0.25);
    white-space: nowrap;
    text-decoration: none;
}

.btn-inspect-device svg {
    width: 16px;
    height: 16px;
    color: #000000;
    flex-shrink: 0;
}

.btn-inspect-device:hover {
    background: #e6c228;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 45, 0.4);
    border-color: #d4b01e;
}

.btn-inspect-device:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-tools-outline {
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid #111111;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    text-decoration: none;
}

.btn-tools-outline:hover {
    background: #111111;
    color: #FFD72D;
    border-color: #111111;
}

.btn-tools-outline:hover svg {
    color: #FFD72D;
}

.btn-tools-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
}

/* Webcam Inspector & Diagnostic Workbench */
.camera-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.camera-control-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 100%;
}

.camera-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.camera-control-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.camera-btn-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

@media (max-width: 640px) {
    .camera-control-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .camera-select-wrap {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .camera-select-wrap .tools-select {
        width: 100%;
    }

    .camera-btn-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .camera-btn-group button {
        width: 100%;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.82rem;
        box-sizing: border-box;
    }

    .camera-btn-group #snapshot-btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.camera-preview-wrapper {
    position: relative;
    background: #090d16;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #1e293b;
}

#camera-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.2s ease, transform 0.2s ease;
}

#camera-preview.flipped {
    transform: scaleX(-1);
}

.camera-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
}

.camera-placeholder-icon {
    width: 60px;
    height: 60px;
    background: #1e293b;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.camera-placeholder-icon svg {
    width: 32px;
    height: 32px;
}

.camera-placeholder-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #94a3b8;
}

/* Badges & Live Status */
.camera-live-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 10;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Framing Grid Overlay */
.camera-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.25);
}

.line-v1 { left: 33.33%; top: 0; width: 1px; height: 100%; }
.line-v2 { left: 66.66%; top: 0; width: 1px; height: 100%; }
.line-h1 { top: 33.33%; left: 0; height: 1px; width: 100%; }
.line-h2 { top: 66.66%; left: 0; height: 1px; width: 100%; }

/* Overlay Stream Toolbar */
.camera-stream-toolbar {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.camera-tool-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.camera-tool-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.camera-tool-btn.active {
    background: #FFD72D;
    color: #000000;
}

/* Image Adjustments Panel */
.camera-filters-panel {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 18px 22px;
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-panel-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-sliders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .filter-sliders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .filter-sliders-grid {
        grid-template-columns: 1fr;
    }
}

.filter-slider-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-slider-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 600;
}

.filter-slider-item label strong {
    color: #111111;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.filter-slider-item input[type="range"] {
    width: 100%;
    accent-color: #FFD72D;
    cursor: pointer;
}

.filter-actions-row {
    display: flex;
    justify-content: flex-end;
}

/* Snapshot Preview Card */
.camera-snapshot-preview {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.snapshot-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.snapshot-img-wrap {
    max-width: 480px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.snapshot-img-wrap img {
    width: 100%;
    display: block;
    height: auto;
}

/* Microphone Diagnostic Workbench */
.mic-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.mic-control-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 100%;
}

.mic-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.mic-control-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mic-btn-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.mic-btn-group .recording-active {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
    animation: recordPulse 1.5s infinite;
}

@keyframes recordPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Visualizer Card & Canvas */
.mic-visualizer-card {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mic-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #0d1322;
}

#mic-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.mic-placeholder {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

.mic-placeholder-icon {
    width: 54px;
    height: 54px;
    background: #1e293b;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFD72D;
}

.mic-placeholder p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    margin: 0;
}

.mic-live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 10;
}

.mic-visualizer-mode-bar {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 4px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.mic-mode-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.mic-mode-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.mic-mode-btn.active {
    background: #FFD72D;
    color: #000000;
}

/* Audio Stats Grid */
.mic-stats-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.mic-stat-card {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.mic-stat-card .stat-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mic-stat-card .stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111111;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mic-vu-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.mic-vu-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mic-vu-row .audio-vu-bar {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.mic-vu-row .audio-vu-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 70%, #ef4444 100%);
    border-radius: 10px;
    transition: width 0.08s ease-out;
}

.mic-vu-row .vu-percentage {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111111;
    min-width: 42px;
    text-align: right;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Audio Gain & DSP Panel */
.mic-filters-panel {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mic-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: center;
}

.mic-slider-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mic-slider-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.mic-slider-item input[type="range"] {
    width: 100%;
    accent-color: #FFD72D;
    cursor: pointer;
}

.mic-toggles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mic-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.mic-toggle-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #FFD72D;
    cursor: pointer;
}

/* Playback Preview Card */
.mic-playback-card {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

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

.playback-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.playback-title h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
}

.playback-controls-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.custom-audio-player {
    flex: 1;
    min-width: 260px;
    height: 40px;
    border-radius: 10px;
}

/* Mobile Responsiveness for Microphone Tool */
@media (max-width: 768px) {
    .mic-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mic-vu-card {
        grid-column: 1 / -1;
    }
    .mic-settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .mic-control-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .mic-select-wrap {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .mic-select-wrap .tools-select {
        width: 100%;
    }

    .mic-btn-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .mic-btn-group button {
        width: 100%;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.82rem;
        box-sizing: border-box;
    }

    .mic-btn-group #record-mic-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mic-toggles-grid {
        grid-template-columns: 1fr;
    }

    .playback-controls-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .playback-controls-wrap a {
        justify-content: center;
    }
}

/* ==========================================================================
   Speaker Diagnostic Workbench Styles
   ========================================================================== */
.speaker-workbench-card {
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.speaker-visualizer-container {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.speaker-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.speaker-channel-meters {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 16px;
    pointer-events: none;
}

.meter-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meter-col span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffd72d;
    width: 16px;
}

.meter-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22c55e, #ffd72d, #ef4444);
    border-radius: 3px;
    transition: width 0.05s ease;
}

.speaker-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.speaker-stat-item {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 12px;
    padding: 14px 16px;
}

.speaker-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}

.speaker-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.speaker-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.speaker-test-card {
    background: #ffffff;
    border: 2px solid #eaedf1;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.speaker-test-card:hover {
    border-color: #ffd72d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.speaker-test-card.active {
    border-color: #ffd72d;
    background: rgba(255, 215, 45, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 215, 45, 0.25);
}

.speaker-test-card svg {
    width: 28px;
    height: 28px;
    color: #0f172a;
    transition: color 0.2s ease;
}

.speaker-test-card.active svg {
    color: #d97706;
}

.speaker-test-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.speaker-test-card .card-desc {
    font-size: 0.78rem;
    color: #64748b;
}

/* Frequency & Generator Panel */
.speaker-generator-card {
    background: #f8f9fa;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

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

.generator-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.freq-controls-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.freq-slider-group {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.freq-slider-group input[type="range"] {
    flex: 1;
    accent-color: #0f172a;
    height: 6px;
    cursor: pointer;
}

.freq-number-input {
    width: 90px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.freq-presets-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.freq-preset-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.freq-preset-btn:hover {
    border-color: #ffd72d;
    background: #fffbeb;
}

.wave-selector-wrap {
    display: flex;
    gap: 8px;
}

.wave-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.wave-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Master Controls Bar */
.speaker-master-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #eaedf1;
    border-radius: 16px;
    padding: 16px 20px;
}

.speaker-ctrl-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 180px;
}

.speaker-ctrl-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.speaker-ctrl-item input[type="range"] {
    flex: 1;
    accent-color: #0f172a;
}

@media (max-width: 768px) {
    .speaker-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .speaker-test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .speaker-test-grid {
        grid-template-columns: 1fr;
    }
    .wave-selector-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .speaker-master-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .speaker-master-controls button {
        width: 100%;
        justify-content: center;
    }
}

/* Touch Screen Diagnostic Workbench */
.tool-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.touch-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
}

.touch-mode-selector {
    display: flex;
    gap: 8px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    flex-wrap: wrap;
}

.touch-mode-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.touch-mode-btn:hover {
    color: #0f172a;
}

.touch-mode-btn.active {
    background: #0f172a;
    color: #ffd72d;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

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

.grid-density-wrap {
    display: flex;
    gap: 4px;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 10px;
}

.density-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.density-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.touch-instruction-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 10px;
}

.touch-canvas-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    background: #0f172a;
}

.touch-canvas-wrapper:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

.touch-canvas-wrapper:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
}

.touch-canvas-wrapper:-webkit-full-screen .touch-canvas,
.touch-canvas-wrapper:fullscreen .touch-canvas {
    width: 100vw !important;
    height: 100vh !important;
}

.touch-canvas {
    width: 100%;
    height: 480px;
    display: block;
    background: #0f172a;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 768px) {
    .touch-control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .touch-mode-selector {
        width: 100%;
        justify-content: space-between;
    }
    .touch-mode-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }
    .touch-actions-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .grid-density-wrap {
        width: 100%;
        justify-content: center;
    }
    .touch-canvas {
        height: 380px;
    }
    .tool-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Bluetooth Diagnostic Tool Styles */
.bt-radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border-radius: 16px;
    padding: 32px 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bt-radar-screen {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
    border: 2px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.bt-radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(59, 130, 246, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bt-radar-ring.ring-1 { width: 60px; height: 60px; }
.bt-radar-ring.ring-2 { width: 120px; height: 120px; }
.bt-radar-ring.ring-3 { width: 180px; height: 180px; }

.bt-radar-center {
    position: relative;
    z-index: 5;
    width: 48px;
    height: 48px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
}

.bt-radar-center svg {
    width: 24px;
    height: 24px;
}

.bt-radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(37, 99, 235, 0.35) 0deg, transparent 60deg, transparent 360deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bt-radar-screen.scanning .bt-radar-sweep {
    opacity: 1;
    animation: btRadarRotate 2s linear infinite;
}

.bt-radar-screen.scanning .bt-radar-center {
    animation: btPulse 1.5s ease-in-out infinite alternate;
}

@keyframes btRadarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes btPulse {
    from { box-shadow: 0 0 10px rgba(37, 99, 235, 0.5); }
    to { box-shadow: 0 0 25px rgba(37, 99, 235, 0.9), 0 0 40px rgba(59, 130, 246, 0.4); }
}

.bt-radar-message {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bt-controls-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.btn-tools-danger {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tools-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.bt-device-details-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.bt-device-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.bt-device-icon {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.bt-status-badge.badge-connected {
    background: #dcfce7;
    color: #166534;
}

.bt-status-badge.badge-disconnected {
    background: #f1f5f9;
    color: #64748b;
}

.bt-device-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.spec-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
}

.spec-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.spec-value-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
}

/* GPS Diagnostic Tool Styles */
.gps-radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0b1329;
    border-radius: 16px;
    padding: 32px 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.gps-radar-screen {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, #131e3a 0%, #0b1329 100%);
    border: 2px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.gps-crosshair-v {
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(14, 165, 233, 0.2);
    left: 50%;
    top: 0;
}

.gps-crosshair-h {
    position: absolute;
    height: 1px;
    width: 100%;
    background: rgba(14, 165, 233, 0.2);
    top: 50%;
    left: 0;
}

.gps-radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(14, 165, 233, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gps-radar-ring.ring-1 { width: 65px; height: 65px; }
.gps-radar-ring.ring-2 { width: 130px; height: 130px; }
.gps-radar-ring.ring-3 { width: 195px; height: 195px; }

.gps-sweep-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(14, 165, 233, 0.4) 0deg, transparent 60deg, transparent 360deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gps-radar-screen.locating .gps-sweep-line {
    opacity: 1;
    animation: gpsRadarRotate 2s linear infinite;
}

@keyframes gpsRadarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gps-target-pin {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-dot {
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
}

.pin-pulse {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.6);
    animation: gpsPinPulse 1.8s ease-out infinite;
}

@keyframes gpsPinPulse {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.gps-sat {
    position: absolute;
    color: #38bdf8;
    opacity: 0.6;
    animation: gpsSatFloat 4s ease-in-out infinite alternate;
}

.gps-sat.sat-1 { top: 28px; right: 36px; animation-delay: 0s; }
.gps-sat.sat-2 { bottom: 32px; left: 40px; animation-delay: 1.2s; }
.gps-sat.sat-3 { top: 38px; left: 32px; animation-delay: 2.4s; }

@keyframes gpsSatFloat {
    from { transform: translateY(0px) scale(0.9); opacity: 0.5; }
    to { transform: translateY(-4px) scale(1.1); opacity: 0.9; }
}

.gps-radar-message {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gps-controls-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.btn-tools-accent {
    background: #10b981;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-tools-accent:hover {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Gyroscope & Accelerometer 3D Visualizer & Controls */
.gyro-stage-container {
    background: linear-gradient(145deg, #0b0f19, #111827);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px 16px 20px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.gyro-stage-viewport {
    perspective: 900px;
    width: 320px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gyro-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.ring-pitch {
    width: 210px;
    height: 210px;
    border-color: rgba(16, 185, 129, 0.35);
}

.ring-roll {
    width: 250px;
    height: 250px;
    border-color: rgba(168, 85, 247, 0.35);
}

.ring-yaw {
    width: 290px;
    height: 290px;
    border-color: rgba(59, 130, 246, 0.35);
}

.gyro-3d-phone {
    width: 125px;
    height: 230px;
    background: #0f172a;
    border: 3px solid #334155;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.12);
    transform-style: preserve-3d;
    transition: transform 0.08s cubic-bezier(0.1, 0.9, 0.2, 1);
    position: relative;
    z-index: 5;
    cursor: grab;
}

.gyro-3d-phone:active {
    cursor: grabbing;
}

.phone-screen {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #312e81 100%);
    border-radius: 20px;
    margin: 4px;
    height: calc(100% - 8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.2);
}

.phone-notch {
    width: 36px;
    height: 5px;
    background: #334155;
    border-radius: 3px;
    position: absolute;
    top: 8px;
}

.phone-content {
    text-align: center;
    user-select: none;
}

.phone-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.phone-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
}

.gyro-status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    user-select: none;
}

.gyro-status-badge.simulated {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.gyro-controls-panel {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
    margin-bottom: 24px;
}
