/* ========================================
   JAN PROMPT OPTIMIZER - VIXMA STYLE
   ======================================== */

/* === CSS VARIABLES === */
:root {
    /* Dark Gold Theme */
    --bg: #0B0B0C;
    --bg-secondary: #121214;
    --bg-elevated: #1c1c20;
    --card: #121214;
    --card-hover: #1c1c20;
    --card-soft: #0f0f12;
    
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent: #FFC700;
    --accent-hover: #ffb800;
    --accent-dark: #B2966F;
    --accent-soft: #3d3520;
    --accent-strong: #FFC700;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --border: #27272a;
    --border-soft: #27272a;
    
    /* Spacing */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 14px rgba(255, 199, 0, 0.4);
    --shadow-accent-glow: 0 8px 25px rgba(255, 199, 0, 0.5);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --glow: 0 0 20px rgba(255, 199, 0, 0.3);
    
    /* Gradients */
    --gradient-bg: #0B0B0C;
    --gradient-card: #121214;
    --gradient-accent: linear-gradient(135deg, #FFC700, #ffb800);
    --gradient-nav: rgba(11, 11, 12, 0.95);
    
    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* === LIGHT THEME (opt-in via [data-theme="light"]) === */
[data-theme="light"] {
    --bg: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --card: #ffffff;
    --card-hover: #fafafa;
    --card-soft: #f5f5f7;

    --text: #1a1a2e;
    --text-secondary: #555555;
    --text-muted: #8a8a94;

    --accent: #d4a017;
    --accent-hover: #b8870a;
    --accent-dark: #8a6408;
    --accent-soft: #fef3c7;
    --accent-strong: #d4a017;

    --border: rgba(0, 0, 0, 0.1);
    --border-soft: rgba(0, 0, 0, 0.06);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 14px rgba(212, 160, 23, 0.25);
    --shadow-accent-glow: 0 8px 25px rgba(212, 160, 23, 0.3);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
    --glow: 0 0 20px rgba(212, 160, 23, 0.15);

    --gradient-bg: #f5f5f7;
    --gradient-card: #ffffff;
    --gradient-accent: linear-gradient(135deg, #d4a017, #b8870a);
    --gradient-nav: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] body { color-scheme: light; }

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--gradient-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* === TYPOGRAPHY === */
h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* === HEADER === */
.header {
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.logo-image {
    height: 96px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* === PROGRESS STEPS === */
.steps-container {
    margin-bottom: 2rem;
}

.steps {
    /* Styles moved to landing-generator.css */
}

.step {
    /* Styles moved to landing-generator.css */
}

.step-number {
    /* Styles moved to landing-generator.css */
}

.step-label {
    /* Styles moved to landing-generator.css */
}

.step.active .step-number {
    /* Styles moved to landing-generator.css */
}

.step.active .step-label {
    /* Styles moved to landing-generator.css */
}

.step.completed .step-number {
    /* Styles moved to landing-generator.css */
}

.step-line {
    /* Styles moved to landing-generator.css */
}

/* === CARDS === */
.card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 199, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover:not(.main-card) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-accent-glow);
    border-color: rgba(255, 199, 0, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-highlight {
    background: radial-gradient(circle at top left, rgba(255, 211, 79, 0.18), rgba(10, 21, 40, 1));
    border-color: rgba(255, 199, 0, 0.3);
    box-shadow: var(--shadow-card), 0 0 12px rgba(255, 211, 79, 0.2);
}

.card-pro {
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.15), rgba(10, 21, 40, 1));
    border-color: rgba(139, 92, 246, 0.3);
}

.main-card {
    flex: 1;
    margin-bottom: 2rem;
}

/* === STEP CONTENT === */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 1.5rem;
}

.input-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition);
}

.input-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.1);
}

