    /* ── CSS VARIABLES & THEMES ── */
    :root {
        --primary: #4f46e5;
        --primary-hover: #4338ca;
        --primary-glow: rgba(79, 70, 229, 0.15);

        --color-a: #ef4444;
        --color-a-bg: rgba(239, 68, 68, 0.08);
        --color-a-glow: rgba(239, 68, 68, 0.2);

        --color-b: #3b82f6;
        --color-b-bg: rgba(59, 130, 246, 0.08);
        --color-b-glow: rgba(59, 130, 246, 0.2);

        /* Dark Theme Defaults */
        --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        --card-bg: rgba(30, 41, 59, 0.7);
        --card-border: rgba(255, 255, 255, 0.08);
        --input-bg: #0f172a;
        --input-border: rgba(255, 255, 255, 0.1);
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --glow-intensity: 0.5;
        --canvas-grid: rgba(255, 255, 255, 0.03);
        --badge-bg: rgba(255, 255, 255, 0.06);
    }

    .light-theme {
        --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        --card-bg: rgba(255, 255, 255, 0.85);
        --card-border: rgba(0, 0, 0, 0.06);
        --input-bg: #ffffff;
        --input-border: rgba(0, 0, 0, 0.12);
        --text-main: #0f172a;
        --text-muted: #64748b;
        --shadow-color: rgba(148, 163, 184, 0.2);
        --glow-intensity: 0.25;
        --canvas-grid: rgba(0, 0, 0, 0.02);
        --badge-bg: rgba(0, 0, 0, 0.04);
    }

    /* ── BASE STYLES ── */
    details summary::-webkit-details-marker {
        display: none;
    }

    details summary {
        list-style: none;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    }

    body {
        font-family: 'Inter', sans-serif;
        background: var(--bg-gradient);
        color: var(--text-main);
        min-height: 100vh;
        padding: 32px 16px;
        overflow-x: hidden;
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 4px;
    }

    .light-theme ::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    /* ── WRAPPER & HEADER ── */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand-section h1 {
        font-family: 'Outfit', sans-serif;
        font-size: 2.2rem;
        font-weight: 800;
        background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -1px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .light-theme .brand-section h1 {
        background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .brand-section p {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-top: 4px;
    }

    /* Theme Switcher */
    .theme-toggle-btn {
        background: var(--badge-bg);
        border: 1px solid var(--card-border);
        color: var(--text-main);
        padding: 10px 16px;
        border-radius: 12px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .theme-toggle-btn:hover {
        background: var(--input-border);
    }

    /* ── DASHBOARD GRID ── */
    .dashboard-grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 24px;
    }

    @media (max-width: 1024px) {
        .dashboard-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Glassmorphic Panel Card */
    .panel-card {
        background: var(--card-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--card-border);
        border-radius: 24px;
        padding: 24px;
        box-shadow: 0 12px 40px -10px var(--shadow-color);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    @media (max-width: 600px) {
        .panel-card {
            padding: 16px;
            gap: 16px;
            border-radius: 16px;
        }

        .brand-section h1 {
            font-size: 1.7rem;
        }

        body {
            padding: 16px 8px;
        }
    }

    /* ── SEARCHABLE COMBOBOX / SELECTORS ── */
    .selectors-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
        position: relative;
        z-index: 10;
    }

    @media (max-width: 600px) {
        .selectors-container {
            grid-template-columns: 1fr;
            gap: 8px;
        }

        .vs-divider {
            transform: rotate(90deg);
            margin: 4px auto;
        }
    }

    .select-group {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .select-group label {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .select-group label .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }

    .select-group label .dot.a {
        background: var(--color-a);
        box-shadow: 0 0 8px var(--color-a);
    }

    .select-group label .dot.b {
        background: var(--color-b);
        box-shadow: 0 0 8px var(--color-b);
    }

    /* Custom Combobox Input */
    .combo-wrapper {
        position: relative;
    }

    .combo-input {
        width: 100%;
        background: var(--input-bg);
        border: 1.5px solid var(--input-border);
        color: var(--text-main);
        padding: 12px 40px 12px 16px;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 12px;
        cursor: pointer;
        outline: none;
    }

    .combo-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-glow);
    }

    .combo-chevron {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--text-muted);
        font-size: 0.8rem;
    }

    /* Custom Combobox Dropdown List */
    .combo-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 6px;
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        max-height: 280px;
        overflow-y: auto;
        z-index: 100;
        display: none;
    }

    .combo-dropdown.show {
        display: block;
    }

    .combo-category {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--primary);
        background: var(--badge-bg);
        padding: 6px 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        position: sticky;
        top: 0;
    }

    .combo-option {
        padding: 10px 14px;
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .combo-option:hover {
        background: var(--badge-bg);
    }

    .combo-option.selected {
        background: var(--primary-glow);
        color: var(--primary);
        font-weight: 600;
    }

    .combo-option .spec-hint {
        font-size: 0.75rem;
        color: var(--text-muted);
    }

    .vs-divider {
        background: var(--badge-bg);
        color: var(--text-muted);
        border: 1px solid var(--card-border);
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 0.8rem;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* ── VISUALIZER VIEWPORT ── */
    .visualizer-card {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Viewport controls (Switch between Side-by-Side and Overlaid) */
    .viewport-controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .tab-group {
        background: var(--badge-bg);
        padding: 4px;
        border-radius: 12px;
        display: flex;
        gap: 4px;
    }

    .tab-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 0.85rem;
        font-weight: 600;
        padding: 8px 14px;
        border-radius: 8px;
        cursor: pointer;
    }

    .tab-btn.active {
        background: var(--input-bg);
        color: var(--text-main);
        box-shadow: 0 4px 12px var(--shadow-color);
    }

    .checkbox-control {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: var(--text-muted);
        cursor: pointer;
    }

    .checkbox-control input {
        accent-color: var(--primary);
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    /* The Main Canvas */
    .canvas-viewport {
        background: #090d16;
        background-image:
            radial-gradient(var(--canvas-grid) 1.5px, transparent 1.5px),
            radial-gradient(var(--canvas-grid) 1.5px, transparent 1.5px);
        background-size: 20px 20px;
        background-position: 0 0, 10px 10px;
        border: 1px solid var(--card-border);
        border-radius: 20px;
        height: 480px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 32px;
        position: relative;
        overflow: hidden;
        box-shadow: inset 0 4px 30px rgba(0, 0, 0, 0.5);
    }

    .light-theme .canvas-viewport {
        background: #f8fafc;
        background-image:
            radial-gradient(var(--canvas-grid) 1px, transparent 1px);
        background-size: 15px 15px;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    @media (max-width: 600px) {
        .canvas-viewport {
            height: 360px;
            padding: 16px;
        }
    }

    /* Device Shapes */
    .device-container {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 48px;
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* Overlay Mode Styles */
    .device-container.overlay-mode {
        gap: 0;
    }

    .device-container.overlay-mode .device-wrapper {
        position: absolute;
        bottom: 32px;
        /* Anchor bottom */
        transform-origin: bottom center;
    }

    @media (max-width: 600px) {
        .device-container {
            gap: 24px;
        }

        .device-container.overlay-mode .device-wrapper {
            bottom: 16px;
        }
    }

    .device-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        z-index: 2;
        position: relative;
    }

    /* Realistic Smartphone body */
    .device-body {
        position: relative;
        border-radius: 22px;
        /* Smooth corners */
        background: #111827;
        border: 3.5px solid #27272a;
        box-shadow:
            0 15px 35px -10px rgba(0, 0, 0, 0.8),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        transform-origin: bottom center;
        transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
            border-radius 0.4s;
    }

    .light-theme .device-body {
        box-shadow:
            0 15px 35px -10px rgba(0, 0, 0, 0.2),
            0 5px 15px -5px rgba(0, 0, 0, 0.1);
    }

    .device-wrapper.device-a .device-body {
        border-color: var(--color-a);
        box-shadow:
            0 20px 40px -10px var(--color-a-glow),
            0 0 0 1.5px var(--color-a) inset;
    }

    .device-wrapper.device-b .device-body {
        border-color: var(--color-b);
        box-shadow:
            0 20px 40px -10px var(--color-b-glow),
            0 0 0 1.5px var(--color-b) inset;
    }

    /* Stacked overlay blending */
    .device-container.overlay-mode .device-wrapper.device-a {
        z-index: 2;
        opacity: 0.85;
    }

    .device-container.overlay-mode .device-wrapper.device-b {
        z-index: 1;
    }

    /* Screen template styling */
    .device-screen {
        position: absolute;
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
        border-radius: 18px;
        background-size: cover;
        background-position: center;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 12px;
        text-align: center;
        z-index: 2;
    }

    /* Dynamic Bezel items like Notch / Punch hole */
    .device-bezel-item {
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        background: #000;
        z-index: 10;
    }

    .bezel-punch-hole {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    .bezel-dynamic-island {
        width: 32px;
        height: 10px;
        border-radius: 10px;
    }

    .bezel-notch {
        width: 45px;
        height: 12px;
        border-radius: 0 0 8px 8px;
    }

    /* Watch Strap Styles */
    .watch-strap {
        display: none;
        background: #27272a;
        width: 50px;
        height: 60px;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        z-index: 1;
    }

    .light-theme .watch-strap {
        background: #cbd5e1;
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .watch-strap.top {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: -4px;
    }

    .watch-strap.bottom {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-top: -4px;
    }

    /* Monitor Stand Styles */
    .monitor-stand {
        display: none;
        width: 40px;
        height: 35px;
        background: linear-gradient(to right, #4b5563, #1f2937, #4b5563);
        clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
        margin-top: -3px;
        z-index: 1;
    }

    .light-theme .monitor-stand {
        background: linear-gradient(to right, #94a3b8, #cbd5e1, #94a3b8);
    }

    /* TV Feet Styles */
    .tv-feet {
        display: none;
        width: 80%;
        height: 10px;
        position: relative;
        margin-top: -1px;
    }

    .tv-feet::before,
    .tv-feet::after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 6px;
        height: 10px;
        background: #27272a;
        clip-path: polygon(0% 100%, 100% 0%, 100% 100%);
    }

    .light-theme .tv-feet::before,
    .light-theme .tv-feet::after {
        background: #64748b;
    }

    .tv-feet::before {
        left: 10%;
        transform: scaleX(-1);
    }

    .tv-feet::after {
        right: 10%;
    }

    /* Custom styles for objects inside screen content */
    .card-content {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        border-radius: 12px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        font-family: monospace;
        text-align: left;
    }

    .card-content .card-chip {
        width: 22px;
        height: 16px;
        background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
        border-radius: 4px;
    }

    .card-content .card-number {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        color: #e2e8f0;
        margin-top: 4px;
    }

    .card-content .card-brand {
        align-self: flex-end;
        font-weight: 700;
        font-size: 0.75rem;
        color: #3b82f6;
    }

    /* Paper design */
    .paper-content {
        width: 100%;
        height: 100%;
        background: #fff;
        border-radius: 4px;
        padding: 12px;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-image: linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px);
        background-size: 100% 12px;
        border-left: 2px solid rgba(239, 68, 68, 0.4);
        overflow: hidden;
    }

    .paper-content .line-txt {
        font-size: 0.5rem;
        line-height: 12px;
        color: #94a3b8;
        text-align: left;
        white-space: nowrap;
        opacity: 0.7;
    }

    /* Passport template */
    .passport-content {
        width: 100%;
        height: 100%;
        background: #311010;
        /* Burgundy Cover */
        border-radius: 8px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        color: #fbbf24;
        border: 1.5px solid rgba(251, 191, 36, 0.2);
    }

    .passport-content .title {
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .passport-content .crest {
        width: 24px;
        height: 24px;
        border: 1px solid #fbbf24;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.4rem;
    }

    .passport-content .sub {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }

    /* Watch Clock UI */
    .watch-clock {
        position: relative;
        width: 90%;
        height: 90%;
        border-radius: 50%;
        background: #000;
        border: 2px solid #3f3f46;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    }

    .watch-hand-hour {
        position: absolute;
        width: 2px;
        height: 25%;
        background: #fff;
        bottom: 50%;
        transform-origin: bottom center;
        transform: rotate(30deg);
    }

    .watch-hand-minute {
        position: absolute;
        width: 1.5px;
        height: 35%;
        background: #a1a1aa;
        bottom: 50%;
        transform-origin: bottom center;
        transform: rotate(120deg);
    }

    .watch-center-dot {
        position: absolute;
        width: 5px;
        height: 5px;
        background: #ef4444;
        border-radius: 50%;
    }

    .watch-ticks {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 4px;
        color: #52525b;
        font-size: 0.5rem;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        align-items: center;
    }

    /* Wrist simulation outline */
    .wrist-content {
        width: 100%;
        height: 100%;
        background: rgba(244, 63, 94, 0.08);
        border: 2px dashed rgba(244, 63, 94, 0.4);
        color: rgba(244, 63, 94, 0.8);
        border-radius: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.75rem;
        padding: 10px;
    }

    .light-theme .wrist-content {
        background: rgba(244, 63, 94, 0.04);
    }

    /* Device metadata under shape */
    .device-meta-label {
        text-align: center;
        max-width: 140px;
        margin-top: 4px;
    }

    .device-meta-title {
        font-weight: 600;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .device-meta-dims {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-top: 3px;
    }

    .device-meta-badge {
        display: inline-block;
        margin-top: 6px;
        font-size: 0.7rem;
        font-weight: 600;
        padding: 2px 10px;
        border-radius: 20px;
    }

    .badge-a {
        background: var(--color-a-bg);
        color: var(--color-a);
        border: 1.5px solid rgba(239, 68, 68, 0.2);
    }

    .badge-b {
        background: var(--color-b-bg);
        color: var(--color-b);
        border: 1.5px solid rgba(59, 130, 246, 0.2);
    }

    /* ── DETAILED SPECS PANEL ── */
    .specs-section {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .specs-header {
        font-family: 'Outfit', sans-serif;
        font-size: 1.25rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Comparison Quick Cards / Chips */
    .insight-chips {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    @media (max-width: 500px) {
        .insight-chips {
            grid-template-columns: 1fr;
        }
    }

    .insight-card {
        background: var(--badge-bg);
        border: 1px solid var(--card-border);
        padding: 12px;
        border-radius: 14px;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .insight-title {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--text-muted);
    }

    .insight-val {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--primary);
    }

    .insight-card.better-a .insight-val {
        color: var(--color-a);
    }

    .insight-card.better-b .insight-val {
        color: var(--color-b);
    }

    /* Specifications Table */
    .specs-table-container {
        border-radius: 16px;
        overflow: hidden;
        border: 1px solid var(--card-border);
        background: var(--input-bg);
    }

    .specs-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.88rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid var(--card-border);
    }

    .specs-table th {
        background: var(--badge-bg);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .specs-table tr:last-child td {
        border-bottom: none;
    }

    .specs-table td:first-child {
        font-weight: 500;
        color: var(--text-muted);
    }

    .specs-table td.val-a {
        color: var(--color-a);
        font-weight: 600;
    }

    .specs-table td.val-b {
        color: var(--color-b);
        font-weight: 600;
    }

    /* Smart AI Advice */
    .smart-advice {
        background: rgba(16, 185, 129, 0.08);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 16px;
        padding: 16px;
        font-size: 0.88rem;
        line-height: 1.5;
        color: #34d399;
        display: flex;
        gap: 12px;
    }

    .light-theme .smart-advice {
        background: rgba(16, 185, 129, 0.05);
        color: #065f46;
        border-color: rgba(16, 185, 129, 0.15);
    }

    .smart-advice-icon {
        font-size: 1.25rem;
        margin-top: -2px;
    }

    /* ── CALIBRATION MODULE ── */
    .calibrator-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .calibrator-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .calibrator-title {
        font-family: 'Outfit', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .calibrator-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: var(--badge-bg);
        border: 1px solid var(--card-border);
        padding: 16px;
        border-radius: 16px;
    }

    .calibration-instructions {
        font-size: 0.78rem;
        color: var(--text-muted);
        line-height: 1.4;
    }

    /* Virtual Credit Card */
    .virtual-card-wrapper {
        display: flex;
        justify-content: center;
        margin: 10px 0;
    }

    .virtual-card {
        width: 285.6px;
        /* default starting scale (85.6mm * 3.33px/mm) */
        height: 180px;
        /* (54mm * 3.33px/mm) */
        background: linear-gradient(135deg, #1e1e38 0%, #312e81 100%);
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
        padding: 16px;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .virtual-card-chip {
        width: 32px;
        height: 24px;
        background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
        border-radius: 4px;
    }

    .virtual-card-text {
        font-family: monospace;
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        opacity: 0.8;
    }

    /* Slider styling */
    .cal-slider-group {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .cal-slider {
        flex: 1;
        accent-color: var(--primary);
        height: 6px;
        border-radius: 3px;
        cursor: pointer;
    }

    .cal-slider-val {
        font-size: 0.85rem;
        font-weight: 600;
        min-width: 50px;
        text-align: right;
    }

    .cal-actions {
        display: flex;
        gap: 8px;
    }

    .cal-btn {
        flex: 1;
        background: var(--input-bg);
        border: 1.5px solid var(--input-border);
        color: var(--text-main);
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
    }

    .cal-btn:hover {
        background: var(--badge-bg);
    }

    .cal-btn.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

    /* Side Depth Profile */
    .depth-visualizer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }

    .depth-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .depth-label {
        width: 120px;
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .depth-bar-container {
        flex: 1;
        height: 14px;
        background: var(--badge-bg);
        border-radius: 6px;
        overflow: hidden;
        position: relative;
    }

    .depth-bar {
        height: 100%;
        border-radius: 6px;
        transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .depth-bar.a {
        background: var(--color-a);
    }

    .depth-bar.b {
        background: var(--color-b);
    }

    .depth-val {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        font-weight: 700;
        color: var(--text-main);
    }

    /* ── GEO & COMPETITOR OPTIMIZATION STYLES ── */

    /* Popular Comparisons Grid */
    .popular-comparisons-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        margin-top: 8px;
    }

    .comp-link {
        display: block;
        padding: 10px 14px;
        background: var(--badge-bg);
        border: 1px solid var(--card-border);
        border-radius: 12px;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-main);
        text-decoration: none;
        text-align: center;
        transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
    }

    .comp-link:hover {
        transform: translateY(-2px);
        background: var(--input-border);
        border-color: var(--primary);
    }

    /* Hand Silhouette Overlay */
    .hand-overlay {
        position: absolute;
        bottom: -22px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1; /* Sits behind device body (z-index: 2) */
        opacity: 0.75;
        pointer-events: none;
        transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    }

    .hand-svg {
        width: 100%;
        height: 100%;
        fill: rgba(30, 41, 59, 0.35);
        stroke: rgba(255, 255, 255, 0.12);
        stroke-width: 1.2px;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
        transition: fill 0.3s, stroke 0.3s;
    }

    .light-theme .hand-svg {
        fill: rgba(226, 232, 240, 0.5);
        stroke: rgba(0, 0, 0, 0.08);
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
    }

    /* Flip hand SVG for Device B to keep it symmetrical (right hand) */
    #hand-b .hand-svg {
        transform: scaleX(-1);
    }

    /* Metallic Side Profile Render (PhoneArena Style) */
    .device-body.side-view-active {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.45)), #334155 !important;
        border-radius: 4px !important;
        border-left: 2px solid rgba(255, 255, 255, 0.25);
        border-right: 2px solid rgba(0, 0, 0, 0.4);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    }

    .light-theme .device-body.side-view-active {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.65), rgba(0, 0, 0, 0.15)), #94a3b8 !important;
        border-left: 2px solid rgba(255, 255, 255, 0.8);
        border-right: 2px solid rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }

    /* Side view hardware buttons */
    .device-body.side-view-active::before {
        content: '';
        position: absolute;
        left: -3px;
        top: 22%;
        width: 3px;
        height: 12%;
        background: #475569;
        border-radius: 2px 0 0 2px;
        box-shadow: 0 22px 0 #475569; /* volume rocker/action buttons */
    }

    .light-theme .device-body.side-view-active::before {
        background: #64748b;
        box-shadow: 0 22px 0 #64748b;
    }

    .device-body.side-view-active::after {
        content: '';
        position: absolute;
        right: -3px;
        top: 26%;
        width: 3px;
        height: 10%;
        background: #475569;
        border-radius: 0 2px 2px 0; /* Power/sleep button */
    }

    .light-theme .device-body.side-view-active::after {
        background: #64748b;
    }

    /* Dynamic Highlight list Card */
    .seo-summary-card {
        background: var(--badge-bg);
        border: 1px solid var(--card-border);
        border-radius: 16px;
        padding: 16px;
        margin-top: 14px;
        text-align: left;
    }

    /* Toast Notification for Sharing */
    .toast {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: var(--input-bg);
        border: 1.5px solid var(--primary);
        color: var(--text-main);
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        z-index: 9999;
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    }

    .toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    /* ── SUBPAGES & FORM STYLES ── */
    .form-group {
        display: flex;
        flex-direction: column;
        gap: 6px;
        text-align: left;
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 0.78rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }

    .form-input {
        width: 100%;
        background: var(--input-bg);
        border: 1.5px solid var(--input-border);
        border-radius: 12px;
        padding: 12px;
        font-size: 0.9rem;
        color: var(--text-main);
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-glow);
    }

    .form-select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px;
        padding-right: 40px;
    }

    .submit-btn {
        width: 100%;
        background: var(--primary);
        border: none;
        color: #fff;
        padding: 14px;
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s, transform 0.2s;
        box-shadow: 0 4px 12px var(--primary-glow);
    }

    .submit-btn:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
    }

    .success-alert {
        display: none;
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 12px;
        color: #10b981;
        padding: 16px;
        margin-bottom: 16px;
        text-align: center;
        font-weight: 500;
        font-size: 0.9rem;
    }