:root {
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-pink: #fe3480; /* Added proper pink */
    --neon-green: #0aff60;
    --bg-dark: #020205; /* Pitch black practically */
    --surface-dark: #0a0a12;
    --surface-light: #151525;
    --glass-bg: rgba(20, 20, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: #8888aa;
    --font-heading: 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

body {
    background-color: var(--bg-dark);
    font-family: var(--font-heading);
    color: var(--text-main);
    overflow: hidden; /* No scrolling for kiosk */
    height: 100vh;
    width: 100vw;
}

/* Background Effects */
.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(188, 19, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 243, 255, 0.08) 0%, transparent 40%);
    z-index: -1;
}

/* Layout Grid */
.kiosk-container {
    display: grid;
    grid-template-rows: 80px 1fr 80px; /* Header, Content, Footer */
    height: 100vh;
    width: 100vw;
    padding: 0;
}

/* Header */
.kiosk-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--glass-border);
}

.logo-img {
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/* Main Content */
.main-content {
    position: relative;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Max width for wide screens */
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

/* Footer & Nav */
.kiosk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--glass-border);
}

.progress-info {
    font-size: 1.2em;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Buttons */
.nav-btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn.secondary {
    background: transparent;
    color: var(--text-dim);
    border: 2px solid var(--glass-border);
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
}

.nav-btn:active { transform: scale(0.95); }

/* Card System */
.selection-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}
.two-col { grid-template-columns: 1fr 1fr; height: 100%; max-height: 500px; }
.three-col { grid-template-columns: repeat(3, 1fr);  max-width: 1000px; }

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.card {
    background: var(--surface-light);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.big-card {
    height: 100%; /* Fill space in grid */
}

.card:hover { border-color: var(--text-dim); transform: translateY(-5px); }
.card.active { 
    border-color: var(--neon-blue);
    background: linear-gradient(160deg, rgba(0, 243, 255, 0.1), rgba(188, 19, 254, 0.1));
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.card-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 { font-size: 1.8em; margin-bottom: 10px; color: white; }
.card-desc { font-size: 1.1em; color: var(--text-dim); }

/* Typography */
.screen-title {
    font-size: 3em;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Upload specific */
.upload-container {
    border: 3px dashed var(--glass-border);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    padding: 60px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
}
.upload-container:hover { border-color: var(--neon-purple); background: rgba(255,255,255,0.02); }
.icon-upload { font-size: 5em; color: var(--text-dim); margin-bottom: 20px; }

.preview-strip {
    height: 120px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    min-width: 300px;
}
.thumb { height: 100%; border-radius: 8px; border: 2px solid var(--neon-green); }

/* Split View for Details */
.split-view {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    height: 100%;
}
.split-col { flex: 1; display: flex; flex-direction: column; }

.subsection-title { color: var(--neon-purple); margin-bottom: 20px; font-size: 1.5em; text-transform: uppercase; }

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
}
.mini-card {
    background: var(--surface-light);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.mini-card:hover { background: rgba(255,255,255,0.1); }
.mini-card.active { border-color: var(--neon-pink); box-shadow: 0 0 10px rgba(254, 52, 128, 0.3); }
.mini-card span { font-size: 1.5em; }

/* Magic Button */
.magic-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
    color: white;
    font-size: 2em;
    padding: 20px 60px;
    border-radius: 60px;
    border: none;
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.5);
    cursor: pointer;
    margin-top: 30px;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 0.2s;
}
.magic-btn:active { transform: scale(0.95); }

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.prompt-summary {
    font-size: 1.5em;
    text-align: center;
    max-width: 800px;
    line-height: 1.4;
    color: var(--text-dim);
    margin-bottom: 30px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

/* Result Area */
#result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.final-result {
    max-height: 50vh;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.3);
    border: 3px solid var(--neon-blue);
    margin-bottom: 20px;
}
.result-actions { display: flex; gap: 20px; }
.action-btn {
    padding: 15px 30px;
    border-radius: 10px;
    border: 2px solid var(--glass-border);
    background: transparent;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    cursor: pointer;
}
.action-btn.primary { background: var(--neon-blue); color: black; border: none; font-weight: bold; }

/* Pulse Animation for Next Button */
.pulse-btn {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

/* Loader */
.neon-spinner {
    width: 60px; height: 60px;
    border: 6px solid transparent;
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive adjustments */
@media (max-width: 1000px) {
    .three-col { grid-template-columns: 1fr; overflow-y: auto; max-height: 50vh; }
    .two-col { grid-template-columns: 1fr; max-height: 50vh; overflow-y: auto; }
}
