/* Import Roboto from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --neon-pink: #ff71ce;
    --neon-blue: #01cdfe;
    --neon-purple: #b967ff;
    --dark-bg: #020115;
    --module-bg: rgba(2, 1, 25, 0.85);
    --border-color: var(--neon-purple);
    --font-regular: 400;
    --font-medium: 500;
    --font-bold: 700;
    --font-light: 300;
}

* {
    margin: 0;
    padding: 0;
    /* box-sizing: border-box; */
}

body {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: var(--font-regular);
    background-color: var(--dark-bg);
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    filter: blur(8px);
    z-index: -1;
}

/* Container Styles */
.container {
    position: relative;
    z-index: 1;
    max-width: 90%; /* Default for mobile, overridden for tablet/desktop */
    margin: 0 auto;
    padding: 2rem;
    transition: max-width 0.3s ease-in-out;
}

.container-fullwidth {
    max-width: 90%; /* Default for mobile */
    padding: 0 2rem;
}

/* Apply full width only when welcome section is active */
.welcome-section.active ~ .container,
.welcome-section.active .container,
#welcomeSection.active + .container {
    max-width: 100%;
    padding: 0 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in;
}

.header-logo { /* Mobile Base */
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 15px auto 1rem;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: var(--font-bold);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem; /* Mobile base, overridden for tablet/desktop hero */
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-color); /* Ensure --text-color is defined or use a fallback */
    margin: 1rem 0;
    line-height: 1.6;
}

.subtitle.large {
    font-size: 1.6rem;
    font-weight: 500;
    text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 2rem;
}

/* Top Get Started Button */
header .get-started-btn {
    margin: 1rem auto 2rem;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* Hero Module */
.hero-module { /* Mobile Base */
    max-width: 1200px; /* Max width consistent, padding/height changes */
    min-height: 300px;
    margin: 0 1rem 3rem; /* Mobile margin */
    padding: 2rem; /* Mobile padding */
    background: var(--module-bg);
    border: 1px solid var(--neon-purple);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(185, 103, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hide hero when welcome section is not active */
.welcome-section:not(.active) .hero-module {
    display: none;
}

.hero-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 113, 206, 0.1), rgba(1, 205, 254, 0.1));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-module h1 { /* Mobile Base */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-subtitle { /* Mobile Base */
    font-size: 1.4rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

.hero-cta { /* Mobile Base */
    font-size: 1.2rem;
    padding: 1rem 2rem;
    width: 100%;
    max-width: 300px; /* Mobile max-width */
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    border: none;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(185, 103, 255, 0.3);
}

/* Showcase Layout */
.showcase-container { /* Mobile Base */
    max-width: 1200px; /* Max width consistent */
    margin: 0 1rem; /* Mobile margin */
    padding: 0;
}

.showcase-grid { /* Mobile Base */
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 1.5rem; /* Mobile gap */
    margin: 3rem 0;
}

.showcase-item { /* Mobile Base */
    box-sizing: border-box;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--module-bg);
    padding: 1rem;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.2);
    cursor: pointer;
    max-width: 300px; /* Mobile max-width */
    margin: 0 auto;
    width: 100%;
}

.showcase-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: 3rem;
}

/* Common module styling */
section {
    display: block;
    unicode-bidi: isolate;
    max-width: 600px;
    margin: 0 auto;
}

main {
   background: var(--module-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.2);
    border-radius: 10px;
}

.wizard-frame section,
.poster-preview,
.order-form-container,
.mockup-container,
.color-selector,
.size-selector,
.form-section {
    padding: 2rem 0rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
    font-weight: var(--font-medium);
}

/* Base form elements consistency */
input[type="text"],
input[type="email"],
input[type="file"],
textarea,
select,
.stripe-element {
    box-sizing: border-box;
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-blue);
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: var(--font-regular);
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 113, 206, 0.2);
    outline: none;
}

