﻿/* ==========================================================================
   PROREPAIR INTERACTIVE STUDIO™ — HARMONIOUS GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */
#pr-widget-container {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #0f172a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#pr-widget-container h1,
#pr-widget-container h2,
#pr-widget-container h3,
#pr-widget-container h4,
#pr-widget-container h5,
#pr-widget-container p {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-transform: none;
    letter-spacing: -0.02em;
}

#pr-widget-container svg {
    max-width: 100%;
    flex-shrink: 0;
    vertical-align: middle;
}

.pr-app-shell {
    position: relative;
    background:
        radial-gradient(circle at 6% 10%, rgba(59, 130, 246, 0.11) 0%, transparent 40%),
        radial-gradient(circle at 94% 8%, rgba(99, 102, 241, 0.11) 0%, transparent 42%),
        radial-gradient(circle at 50% 96%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #f1f5f9 0%, #f8fafc 50%, #eef2ff 100%) !important;
    border-radius: 1.75rem !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow:
        0 24px 60px -18px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    padding: 1.75rem 1.75rem 2.75rem !important;
    margin: 1.25rem auto 3rem !important;
    max-width: 1320px !important;
    overflow: hidden;
    transition: background 0.35s ease, border-color 0.35s ease;
}

@media (max-width: 768px) {
    .pr-app-shell {
        padding: 1rem 0.85rem 5.5rem !important;
        border-radius: 1.25rem !important;
    }
}

/* 1. HARMONIOUS TWO-TIER GLASS COMMAND HEADER */
.pr-spatial-dock {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.35rem;
    box-shadow:
        0 10px 30px -10px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.pr-dock-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.pr-dock-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pr-dock-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pr-primary, #3b82f6) 0%, var(--pr-secondary, #6366f1) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(59, 130, 246, 0.4);
    position: relative;
    flex-shrink: 0;
}

.pr-dock-logo::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #ffffff;
}

.pr-dock-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pr-dock-title-wrap .title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.pr-dock-title-wrap .sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pr-dock-usp-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pr-dock-usp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
}

@media (max-width: 1100px) {
    .pr-dock-usp-strip { display: none; }
}

.pr-dock-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pr-dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
}

.pr-dock-btn:hover {
    border-color: var(--pr-primary, #3b82f6);
    background: #ffffff;
    color: var(--pr-primary, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.pr-dock-btn svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0;
}

/* Connected 7-Step Glass Ribbon */
.pr-spatial-steps {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

@media (max-width: 900px) {
    .pr-spatial-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
}

.pr-spatial-arrow {
    display: none !important;
}

.pr-spatial-pill {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: default;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    min-width: 115px;
    position: relative;
    overflow: hidden;
}

.pr-spatial-pill .pill-num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.pr-spatial-pill .pill-text-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.pr-spatial-pill .pill-step-title {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    line-height: 1.1;
}

.pr-spatial-pill .pill-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    margin-top: 1px;
}

.pr-spatial-pill.completed {
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.4);
    cursor: pointer;
}

.pr-spatial-pill.completed .pill-num {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pr-spatial-pill.completed .pill-step-title {
    color: #059669;
}

.pr-spatial-pill.completed .pill-label {
    color: #0f172a;
}

.pr-spatial-pill.completed:hover {
    transform: translateY(-2px);
    border-color: #10b981;
    box-shadow: 0 6px 14px -4px rgba(16, 185, 129, 0.18);
}

.pr-spatial-pill.active {
    background: linear-gradient(135deg, var(--pr-primary, #3b82f6) 0%, var(--pr-secondary, #6366f1) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

.pr-spatial-pill.active .pill-num {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.pr-spatial-pill.active .pill-step-title {
    color: rgba(255, 255, 255, 0.8);
}

.pr-spatial-pill.active .pill-label {
    color: #ffffff;
}

/* Track & Trace Radar Drawer */
.pr-studio-radar-drawer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid #cbd5e1;
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    box-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.1);
}

/* 2. HARMONIOUS SPLIT-STAGE STUDIO GRID */
.pr-studio-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .pr-studio-grid {
        grid-template-columns: 1fr;
    }
}

/* LEFT STAGE: HARMONIOUS FROSTED GLASS PASSPORT & HARDWARE TWIN */
.pr-xray-stage {
    position: sticky;
    top: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 20px 45px -15px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    padding: 1.35rem;
    color: #0f172a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pr-stage-top-hud {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pr-stage-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pr-stage-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: pr-pulse 2s infinite;
}

/* Interactive Hardware Twin Viewport inside the Glass Card */
.pr-xray-visualizer {
    position: relative;
    z-index: 2;
    height: 205px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.22) 0%, transparent 65%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #1e1b4b 100%);
    border-radius: 1.15rem;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.35);
}

.pr-xray-orbit-ring {
    position: absolute;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.28);
    animation: pr-spin-slow 24s linear infinite;
    pointer-events: none;
}

