.dsvfr-container {
    display: flex;
    max-width: 100%;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    min-height: auto;
}

.dsvfr-hidden {
    display: none !important;
}

/* Product Page Links */
.dsvfr-product-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0 25px 0;
    font-family: 'Inter', sans-serif;
}

.dsvfr-trigger-link,
.dsvfr-guide-link {
    font-size: 16px;
    color: #111;
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.3s;
    cursor: pointer;
}

.dsvfr-trigger-link:hover,
.dsvfr-guide-link:hover {
    color: #666;
}

.dsvfr-separator {
    color: #e0e0e0;
    font-weight: 300;
}

/* Summary Box on Product Page */
.dsvfr-summary-box {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #111;
    padding: 20px 25px;
    margin: 20px 0 30px 0;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

.dsvfr-summary-title {
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    color: #111;
}

.dsvfr-summary-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dsvfr-summary-tag {
    background: #f5f5f5;
    color: #111;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #eee;
}

.dsvfr-summary-size {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 600;
}

/* Modal Styles */
.dsvfr-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999999;
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.dsvfr-overlay.active {
    display: flex !important;
}

body.dsvfr-modal-open {
    overflow: hidden !important;
}

.dsvfr-modal-content {
    background: #fff;
    width: 100%;
    max-width: 1000px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    animation: dsvfr-slide-up 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
    max-height: 90vh;
}

@keyframes dsvfr-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dsvfr-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #fff;
    border: none;
    font-size: 32px;
    color: #111;
    cursor: pointer;
    z-index: 100;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dsvfr-close-btn:hover {
    transform: rotate(90deg);
}

.dsvfr-container.dsvfr-popup-form {
    border: none;
    box-shadow: none;
    margin: 0;
    width: 100%;
}

.dsvfr-image-section {
    flex: 1.5;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.dsvfr-brand-logo-container {
    position: absolute;
    top: -1px; /* Overlap the edge for seamless look */
    left: -1px;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 0 0 40px 0; /* Premium rounded corner */
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.04);
    z-index: 10;
}

.dsvfr-brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
}

.dsvfr-body-model-img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.dsvfr-body-viz {
    position: relative;
    width: 100%;
    max-width: 500px; /* Slight increase for better visibility */
    height: 700px; /* Matched to increased viz height in script.js later */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 20px auto 0;
    overflow: visible;
}

.dsvfr-body-segment {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    transform-origin: center center;
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    flex-shrink: 0; /* Prevent vertical squishing */
}

.dsvfr-body-segment img {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    height: 700px !important; /* Update to match height in script.js */
    width: auto !important;
    max-width: none !important;
    display: block !important;
    mix-blend-mode: multiply;
}

.dsvfr-form-section {
    flex: 1.2;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.dsvfr-form-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #111;
}

.dsvfr-form-header p {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.dsvfr-gender-selector {
    display: flex;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 40px;
    width: fit-content;
}

.dsvfr-gender-btn {
    padding: 12px 60px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #999;
}

.dsvfr-gender-btn.active {
    background: #fff;
    color: #111;
    border: 1px solid #111;
    margin: -1px;
    z-index: 1;
}

.dsvfr-input-group {
    margin-bottom: 30px;
    position: relative;
}

.dsvfr-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.dsvfr-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dsvfr-input {
    width: 120px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.dsvfr-input:focus {
    outline: none;
    border-color: #111;
}

.dsvfr-hidden {
    display: none !important;
}

.dsvfr-dual-inputs {
    display: flex;
    gap: 10px;
}

.dsvfr-small-input {
    width: 60px !important;
    text-align: center;
}

.dsvfr-unit-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
}

.dsvfr-unit {
    cursor: pointer;
    transition: color 0.3s;
}

.dsvfr-unit.active {
    color: #fff;
    background: #000;
    padding: 4px 12px;
    border-radius: 2px;
}

.dsvfr-unit-label {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.dsvfr-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #666;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 10px;
    cursor: pointer;
}

/* Slider Styles */
.dsvfr-slider-group {
    margin-bottom: 45px;
}

.dsvfr-slider-label {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.dsvfr-slider-value {
    display: inline-block;
    margin-left: 10px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.dsvfr-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dsvfr-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #111;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.dsvfr-slider-btn:active {
    transform: scale(0.9);
}

.dsvfr-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 1px;
    background: #000;
    outline: none;
    position: relative;
}

.dsvfr-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.05);
}

.dsvfr-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dsvfr-dots {
    display: flex;
    gap: 8px;
}

.dsvfr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
}

.dsvfr-dot.active {
    background: #666;
}

.dsvfr-btn-group {
    display: flex;
    gap: 15px;
}

