/* ============================================================
   NAKSHA AI - Generator Page — Premium Redesign
   ============================================================ */

:root {
    --gen-blue: #00D9FF;
    --gen-purple: #8B5CF6;
    --gen-violet: #A78BFA;
    --gen-dark: #050816;
    --gen-card: rgba(10, 16, 40, 0.85);
    --gen-border: rgba(255, 255, 255, 0.08);
    --gen-border-hover: rgba(0, 217, 255, 0.35);
    --gen-input-bg: rgba(255, 255, 255, 0.04);
    --gen-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

/* ── PAGE WRAPPER ── */
.generator-page {
    padding-top: 90px;
    min-height: 100vh;
    padding-bottom: 4rem;
    position: relative;
}

/* Subtle grid lines in background */
.generator-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ── LAYOUT ── */
.generator-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 2.5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════
   LEFT PANEL — Steps
═══════════════════════════════════════ */
.steps-panel {
    background: var(--gen-card);
    border: 1px solid var(--gen-border);
    border-radius: 24px;
    padding: 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--gen-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.steps-panel:hover {
    border-color: rgba(0, 217, 255, 0.18);
    box-shadow: var(--gen-shadow), 0 0 60px rgba(0, 217, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Animated top gradient bar */
.steps-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gen-blue), var(--gen-purple), var(--gen-blue));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    border-radius: 24px 24px 0 0;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── PANEL HEADER ── */
.panel-header {
    padding: 2.25rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--gen-border);
    position: relative;
}

.panel-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    background: linear-gradient(135deg, #fff 40%, var(--gen-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
}

.panel-subtitle {
    font-size: 0.88rem;
    color: rgba(148, 163, 184, 0.8);
    margin: 0;
    font-weight: 400;
}

.panel-contact {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.65);
    margin: 0.4rem 0 0;
    font-weight: 400;
}

.panel-contact a {
    color: var(--gen-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.panel-contact a:hover {
    color: var(--gen-violet);
}

/* ── STEP PROGRESS BAR ── */
.step-progress {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    flex: 1;
}

.step-dot-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.step-dot-label {
    font-size: 0.64rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: center;
    transition: color 0.35s ease;
    white-space: nowrap;
}

.step-dot-line {
    position: absolute;
    top: 17px;
    left: calc(50% + 17px);
    right: calc(-50% + 17px);
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
    transition: background 0.45s ease;
}

.step-dot:last-child .step-dot-line {
    display: none;
}

/* Active step */
.step-dot.active .step-dot-circle {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.55), 0 0 36px rgba(34, 197, 94, 0.25);
    transform: scale(1.08);
}

.step-dot.active .step-dot-label {
    color: #22c55e;
}

/* Completed step */
.step-dot.completed .step-dot-circle {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.15));
    border-color: #22c55e;
    color: #22c55e;
}

.step-dot.completed .step-dot-label {
    color: rgba(34, 197, 94, 0.75);
}

.step-dot.completed .step-dot-line {
    background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.4));
}

/* ── FORM AREA ── */
.generator-form-area {
    padding: 2rem 2.5rem 2.25rem;
}

/* ── STEP CARDS ── */
.step-card {
    display: none;
    flex-direction: column;
    animation: stepSlideIn 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.step-card.active {
    display: flex;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(18px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ── STEP HEADER ── */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gen-blue), var(--gen-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.35);
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
}

/* ── FORM GROUPS ── */
.form-group {
    margin-bottom: 1.35rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.25px;
    transition: color 0.2s;
}

.form-group:focus-within label {
    color: var(--gen-blue);
}

/* Inputs, Selects & Textarea */
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: var(--gen-input-bg);
    border: 1.5px solid var(--gen-border);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.55;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gen-blue);
    background: rgba(0, 217, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12);
}

/* Error State */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    animation: shake 0.32s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-6px);
    }

    75% {
        transform: translateX(6px);
    }
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

/* Custom Select Arrow */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2300D9FF' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 3rem;
}

.form-group select option {
    background: #0a1028;
    color: white;
}


/* ── INLINE GRID for 2-col inputs ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── VASTU CARD ── */
.vastu-supreme-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.9rem 1.1rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-left: 3px solid var(--gen-blue);
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    margin-top: 0.5rem;
}

.vastu-supreme-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.vastu-supreme-card:hover::before {
    opacity: 1;
}

