/* =====================================================================
   ResumeGo design system — single source of truth for colors, type,
   radii and buttons. Loaded LAST, after style.css.
   Colors in other CSS/templates must use these variables, not hex.
   ===================================================================== */
:root {
  /* brand */
  --rg-primary: #535ee0;
  --rg-primary-hover: #4349c9;
  --rg-primary-soft: #eef0ff;
  --rg-primary-200: #c9cdfa;
  --rg-primary-ink: #3c43a8;
  --rg-navy: #1e2a78;
  /* neutrals */
  --rg-ink: #1e293b;
  --rg-text: #475569;
  --rg-muted: #64748b;
  --rg-subtle: #94a3b8;
  --rg-border: #e2e8f0;
  --rg-border-strong: #cbd5e1;
  --rg-bg: #f8fafc;
  --rg-white: #ffffff;
  /* status */
  --rg-success: #10b981;
  --rg-success-hover: #059669;
  --rg-success-soft: #ecfdf5;
  --rg-warning: #f59e0b;
  --rg-warning-soft: #fffbeb;
  --rg-warning-ink: #92400e;
  --rg-danger: #ef4444;
  --rg-danger-hover: #dc2626;
  --rg-danger-soft: #fef2f2;
  --rg-danger-ink: #b91c1c;
  /* type: 13 / 15 / 17 / 20 / 24 / 32 / 44 */
  --rg-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rg-fs-xs: 13px;
  --rg-fs-sm: 15px;
  --rg-fs-md: 17px;
  --rg-fs-lg: 20px;
  --rg-fs-xl: 24px;
  --rg-fs-2xl: 32px;
  --rg-fs-3xl: 44px;
  /* shape */
  --rg-radius: 10px;
  --rg-radius-lg: 16px;
  --rg-radius-pill: 999px;
  --rg-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --rg-focus: 0 0 0 3px rgba(83, 94, 224, .25);
}

/* ---------- base ---------- */
body { font-family: var(--rg-font); color: var(--rg-text); }
h1, h2, h3, h4, h5, h6 { font-family: var(--rg-font); color: var(--rg-ink); }
a { color: var(--rg-primary); }
a:hover, a:focus { color: var(--rg-primary-hover); }
::selection { background: var(--rg-primary-200); color: var(--rg-ink); }

