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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #f9f8f6; color: #111; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
::selection { background: #d1fae5; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* ── Tokens ── */
:root {
  --bg:       #f9f8f6;
  --white:    #ffffff;
  --card:     #ffffff;
  --border:   #e8e6e1;
  --border2:  #d4d1cb;
  --text:     #111111;
  --text2:    #555555;
  --text3:    #999999;
  --accent:   #16a34a;
  --accent2:  #15803d;
  --accent-l: #f0fdf4;
  --accent-b: #bbf7d0;
  --red:      #dc2626;
  --red-l:    #fef2f2;
  --amber:    #d97706;
  --amber-l:  #fffbeb;
  --blue:     #2563eb;
  --blue-l:   #eff6ff;
  --r:        10px;
  --r2:       14px;
  --r3:       20px;
  --sh:       0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh2:      0 4px 16px rgba(0,0,0,.08);
  --sh3:      0 16px 48px rgba(0,0,0,.10);
}

/* ── Layout ── */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.page-wrap  { padding-top: 64px; min-height: 100vh; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 64px;
  background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo  { display: flex; align-items: center; gap: 8px; font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.nav-logo .lm { width: 30px; height: 30px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.nav-logo .ptag { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text3); font-weight: 400; padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-size: .875rem; color: var(--text2); padding: 6px 12px; border-radius: 8px; transition: all .15s; font-weight: 500; }
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-links a.active { color: var(--accent); background: var(--accent-l); }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* User chip */
.uchip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 50px; font-size: .8125rem; color: var(--text2); background: var(--white); box-shadow: var(--sh); }
.uchip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.uinit { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.pchip { padding: 2px 8px; border-radius: 50px; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.pc-free    { background: #f1f0ed; color: var(--text3); }
.pc-plus    { background: #dcfce7; color: #15803d; }
.pc-pro     { background: #dbeafe; color: #1d4ed8; }
.pc-premium { background: #f3e8ff; color: #7e22ce; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: .875rem; font-weight: 600; padding: 9px 18px; border-radius: var(--r); border: none; cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap; line-height: 1.3; }
.btn-ghost   { background: var(--white); color: var(--text2); border: 1.5px solid var(--border2); box-shadow: var(--sh); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-dark    { background: var(--text); color: #fff; }
.btn-dark:hover  { background: #333; }
.btn-accent  { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(22,163,74,.3); }
.btn-accent:hover  { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,.35); }
.btn-white   { background: #fff; color: var(--text); border: 1.5px solid var(--border); box-shadow: var(--sh); }
.btn-white:hover { box-shadow: var(--sh2); }
.btn-danger  { background: var(--red-l); color: var(--red); border: 1px solid #fecaca; }
.btn-lg  { font-size: 1rem; padding: 12px 26px; }
.btn-sm  { font-size: .8125rem; padding: 7px 14px; }
.btn-xs  { font-size: .75rem; padding: 5px 10px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r2); box-shadow: var(--sh); }

/* ── Forms ── */
.fgrp { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.flbl { font-size: .8125rem; font-weight: 600; color: var(--text2); }
.finp, .fsel, .ftxt {
  background: var(--white); border: 1.5px solid var(--border2); color: var(--text);
  padding: 10px 14px; font-family: 'Inter', sans-serif; font-size: .9375rem;
  border-radius: var(--r); outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.finp:focus, .fsel:focus, .ftxt:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.finp::placeholder, .ftxt::placeholder { color: var(--text3); }
.ftxt { resize: vertical; min-height: 120px; line-height: 1.6; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fhint { font-size: .75rem; color: var(--text3); margin-top: 4px; }
.ferr  { font-size: .8125rem; color: var(--red); margin-top: 4px; display: none; }
.ferr.show { display: block; }

/* ── Alert boxes ── */
.alert { display: none; padding: 12px 16px; border-radius: var(--r); font-size: .875rem; line-height: 1.55; align-items: flex-start; gap: 8px; }
.alert.show { display: flex; }
.alert-err  { background: var(--red-l);   color: var(--red);   border: 1px solid #fecaca; }
.alert-ok   { background: var(--accent-l); color: #14532d;     border: 1px solid var(--accent-b); }
.alert-warn { background: var(--amber-l);  color: #92400e;     border: 1px solid #fde68a; }
.alert-info { background: var(--blue-l);   color: #1e3a8a;     border: 1px solid #bfdbfe; }

/* ── Google button ── */
.gbtn { width: 100%; padding: 11px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--border2); border-radius: var(--r); background: var(--white); color: var(--text); font-size: .9375rem; font-weight: 600; cursor: pointer; transition: all .15s; font-family: 'Inter', sans-serif; box-shadow: var(--sh); }
.gbtn:hover { box-shadow: var(--sh2); border-color: var(--border2); }
.gbtn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Divider ── */
.divider { display: flex; align-items: center; gap: 12px; color: var(--text3); font-size: .8125rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Upload zone ── */
.uzone { border: 2px dashed var(--border2); border-radius: var(--r2); padding: 44px 28px; text-align: center; cursor: pointer; transition: all .2s; background: var(--white); }
.uzone:hover, .uzone.over { border-color: var(--accent); background: var(--accent-l); }
.uzone .uico  { font-size: 2.4rem; margin-bottom: 12px; }
.uzone .uttl  { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.uzone .usub  { font-size: .875rem; color: var(--text3); margin-bottom: 14px; }
.fmt-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.fmt { padding: 3px 10px; border-radius: 50px; background: var(--bg); border: 1px solid var(--border); font-size: .6875rem; color: var(--text3); font-weight: 600; }

/* ── Analyse button ── */
.abtn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .2s; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 2px 8px rgba(22,163,74,.3); letter-spacing: -.01em; }
.abtn:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,.35); }
.abtn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tbtn { padding: 10px 20px; font-size: .875rem; font-weight: 600; color: var(--text3); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; font-family: 'Inter', sans-serif; }
.tbtn:hover { color: var(--text2); }
.tbtn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tpanel { display: none; }
.tpanel.active { display: block; }

/* ── Modal ── */
.moverlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.moverlay.show { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border: 1px solid var(--border); border-radius: var(--r3); padding: 2rem; max-width: 560px; width: 100%; position: relative; transform: translateY(14px); transition: transform .2s; max-height: 90vh; overflow-y: auto; box-shadow: var(--sh3); }
.moverlay.show .modal { transform: translateY(0); }
.mclose { position: absolute; top: 14px; right: 14px; background: var(--bg); border: none; border-radius: 8px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 16px; cursor: pointer; transition: all .15s; }
.mclose:hover { background: var(--border); color: var(--text); }
.mtitle { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.msub   { font-size: .9rem; color: var(--text2); line-height: 1.65; margin-bottom: 1.25rem; }

/* ── Badges ── */
.badge { padding: 2px 9px; border-radius: 50px; font-size: .6875rem; font-weight: 700; display: inline-flex; align-items: center; }
.b-remote    { background: #e0f7fa; color: #00838f; }
.b-relocate  { background: #e8eaf6; color: #3949ab; }
.b-parttime  { background: #fff8e1; color: #f59e0b; }
.b-fulltime  { background: #f3e8ff; color: #7e22ce; }
.b-freelance { background: #e8f5e9; color: #2e7d32; }
.b-contract  { background: #fce4ec; color: #c2185b; }
.b-visa      { background: #fbe9e7; color: #bf360c; }
.b-local     { background: #e8f5e9; color: #15803d; }

/* ── Job grid ── */
.jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 24px; }
.jcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: all .2s; animation: slideUp .3s ease both; box-shadow: var(--sh); }
.jcard:hover { box-shadow: var(--sh2); transform: translateY(-2px); border-color: var(--border2); }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.jc-top     { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.jc-title   { font-size: .9375rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.jc-co      { font-size: .8125rem; color: var(--text2); margin-top: 2px; }
.jc-loc     { font-size: .75rem; color: var(--text3); }
.jc-sal     { font-size: .875rem; font-weight: 700; color: var(--text); }
.jc-why     { font-size: .75rem; color: var(--text2); line-height: 1.55; padding: 8px 10px; background: var(--bg); border-radius: 7px; border-left: 3px solid var(--accent-b); }
.mpill      { flex-shrink: 0; padding: 3px 10px; border-radius: 50px; font-size: .6875rem; font-weight: 700; }
.mp-high    { background: #dcfce7; color: #15803d; }
.mp-mid     { background: #fef9c3; color: #854d0e; }
.mp-low     { background: #fee2e2; color: #991b1b; }
.stags { display: flex; gap: 4px; flex-wrap: wrap; }
.stag  { padding: 2px 8px; border-radius: 5px; font-size: .6875rem; background: var(--bg); border: 1px solid var(--border); color: var(--text3); font-weight: 500; }
.jactions { display: flex; gap: 6px; margin-top: 4px; }
.japply { flex: 1; padding: 8px; border-radius: var(--r); background: var(--accent); color: #fff; font-weight: 700; font-size: .8125rem; text-align: center; transition: .15s; border: none; cursor: pointer; font-family: 'Inter', sans-serif; display: block; }
.japply:hover { background: var(--accent2); }
.jfeat  { padding: 8px 10px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border); color: var(--text2); cursor: pointer; font-size: .75rem; transition: .15s; font-family: 'Inter', sans-serif; font-weight: 600; white-space: nowrap; }
.jfeat:hover  { background: var(--border); color: var(--text); }
.jsave  { padding: 8px 10px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border); color: var(--text3); cursor: pointer; font-size: .875rem; transition: .15s; }
.jsave.saved  { background: #fef9c3; border-color: #fde047; color: #854d0e; }

/* ── Filter chips ── */
.fbar { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--white); color: var(--text2); font-size: .8125rem; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; font-family: 'Inter', sans-serif; box-shadow: var(--sh); }
.chip:hover  { border-color: var(--border2); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Score ring ── */
.sring { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.sring svg { transform: rotate(-90deg); }
.sring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.snum { font-size: 1.4rem; font-weight: 800; line-height: 1; font-family: 'Sora', sans-serif; }
.ssub { font-size: .5625rem; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }

/* ── Progress ── */
.pbar  { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.pfill { height: 100%; border-radius: 3px; background: var(--accent); transition: width .6s ease; }

/* ── Stats ── */
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 20px; }
.scrd  { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 16px; box-shadow: var(--sh); }
.sn    { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; line-height: 1; font-family: 'Sora', sans-serif; }
.sl    { font-size: .75rem; color: var(--text3); margin-top: 4px; font-weight: 500; }

/* ── Spinner ── */
.spin  { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; }
.spin-lg { width: 44px; height: 44px; border-width: 3px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: #1a1a1a; color: #fff; border-radius: var(--r); padding: 12px 18px; font-size: .875rem; z-index: 500; transform: translateY(60px); opacity: 0; transition: all .3s; max-width: 320px; box-shadow: var(--sh3); }
.toast.show   { transform: translateY(0); opacity: 1; }
.toast.tsuccess { background: #14532d; }
.toast.terror   { background: #991b1b; }
.toast.tinfo    { background: #1e3a8a; }

/* ── Upgrade banner ── */
.upgbanner { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid var(--accent-b); border-radius: var(--r2); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ub-ttl { font-size: .9375rem; font-weight: 700; color: #14532d; }
.ub-sub { font-size: .8125rem; color: #166534; margin-top: 3px; }

/* ── bKash ── */
.bklogo { width: 44px; height: 44px; border-radius: 10px; background: #E2136E; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 11px; color: #fff; line-height: 1.1; text-align: center; flex-shrink: 0; }
.bknum  { background: #fff0f6; border: 1.5px solid #fbcfe8; border-radius: var(--r); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; margin: 14px 0; }
.bknumv { font-size: 1.1rem; font-weight: 800; font-family: monospace; color: #9d174d; }
.bkstep { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--text2); line-height: 1.55; margin-bottom: 10px; }
.bksn   { width: 22px; height: 22px; border-radius: 50%; background: #E2136E; color: #fff; font-size: .625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.bksubmit { width: 100%; padding: 12px; background: #E2136E; color: #fff; border: none; border-radius: var(--r); font-family: 'Inter', sans-serif; font-size: .9375rem; font-weight: 700; cursor: pointer; transition: .15s; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 1rem; }
.bksubmit:hover { background: #be0c5b; }
.bksubmit:disabled { opacity: .5; cursor: not-allowed; }

/* ── Locked ── */
.locked-card { position: relative; overflow: hidden; }
.locked-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(249,248,246,.96) 68%); pointer-events: none; }
.locked-cta { position: absolute; bottom: 14px; left: 0; right: 0; padding: 0 16px; text-align: center; z-index: 2; }

/* ── Footer ── */
.footer { background: #111; color: #fff; padding: 40px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.flogo { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; }
.flinks { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.flinks a { font-size: .8125rem; color: rgba(255,255,255,.45); transition: color .15s; }
.flinks a:hover { color: #fff; }
.fcopy { font-size: .8125rem; color: rgba(255,255,255,.3); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.a1 { animation: fadeUp .5s ease .05s both; }
.a2 { animation: fadeUp .5s ease .12s both; }
.a3 { animation: fadeUp .5s ease .22s both; }
.a4 { animation: fadeUp .5s ease .32s both; }
.a5 { animation: fadeUp .5s ease .42s both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.reveal.v { opacity: 1; transform: translateY(0); }

/* ── AI output ── */
.aiout { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; font-size: .9375rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; max-height: 440px; overflow-y: auto; margin-top: 14px; }
.aiact { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ── Interview prep ── */
.qcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r2); padding: 16px; margin-bottom: 10px; box-shadow: var(--sh); }
.qcat  { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: .6875rem; font-weight: 700; background: var(--bg); color: var(--text3); margin-bottom: 8px; }
.qtxt  { font-size: .9375rem; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.qwhy  { font-size: .8125rem; color: var(--text3); margin-bottom: 10px; }
.qans  { font-size: .875rem; color: var(--text2); line-height: 1.65; padding: 10px 14px; background: var(--accent-l); border-radius: 7px; border-left: 3px solid var(--accent); }

/* ── Loading steps ── */
.ls    { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: var(--r); font-size: .875rem; color: var(--text3); margin-bottom: 6px; background: var(--white); border: 1px solid var(--border); transition: all .4s; box-shadow: var(--sh); }
.ls.on { background: var(--accent-l); border-color: var(--accent-b); color: var(--accent); font-weight: 600; }
.ls.dn { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.ls-d  { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ls.on .ls-d { animation: pulse .8s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.2} }

/* ── Mobile ── */
@media(max-width:768px) {
  .container { padding: 0 20px; }
  .nav-inner  { padding: 0 20px; }
  .nav-links  { display: none; }
  .frow       { grid-template-columns: 1fr; }
  .jgrid      { grid-template-columns: 1fr; }
  .sgrid      { grid-template-columns: 1fr 1fr; }
  .footer-in  { flex-direction: column; align-items: flex-start; }
}
@media(max-width:480px) {
  .container { padding: 0 16px; }
  .nav-inner  { padding: 0 16px; }
}