input[type="file"] {
    cursor: pointer;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--neon-blue);
    color: white;
    border-radius: 5px;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--neon-blue);
    border: none;
    border-radius: 4px;
    color: black;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--neon-pink);
    color: white;
} 

button {
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: var(--font-medium);
    background: var(--neon-pink);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

button:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

.upload-preview {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 100px; /* from .upload-preview */
    justify-content: center; /* from .upload-preview */
    align-items: center; /* from .upload-preview */
}

.upload-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(1, 205, 254, 0.3);
}

.progress-bar-container {
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: repeating-linear-gradient(
        45deg,
        var(--neon-blue),
        var(--neon-blue) 20px,
        var(--neon-purple) 20px,
        var(--neon-purple) 40px
    );
    transition: width 0.5s ease-in-out;
    border-radius: 4px;
    background-size: 56px 56px;
    animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 56px 0; }
}

.progress-bar.complete {
    background: var(--neon-purple);
    animation: none;
}

.poster-preview {
    margin: 2rem 0;
    border: 2px solid var(--neon-purple);
    padding: 1rem;
    border-radius: 10px;
    min-height: 300px;
}

.poster-preview img {
    max-width: 100%;
    height: auto;
}

.simple-loading-overlay,
.elaborate-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 1, 25, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.simple-loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--neon-blue);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.elaborate-loading-overlay {
    flex-direction: column;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mockup-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
}

.mockup-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mockup-group-title {
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mockup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mockup-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.mockup-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mockup-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

.success-message {
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    border: 1px solid var(--neon-green); /* Ensure --neon-green is defined */
    color: white;
    /* padding from .wizard-frame section */
}

.success-message h2 {
    color: var(--neon-green); /* Ensure --neon-green is defined */
    margin-bottom: 1.5rem;
}

.success-message p {
    margin: 1rem 0;
    line-height: 1.6;
}

.success-message button {
    margin-top: 2rem;
}

.section-header {
    color: var(--neon-blue);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neon-purple);
    text-shadow: 0 0 5px var(--neon-blue);
}

.style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.style-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.style-option label {
    font-weight: 500;
    color: var(--neon-blue);
}

.style-option select {
    padding: 0.75rem;
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.style-option select:hover {
    border-color: var(--neon-pink);
}

.style-option select:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 0 2px rgba(255, 113, 206, 0.2);
    outline: none;
}

.style-option select option {
    background-color: #222;
    color: white;
    padding: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.order-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--neon-purple);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.summary-row.total {
    border-top: 2px solid var(--neon-pink);
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: 700;
    color: var(--neon-pink);
}

#payment-element {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
}

.error-message {
    background: rgba(255, 71, 71, 0.2);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--neon-pink);
    display: block;
}

.error-message.hidden {
    display: none;
}

.shipping-details {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
}

.shipping-details h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: left;
}

.shipping-details p {
    margin: 0.5rem 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

/* Wizard Stepper Styles */
.wizard-steps { /* Mobile Base */
    display: flex;
    justify-content: flex-start; /* Changed from space-between for scrolling */
    align-items: center;
    margin: 2rem 0 0.5rem 0; /* Adjusted margin */
    padding: 0.5rem;
    background: rgba(2, 1, 25, 0.5);
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--neon-purple); /* var(--border-color) changed to var(--neon-purple) */
    position: relative;
    overflow-x: auto; /* Changed from scroll to auto for better behavior */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-purple) rgba(0,0,0,0.2);
    height: 60px; /* Mobile height */
    padding-bottom: 0.5rem; /* Mobile padding */
}

.wizard-stepper { /* Mobile Base */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Mobile gap */
    padding: 0.6rem 1rem; /* Mobile padding */
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    min-width: 120px; /* Mobile min-width */
    flex: 0 0 auto;
    height: 100%;
}

.wizard-stepper.active {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 15px rgba(185, 103, 255, 0.4);
}

.step-number { /* Mobile Base */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px; /* Mobile size */
    height: 28px; /* Mobile size */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 0.9rem; /* Mobile font size */
}