/* ---------- buttons ---------- */
.rg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rg-btn, .button-round, .outline-round {
  text-align: center;
  font-family: var(--rg-font); font-size: var(--rg-fs-sm); font-weight: 600; line-height: 1.2;
  padding: 12px 20px; border-radius: var(--rg-radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.rg-btn:focus-visible, .button-round:focus-visible, .outline-round:focus-visible { outline: none; box-shadow: var(--rg-focus); }
.rg-btn-lg { font-size: var(--rg-fs-md); padding: 15px 26px; }
.rg-btn-sm { font-size: var(--rg-fs-xs); padding: 8px 14px; }

.rg-btn-primary, .button-round { background: var(--rg-primary); color: #fff; border-color: var(--rg-primary); }
.rg-btn-primary:hover, .rg-btn-primary:focus, .button-round:hover, .button-round:focus, .button-round:active { background: var(--rg-primary-hover); border-color: var(--rg-primary-hover); color: #fff; }

.rg-btn-secondary, .outline-round { background: transparent; color: var(--rg-primary); border-color: var(--rg-primary); }
.rg-btn-secondary:hover, .rg-btn-secondary:focus, .outline-round:hover, .outline-round:focus, .outline-round:active { background: var(--rg-primary-soft); border-color: var(--rg-primary-hover); color: var(--rg-primary-hover); }

.rg-btn-success { background: var(--rg-success); color: #fff; border-color: var(--rg-success); }
.rg-btn-success:hover, .rg-btn-success:focus { background: var(--rg-success-hover); border-color: var(--rg-success-hover); color: #fff; }

.rg-btn-link { background: none; border-color: transparent; color: var(--rg-primary); padding-left: 4px; padding-right: 4px; }
.rg-btn-link:hover, .rg-btn-link:focus { color: var(--rg-primary-hover); text-decoration: underline; }

/* white outline variant on dark hero backgrounds */
.outline-round.outline-round-white { color: #fff; border-color: rgba(255,255,255,.85); background: transparent; }
.outline-round.outline-round-white:hover, .outline-round.outline-round-white:focus { background: #fff; border-color: #fff; color: var(--rg-primary); }

/* ---------- badges / cards ---------- */
.rg-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--rg-radius-pill); font-size: 12px; font-weight: 600; background: var(--rg-primary-soft); color: var(--rg-primary-ink); }
.rg-card { background: #fff; border: 1px solid var(--rg-border); border-radius: var(--rg-radius-lg); padding: 24px; }

/* ---------- form controls ---------- */
input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=password]:focus, input[type=search]:focus, input[type=number]:focus, textarea:focus, select:focus {
  border-color: var(--rg-primary); box-shadow: var(--rg-focus); outline: none;
}

/* ---------- blog article figures ---------- */
.rg-article-figure { margin: 28px 0; }
.rg-article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rg-border); border-radius: var(--rg-radius-lg); }
.rg-article-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--rg-muted); line-height: 1.5; }

/* Sidebar "Популярное": titles in 2 lines with ellipsis */
.widget-post-thumb .post-content h5 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Header: compact nav + «Сервисы» mega menu (2026-11-18) ===== */
.rg-nav { display: flex; align-items: center; gap: 2px; }
.rg-nav-item { position: relative; }
.site-header .rg-nav-link, .rg-nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; color: var(--rg-ink); font-weight: 500; font-size: 15px; line-height: 1.2; background: none; border: 0; cursor: pointer; text-decoration: none; font-family: inherit; white-space: nowrap; }
.site-header .rg-nav-link:hover, .rg-nav-has-menu.is-open .rg-nav-trigger { background: var(--rg-bg); color: var(--rg-primary); }
.rg-nav-trigger svg { transition: transform .2s; }
.rg-nav-has-menu.is-open .rg-nav-trigger svg { transform: rotate(180deg); }
.rg-mega { position: absolute; top: calc(100% + 12px); left: -24px; display: grid; grid-template-columns: repeat(3, 268px); gap: 0; padding: 18px 8px; background: #fff; border: 1px solid var(--rg-border); border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 1000; }
.rg-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.rg-nav-has-menu.is-open .rg-mega { opacity: 1; visibility: visible; transform: none; }
.rg-mega-col { padding: 0 10px; }
.rg-mega-col + .rg-mega-col { border-left: 1px solid var(--rg-border); }
.rg-mega-title { font-size: 12px; font-weight: 500; color: var(--rg-muted); margin: 0 0 6px 10px; }
.site-header .rg-mega-link, .rg-mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; text-decoration: none; white-space: normal; }
.rg-mega-link:hover { background: var(--rg-bg); }
.rg-mega-link b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--rg-ink); }
.rg-mega-link:hover b { color: var(--rg-primary); }
.rg-mega-link small { display: block; font-size: 12.5px; color: var(--rg-muted); line-height: 1.35; margin-top: 2px; font-weight: 400; }
.rg-mega-ico { flex: 0 0 22px; color: var(--rg-primary); margin-top: 1px; }
.rg-mega-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.site-header .rg-nav-cta { margin-left: 14px; padding: 10px 18px; font-size: 14.5px; white-space: nowrap; color: #fff; }
.site-header .header-btn .button-round { background: transparent; color: var(--rg-primary-ink); border: 1px solid var(--rg-primary-200); box-shadow: none; margin-left: 8px; }
.site-header .header-btn .button-round:hover { background: var(--rg-primary-soft); color: var(--rg-primary-ink); }
@media (min-width: 1100px) { .rg-hamburger { display: none !important; } }
@media (max-width: 1099px) { .rg-nav, .site-header .rg-nav-cta { display: none; } .rg-hamburger { display: flex !important; align-items: center; justify-content: center; } }
@media (max-width: 575px) { .site-header .header-btn { display: none !important; } }
/* drawer groups */
.rg-drawer-groups { list-style: none; padding: 6px 0 12px; }
.rg-drawer-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--rg-muted); padding: 16px 24px 4px; }
.rg-drawer-groups a { display: block; padding: 10px 24px; color: var(--rg-ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.rg-drawer-groups a:hover { background: var(--rg-bg); color: var(--rg-primary); }
.rg-drawer-btn { display: grid; gap: 8px; }
.rg-drawer-btn .rg-drawer-cta { width: 100%; justify-content: center; }

/* ===== Clean design pass (2026-11-18): flat cards, no gradients in blocks, no left accent bars =====
   Card = white + 1px border, no shadow. Shadows only for popovers, modals and paper previews. */
.pricing-item, .home-blog .post, .testimonial-item, .rg-examples-grid a, .rg-example-template-wrap,
.cv-plan, .cv-plan.is-featured, .cv-ready-upsell, .cv-ready-upsell-strip-item.is-featured, .letter-ready-card,
.rg-tpl-card, .rg-tpl-card:hover, .cv-action-btn, .rg-check-scorecard { box-shadow: none !important; }

/* blocks: no gradients */
.cv-ready-upsell, .letter-upsell, .letter-meta, .letter-text-wrap, .trusted-brand-card,
.rg-cover-source-box, .rg-cover-mini-cta, .rg-cover-upload-box, .rg-cover-output, .rg-cover-paywall,
.cv-ready-diagnostic-list li { background-image: none !important; background-color: #fff !important; }
.cv-ready-diagnostic-score, .letter-score { background-image: none !important; background-color: var(--rg-primary) !important; }
.rg-cover-score { background-image: none !important; background-color: var(--rg-primary-ink) !important; box-shadow: none !important; }

/* no left accent bars: soft panel instead */
.single-content-wrap .rg-article-note, .rg-iq-answer, .rg-example-quote, .rg-letter-example {
  border-left: 0 !important; background: var(--rg-bg) !important; border-radius: 12px !important; padding: 16px 18px !important; }
.rg-drawer-nav li a { border-left: 0 !important; }

/* letter page: flat panels */
.rg-cover-hero, .rg-cover-card, .rg-cover-tab.active, .rg-cover-btn-primary { box-shadow: none !important; }
.rg-cover-card { border: 1px solid var(--rg-border) !important; }

/* header: restore original scale (16px semibold links, ~76px bar, roomier buttons) */
.site-header .hgroup-wrap { min-height: 76px; }
.rg-nav { gap: 6px; }
.site-header .rg-nav-link, .rg-nav-link { font-size: 16px; font-weight: 600; padding: 10px 14px; }
.site-header .rg-nav-cta { margin-left: 18px; padding: 13px 22px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.site-header .header-btn .button-round { margin-left: 10px; padding: 13px 22px; font-size: 15px; border-radius: 10px; }
.rg-mega { top: calc(100% + 18px); }
.rg-mega::before { top: -20px; height: 20px; }
@media (min-width: 1100px) and (max-width: 1260px) { .site-header .rg-nav-link { padding: 10px 10px; } .site-header .rg-nav-cta, .site-header .header-btn .button-round { padding: 12px 16px; } }

/* mobile tables: fit the screen — fixed layout, equal columns, compact cells, long words wrap */
@media (max-width: 640px) {
  .rg-article-table, .rg-tpls-text table, .rg-letter-table, .rg-example-guide table, .rg-hub-guide table, .single-content-wrap table {
    display: table !important; table-layout: fixed; width: 100% !important; max-width: 100%; font-size: 13.5px !important; overflow-wrap: anywhere; }
  .rg-article-table th, .rg-article-table td, .rg-tpls-text th, .rg-tpls-text td, .rg-letter-table th, .rg-letter-table td,
  .rg-example-guide th, .rg-example-guide td, .rg-hub-guide th, .rg-hub-guide td, .single-content-wrap table th, .single-content-wrap table td {
    padding: 8px 9px !important; line-height: 1.4 !important; hyphens: auto; -webkit-hyphens: auto; }
}

/* mobile home: smaller hero photo so the constructor starts sooner */
@media (max-width: 575px) {
  .banner-img { max-height: 220px; overflow: hidden; display: flex; justify-content: center; margin: 8px auto 0; width: 100%; }
  .banner-img img { max-height: 220px; width: auto; object-fit: contain; }
}

/* mobile ready page: action buttons in an even 2-column grid */
@media (max-width: 575px) {
  body .cv-ready-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  body .cv-ready-actions .cv-action-btn { width: 100%; justify-content: center; text-align: center; padding: 11px 8px; font-size: 13px; line-height: 1.25; }
}

/* ===== Registration page and login dialog (2026-11-18) ===== */
.rg-auth { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 380px); gap: 32px; align-items: start; margin: 8px 0 40px; }
.rg-auth-card { background: #fff; border: 1px solid var(--rg-border); border-radius: 16px; padding: 28px; }
.rg-auth-title { margin: 0 0 4px; font-size: 24px; color: var(--rg-ink); }
.rg-auth-sub { margin: 0 0 20px; font-size: 14px; color: var(--rg-muted); }
.rg-auth-sub a { color: var(--rg-primary); font-weight: 600; }
.rg-auth-field { margin-bottom: 14px; }
.rg-auth-field label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--rg-ink); }
.rg-auth input[type=text], .rg-auth input[type=email], .rg-auth input[type=password] { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--rg-border); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; color: var(--rg-ink); box-sizing: border-box; }
.rg-auth input:focus { outline: none; border-color: var(--rg-primary); box-shadow: 0 0 0 3px var(--rg-primary-soft); }
.rg-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rg-auth-captcha-row { display: flex; gap: 12px; align-items: center; }
.rg-auth-captcha-row input { max-width: 160px; }
.rg-auth-captcha-row img { height: 46px; border-radius: 8px; border: 1px solid var(--rg-border); }
.rg-auth-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; font-size: 13px; line-height: 1.45; color: var(--rg-text); cursor: pointer; font-weight: 400; }
.rg-auth-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rg-primary); }
.rg-auth-consent a { color: var(--rg-primary); }
.rg-auth-submit { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.rg-auth-done h2 { margin: 0 0 8px; font-size: 22px; }
.rg-auth-done p { color: var(--rg-text); margin-bottom: 16px; }
.rg-auth-side h3 { margin: 4px 0 14px; font-size: 18px; color: var(--rg-ink); }
.rg-auth-side ul { list-style: none; padding: 0; margin: 0 0 18px; }
.rg-auth-side li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 14.5px; line-height: 1.5; color: var(--rg-text); }
.rg-auth-side li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--rg-primary-soft); }
.rg-auth-side li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 5px; height: 8px; border: solid var(--rg-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rg-auth-side li b { color: var(--rg-ink); }
.rg-auth-note { background: var(--rg-bg); border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.5; color: var(--rg-text); }
.rg-auth-note b { display: block; color: var(--rg-ink); margin-bottom: 4px; }
.rg-auth-note a { display: inline-block; margin-top: 8px; color: var(--rg-primary); font-weight: 600; }
@media (max-width: 860px) { .rg-auth { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rg-auth-card { padding: 20px 16px; } .rg-auth-row { grid-template-columns: 1fr; gap: 0; } }

/* login dialog (jQuery UI) */
.ui-dialog { border-radius: 16px !important; background: #fff !important; border: 1px solid var(--rg-border) !important; box-shadow: 0 24px 60px rgba(15, 23, 42, .18) !important; max-width: calc(100vw - 24px); }
.ui-dialog .ui-dialog-titlebar { padding: 20px 24px 6px; }
.ui-dialog .ui-dialog-title { font-size: 20px; font-weight: 700; color: var(--rg-ink); }
.ui-dialog .ui-dialog-titlebar-close { width: 36px !important; height: 36px !important; border-radius: 50% !important; border: 1px solid var(--rg-border) !important; background: #fff !important; right: 16px !important; top: 16px !important; margin: 0 !important; display: grid !important; place-items: center; padding: 0 !important; }
.ui-dialog .ui-dialog-titlebar-close::before { content: "\00d7" !important; font-family: Arial, sans-serif !important; font-weight: 400 !important; font-size: 22px !important; line-height: 1; color: var(--rg-muted); }
.ui-dialog .ui-dialog-titlebar-close:hover { border-color: var(--rg-primary-200) !important; }
.ui-dialog .ui-dialog-titlebar-close:hover::before { color: var(--rg-ink); }
.ui-dialog .ui-dialog-content { padding: 14px 24px 22px; }
#div_modal_dle .form-group { margin-bottom: 12px; }
#div_modal_dle input[type=text], #div_modal_dle input[type=password] { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--rg-border) !important; border-radius: 10px; background: #fff !important; font-size: 15px; box-sizing: border-box; }
#div_modal_dle input[type=text]:focus, #div_modal_dle input[type=password]:focus { outline: none; border-color: var(--rg-primary) !important; box-shadow: 0 0 0 3px var(--rg-primary-soft); }
#div_modal_dle .admin_checkboxs { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px !important; }
#div_modal_dle .admin_checkboxs input { width: 17px; height: 17px; margin: 0; accent-color: var(--rg-primary); }
#div_modal_dle .admin_checkboxs label { margin: 0; font-size: 14px; color: var(--rg-text); }
#div_modal_dle #login-submit-btn { height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; background: var(--rg-primary); }
#div_modal_dle .hfgGFsdj { margin-top: 14px; font-size: 13.5px; }
#div_modal_dle .hfgGFsdj a { color: var(--rg-primary) !important; }

/* login dialog close: same drawn cross as constructor modals */
.ui-dialog .ui-dialog-titlebar-close { position: absolute !important; display: block !important; }
.ui-dialog .ui-dialog-titlebar-close::before, .ui-dialog .ui-dialog-titlebar-close::after { content: "" !important; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; border-radius: 2px; background: var(--rg-muted); font-size: 0 !important; }
.ui-dialog .ui-dialog-titlebar-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.ui-dialog .ui-dialog-titlebar-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ui-dialog .ui-dialog-titlebar-close:hover::before, .ui-dialog .ui-dialog-titlebar-close:hover::after { background: var(--rg-ink); }
.ui-dialog .ui-dialog-titlebar-close .ui-icon, .ui-dialog .ui-dialog-titlebar-close .ui-button-text { display: none !important; }

/* --- Ready page: resume score card (same look as the constructor's score modal) --- */
.cv-ats { margin-top: 18px; padding: 20px 22px; background: #fff; border: 1px solid var(--rg-border); border-radius: 16px; }
.cv-ats-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rg-border); }
.cv-ats-headtext { flex: 1; min-width: 0; }
.cv-ats-headtext h4 { margin: 0 0 3px; font-size: 18px; color: var(--rg-ink); }
.cv-ats-headtext p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--rg-muted); }
.cv-ats-edit { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--rg-border); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--rg-ink) !important; text-decoration: none !important; background: #fff; }
.cv-ats-edit:hover { border-color: var(--rg-primary); color: var(--rg-primary) !important; }
.cv-ats .rg-ats2-list { margin: 4px 0 0; }
.cv-ats-more { display: block !important; font-size: 13.5px; color: var(--rg-muted); }
.cv-ats-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--rg-bg); }
.cv-ats-foot span { flex: 1 1 260px; font-size: 14px; line-height: 1.45; color: var(--rg-text); }
.cv-ats-foot .cv-action-btn { flex: 0 0 auto; }
/* ring + checklist (copy of .rg-ats2-* from generator app.css, which this page does not load) */
.rg-ats2-ring { --p: 0; --c: #94a3b8; flex: 0 0 68px; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; position: relative; isolation: isolate;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #eef0f4 0); font-size: 22px; font-weight: 800; color: var(--rg-ink); }
.rg-ats2-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; z-index: -1; }
.rg-ats2-ring[data-tone="low"] { --c: #ef4444; } .rg-ats2-ring[data-tone="mid"] { --c: #f59e0b; } .rg-ats2-ring[data-tone="high"] { --c: #16a34a; }
.rg-ats2-ring[data-tone="idle"] { color: var(--rg-muted); }
.rg-ats2-list { list-style: none; margin: 0; padding: 0; }
.rg-ats2-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rg-border); }
.rg-ats2-list li:last-child { border-bottom: 0; }
.rg-ats2-ico { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; position: relative; }
.is-ok .rg-ats2-ico { background: #dcfce7; }
.is-ok .rg-ats2-ico::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 10px; border: solid #16a34a; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.is-warn .rg-ats2-ico { background: #fef3c7; }
.is-warn .rg-ats2-ico::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 13px/1 Arial, sans-serif; color: #b45309; }
.is-miss .rg-ats2-ico { background: #f1f5f9; }
.is-miss .rg-ats2-ico::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2.5px; border-radius: 2px; background: #94a3b8; }
.rg-ats2-list li > div { flex: 1; min-width: 0; }
.rg-ats2-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rg-ats2-row b { font-size: 14.5px; color: var(--rg-ink); font-weight: 600; }
.rg-ats2-row small { font-size: 13px; color: var(--rg-muted); text-align: right; }
.rg-ats2-fix { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--rg-text); }
@media (max-width: 575px) {
  .cv-ats { padding: 16px; }
  .cv-ats-head { flex-wrap: wrap; }
  .cv-ats-edit { width: 100%; text-align: center; }
  .rg-ats2-ring { flex-basis: 56px; width: 56px; height: 56px; font-size: 18px; }
  .rg-ats2-row { flex-direction: column; gap: 2px; } .rg-ats2-row small { text-align: left; }
  .cv-ats-foot .cv-action-btn { width: 100%; justify-content: center; }
}

/* --- Ready page: pre-payment modal (#rgPay) --- */
.rg-pay { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .5); }
.rg-pay.is-open { display: flex; }
.rg-pay-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 26px 26px 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); }
.rg-pay-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rg-border); background: #fff; cursor: pointer; color: var(--rg-muted); padding: 0; }
.rg-pay-close::before, .rg-pay-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; border-radius: 2px; background: currentColor; }
.rg-pay-close::before { transform: translate(-50%, -50%) rotate(45deg); } .rg-pay-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.rg-pay-close:hover { color: var(--rg-ink); }
.rg-pay-head { padding-right: 40px; margin-bottom: 14px; }
.rg-pay-plan { font-size: 15px; font-weight: 600; color: var(--rg-primary); margin-bottom: 4px; }
.rg-pay-price b { display: block; font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--rg-ink); }
.rg-pay-price span { font-size: 14px; color: var(--rg-muted); }
.rg-pay-list { list-style: none; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid var(--rg-border); }
.rg-pay-list li { position: relative; padding: 5px 0 5px 28px; font-size: 15px; line-height: 1.4; color: var(--rg-text); }
.rg-pay-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; }
.rg-pay-list li::after { content: ""; position: absolute; left: 8.5px; top: 10px; width: 5px; height: 9px; border: solid #16a34a; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.rg-pay-trust { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: var(--rg-bg); font-size: 13.5px; color: var(--rg-text); }
.rg-pay-trust span::before { content: "✓ "; color: #16a34a; font-weight: 700; }
.rg-pay-go { display: block; width: 100%; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--rg-primary); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.rg-pay-go:hover { background: var(--rg-primary-hover); } .rg-pay-go:disabled { opacity: .7; cursor: default; }
.rg-pay-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--rg-muted); text-align: center; }
.rg-pay-switch { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 1px dashed var(--rg-border-strong); border-radius: 10px; background: #fff; color: var(--rg-primary); font-size: 14px; font-weight: 600; cursor: pointer; }
.rg-pay-switch[hidden] { display: none; }
@media (max-width: 575px) { .rg-pay { align-items: flex-end; padding: 0; } .rg-pay-card { max-width: none; border-radius: 20px 20px 0 0; padding: 22px 18px 18px; } }
