    /* ── CSS VARIABLES & THEMES ── */
    :root {
        --primary: #0ea5e9;
        --primary-hover: #0284c7;
        --primary-glow: rgba(14, 165, 233, 0.25);

        --color-a: #3b82f6;
        --color-a-bg: rgba(59, 130, 246, 0.1);
        --color-a-glow: rgba(59, 130, 246, 0.25);

        --color-b: #10b981;
        --color-b-bg: rgba(16, 185, 129, 0.1);
        --color-b-glow: rgba(16, 185, 129, 0.25);

        /* Professional Dark Theme Defaults */
        --bg-gradient: #0f172a;
        --card-bg: #1e293b;
        --card-border: rgba(255, 255, 255, 0.05);
        --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.4;
        --canvas-grid: rgba(255, 255, 255, 0.02);
        --badge-bg: rgba(255, 255, 255, 0.05);
    }

    .light-theme {
        --bg-gradient: #f8fafc;
        --card-bg: #ffffff;
        --card-border: rgba(0, 0, 0, 0.06);
        --input-bg: #ffffff;
        --input-border: rgba(0, 0, 0, 0.1);
        --text-main: #0f172a;
        --text-muted: #64748b;
        --shadow-color: rgba(0, 0, 0, 0.05);
        --glow-intensity: 0.1;
        --canvas-grid: rgba(0, 0, 0, 0.03);
        --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: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body {
        font-family: 'Inter', sans-serif;
        background: var(--bg-gradient);
        color: var(--text-main);
        min-height: 100vh;
        padding: 32px 16px;
        position: relative;
        overflow-x: hidden;
    }

    body::before {
        content: '';
        position: fixed;
        top: -20vh;
        left: -10vw;
        width: 60vw;
        height: 60vh;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
        filter: blur(80px);
        z-index: -1;
        animation: floatAura 15s ease-in-out infinite alternate;
        pointer-events: none;
    }

    body::after {
        content: '';
        position: fixed;
        bottom: -20vh;
        right: -10vw;
        width: 50vw;
        height: 50vh;
        background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
        filter: blur(80px);
        z-index: -1;
        animation: floatAura 20s ease-in-out infinite alternate-reverse;
        pointer-events: none;
    }

    @keyframes floatAura {
        0% { transform: translate(0, 0) scale(1); }
        100% { transform: translate(5vw, 5vh) scale(1.1); }
    }

    /* 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.3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.03em;
        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(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--card-border);
        border-radius: 24px;
        padding: 28px;
        box-shadow: 0 16px 40px -8px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    }
    .panel-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 24px 48px -12px var(--shadow-color), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    @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 4px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.05);
    }

    .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: safe 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;
    }

    

.segmented-control {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}
.light-theme .segmented-control {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
}
.light-theme .segmented-control {
    background: rgba(0, 0, 0, 0.04);
}


.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

    

.tab-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.light-theme .tab-btn.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,1);
}
.tab-btn:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}
.light-theme .tab-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.08);
}

    .checkbox-control {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: var(--text-muted);
        cursor: pointer;
    }
}

    .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: radial-gradient(circle at center, rgba(79, 70, 229, 0.12) 0%, #090d16 70%);
        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;
        min-height: 480px;
        height: auto;
        display: flex;
        align-items: flex-end;
        padding: 32px;
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        box-shadow: inset 0 4px 40px rgba(0, 0, 0, 0.6);
    }

    .light-theme .canvas-viewport {
        background: radial-gradient(circle at center, rgba(79, 70, 229, 0.05) 0%, #f8fafc 70%);
        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 {
            min-height: 360px;
            height: auto;
            padding: 16px;
        }
    }

    /* Device Shapes */
    .device-container {
        display: flex;
        align-items: flex-end;
        gap: 48px;
        min-width: 100%;
        width: max-content;
        height: 100%;
        position: relative;
    }

    /* Overlay Mode Styles */
    .device-container.overlay-mode {
        gap: 0;
    }

    .device-container.overlay-mode .device-wrapper {
        position: absolute;
        bottom: 32px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        /* 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;
        z-index: 2;
        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;
    }

    .device-container.overlay-mode .device-wrapper.device-b .device-meta-label {
        opacity: 0;
        pointer-events: none;
    }

    .device-wrapper.device-a {
        margin-left: auto;
    }

    .device-wrapper.device-b {
        margin-right: auto;
    }

    /* 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: 50%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        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;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .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;
        justify-content: center;
        gap: 12px;
    }

    .cal-stepper-btn {
        background: var(--input-bg);
        border: 1px solid var(--input-border);
        color: var(--text-main);
        font-size: 1.2rem;
        font-weight: 700;
        width: 36px;
        height: 36px;
        border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        user-select: none;
    }

    .cal-stepper-btn:active {
        background: var(--primary);
        color: #fff;
    }

    .cal-slider {
        flex: 1;
        accent-color: var(--primary);
        height: 6px;
        border-radius: 3px;
        cursor: pointer;
        min-width: 100px;
    }

    .cal-slider-val {
        font-size: 0.85rem;
        font-weight: 600;
        min-width: 60px;
        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 4px var(--primary-glow), 0 4px 12px rgba(0,0,0,0.05);
    }

    .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;
    }
    button:active, .cal-stepper-btn:active {
        transform: scale(0.95);
    }
    
    button:active, .cal-stepper-btn:active {
        transform: scale(0.95);
    }
    
/* =========================================================
   BACK VIEW STYLING (2D FLAT)
   ========================================================= */

.device-back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.brand-logo {
  font-family: 'Inter', sans-serif;
  color: rgba(0,0,0,0.3);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.apple-logo {
  width: 30px;
  height: 35px;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg"><path d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.1-44.6-35.9-2.8-74.3 22.7-93.1 22.7-18.9 0-46.5-21-75.1-20.6-43.1.5-84.1 25.1-105.5 64.9-44.6 82.6-11.4 204.3 32.5 268.1 21.6 31.4 47.7 66.8 82.2 65.5 33.3-1.3 46.1-21.8 86.8-21.8 40.5 0 52.4 21.8 87.1 21.3 35.8-.5 58.7-32.9 80-64.2 24.6-36 34.8-70.9 35.4-72.7-1.1-.3-65.7-25.2-66-99.8zM245.9 83.2c18.5-22.3 30.5-53.1 27.1-83.2-26.1 1.1-59.5 17.5-78.7 39.8-17.1 19.8-31 51.5-26.8 80.6 29.4 2.2 60.1-14.8 78.4-37.2z"/></svg>') no-repeat center;
  mask-size: contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg"><path d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.1-44.6-35.9-2.8-74.3 22.7-93.1 22.7-18.9 0-46.5-21-75.1-20.6-43.1.5-84.1 25.1-105.5 64.9-44.6 82.6-11.4 204.3 32.5 268.1 21.6 31.4 47.7 66.8 82.2 65.5 33.3-1.3 46.1-21.8 86.8-21.8 40.5 0 52.4 21.8 87.1 21.3 35.8-.5 58.7-32.9 80-64.2 24.6-36 34.8-70.9 35.4-72.7-1.1-.3-65.7-25.2-66-99.8zM245.9 83.2c18.5-22.3 30.5-53.1 27.1-83.2-26.1 1.1-59.5 17.5-78.7 39.8-17.1 19.8-31 51.5-26.8 80.6 29.4 2.2 60.1-14.8 78.4-37.2z"/></svg>') no-repeat center;
  -webkit-mask-size: contain;
  opacity: 0.8;
}

.google-logo { font-size: 2rem; }
.generic-logo { font-size: 1rem; }

/* Camera Islands */
.camera-island {
  position: absolute;
  top: 15px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1), inset 0 1px 3px rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
}

.apple-cam {
  left: 15px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.apple-cam .lens {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #555;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.3);
}
.apple-cam .lens:nth-child(1) { top: 6px; left: 6px; }
.apple-cam .lens:nth-child(2) { bottom: 6px; left: 6px; }
.apple-cam .lens-3 { top: 50%; right: 6px; transform: translateY(-50%); }

.apple-cam .torch {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  top: 8px;
  right: 10px;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
}
.apple-cam .lidar {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #222;
  bottom: 8px;
  right: 10px;
}

.samsung-cam {
  left: 10px;
  width: 20px;
  height: 60px;
  border-radius: 10px;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background: transparent;
  box-shadow: none;
  border: none;
}
.samsung-cam .lens {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111;
  border: 1px solid #444;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.samsung-cam .torch {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  right: -12px;
  top: 10px;
  box-shadow: 0 0 5px #fff;
}

.google-cam {
  left: 0;
  width: 100%;
  height: 25px;
  border-radius: 0;
  top: 25px;
  background: #b0b3b8;
  border-left: none;
  border-right: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.google-cam .lens {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
}
.google-cam .torch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  margin-left: 10px;
  box-shadow: 0 0 4px #fff;
}

.generic-cam {
  left: 15px;
  width: 25px;
  height: 40px;
  border-radius: 6px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}
.generic-cam .lens {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #222;
}
.generic-cam .torch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* Other Device Backs */
.watch-sensor {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 30%, #444 100%);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #555;
  box-shadow: inset 0 0 10px #000;
}

.card-mag-strip {
  width: 100%;
  height: 20%;
  background: #111;
  position: absolute;
  top: 15%;
}

.tv-back-panel {
  width: 60%;
  height: 50%;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tv-ports {
  width: 40px;
  height: 15px;
  background: #333;
  margin-bottom: 10px;
}

.top-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    background: var(--card-bg);
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px var(--shadow-color);
}
.toolbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.icon-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.icon-btn:hover {
    background: var(--input-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-color);
}
.title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.title-area h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.controls-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.highlight-btn {
    background: linear-gradient(135deg, var(--primary), var(--color-b));
    color: white !important;
    border: none;
    box-shadow: 0 4px 16px var(--primary-glow);
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
}
.highlight-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}
.highlight-btn.active {
    box-shadow: 0 4px 20px var(--primary-hover);
    transform: scale(1.02);
}

/* ==========================================
   SHARE MODAL & LINK BUILDING WIDGET
   ========================================== */

/* Share Modal Overlay */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Share Modal Content Card */
.share-modal-content {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

/* Modal Header */
.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(30, 41, 59, 0.03);
}

.light-theme .share-modal-header {
    background: rgba(241, 245, 249, 0.5);
}

.share-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.share-modal-close:hover {
    color: var(--text-main);
}

/* Modal Body */
.share-modal-body {
    padding: 24px;
}

.share-modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Link Copy Box */
.share-url-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s;
}

.share-input:focus {
    border-color: var(--primary);
}

.share-copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    min-width: 100px;
}

