:root {
    --bg-base: #050505;
    --bg-accent: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --success: #10b981;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    overflow-x: hidden; position: relative;
}

.ambient-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; background: #000;
}

.orb {
    position: absolute; border-radius: 50%; filter: blur(80px);
    opacity: 0.5; animation: float 20s infinite ease-in-out alternate;
}
.orb-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(59,130,246,0.4) 0%, rgba(0,0,0,0) 70%); animation-delay: 0s;
}
.orb-2 {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(0,0,0,0) 70%); animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

header {
    text-align: center; margin-top: 3rem; margin-bottom: 2rem; padding: 0 1rem;
}

.logo-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin-bottom: 1rem; box-shadow: 0 0 30px var(--primary-glow);
    position: relative;
}

.logo-icon { font-size: 1.8rem; font-weight: 800; color: #fff; text-decoration: none; }

h1 {
    font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
p.subtitle {
    font-size: 1rem; color: var(--text-muted); max-width: 600px;
    margin: 0 auto; line-height: 1.6; font-weight: 300;
}

.container {
    width: 100%; max-width: 800px; padding: 0 1.5rem; margin-bottom: 4rem;
}

.step-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 24px; padding: 2.5rem;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

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

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

.step-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem;
}

.step-title {
    font-size: 1.4rem; font-weight: 700;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.step-indicator {
    font-size: 0.9rem; color: var(--primary); font-weight: 500;
    background: rgba(59, 130, 246, 0.1); padding: 0.25rem 0.75rem;
    border-radius: 12px; border: 1px solid rgba(59, 130, 246, 0.2);
}

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

label {
    display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
    margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px;
}

input[type="url"], input[type="text"], textarea {
    width: 100%; padding: 1rem; border-radius: 14px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
    color: var(--text-main); font-family: inherit; font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="url"]:focus, input[type="text"]:focus, textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

textarea {
    resize: vertical; min-height: 120px;
}

.btn-group {
    display: flex; gap: 1rem; margin-top: 2rem; justify-content: flex-end;
}

.btn {
    padding: 0.8rem 1.8rem; border-radius: 12px; font-weight: 600; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-family: inherit; font-size: 0.95rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: none; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05); color: var(--text-main);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Skeleton & Loader styles */
.loader-container {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem 1rem; text-align: center;
}

.loader-container.active {
    display: flex;
}

.spinner {
    width: 50px; height: 50px; border: 3px solid var(--border);
    border-top: 3px solid var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin-bottom: 1.5rem;
}

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

.skeleton-text {
    height: 15px; background: rgba(255, 255, 255, 0.05);
    border-radius: 4px; margin-bottom: 10px; width: 100%;
    position: relative; overflow: hidden;
}
.skeleton-text::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%); animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Carousel Styles */
.carousel-container {
    position: relative; width: 100%; overflow: hidden; margin-top: 1.5rem;
}

.carousel-slides {
    display: flex; transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%; box-sizing: border-box; padding: 1rem;
}

.slide-content {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
}

.slide-image-placeholder {
    width: 100%; height: 300px; background: rgba(255, 255, 255, 0.01);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border); position: relative;
}

.slide-img {
    width: 100%; height: 300px; object-fit: cover;
}

.slide-body {
    padding: 1.5rem;
}

.slide-num {
    font-size: 0.8rem; color: var(--primary); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem;
}

.slide-text {
    font-size: 1rem; color: var(--text-main); line-height: 1.6;
}

.carousel-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem;
}

.carousel-dots {
    display: flex; gap: 0.5rem;
}

.dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border);
    cursor: pointer; transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary); transform: scale(1.2);
}

/* Card choices for setup screen */
.content-type-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    margin-bottom: 1.5rem;
}

.type-card {
    background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
    border-radius: 14px; padding: 1rem; text-align: center; cursor: pointer;
    transition: all 0.3s ease;
}

.type-card.active {
    border-color: var(--primary); background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.type-card.disabled {
    opacity: 0.4; cursor: not-allowed;
}

.type-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.type-card p { font-size: 0.8rem; color: var(--text-muted); }

footer {
    margin-top: auto; padding: 1.5rem; text-align: center; color: var(--text-muted);
    font-size: 0.85rem; border-top: 1px solid var(--border); width: 100%;
    background: rgba(0,0,0,0.2); backdrop-filter: blur(10px);
}
