/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-entry {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
    animation-fill-mode: both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

/* UPDATED THEME COLORS */
:root {
    --brand-purple: 258 90% 66%;
    --brand-pink: 330 81% 60%;
    --brand-gold: 45 96% 56%;
    --bg-main: 240 33% 5%;
    --bg-panel: 240 33% 13%;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: hsl(var(--bg-main));
    color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* MAIN CONTAINER - Two Column Layout */
.main-container {
    width: 100%;
    max-width: 1600px;
    height: 92vh;
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 24px;
    padding: 16px;
    margin: 0 auto;
}

/* SIDEBAR */
.sidebar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: hsl(var(--bg-panel));
    border: 1px solid hsl(var(--brand-purple) / 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* HEADER */
.header-section {
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, hsl(var(--brand-purple)) 0%, hsl(var(--brand-pink)) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.header-section p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* CONTENT */
.scrollable-content {
    flex: 1;
    padding: 16px 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

.scrollable-content::-webkit-scrollbar {
    width: 4px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: hsl(var(--brand-purple) / 0.4);
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--brand-purple) / 0.6);
}

.form-section {
    margin-bottom: 12px;
}

.section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #52525b;
    margin-bottom: 10px;
    margin-top: 14px;
    letter-spacing: 0.8px;
}

.section-title:first-child {
    margin-top: 0;
}

.form-group {
    margin-bottom: 12px;
}

label {
    font-size: 12px;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 6px;
    display: block;
}

input, textarea {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fafafa;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
}

input:hover, textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

input:focus, textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: hsl(var(--brand-purple));
    box-shadow: 0 0 0 3px hsl(var(--brand-purple) / 0.15);
}

input::placeholder, textarea::placeholder {
    color: #3f3f46;
}

textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.5;
}

.pdfup {
    padding: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.pdfup:hover {
    border-color: hsl(var(--brand-pink));
    background: hsl(var(--brand-pink) / 0.05);
}

.pdfup label {
    margin-bottom: 10px;
    font-size: 12px;
}

input[type="file"] {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 12px;
    color: #52525b;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    padding: 7px 14px;
    background: hsl(var(--brand-purple));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: hsl(var(--brand-pink));
}

/* BUTTON */
button#tlr {
    width: 100%;
    margin-top: 16px;
    padding: 11px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    background: linear-gradient(135deg, hsl(var(--brand-purple)) 0%, hsl(var(--brand-pink)) 50%, hsl(var(--brand-gold)) 100%);
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px hsl(var(--brand-purple) / 0.3);
}

button#tlr:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px hsl(var(--brand-pink) / 0.4);
}

button#tlr:active {
    transform: translateY(0);
}

