/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-50: #eef4ff;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --bg: #f0f4f8;
    --card-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    background: var(--bg);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Header === */
.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.auth-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.header-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.header-logo h1 span {
    color: var(--primary);
}

.header-badge {
    font-size: 11px;
    color: var(--gray-400);
    letter-spacing: 1px;
}

/* === Main Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* === App Page Header === */
.app-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.app-page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.app-page-desc {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 400;
}

.btn-app-history {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-app-history:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}

/* === Step Label === */
.app-step-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}

.app-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.app-step-num.done {
    background: var(--success);
}

.app-step-label.result {
    margin-top: 8px;
}

/* === Input Section === */
.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.input-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.input-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.input-card-header {
    padding: 16px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.input-card-icon.jd {
    background: #eff6ff;
    color: var(--primary);
}

.input-card-icon.candidate {
    background: #f0fdf4;
    color: #16a34a;
}

.input-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

.required-badge {
    font-size: 10px;
    color: var(--danger);
    font-weight: 600;
    padding: 2px 8px;
    background: #fef2f2;
    border-radius: 10px;
}

.optional-badge {
    font-size: 10px;
    color: var(--gray-400);
    padding: 2px 8px;
    background: var(--gray-100);
    border-radius: 10px;
}

.input-card-body {
    padding: 20px 24px;
}

textarea {
    width: 100%;
    min-height: 280px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    transition: all 0.2s;
    color: var(--gray-800);
    background: var(--gray-50);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    background: white;
}

textarea::placeholder {
    color: var(--gray-400);
}

/* === Tabs === */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
}

.tab {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.tab:first-child { border-radius: 6px 0 0 6px; }
.tab:last-child { border-radius: 0 6px 6px 0; }
.tab:not(:last-child) { border-right: none; }

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* === File Upload === */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.08);
}

.file-upload-area.has-file {
    border-color: var(--success);
    background: #f0fdf4;
    border-style: solid;
}

.file-upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--gray-400);
}

.file-upload-text {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 8px;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 11px;
    color: var(--gray-400);
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    margin-top: 8px;
}

input[type="file"] { display: none; }

/* === Analyze Button === */
.analyze-section {
    text-align: center;
    margin-bottom: 28px;
}

.btn-analyze {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 64px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25), 0 1px 3px rgba(37,99,235,0.15);
    font-family: inherit;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-analyze:hover:not(:disabled) {
    box-shadow: 0 8px 24px rgba(37,99,235,0.35), 0 2px 6px rgba(37,99,235,0.2);
    transform: translateY(-3px);
    background: var(--primary-dark);
}

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

.analyze-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ============================== */
/* === LOADING (Trendy Style) === */
/* ============================== */
.loading-overlay {
    display: none;
    padding: 20px;
    margin-bottom: 24px;
    animation: fadeInUp 0.4s ease;
}

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

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

.loading-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(37, 99, 235, 0.08),
        0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 40px 36px;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loading-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6, #ec4899, #2563eb);
    background-size: 300% 100%;
    animation: gradientSlide 2s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* Loading Header */
.loading-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.loading-pulse-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
}

.loading-pulse-ring::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Timer */
.loading-timer {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

/* Progress Bar */
.loading-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    border-radius: 100px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.loading-progress-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s ease-in-out infinite;
}

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

.loading-percent {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 6px;
    margin-bottom: 24px;
}

/* Loading Steps */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

