/* Staffball profissionais-specific styles */

/* Login — split screen */
.login{height:100vh;display:grid;grid-template-columns:1fr 1fr;background:var(--bg2);overflow:hidden;}

.login-hero .logo span{font-size:28px;}

.field label{display:block;font-family:var(--fd);font-size:11px;font-weight:500;color:var(--text2);margin-bottom:5px;}

/* App */
.app{display:none;min-height:100vh;}

/* Sidebar — dark navy */
.sb{width:var(--sw);background:var(--navy);border-right:1px solid rgba(255,255,255,.06);display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;z-index:50;}

.sb-av{width:36px;height:36px;border-radius:10px;background:rgba(245,158,11,.15);display:flex;align-items:center;justify-content:center;font-family:var(--fd);font-weight:700;font-size:12px;color:var(--amber);flex-shrink:0;}

/* Main */
.mn{margin-left:var(--sw);flex:1;min-height:100vh;background:var(--bg2);}

/* Cards, stats, tables, tags */
.card{background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:20px;margin-bottom:16px;}

.sd.pe{background:var(--amber);}

/* Ghost */
.gb{background:var(--amber-lt);border:1px solid rgba(245,158,11,.25);border-radius:8px;padding:10px 16px;display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:12px;color:var(--amber-dk);}

.gd{width:8px;height:8px;border-radius:50%;background:var(--amber);animation:pu 2s infinite;}

@keyframes pu{0%,100%{opacity:1}50%{opacity:.4}}

.tgl{position:relative;width:36px;height:20px;background:var(--border2);border-radius:10px;cursor:pointer;transition:background .2s;}

.tgl::after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;background:var(--white);border-radius:50%;transition:transform .2s;}

.tgl.on{background:var(--amber);}

.tgl.on::after{transform:translateX(16px);}

/* Listings */
.lc{background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:18px;margin-bottom:12px;cursor:pointer;transition:all .12s;}

.lc.prem{border-left:3px solid var(--amber);}

.lc.conf{border-left:3px solid var(--text3);}

.lcl img{width:18px;height:18px;border-radius:4px;}

.lb{font-family:var(--fd);font-size:8px;font-weight:600;letter-spacing:1px;text-transform:uppercase;padding:3px 8px;border-radius:4px;}

.lb.pr{background:var(--amber-lt);color:var(--amber-dk);}

.lb.co{background:var(--bg3);color:var(--text3);}

/* Filters + chips */
.fb{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap;}

/* Profile */
.pcard{display:flex;gap:28px;}

.pleft{width:200px;}

.pav{width:90px;height:90px;border-radius:14px;background:var(--amber-lt);display:flex;align-items:center;justify-content:center;font-family:var(--fd);font-weight:700;font-size:26px;color:var(--amber-dk);margin-bottom:12px;}

.pnm{font-family:var(--fd);font-size:17px;font-weight:700;margin-bottom:2px;}

.prl{font-size:12px;color:var(--text3);margin-bottom:10px;}

.pright{flex:1;}

.psec{margin-bottom:16px;}

.pst{font-family:var(--fd);font-size:10px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--amber-dk);margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid var(--bg3);}

.pf{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--bg3);}

.pfl{font-size:12px;color:var(--text3);}

.pfv{font-size:12px;font-weight:500;}

/* Inline editable profile fields — pencil icon hints click-to-edit.
 * Applied by makeProfileEditable() via el.classList.add('editable'). */
.pfv.editable{position:relative;padding-right:22px;border-radius:6px;transition:background .15s,color .15s;margin-right:-6px;padding-top:2px;padding-bottom:2px;}
.pfv.editable::after{content:"✎";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:11px;color:var(--text3);opacity:.55;transition:opacity .15s,color .15s;}
.pfv.editable:hover{background:var(--amber-lt);color:var(--amber-dk);}
.pfv.editable:hover::after{opacity:1;color:var(--amber-dk);}

/* Section-level editable blocks (Competências / Idiomas / Ligas / Bio). */
.editable-section{position:relative;cursor:pointer;border-radius:8px;padding:4px 28px 4px 4px;margin:0 -4px;transition:background .15s;}
.editable-section::after{content:"✎";position:absolute;right:8px;top:8px;font-size:12px;color:var(--text3);opacity:.45;transition:opacity .15s,color .15s;}
.editable-section:hover{background:var(--amber-lt);}
.editable-section:hover::after{opacity:1;color:var(--amber-dk);}

/* CV sections that navigate to Criador de CV (not inline edit).
 * Use a → arrow to distinguish from inline-edit ✎ pencil. */