.input-textarea::placeholder {
    color: var(--text-muted);
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.input-text {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-text:focus {
    outline: none;
    border-color: var(--accent);
}

/* === PRESETY === */
.presets-section {
    margin-bottom: 2rem;
}

.presets-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.preset-card {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.preset-card:hover {
    border-color: var(--accent);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preset-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.preset-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.preset-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* === UPLOAD PROMPT FILE BUTTON === */
.upload-prompt-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.btn-upload-file {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border: 2px dashed var(--text-muted);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload-file:hover {
    border-color: var(--accent);
    background: rgba(255, 199, 0, 0.05);
}

.upload-btn-icon {
    font-size: 1.1rem;
}

.upload-hint-inline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* === UPLOAD / DROPZONE === */
.upload-section {
    margin-top: 2rem;
}

.upload-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.dropzone-container {
    border: 2px dashed var(--text-muted);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}

.dropzone-container:hover {
    border-color: var(--accent);
    background: rgba(255, 199, 0, 0.05);
}

.dropzone-container.dz-drag-hover {
    border-color: var(--accent);
    background: rgba(255, 199, 0, 0.1);
    border-style: solid;
}

.dropzone-message {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.dropzone-message p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.uploaded-files-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-remove {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    transition: var(--transition);
}

.file-remove:hover {
    opacity: 0.7;
}

/* === BUTTONS === */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #1b1204;
    box-shadow: 0 8px 20px rgba(255, 181, 52, 0.4);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: radial-gradient(circle at 30% 0, #ffe9b6 0, #ffc54b 38%, #ff9720 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 181, 52, 0.6);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 2px solid var(--bg);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--card-hover);
    border-color: var(--text-muted);
}

.btn-accent {
    background: var(--accent-dark);
    color: var(--text);
}

.btn-accent:hover:not(:disabled) {
    background: var(--accent);
    color: #000;
}

.btn-icon {
    background: var(--bg-secondary);
    color: var(--text);
    padding: 0.5rem 1rem;
}

.btn-icon:hover {
    background: var(--accent);
    color: #000;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* === ACTIONS === */
.actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* === LOADING STATE === */
.loading-state {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--bg-secondary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === GENERATION PROGRESS === */
.generation-progress {
    max-width: 400px;
    margin: 0 auto 2rem;
}

.progress-bar-container {
    background: var(--bg-secondary);
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--accent), #8B5CF6);
    height: 100%;
    border-radius: 50px;
    transition: width 0.3s ease;
    position: relative;
}

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

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

.progress-percentage {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.generation-current-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    max-width: 500px;
    margin: 0 auto;
}

.step-icon {
    flex-shrink: 0;
}

.spinner-small {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.step-text {
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.completed-steps {
    max-width: 500px;
    margin: 1.5rem auto 0;
    text-align: left;
}

.completed-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.completed-step::before {
    content: '✓';
    color: var(--success, #22c55e);
    font-weight: bold;
}

/* === QUESTIONS === */
.questions-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.question {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--bg-secondary);
}

.question-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1rem;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-btn {
    padding: 0.75rem 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--bg);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
}

.option-btn:hover {
    border-color: var(--accent);
    background: var(--card-hover);
}

.option-btn.selected {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chip {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chip:hover {
    border-color: var(--accent);
}

.chip.selected {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.chip-remove {
    cursor: pointer;
    font-weight: bold;
}

/* === RESULT SECTIONS === */
.result-section {
    margin-bottom: 2rem;
}

.result-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-container {
    padding-bottom: 2rem;
    min-height: auto;
}

.step-content[data-step="7"] .result-container {
    padding-bottom: 3rem;
    margin-bottom: 0;
}

/* Fix black field at bottom of prompt box on landing page */
.hero-right {
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

.prompt-box {
    margin-bottom: 0 !important;
    padding-bottom: 14px !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.1rem;
    color: var(--text);
}

.output-textarea {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg);
    border: 2px solid var(--bg-secondary);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 0;
}

.changes-list {
    list-style: none;
    padding: 0;
}

.changes-list li {
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.changes-list li::before {
    content: '✓ ';
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* === TEST OUTPUT === */
.test-output {
    margin-top: 1rem;
}
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 2px solid var(--bg);
    border-bottom: none;
}

.test-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.test-model {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.test-result {
    padding: 1.25rem;
    background: var(--bg);
    border: 2px solid var(--bg-secondary);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.modal-body {
    padding: 2rem;
}

.modal-body label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.toast {
    background: var(--card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: toastSlideIn 0.3s ease;
    border-left: 4px solid var(--accent);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text);
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 2rem 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.footer a {
    color: var(--accent);
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text p {
        font-size: 0.85rem;
    }
    
    .steps {
        gap: 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-line {
        width: 60px;
    }
    
    .presets-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .actions {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 1rem 0.75rem;
    }
    
    .card {
        padding: 1.25rem;
        border-radius: var(--radius);
    }
    
    .dropzone-container {
        padding: 2rem 1rem;
    }
    
    .upload-icon {
        font-size: 2rem;
    }
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-secondary {
    color: var(--text-secondary);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* === ANIMATIONS === */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ========================================
   V2 ADDITIONS - Review & Scores
   ======================================== */

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-draft {
    background: var(--warning);
    color: #000;
}

.badge-success {
    background: var(--success);
    color: #fff;
}

.badge-critical {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.badge-high {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.badge-medium {
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.badge-low {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* === REASONING BOX === */
.reasoning-box {
    padding: 1.5rem;
    background: rgba(255, 199, 0, 0.05);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    margin-bottom: 0;
    min-height: 0;
}

.reasoning-box:empty {
    display: none !important;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

.reasoning-box h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 1rem;
}

.reasoning-box p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === SCORE TOTAL === */
.score-total {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.1), rgba(178, 150, 111, 0.1));
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.score-total h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.score-circle {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.score-max {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* === SCORES GRID === */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--card);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.score-item:hover {
    background: var(--card-hover);
    border-color: rgba(255, 199, 0, 0.2);
}

.score-item span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.score-item .score {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent);
}

/* === REVIEW SECTIONS === */
.review-section {
    margin-bottom: 2rem;
}

.review-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text);
}

/* === ISSUES LIST === */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.issue {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.02);
}

.issue-critical {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.issue-high {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.issue-medium {
    border-color: #eab308;
    background: rgba(234, 179, 8, 0.1);
}

.issue-low {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.issue > div {
    flex: 1;
}

.issue strong {
    color: var(--text);
}

.issue .fix {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.issue .fix::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
}

/* === SUGGESTIONS LIST === */
.suggestions-list {
    list-style: none;
    padding: 0;
}

.suggestions-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.suggestions-list li::before {
    content: '💡 ';
    margin-right: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .scores-grid {
        grid-template-columns: 1fr;
    }
    
    .score-total {
        flex-direction: column;
        gap: 1rem;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .issue {
        flex-direction: column;
        gap: 0.75rem;
    }
}


/* === CUSTOM INPUT (Inne) === */
.custom-input-container {
    background: rgba(255, 199, 0, 0.05);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.custom-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.custom-input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-secondary);
}

.custom-input::placeholder {
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.option-custom {
    border: 2px solid var(--accent) !important;
}

.option-custom.selected {
    background: var(--accent) !important;
    color: #000 !important;
}


/* === CATEGORIES GRID === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    min-height: 200px;
    width: 100%;
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        display: flex !important;
        flex-direction: column;
    }
}

.category-card {
    background: var(--card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 199, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.15), rgba(255, 199, 0, 0.05));
    color: var(--accent);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.25), rgba(255, 199, 0, 0.1));
    box-shadow: 0 0 16px rgba(255, 199, 0, 0.2);
}

.category-icon .icon,
.category-icon .category-svg-icon {
    width: 28px;
    height: 28px;
}

/* Preset SVG icons */
.preset-icon .icon,
.preset-icon .preset-svg-icon {
    color: var(--accent);
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.category-count {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* Featured category card (Strona WWW) */
.category-card.category-featured {
    position: relative;
    border: 2px solid rgba(255, 199, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.06), rgba(255, 199, 0, 0.02), var(--card));
    overflow: hidden;
}

.category-card.category-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 199, 0, 0.08), transparent, rgba(255, 199, 0, 0.04), transparent);
    animation: category-shine 6s linear infinite;
    pointer-events: none;
}

@keyframes category-shine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.category-card.category-featured .category-icon {
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.25), rgba(255, 199, 0, 0.1));
    box-shadow: 0 0 12px rgba(255, 199, 0, 0.15);
}

.category-card.category-featured:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(255, 199, 0, 0.25), 0 0 20px rgba(255, 199, 0, 0.1);
}

.category-badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-accent);
    color: #000;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
}

/* === PRESETS IN CATEGORY GRID === */
.presets-in-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.preset-card {
    background: var(--card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.preset-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.12);
}

.preset-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.preset-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        width: 100% !important;
    }
    
    .category-card {
        padding: 1.25rem;
        width: 100% !important;
        display: flex !important;
        min-height: 80px;
    }
    
    .presets-in-category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .preset-card {
        padding: 1.25rem;
    }
}


/* === SUGGESTIONS WITH CHECKBOXES === */
.suggestion-item {
    margin-bottom: 0.75rem;
}

.suggestion-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-checkbox:hover {
    background: rgba(59, 130, 246, 0.15);
}

.suggestion-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.suggestion-checkbox span {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

.suggestion-checkbox:has(input:checked) {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
}

.suggestion-checkbox:has(input:checked) span {
    color: var(--text);
}

.suggestion-checkbox:has(input:not(:checked)) {
    opacity: 0.6;
}

.suggestion-checkbox:has(input:not(:checked)) span {
    text-decoration: line-through;
}


/* ========================================
   PHASE 2 - AUTH MODAL & USER MENU
   ======================================== */

/* === AUTH BUTTONS IN HEADER === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-section {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-outline:hover {
    border-color: var(--accent);
    background: rgba(255, 199, 0, 0.1);
}

/* === USER MENU === */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.user-badge {
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: #000;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-badge.pro {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* === AUTH MODAL === */
.modal-auth {
    max-width: 450px;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--bg-secondary);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.auth-tab:hover {
    color: var(--text);
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-form {
    display: none;
    padding: 2rem;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.auth-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border-left: 3px solid var(--error);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: 0.9rem;
}

.auth-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--bg-secondary);
    text-align: center;
}

.auth-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .auth-buttons {
        width: 100%;
    }
    
    .auth-buttons .btn {
        flex: 1;
    }
    
    .modal-auth {
        width: 95%;
        margin: 1rem;
    }
}


/* === USER MENU === */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.user-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-free {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-pro {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--text-dark);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}


/* === RATING STARS === */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 3rem;
    margin: 1.5rem 0;
}

.star {
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: var(--accent);
    transform: scale(1.1);
}

.star.active {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}


/* === TEMPORARY: HIDE AUTH BUTTONS === */
/* Auth section is now visible - removed display: none */


/* === SIMILAR PROMPTS === */
.similar-results {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.similar-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    transition: all 0.2s;
    cursor: pointer;
}

.similar-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.similar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.similar-title {
    font-weight: 600;
    color: var(--text-primary);
}

.similar-score {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.similar-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.similar-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.similar-tag {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* === UPGRADE MODAL === */
.upgrade-message {
    text-align: center;
    margin-bottom: 2rem;
}

.upgrade-message p {
    margin: 0.5rem 0;
}

.upgrade-message strong {
    color: var(--accent);
}

.upgrade-features {
    margin: 2rem 0;
}

.upgrade-features h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.upgrade-features ul {
    list-style: none;
    padding: 0;
}

.upgrade-features li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.upgrade-features li:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.upgrade-features strong {
    color: var(--accent);
}

.upgrade-pricing {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 199, 0, 0.05);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
}

.upgrade-pricing .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
}

.upgrade-pricing .price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0 0;
}


/* === TOP NAVIGATION === */
.top-nav {
    background: var(--gradient-nav);
    border-bottom: 1px solid rgba(255, 211, 79, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 18px rgba(255, 211, 79, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-pill);
    transition: var(--transition-slow);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-pill);
    background: radial-gradient(circle at 30% 0, rgba(255, 199, 0, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 199, 0, 0.15);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 199, 0, 0.2);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    background: var(--gradient-accent);
    color: #1b1204;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 181, 52, 0.5);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.nav-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.nav-icon .icon {
    width: 18px;
    height: 18px;
    color: currentColor;
}

.nav-label {
    font-size: 0.9rem;
}

.account-badge {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--gradient-accent);
    color: #1b1204;
    box-shadow: 0 4px 12px rgba(255, 181, 52, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.account-badge.pro {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.5);
    text-shadow: none;
}

.account-badge.admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
}

/* === ACCOUNT PAGE === */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gradient-bg);
    padding: 0;
    margin: 0;
}

.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.profile-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    border-color: rgba(255, 199, 0, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Limits */
.limits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.limit-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.limit-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.limit-value {
    font-weight: 600;
    color: var(--accent);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ffed4e);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.upgrade-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 199, 0, 0.05);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    text-align: center;
}

.upgrade-prompt {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Plan Card */
.card-highlight {
    border: 2px solid var(--accent);
}

.card-pro {
    border: 2px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.plan-info {
    text-align: center;
}

.plan-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-badge-free {
    background: var(--accent);
    color: #000;
}

.plan-badge-pro {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.plan-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-free {
    background: var(--accent);
    color: #000;
}

.badge-pro {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #fff;
}

/* Navigation Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-logo img {
    height: 32px;
}


/* === CUSTOM INPUT SECTION (Step 1) === */
.custom-input-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bg-secondary);
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: var(--card);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.custom-input-section h3 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle-small {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Saved Prompt Items */
.saved-prompt-item {
    transition: var(--transition-slow);
    cursor: pointer;
}

.saved-prompt-item:hover {
    border-color: rgba(255, 199, 0, 0.3) !important;
    background: var(--card-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.custom-input-section .btn {
    width: 100%;
}

/* === RATING SYSTEM === */
.rating-container {
    padding: 1.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    text-align: center;
}

.rating-label {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    opacity: 0.4;
}

.star-btn:hover {
    transform: scale(1.2);
    filter: grayscale(0%);
    opacity: 1;
}

.star-btn.active {
    filter: grayscale(0%);
    opacity: 1;
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.rating-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.rating-success {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: rgb(34, 197, 94);
    font-weight: 500;
}

.success-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}


/* ===================================
   TIP BANNER (Optional suggestion)
   =================================== */

.tip-banner {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 199, 0, 0.05), rgba(255, 199, 0, 0.1));
    border: 1px solid rgba(255, 199, 0, 0.3);
    border-radius: var(--radius);
    align-items: flex-start;
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-content strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-content p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

.tip-content em {
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
}

/* ===================================
   AI EVOLUTION COURSE AD (3D Button)
   =================================== */

.ai-evolution-promo {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, rgba(255, 211, 79, 0.18), rgba(255, 180, 0, 0.12));
    border: 2px solid rgba(255, 211, 79, 0.5);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(255, 211, 79, 0.25),
        0 4px 16px rgba(255, 180, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(0deg);
}

.ai-evolution-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.ai-evolution-promo:hover {
    transform: perspective(1000px) rotateX(3deg) translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(255, 211, 79, 0.4),
        0 10px 30px rgba(255, 180, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 211, 79, 0.8);
    background: linear-gradient(135deg, rgba(255, 211, 79, 0.25), rgba(255, 180, 0, 0.18));
}

.ai-evolution-promo:hover::before {
    left: 100%;
}

.ai-evolution-promo:active {
    transform: perspective(1000px) rotateX(0deg) translateY(-2px) scale(0.99);
    box-shadow: 
        0 8px 24px rgba(255, 211, 79, 0.3),
        0 4px 12px rgba(255, 180, 0, 0.25),
        inset 0 3px 6px rgba(0, 0, 0, 0.25);
}

.promo-logo-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 211, 79, 0.4));
}

.promo-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.promo-text strong {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 768px) {
    .ai-evolution-promo {
        flex-direction: row;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    
    .promo-logo-img {
        width: 36px;
        height: 36px;
    }
    
    .promo-text {
        font-size: 0.85rem;
    }
}

/* ===== PROMPT RATING SYSTEM ===== */

.rating-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.rating-stars .star {
    font-size: 2.5rem;
    color: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rating-stars .star:hover,
.rating-stars .star.hovered {
    color: var(--accent);
    transform: scale(1.15);
}

.rating-stars .star.active {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 211, 79, 0.6);
}

.rating-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 1.5rem;
}

.rating-feedback {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.rating-feedback label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
}

.rating-success {
    text-align: center;
    padding: 1rem;
    color: #4ade80;
    font-weight: 600;
    background: rgba(74, 222, 128, 0.1);
    border-radius: var(--radius);
    margin-top: 1rem;
}

/* === PROGRESS STEPS - RESTORED STYLES === */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 24px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 40px rgba(255, 199, 0, 0.08);
    border: 1px solid var(--border);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--card);
    color: var(--text-muted);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.step.active .step-number {
    background: linear-gradient(135deg, #FFC700, #ffb800);
    color: #0B0B0C;
    box-shadow: 0 8px 24px rgba(255, 199, 0, 0.4), 0 0 40px rgba(255, 199, 0, 0.2);
    transform: scale(1.1);
    border-color: #FFC700;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    border-color: #10b981;
}

.step:hover:not(.active):not(.completed) .step-number {
    background: rgba(255, 199, 0, 0.15);
    color: #FFC700;
    transform: translateY(-4px);
    border-color: rgba(255, 199, 0, 0.3);
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #FFC700;
    font-weight: 700;
}

.step.completed .step-label {
    color: #10b981;
}

.step-line {
    width: 60px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.step.completed + .step-line {
    background: linear-gradient(90deg, #10b981, #FFC700);
}

/* Buttons with gold glow */
.btn-primary, .btn-accent {
    background: linear-gradient(135deg, #FFC700, #ffb800);
    color: #0B0B0C;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 199, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-accent:hover {
    box-shadow: 0 8px 30px rgba(255, 199, 0, 0.6), 0 0 40px rgba(255, 199, 0, 0.3);
    transform: translateY(-2px);
}

/* === WOW EFFECTS - PARTICLES, ORBS, ANIMATIONS === */

/* Background gradient */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 199, 0, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(34, 197, 94, 0.08), transparent);
    z-index: -2;
    pointer-events: none;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Floating orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
    animation: orbFloat 20s ease-in-out infinite;
    pointer-events: none;
}
.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,199,0,0.3), transparent 70%);
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.orb-2 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
    top: 50%; right: -100px;
    animation-delay: -7s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(34,197,94,0.2), transparent 70%);
    bottom: -100px; left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 199, 0, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(255, 199, 0, 0.6), 0 0 60px rgba(255,199,0,0.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Card hover glow — handled by WOW layer below */

/* Header glassmorphism */
.nav-container {
    backdrop-filter: blur(20px);
    background: rgba(11, 11, 12, 0.85) !important;
}

/* Logo glow */
.logo-image {
    filter: drop-shadow(0 0 20px rgba(255, 199, 0, 0.3));
}

/* FIX: Force promo-text to display */
.promo-text {
    display: inline !important;
    color: #ffffff !important;
}

/* CRITICAL FIX: Force promo-text display with high specificity */
.ai-evolution-promo .promo-text,
.ai-evolution-promo span.promo-text,
a.ai-evolution-promo span.promo-text {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    width: auto !important;
    height: auto !important;
}

/* ═══════════════════════════════════════════
   PREMIUM POLISH LAYER
   ═══════════════════════════════════════════ */

/* Premium scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,199,0,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,199,0,0.3); }

/* Selection color */
::selection { background: rgba(255,199,0,0.2); color: #fff; }

/* Premium focus ring */
:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255,199,0,0.3), 0 0 0 4px rgba(255,199,0,0.1) !important;
}

/* Card hover depth */
.card:not(.main-card), .category-card, .preset-card {
    transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
}
.card:hover:not(.main-card), .category-card:hover, .preset-card:hover {
    box-shadow: var(--shadow-xl), 0 0 20px rgba(255,199,0,0.04);
}

/* Heading tracking */
h1, h2, h3 { letter-spacing: -0.02em; }

/* Tabular nums */
.stat-value, [class*="count"], [class*="number"], [class*="price"] {
    font-variant-numeric: tabular-nums;
}

/* Button hover lift */
.btn-primary:hover, [class*="btn-accent"]:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent-glow);
}
.btn-primary:active, [class*="btn-accent"]:active {
    transform: translateY(0);
}

/* Input focus glow */
input:focus, textarea:focus, select:focus {
    border-color: rgba(255,199,0,0.4) !important;
    box-shadow: 0 0 0 3px rgba(255,199,0,0.08) !important;
}

/* Smooth transitions on interactive elements */
button, a, input, textarea, select {
    transition: all 0.2s cubic-bezier(0.22,1,0.36,1);
}

/* Toast/notification premium */
.toast, [class*="notification"], [class*="alert"] {
    backdrop-filter: blur(12px);
}


/* ═══════════════════════════════════════════════════════════
   SHOWROOM WOW LAYER — Premium Visual Overhaul
   ═══════════════════════════════════════════════════════════ */

/* ── 1. ANIMATED MESH GRADIENT BACKGROUND ── */
.bg-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 199, 0, 0.18), transparent 70%),
        radial-gradient(ellipse 60% 40% at 85% 10%, rgba(139, 92, 246, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 35% at 10% 90%, rgba(34, 197, 94, 0.08), transparent 60%),
        radial-gradient(ellipse 40% 30% at 70% 80%, rgba(59, 130, 246, 0.06), transparent 50%);
    animation: meshShift 25s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
    33% { background-position: 10% 5%, 90% 10%, 5% 95%, 80% 85%; }
    66% { background-position: 5% -5%, 95% 5%, 10% 90%, 90% 95%; }
    100% { background-position: 0% 0%, 100% 0%, 0% 100%, 100% 100%; }
}

/* ── 2. GLASSMORPHISM CARDS ── */
.card, .main-card {
    background: rgba(18, 18, 20, 0.75) !important;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Main card — glass only, no hover transforms */
.main-card {
    transform: none !important;
}

.main-card:hover {
    transform: none !important;
    background: rgba(18, 18, 20, 0.78) !important;
}

/* ── 3. CATEGORY CARDS — 3D TILT + GLASS ── */
.categories-grid {
    perspective: 1200px;
}

.category-card {
    background: rgba(18, 18, 20, 0.6) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(0) rotateY(0);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card:hover {
    transform: perspective(800px) rotateX(-2deg) rotateY(3deg) translateY(-6px) !important;
    border-color: rgba(255, 199, 0, 0.25);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(255, 199, 0, 0.08),
        -4px 8px 20px rgba(255, 199, 0, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* Subtle light reflection on card top */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-card:hover::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
}

/* ── 4. STAGGERED CARD ENTRANCE ANIMATIONS ── */
.category-card {
    opacity: 0;
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.3s; }
.category-card:nth-child(7) { animation-delay: 0.35s; }
.category-card:nth-child(8) { animation-delay: 0.4s; }
.category-card:nth-child(9) { animation-delay: 0.45s; }
.category-card:nth-child(10) { animation-delay: 0.5s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: perspective(800px) rotateX(6deg) translateY(24px) scale(0.97);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: perspective(800px) rotateX(0) translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Preset cards stagger too */
.preset-card {
    opacity: 0;
    animation: presetSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.preset-card:nth-child(1) { animation-delay: 0.05s; }
.preset-card:nth-child(2) { animation-delay: 0.1s; }
.preset-card:nth-child(3) { animation-delay: 0.15s; }
.preset-card:nth-child(4) { animation-delay: 0.2s; }
.preset-card:nth-child(5) { animation-delay: 0.25s; }
.preset-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes presetSlide {
    from { opacity: 0; transform: translateX(-16px); filter: blur(3px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

/* ── 5. GRADIENT TEXT ON HEADINGS ── */
.step-content h2,
.header .logo-text h1 {
    background: linear-gradient(135deg, #ffffff 0%, #FFC700 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.subtitle {
    background: linear-gradient(90deg, var(--text-secondary), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── 6. PREMIUM BUTTONS — SHINE SWEEP + PRESS DEPTH ── */
.btn-primary,
.btn-accent,
.btn-large {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after,
.btn-accent::after,
.btn-large::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::after,
.btn-accent:hover::after,
.btn-large:hover::after {
    left: 125%;
}

.btn-primary:active,
.btn-accent:active {
    transform: translateY(1px) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(255, 199, 0, 0.3) !important;
    transition: all 0.1s ease !important;
}

/* ── 7. ENHANCED STEP PROGRESS BAR ── */
.steps-container {
    background: rgba(18, 18, 20, 0.7) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 48px rgba(255, 199, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.step-number {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.active .step-number {
    animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stepPop {
    0% { transform: scale(0.8); opacity: 0.5; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1.1); opacity: 1; }
}

/* Animated connector lines */
.step-line {
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #FFC700);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.step.completed + .step-line::after {
    width: 100%;
}

/* ── 8. GLASSMORPHISM ON QUESTIONS ── */
.question {
    background: rgba(18, 18, 20, 0.5) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.question:hover {
    border-color: rgba(255, 199, 0, 0.1) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* ── 9. OPTION BUTTONS — NEON GLOW ON SELECT ── */
.option-btn.selected,
.chip.selected {
    box-shadow:
        0 0 12px rgba(255, 199, 0, 0.3),
        0 0 24px rgba(255, 199, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 0 8px rgba(255, 199, 0, 0.3);
}

.option-btn:hover,
.chip:hover {
    box-shadow: 0 4px 16px rgba(255, 199, 0, 0.1);
}

/* ── 10. RESULT OUTPUT — CODE BLOCK GLASS ── */
.output-textarea {
    background: rgba(8, 8, 10, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 199, 0, 0.08) !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3) inset,
        0 1px 0 rgba(255, 255, 255, 0.03);
}

.output-textarea:focus {
    border-color: rgba(255, 199, 0, 0.2) !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3) inset,
        0 0 0 3px rgba(255, 199, 0, 0.06),
        0 0 24px rgba(255, 199, 0, 0.04) !important;
}

/* ── 11. SCORE CIRCLE — 3D RING ── */
.score-total {
    background:
        linear-gradient(135deg, rgba(255, 199, 0, 0.12), rgba(139, 92, 246, 0.06), rgba(255, 199, 0, 0.04)) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 199, 0, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 24px rgba(255, 199, 0, 0.06);
}

/* ── 12. PREMIUM TOAST NOTIFICATIONS ── */
.toast {
    background: rgba(18, 18, 20, 0.9) !important;
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

/* ── 13. HEADER — PREMIUM GLASS + BORDER GLOW ── */
.top-nav {
    background: rgba(11, 11, 12, 0.8) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border-bottom: 1px solid rgba(255, 199, 0, 0.08) !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 199, 0, 0.06) inset !important;
}

/* ── 14. LOADING SHIMMER — PREMIUM SKELETON ── */
@keyframes premiumShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 199, 0, 0.06) 40%,
        rgba(255, 199, 0, 0.08) 50%,
        rgba(255, 199, 0, 0.06) 60%,
        rgba(255, 255, 255, 0.02) 100%
    );
    background-size: 200% 100%;
    animation: premiumShimmer 2s ease-in-out infinite;
}

/* ── 15. MODAL — FROSTED GLASS ── */
.modal {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal-content {
    background: rgba(18, 18, 20, 0.92) !important;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 48px rgba(255, 199, 0, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

/* ── 16. REASONING BOX — AMBER GLASS ── */
.reasoning-box {
    background: rgba(255, 199, 0, 0.04) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 199, 0, 0.1) !important;
    border-left: 4px solid var(--accent) !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        0 0 16px rgba(255, 199, 0, 0.03);
}

/* ── 17. CATEGORY ICON — PREMIUM GLOW ── */
.category-icon {
    position: relative;
    overflow: hidden;
}

.category-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}

.category-card:hover .category-icon {
    box-shadow:
        0 0 20px rgba(255, 199, 0, 0.2),
        0 0 40px rgba(255, 199, 0, 0.06) !important;
}

/* ── 18. FEATURED CATEGORY — PREMIUM BORDER ── */
.category-card.category-featured {
    border: 1px solid rgba(255, 199, 0, 0.2) !important;
    background: linear-gradient(
        135deg,
        rgba(255, 199, 0, 0.06) 0%,
        rgba(18, 18, 20, 0.7) 40%,
        rgba(139, 92, 246, 0.03) 100%
    ) !important;
}

.category-card.category-featured:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 48px rgba(255, 199, 0, 0.1),
        0 0 80px rgba(255, 199, 0, 0.04) !important;
}

/* ── 19. ORBS — ENHANCED MOTION ── */
.orb {
    filter: blur(100px) !important;
    opacity: 0.4 !important;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(255,199,0,0.25), rgba(255,140,0,0.1) 40%, transparent 70%) !important;
}

.orb-2 {
    width: 400px !important;
    height: 400px !important;
    background: radial-gradient(circle, rgba(139,92,246,0.2), rgba(99,102,241,0.08) 40%, transparent 70%) !important;
}

.orb-3 {
    width: 450px !important;
    height: 450px !important;
    background: radial-gradient(circle, rgba(34,197,94,0.18), rgba(16,185,129,0.06) 40%, transparent 70%) !important;
}

/* ── 20. DIVIDER — GRADIENT LINE ── */
.divider {
    position: relative;
}

.divider::before,
.divider::after {
    background: linear-gradient(90deg, transparent, rgba(255, 199, 0, 0.15), transparent) !important;
}

/* ── 21. MICRO-INTERACTION: RIPPLE ON CLICK ── */
.category-card:active,
.preset-card:active,
.option-btn:active,
.chip:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
}

/* ── 22. NOISE TEXTURE OVERLAY (subtle grain) ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ── 23. PRESET CARD — GLASS + BORDER SHINE ── */
.preset-card {
    background: rgba(18, 18, 20, 0.5) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.02) inset;
    position: relative;
    overflow: hidden;
}

.preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 199, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preset-card:hover::before {
    opacity: 1;
}

.preset-card:hover {
    background: rgba(22, 22, 26, 0.7) !important;
    border-color: rgba(255, 199, 0, 0.15) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 24px rgba(255, 199, 0, 0.05),
        0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

/* ── 24. BADGE GLOW ── */
.category-badge-new {
    box-shadow:
        0 2px 8px rgba(255, 199, 0, 0.4),
        0 0 16px rgba(255, 199, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 199, 0, 0.4), 0 0 16px rgba(255, 199, 0, 0.2); }
    50% { box-shadow: 0 2px 12px rgba(255, 199, 0, 0.6), 0 0 24px rgba(255, 199, 0, 0.3); }
}

/* ── 25. STEP CONTENT TRANSITION — SMOOTH MORPH ── */
.step-content.active {
    animation: stepReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes stepReveal {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.99);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ── 26. UPLOAD DROPZONE — PREMIUM DASHED ── */
.dropzone-container {
    background: rgba(11, 11, 12, 0.5) !important;
    border: 2px dashed rgba(255, 199, 0, 0.15) !important;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.dropzone-container:hover,
.dropzone-container.dz-drag-hover {
    border-color: rgba(255, 199, 0, 0.4) !important;
    background: rgba(255, 199, 0, 0.03) !important;
    box-shadow: 0 0 32px rgba(255, 199, 0, 0.06);
}

/* ── 27. ISSUES — PREMIUM SEVERITY INDICATORS ── */
.issue {
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm) !important;
    transition: all 0.2s ease;
}

.issue:hover {
    transform: translateX(4px);
}

/* ── 28. CHANGES LIST — ANIMATED CHECKMARKS ── */
.changes-list li {
    backdrop-filter: blur(8px);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.changes-list li:hover {
    border-left-color: var(--accent);
    background: rgba(255, 199, 0, 0.03);
    transform: translateX(4px);
}

/* ── 29. ACCOUNT BADGE — PREMIUM GLOW ── */
.account-badge {
    position: relative;
    overflow: hidden;
}

.account-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% { left: -75%; }
    50% { left: 125%; }
}

/* ── 30. FORM ELEMENTS — PREMIUM GLASS ── */
.input-textarea,
.input-text,
textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
    background: rgba(8, 8, 10, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) inset;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.input-textarea:focus,
.input-text:focus,
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: rgba(255, 199, 0, 0.25) !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15) inset,
        0 0 0 3px rgba(255, 199, 0, 0.06),
        0 0 16px rgba(255, 199, 0, 0.03) !important;
}

/* Multi-Model Preview — preferred-model selection (2026-04-29) */
.multi-card-footer {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: flex-end;
}
.multi-card-prefer {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.multi-card-prefer:hover {
    background: var(--accent, rgba(255,255,255,0.08));
    color: #fff;
    border-color: var(--accent, rgba(255,255,255,0.3));
}
.multi-card.is-preferred {
    box-shadow: 0 0 0 2px var(--accent, #fbbf24);
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
}
.multi-card.is-preferred .multi-card-prefer {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    pointer-events: none;
}
.multi-card.is-preferred .multi-card-prefer::after {
    content: ' ✓';
}