.share-copy-btn:hover {
    background: var(--primary-hover);
}

.share-copy-btn:active {
    transform: scale(0.97);
}

/* Social Buttons Grid */
.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.share-btn svg {
    flex-shrink: 0;
}

/* Social Media Specific Colors */
.x-btn { background-color: #0f1419; }
.fb-btn { background-color: #1877f2; }
.reddit-btn { background-color: #ff4500; }
.wa-btn { background-color: #25d366; }

/* Embed HTML Box */
.share-embed-box {
    border-top: 1px solid var(--card-border);
    padding-top: 18px;
}

.share-embed-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.share-textarea {
    width: 100%;
    height: 70px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 90px 10px 10px;
    font-size: 0.78rem;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--text-muted);
    resize: none;
    outline: none;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.embed-copy-btn {
    position: absolute;
    right: 8px;
    bottom: 18px;
    padding: 6px 12px;
    font-size: 0.78rem;
    min-width: 80px;
    height: 32px;
    line-height: 1;
}

/* Adjust layout on small screens */
@media (max-width: 480px) {
    .share-buttons-grid {
        grid-template-columns: 1fr;
    }
    .share-url-box {
        flex-direction: column;
    }
    .share-copy-btn {
        width: 100%;
    }
}

/* Twemoji global styles */
img.emoji {
    height: 1.25em;
    width: 1.25em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.25em;
    display: inline-block;
}

/* Lucide Icons Global Styles */
i[data-lucide] {
  width: 1.2em;
  height: 1.2em;
  stroke: currentColor;
  stroke-width: 2;
  vertical-align: -0.2em;
  display: inline-block;
  margin-right: 4px;
}
