:root {
    --accent: #7c3aed;
    /* purple */
    --accent-2: #22c55e;
    /* green tint */
    --track: rgba(255, 255, 255, .10);
    --track2: rgba(255, 255, 255, .22);
    --stroke: rgba(255, 255, 255, .18);
    --shadow: rgba(0, 0, 0, .35);
}

/* =========================
   Make decal slider match text slider
========================= */


/* SAME style for BOTH: textSize + decalSizeRange */
.text-options input[type="range"],
.drag-slider {
    width: 100%;
    height: 10px;
    margin: 20px 0 15px;
    background: linear-gradient(to right,
            var(--primary-color) 0%,
            var(--primary-color) var(--range-percent, 50%),
            var(--border-color) var(--range-percent, 50%),
            var(--border-color) 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
}

/* labels */
.text-options input[type="range"]::before,
.drag-slider::before {
    content: 'Small';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.text-options input[type="range"]::after,
.drag-slider::after {
    content: 'Large';
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.danger-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.danger-btn:hover {
    background: #ef4444;
    color: white;
}


/* thumb */
.text-options input[type="range"]::-webkit-slider-thumb,
.drag-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--primary-color);
    transition: all 0.3s ease;
}

.text-options input[type="range"]::-webkit-slider-thumb:hover,
.drag-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(118, 53, 104, 0.4),
        0 0 0 2px var(--primary-color);
}

.text-options input[type="range"]::-webkit-slider-thumb:active,
.drag-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* Firefox */
.text-options input[type="range"]::-moz-range-track,
.drag-slider::-moz-range-track {
    height: 10px;
    border-radius: 5px;
    background: var(--border-color);
}

.text-options input[type="range"]::-moz-range-progress,
.drag-slider::-moz-range-progress {
    height: 10px;
    border-radius: 5px;
    background: var(--primary-color);
}

.text-options input[type="range"]::-moz-range-thumb,
.drag-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    cursor: pointer;
}

.design-slider {
    width: 100%;
    appearance: none;
    height: 8px;
    border-radius: 6px;
    background: linear-gradient(to right,
            var(--primary-color) 0%,
            var(--border-color) 0%);
    outline: none;
    cursor: pointer;
}

/* thumb */
.design-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.design-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.design-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
}

.design-slider {
    background: linear-gradient(to right,
            var(--primary-color) var(--fill),
            var(--border-color) var(--fill));
}




.drag-slider {
    width: 100%;
    height: 10px;
    margin: 20px 0 15px;
    background: linear-gradient(to right,
            var(--primary-color) 0%,
            var(--primary-color) var(--range-percent, 50%),
            var(--border-color) var(--range-percent, 50%),
            var(--border-color) 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    position: relative;
    cursor: pointer;
}

/* same small/large labels */
.drag-slider:before {
    content: 'Small';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.drag-slider:after {
    content: 'Large';
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* thumb */
.drag-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--primary-color);
    transition: all 0.3s ease;
}

.drag-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(118, 53, 104, 0.4),
        0 0 0 2px var(--primary-color);
}

.drag-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

/* Firefox */
.drag-slider::-moz-range-track {
    height: 10px;
    border-radius: 5px;
    background: var(--border-color);
}

.drag-slider::-moz-range-progress {
    height: 10px;
    border-radius: 5px;
    background: var(--primary-color);
}

.drag-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    cursor: pointer;
}


.services-header {
    text-align: center;
    background: linear-gradient(135deg,
            rgba(118, 53, 104, 0.95) 0%,
            rgba(79, 70, 229, 0.9) 50%,
            rgba(16, 185, 129, 0.85) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.services-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.services-header .section-title {
    margin-bottom: 15px;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff 0%, #dbeafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.services-header .section-subtitle {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 3D canvas visibility control */

#threeCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.preview-container {
    position: relative;
}



@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
            0 0 40px rgba(118, 53, 104, 0.4);
    }
}