.vastu-supreme-card:hover {
    border-color: rgba(0, 217, 255, 0.35);
    border-left-color: var(--gen-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 16px rgba(0, 217, 255, 0.1);
}

.vastu-supreme-card:has(input:checked) {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(0, 217, 255, 0.4);
    border-left-color: var(--gen-blue);
    box-shadow: 0 0 24px rgba(0, 217, 255, 0.12), inset 0 0 16px rgba(0, 217, 255, 0.04);
}

.vastu-supreme-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Icon */
.vastu-icon-container {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gen-blue);
    background: rgba(0, 217, 255, 0.12);
    border-radius: 10px;
    position: relative;
    transition: all 0.35s ease;
    flex-shrink: 0;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.vastu-supreme-card:has(input:checked) .vastu-icon-container {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.25), rgba(139, 92, 246, 0.2));
    box-shadow: 0 0 14px rgba(0, 217, 255, 0.35);
    border-color: rgba(0, 217, 255, 0.4);
}

.icon-pulse {
    position: absolute;
    inset: -3px;
    border: 1.5px solid var(--gen-blue);
    border-radius: 12px;
    opacity: 0;
    transition: all 0.4s ease;
}

.vastu-supreme-card:hover .icon-pulse {
    animation: icon-ripple 1.8s infinite;
}

@keyframes icon-ripple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.mandala-svg {
    width: 20px;
    height: 20px;
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vastu-supreme-card:has(input:checked) .mandala-svg {
    transform: rotate(180deg) scale(1.1);
    color: #fff;
}

.vastu-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.vastu-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
    letter-spacing: 0.1px;
}

.vastu-description {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.65);
    line-height: 1.3;
    margin: 0;
}

/* Status badge & toggle */
.vastu-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.badge-text {
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gen-blue);
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.25);
    padding: 2px 7px;
    border-radius: 20px;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.35s ease;
    white-space: nowrap;
}

.vastu-supreme-card:has(input:checked) .badge-text {
    opacity: 1;
    transform: translateX(0);
}

/* Toggle switch */
.checkmark-supreme {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.checkmark-supreme::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    top: 2.5px;
    left: 2.5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.vastu-supreme-card input:checked~.vastu-status-badge .checkmark-supreme {
    background: linear-gradient(135deg, var(--gen-blue), var(--gen-purple));
    border-color: transparent;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.45);
}

.vastu-supreme-card input:checked~.vastu-status-badge .checkmark-supreme::after {
    left: calc(100% - 17.5px);
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}


/* ── PRIVACY BOX ── */
.privacy-box {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.06), rgba(139, 92, 246, 0.06));
    border: 1.5px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s;
}

.privacy-box.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.04));
    animation: shake 0.32s ease;
}

.privacy-box a {
    color: var(--gen-blue);
    font-weight: 600;
    transition: color 0.2s;
}

.privacy-box a:hover {
    color: var(--gen-violet);
    text-decoration: underline;
}

/* Checkbox container */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    margin-top: 2px;
    accent-color: var(--gen-blue);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── ERROR MESSAGE ── */
.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    border-radius: 12px;
    padding: 0.875rem 1.1rem;
    margin-bottom: 1.25rem;
    color: #fca5a5;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: slideDown 0.28s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message::before {
    content: '⚠';
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── INFO DESCRIPTION ── */
.info-description {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(139, 92, 246, 0.04));
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-left: 3px solid var(--gen-blue);
    border-radius: 10px;
    padding: 0.8rem 1rem 0.8rem 1rem;
    margin-bottom: 1.5rem;
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.855rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.info-description .info-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: rgba(0, 217, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gen-blue);
}

/* ── STEP ACTIONS ── */
.step-actions {
    display: flex;
    gap: 0.875rem;
    margin-top: auto;
    padding-top: 1.75rem;
}

.btn-back,
.btn-next,
.btn-generate {
    flex: 1;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn-next,
.btn-generate {
    background: linear-gradient(135deg, var(--gen-blue) 0%, var(--gen-purple) 100%);
    color: white;
    box-shadow: 0 6px 22px rgba(0, 217, 255, 0.28);
}

.btn-next::after,
.btn-generate::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
    opacity: 0;
    transition: opacity 0.28s;
}

