@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

#lb-cv-app { max-width: 900px; margin: 0 auto; padding: 20px 16px; font-family: 'Inter', sans-serif; }

/* Progress */
.lb-progress-wrap { margin-bottom: 28px; }
.lb-progress-bar { height: 3px; background: #f0f0f0; border-radius: 99px; margin-bottom: 20px; overflow: hidden; }
.lb-progress-fill { height: 100%; background: linear-gradient(90deg, #6C63FF, #534AB7); border-radius: 99px; transition: width 0.5s; }
.lb-steps { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.lb-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #bbb; font-weight: 500; }
.lb-step-num { width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; transition: all 0.3s; }
.lb-step.lb-active { color: #534AB7; }
.lb-step.lb-active .lb-step-num { background: #534AB7; color: #fff; box-shadow: 0 4px 12px rgba(83,74,183,0.35); }
.lb-step.lb-done { color: #10b981; }
.lb-step.lb-done .lb-step-num { background: #10b981; color: #fff; }
.lb-step-line { width: 36px; height: 2px; background: #f0f0f0; margin: 0 2px; border-radius: 99px; }

/* Panel */
.lb-panel { background: #fff; border: 1px solid #f0f0f0; border-radius: 16px; padding: 28px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.lb-section-title { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 20px; }

/* Photo Upload */
.lb-photo-upload-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding: 16px; background: #fafafa; border-radius: 12px; border: 1.5px dashed #e0e0e0; }
.lb-photo-preview { width: 80px; height: 80px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; color: #aaa; overflow: hidden; flex-shrink: 0; border: 2px solid #e0e0e0; }

/* Form */
.lb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .lb-form-row { grid-template-columns: 1fr; } }
.lb-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.lb-field label { font-size: 11px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.6px; }
.lb-field input, .lb-field textarea, .lb-field select { padding: 10px 14px; border: 1.5px solid #eee; border-radius: 10px; font-size: 14px; color: #111; font-family: inherit; width: 100%; transition: all 0.2s; background: #fafafa; }
.lb-field input:focus, .lb-field textarea:focus, .lb-field select:focus { outline: none; border-color: #6C63FF; background: #fff; box-shadow: 0 0 0 4px rgba(108,99,255,0.08); }
.lb-field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

/* Exp card */
.lb-exp-card { background: #fafafa; border: 1.5px solid #f0f0f0; border-radius: 12px; padding: 16px; margin-bottom: 12px; }

/* AI */
.lb-btn-ai { margin-top: 8px; padding: 8px 16px; background: #f0efff; border: 1.5px solid #c4bfff; color: #534AB7; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.lb-btn-ai:hover { background: #e8e6ff; transform: translateY(-1px); }
.lb-btn-ai.lb-loading { opacity: 0.6; cursor: wait; transform: none; }
.lb-ai-box { margin-top: 10px; padding: 12px 16px; background: #f0efff; border: 1.5px solid #c4bfff; border-radius: 10px; font-size: 13px; color: #3C3489; line-height: 1.7; }

/* Buttons */
.lb-btn { padding: 10px 22px; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: #374151; font-family: inherit; transition: all 0.2s; }
.lb-btn:hover { background: #f9fafb; }
.lb-btn-primary { background: linear-gradient(135deg, #6C63FF, #534AB7); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(83,74,183,0.3); }
.lb-btn-primary:hover { background: linear-gradient(135deg, #7c74ff, #6C63FF); box-shadow: 0 6px 20px rgba(83,74,183,0.4); }
.lb-btn-success { background: linear-gradient(135deg, #10b981, #059669); border-color: transparent; color: #fff; width: 100%; padding: 14px; font-size: 15px; margin: 8px 0; box-shadow: 0 4px 14px rgba(16,185,129,0.3); border-radius: 12px; }
.lb-btn-success:hover { background: linear-gradient(135deg, #059669, #047857); }
.lb-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.lb-hint { font-size: 12px; color: #aaa; }

/* Template Grid */
.lb-template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 500px) { .lb-template-grid { grid-template-columns: repeat(2, 1fr); } }
.lb-template-card { border: 2px solid #f0f0f0; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.2s; }
.lb-template-card:hover { border-color: #c4bfff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.lb-template-card.lb-selected { border-color: #6C63FF; box-shadow: 0 0 0 4px rgba(108,99,255,0.12); }
.lb-tmpl-preview { padding: 10px; height: 90px; display: flex; flex-direction: column; gap: 5px; }
.lb-tmpl-header { height: 18px; border-radius: 4px; width: 65%; }
.lb-tmpl-line { height: 5px; border-radius: 3px; background: rgba(0,0,0,0.1); }
.lb-tmpl-line.lb-short { width: 50%; }
.lb-tmpl-name { font-size: 12px; text-align: center; padding: 7px; border-top: 1px solid #f0f0f0; color: #555; font-weight: 600; }

/* ===== CV PREVIEW MODERN — JASRI STYLE ===== */
.lb-cv-preview { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.15); margin-bottom: 24px; font-family: 'Inter', sans-serif; background: #fff; }

/* Template 0: Jasri — 2 kolom classic */
.lb-cv-t0 { display: grid; grid-template-columns: 1fr 1.6fr; min-height: 420px; }
.lb-cv-t0 .lb-cv-left { background: #2C3E50; color: #fff; padding: 24px 18px; }
.lb-cv-t0 .lb-cv-right { background: #fff; padding: 24px 22px; }

/* Template 1: Suluban — dark bold */
.lb-cv-t1 { display: grid; grid-template-columns: 1fr 1.8fr; min-height: 420px; }
.lb-cv-t1 .lb-cv-left { background: #1a1a2e; color: #fff; padding: 24px 18px; }
.lb-cv-t1 .lb-cv-right { background: #16213e; color: #eee; padding: 24px 22px; }

/* Template 2: Melasti — clean white */
.lb-cv-t2 { display: grid; grid-template-columns: 1fr 1.6fr; min-height: 420px; }
.lb-cv-t2 .lb-cv-left { background: #f8f9fa; color: #222; padding: 24px 18px; border-right: 2px solid #eee; }
.lb-cv-t2 .lb-cv-right { background: #fff; padding: 24px 22px; }

/* Template 3: Modern Blue */
.lb-cv-t3 { display: grid; grid-template-columns: 1fr 1.6fr; min-height: 420px; }
.lb-cv-t3 .lb-cv-left { background: #1565C0; color: #fff; padding: 24px 18px; }
.lb-cv-t3 .lb-cv-right { background: #fff; padding: 24px 22px; }

/* Template 4: Emerald */
.lb-cv-t4 { display: grid; grid-template-columns: 1fr 1.6fr; min-height: 420px; }
.lb-cv-t4 .lb-cv-left { background: #1B5E20; color: #fff; padding: 24px 18px; }
.lb-cv-t4 .lb-cv-right { background: #fff; padding: 24px 22px; }

/* Template 5: Coral */
.lb-cv-t5 { display: grid; grid-template-columns: 1fr 1.6fr; min-height: 420px; }
.lb-cv-t5 .lb-cv-left { background: #BF360C; color: #fff; padding: 24px 18px; }
.lb-cv-t5 .lb-cv-right { background: #fff; padding: 24px 22px; }

/* CV Components */
.lb-cv-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.3); margin: 0 auto 12px; display: block; }
.lb-cv-photo-placeholder { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,0.15); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: rgba(255,255,255,0.7); }
.lb-cv-name-big { font-size: 15px; font-weight: 800; text-align: center; margin-bottom: 2px; line-height: 1.2; }
.lb-cv-role-big { font-size: 10px; text-align: center; margin-bottom: 16px; opacity: 0.7; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.lb-cv-divider { height: 1px; background: rgba(255,255,255,0.15); margin: 10px 0; }
.lb-cv-divider-dark { height: 1px; background: #eee; margin: 10px 0; }
.lb-cv-sec { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin: 14px 0 6px; opacity: 0.6; }
.lb-cv-contact-row { font-size: 10px; margin-bottom: 4px; opacity: 0.85; line-height: 1.4; display: flex; gap: 5px; align-items: flex-start; word-break: break-all; }
.lb-cv-skill-pill { display: inline-block; font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin: 2px 2px 2px 0; background: rgba(255,255,255,0.15); }
.lb-cv-skill-pill-dark { display: inline-block; font-size: 9px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin: 2px 2px 2px 0; background: rgba(0,0,0,0.07); color: #333; }

/* Right side */
.lb-cv-header-right { margin-bottom: 16px; padding-bottom: 12px; }
.lb-cv-main-sec { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin: 16px 0 8px 0; padding-bottom: 4px; border-bottom: 2px solid; }
.lb-cv-about-text { font-size: 10.5px; line-height: 1.7; color: #555; }
.lb-cv-entry { margin-bottom: 12px; }
.lb-cv-entry-title { font-size: 11px; font-weight: 700; color: #222; }
.lb-cv-entry-sub { font-size: 9.5px; color: #888; font-weight: 500; margin-bottom: 3px; }
.lb-cv-entry-desc { font-size: 10px; line-height: 1.6; color: #555; }
.lb-cv-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Payment */
.lb-pay-box { text-align: center; padding: 32px 24px; background: linear-gradient(135deg, #fafafa, #f5f5ff); border: 1.5px solid #eee; border-radius: 16px; }
.lb-lock-icon { font-size: 42px; margin-bottom: 12px; }
.lb-pay-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: #111; }
.lb-pay-box p { font-size: 14px; color: #888; margin-bottom: 16px; }
.lb-price { font-size: 36px; font-weight: 800; background: linear-gradient(135deg, #6C63FF, #534AB7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; }
.lb-price-sub { font-size: 13px; color: #aaa; margin-bottom: 20px; margin-top: 4px; }
.lb-payment-methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.lb-payment-methods span { background: #fff; border: 1.5px solid #eee; border-radius: 8px; padding: 5px 12px; font-size: 12px; color: #555; font-weight: 600; }
.lb-secure-note { font-size: 12px; color: #bbb; margin-top: 10px; }
.lb-success-box { text-align: center; padding: 40px 24px; }
.lb-success-box h3 { font-size: 22px; font-weight: 800; margin: 12px 0 8px; }
.lb-success-box p { color: #888; margin-bottom: 24px; }
