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

:root {
  --dash-red: #ff2845;
  --dash-red-soft: #fff0f2;
  --dash-black: #03070d;
  --dash-text: #111318;
  --dash-muted: #737985;
  --dash-line: #e9e9ec;
  --dash-soft: #f7f7f8;
  --dash-green: #17b86a;
  --dash-radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.account-body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--dash-text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.account-topbar {
  height: 76px;
  padding: 0 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--dash-black);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.account-brand img { width: 50px; height: 50px; display: block; }
.account-brand { flex: 0 0 auto; }

.account-main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: auto;
}

.account-main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  opacity: .9;
  transition: opacity .2s;
}
.account-main-nav a:hover { opacity: 1; }

.account-actions { display: flex; align-items: center; gap: 12px; }
.round-action,
.profile-trigger {
  border: 1px solid #313844;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.round-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.profile-trigger {
  min-height: 40px;
  border-radius: 22px;
  padding: 6px 12px 6px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile-trigger img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.account-primary,
.account-secondary,
.account-ghost {
  min-height: 40px;
  border-radius: 22px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s;
}
.account-primary { border: 1px solid var(--dash-red); background: var(--dash-red); color: #fff; }
.account-primary:hover { transform: translateY(-1px); background: #ed1736; }
.account-secondary { border: 1px solid var(--dash-black); background: var(--dash-black); color: #fff; }
.account-ghost { border: 1px solid #cfd2d8; background: #fff; color: var(--dash-text); }
.account-ghost:hover { border-color: var(--dash-text); }

.profile-menu {
  position: fixed;
  top: 68px;
  right: 52px;
  width: 220px;
  background: #fff;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  z-index: 70;
  display: none;
}
.profile-menu.is-open { display: block; }
.profile-menu a { display: flex; gap: 10px; align-items: center; color: var(--dash-text); text-decoration: none; padding: 11px 12px; border-radius: 10px; }
.profile-menu a:hover { background: var(--dash-soft); }

.account-shell {
  width: min(1336px, calc(100% - 104px));
  margin: 40px auto 80px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 32px;
}

.account-sidebar {
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  padding: 18px 12px;
  min-height: 760px;
  align-self: start;
  position: sticky;
  top: 116px;
}

.account-person {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--dash-line);
  margin-bottom: 12px;
}
.account-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #f2f2f2; }
.company-person img { border-radius: 13px; }
.account-person strong { display: block; font-size: 13px; }
.account-person span { display: block; color: var(--dash-muted); font-size: 10px; margin-top: 4px; }

.account-side-nav { display: grid; gap: 5px; }
.side-link {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4e5664;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
}
.side-link i { width: 18px; text-align: center; font-size: 15px; }
.side-link:hover { color: var(--dash-text); background: var(--dash-soft); }
.side-link.is-active { color: var(--dash-red); background: var(--dash-red-soft); font-weight: 600; }
.side-link .nav-count { margin-left: auto; min-width: 21px; height: 21px; border-radius: 11px; background: var(--dash-red); color: #fff; display: grid; place-items: center; font-size: 10px; }

.account-main { min-width: 0; }
.account-view { display: none; }
.account-view.is-active { display: block; animation: view-in .25s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 2px 0 24px; }
.dashboard-heading h1 { margin: 0; font-size: 29px; letter-spacing: -.7px; line-height: 1.2; }
.dashboard-heading p { color: var(--dash-muted); margin: 7px 0 0; font-size: 12px; }
.dashboard-heading time { color: var(--dash-muted); font-size: 11px; white-space: nowrap; }

.overview-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.dashboard-card { border: 1px solid var(--dash-line); border-radius: var(--dash-radius); background: #fff; padding: 20px; }
.dashboard-card h2, .section-title h2 { font-size: 15px; margin: 0; }
.card-muted { color: var(--dash-muted); font-size: 11px; line-height: 1.55; }

.profile-progress { display: grid; grid-template-columns: 108px 1fr; gap: 18px; align-items: center; }
.progress-ring {
  --value: 84;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--dash-green) calc(var(--value) * 1%), #e8ecef 0);
  position: relative;
}
.progress-ring::after { content: ""; width: 73px; height: 73px; background: #fff; border-radius: 50%; position: absolute; }
.progress-ring strong { position: relative; z-index: 1; font-size: 22px; }
.profile-checklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; font-size: 11px; color: #505765; }
.profile-checklist i { color: var(--dash-green); margin-right: 6px; }
.profile-checklist .is-missing i { color: #adb2ba; }

.resume-card {
  border-radius: var(--dash-radius);
  padding: 22px;
  min-height: 100%;
  background: var(--dash-black);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.resume-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 14px; background: rgba(23,184,106,.18); color: #67dea5; font-size: 10px; font-weight: 600; }
.resume-card h2 { font-size: 20px; margin: 24px 0 8px; }
.resume-card p { color: #aeb6c2; font-size: 11px; margin: 0 0 26px; }
.resume-card .account-primary { width: 100%; }

.wide-card { grid-column: 1 / -1; }
.section-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.section-title p { margin: 4px 0 0; color: var(--dash-muted); font-size: 11px; }
.text-link { color: #1675ff; text-decoration: none; font-size: 11px; white-space: nowrap; background: none; border: 0; cursor: pointer; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-box { border: 1px solid var(--dash-line); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 11px; }
.stat-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #eef4ff; color: #2075ff; }
.stat-box:nth-child(2) .stat-icon { color: #7857e8; background: #f3efff; }
.stat-box:nth-child(3) .stat-icon { color: var(--dash-green); background: #ebfaf3; }
.stat-box strong { display: block; font-size: 19px; }
.stat-box span { color: var(--dash-muted); font-size: 10px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-grid.company-services { grid-template-columns: repeat(4, 1fr); }
.service-item { border: 1px solid var(--dash-line); border-radius: 15px; padding: 15px; min-width: 0; }
.service-head { display: flex; align-items: center; gap: 9px; min-height: 30px; }
.service-icon { width: 31px; height: 31px; border-radius: 10px; background: #f3efff; color: #7543df; display: grid; place-items: center; flex: 0 0 auto; }
.service-item:nth-child(2) .service-icon { background: #eef4ff; color: #2171ec; }
.service-item:nth-child(3) .service-icon { background: #fff3df; color: #f39b16; }
.service-item:nth-child(4) .service-icon { background: #fff0f2; color: var(--dash-red); }
.service-item h3 { margin: 0; font-size: 11px; line-height: 1.35; }
.service-item p { margin: 10px 0 15px; color: var(--dash-muted); font-size: 10px; line-height: 1.45; min-height: 29px; }
.service-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.service-price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.mini-buy { border: 0; background: transparent; color: var(--dash-red); padding: 4px; cursor: pointer; font-weight: 600; font-size: 10px; }
.promo-action { width: 100%; margin-top: 13px; }

.compact-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-top: 1px solid var(--dash-line); font-size: 10px; }
.compact-row > i { color: #f39b16; font-size: 16px; width: 22px; text-align: center; }
.compact-row strong { font-size: 11px; }
.compact-row .grow { flex: 1; min-width: 0; }
.compact-row time { color: var(--dash-muted); }
.status-pill { padding: 5px 9px; border-radius: 12px; background: #e8f8ef; color: #149856; font-size: 9px; font-weight: 600; }

.dashboard-columns { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; margin-top: 16px; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--dash-line); }
.list-row:first-of-type { border-top: 0; }
.company-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--dash-black); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.company-mark.red { background: var(--dash-red); }
.list-copy { flex: 1; min-width: 0; }
.list-copy strong { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-copy span { font-size: 9px; color: var(--dash-muted); display: block; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-meta { font-size: 9px; color: var(--dash-muted); text-align: right; white-space: nowrap; }

.company-summary { background: var(--dash-black); color: #fff; border-radius: var(--dash-radius); padding: 20px; }
.summary-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.summary-top h2 { margin: 0; font-size: 15px; }
.summary-metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.summary-metric { padding: 0 18px; border-left: 1px solid #29313c; }
.summary-metric:first-child { padding-left: 0; border-left: 0; }
.summary-metric strong { font-size: 24px; display: block; }
.summary-metric span { color: #99a3b0; font-size: 9px; display: block; margin-top: 5px; }

.vacancy-feature { display: flex; align-items: center; gap: 14px; }
.vacancy-feature img { width: 44px; height: 44px; border-radius: 13px; }
.vacancy-copy { flex: 1; min-width: 0; }
.vacancy-copy h3 { margin: 0; font-size: 16px; }
.vacancy-copy p { margin: 5px 0 8px; font-size: 10px; color: var(--dash-muted); }
.tiny-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tiny-tags span { border-radius: 10px; background: #f2f2f4; padding: 4px 7px; color: #626874; font-size: 8px; }
.salary-block { text-align: right; }
.salary-block strong { font-size: 14px; white-space: nowrap; }
.salary-block span { display: block; color: var(--dash-green); font-size: 9px; margin-top: 7px; }

.candidate-row { display: grid; grid-template-columns: minmax(170px,1.35fr) 1fr .7fr .65fr 22px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dash-line); font-size: 9px; }
.candidate-row.header { color: var(--dash-muted); background: var(--dash-soft); border: 0; padding: 8px 10px; border-radius: 10px; }
.candidate-info { display: flex; align-items: center; gap: 9px; min-width: 0; }
.candidate-info img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; flex: 0 0 auto; }
.candidate-info strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.candidate-info span { display: block; color: var(--dash-muted); margin-top: 3px; }
.stage-pill { justify-self: start; padding: 5px 8px; border-radius: 10px; background: #eaf2ff; color: #2774e8; }
.stage-pill.reviewed { background: #f1edff; color: #7752df; }

.payments-hero { background: var(--dash-black); color: #fff; border-radius: 22px; padding: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.payments-hero h2 { margin: 0 0 8px; font-size: 23px; }
.payments-hero p { margin: 0; color: #aab3bf; font-size: 11px; max-width: 610px; line-height: 1.6; }
.payments-hero .account-primary { flex: 0 0 auto; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.catalog-card { border: 1px solid var(--dash-line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; min-height: 230px; }
.catalog-card.is-featured { border-color: var(--dash-red); box-shadow: inset 0 0 0 1px var(--dash-red); }
.catalog-badge { align-self: flex-start; border-radius: 12px; background: var(--dash-red-soft); color: var(--dash-red); padding: 5px 8px; font-size: 9px; font-weight: 600; }
.catalog-card h3 { margin: 18px 0 8px; font-size: 14px; }
.catalog-card p { color: var(--dash-muted); font-size: 10px; line-height: 1.55; flex: 1; }
.catalog-price { font-size: 20px; font-weight: 700; margin: 10px 0 14px; }
.catalog-price span { font-size: 9px; color: var(--dash-muted); font-weight: 500; }

.payment-history { margin-top: 18px; }
.history-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.history-table th { text-align: left; font-weight: 500; color: var(--dash-muted); padding: 11px 8px; background: var(--dash-soft); }
.history-table td { padding: 14px 8px; border-bottom: 1px solid var(--dash-line); }

.empty-panel { border: 1px solid var(--dash-line); border-radius: 22px; min-height: 460px; display: grid; place-items: center; text-align: center; padding: 40px; }
.empty-panel i { font-size: 28px; color: var(--dash-red); }
.empty-panel h2 { margin: 15px 0 8px; }
.empty-panel p { color: var(--dash-muted); max-width: 480px; line-height: 1.6; }

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3,7,13,.66);
}
.account-modal.is-open { display: flex; }
.modal-panel { width: min(520px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal-head p { color: var(--dash-muted); margin: 6px 0 0; font-size: 10px; }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--dash-line); background: #fff; border-radius: 50%; cursor: pointer; }
.modal-product { margin: 20px 0; background: var(--dash-black); color: #fff; border-radius: 17px; padding: 17px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.modal-product strong { display: block; font-size: 13px; }
.modal-product span { color: #aab3bf; font-size: 10px; display: block; margin-top: 5px; }
.modal-product b { white-space: nowrap; font-size: 18px; }
.field { display: grid; gap: 7px; margin-top: 14px; }
.field label { font-size: 10px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid #d9dce1; border-radius: 12px; padding: 10px 12px; color: var(--dash-text); background: #fff; outline: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--dash-red); box-shadow: 0 0 0 3px rgba(255,40,69,.09); }
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.method-choice { border: 1px solid var(--dash-line); border-radius: 13px; padding: 12px; cursor: pointer; display: flex; align-items: center; gap: 9px; font-size: 10px; }
.method-choice:has(input:checked) { border-color: var(--dash-red); background: var(--dash-red-soft); }
.modal-submit { width: 100%; margin-top: 8px; }
.modal-note { color: var(--dash-muted); text-align: center; font-size: 9px; line-height: 1.5; margin: 12px 0 0; }

.account-toast { position: fixed; right: 28px; bottom: 28px; z-index: 120; background: var(--dash-black); color: #fff; border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 10px; transform: translateY(90px); opacity: 0; pointer-events: none; transition: .3s; box-shadow: 0 18px 55px rgba(0,0,0,.24); font-size: 11px; }
.account-toast.is-visible { transform: none; opacity: 1; }
.account-toast i { color: #52dc98; }

@media (max-width: 1120px) {
  .account-main-nav { display: none; }
  .account-shell { width: calc(100% - 48px); grid-template-columns: 190px minmax(0,1fr); gap: 20px; }
  .service-grid.company-services, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .candidate-row { grid-template-columns: minmax(170px,1.4fr) 1fr .8fr 22px; }
  .candidate-row > :nth-child(4) { display: none; }
}

@media (max-width: 800px) {
  .account-topbar { height: 68px; padding: 0 18px; }
  .account-topbar .account-primary { display: none; }
  .profile-trigger span { display: none; }
  .profile-menu { right: 18px; }
  .account-shell { width: calc(100% - 28px); margin-top: 22px; display: block; }
  .account-sidebar { min-height: 0; position: static; margin-bottom: 20px; padding: 10px; }
  .account-person { display: none; }
  .account-side-nav { display: flex; overflow-x: auto; gap: 7px; scrollbar-width: none; }
  .account-side-nav::-webkit-scrollbar { display: none; }
  .side-link { width: auto; white-space: nowrap; padding: 0 14px; }
  .side-link .nav-count { margin-left: 2px; }
  .dashboard-heading h1 { font-size: 23px; }
  .dashboard-heading time { display: none; }
  .overview-grid, .dashboard-columns { grid-template-columns: 1fr; }
  .stats-row, .service-grid, .service-grid.company-services { grid-template-columns: 1fr; }
  .service-item p { min-height: 0; }
  .summary-metrics { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .summary-metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .vacancy-feature { align-items: flex-start; flex-wrap: wrap; }
  .salary-block { width: 100%; text-align: left; padding-left: 58px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .payments-hero { align-items: flex-start; flex-direction: column; }
  .candidate-row { grid-template-columns: 1fr .7fr 22px; }
  .candidate-row > :nth-child(2), .candidate-row > :nth-child(4) { display: none; }
  .history-table { min-width: 620px; }
  .table-scroll { overflow-x: auto; }
}

@media (max-width: 480px) {
  .round-action.search-action { display: none; }
  .account-actions { gap: 7px; }
  .profile-trigger { padding-right: 7px; }
  .dashboard-card { padding: 16px; border-radius: 17px; }
  .profile-progress { grid-template-columns: 86px 1fr; gap: 10px; }
  .progress-ring { width: 78px; height: 78px; }
  .progress-ring::after { width: 59px; height: 59px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-box:last-child { grid-column: 1 / -1; }
  .summary-metrics { grid-template-columns: 1fr 1fr; }
  .modal-panel { padding: 18px; border-radius: 20px; }
  .payment-methods { grid-template-columns: 1fr; }
}

.account-menu-toggle{display:none;width:44px;height:44px;border:1px solid rgba(255,255,255,.28);border-radius:12px;background:transparent;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}
.account-menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:#fff}
.account-menu-backdrop{display:none;position:fixed;inset:0;z-index:89;border:0;background:rgba(6,9,15,.58)}
@media(max-width:800px){
  .account-menu-toggle{display:flex}
  .account-sidebar{display:block!important;position:fixed!important;z-index:90;inset:0 auto 0 0;width:min(330px,calc(100vw - 42px));height:100dvh;overflow:auto;margin:0!important;padding:88px 18px 24px!important;border-radius:0 24px 24px 0;transform:translateX(-105%);transition:transform .25s ease;background:#fff;box-shadow:20px 0 60px rgba(0,0,0,.2)}
  .account-menu-open .account-sidebar{transform:translateX(0)}
  .account-menu-open .account-menu-backdrop{display:block}
  .account-menu-open{overflow:hidden}
  .account-person{display:flex!important}
  .account-side-nav{display:grid!important;overflow:visible!important;gap:6px!important}
  .side-link{width:100%!important;white-space:normal!important}
  .live-logout{margin-top:24px!important}
}