.btn-next:hover,
.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.btn-next:hover::after,
.btn-generate:hover::after {
    opacity: 1;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ══════════════════════════════════════
   PAYMENT STEP
═══════════════════════════════════════ */
.payment-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--gen-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-summary h4 {
    margin-bottom: 1rem;
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.summary-divider {
    height: 1px;
    background: var(--gen-border);
    margin: 1rem 0;
}

.summary-row.total {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gen-blue);
}

/* Razorpay button */
.btn-razorpay {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.35);
    font-family: inherit;
    letter-spacing: 0.2px;
}


.btn-razorpay:hover {
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}

.btn-razorpay:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.payment-note {
    text-align: center;
    color: rgba(148, 163, 184, 0.65);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.payment-note::before {
    content: '🛡';
    font-size: 0.9rem;
}

.dummy-note {
    font-size: 0.78rem !important;
    color: rgba(148, 163, 184, 0.5) !important;
    margin-top: 0.75rem !important;
    text-align: center !important;
}

/* ══════════════════════════════════════
   RIGHT PANEL — Preview
═══════════════════════════════════════ */
.preview-panel {
    background: var(--gen-card);
    border: 1px solid var(--gen-border);
    border-radius: 24px;
    padding: 0;
    min-height: 620px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 100px;
    overflow: hidden;
    box-shadow: var(--gen-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.preview-panel:hover {
    border-color: rgba(139, 92, 246, 0.22);
    box-shadow: var(--gen-shadow), 0 0 60px rgba(139, 92, 246, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Animated top gradient bar */
.preview-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gen-purple), var(--gen-blue), var(--gen-purple));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite reverse;
    border-radius: 24px 24px 0 0;
    z-index: 1;
}

/* Preview panel header */
.preview-panel-header {
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--gen-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-panel-header .panel-title {
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #fff 40%, var(--gen-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Preview live badge */
.preview-live-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00FF88;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.preview-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00FF88;
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

/* ── PREVIEW CONTENT ── */
.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.5rem;
    min-height: 500px;
    position: relative;
}

/* Placeholder */
.preview-placeholder {
    text-align: center;
    color: rgba(148, 163, 184, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.06);
    border-radius: 28px;
    border: 1.5px solid rgba(0, 217, 255, 0.12);
    animation: float 3.5s ease-in-out infinite;
    color: var(--gen-blue);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.placeholder-icon svg {
    filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.5));
}

.preview-placeholder h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.35rem;
}

.preview-placeholder p {
    font-size: 0.88rem;
    color: rgba(148, 163, 184, 0.65);
    margin: 0;
    line-height: 1.5;
}

/* Step hints */
.preview-hints {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 320px;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.875rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gen-border);
    border-radius: 10px;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.75);
}

.hint-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 217, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── LOADING STATE ── */
.preview-loading {
    text-align: center;
    display: none;
}

.preview-loading.active {
    display: block;
}

.preview-loading .loading-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    border-top-color: var(--gen-blue);
    border-right-color: var(--gen-purple);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    margin: 1rem auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gen-blue), var(--gen-purple));
    border-radius: 3px;
    animation: progressFill 45s linear forwards;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 92%;
    }
}

.preview-loading h3 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gen-blue), var(--gen-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.preview-loading p {
    color: rgba(148, 163, 184, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ── PREVIEW RESULT ── */
.preview-result {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preview-result img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: block;
    animation: fadeInScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Action buttons (above image) */
.preview-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    order: -1;
}

.btn-download-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.75rem 1.1rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 1.5px solid rgba(0, 217, 255, 0.25);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.28s ease;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 72px;
    font-family: inherit;
}

.btn-download-icon:hover {
    background: linear-gradient(135deg, var(--gen-blue), var(--gen-purple));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 217, 255, 0.3);
}

.btn-download-icon svg {
    width: 18px;
    height: 18px;
}

.btn-download-icon span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reset {
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.28s ease;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* ── GLOBAL LOADING OVERLAY ── */
.loading-overlay {
    display: none !important;
}

/* ══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
    .generator-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .preview-panel {
        position: static;
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .generator-page {
        padding-top: 75px;
    }

    .generator-container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .panel-header,
    .generator-form-area,
    .preview-panel-header,
    .preview-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .panel-title {
        font-size: 1.35rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column-reverse;
        padding-top: 1.25rem;
    }

    .step-dot-label {
        display: none;
    }
}

/* Remove number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}