.wizard-stepper.active .step-number {
    background: var(--neon-pink);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 113, 206, 0.5);
}

.step-label { /* Mobile Base */
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    font-size: 0.9rem; /* Mobile font size */
}

.wizard-steps::-webkit-scrollbar { height: 6px; }
.wizard-steps::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 3px; }
.wizard-steps::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }

/* Wizard Frame Styles */
.wizard-frame { padding: 1rem; display: none; animation: none; }
.wizard-frame.active { display: block; animation: wizardSlideIn 0.4s cubic-bezier(.4,1.4,.6,1); }
@keyframes wizardSlideIn {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.wizard-nav, .wizard-navigation { display: flex; justify-content: space-between; margin-top: 0rem; gap: 1rem; }
.wizard-back, .button.wizard-back { background: var(--neon-blue); color: #111; flex: 1; }
.wizard-next, .button.wizard-next { background: var(--neon-pink); color: #fff; flex: 1; }
.wizard-back, .wizard-next, .button.wizard-back, .button.wizard-next {
  margin-top: 1rem; border-radius: 4px; padding: 0.7rem 1rem; font-size: 1.1rem;
  font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; text-align: center;
}
.wizard-back:hover, .wizard-next:hover, .button.wizard-back:hover, .button.wizard-next:hover {
  filter: brightness(1.1); box-shadow: 0 0 15px rgba(1, 205, 254, 0.5);
}

/* Form Controls */
select.form-control {
    width: 100%; padding: 10px 15px; font-size: 16px; border: 2px solid #444;
    border-radius: 4px; background-color: #222; color: #fff; margin-bottom: 15px;
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
select.form-control:focus { outline: none; border-color: #8c43ff; box-shadow: 0 0 0 2px rgba(140, 67, 255, 0.25); }
select.form-control option { background-color: #222; color: #fff; }

.form-section { margin-bottom: 30px; }
/* .form-group { margin-bottom: 15px; } duplicated */
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #fff; }

/* Step 2 Styles */
#posterPreview {
    max-width: 400px; margin: 0 auto 30px; text-align: center; padding: 10px;
    border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); background-color: var(--module-bg);
}
#posterPreview img { max-width: 100%; height: auto; border-radius: 4px; display: block; }
.instructions { text-align: center; margin: 15px 0 25px; color: #ddd; font-size: 18px; }
.button-group { display: flex; justify-content: center; margin: 20px 0; }
.button.secondary { background-color: #444; color: white; border: 1px solid #666; }
.button.secondary:hover { background-color: #555; }

/* Order Form Styles - Simplified */
.checkout-form {
    background: var(--module-bg); padding: 2rem; border-radius: 10px;
    border: 1px solid var(--neon-purple); box-shadow: 0 0 20px rgba(185, 103, 255, 0.2);
}
.checkout-form h3 {
    color: var(--neon-blue); margin: 1.5rem 0 1rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 1.3rem;
}
.checkout-form h3:first-of-type { margin-top: 0; }
.payment-wrapper { margin: 1.5rem 0; padding: 1.2rem; background: rgba(255, 255, 255, 0.95); border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); }
/* .order-summary defined above, this is more specific one */
.checkout-form .order-summary { margin: 1.5rem 0; padding: 1.2rem; background: rgba(0, 0, 0, 0.3); border-radius: 8px; border-left: 3px solid var(--neon-pink); }
.checkout-form .order-summary h3 { border-bottom: none; margin-top: 0; margin-bottom: 0.75rem; padding-bottom: 0; }
/* .summary-row defined above */
.checkout-form .summary-row { padding: 0.5rem 0; color: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.checkout-form .summary-row.total { border-top: 1px solid var(--neon-pink); border-bottom: none; margin-top: 0.5rem; padding-top: 0.75rem; font-weight: 700; color: var(--neon-pink); }

#submit-button {
    background: linear-gradient(to right, var(--neon-pink), var(--neon-purple)); margin-top: 1.5rem; padding: 1rem;
    font-weight: 600; letter-spacing: 1px; border-radius: 6px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: all 0.3s ease;
}
#submit-button:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 0 15px var(--neon-purple); }
#orderFormContainer { padding: 0; border: none; background: transparent; box-shadow: none; min-height: 100px; }
.wizard-frame[data-step="4"] section { background: transparent; border: none; box-shadow: none; padding: 0; }

/* Success Message Styles */
.success-content { /* Mobile Base */
    display: flex;
    flex-direction: column-reverse; /* Mobile: stacked, preview on top */
    gap: 2rem;
    align-items: flex-start;
    justify-content: space-between;
}
.success-details { /* Mobile Base */
    flex: 1;
    text-align: left; /* Keep left aligned for mobile too */
}
.success-preview { /* Mobile Base */
    flex: 1;
    max-width: 100%; /* Mobile: full width */
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border-left: 3px solid var(--neon-blue);
    margin-bottom: 2rem; /* Mobile: margin below preview */
}
.success-preview h3 { color: var(--neon-blue); margin-bottom: 1rem; text-align: center; }
.success-mockup-image { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); }

.loading-sequence {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90%; max-width: 500px; background: rgba(255, 255, 255, 0.95);
    border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.current-step { margin-bottom: 20px; padding: 15px; border-radius: 8px; background: #f8f9fa; }
.step-message { font-size: 18px; color: #333; margin-bottom: 10px; font-weight: 500; transition: color 0.3s ease; animation: pulse 2s infinite; }
.step-message.complete { color: #28a745; animation: none; }
.progress-container { width: 100%; height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.completed-steps { max-height: 200px; overflow-y: auto; }
.completed-step { display: flex; align-items: center; justify-content: space-between; padding: 10px; margin: 5px 0; background: #f1f3f5; border-radius: 6px; animation: slideIn 0.3s ease-out; }
.completed-step .step-message { font-size: 14px; color: #6c757d; margin: 0; }
.completed-step .checkmark { color: #28a745; font-size: 16px; font-weight: bold; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
#loadingOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(5px); }
#loadingOverlay.hidden { display: none; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

/* Welcome Section Styles */
.welcome-section { display: none; animation: fadeIn 0.5s ease-in-out; }
.welcome-section.active { display: block; }

/* .showcase-item already defined with mobile base */
.showcase-item:hover { transform: translateY(-5px); box-shadow: 0 0 30px rgba(185, 103, 255, 0.4); }
/* .showcase-item img already defined */
.showcase-label {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem; color: white;
    padding: 0.75rem 1rem; border-radius: 6px; font-weight: 600; text-align: center;
    transform: translateY(0); transition: transform 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 10px var(--neon-purple);
}
.showcase-item:hover .showcase-label { transform: scale(1.05); text-shadow: 0 0 20px var(--neon-purple), 0 0 30px var(--neon-pink); }

.welcome-cta { /* Mobile Base */
    box-sizing: border-box;
    text-align: center;
    margin: 3rem 1rem; /* Mobile margin */
    padding: 2rem;
    background: var(--module-bg);
    border-radius: 12px;
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(185, 103, 255, 0.2);
    max-width: 1200px; /* Max width consistent */
}
.welcome-text { font-size: 1.5rem; color: var(--neon-blue); margin-bottom: 2rem; text-shadow: 0 0 10px var(--neon-blue); }
.get-started-btn {
    background: linear-gradient(to right, var(--neon-pink), var(--neon-purple)); color: white;
    font-size: 1.25rem; padding: 1.25rem 3rem; border: none; border-radius: 8px; cursor: pointer;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
    max-width: 300px; margin: 0 auto; display: block;
}
.get-started-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(185, 103, 255, 0.6); }

.get-started-btn.top-cta { /* Mobile Base */
    margin: 1.5rem auto 2rem; /* Mobile margin */
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    animation: fadeInDown 0.8s ease-out;
    width: 90%; /* Mobile width */
    max-width: 300px; /* Mobile max-width */
}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.builder-section.active ~ .welcome-section .get-started-btn.top-cta,
.builder-section.active .get-started-btn.top-cta { display: none; }

.builder-section { display: none; max-width: 1000px; margin: auto; }
.builder-section.active { display: block; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Footer Styles */
.site-footer { text-align: center; padding: 1.5rem; margin-top: 2rem; background: var(--module-bg); border-top: 1px solid var(--neon-purple); }
.copyright { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; text-shadow: 0 0 5px var(--neon-blue); }

/* Steps Section Styles */
.steps-container { margin: 4rem 0; text-align: center; }
.steps-heading {
    font-size: 2.5rem; color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue);
    margin-bottom: 2rem; text-align: center; position: relative;
}
.steps-heading:after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 2px; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue);
}
.steps-grid { /* Mobile: auto-fit, minmax 250px */
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; margin-top: 2rem;
}
.step-card {
    box-sizing: border-box;
    background: var(--module-bg); border: 1px solid var(--neon-purple); border-radius: 12px;
    padding: 2.5rem 1.5rem; box-shadow: 0 0 20px rgba(185, 103, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; z-index: 1;
    height: 100%; display: flex; flex-direction: column; align-items: center;
}
/* .step-number defined with Wizard Stepper, this is for cards */
.step-card .step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white; font-size: 1.5rem; font-weight: bold; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 0 15px rgba(185, 103, 255, 0.5);
    /* Overrides wizard stepper's .step-number if nested, ensure specific targeting if needed */
}
.step-card h3 { color: var(--neon-pink); margin-bottom: 1rem; font-size: 1.3rem; }
.step-card p { color: rgba(255, 255, 255, 0.8); font-size: 1rem; line-height: 1.6; }

.upload-zone {
    border: 2px dashed var(--neon-blue); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem;
    background: rgba(1, 205, 254, 0.1); transition: all 0.3s ease;
    display: flex; flex-direction: column; gap: 1rem;
}
.upload-zone.drag-over { border-color: var(--neon-pink); background: rgba(255, 113, 206, 0.1); }
.file-upload-area { position: relative; width: 100%; }
.file-input { opacity: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.file-label { display: flex; align-items: center; gap: 1rem; padding: 0.5rem; background: rgba(0, 0, 0, 0.2); border-radius: 4px; cursor: pointer; }
.file-label .button { background: var(--neon-blue); color: black; padding: 0.5rem 1rem; border-radius: 4px; font-weight: 500; transition: all 0.3s ease; }
.file-label:hover .button { background: var(--neon-pink); color: white; }
.file-label .file-name { color: rgba(255, 255, 255, 0.7); }
.paste-zone {
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; padding: 1rem; text-align: center;
    cursor: pointer; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.05);
}
.paste-zone:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--neon-purple); }
.paste-zone.active { border-color: var(--neon-pink); background: rgba(255, 113, 206, 0.1); animation: pulse 1.5s infinite; }
.paste-icon { font-size: 1.5rem; margin-bottom: 0.5rem; opacity: 0.8; color: var(--neon-blue); }
.paste-zone p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; margin: 0; }
.upload-info { color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; text-align: center; margin-top: -0.5rem; }

/* Design History & Regenerate Button Styles */
.generation-limit-message {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    color: var(--neon-blue);
    font-size: 0.9rem;
    background: rgba(1, 205, 254, 0.1);
    border-radius: 4px;
    border: 1px solid var(--neon-blue);
}

.design-history {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.design-history h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    text-align: center;
}

.design-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem;
}

.design-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.design-thumbnails::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 3px;
}

.design-thumbnails::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.design-thumbnail {
    flex: 0 0 auto;
    width: 75px;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
}

.design-thumbnail:not(:has(.current-design)):hover {
    transform: scale(1.05);
}

.design-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 2px solid var(--neon-purple);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.design-thumbnail img:not(.current-design):hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.design-thumbnail img.current-design {
    border-color: var(--neon-pink);
    border-width: 3px;
    box-shadow: 0 0 15px var(--neon-pink);
}

#regenerateButton {
    background: var(--neon-purple);
    color: #111;
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

#regenerateButton:hover {
    background: var(--neon-purple);
    color: white;
}

#regenerateButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #666;
}

/* ==========================================================================
   TABLET STYLES (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
   
    .builder-section.active ~ .container,
    .builder-section.active .container {
        max-width: 920px; /* From 1000px mq, applies for tablet up */
    }
    
    .header-logo {
        max-width: 200px;
        margin: 20px auto 1rem;
    }

    .hero-module {
        min-height: 400px;
        padding: 3rem;
        margin: 0 auto 2rem; /* Centered margin for tablet/desktop */
    }

    .hero-module h1 {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .hero-cta {
        font-size: 1.4rem;
        padding: 1.2rem 3rem;
        width: auto; /* Auto width for tablet/desktop */
        max-width: none; /* Remove mobile max-width */
    }

    .showcase-container {
        margin: 0 2rem; /* from max-width 1099px, good for tablet */
    }
    
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    }

    .showcase-item {
        max-width: 400px; /* Larger items for tablet */
    }
    
    .get-started-btn.top-cta {
        width: auto;
        max-width: none;
        margin: 2rem auto 3rem;
    }

    .success-content {
        flex-direction: row; /* Side-by-side for tablet/desktop */
    }

    .success-preview {
        max-width: 350px; /* Specific size for tablet/desktop */
        margin-bottom: 0; /* Remove mobile margin */
    }

    .wizard-steps {
        overflow-x: visible; /* No scroll on tablet+ */
        white-space: normal;
        /* display: flex; */ /* Already flex by base */
        /* flex-wrap: nowrap; */ /* Already nowrap by base */
        /* gap: 0.5rem; */ /* Base gap */
        height: 70px; /* Tablet height */
        justify-content: space-between; /* Spread out on tablet+ */
    }
    
    .wizard-stepper {
        min-width: 150px; /* Tablet min-width */
        padding: 0.75rem 1.25rem; /* Tablet padding */
        gap: 0.75rem; /* Tablet gap */
    }
    
    .wizard-stepper .step-number { /* Target step-number inside wizard-stepper specifically */
        width: 32px; /* Tablet size */
        height: 32px; /* Tablet size */
        font-size: 1rem; /* Tablet font size */
    }
    
    .wizard-stepper .step-label { /* Target step-label inside wizard-stepper specifically */
        font-size: 1rem; /* Tablet font size */
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet */
    }
    
    .welcome-cta {
        margin: 4rem 2rem; /* Tablet margin, from max-width 1099px */
    }

    /* Design History - Tablet */
    .design-thumbnails {
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .design-thumbnail {
        width: 90px;
    }
}

/* ==========================================================================
   DESKTOP STYLES (min-width: 1100px)
   ========================================================================== */
@media (min-width: 1100px) {
    
    /* .builder-section.active ~ .container, already covered by tablet and is 920px */
    /* .builder-section.active .container { max-width: 920px; } */

    .showcase-container {
        margin: 0 auto; /* Centered for desktop */
    }
    
    .showcase-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    }
    
    .steps-grid {
        /* grid-template-columns: repeat(3, 1fr); */ /* Already 3 from tablet */
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .welcome-cta {
        width: 100%; /* Full width within its constraints */
        max-width: 1200px; /* Desktop max-width */
        margin: 4rem auto; /* Centered for desktop */
    }

    /* Design History - Desktop */
    .design-thumbnails {
        gap: 2rem;
        padding: 1rem;
        justify-content: center;
    }

    .design-thumbnail {
        width: 100px;
    }
}

/* Step 5 Navigation - Full width Create Another button */
#step5Navigation {
    margin-top: 2rem;
}

#step5Navigation .button {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(185, 103, 255, 0.3);
}

#step5Navigation .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 103, 255, 0.5);
    filter: brightness(1.1);
} 