/* ==========================================================================
   CUSTOM STICK BUILDER - PREMIUM STYLES
   ========================================================================== */

   :root {
    --cs-bg-main: #05080f; /* Deeper dark */
    --cs-bg-card: rgba(16, 24, 40, 0.4);
    --cs-bg-card-hover: rgba(30, 45, 75, 0.7);
    --cs-border: rgba(255, 255, 255, 0.08);
    --cs-border-active: #00e5ff;
    --cs-accent: #00e5ff;
    --cs-accent-glow: rgba(0, 229, 255, 0.5);
    --cs-accent-gradient: linear-gradient(135deg, #00e5ff 0%, #00bfff 100%);
    --cs-text-main: #f8fafc;
    --cs-text-dim: #94a3b8;
    --cs-radius: 16px;
    --cs-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-stick-main {
    background: radial-gradient(circle at 50% 0%, #111827 0%, var(--cs-bg-main) 70%);
    color: var(--cs-text-main);
    font-family: 'Outfit', sans-serif;
    padding: 60px 20px;
    min-height: 100vh;
}

.cs-layout-split {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.cs-wizard-container {
    flex: 1;
    min-width: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 50px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Header */
.cs-header {
    text-align: center;
    margin-bottom: 40px;
}

.cs-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px;
    background: linear-gradient(135deg, #fff, #8b9bb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.cs-subtitle {
    font-size: 1.1rem;
    color: var(--cs-text-dim);
    margin: 0;
}

/* Progress */
.cs-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.cs-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--cs-accent-gradient);
    box-shadow: 0 0 15px var(--cs-accent-glow);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-step-indicator {
    text-align: right;
    font-size: 0.85rem;
    color: var(--cs-accent);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Steps */
.cs-step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.cs-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cs-step h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
    border-bottom: 1px solid var(--cs-border);
    padding-bottom: 15px;
}

.cs-sub-label {
    font-size: 1.1rem;
    color: var(--cs-accent);
    margin: 0 0 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mt-30 { margin-top: 30px; }

/* Grids */
.cs-options-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}
.cs-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cs-grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cs-grid-auto { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }

/* Cards & Radio Logic */
.cs-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--cs-bg-card);
    border: 2px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 23px; /* Adjusted for 2px border */
    cursor: pointer;
    transition: var(--cs-transition);
    text-align: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    outline: none !important;
    text-decoration: none !important;
}

.cs-option-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.cs-option-card:hover {
    background: var(--cs-bg-card-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
}

.cs-option-card:hover::before {
    opacity: 1;
}

.cs-option-card input[type="radio"] {
    display: none !important;
}

.cs-option-card:has(input:checked),
.cs-blade-card:has(input:checked) {
    border: 2px solid var(--cs-accent) !important;
    background: rgba(0, 229, 255, 0.18) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 25px rgba(0, 229, 255, 0.6) !important;
    transform: translateY(-2px);
}

.cs-option-card:has(input:checked) .cs-card-content,
.cs-option-card:has(input:checked) .cs-card-content strong {
    color: var(--cs-accent);
    text-decoration: none !important;
    border-bottom: none !important;
}

.cs-option-card:has(input:checked) .cs-small-desc {
    color: rgba(255,255,255,0.9);
}

.cs-card-content {
    display: flex;
    flex-direction: column;
    pointer-events: none;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.cs-card-content strong {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
    text-decoration: none !important;
}

.cs-small-desc {
    font-size: 0.85rem;
    color: var(--cs-text-dim);
}

/* Blade Grid (Specific layout for images) */
.cs-blade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.cs-blade-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--cs-bg-card);
    border: 2px solid transparent;
    border-radius: var(--cs-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--cs-transition);
}

.cs-blade-card:hover {
    background: var(--cs-bg-card-hover);
    transform: translateY(-3px);
}

.cs-blade-card input[type="radio"] {
    display: none !important;
}

.cs-blade-img {
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-blade-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.cs-blade-card h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #fff;
}

.cs-blade-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--cs-text-dim);
    line-height: 1.4;
}

/* Flex specific */
.cs-flex-card {
    padding: 15px 10px;
}

.cs-flex-card strong {
    font-size: 1.5rem;
    margin: 0;
}

/* Kick Img */
.cs-kick-img {
    height: 150px;
    width: 100%;
    margin-bottom: 15px;
}
.cs-kick-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Swatches */
.cs-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cs-swatch {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--cs-transition);
}

.cs-swatch input {
    position: absolute;
    opacity: 0;
}

.swatch-bg {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    transition: var(--cs-transition);
}

.cs-swatch:hover {
    transform: scale(1.1);
}

.cs-swatch:has(input:checked) .swatch-bg {
    border-color: var(--cs-accent);
    box-shadow: 0 0 0 2px var(--cs-bg-main), 0 0 0 4px var(--cs-accent);
}

/* Inputs */
.cs-input-group {
    margin-bottom: 20px;
}

.cs-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--cs-text-dim);
}

.cs-input-group input[type="text"],
.cs-input-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--cs-transition);
}

.cs-input-group textarea {
    min-height: 100px;
    resize: vertical;
}

.cs-input-group input:focus,
.cs-input-group textarea:focus {
    outline: none;
    border-color: var(--cs-accent);
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 0 3px var(--cs-accent-glow);
}

/* Quantity */
.cs-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cs-border);
    border-radius: 8px;
    overflow: hidden;
}

.cs-qty-btn {
    background: transparent;
    color: var(--cs-accent);
    border: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: var(--cs-transition);
}

.cs-qty-btn:hover {
    background: rgba(0, 229, 255, 0.1);
}

