
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #4a5568;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #f8f9ff 0%, #fef7f7 50%, #f0f8f0 100%);
    border-bottom: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(230,179,186,0.02)"/><circle cx="75" cy="75" r="0.5" fill="rgba(230,179,186,0.02)"/><circle cx="50" cy="10" r="0.3" fill="rgba(230,179,186,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: #4a5568;
    text-shadow: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, #f8d7da, #e6b3ba); */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* color: #4a5568; */
    /* box-shadow: 0 2px 8px rgba(230, 179, 186, 0.15); */
    position: relative;
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.canvas-subtitle {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 400;
    margin-left: 0.5rem;
}

.restart-wizard-btn {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(230, 179, 186, 0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #718096;
    position: relative;
    overflow: hidden;
}

.restart-wizard-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 179, 186, 0.1), rgba(230, 179, 186, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.restart-wizard-btn:hover {
    border-color: rgba(230, 179, 186, 0.5);
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 179, 186, 0.2);
    color: #e6b3ba;
}

.restart-wizard-btn:hover::before {
    opacity: 1;
}

.restart-wizard-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(230, 179, 186, 0.15);
}

.restart-icon {
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.restart-text {
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1;
    position: relative;
}

.restart-wizard-btn:hover .restart-icon {
    transform: rotate(180deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.header-tools {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.header-tool-btn {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(230, 179, 186, 0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    height: 40px;
    min-width: fit-content;
}

.header-tool-btn:hover {
    border-color: rgba(230, 179, 186, 0.4);
    background: rgba(255,255,255,0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 179, 186, 0.15);
}

.zoom-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.zoom-btn {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(230, 179, 186, 0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    height: 40px;
    min-width: 40px;
}

.zoom-btn:hover {
    border-color: rgba(230, 179, 186, 0.4);
    background: rgba(255,255,255,0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 179, 186, 0.15);
}

.cart-icon {
    position: relative;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 179, 186, 0.2);
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    font-size: 1rem;
}

.cart-icon:hover {
    border-color: rgba(230, 179, 186, 0.4);
    background: rgba(255,255,255,0.8);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 179, 186, 0.15);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e6b3ba;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Layout */
.main-container {
    display: flex;
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f8f9ff 0%, #fef7f7 50%, #f0f8f0 100%);
}

/* Left Sidebar */
.left-sidebar {
    width: 280px;
    background: #fefefe;
    border-right: 1px solid #f7fafc;
    padding: 1.5rem;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.gem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 200px;
    /* Firefox scrollbar - ظریف و شیک */
    scrollbar-width: thin;
    scrollbar-color: rgba(230, 179, 186, 0.5) rgba(242, 247, 252, 0.5);
}

/* Custom Scrollbar for gem-grid - ظریف و شیک */
.gem-grid::-webkit-scrollbar {
    width: 6px;
}

.gem-grid::-webkit-scrollbar-track {
    background: rgba(242, 247, 252, 0.5);
    border-radius: 10px;
    margin: 4px 0;
}

.gem-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(230, 179, 186, 0.4) 0%, rgba(230, 179, 186, 0.6) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gem-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(230, 179, 186, 0.6) 0%, rgba(230, 179, 186, 0.8) 100%);
}

.gem-item {
    aspect-ratio: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    position: relative;
}

.gem-item:hover {
    border-color: #e6b3ba;
    background: #fef5f6;
    transform: scale(1.05);
}

.gem-item.selected {
    border-color: #e6b3ba;
    background: #fef5f6;
    box-shadow: 0 2px 8px rgba(230, 179, 186, 0.2);
}

.gem-shape-bw {
    filter: grayscale(100%);
    opacity: 0.7;
}

.gem-shape-bw-img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}


.gem-item.selected .gem-shape-bw {
    filter: none;
    opacity: 1;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.color-item {
    aspect-ratio: 1;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    position: relative;
    font-size: 1.2rem;
}

.color-item:hover {
    border-color: #e6b3ba;
    background: #fef5f6;
    transform: scale(1.05);
}

.color-item.selected {
    border-color: #e6b3ba;
    background: #fef5f6;
    box-shadow: 0 2px 8px rgba(230, 179, 186, 0.2);
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-selector .size-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.size-btn {
    display: flex;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.size-btn-img-wrapper {
    font-size: 15px;
     color: rgb(230, 179, 186); 
     line-height: 1;
}
.size-btn-img-wrapper img {
    object-fit: contain;
}
.size-btn:hover, .size-btn.active {
    border-color: #e6b3ba;
    background: #fef5f6;
}


/* Main Canvas */
.canvas-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    position: relative;
}



.canvas-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.nail-canvas {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nail-base {
    position: relative;
    display: inline-block;
}

.nail-base svg {
    display: block;
    width: auto;
    height: auto;
}

.placed-gem {
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: move;
    transition: transform 0.1s;
    z-index: 10;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placed-gem:hover {
    transform: scale(1.1);
}

.placed-gem.selected {
    box-shadow: 0 0 0 2px #e6b3ba;
}

.gem-toolbar {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem;
    display: none;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.placed-gem.selected .gem-toolbar {
    display: flex;
}

.toolbar-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #f7fafc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.toolbar-btn:hover {
    background: #e6b3ba;
    color: white;
}

/* Right Sidebar */
.right-sidebar {
    width: 300px;
    background: #fefefe;
    border-left: 1px solid #f7fafc;
    padding: 1.5rem;
    overflow-y: auto;
}

.price-calculator {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.total-price {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.design-name {
    margin-bottom: 1.5rem;
}

.design-name input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #ffffff;
}

.design-name input:focus {
    outline: none;
    border-color: #e6b3ba;
}

.add-to-cart {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #e6b3ba, #d4a5ab);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 179, 186, 0.3);
}



/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 2rem;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Wizard Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}

.modal-overlay.hidden {
    display: none;
}

.wizard-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.3s ease-out;
}

/* Success Modal */
.success-modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e6b3ba, #d4a5ab);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #718096;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.success-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-btn.primary {
    background: linear-gradient(135deg, #e6b3ba, #d4a5ab);
    color: white;
}

.success-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 179, 186, 0.4);
}

.success-btn.secondary {
    background: #f7fafc;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.success-btn.secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: #e6b3ba;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #2d3748;
}

.progress-line {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 1rem;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    text-align: center;
}

.wizard-step.active {
    display: block;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Step 1: Shape Selection */
.shape-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Step 2: Size Selection */
.size-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.size-option {
    padding: 1.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.size-option:hover {
    border-color: #e6b3ba;
    background: #fef5f6;
    transform: translateY(-2px);
}

.size-option.selected {
    border-color: #e6b3ba;
    background: #fef5f6;
    box-shadow: 0 4px 12px rgba(230, 179, 186, 0.2);
}

.size-nail-preview {
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.small-nail {
    width: 40px;
    height: 45px;
}

.medium-nail {
    width: 40px;
    height: 65px;
}

.large-nail {
    width: 40px;
    height: 85px;
}

.extra-large-nail {
    width: 40px;
    height: 105px;
}

.size-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.size-description {
    font-size: 0.8rem;
    color: #718096;
}

.shape-option {
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 200px;
}

.shape-option:hover {
    border-color: #e6b3ba;
    background: #fef5f6;
    transform: translateY(-2px);
}

.shape-option.selected {
    border-color: #e6b3ba;
    background: #fef5f6;
    box-shadow: 0 4px 12px rgba(230, 179, 186, 0.2);
}

.shape-visual {
    width: 60px;
    height: 80px;
}

.almond-shape {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.square-shape {
    border-radius: 8px;
}

.coffin-shape {
    border-radius: 20px 20px 50% 50%;
    clip-path: polygon(25% 0%, 75% 0%, 85% 70%, 15% 70%);
}

.oval-shape {
    border-radius: 50%;
}

.round-shape {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.stiletto-shape {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    clip-path: polygon(30% 0%, 70% 0%, 90% 60%, 50% 100%, 10% 60%);
}

.shape-name {
    font-weight: 600;
    color: #2d3748;
    display: none;
}

/* Step 2: Size Selection */
.size-dropdown-container {
    margin-bottom: 2rem;
}

.size-dropdown {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.size-dropdown:focus {
    outline: none;
    border-color: #e6b3ba;
}

.size-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.preview-nail {
    background: linear-gradient(135deg, #ffeef0, #f0f8f0);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s;
}

/* Step 3: Finger Selection */
.hand-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.realistic-hand {
    position: relative;
    width: 450px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fingers-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.finger-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.finger {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #f4d4c7, #e8c5b8);
    border: 1px solid #d4a5ab;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 3px 8px rgba(0,0,0,0.15);
}

.finger:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.6), 0 6px 15px rgba(230, 179, 186, 0.3);
}

.finger.selected {
    transform: translateY(-8px);
    background: linear-gradient(135deg, #f8e6d9, #ecd0c3);
    border-color: #e6b3ba;
    box-shadow: inset 0 2px 6px rgba(255,255,255,0.6), 0 6px 15px rgba(230, 179, 186, 0.4);
}

/* Realistic Thumb */
.realistic-thumb {
    width: 35px;
    height: 85px;
    border-radius: 18px 18px 12px 12px;
    transform: none;
    margin-right: 8px;
    align-self: flex-end;
    margin-top: 0;
    position: relative;
}

.realistic-thumb::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.realistic-thumb::after {
    content: '';
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.thumb-nail {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 22px;
}

/* Realistic Index */
.realistic-index {
    width: 22px;
    height: 95px;
    border-radius: 11px 11px 8px 8px;
    align-self: flex-end;
    position: relative;
}

.realistic-index::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.realistic-index::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.index-nail {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 20px;
}

/* Realistic Middle */
.realistic-middle {
    width: 22px;
    height: 110px;
    border-radius: 11px 11px 8px 8px;
    align-self: flex-end;
    margin-top: -15px;
    position: relative;
}

.realistic-middle::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.realistic-middle::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.middle-nail {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 22px;
}

/* Realistic Ring */
.realistic-ring {
    width: 21px;
    height: 100px;
    border-radius: 10px 10px 7px 7px;
    align-self: flex-end;
    margin-top: -8px;
    position: relative;
}

.realistic-ring::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.realistic-ring::after {
    content: '';
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.ring-nail {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 21px;
}

/* Realistic Pinky */
.realistic-pinky {
    width: 18px;
    height: 75px;
    border-radius: 9px 9px 6px 6px;
    align-self: flex-end;
    margin-top: 20px;
    position: relative;
}

.realistic-pinky::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.realistic-pinky::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(212, 165, 171, 0.3);
}

.pinky-nail {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 11px;
    height: 16px;
}

/* Palm and Wrist - Hidden */
.palm {
    display: none;
}

.wrist {
    display: none;
}

.finger-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}

.finger-label:hover {
    background: rgba(230, 179, 186, 0.1);
    border-color: #e6b3ba;
    color: #2d3748;
}

.finger.selected + .finger-label {
    color: #2d3748;
    font-weight: 600;
    background: rgba(230, 179, 186, 0.2);
    border-color: #e6b3ba;
}

/* Wizard Buttons */
.wizard-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.wizard-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e6b3ba, #d4a5ab);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.wizard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 179, 186, 0.4);
}

.wizard-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wizard-btn.secondary {
    background: #f7fafc;
    color: #2d3748;
    border: 2px solid #e2e8f0;
}

.wizard-btn.secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.main-container.blurred {
    filter: blur(3px);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 240px;
    }
    .right-sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .left-sidebar, .right-sidebar {
        width: 100%;
        height: auto;
    }
    .canvas-container {
        min-height: 500px;
    }
    .nail-selection-modal {
        padding: 2rem;
        margin: 1rem;
    }
    .selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