.cv-section-editable{position:relative;cursor:pointer;border-radius:8px;padding:4px 28px 4px 4px;margin:0 -4px;transition:background .15s;}
.cv-section-editable::after{content:"→";position:absolute;right:10px;top:8px;font-size:14px;color:var(--text3);opacity:.45;transition:opacity .15s,color .15s,transform .15s;}
.cv-section-editable:hover{background:var(--amber-lt);}
.cv-section-editable:hover::after{opacity:1;color:var(--amber-dk);transform:translateX(2px);}

/* CV */
.cvp{background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:36px;max-width:620px;box-shadow:0 4px 16px rgba(0,0,0,.06);}

.cvh{border-bottom:2px solid var(--amber);padding-bottom:16px;margin-bottom:20px;}

.cvn{font-family:var(--fd);font-size:22px;font-weight:700;}

.cvr{font-size:13px;color:var(--text3);margin-top:2px;}

.cvs{margin-bottom:18px;}

.cvst{font-family:var(--fd);font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--amber-dk);margin-bottom:8px;}

.cvi{margin-bottom:10px;}

.cvit{font-family:var(--fd);font-size:12px;font-weight:600;}

.cvis{font-size:11px;color:var(--text3);}

/* Insights */
.ins-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px;}

.ins-img{height:140px;background:var(--bg3);display:flex;align-items:center;justify-content:center;font-size:32px;}

.ins-tag{font-family:var(--fd);font-size:9px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--amber-dk);margin-bottom:6px;}

.ins-title{font-family:var(--fd);font-size:14px;font-weight:600;color:var(--text);margin-bottom:6px;line-height:1.35;}

.ins-desc{font-size:11px;color:var(--text3);line-height:1.5;margin-bottom:8px;}

.ins-meta{font-size:10px;color:var(--text3);display:flex;align-items:center;gap:8px;}

.ins-featured .ins-img{height:auto;min-height:200px;}

.ins-featured .ins-title{font-size:18px;margin-bottom:8px;}

/* Empty / Analytics lock */
.empty{text-align:center;padding:48px 20px;color:var(--text3);}

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

.lock-box{text-align:center;padding:64px 32px;background:var(--white);border:1px solid var(--border);border-radius:var(--r);}

.lock-box .icon{font-size:48px;margin-bottom:16px;}

.lock-box p{font-size:13px;color:var(--text3);margin-bottom:16px;line-height:1.6;}

/* Lang */
.lang-sel{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:6px;}

/* Verification badges */
.vb{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--bg3);}

.vb-icon{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;}

.vb-icon.ok{background:var(--green-lt);}

.vb-icon.pend{background:var(--amber-lt);}

.vb-icon.no{background:var(--bg3);}

.vb-info{flex:1;}

.vb-name{font-family:var(--fd);font-size:11px;font-weight:600;}

.vb-detail{font-size:10px;color:var(--text3);}

.vb-status{font-family:var(--fd);font-size:9px;font-weight:600;padding:3px 8px;border-radius:4px;}

.vb-status.ok{background:var(--green-lt);color:var(--green);}

.vb-status.pend{background:var(--amber-lt);color:var(--amber-dk);}

.vb-status.no{background:var(--bg3);color:var(--text3);}

/* Salary benchmark */
.sal-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px;}

.sal-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r);padding:20px;}

.sal-card-t{font-family:var(--fd);font-size:13px;font-weight:600;margin-bottom:4px;}

.sal-card-sub{font-size:10px;color:var(--text3);margin-bottom:14px;}

.sal-bar{display:flex;align-items:center;gap:10px;margin-bottom:10px;}

.sal-label{font-family:var(--fd);font-size:11px;font-weight:500;width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

.sal-track{flex:1;height:24px;background:var(--bg3);border-radius:4px;position:relative;overflow:hidden;}

.sal-range{position:absolute;top:0;height:100%;border-radius:4px;display:flex;align-items:center;justify-content:center;font-family:var(--fd);font-size:9px;font-weight:600;color:var(--white);}

.sal-you{position:absolute;top:-2px;bottom:-2px;width:2px;background:var(--amber);border-radius:1px;}

.sal-avg{font-family:var(--fd);font-size:11px;font-weight:600;color:var(--text);text-align:right;width:80px;}

.sal-legend{display:flex;gap:16px;margin-top:12px;font-size:10px;color:var(--text3);}

.sal-legend span{display:flex;align-items:center;gap:4px;}

.sal-legend .dot{width:8px;height:8px;border-radius:2px;}

.sal-contrib{background:var(--amber-lt);border:1px solid rgba(245,158,11,.2);border-radius:var(--r);padding:16px 20px;margin-bottom:20px;display:flex;align-items:center;gap:12px;}

.sal-contrib p{font-size:12px;color:var(--amber-dk);flex:1;line-height:1.5;}

/* Job detail panel (slide-over from right) */
.jd-panel{display:none;position:fixed;top:0;right:0;bottom:0;width:560px;background:var(--white);z-index:210;box-shadow:-8px 0 30px rgba(0,0,0,.1);animation:jdIn .25s ease;overflow-y:auto;}

.jd-panel.on{display:block;}

@keyframes jdIn{from{transform:translateX(100%);}to{transform:translateX(0);}}

.jd-hd{padding:18px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--white);z-index:1;}