/* AI PANEL */
.aipnl {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aipnl h3 {
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #52525b;
    margin-bottom: 10px;
    font-weight: 600;
}

.status-steps {
    list-style: none;
    position: relative;
    min-height: 22px;
}

.status-steps li {
    font-size: 12px;
    color: #71717a;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.status-steps li.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.status-steps li.is-exiting {
    opacity: 0;
    transform: translateY(-10px);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot.idle {
    background: hsl(var(--brand-purple));
    animation: pulse 2s ease-in-out infinite;
}

/* PREVIEW PANEL */
.preview-panel {
    width: 100%;
    height: 100%;
    background: hsl(var(--bg-panel));
    border: 1px solid hsl(var(--brand-purple) / 0.2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.preview-header {
    padding: 28px 32px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: hsl(var(--brand-gold) / 0.15);
    border: 1px solid hsl(var(--brand-gold) / 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: hsl(var(--brand-gold));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.preview-badge-dot {
    width: 8px;
    height: 8px;
    background: hsl(var(--brand-gold));
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px hsl(var(--brand-gold));
}

.preview-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #ffffff 0%, hsl(var(--brand-purple)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preview-header p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

.preview-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

.preview-content::-webkit-scrollbar {
    width: 6px;
}

.preview-content::-webkit-scrollbar-track {
    background: transparent;
}

.preview-content::-webkit-scrollbar-thumb {
    background: hsl(var(--brand-purple) / 0.3);
    border-radius: 3px;
}

/* DEMO SCORE CARD */
.demo-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    margin-bottom: 28px;
}

.demo-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.demo-score-circle svg {
    width: 100%;
    height: 100%;
}

.demo-progress-ring {
    animation: rotate 3s linear infinite;
    transform-origin: center;
}

.demo-score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.demo-score-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.demo-score-total {
    font-size: 14px;
    color: #6b7280;
    margin-left: 2px;
}

.demo-score-label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.demo-score-verdict {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #22c55e;
}

/* DEMO CATEGORIES */
.demo-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.demo-category {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-category-icon {
    font-size: 16px;
}

.demo-category-name {
    flex: 1;
    font-size: 13px;
    color: #d1d5db;
    font-weight: 500;
}

.demo-category-score {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--brand-purple));
}

.demo-category-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.demo-category-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 2s ease;
    position: relative;
    overflow: hidden;
}

.demo-category-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* DEMO INSIGHTS */
.demo-insights {
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 28px;
}

.demo-insights h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.demo-insight-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #d1d5db;
}

.demo-insight-bullet {
    width: 6px;
    height: 6px;
    background: hsl(var(--brand-purple));
    border-radius: 50%;
    flex-shrink: 0;
}

/* DEMO FEATURES */
.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.demo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.demo-feature:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.demo-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.demo-feature-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.demo-feature-text p {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

/* AI REVIEW OVERLAY STYLES */
.ai-review-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ai-review-overlay.active {
    display: flex;
}

.ai-review-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.overlay-panel {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    background: linear-gradient(145deg, #1a1a2e 0%, #16162a 50%, #0f0f1a 100%);
    border-radius: 24px;
    box-shadow: 
        0 0 0 1px rgba(139, 92, 246, 0.15),
        0 25px 80px -20px rgba(139, 92, 246, 0.3),
        0 0 60px rgba(236, 72, 153, 0.1);
    display: grid;
    grid-template-columns: 380px 1fr;
    overflow: hidden;
}

.overlay-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #a0a0b0;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.overlay-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.overlay-left {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.overlay-resume-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.overlay-resume-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #22c55e;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

.overlay-resume-preview {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.overlay-resume-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.overlay-right {
    padding: 28px 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

.overlay-right::-webkit-scrollbar {
    width: 6px;
}

.overlay-right::-webkit-scrollbar-track {
    background: transparent;
}

.overlay-right::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.dashboard-header {
    margin-bottom: 28px;
}

.dashboard-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header p {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.score-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.score-ring-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
}

.score-ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 10;
}

.score-ring-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 86.71;
    transition: stroke-dashoffset 1s ease;
}

.score-ring-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-ring-value .number {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.score-ring-value .total {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.score-verdict {
    margin-top: 16px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fbbf24;
    text-align: center;
}

.category-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-label span {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #d1d5db;
}

.category-label .category-score {
    font-weight: 600;
    color: #a78bfa;
}

.category-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.category-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.category-bar-fill.ats { 
    width: 88%; 
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.category-bar-fill.hard-skills { 
    width: 72%; 
    background: linear-gradient(90deg, #ec4899, #f472b6);
}
.category-bar-fill.soft-skills { 
    width: 65%; 
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}
.category-bar-fill.experience { 
    width: 80%; 
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
.category-bar-fill.job-match { 
    width: 77%; 
    background: linear-gradient(90deg, #fbbf24, #fcd34d);
}

.analysis-section {
    margin-bottom: 28px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1));
    border-radius: 10px;
    font-size: 14px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.skill-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.skill-card h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.skill-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-importance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
}

.skill-importance.high {
    color: #ef4444;
}

.skill-importance.medium {
    color: #fbbf24;
}

.skill-importance.low {
    color: #22c55e;
}

.skill-time {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: #6b7280;
}

.soft-skills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.soft-skill-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 72, 153, 0.15);
    border-radius: 8px;
    font-size: 12px;
}

.soft-skill-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #d1d5db;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.suggestion-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    margin-top: 2px;
}

.suggestion-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
}

.preferred-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.preferred-skill-card {
    background: linear-gradient(180deg, rgba(120,80,255,0.08), rgba(120,80,255,0.03));
    border: 1px solid rgba(160,140,255,0.25);
    border-radius: 14px;
    padding: 14px;
}

.preferred-skill-card h5 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
}

.preferred-meta {
    font-size: 12px;
    opacity: 0.85;
}

.section-hint {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .main-container {
        grid-template-columns: 400px 1fr;
    }
}

@media (max-width: 1200px) {
    .overlay-panel {
        grid-template-columns: 320px 1fr;
    }
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .preview-panel {
        min-height: 600px;
    }
}

@media (max-width: 900px) {
    .overlay-panel {
        grid-template-columns: 1fr;
        height: 90vh;
    }

    .overlay-left {
        display: none;
    }

    .score-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-container {
        padding: 12px;
        gap: 16px;
    }
    
    .sidebar {
        border-radius: 12px;
    }
    
    .preview-panel {
        border-radius: 12px;
    }
    
    .preview-header {
        padding: 20px;
    }
    
    .preview-content {
        padding: 20px;
    }
    
    .overlay-panel {
        width: 95%;
        height: 92vh;
        border-radius: 16px;
    }

    .overlay-right {
        padding: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-entry {
        animation: none;
        opacity: 1;
    }
    
    .status-dot.idle,
    .preview-badge-dot,
    .status-badge::before {
        animation: none;
        opacity: 1;
    }
    
    .demo-progress-ring {
        animation: none;
    }
    
    .demo-category-fill::after {
        animation: none;
    }
}
/* ==================================================
   RESPONSIVE MEDIA QUERIES — ALL DEVICES
   ================================================== */

/* ---------- LARGE DESKTOPS (1600px+) ---------- */
@media (min-width: 1600px) {
  .main-container {
    max-width: 1700px;
    grid-template-columns: 460px 1fr;
  }

  .preview-content {
    padding: 40px;
  }

  .scrollable-content {
    padding: 24px 28px;
  }
}

/* ---------- DESKTOP (1400px – 1599px) ---------- */
@media (max-width: 1599px) {
  .main-container {
    grid-template-columns: 420px 1fr;
  }
}

/* ---------- SMALL DESKTOP / LAPTOP ---------- */
@media (max-width: 1280px) {
  .main-container {
    grid-template-columns: 380px 1fr;
    gap: 20px;
  }

  .preview-header h2 {
    font-size: 24px;
  }
}

/* ---------- TABLETS LANDSCAPE (1024px) ---------- */
@media (max-width: 1024px) {
  body {
    align-items: flex-start;
  }

  .main-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    max-height: none;
  }

  .preview-panel {
    min-height: 600px;
  }
}

/* ---------- TABLETS PORTRAIT ---------- */
@media (max-width: 900px) {
  .preview-header {
    padding: 20px 24px;
  }

  .preview-header h2 {
    font-size: 22px;
  }

  .demo-score-circle {
    width: 100px;
    height: 100px;
  }

  .demo-score-number {
    font-size: 26px;
  }
}

/* ---------- LARGE PHONES ---------- */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .main-container {
    padding: 12px;
    gap: 16px;
  }

  h1 {
    font-size: 16px;
  }

  label {
    font-size: 11px;
  }

  input,
  textarea {
    font-size: 12px;
    padding: 9px 11px;
  }

  button#tlr {
    font-size: 12px;
    padding: 10px 14px;
  }

  .preview-content {
    padding: 20px;
  }
}

/* ---------- PHONES ---------- */
@media (max-width: 600px) {
  .sidebar,
  .preview-panel {
    border-radius: 12px;
  }

  .scrollable-content {
    padding: 14px 16px;
  }

  .preview-header {
    padding: 16px;
  }

  .preview-header h2 {
    font-size: 20px;
  }

  .preview-header p {
    font-size: 13px;
  }

  .demo-score-card {
    padding: 24px;
  }

  .demo-categories {
    gap: 16px;
  }
}

/* ---------- SMALL PHONES ---------- */
@media (max-width: 480px) {
  .main-container {
    padding: 10px;
  }

  .preview-content {
    padding: 16px;
  }

  .demo-feature {
    padding: 12px;
  }

  .demo-feature-text h4 {
    font-size: 12px;
  }

  .demo-feature-text p {
    font-size: 10px;
  }
}

/* ---------- VERY SMALL / COMPACT ---------- */
@media (max-width: 360px) {
  .preview-header h2 {
    font-size: 18px;
  }

  .demo-score-number {
    font-size: 22px;
  }
}

/* ---------- TOUCH DEVICES ---------- */
@media (hover: none) {
  button,
  input,
  textarea {
    min-height: 44px; /* touch-friendly */
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* ==========================================
   HEADER HOME BUTTON (CLEAN + RESPONSIVE)
   ========================================== */

.header-section {
  position: relative;
}

/* Top row inside header */
.header-top {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* Home button */
.home-btn {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;

  color: #ffffff;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    hsl(var(--brand-purple) / 0.9),
    hsl(var(--brand-pink) / 0.9)
  );

  border-radius: 999px;
  box-shadow:
    5px 4px 14px hsl(var(--brand-purple) / 0.35);

  transition: all 0.2s ease;
}

/* Hover */
.home-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 24px hsl(var(--brand-pink) / 0.45);
}

/* ---------- MOBILE ---------- */
@media (max-width: 600px) {
  .home-btn {
    font-size: 11px;
    padding: 5px 12px;
  }

  .header-top {
    margin-bottom: 6px;
  }
}

/* ---------- VERY SMALL SCREENS ---------- */
@media (max-width: 420px) {
  .home-btn {
    padding: 4px 10px;
    font-size: 10px;
  }
}
.demo-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;

  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.08),
    rgba(236, 72, 153, 0.05)
  );

  border: 1px solid rgba(139, 92, 246, 0.25);
  backdrop-filter: blur(6px);
}

.demo-box h4 {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 10px;
}
.demo-btn {
  background: #8b5cf6;
  color: #ffffff;

  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;

  cursor: pointer;
  margin-right: 8px;

  transition: all 0.25s ease;
}

.demo-btn:hover {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.demo-btn:active {
  transform: scale(0.97);
}
.demo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-box h4 {
  margin-bottom: 0;
  margin-right: auto;
}
.howapi {
  display: flex;
  margin-left: 270px;
  margin-bottom: 20px;
  padding-left: 20px;
  text-decoration: none; /* only once */
}

/* Large laptops */
@media (max-width: 1200px) {
  .howapi { margin-left: 180px; }
}

/* Tablets */
@media (max-width: 992px) {
  .howapi { margin-left: 700px; }
}

/* Small tablets */
@media (max-width: 768px) {
  .howapi { margin-left:400px; }
}

/* Mobile */
@media (max-width: 480px) {
  .howapi {
    margin-left: 0;
    justify-content: center;
  }
}