.loading-step-item.active {
    opacity: 1;
    background: linear-gradient(135deg, #eff6ff, #f0f0ff);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    transform: scale(1.02);
}

.loading-step-item.done {
    opacity: 1;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: var(--success);
}

/* Step Indicator */
.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.step-indicator .step-icon-spinner,
.step-indicator .step-icon-check {
    display: none;
    width: 18px;
    height: 18px;
    position: absolute;
}

.step-indicator .step-number {
    display: block;
}

/* Waiting State */
.step-indicator.waiting {
    background: var(--gray-200);
    color: var(--gray-500);
}

/* Running State */
.step-indicator.running {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: white;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

.step-indicator.running .step-number { display: none; }
.step-indicator.running .step-icon-spinner {
    display: block;
    animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

/* Completed State */
.step-indicator.completed {
    background: var(--success);
    color: white;
    transform: scale(1);
    animation: popIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator.completed .step-number { display: none; }
.step-indicator.completed .step-icon-spinner { display: none; }
.step-indicator.completed .step-icon-check { display: block; }

@keyframes popIn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.step-info { flex: 1; }

.step-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    transition: color 0.3s;
}

.step-desc {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 2px;
}

.loading-step-item.active .step-title { color: var(--primary-dark); }
.loading-step-item.done .step-title { color: var(--success); }

/* Loading Tip */
.loading-tip {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 20px;
    animation: fadeInTip 0.5s ease;
}

@keyframes fadeInTip {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Results === */
.results-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.results-section.active { display: block; }

/* Score Cards */
.score-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.score-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.score-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.score-card.sc-overall::before { background: linear-gradient(90deg, #2563eb, #7c3aed); }
.score-card.sc-must::before { background: linear-gradient(90deg, #22c55e, #10b981); }
.score-card.sc-nice::before { background: linear-gradient(90deg, #f59e0b, #f97316); }

.score-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.score-card canvas {
    max-width: 140px;
    max-height: 140px;
    margin: 0 auto 14px;
}

.score-card .score-label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-card .score-value {
    font-size: 36px;
    font-weight: 800;
    margin-top: 4px;
    letter-spacing: -1px;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.recommendation-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.btn-pdf {
    background: var(--gray-800);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-pdf:hover:not(:disabled) {
    background: var(--gray-900);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* Result Tabs */
.result-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: var(--card-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow);
    overflow-x: auto;
    border: 1px solid var(--gray-100);
    border-bottom: none;
    scrollbar-width: none;
}

.result-tabs::-webkit-scrollbar { display: none; }

.result-tab {
    padding: 16px 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.result-tab:hover { color: var(--gray-700); background: var(--gray-50); }

.result-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
    background: var(--primary-50);
}

.result-content {
    background: var(--card-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 32px;
    min-height: 200px;
    border: 1px solid var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

.result-pane { display: none; }
.result-pane.active { display: block; }

/* === Profile Summary === */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-item {
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.profile-item:hover {
    background: white;
    box-shadow: var(--shadow);
}

.profile-item-label {
    font-size: 10px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 600;
}

.profile-item-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
}

/* === Match Dashboard === */
.match-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.match-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 700;
}

.match-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.match-table tr:last-child td { border-bottom: none; }

.match-table tr:hover { background: var(--gray-50); }

.confidence-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.confidence-confirmed { background: var(--success); }
.confidence-partial { background: var(--info); }
.confidence-unverified { background: var(--warning); }
.confidence-not_met { background: var(--danger); }

.match-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.match-chart-container {
    margin-top: 20px;
    max-height: 300px;
}

/* === Strengths & Concerns === */
.sc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.sc-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-section-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.strength-dot { background: var(--success); }
.concern-dot { background: var(--danger); }

.sc-card {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.sc-card:hover {
    box-shadow: var(--shadow);
}

.strength-card {
    border-left: 3px solid var(--success);
    background: #f0fdf4;
}

.concern-card {
    border-left: 3px solid;
}

.sc-card-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sc-card-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.6;
}

.sc-card-evidence {
    font-size: 11px;
    color: var(--gray-400);
    font-style: italic;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid var(--gray-200);
}

.sc-card-question {
    font-size: 11px;
    color: var(--primary);
    margin-top: 10px;
    padding: 10px 12px;
    background: var(--primary-light);
    border-radius: 8px;
    line-height: 1.5;
}

.severity-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    color: white;
    margin-right: 6px;
    letter-spacing: 0.3px;
}

.severity-high { background: var(--danger); }
.severity-medium { background: var(--warning); }
.severity-low { background: var(--info); }

/* === Interview Questions (Enhanced) === */
.iq-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    margin-top: 16px;
    margin-bottom: 10px;
}

.iq-item {
    padding: 0;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.iq-item:hover { box-shadow: var(--shadow-md); }

.iq-item-header {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    user-select: none;
}

.iq-item-header:hover { background: var(--gray-50); }

.iq-toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 12px;
    transition: transform 0.2s;
    margin-top: 2px;
}

.iq-item.open .iq-toggle { transform: rotate(90deg); }

.iq-item-main { flex: 1; }

.iq-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.iq-type-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    color: white;
}

.iq-type-behavioral { background: #3b82f6; }
.iq-type-situational { background: #8b5cf6; }
.iq-type-technical { background: #22c55e; }
.iq-type-motivational { background: #f59e0b; }

.iq-diff-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
}

.iq-diff-basic { background: var(--gray-200); color: var(--gray-600); }
.iq-diff-advanced { background: #fee2e2; color: #dc2626; }

.iq-question {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
}

.iq-intent {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Expandable Detail */
.iq-detail {
    display: none;
    padding: 0 16px 14px 46px;
    border-top: 1px solid var(--gray-100);
}

.iq-item.open .iq-detail { display: block; }

.iq-eval {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.iq-eval-col { padding: 10px; border-radius: 6px; }

.iq-eval-good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.iq-eval-bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.iq-eval-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.iq-eval-good .iq-eval-title { color: #16a34a; }
.iq-eval-bad .iq-eval-title { color: #dc2626; }

.iq-eval-list {
    list-style: none;
    font-size: 12px;
    color: var(--gray-600);
}

.iq-eval-list li {
    padding: 2px 0;
    padding-left: 14px;
    position: relative;
}

.iq-eval-good .iq-eval-list li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.iq-eval-bad .iq-eval-list li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

.iq-followups {
    margin-bottom: 10px;
}

.iq-followups-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.iq-followup-item {
    font-size: 12px;
    color: var(--gray-600);
    padding: 3px 0 3px 16px;
    position: relative;
}

.iq-followup-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.iq-star {
    padding: 10px 14px;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    margin-top: 6px;
}

.iq-star-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.iq-star-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.iq-star-item {
    font-size: 11px;
    color: var(--gray-600);
    line-height: 1.5;
}

.iq-star-label {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 10px;
}

/* === Timeline === */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--gray-200));
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.timeline-item:hover {
    background: white;
    box-shadow: var(--shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-company {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
}

.timeline-role {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 2px;
}

.timeline-period {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
    font-weight: 500;
}

.timeline-details {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.7;
}

.timeline-details li {
    margin-bottom: 3px;
    margin-left: 16px;
}

/* === Overall Assessment === */
.assessment-box {
    padding: 24px;
    background: linear-gradient(135deg, #f0f5ff, #f8fafc);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-top: 20px;
    border: 1px solid var(--gray-100);
    border-left: 4px solid var(--primary);
}

/* === Error === */
.error-message {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message.active { display: block; }

/* === Footer === */
.footer {
    text-align: center;
    padding: 28px 24px;
    color: var(--gray-400);
    font-size: 12px;
    border-top: 1px solid var(--gray-100);
    margin-top: 12px;
}

/* ============================== */
/* === HEADER AUTH & USER INFO === */
/* ============================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-header-login {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-header-login:hover { color: var(--primary); background: var(--primary-light); }

.btn-header-signup {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-header-signup:hover { background: var(--primary-dark); }

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quota-badge {
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    color: var(--gray-500);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s ease;
}

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

.user-dropdown.active { display: block; }

.user-dropdown a {
    display: block;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 500;
}

.user-dropdown a:hover { background: var(--gray-50); color: var(--primary); }

/* ============================== */
/* === AUTH PAGES (Login/Reg) === */
/* ============================== */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #f0f5ff 0%, #f8fafc 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 44px 36px;
    border: 1px solid rgba(0,0,0,0.04);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.auth-logo h1 span { color: var(--primary); }

.auth-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 28px;
}

.auth-error {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.2s;
    color: var(--gray-800);
    background: var(--gray-50);
}

.auth-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
    background: white;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(37,99,235,0.2);
}

.btn-auth:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover { text-decoration: underline; }

/* Google OAuth Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-google:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    box-shadow: var(--shadow);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--gray-400);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ============================== */
/* === LANDING PAGE === */
/* ============================== */
.landing-body { background: #fafbfd; }

.landing-hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f5ff 0%, #fafbfd 100%);
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 50%, rgba(37,99,235,0.06), transparent),
        radial-gradient(ellipse 500px 300px at 80% 30%, rgba(99,102,241,0.05), transparent);
    pointer-events: none;
}

.landing-hero-inner {
    max-width: 740px;
    margin: 0 auto;
    position: relative;
}

.landing-badge {
    display: inline-block;
    padding: 7px 18px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.landing-title {
    font-size: 46px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.landing-title span {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 36px;
}

.landing-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 16px;
}

.btn-cta-primary {
    padding: 15px 36px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25), 0 1px 3px rgba(37,99,235,0.15);
}

.btn-cta-primary:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.35), 0 2px 6px rgba(37,99,235,0.2);
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.btn-cta-secondary {
    padding: 15px 36px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    background: white;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.btn-cta-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
    transform: translateY(-1px);
}

.btn-cta-brochure {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    background: transparent;
    text-decoration: none;
    border-radius: 8px;
    border: 1px dashed var(--gray-300);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-cta-brochure:hover {
    border-color: var(--primary);
    color: var(--primary);
    border-style: solid;
    background: var(--primary-light);
}

.landing-sub {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Trust Signal */
.landing-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.landing-trust.stacked {
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.trust-item {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trust-pill {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-300);
}

/* Hero Product Mockup */
.hero-mockup {
    max-width: 820px;
    margin: 56px auto 0;
    padding: 0 24px;
    position: relative;
}

.mockup-browser {
    background: white;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.12),
        0 8px 20px rgba(0,0,0,0.06),
        0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
}

.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:last-child { background: #28c840; }

.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--gray-400);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 4px 12px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.mockup-content {
    padding: 24px 28px 28px;
}

/* Mockup Tabs */
.mockup-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    scrollbar-width: none;
}

.mockup-tabs::-webkit-scrollbar { display: none; }

.mockup-tab {
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.mockup-tab:hover { color: var(--gray-600); }
.mockup-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Mockup Carousel */
.mockup-carousel {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

/* Mockup Navigation Arrows */
.mockup-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    z-index: 10;
    transition: all 0.2s;
}

.mockup-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.mockup-arrow-left { left: -18px; }
.mockup-arrow-right { right: -18px; }

.mockup-slide {
    display: none;
    padding: 20px 24px;
    animation: mockupFadeIn 0.35s ease;
}

.mockup-slide.active { display: block; }

@keyframes mockupFadeIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mockup Indicators */
.mockup-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 16px;
}

.mockup-indicators span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all 0.3s;
}

.mockup-indicators span.active {
    width: 20px;
    border-radius: 100px;
    background: var(--primary);
}

/* Mockup Slide Title */
.mockup-slide-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mockup Profile Grid */
.mockup-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.mockup-profile-item {
    background: var(--gray-50);
    border-radius: 6px;
    padding: 10px 12px;
}

.mp-label { font-size: 9px; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.mp-value { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-top: 2px; }

/* Mockup SC Grid */
.mockup-sc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mockup-sc-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-sc-title.strength { color: #16a34a; }
.mockup-sc-title.strength::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.mockup-sc-title.concern { color: #dc2626; }
.mockup-sc-title.concern::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; }

.mockup-sc-card {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid var(--gray-100);
}

.mockup-sc-card.strength { border-left: 3px solid #22c55e; background: #f0fdf4; }
.mockup-sc-card.concern { border-left: 3px solid #ef4444; background: #fef2f2; }

.mockup-sc-card-title { font-size: 11px; font-weight: 600; color: var(--gray-800); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.mockup-sc-card-desc { font-size: 10px; color: var(--gray-500); line-height: 1.5; }

.mockup-sev {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    color: white;
}

.mockup-sev.high { background: #ef4444; }
.mockup-sev.medium { background: #f59e0b; }

/* Mockup Interview Questions */
.mockup-iq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-iq {
    padding: 10px 12px;
    border: 1px solid var(--gray-100);
    border-radius: 6px;
    background: var(--gray-50);
}

.mockup-iq-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.mockup-iq-type {
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
}

.mockup-iq-type.beh { background: #3b82f6; }
.mockup-iq-type.sit { background: #8b5cf6; }
.mockup-iq-type.mot { background: #f59e0b; }

.mockup-iq-diff {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

.mockup-iq-diff.bas { background: var(--gray-200); color: var(--gray-600); }
.mockup-iq-diff.adv { background: #fee2e2; color: #dc2626; }

.mockup-iq-q {
    font-size: 11px;
    color: var(--gray-700);
    line-height: 1.5;
    font-style: italic;
}

.mockup-iq-footer {
    margin-top: 10px;
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

/* Mockup Timeline */
.mockup-timeline {
    position: relative;
    padding-left: 20px;
}

.mockup-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--gray-200);
}

.mockup-tl-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
}

.mockup-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
    margin-left: -20px;
}

.mockup-tl-dot.current { background: #22c55e; box-shadow: 0 0 0 2px #22c55e; }

.mockup-tl-company { font-size: 12px; font-weight: 700; color: var(--gray-900); }
.mockup-tl-role { font-size: 11px; color: var(--gray-500); }
.mockup-tl-period { font-size: 10px; color: var(--gray-400); margin-top: 2px; }

/* Mockup Recommend Comment */
.mockup-comment-box {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid var(--gray-100);
}

.mockup-comment-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.mockup-comment-text {
    font-size: 11px;
    color: var(--gray-600);
    line-height: 1.7;
}

.mockup-comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.mockup-comment-btn {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
}

.mockup-comment-toggle {
    font-size: 10px;
    color: var(--gray-400);
    margin-left: auto;
}

.mockup-pro-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-radius: 4px;
}

/* Mockup Score Cards */
.mockup-scores {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.mockup-score-card {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-100);
}

.mockup-donut {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
}

.mockup-donut svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mockup-donut span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--gray-900);
}

.mockup-score-label {
    font-size: 10px;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Mockup Recommend */
.mockup-recommend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mockup-badge-rec {
    display: inline-block;
    padding: 5px 16px;
    background: #22c55e;
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
}

.mockup-badge-pdf {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gray-800);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
}

/* Mockup Match Bars */
.mockup-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-bar-label {
    font-size: 11px;
    color: var(--gray-600);
    width: 120px;
    flex-shrink: 0;
    font-weight: 500;
}

.mockup-bar-track {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
}

.mockup-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

.mockup-bar-fill.confirmed { background: #22c55e; }
.mockup-bar-fill.partial { background: #3b82f6; }
.mockup-bar-fill.unverified { background: #f59e0b; }

.mockup-conf {
    font-size: 9px;
    font-weight: 700;
    width: 64px;
    text-align: right;
    flex-shrink: 0;
}

.mockup-conf.confirmed { color: #22c55e; }
.mockup-conf.partial { color: #3b82f6; }
.mockup-conf.unverified { color: #f59e0b; }

/* Stats Bar */
.landing-stats {
    background: white;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.landing-stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    gap: 48px;
}

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

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
}

/* Section Label */
.section-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* How It Works */
.landing-how {
    padding: 80px 24px;
    background: #fafbfd;
}

.landing-how-inner {
    max-width: 900px;
    margin: 0 auto;
}

.how-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.how-step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    transition: all 0.25s;
}

.how-step:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.how-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.2;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.how-step h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.how-step p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.7;
}

.how-arrow {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--gray-300);
    padding-top: 48px;
}

/* Features */
.landing-features {
    padding: 80px 24px;
    background: white;
}

.landing-features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.landing-section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 48px;
    letter-spacing: -0.3px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.feature-card:hover {
    background: white;
    border-color: var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Pricing */
.landing-pricing {
    padding: 80px 24px;
    background: var(--gray-50);
}

.landing-pricing-inner {
    max-width: 920px;
    margin: 0 auto;
}

.landing-pricing-desc {
    text-align: center;
    font-size: 15px;
    color: var(--gray-500);
    margin-top: -32px;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.pricing-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow-xl);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 1.5px;
}

.pricing-plan {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-400);
}

.pricing-original {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 4px;
    letter-spacing: 0;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
}

.pricing-features li:last-child { border-bottom: none; }

.btn-pricing {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s;
    width: 100%;
}

.btn-pricing:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.btn-pricing.featured {
    color: white;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}

.btn-pricing.featured:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid var(--gray-200);
    background: white;
}

.landing-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

.footer-brand-by {
    font-size: 11px;
    color: var(--gray-400);
}

.footer-links a {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
    font-weight: 500;
}

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

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.footer-contact-btn:hover {
    background: var(--primary-dark);
    color: white !important;
}

.footer-contact-link {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: opacity 0.2s;
}
.footer-contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-legal {
    font-size: 11px;
    color: var(--gray-400);
}

/* ============================== */
/* === DASHBOARD === */
/* ============================== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

.btn-new-analysis {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 14px rgba(37,99,235,0.2);
}

.btn-new-analysis:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}

.btn-back {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
}

.btn-back:hover { color: var(--primary); }

.dashboard-search {
    margin-bottom: 20px;
}

.dashboard-search input {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-family: inherit;
    color: var(--gray-800);
    background: white;
    transition: all 0.2s;
}

.dashboard-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.analysis-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.analysis-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid var(--gray-100);
}

.analysis-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.analysis-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.analysis-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.analysis-card-position {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

.analysis-card-score {
    font-size: 24px;
    font-weight: 700;
}

.analysis-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-card-date {
    font-size: 12px;
    color: var(--gray-400);
}

.analysis-card-actions {
    display: flex;
    gap: 8px;
}

.btn-card-action {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s;
    font-family: inherit;
}

.btn-card-action:hover { background: var(--gray-200); transform: translateY(-1px); }
.btn-card-action.danger:hover { background: #fef2f2; color: var(--danger); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.page-btn {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s;
    font-family: inherit;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 2px 8px rgba(37,99,235,0.2); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 72px 20px;
    color: var(--gray-400);
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.loading-text {
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
    font-size: 14px;
}

/* ============================== */
/* === DEMO PAGE === */
/* ============================== */
.demo-banner {
    background: linear-gradient(135deg, #eff6ff, #f0f0ff);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
}

.demo-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
}

.demo-banner-text {
    font-size: 13px;
    color: var(--gray-600);
    flex: 1;
}

.demo-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f0ff 50%, #faf5ff 100%);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    margin-top: 28px;
    border: 1px solid var(--gray-100);
}

.demo-cta h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.demo-cta p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.6;
}

.demo-cta .btn-cta-primary {
    display: inline-block;
}

.demo-pdf-notice {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-pdf-notice a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.demo-pdf-notice a:hover {
    text-decoration: underline;
}

/* Landing Demo CTA */
.landing-demo-cta {
    margin-top: 40px;
    padding: 32px;
    background: white;
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    text-align: center;
}

.landing-demo-cta p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
    font-weight: 500;
}

/* ============================== */
/* === RECOMMEND COMMENT === */
/* ============================== */
.pro-tab-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.recommend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.recommend-toggle {
    display: flex;
    gap: 0;
}

.recommend-toggle-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.recommend-toggle-btn:first-child { border-radius: 8px 0 0 8px; }
.recommend-toggle-btn:last-child { border-radius: 0 8px 8px 0; border-left: none; }

.recommend-toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.recommend-actions {
    display: flex;
    gap: 8px;
}

.btn-recommend-copy {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-recommend-copy:hover { background: #dbeafe; }
.btn-recommend-copy.copied { background: var(--success); color: white; }

.btn-recommend-regen {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-recommend-regen:hover { background: var(--gray-200); }

.recommend-textarea {
    width: 100%;
    min-height: 220px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.8;
    resize: vertical;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: all 0.2s;
}

.recommend-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    background: white;
}

.recommend-meta {
    margin-top: 12px;
    font-size: 11px;
    color: var(--gray-400);
    text-align: right;
}

.recommend-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-500);
}

.recommend-empty p {
    margin-bottom: 16px;
    font-size: 14px;
}

.btn-recommend-generate {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-recommend-generate:hover {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.recommend-upgrade {
    text-align: center;
    padding: 48px 20px;
}

.recommend-upgrade-icon {
    display: inline-block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.recommend-upgrade h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.recommend-upgrade p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-recommend-upgrade {
    display: inline-block;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-recommend-upgrade:hover {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.recommend-loading {
    text-align: center;
    padding: 60px 20px;
}

.recommend-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spinIcon 0.8s linear infinite;
    margin: 0 auto 16px;
}

.recommend-loading p {
    font-size: 14px;
    color: var(--gray-500);
}

/* ============================== */
/* === LEGAL PAGES (Privacy, Terms) === */
/* ============================== */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.legal-page {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 48px 40px;
    border: 1px solid var(--gray-100);
}

.legal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.legal-date {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 24px;
}

.legal-intro {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section div,
.legal-section p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
}

.legal-section ul,
.legal-section ol {
    padding-left: 20px;
    margin: 8px 0;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.legal-section th,
.legal-section td {
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.legal-section th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.legal-section td {
    color: var(--gray-600);
}

.legal-section strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* Footer Legal Links */
.footer-legal-links {
    margin-top: 6px;
}

.footer-legal-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s;
}

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

/* Agree Terms Checkbox */
.agree-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    padding: 12px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.agree-terms input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.agree-terms label {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    cursor: pointer;
}

.agree-terms label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.agree-terms label a:hover {
    text-decoration: underline;
}

/* AI Data Notice */
.ai-data-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: #92400e;
    line-height: 1.5;
}

.ai-data-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================== */
/* === RESPONSIVE — Mobile First === */
/* ============================== */

/* --- Tablet landscape & small desktop (≤1024px) --- */
@media (max-width: 1024px) {
    .landing-hero { padding: 60px 24px 48px; }
    .landing-title { font-size: 38px; }
    .landing-desc { font-size: 16px; }
    .hero-mockup { max-width: 700px; }
    .landing-how { padding: 60px 24px; }
    .landing-features { padding: 60px 24px; }
    .landing-pricing { padding: 60px 24px; }
    .landing-section-title { font-size: 26px; margin-bottom: 36px; }
    .pricing-card.featured { transform: scale(1.02); }
    .pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
}

/* --- Tablet portrait (≤768px) --- */
@media (max-width: 768px) {
    /* Header */
    .header-inner { padding: 0 16px; }
    .header-logo h1 { font-size: 17px; }
    .header-badge { display: none; }
    .header-actions { gap: 8px; }
    .btn-header-login { padding: 6px 10px; font-size: 12px; }
    .btn-header-signup { padding: 6px 14px; font-size: 12px; }
    .btn-whats-new { padding: 4px 8px; font-size: 11px; }
    .lang-toggle { width: 32px; height: 32px; font-size: 11px; }
    .user-name { display: none; }
    .quota-badge { font-size: 9px; padding: 4px 8px; }

    /* Container */
    .container { padding: 20px 16px; }

    /* App Page */
    .app-page-header { flex-direction: column; gap: 12px; }
    .app-page-title { font-size: 22px; }
    .app-page-desc { font-size: 13px; }

    /* Input Section */
    .input-section { grid-template-columns: 1fr; gap: 16px; }
    .input-card-body { padding: 16px; }
    .input-card-header { padding: 12px 16px; }
    textarea { min-height: 200px; padding: 12px 14px; }
    .file-upload-area { padding: 28px 20px; min-height: 200px; }
    .file-upload-icon { font-size: 32px; }
    .tabs .tab { padding: 7px 12px; font-size: 11px; }

    /* Analyze Button */
    .btn-analyze { padding: 16px 40px; font-size: 15px; }
    .analyze-hint { font-size: 11px; }

    /* Loading */
    .loading-card { padding: 28px 20px; max-width: 100%; }
    .loading-timer { font-size: 24px; }
    .loading-header { font-size: 16px; }

    /* Score Cards */
    .score-cards { grid-template-columns: 1fr; gap: 12px; }
    .score-card { padding: 20px; }
    .score-card canvas { max-width: 100px; max-height: 100px; }
    .score-card .score-value { font-size: 30px; }

    /* Action Bar */
    .action-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .recommendation-badge { text-align: center; }
    .btn-pdf { width: 100%; text-align: center; }

    /* Result Tabs */
    .result-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .result-tab { padding: 12px 16px; font-size: 12px; }
    .result-content { padding: 20px 16px; }

    /* Profile */
    .profile-grid { grid-template-columns: 1fr; }
    .profile-item { padding: 12px; }

    /* Match Table */
    .match-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
    .match-table th { padding: 10px 12px; font-size: 9px; }
    .match-table td { padding: 10px 12px; font-size: 12px; }

    /* Strengths & Concerns */
    .sc-grid { grid-template-columns: 1fr; gap: 20px; }
    .sc-card { padding: 14px; }

    /* Interview Questions */
    .iq-item-header { padding: 12px 14px; }
    .iq-detail { padding: 0 14px 12px 36px; }
    .iq-eval { grid-template-columns: 1fr; }
    .iq-star-grid { grid-template-columns: 1fr; }

    /* Timeline */
    .timeline { padding-left: 22px; }
    .timeline-item { padding: 14px 16px; }
    .timeline-item::before { left: -20px; width: 10px; height: 10px; }

    /* Landing — Hero */
    .landing-hero { padding: 48px 20px 36px; }
    .landing-title { font-size: 30px; }
    .landing-desc { font-size: 15px; margin-bottom: 28px; }
    .landing-badge { font-size: 11px; padding: 6px 14px; margin-bottom: 20px; }
    .landing-cta { flex-direction: column; align-items: center; }
    .btn-cta-primary, .btn-cta-secondary { width: 100%; text-align: center; padding: 14px 24px; }
    .btn-cta-brochure { width: 100%; justify-content: center; }
    .landing-sub { font-size: 12px; }
    .landing-trust { gap: 8px; }
    .trust-pill { font-size: 12px; padding: 5px 12px; }

    /* Landing — Mockup */
    .hero-mockup { margin-top: 32px; padding: 0 8px; }
    .mockup-content { padding: 16px 16px 20px; }
    .mockup-tab { padding: 8px 10px; font-size: 9px; }
    .mockup-slide { padding: 16px 12px; }
    .mockup-scores { gap: 8px; }
    .mockup-score-card { padding: 12px 6px; }
    .mockup-donut { width: 44px; height: 44px; }
    .mockup-donut span { font-size: 12px; }
    .mockup-bar-label { width: 70px; font-size: 10px; }
    .mockup-sc-grid { grid-template-columns: 1fr; }
    .mockup-profile-grid { grid-template-columns: 1fr; }
    .mockup-arrow { width: 28px; height: 28px; }
    .mockup-arrow-left { left: 2px; }
    .mockup-arrow-right { right: 2px; }
    .mockup-carousel { min-height: 180px; }

    /* Landing — Stats */
    .landing-stats-inner { flex-wrap: wrap; gap: 20px; padding: 24px 16px; }
    .stat-divider { display: none; }
    .stat-number { font-size: 20px; }
    .stat-label { font-size: 11px; }

    /* Landing — How / Features / Pricing */
    .how-grid { flex-direction: column; align-items: center; gap: 0; }
    .how-step { max-width: 100%; }
    .how-arrow { transform: rotate(90deg); padding: 8px 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px 20px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 28px 24px; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
    .landing-pricing-desc { font-size: 14px; margin-top: -24px; margin-bottom: 32px; }

    /* Landing — Footer */
    .landing-footer-inner { flex-direction: column; text-align: center; gap: 12px; }
    .footer-links { display: flex; flex-direction: column; gap: 8px; }

    /* Auth Pages */
    .auth-container { max-width: 100%; padding: 16px; }
    .auth-card { padding: 32px 24px; }
    .auth-title { font-size: 20px; }
    .auth-subtitle { font-size: 12px; }

    /* Dashboard */
    .dashboard-header { flex-direction: column; gap: 12px; align-items: stretch; }
    .dashboard-title { font-size: 20px; }
    .btn-new-analysis { text-align: center; padding: 10px 20px; font-size: 13px; }
    .analysis-card { padding: 16px; }
    .analysis-card-name { font-size: 14px; }
    .analysis-card-score { font-size: 20px; }
    .analysis-card-footer { flex-direction: column; gap: 8px; align-items: flex-start; }

    /* Demo */
    .demo-banner { flex-direction: column; text-align: center; }
    .demo-cta { padding: 32px 20px; }
    .demo-cta h3 { font-size: 20px; }

    /* Recommend Comment */
    .recommend-header { flex-direction: column; align-items: stretch; }
    .recommend-toggle { justify-content: center; }
    .recommend-actions { justify-content: center; }

    /* Legal Pages */
    .legal-page { padding: 28px 20px; }
    .legal-title { font-size: 22px; }
    .legal-container { padding: 24px 16px 40px; }
    .legal-section table { font-size: 12px; }
    .legal-section th, .legal-section td { padding: 8px; }

    /* Patch Notes */
    .pn-modal { width: 96%; max-height: 85vh; }
    .pn-header { padding: 20px 20px 14px; }
    .pn-body { padding: 16px 20px; }
    .pn-footer { padding: 14px 20px 16px; }
    .pn-title { font-size: 18px; }

    /* Contact Modal */
    .contact-modal { padding: 24px 20px; }
    .contact-links { flex-direction: column; }

    /* Footer (app pages) */
    .footer { padding: 20px 16px; font-size: 11px; }
}

/* --- Mobile landscape / large phone (≤640px) --- */
@media (max-width: 640px) {
    /* Landing Hero */
    .landing-title { font-size: 26px; line-height: 1.3; }
    .landing-desc { font-size: 14px; line-height: 1.7; }
    .landing-hero-inner { max-width: 100%; }

    /* Mockup scores */
    .mockup-score-label { font-size: 8px; }
    .mockup-slide-title { font-size: 11px; }

    /* Landing sections padding */
    .landing-how { padding: 40px 16px; }
    .landing-features { padding: 40px 16px; }
    .landing-pricing { padding: 40px 16px; }
    .landing-section-title { font-size: 22px; margin-bottom: 28px; }

    /* Stats bar */
    .landing-stats-inner { gap: 16px; }
    .stat-item { min-width: 80px; }

    /* How steps */
    .how-step { padding: 24px 20px; }
    .how-step h4 { font-size: 15px; }
    .how-step p { font-size: 12px; }
    .how-number { font-size: 28px; }

    /* Pricing */
    .pricing-price { font-size: 30px; }
    .pricing-features li { font-size: 13px; padding: 8px 0; }

    /* Result content */
    .result-content { padding: 16px 12px; }
    .match-section-title { font-size: 14px; }

    /* Score cards */
    .score-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .score-card { padding: 14px 8px; }
    .score-card canvas { max-width: 70px; max-height: 70px; margin-bottom: 8px; }
    .score-card .score-label { font-size: 9px; }
    .score-card .score-value { font-size: 24px; }

    /* Dashboard cards */
    .analysis-card-main { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* IQ items */
    .iq-question { font-size: 12px; }
    .iq-eval-col { padding: 8px; }
}

/* --- Small phone (≤480px) --- */
@media (max-width: 480px) {
    /* Header */
    .header { padding: 10px 0; }
    .header-inner { padding: 0 12px; }
    .header-logo .logo-icon { width: 30px; height: 30px; }
    .header-logo h1 { font-size: 15px; }
    .header-actions { gap: 6px; }
    .btn-header-login { padding: 5px 8px; font-size: 11px; }
    .btn-header-signup { padding: 5px 10px; font-size: 11px; }
    .btn-whats-new { font-size: 10px; padding: 3px 6px; }
    .lang-toggle { width: 28px; height: 28px; font-size: 10px; }

    /* Container */
    .container { padding: 16px 12px; }

    /* Landing Hero */
    .landing-hero { padding: 36px 16px 28px; }
    .landing-title { font-size: 24px; margin-bottom: 16px; }
    .landing-desc { font-size: 13px; margin-bottom: 24px; }
    .landing-badge { font-size: 10px; padding: 5px 12px; margin-bottom: 16px; }
    .btn-cta-primary, .btn-cta-secondary { padding: 13px 20px; font-size: 14px; }

    /* Mockup */
    .hero-mockup { padding: 0 4px; margin-top: 24px; }
    .mockup-toolbar { padding: 8px 10px; gap: 8px; }
    .mockup-url { font-size: 9px; padding: 3px 8px; }
    .mockup-content { padding: 12px 10px 16px; }
    .mockup-carousel { min-height: 160px; }
    .mockup-slide { padding: 12px 8px; }
    .mockup-donut { width: 38px; height: 38px; }
    .mockup-donut span { font-size: 11px; }
    .mockup-score-card { padding: 10px 4px; }

    /* Stats */
    .landing-stats-inner { gap: 12px; padding: 20px 12px; }
    .stat-number { font-size: 18px; }

    /* Features */
    .feature-card { padding: 20px 16px; }
    .feature-card h4 { font-size: 15px; }
    .feature-card p { font-size: 13px; }
    .feature-icon-wrap { width: 40px; height: 40px; margin-bottom: 14px; }

    /* Pricing */
    .pricing-card { padding: 24px 20px; }
    .pricing-price { font-size: 28px; }

    /* App page */
    .app-page-title { font-size: 20px; }
    .btn-app-history { padding: 8px 14px; font-size: 12px; width: 100%; justify-content: center; }
    .input-card-body { padding: 14px 12px; }
    textarea { min-height: 160px; font-size: 12px; }
    .file-upload-area { padding: 20px 16px; min-height: 160px; }
    .file-upload-text { font-size: 13px; }

    /* Analyze button */
    .btn-analyze { padding: 14px 32px; font-size: 14px; width: 100%; }

    /* Loading */
    .loading-card { padding: 24px 16px; }
    .loading-header { font-size: 15px; gap: 8px; }
    .loading-timer { font-size: 22px; margin-bottom: 16px; }
    .loading-step-item { padding: 10px 12px; gap: 10px; }
    .step-indicator { width: 30px; height: 30px; }
    .step-title { font-size: 12px; }
    .step-desc { font-size: 10px; }

    /* Score cards - stack in column on very small */
    .score-cards { grid-template-columns: 1fr; }

    /* Result tabs */
    .result-tab { padding: 10px 12px; font-size: 11px; }

    /* Match table */
    .match-table th { padding: 8px 10px; }
    .match-table td { padding: 8px 10px; font-size: 11px; }

    /* SC cards */
    .sc-card { padding: 12px; }
    .sc-card-title { font-size: 12px; }
    .sc-card-desc { font-size: 11px; }
    .sc-card-question { font-size: 10px; padding: 8px 10px; }

    /* IQ */
    .iq-item-header { padding: 10px 12px; gap: 8px; }
    .iq-detail { padding: 0 12px 10px 30px; }
    .iq-question { font-size: 12px; }
    .iq-star { padding: 8px 10px; }

    /* Timeline */
    .timeline { padding-left: 18px; }
    .timeline-item { padding: 12px 14px; margin-bottom: 16px; }
    .timeline-item::before { left: -16px; width: 8px; height: 8px; }
    .timeline-company { font-size: 14px; }
    .timeline-role { font-size: 12px; }
    .timeline-period { font-size: 11px; }

    /* Auth */
    .auth-card { padding: 28px 20px; }
    .auth-title { font-size: 18px; }
    .auth-field input { padding: 10px 12px; font-size: 13px; }
    .btn-auth { padding: 12px; font-size: 14px; }
    .agree-terms { padding: 10px 12px; }
    .agree-terms label { font-size: 12px; }

    /* Dashboard */
    .dashboard-title { font-size: 18px; }
    .dashboard-search input { padding: 12px 14px; font-size: 13px; }
    .analysis-card { padding: 14px; }
    .analysis-card-name { font-size: 13px; }
    .analysis-card-position { font-size: 12px; }
    .analysis-card-score { font-size: 18px; }
    .btn-card-action { padding: 5px 10px; font-size: 10px; }
    .page-btn { padding: 6px 10px; font-size: 12px; }

    /* Demo */
    .demo-banner { padding: 14px 16px; }
    .demo-banner-badge { font-size: 12px; padding: 5px 12px; }
    .demo-cta { padding: 28px 16px; }
    .demo-cta h3 { font-size: 18px; }
    .demo-cta p { font-size: 13px; }

    /* Recommend */
    .recommend-toggle-btn { padding: 7px 14px; font-size: 12px; }
    .btn-recommend-copy, .btn-recommend-regen { padding: 7px 14px; font-size: 12px; }
    .recommend-textarea { min-height: 180px; padding: 14px; font-size: 13px; }

    /* Legal */
    .legal-page { padding: 20px 16px; }
    .legal-title { font-size: 20px; }
    .legal-section h2 { font-size: 15px; }
    .legal-section div, .legal-section p { font-size: 13px; }

    /* Assessment box */
    .assessment-box { padding: 18px 16px; font-size: 13px; }

    /* Landing footer */
    .landing-footer-inner { padding: 24px 16px; }
    .footer-brand-name { font-size: 13px; }

    /* Patch notes */
    .pn-title { font-size: 16px; }
    .pn-release-title { font-size: 14px; }
    .pn-items li { font-size: 12px; }

    /* Contact modal */
    .contact-modal { padding: 20px 16px; }
    .contact-modal-title { font-size: 16px; }
    .contact-email-box .email-text { font-size: 13px; }
}

/* === Language Toggle === */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* === Contact Modal === */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
}
.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}
.contact-modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.25s;
    text-align: center;
}
.contact-overlay.active .contact-modal {
    transform: translateY(0);
}
.contact-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.contact-modal-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.contact-email-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 16px;
}
.contact-email-box .email-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    user-select: all;
}
.contact-email-box .btn-copy-email {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.contact-email-box .btn-copy-email:hover {
    background: var(--primary-dark);
}
.contact-email-box .btn-copy-email.copied {
    background: var(--success);
}
.contact-links {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.contact-links a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s;
}
.contact-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.contact-close {
    padding: 8px 24px;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}
.contact-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* ============================== */
/* === PATCH NOTES MODAL ======== */
/* ============================== */
.pn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.pn-overlay.active {
    opacity: 1;
    visibility: visible;
}
.pn-modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 92%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s;
    overflow: hidden;
}
.pn-overlay.active .pn-modal {
    transform: translateY(0) scale(1);
}
.pn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--gray-100);
}
.pn-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}
.pn-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pn-close:hover {
    background: var(--gray-200);
    color: var(--gray-600);
}
.pn-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
}
.pn-release {
    margin-bottom: 24px;
}
.pn-release:last-child {
    margin-bottom: 0;
}
.pn-release-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pn-version-badge {
    display: inline-flex;
    padding: 3px 10px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.pn-latest .pn-version-badge {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
}
.pn-date {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}
.pn-release-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 10px;
}
.pn-items {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pn-items li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}
.pn-items li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.7;
}
.pn-footer {
    padding: 16px 28px 20px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}
.pn-btn-close {
    padding: 10px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.pn-btn-close:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* What's New 링크 버튼 */
.btn-whats-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-whats-new:hover {
    background: var(--primary);
    color: white;
}
.btn-whats-new .new-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* === Onboarding Guide Modal === */
.ob-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.ob-overlay.active {
    opacity: 1;
    visibility: visible;
}
.ob-modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s;
    overflow: hidden;
}
.ob-overlay.active .ob-modal {
    transform: translateY(0) scale(1);
}
.ob-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 28px 16px;
    border-bottom: 1px solid var(--gray-100);
}
.ob-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}
.ob-subtitle {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
}
.ob-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 18px;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ob-close:hover {
    background: var(--gray-200);
    color: var(--gray-600);
}
.ob-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ob-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}
.ob-step:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.ob-step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ob-step-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.ob-step-text {
    flex: 1;
    min-width: 0;
}
.ob-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}
.ob-step-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
}
.ob-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid var(--gray-100);
    text-align: center;
}
.ob-btn-start {
    padding: 12px 48px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.ob-btn-start:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Help button (app page header) */
.btn-app-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-500);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-app-help:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Onboarding responsive */
@media (max-width: 640px) {
    .ob-modal { width: 96%; max-height: 90vh; }
    .ob-header { padding: 20px 20px 12px; }
    .ob-body { padding: 16px 20px; gap: 12px; }
    .ob-footer { padding: 14px 20px 20px; }
    .ob-step { padding: 12px; gap: 10px; }
    .ob-step-icon { width: 34px; height: 34px; border-radius: 8px; }
    .ob-step-icon svg { width: 18px; height: 18px; }
    .ob-btn-start { padding: 11px 36px; font-size: 14px; }
}
@media (max-width: 480px) {
    .ob-title { font-size: 18px; }
    .ob-step-num { width: 24px; height: 24px; font-size: 11px; }
    .ob-step-title { font-size: 13px; }
    .ob-step-desc { font-size: 11px; }
}

