/* ===== Briefify Pro Conversion — Premium Design System ===== */

:root {
    /* Color palette */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f35;
    --bg-card-hover: #1f2542;
    --bg-input: #0d1224;

    --text-primary: #f0f2f8;
    --text-secondary: #8892b0;
    --text-muted: #5a6380;

    --accent-primary: #6366f1;
    --accent-primary-hover: #818cf8;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    --accent-glow: rgba(99, 102, 241, 0.4);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    --fiverr-green: #1dbf73;
    --fiverr-green-hover: #19a463;
    --fiverr-glow: rgba(29, 191, 115, 0.35);

    --border-color: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    background: rgba(10, 14, 26, 0.85);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-badge {
    background: var(--accent-gradient);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 1.5px;
    vertical-align: super;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.lang-selector select {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.lang-selector select:hover {
    border-color: var(--accent-primary);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0 16px;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.progress-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.progress-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    max-width: 100px;
    min-width: 40px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.progress-step.active .progress-circle {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.progress-step.active .progress-label {
    color: var(--accent-primary-hover);
}

.progress-step.completed .progress-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step.completed .progress-label {
    color: var(--success);
}

.progress-step.completed+.progress-line {
    background: var(--success);
}

/* ===== WIZARD STEPS ===== */
.wizard-step {
    display: none;
    animation: fadeSlideIn 0.5s ease-out;
}

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

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ===== INPUT ===== */
.input-large {
    width: 100%;
    padding: 16px 18px;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    resize: vertical;
    transition: var(--transition);
    line-height: 1.5;
}

.input-large:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-large::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary-hover);
    background: rgba(99, 102, 241, 0.05);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-copy {
    background: transparent;
    color: var(--accent-secondary);
    border: 1px solid rgba(6, 182, 212, 0.3);
    font-size: 0.9rem;
    padding: 10px 20px;
    margin-top: 12px;
}

.btn-copy:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: var(--accent-secondary);
}

.btn-copy.success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* Fiverr CTA */
.btn-fiverr {
    background: var(--fiverr-green);
    color: white;
    font-size: 1.1rem;
    padding: 18px 40px;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-fiverr:hover {
    background: var(--fiverr-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--fiverr-glow);
}

.btn-glow {
    animation: ctaPulse 2.5s infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px var(--fiverr-glow);
    }

    50% {
        box-shadow: 0 4px 40px var(--fiverr-glow), 0 0 60px rgba(29, 191, 115, 0.15);
    }
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.button-group--secondary {
    justify-content: center;
    margin-top: 16px;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* ===== CATEGORY CHIPS ===== */
.category-chips {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary-hover);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

/* ===== CLASSIFICATION ===== */
.classification-card {
    margin-bottom: 24px;
}

.classification-success,
.classification-general {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(99, 102, 241, 0.04);
}

.classification-success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.04);
}

.classification-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

.classification-general .classification-icon {
    background: var(--accent-primary);
}

.classification-info h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.category-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.confidence {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

/* ===== INTENT BADGES ===== */
.intent-badges {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.intent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.intent-badge--urgency {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.intent-badge--budget {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.intent-badge--quality {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Filter badges on brief page */
.brief-filter-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(29, 191, 115, 0.08);
    color: var(--fiverr-green);
    border: 1px solid rgba(29, 191, 115, 0.2);
}

.filter-badge--express_delivery {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.filter-badge--budget_friendly {
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.filter-badge--top_rated {
    background: rgba(99, 102, 241, 0.08);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.2);
}

/* ===== QUESTIONS ===== */
.question-item {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeSlideIn 0.4s ease-out forwards;
}

.question-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.required {
    color: var(--danger);
    margin-left: 2px;
}

.question-input,
.question-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
}

.question-input:focus,
.question-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.question-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.04);
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--accent-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option label,
.checkbox-option label {
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    flex: 1;
}

/* ===== BRIEF OUTPUT ===== */
.brief-summary {
    margin-bottom: 20px;
}

.summary-card {
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.brief-container {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    position: relative;
}

.brief-text {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 450px;
    overflow-y: auto;
}

.brief-text::-webkit-scrollbar {
    width: 6px;
}

.brief-text::-webkit-scrollbar-track {
    background: transparent;
}

.brief-text::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* ===== PERSUASION SECTION ===== */
.persuasion-section {
    margin-top: 20px;
}

.persuasion-tips {
    display: grid;
    gap: 10px;
}

.persuasion-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.persuasion-tip:hover {
    background: rgba(16, 185, 129, 0.08);
    transform: translateX(4px);
}

.tip-icon {
    font-size: 1.2rem;
    min-width: 28px;
    text-align: center;
}

.tip-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.tip-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== FIVERR SEARCH PREVIEW ===== */
.fiverr-search-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(29, 191, 115, 0.04);
    border: 1px solid rgba(29, 191, 115, 0.12);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.search-preview-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.search-preview-query {
    font-size: 0.9rem;
    color: var(--fiverr-green);
    font-weight: 600;
}

/* ===== FALLBACK MESSAGE ===== */
.fallback-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.fallback-message span {
    font-size: 1.3rem;
    line-height: 1;
}

.fallback-message p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== CTA SECTION ===== */
.cta-section {
    text-align: center;
    margin-top: 28px;
    padding: 28px 0 8px;
}

.cta-subtitle {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

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

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

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: 40px;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: var(--accent-primary-hover);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .logo {
        font-size: 1.3rem;
        justify-content: center;
    }

    .step-card {
        padding: 24px 18px;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
    }

    .btn-fiverr {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
    }

    .progress-bar {
        padding: 20px 0 12px;
    }

    .progress-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .progress-label {
        font-size: 0.6rem;
    }

    .category-chips {
        gap: 6px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .trust-badges {
        gap: 8px;
    }

    .badge {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .footer-links {
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .step-title {
        font-size: 1.05rem;
    }

    .step-description {
        font-size: 0.85rem;
    }
}

/* Hiring Guide Styles */
.hiring-guide-container {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .hiring-guide-container {
        grid-template-columns: 1fr 1fr;
    }

    .guide-next {
        grid-column: span 2;
    }
}

.guide-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease;
}

.guide-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.guide-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-card ul,
.guide-card ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.guide-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.guide-red-flags h4 {
    color: #ff8787;
    border-color: rgba(255, 135, 135, 0.2);
}

.guide-scope h4 {
    color: #ffd43b;
    border-color: rgba(255, 212, 59, 0.2);
}

.guide-tips h4 {
    color: #74c0fc;
    border-color: rgba(116, 192, 252, 0.2);
}

.guide-next h4 {
    color: #20c997;
    border-color: rgba(32, 201, 151, 0.2);
}

/* Smart Link in Guide */
.smart-link {
    color: var(--fiverr-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    background: rgba(29, 191, 115, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.smart-link:hover {
    color: #fff;
    background: var(--fiverr-green);
    text-decoration: none;
}