/* Customization Tool - Enhanced Layout */
.customization-tool {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

.customization-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Design Preview - Enhanced with 3D Effect */
.design-preview {
    background: linear-gradient(145deg,
            var(--card-bg) 0%,
            color-mix(in srgb, var(--card-bg), white 5%) 100%);
    border-radius: 25px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.design-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
}

.preview-container {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg,
            var(--bg-tertiary) 0%,
            color-mix(in srgb, var(--bg-tertiary), white 5%) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.preview-container:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Add perspective for 3D effect */
.preview-container.perspective-view {
    perspective: 1000px;
}

.perspective-view {
    perspective: 1000px;
}

.rotated {
    transform: rotateY(45deg);
}

.garment-preview.rotated {
    transform: rotateY(45deg);
}

.garment-preview.rotated-3d {
    transform: rotateY(45deg) rotateX(15deg);
}

.garment-preview.preview-3d {
    animation: floatGarment3D 8s ease-in-out infinite;
}

.preview-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.preview-3d.rotated-3d {
    transform: rotateY(45deg) rotateX(10deg);
}

@keyframes floatGarment3D {

    0%,
    100% {
        transform: translateY(0px) rotateY(0deg) rotateX(0deg);
    }

    25% {
        transform: translateY(-20px) rotateY(15deg) rotateX(5deg);
    }

    50% {
        transform: translateY(0px) rotateY(30deg) rotateX(0deg);
    }

    75% {
        transform: translateY(20px) rotateY(15deg) rotateX(-5deg);
    }
}

.design-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    z-index: 3;
    pointer-events: none;
    text-align: center;
    max-width: 85%;
    word-wrap: break-word;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.design-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: #6d28d9;
    z-index: 2;
    pointer-events: none;
    animation: graphicFloat 4s ease-in-out infinite;
}

.design-graphic i {
    font-size: 110px;
}

@keyframes graphicFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    33% {
        transform: translate(-50%, -55%) rotate(5deg);
    }

    66% {
        transform: translate(-50%, -45%) rotate(-5deg);
    }
}

.uploaded-image {
    width: 100px;
    /* Reduced from 120px */
    height: 100px;
    /* Reduced from 120px */
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: imageFloat 5s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    75% {
        transform: translateY(10px) rotate(-2deg);
    }
}

.preview-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.preview-controls .btn,
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.preview-controls .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Customization Options - Enhanced */
.customization-options {
    background: linear-gradient(145deg,
            var(--card-bg) 0%,
            color-mix(in srgb, var(--card-bg), white 3%) 100%);
    border-radius: 25px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.options-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.options-tabs::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: var(--tab-indicator-width, 120px);
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(var(--tab-indicator-left, 0));
}

.tab-btn,
.btn {
    background: none;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before,
.btn::before {
    left: 100%;
}

.tab-btn.active,
.btn {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 53, 104, 0.3);
}