.cs-qty-input {
    width: 60px;
    height: 50px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--cs-border);
    border-right: 1px solid var(--cs-border);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    -moz-appearance: textfield;
}

.cs-qty-input::-webkit-outer-spin-button,
.cs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Select */
.cs-select option {
    background: var(--cs-bg-main);
    color: #fff;
}

/* Summary */
.cs-summary {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    padding: 30px;
    margin-bottom: 20px;
}

.cs-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-summary li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
}

.cs-summary li:last-child {
    border-bottom: none;
}

.cs-summary strong {
    color: var(--cs-text-dim);
    font-weight: 500;
}

.cs-summary-note {
    font-size: 0.9rem;
    color: var(--cs-text-dim);
    text-align: center;
    margin-bottom: 30px;
}

/* Navigation & Buttons */
.cs-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--cs-border);
}

.cs-actions-final {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cs-btn {
    background: transparent !important;
    color: var(--cs-text-main) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cs-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cs-btn:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.4) !important;
    transform: translateY(-2px);
}

.cs-btn-primary {
    background: rgba(0, 229, 255, 0.05) !important;
    color: var(--cs-accent) !important;
    border: 1px solid var(--cs-accent) !important;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.1) !important;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.cs-btn-primary::before {
    display: none;
}

.cs-btn-primary:hover {
    background: var(--cs-accent) !important;
    border-color: var(--cs-accent) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4) !important;
    transform: translateY(-2px);
    color: #05080f !important;
}

@media (max-width: 992px) {
    .cs-wizard-container {
        padding: 20px;
    }
    .cs-grid-2, .cs-grid-3 {
        grid-template-columns: 1fr;
    }
    .cs-actions-final {
        flex-direction: column;
    }
    .cs-layout-split {
        flex-direction: column;
    }
    .cs-preview-container {
        width: 100%;
        order: -1; /* Move preview above form on mobile */
        margin-bottom: 20px;
    }
    .cs-preview-sticky {
        position: relative;
        top: 0;
        padding: 20px;
    }
    .cs-stick-visualizer {
        transform: scale(0.65);
        transform-origin: top center;
        margin: 0 auto;
        margin-bottom: -175px; /* Offset the space left by scaling 500px to 325px */
    }
}

/* Stick Visualizer */
.cs-preview-container {
    width: 300px;
    flex-shrink: 0;
}

.cs-preview-sticky {
    position: sticky;
    top: 40px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
}

.cs-preview-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cs-accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cs-preview-note {
    font-size: 0.75rem;
    color: var(--cs-text-dim);
    margin-top: 20px;
}

.cs-stick-visualizer {
    position: relative;
    width: 60px;
    height: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   LAB THEME REDESIGN - SECRET LABORATORY EXPERIENCE
   ========================================================================== */

.lab-theme {
    background-color: #02060a;
    color: var(--cs-text);
}

.lab-hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle at center, #091512 0%, #02060a 100%);
    border-bottom: 2px solid var(--cs-accent);
}

.lab-smoke-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 1;
}

.lab-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 100px;
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
}

.lab-creation-chamber {
    position: relative;
    width: 300px;
    height: 600px;
    border: 2px solid var(--cs-accent);
    border-radius: 40px 40px 10px 10px;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.2), inset 0 0 30px rgba(0, 229, 255, 0.1);
    overflow: hidden;
}

.chamber-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(0, 229, 255, 0.05) 100%);
    z-index: 5;
    pointer-events: none;
}

.chamber-stick {
    height: 90%;
    object-fit: contain;
    z-index: 4;
    filter: drop-shadow(0 0 15px var(--cs-accent));
}

.chamber-energy {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--cs-accent);
    filter: blur(40px);
    opacity: 0.3;
    animation: pulseEnergy 4s infinite alternate;
}

.chamber-scanline {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--cs-accent);
    box-shadow: 0 0 10px var(--cs-accent);
    z-index: 6;
    animation: scanline 3s linear infinite;
}

.lab-hero-text {
    flex: 1;
    color: #fff;
}

.glitch-text {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.lab-hero-text p {
    font-size: 1.2rem;
    color: #8a9bb2;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-start-experiment {
    display: inline-block;
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000 !important;
    background: var(--cs-accent);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-start-experiment:hover {
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
    transform: translateY(-2px);
}

/* Animations */
@keyframes levitate-anim {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.levitate-anim {
    animation: levitate-anim 6s ease-in-out infinite;
}

@keyframes scanline {
    0% { top: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes pulseEnergy {
    0% { opacity: 0.1; transform: scaleY(1); }
    100% { opacity: 0.5; transform: scaleY(1.5); }
}

/* UI Overhaul - Laboratory Console */
#lab-console {
    padding-top: 80px;
    position: relative;
}

#lab-console::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
    pointer-events: none;
    z-index: 0;
}

.cs-wizard-container {
    background: rgba(10, 14, 20, 0.9) !important;
    border: 1px solid rgba(0, 229, 255, 0.2) !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0, 229, 255, 0.05) !important;
    border-radius: 10px !important;
    position: relative;
    z-index: 10;
}

/* Energy Progress Bar */
.cs-progress {
    height: 12px !important;
    background: #060b13 !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 6px !important;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px #000;
}

.cs-progress-bar {
    background: var(--cs-accent) !important;
    box-shadow: 0 0 10px var(--cs-accent), 0 0 20px var(--cs-accent) !important;
    position: relative;
}

.cs-progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: energyFlow 2s linear infinite;
}

@keyframes energyFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}



/* Responsive */
@media (max-width: 992px) {
    .lab-hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }
    .glitch-text { font-size: 3rem; }
}