.pr-xray-orbit-ring-2 {
    position: absolute;
    width: 205px;
    height: 205px;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.16);
    animation: pr-spin-slow 36s linear infinite reverse;
    pointer-events: none;
}

@keyframes pr-spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pr-xray-scanbeam {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #38bdf8 50%, transparent 100%);
    box-shadow: 0 0 12px #38bdf8;
    animation: pr-stage-scan 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pr-stage-scan {
    0%, 100% { top: 14%; opacity: 0.25; }
    50% { top: 86%; opacity: 0.85; }
}

.pr-xray-device-svg {
    width: 106px !important;
    height: 160px !important;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pr-xray-visualizer:hover .pr-xray-device-svg {
    transform: scale(1.05);
}

.pr-xray-pin {
    position: absolute;
    padding: 0.2rem 0.52rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.pr-xray-pin.active {
    background: rgba(16, 185, 129, 0.28);
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
    transform: scale(1.05);
}

.pr-xray-pin.pin-tl { top: 10px; left: 10px; }
.pr-xray-pin.pin-tr { top: 10px; right: 10px; }
.pr-xray-pin.pin-bl { bottom: 10px; left: 10px; }
.pr-xray-pin.pin-br { bottom: 10px; right: 10px; }

.pr-stage-device-title {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0.25rem 0 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.pr-stage-device-title h3 {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.pr-stage-device-title .sub {
    font-size: 0.72rem;
    color: var(--pr-primary, #3b82f6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
    display: block;
}

.pr-stage-items-list {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
}

.pr-stage-line-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.pr-stage-line-chip:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.pr-stage-line-chip .left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.pr-stage-line-chip .name {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-stage-line-chip .q-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--pr-primary, #2563eb);
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.pr-stage-line-chip .val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.pr-stage-empty-state {
    text-align: center;
    padding: 1rem 0.85rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.5;
}

.pr-stage-total-box {
    position: relative;
    z-index: 2;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    padding: 1rem 1.15rem;
    margin-top: auto;
}

.pr-stage-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.pr-stage-total-row .pr-total-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    display: block;
}

.pr-stage-total-row .pr-total-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.pr-stage-cta-btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border-radius: 0.85rem;
    border: none;
    background: linear-gradient(135deg, var(--pr-primary, #3b82f6) 0%, var(--pr-secondary, #6366f1) 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 24px -6px rgba(59, 130, 246, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pr-stage-cta-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px rgba(99, 102, 241, 0.55);
}

.pr-stage-cta-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* RIGHT STAGE: MAIN CONFIGURATOR CANVAS HARMONY */
.pr-main-section {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.5rem !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    padding: 2rem 2.25rem !important;
    box-shadow:
        0 20px 45px -15px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    min-height: 540px;
}

@media (max-width: 640px) {
    .pr-main-section {
        padding: 1.35rem 1.15rem !important;
    }
}

.pr-header {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.pr-header h1#pr-title {
    font-size: clamp(1.35rem, 2.2vw, 1.65rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 0.35rem 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
}

.pr-header p#pr-subtitle {
    font-size: 0.92rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Bento Cards (Step 1, 2, 3) Harmonious Proportions */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)) !important;
    gap: 1.1rem !important;
}

.pr-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 1.25rem !important;
    padding: 1.5rem 1.15rem 1.25rem !important;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.04) !important;
}

.pr-card:hover {
    border-color: var(--pr-primary, #3b82f6) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 18px 34px -10px rgba(59, 130, 246, 0.16) !important;
}

.pr-card-icon-wrap {
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
    border: 1px solid #e2e8f0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem !important;
    color: var(--pr-primary, #3b82f6);
    transition: all 0.28s ease;
}

.pr-card:hover .pr-card-icon-wrap {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #bfdbfe !important;
    transform: scale(1.06);
}

.pr-card img {
    height: 64px !important;
    max-width: 110px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto 0.85rem !important;
    display: block;
    transition: transform 0.28s ease;
}

.pr-card:hover img {
    transform: scale(1.07);
}

.pr-card .name {
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.pr-card .sub-badge {
    margin-top: 0.45rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    padding: 0.22rem 0.65rem !important;
    border-radius: 999px !important;
    transition: all 0.2s ease;
}

.pr-card:hover .sub-badge {
    background: #eff6ff !important;
    color: var(--pr-primary, #2563eb) !important;
}

/* 3. UNIFIED REPAIR CARDS WITH EMBEDDED QUALITY TIER SWITCHER */
.pr-studio-repair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.1rem;
    padding: 1.25rem;
}

.pr-studio-repair-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.9rem;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.04);
}

.pr-studio-repair-card:hover {
    border-color: var(--pr-primary, #3b82f6);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.1);
}

.pr-studio-repair-card.selected {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    border-color: var(--pr-primary, #3b82f6);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.16),
        0 14px 28px -8px rgba(37, 99, 235, 0.14);
}

.pr-studio-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.pr-studio-card-title-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: 0;
    flex: 1;
}

.pr-studio-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #e2e8f0;
    color: var(--pr-primary, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.pr-studio-repair-card.selected .pr-studio-card-icon {
    background: linear-gradient(135deg, var(--pr-primary, #3b82f6) 0%, var(--pr-secondary, #6366f1) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 14px -3px rgba(37, 99, 235, 0.35);
}

.pr-studio-card-title-group h5 {
    margin: 0 0 0.2rem 0 !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.015em;
    line-height: 1.3 !important;
}

.pr-studio-card-title-group p {
    margin: 0 !important;
    font-size: 0.77rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.pr-studio-price-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.38rem 0.75rem;
    border-radius: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pr-studio-repair-card.selected .pr-studio-price-tag {
    background: linear-gradient(135deg, var(--pr-primary, #3b82f6) 0%, var(--pr-secondary, #6366f1) 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Embedded Quality Tier Switcher */
.pr-quality-switcher {
    background: #f1f5f9;
    padding: 0.28rem;
    border-radius: 0.8rem;
    display: flex;
    gap: 0.28rem;
    border: 1px solid #e2e8f0;
}

.pr-q-pill {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.45rem;
    border-radius: 0.58rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.pr-q-pill .q-name {
    font-weight: 800;
}

.pr-q-pill .q-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    opacity: 0.8;
    margin-top: 2px;
}

.pr-q-pill:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.pr-q-pill.active {
    background: #ffffff;
    color: var(--pr-primary, #2563eb);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07);
}

.pr-studio-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.7rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.pr-select-indicator {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--pr-primary, #3b82f6);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.pr-studio-repair-card.selected .pr-select-indicator {
    color: #059669;
}

.pr-popular-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
    z-index: 3;
}

.pr-card-cta-arrow {
    margin-top: 0.55rem;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--pr-primary, #3b82f6);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.75;
    transition: all 0.25s ease;
}

.pr-card:hover .pr-card-cta-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.pr-kbd-badge {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    pointer-events: none;
}

/* Harmonious Dark Mode Support (Both Columns Together) */
.pr-app-shell.pr-dark-mode {
    background:
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.14) 0%, transparent 45%),
        linear-gradient(180deg, #090d16 0%, #0f172a 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.pr-app-shell.pr-dark-mode .pr-spatial-dock,
.pr-app-shell.pr-dark-mode .pr-xray-stage,
.pr-app-shell.pr-dark-mode .pr-main-section {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

.pr-app-shell.pr-dark-mode .pr-dock-title-wrap .title,
.pr-app-shell.pr-dark-mode .pr-stage-device-title h3,
.pr-app-shell.pr-dark-mode .pr-stage-total-row .pr-total-price,
.pr-app-shell.pr-dark-mode .pr-header h1#pr-title,
.pr-app-shell.pr-dark-mode .pr-card .name,
.pr-app-shell.pr-dark-mode .pr-studio-card-title-group h5 {
    color: #f8fafc !important;
}

.pr-app-shell.pr-dark-mode .pr-card,
.pr-app-shell.pr-dark-mode .pr-studio-repair-card,
.pr-app-shell.pr-dark-mode .pr-repair-category-box,
.pr-app-shell.pr-dark-mode .pr-repair-category-header,
.pr-app-shell.pr-dark-mode .pr-stage-line-chip,
.pr-app-shell.pr-dark-mode .pr-stage-total-box,
.pr-app-shell.pr-dark-mode .pr-spatial-pill {
    background: rgba(30, 41, 59, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