.tab-btn:hover:not(.active) {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    margin-bottom: 30px;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-content h3::before {
    content: '';
    width: 30px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Enhanced Garment Options */
.garment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.garment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            color-mix(in srgb, var(--bg-secondary), white 5%) 100%);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.garment-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.garment-option.active::before {
    opacity: 1;
}

.garment-option.active {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(118, 53, 104, 0.2);
}

.garment-option i {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.garment-option.active i {
    color: white;
    transform: scale(1.2);
}

.garment-option span {
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.garment-option.active span {
    color: white;
}

.garment-option:hover:not(.active) {
    background-color: var(--bg-tertiary);
    transform: translateY(-3px);
    border-color: var(--border-color);
}

.garment-option:hover:not(.active) i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Enhanced Design Options */
.design-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.design-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            color-mix(in srgb, var(--bg-secondary), white 5%) 100%);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.design-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-option.active::before {
    opacity: 1;
}

.design-option.active {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(118, 53, 104, 0.2);
}

.design-option i {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.design-option.active i {
    color: white;
    transform: scale(1.2);
}

.design-option span {
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.design-option.active span {
    color: white;
}

.design-option:hover:not(.active) {
    background-color: var(--bg-tertiary);
    transform: translateY(-3px);
    border-color: var(--border-color);
}

.design-option:hover:not(.active) i {
    color: var(--primary-color);
    transform: scale(1.1);
}


/* View controls */
.view-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.view-controls-group {
    background: linear-gradient(135deg,
            rgba(118, 53, 104, 0.1) 0%,
            rgba(16, 185, 129, 0.05) 100%);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(118, 53, 104, 0.2);
}

.view-controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.view-controls-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-controls-help {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: help;
    transition: all 0.3s ease;
}

.view-controls-help:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.view-controls-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.view-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            color-mix(in srgb, var(--bg-secondary), white 5%) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.view-btn i {
    font-size: 20px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.view-btn.active {
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(118, 53, 104, 0.2);
}

.view-btn.active i,
.view-btn.active span {
    color: white;
}

.view-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.view-btn:hover:not(.active) {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.view-btn:hover:not(.active) i {
    color: var(--primary-color);
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.action-controls {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.control-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            color-mix(in srgb, var(--bg-secondary), white 5%) 100%);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.6s ease;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn i {
    font-size: 18px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.control-btn span {
    font-size: 0.8rem;
    font-weight: 600;
}

.control-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(118, 53, 104, 0.2);
}

.control-btn:hover i {
    animation: spin 0.5s ease;
    transform: rotate(180deg);
}

#resetDesign:hover i {
    animation: shake 0.5s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}



.view-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-btn.active::before {
    opacity: 1;
}


/* Design tab - Default to None */
.design-option[data-design="none"] {
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.design-option[data-design="none"] i {
    color: white;
}

/* Enhanced Upload Area */
.upload-design {
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            color-mix(in srgb, var(--bg-secondary), white 3%) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.upload-design:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.upload-design h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-design h4::before {
    content: '🎨';
    font-size: 1.5rem;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(118, 53, 104, 0.1);
    transform: scale(1.02);
}

.upload-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-area:hover i {
    transform: scale(1.2) rotate(10deg);
}

.upload-area p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
}

.upload-note {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
    opacity: 0.8;
}

/* Enhanced Text Options */
.text-options .form-group {
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
}

.text-options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.text-options input[type="text"],
.text-options select {

    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            color-mix(in srgb, var(--bg-secondary), white 5%) 100%);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-options input[type="text"]:focus,
.text-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(118, 53, 104, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-options input[type="range"] {
    width: 100%;
    height: 10px;
    margin: 20px 0 15px;
    background: linear-gradient(to right,
            var(--primary-color) 0%,
            var(--primary-color) var(--range-percent, 50%),
            var(--border-color) var(--range-percent, 50%),
            var(--border-color) 100%);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    position: relative;
    cursor: pointer;
}

.text-options input[type="range"]:before {
    content: 'Small';
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.text-options input[type="range"]:after {
    content: 'Large';
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}

.text-options input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

.text-options input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(118, 53, 104, 0.4),
        0 0 0 2px var(--primary-color);
}

.text-options input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

.range-value {
    display: inline-block;
    margin-left: 15px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 5px 15px;
    background: rgba(118, 53, 104, 0.1);
    border-radius: 20px;
    min-width: 70px;
    text-align: center;
    transition: all 0.3s ease;
}

.range-value:hover {
    background: rgba(118, 53, 104, 0.2);
    transform: scale(1.05);
}

/* Enhanced Color Picker */
.color-picker {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.color-option {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.color-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.color-option.active {
    border-color: var(--text-color);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.color-option:hover:not(.active) {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced Design Summary */
.design-summary {
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            color-mix(in srgb, var(--bg-secondary), white 3%) 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.design-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
}

.design-summary h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.design-summary h3::before {
    content: '📋';
    font-size: 1.8rem;
}

.summary-details {
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.5s ease backwards;
}

.summary-item:nth-child(1) {
    animation-delay: 0.1s;
}

.summary-item:nth-child(2) {
    animation-delay: 0.2s;
}

.summary-item:nth-child(3) {
    animation-delay: 0.3s;
}

.summary-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-item span:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.summary-item span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

.summary-item .price {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.design-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.design-actions .btn {
    flex: 1;
    min-width: 180px;
    padding: 16px 24px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.design-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.design-actions .btn:hover::before {
    left: 100%;
}

.design-actions .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.design-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.design-actions .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Design Gallery - Enhanced */
.design-gallery {
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            var(--bg-tertiary) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.design-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.gallery-item {
    background: linear-gradient(145deg,
            var(--card-bg) 0%,
            color-mix(in srgb, var(--card-bg), white 5%) 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(118, 53, 104, 0.1);
}

.gallery-img {
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(118, 53, 104, 0.1) 0%,
            rgba(16, 185, 129, 0.1) 100%);
}

.gallery-img i {
    font-size: 140px;
    color: var(--primary-color);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-img i {
    transform: scale(1.2) rotate(10deg);
    opacity: 0.5;
}

.gallery-design {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: var(--secondary-color);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-design {
    transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
}

.gallery-text {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-text {
    transform: translateY(-5px);
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
}

.gallery-info {
    padding: 25px;
    background: linear-gradient(to top,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 100%);
}

.gallery-info h4 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--text-color);
}

.gallery-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.2);
}

.step.completed .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: var(--text-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-color);
}

.garment-option:hover .tooltip,
.design-option:hover .tooltip,
.color-option:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px);
}

/* Confirmation Modal */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.modal-content {
    background: linear-gradient(135deg,
            var(--card-bg) 0%,
            color-mix(in srgb, var(--card-bg), white 5%) 100%);
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmation-modal.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-actions .btn {
    flex: 1;
    padding: 15px;
}

.loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.25s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #ddd;
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loader-text {
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .customization-layout {
        gap: 40px;
    }

    .garment-options,
    .design-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .customization-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .design-preview {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }

    .services-header .section-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .services-header {
        padding: 120px 0 60px;
    }

    .services-header .section-title {
        font-size: 2.2rem;
    }

    .design-preview {
        padding: 25px;
    }

    .preview-container {
        height: 350px;
    }

    .garment-preview {
        width: 250px;
        height: 250px;
    }


    .customization-options {
        padding: 25px;
    }

    .options-tabs {
        justify-content: center;
    }

    .design-actions .btn {
        min-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .progress-steps {
        flex-direction: column;
        gap: 30px;
    }

    .progress-steps::before {
        width: 2px;
        height: 80%;
        left: 50%;
        top: 0;
        bottom: 0;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {

    .garment-options,
    .design-options {
        grid-template-columns: 1fr;
    }

    .preview-controls {
        flex-direction: column;
    }

    .preview-controls .btn {
        width: 100%;
    }

    .modal-content {
        padding: 25px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Add to your existing animations */
@keyframes floatGarment3D {

    0%,
    100% {
        transform: rotateY(0deg) rotateX(0deg) translateY(0);
    }

    25% {
        transform: rotateY(15deg) rotateX(5deg) translateY(-10px);
    }

    50% {
        transform: rotateY(30deg) rotateX(0deg) translateY(0);
    }

    75% {
        transform: rotateY(15deg) rotateX(-5deg) translateY(10px);
    }
}

/* Garment preview rotation animation */
.garment-preview.rotating {
    animation: continuousRotate 20s linear infinite;
}

@keyframes continuousRotate {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Button active states for rotation */
.control-btn.rotating {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-color: var(--secondary-color);
    animation: pulseActive 2s ease-in-out infinite;
}

@keyframes pulseActive {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

/* Add to services.css or create new saved-designs.css */

/* Saved Designs Section */
.saved-designs {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.saved-designs-header {
    text-align: center;
    margin-bottom: 50px;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.saved-design-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.saved-design-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.saved-design-preview {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.saved-design-preview i {
    font-size: 80px;
    color: var(--primary-color);
}

.saved-design-info {
    padding: 20px;
}

.saved-design-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.saved-design-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.saved-design-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.saved-design-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.saved-design-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Empty state for saved designs */
.no-saved-designs {
    text-align: center;
    padding: 60px 20px;
}

.no-saved-designs i {
    font-size: 60px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-saved-designs h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.no-saved-designs p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* =========================
   PLACEMENT UI (Design Tab)
========================= */

.placement-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.placement-btn {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

[data-theme="dark"] .placement-btn {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.10);
}

.placement-btn i {
    font-size: 34px;
    line-height: 1;
    opacity: 0.95;
}

.placement-btn span {
    font-weight: 650;
    font-size: 15px;
}

.placement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="dark"] .placement-btn:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.16);
}

/* ✅ Comfy active state (clean, not heavy gradient) */
.placement-btn.active {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.18);
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="dark"] .placement-btn.active {
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
}

/* Slider row under grid */
.placement-controls {
    margin-top: 14px;
    padding-top: 8px;
}

.placement-row {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

#dragToggleBtn {
    display: flex;
    width: 100px;
}

.placement-row label {
    font-weight: 600;
    opacity: 0.9;
}

.placement-row input[type="range"] {
    width: 100%;
}

.placement-note {
    margin-top: 10px;
}

/* Mobile: single column */
@media (max-width: 520px) {
    .placement-options {
        grid-template-columns: 1fr;
    }

    .placement-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.toggle-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f3f4f6;
    cursor: pointer;
    font-weight: 600;
}

.toggle-btn.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

#text-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn:hover {
    background-color: rgb(126, 9, 22);
}