.dsvfr-next-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 45px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.dsvfr-outline-btn {
    background: #e0e0e0;
    color: #111;
    border: none;
    padding: 14px 35px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.dsvfr-next-btn:hover {
    background: #333;
}

@media (max-width: 768px) {
    .dsvfr-container {
        flex-direction: column;
    }

    .dsvfr-form-section {
        padding: 40px;
    }

    .dsvfr-footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .dsvfr-btn-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .dsvfr-next-btn, .dsvfr-outline-btn {
        flex: 1;
        min-width: 120px;
        padding: 12px 20px;
    }
}

/* Step 3: Professional Video Blueprint Rebuild */
.dsvfr-sg-fitting-modal {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    padding: 30px;
    width: 100%;
    max-width: 1050px; /* Thoda wide kiya taake labels fit ayen */
    margin: auto;
    height: 500px;
    font-family: 'Helvetica', sans-serif;
    overflow: hidden; /* Boundaries control */
}

.dsvfr-sg-flex-grow {
    flex: 1;
}

.dsvfr-sg-suit-fit-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Hover Reveal Effect for Left Column */
.dsvfr-sg-hover-reveal-box {
    position: relative;
    width: 100%;
    cursor: crosshair;
}

.dsvfr-sg-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    background: #fff;
    border-radius: 10px;
}

.dsvfr-sg-hover-reveal-box:hover .dsvfr-sg-hover-img {
    opacity: 1;
}

.dsvfr-sg-front-img {
    position: relative;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.dsvfr-sg-hover-reveal-box:hover .dsvfr-sg-front-img {
    opacity: 0.1;
}

/* Middle Section: Model ka Fixed Frame */
.dsvfr-sg-model-frame-new {
    position: relative;
    width: 300px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.dsvfr-sg-fit-status {
    position: absolute;
    top: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Model Image */
.dsvfr-sg-human-fit-img {
    height: 90%;
    width: auto;
    z-index: 1;
    mix-blend-mode: multiply;
    display: block;
    transition: transform 0.4s ease;
}

.dsvfr-sg-human-fit-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* RINGS */
.dsvfr-sg-ring-fit {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid;
    border-radius: 50%;
    width: 100px;
    height: 15px;
    z-index: 5;
    transition: all 0.4s ease;
}

.dsvfr-sg-chest-fit { top: 31% !important; } 
.dsvfr-sg-waist-fit { top: 47% !important; }

/* Interactive Label Adjustment Buttons */
.dsvfr-sg-label-fit {
    position: absolute;
    left: calc(50% + 40px); /* Rings ke aur kareeb kiya */
    display: flex;
    align-items: center;
    gap: 6px; /* Gaps kam kiye */
    font-size: 13px; /* Font thoda chota kiya */
    font-weight: 500;
    text-transform: lowercase;
    white-space: nowrap;
    z-index: 10;
    transition: all 0.3s ease;
}

.dsvfr-sg-label-text {
    margin: 0 3px;
}

.dsvfr-sg-adj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; /* Button size thoda chota kiya */
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid currentColor;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    user-select: none;
    transition: all 0.2s;
    line-height: 1;
}

.dsvfr-sg-adj-btn:hover {
    background: currentColor;
    color: #fff !important;
    transform: scale(1.1);
}

.dsvfr-sg-label-fit::before {
    content: '↔';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: currentColor;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
}

.dsvfr-sg-chest-label-fit { top: 31% !important; height: 15px; }
.dsvfr-sg-waist-label-fit { top: 47% !important; height: 15px; }

/* Right Sidebar: Professional Video Sidebar */
.dsvfr-sg-size-sidebar-video {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
    border-left: 1px solid #f0f0f0;
}

.dsvfr-sg-best-card-wrapper {
    margin-bottom: 25px;
    text-align: center;
}

.dsvfr-sg-best-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    margin-bottom: 12px;
}

.dsvfr-sg-best-card {
    position: relative;
    display: inline-block;
    background: #fff;
    width: 140px;
    height: 120px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 400;
    color: #111;
    margin: 0 auto;
}

.dsvfr-sg-best-tick {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 44px;
    height: 44px;
    background: #2ecc71;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    border: 4px solid #fff;
    z-index: 5;
}

.dsvfr-sg-sidebar-video-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.dsvfr-sg-btn-row-video {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.dsvfr-sg-size-btn {
    width: 55px;
    height: 45px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dsvfr-sg-size-btn:hover {
    border-color: #000;
}

.dsvfr-sg-size-btn.active {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.dsvfr-sg-add-cart-btn-video {
    background: #000;
    color: #fff;
    width: 100%;
    padding: 18px;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.dsvfr-sg-back-video-link {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    cursor: pointer;
}

/* Utility State Classes */
.greenPulse { border-color: #2ecc71; box-shadow: 0 0 15px rgba(46, 204, 113, 0.4); }
.orangePulse { border-color: #f39c12; box-shadow: 0 0 15px rgba(243, 156, 18, 0.4); }
.redPulse { border-color: #e74c3c; box-shadow: 0 0 15px rgba(231, 76, 60, 0.4); }

.greenText { color: #2ecc71; border-color: #2ecc71; }
.orangeText { color: #f39c12; border-color: #f39c12; }
.redText { color: #e74c3c; border-color: #e74c3c; }

@media (max-width: 850px) {
    .dsvfr-sg-fitting-modal { flex-direction: column; height: auto; padding: 20px; }
    .dsvfr-sg-model-frame-new { width: 100%; margin: 30px 0; }
    .dsvfr-sg-size-sidebar-video { border-left: none; padding-left: 0; border-top: 1px solid #f0f0f0; padding-top: 20px; }
    .dsvfr-sg-label-fit { left: 70%; }
}