.jd-body{padding:24px;}

.jd-club{display:flex;align-items:center;gap:10px;margin-bottom:16px;}

.jd-club img{width:40px;height:40px;border-radius:10px;}

.jd-club-info{flex:1;}

.jd-club-name{font-family:var(--fd);font-size:13px;font-weight:600;}

.jd-club-league{font-size:11px;color:var(--text3);}

.jd-sec{margin-bottom:18px;}

.jd-sec-t{font-family:var(--fd);font-size:10px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--amber-dk);margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid var(--bg3);}

.jd-detail{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;}

.jd-detail-item{background:var(--bg2);border-radius:8px;padding:10px 12px;}

.jd-detail-label{font-size:9px;color:var(--text3);font-family:var(--fd);font-weight:500;letter-spacing:.5px;text-transform:uppercase;margin-bottom:2px;}

.jd-detail-val{font-family:var(--fd);font-size:12px;font-weight:600;}

.jd-desc{font-size:12px;color:var(--text2);line-height:1.7;}

.jd-reqs{font-size:12px;color:var(--text2);line-height:1.7;}

.jd-reqs li{margin-bottom:4px;}

.jd-apply-bar{position:sticky;bottom:0;background:var(--white);border-top:1px solid var(--border);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;}

.jd-apps-left{font-size:11px;color:var(--text3);}

/* Apply modal */
.apply-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:220;align-items:center;justify-content:center;backdrop-filter:blur(2px);}

.apply-overlay.on{display:flex;}

.apply-modal{background:var(--white);border-radius:16px;width:480px;box-shadow:0 20px 60px rgba(0,0,0,.15);animation:modalIn .2s ease;}

.apply-modal .modal-hd{padding:20px 24px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;}

.apply-modal .modal-body{padding:24px;}

.apply-modal .modal-ft{padding:16px 24px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px;}

/* References section */
.ref-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:16px;margin-bottom:10px;}

.ref-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;}

.ref-from{font-family:var(--fd);font-size:12px;font-weight:600;}

.ref-role{font-size:10px;color:var(--text3);}

.ref-scores{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:10px;}

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

.ref-score-val{font-family:var(--fd);font-size:16px;font-weight:700;}

.ref-score-label{font-size:8px;color:var(--text3);letter-spacing:.3px;}

.ref-bar{height:4px;background:var(--bg3);border-radius:2px;margin-top:3px;overflow:hidden;}

.ref-bar-fill{height:100%;border-radius:2px;}

/* Panel dim */
.panel-dim.on{display:block;}
.panel-dim{display:none;position:fixed;inset:0;background:rgba(0,0,0,.2);z-index:205;}

/* CV Preview */
.cvp{background:var(--white);border-radius:var(--r);padding:32px;box-shadow:0 2px 12px rgba(0,0,0,.04);}

.cvst{font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--cv-accent,var(--amber-dk));margin:20px 0 8px;padding-bottom:4px;border-bottom:1px solid var(--bg3);}

.cv-form-group{margin-bottom:12px;}

.cv-form-group label{display:block;font-size:11px;font-weight:600;color:var(--text2);margin-bottom:4px;}

.btn-o{background:none;border:1.5px solid var(--amber);color:var(--amber-dk);border-radius:6px;cursor:pointer;font-weight:600;}

.btn-o:hover{background:var(--amber-lt);}

.cvs{margin-bottom:14px;}

.cvi{margin-bottom:8px;}

.cvit{font-size:12px;font-weight:600;}

.cvis{font-size:10px;color:var(--text3);}

/* Mobile header */
.mob-header{display:none;position:fixed;top:0;left:0;right:0;height:52px;background:var(--navy);z-index:190;padding:0 16px;align-items:center;justify-content:space-between;}

.mob-header .logo{font-family:var(--fd);font-size:18px;font-weight:700;}

.mob-header .logo .a{color:var(--text3);}

.mob-header .logo .b{color:#fff;}

.mob-header .logo .c{color:var(--amber);}

.mob-burger{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;padding:8px;}

.mob-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:195;}

.mob-overlay.on{display:block;}

/* Sticky apply bar */
.jd-apply-bar{position:sticky;bottom:0;background:var(--white);border-top:1px solid var(--border);padding:12px 24px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.jd-apply-bar .jd-apps-left{font-size:11px;color:var(--text3);flex-shrink:0;}

@media(max-width:768px){
  .login{grid-template-columns:1fr;min-height:100vh;}
  .login-hero{display:none;}
  .login-form{padding:24px 20px;}
  .sb{position:fixed;left:-240px;top:0;bottom:0;z-index:200;transition:transform .3s;width:240px;}
  .sb.mob-open{transform:translateX(240px);}
  .mn{margin-left:0;padding:16px;overflow-x:hidden;}
  .mn-hd{flex-direction:column;gap:8px;}
  .sr{grid-template-columns:1fr 1fr;}
  .fb{flex-direction:column;gap:8px;}
  .fb .si,.fb .fs{width:100% !important;min-width:0;}
  .si{width:100%;}
  .cc{overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px;-webkit-overflow-scrolling:touch;}
  .pcard{flex-direction:column;}
  .ins-grid{grid-template-columns:1fr !important;}
  .ins-card{overflow:hidden;}
  .ins-body{padding:12px;}
  .card{overflow:hidden;}
  .ins-featured{grid-template-columns:1fr;}
  .sal-grid{grid-template-columns:1fr;}
  .jd-panel{width:100%;}
  .art-panel{width:100%;}
  .ob-card{width:95%;padding:24px 20px;}
  .ob-grid{grid-template-columns:1fr;}
  .mob-header{display:flex !important;}
  #plan .mn-c > div:first-child{grid-template-columns:1fr !important;}
  .cvp{padding:20px !important;}
}

@media(max-width:480px){
  .sr{grid-template-columns:1fr;}
  .hero-stats{flex-direction:column;gap:12px;}
  .login-form{padding:20px 16px;}
}

/* .sb-loader and @keyframes spin moved to shared.css */

.sb-error{text-align:center;padding:40px;color:var(--text3);font-size:13px;}

.sb-error::before{content:'⚠️';display:block;font-size:24px;margin-bottom:8px;}

.editable{cursor:pointer;position:relative;}

.editable:hover{color:var(--amber-dk);}

.editable::after{content:'✎';position:absolute;right:-16px;top:0;font-size:10px;color:var(--text3);opacity:0;transition:opacity .2s;}

.editable:hover::after{opacity:1;}

.sb-loading{display:flex;align-items:center;justify-content:center;padding:60px 0;flex-direction:column;gap:12px;color:#888;font-size:12px;}

.sb-spinner{width:28px;height:28px;border:3px solid #e5e7eb;border-top:3px solid #F59E0B;border-radius:50%;animation:spin .8s linear infinite;}

/* ============================================================
 * Dashboard v2 — redesigned layout (dash2-*)
 * ============================================================ */

.dash2-hdr{display:flex;align-items:flex-end;justify-content:space-between;padding:24px 32px 20px;border-bottom:1px solid var(--border);background:var(--bg);}
.dash2-date{font:500 12px var(--fd);color:var(--text3);letter-spacing:.5px;margin-bottom:4px;text-transform:capitalize;}
.dash2-greet{font:700 24px var(--fd);color:var(--text);letter-spacing:-.4px;}
.dash2-hdr-right{display:flex;gap:10px;align-items:center;}
.dash2-plan-badge{background:rgba(245,158,11,.12);color:var(--amber-dk);padding:6px 12px;border-radius:20px;font:600 11px var(--fd);letter-spacing:.8px;text-transform:uppercase;}
.dash2-ghost-wrap{display:flex;align-items:center;gap:8px;padding:5px 12px;background:var(--bg2);border:1px solid var(--border);border-radius:20px;}
.dash2-ghost-label{font:600 11px var(--fd);color:var(--text3);letter-spacing:.8px;}

/* Stats row */
.dash2-stats{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px;margin-bottom:16px;}
.dash2-stat{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:16px 18px;min-height:112px;display:flex;flex-direction:column;}
.dash2-stat-wide{padding:16px 20px;}
.dash2-stat-label{font:600 10px var(--fd);color:var(--text3);letter-spacing:1px;margin-bottom:10px;text-transform:uppercase;}
.dash2-stat-row{display:flex;align-items:baseline;gap:10px;}
.dash2-stat-val{font:700 32px var(--fd);color:var(--text);letter-spacing:-1px;line-height:1;}
.dash2-stat-wide .dash2-stat-val{font-size:36px;}
.dash2-stat-delta{font:600 12px var(--fd);color:var(--green);}
.dash2-stat-delta.neg{color:var(--red);}
.dash2-stat-delta.neu{color:var(--text3);}
.dash2-stat-sub{font:500 11px var(--fd);color:var(--text3);margin-top:6px;letter-spacing:.3px;}
.dash2-stat-sub.highlight{color:var(--amber-dk);}
.dash2-sparkline{width:100%;height:28px;margin-top:auto;display:block;}
.dash2-sparkline polyline.line{fill:none;stroke:var(--amber);stroke-width:1.5;}
.dash2-sparkline polygon.area{fill:var(--amber);fill-opacity:.12;}
.dash2-progress{height:3px;background:var(--bg2);margin-top:auto;border-radius:2px;overflow:hidden;}
.dash2-progress-fill{height:100%;background:var(--amber);width:0%;transition:width .4s ease;}

/* Featured match callout */
.dash2-featured{background:linear-gradient(135deg,rgba(245,158,11,.06),rgba(245,158,11,.02));border:1px solid rgba(245,158,11,.35);border-radius:12px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.dash2-featured-left{display:flex;align-items:center;gap:16px;flex:1;min-width:0;}
.dash2-featured-icon{width:44px;height:44px;background:rgba(245,158,11,.15);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.dash2-featured-tag{font:600 11px var(--fd);color:var(--amber-dk);letter-spacing:.8px;margin-bottom:4px;}
.dash2-featured-title{font:600 16px var(--fd);color:var(--text);margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dash2-featured-meta{font:400 12px var(--fb);color:var(--text3);}
.dash2-featured-btn{flex-shrink:0;}

/* Tasks list */
.dash2-tasks{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:18px 20px;margin-bottom:16px;}
.dash2-tasks-hdr{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;}
.dash2-tasks-title{font:600 13px var(--fd);color:var(--text);}
.dash2-tasks-count{font:600 11px var(--fd);color:var(--text3);letter-spacing:.5px;text-transform:uppercase;}
.dash2-tasks-list{display:flex;flex-direction:column;}
.dash2-task{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--border);cursor:pointer;transition:background .15s;}
.dash2-task:hover{background:var(--bg2);margin:0 -20px;padding:12px 20px;}
.dash2-task-label{font:400 13px var(--fb);color:var(--text);}
.dash2-task-tag{font:600 10px var(--fd);padding:3px 10px;border-radius:20px;letter-spacing:.5px;text-transform:uppercase;white-space:nowrap;}
.dash2-task-tag.red{background:rgba(226,75,74,.12);color:var(--red);}
.dash2-task-tag.amber{background:rgba(245,158,11,.12);color:var(--amber-dk);}
.dash2-task-tag.gray{background:var(--bg2);color:var(--text3);}

/* Insights */
.dash2-insights{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:18px 20px;}
.dash2-insights-hdr{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.dash2-insights-title{font:600 13px var(--fd);color:var(--text);}
.dash2-insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.dash2-insight{padding:14px 16px;background:var(--bg2);border-radius:8px;cursor:pointer;transition:transform .2s;}
.dash2-insight:hover{transform:translateY(-1px);}
.dash2-insight-cat{font:600 9px var(--fd);letter-spacing:1px;text-transform:uppercase;color:var(--amber-dk);margin-bottom:4px;}
.dash2-insight-ttl{font:600 13px var(--fd);color:var(--text);margin-bottom:4px;line-height:1.35;}
.dash2-insight-meta{font:400 10px var(--fb);color:var(--text3);}

/* Empty state for tasks/featured */
.dash2-empty{padding:24px;text-align:center;color:var(--text3);font-size:13px;}

@media (max-width: 900px){
  .dash2-hdr{padding:20px 20px 16px;}
  .dash2-stats{grid-template-columns:1fr 1fr;}
  .dash2-stat-wide{grid-column:span 2;}
  .dash2-featured{flex-direction:column;align-items:flex-start;}
  .dash2-featured-btn{width:100%;}
  .dash2-insights-grid{grid-template-columns:1fr;}
}
@media (max-width: 500px){
  .dash2-stats{grid-template-columns:1fr;}
  .dash2-stat-wide{grid-column:auto;}
  .dash2-hdr{flex-direction:column;align-items:flex-start;gap:12px;}
}

/* Clickable profile card — click to reveal missing fields */
.dash2-stat-clickable{cursor:pointer;transition:background .15s;}
.dash2-stat-clickable:hover{background:var(--bg2);}
.dash2-missing-hint{font-size:10px;color:var(--text3);margin-top:8px;line-height:1.4;display:none;}
.dash2-missing-hint.on{display:block;}
.dash2-missing-hint .fld{display:inline-block;background:var(--amber-lt);color:var(--amber-dk);padding:2px 8px;border-radius:10px;margin:2px 3px 0 0;font-size:10px;font-weight:600;}
.dash2-missing-link{display:inline-block;margin-top:8px;font-size:11px;font-weight:600;color:var(--amber-dk);text-decoration:none;}
.dash2-missing-link:hover{text-decoration:underline;}

/* ===== SB_P1_PATCH — pro-side polish ===== */
.plan-pill{
  display:inline-block;
  font-family:var(--fd);
  font-size:10px;
  font-weight:700;
  letter-spacing:.5px;
  padding:2px 8px;
  border-radius:4px;
  text-transform:uppercase;
  vertical-align:middle;
}
/* Keep optgroup labels readable (some browsers render them faint) */
#jobFilterLocation optgroup{
  font-style:normal;
  font-weight:600;
  color:var(--text3);
  background:var(--bg2);
}

/* ============================================================
 * SB_P2_PATCH — Listing detail Linear-style
 * Slide-over panel that opens from the right (already styled in
 * .jd-panel). Inner body uses jd2-* classes for the new layout.
 * ============================================================ */

/* Make the sticky strip a thin handle (the title now lives in the hero) */
.jd-hd-min{padding:10px 16px 10px 24px;display:flex;align-items:center;justify-content:flex-end;border-bottom:none;background:var(--bg2);}

/* HERO — stronger header with subtle gradient */
.jd2-hero{position:relative;padding:24px 24px 20px;background:linear-gradient(180deg,var(--bg2) 0%,transparent 100%);border-bottom:1px solid var(--border);}
.jd2-hero-conf{background:linear-gradient(180deg,#1f293708 0%,transparent 100%);}
.jd2-hero-row{display:flex;align-items:flex-start;gap:14px;}
.jd2-hero-avatar{width:56px;height:56px;border-radius:12px;object-fit:cover;flex-shrink:0;background:var(--bg3);box-shadow:0 1px 3px rgba(0,0,0,.05);}
.jd2-hero-avatar-fallback{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--amber-lt),#FDE68A);color:var(--amber-dk);font-family:var(--fd);font-size:18px;font-weight:700;}
.jd2-hero-avatar-conf{display:flex;align-items:center;justify-content:center;background:rgba(30,30,30,.08);color:var(--text2);font-size:24px;}
.jd2-hero-text{flex:1;min-width:0;padding-top:2px;}
.jd2-hero-title{font-family:var(--fd);font-size:20px;font-weight:700;line-height:1.25;margin:0 0 4px;color:var(--text);letter-spacing:-.01em;}
.jd2-hero-sub{font-size:13px;color:var(--text2);font-weight:500;line-height:1.4;}
.jd2-hero-sub-sep{color:var(--text3);margin:0 2px;}
.jd2-hero-badges{position:absolute;top:14px;right:16px;display:flex;gap:6px;}
.jd2-badge{font-family:var(--fd);font-size:9px;font-weight:700;letter-spacing:.6px;padding:4px 9px;border-radius:4px;text-transform:uppercase;line-height:1;display:inline-flex;align-items:center;}
.jd2-badge-premium{background:linear-gradient(135deg,#F59E0B,#D97706);color:#fff;box-shadow:0 1px 2px rgba(217,119,6,.3);}
.jd2-badge-conf{background:rgba(30,30,30,.9);color:#fff;}

/* DETAILS GRID — 2-col cells with label + value */
.jd2-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:16px 24px;border-bottom:1px solid var(--border);}
.jd2-cell{background:var(--bg2);border-radius:8px;padding:10px 12px;}
.jd2-cell-l{font-family:var(--fd);font-size:9px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:var(--text3);margin-bottom:3px;}
.jd2-cell-v{font-family:var(--fd);font-size:13px;font-weight:600;color:var(--text);line-height:1.3;}

/* SECTION (Sobre, Descrição, Requisitos) */
.jd2-section{padding:16px 24px;border-bottom:1px solid var(--border);}
.jd2-section:last-of-type{border-bottom:none;}
.jd2-section-t{font-family:var(--fd);font-size:10px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--amber-dk);margin-bottom:10px;}

/* ABOUT — chips of clube info */
.jd2-about{display:flex;flex-wrap:wrap;gap:8px;}
.jd2-about-bit{font-size:12px;color:var(--text2);padding:6px 10px;background:var(--bg2);border-radius:6px;display:inline-flex;align-items:center;gap:4px;}
.jd2-about-link{color:var(--amber-dk);text-decoration:none;transition:background .15s ease;}
.jd2-about-link:hover{background:var(--amber-lt);}

/* PROSE — descrição / requisitos */
.jd2-prose{font-size:13px;color:var(--text2);line-height:1.7;}
.jd2-prose br + br{display:block;content:"";margin-top:.5em;}

/* Make the existing sticky apply bar a bit more present */
.jd-apply-bar{padding:14px 24px;box-shadow:0 -4px 12px rgba(0,0,0,.04);}
.jd-apply-bar #jdApplyBtn{padding:10px 22px;font-weight:600;}

/* Mobile tweaks */
@media (max-width:560px){
  .jd-panel{width:100%;}
  .jd2-grid{grid-template-columns:1fr;}
  .jd2-hero{padding:20px 16px 16px;}
  .jd2-grid,.jd2-section{padding-left:16px;padding-right:16px;}
  .jd2-hero-badges{top:10px;right:10px;}
}

/* ============================================================
 * SB_P3_PATCH — Listing card v2 (.lc-v2)
 * Stronger header, absolute-positioned badges (so the slide-over
 * panel can't truncate them), consistent pills, freshness chip,
 * gradient hover with lift, and a "selected" state when the
 * detail panel is open on this card.
 * ============================================================ */

.lc-v2{
  position:relative;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px 18px;
  margin-bottom:10px;
  cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .2s ease;
}
.lc-v2:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  border-color:#d4d8e0;
  background:linear-gradient(180deg,var(--white) 0%,var(--bg2) 100%);
}
.lc-v2.is-selected{
  border-color:var(--amber);
  box-shadow:0 0 0 1px var(--amber), 0 6px 18px rgba(245,158,11,.1);
  background:linear-gradient(180deg,var(--white) 0%,#FFFBEB 100%);
}

/* Override the legacy left-border the .lc.conf / .lc.prem rules add — we
 * use absolute badges instead, and the left-border collided with the
 * selected state outline. */
.lc-v2.conf,
.lc-v2.prem{ border-left:1px solid var(--border); }
.lc-v2.is-selected.conf,
.lc-v2.is-selected.prem{ border-left:1px solid var(--amber); }

/* Top-right badges */
.lc2-badges{
  position:absolute;
  top:12px;
  right:14px;
  display:flex;
  gap:6px;
  pointer-events:none; /* don't block clicks on the card */
}
.lc2-badge{
  font-family:var(--fd);
  font-size:9px;
  font-weight:700;
  letter-spacing:.5px;
  padding:3px 8px;
  border-radius:4px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}
.lc2-badge-premium{
  background:linear-gradient(135deg,#F59E0B,#D97706);
  color:#fff;
  box-shadow:0 1px 2px rgba(217,119,6,.25);
}
.lc2-badge-conf{
  background:rgba(30,30,30,.9);
  color:#fff;
}

/* Header row */
.lc2-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  /* leave room for the absolute badges so a long title doesn't overlap */
  padding-right:140px;
  margin-bottom:12px;
}
.lc2-avatar{
  width:40px;
  height:40px;
  border-radius:9px;
  object-fit:cover;
  flex-shrink:0;
  background:var(--bg3);
}
.lc2-avatar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--amber-lt),#FDE68A);
  color:var(--amber-dk);
  font-family:var(--fd);
  font-size:13px;
  font-weight:700;
}
.lc2-avatar-conf{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(30,30,30,.08);
  color:var(--text2);
  font-size:18px;
}
.lc2-text{ flex:1; min-width:0; padding-top:1px; }
.lc2-title{
  font-family:var(--fd);
  font-size:15px;
  font-weight:700;
  line-height:1.3;
  margin:0 0 4px;
  color:var(--text);
  letter-spacing:-.005em;
  /* truncate long titles to one line so the badges never wrap into the title */
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lc2-sub{
  font-size:12px;
  color:var(--text2);
  font-weight:500;
  line-height:1.4;
  margin-bottom:2px;
}
.lc2-sep{ color:var(--text3); margin:0 1px; }
.lc2-loc{
  font-size:11px;
  color:var(--text3);
  line-height:1.3;
}

/* Footer — pills left, freshness right */
.lc2-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.lc2-pills{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.lc2-pill{
  font-family:var(--fd);
  font-size:10px;
  font-weight:600;
  letter-spacing:.2px;
  padding:4px 9px;
  border-radius:5px;
  line-height:1;
  white-space:nowrap;
}
.lc2-pill-type   { background:var(--amber-lt); color:var(--amber-dk); }
.lc2-pill-level  { background:#DBEAFE;        color:#1E40AF;          }
.lc2-pill-salary { background:#D1FAE5;        color:#065F46;          }

.lc2-fresh{
  font-size:10px;
  color:var(--text3);
  font-style:italic;
  flex-shrink:0;
  white-space:nowrap;
}

/* When the slide-over detail panel is open, give the listings list
 * room on the right so cards aren't covered. The panel is 560px wide;
 * the body class is toggled by openRealJobDetail/closeJobDetail. */
body.jd-open #jobsList,
body.jd-open #listings .lc-v2{
  max-width:none;
}
@media (min-width:1100px){
  body.jd-open #listings{
    padding-right:580px;
    transition:padding-right .25s ease;
  }
}

/* Mobile */
@media (max-width:560px){
  .lc-v2{ padding:14px 14px; }
  .lc2-badges{ top:10px; right:10px; }
  .lc2-head{ padding-right:0; margin-bottom:10px; }
  .lc2-badges{
    position:static;
    margin-bottom:8px;
  }
  .lc2-foot{ flex-direction:column; align-items:flex-start; gap:8px; }
}

/* ============================================================
 * SB_P3_1_PATCH — Layout D for PREMIUM, paging UI, age/sort
 * ============================================================ */

/* Premium ribbon: top border + corner star (no badge text). */
.lc-v2.prem{
  border-top:3px solid #F59E0B;
  padding-top:14px; /* compensate for the thicker top border */
}
.lc-v2.prem::after{
  content:"★";
  position:absolute;
  top:6px;
  right:14px;
  font-size:14px;
  line-height:1;
  color:#F59E0B;
  pointer-events:none;
}
/* When BOTH premium and confidential, push the conf pill down a bit so it
 * doesn't overlap the star. */
.lc-v2.prem .lc2-badges{
  top:28px;
}

/* Layout D removed the premium pill from the badge row, so the head doesn't
 * need to reserve as much space. Keep enough for the conf pill (~120px). */
.lc-v2 .lc2-head{
  padding-right:130px;
}
.lc-v2:not(.conf) .lc2-head{
  padding-right:24px; /* no conf pill, only the optional star */
}

/* Load-more button polish — uses existing .btn .btn-o */
#loadMoreJobsBtn{
  min-width:160px;
  font-family:var(--fd);
  font-weight:600;
  letter-spacing:.2px;
}

/* Filter bar: when many selects wrap, the row gets dense. Give the new
 * sort/age selects a tighter min-width so they don't dominate. */
#jobFilterAge,
#jobSort{
  min-width:150px;
}

/* Mobile padding adjustments */
@media (max-width:560px){
  .lc-v2 .lc2-head{ padding-right:0; }
  .lc-v2:not(.conf) .lc2-head{ padding-right:0; }
  .lc-v2.prem::after{ top:4px; right:10px; }
}

/* ============================================================
 * SB_P3_2_PATCH — Detail panel Layout D + paging fix
 * ============================================================ */

/* Premium ribbon on the panel itself: a 4px amber bar at the very top,
 * spanning the full width INCLUDING the sticky close strip. This makes the
 * "premium" status read instantly without a corner badge fighting the ✕. */
.jd-panel.is-prem{
  border-top:4px solid #F59E0B;
}
.jd-panel.is-prem::before{
  /* Subtle gradient under the ribbon for depth */
  content:"";
  position:sticky;
  top:0;
  display:block;
  height:0;
  box-shadow:0 1px 0 rgba(245,158,11,.25);
}

/* Move the ★ marker into the hero corner only when the avatar isn't
 * already taking that space. Skip the legacy hero-badges duplicate star
 * — Layout D uses the panel ribbon as the only premium signal. */
.jd2-hero-prem{
  /* gentle inner glow at top of hero so it ties to the ribbon */
  background:linear-gradient(180deg, rgba(245,158,11,.06) 0%, transparent 80%);
}

/* CONFIDENCIAL pill needs to clear the close ✕ which sits ~14px from top
 * of the sticky strip. Push the pill down slightly. */
.jd2-hero{
  padding-top:30px;
}
.jd2-hero-badges{
  top:36px;  /* was 14px — clears the close button area */
}

/* On smaller widths the panel goes full width and the badges should
 * relax their top a touch to feel airier. */
@media (max-width:560px){
  .jd2-hero{ padding-top:24px; }
  .jd2-hero-badges{ top:28px; right:14px; }
}
