:root {
  --afg-navy: #07152d;
  --afg-navy-2: #0d1f3b;
  --afg-navy-3: #14284b;
  --afg-pink: #ff2c68;
  --afg-pink-2: #ff5f90;
  --afg-white: #ffffff;
  --afg-bg: #f5f6fa;
  --afg-border: #e7eaf1;
  --afg-text: #101a31;
  --afg-muted: #6f778a;
  --afg-success: #1f9d68;
  --afg-warning: #dd8b16;
  --afg-shadow: 0 20px 60px rgba(16, 26, 49, .10);
  --afg-radius: 20px;
  --afg-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--afg-font); color: var(--afg-text); background: var(--afg-white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.afg-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.afg-section { padding: 92px 0; }
.afg-section-light { background: var(--afg-bg); }
.afg-content-narrow { width: min(840px, calc(100% - 40px)); }
.afg-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #ff79a1; letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
.afg-kicker.dark { color: var(--afg-pink); }
.afg-lead { font-size: 1.08rem; color: rgba(255,255,255,.72); }
.afg-section-light .afg-lead { color: var(--afg-muted); }
.afg-section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.afg-section-head h2, .afg-split h2, .afg-register h2 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; letter-spacing: -.04em; }
.afg-section-head p { margin: 0; color: var(--afg-muted); font-size: 1.05rem; }

.afg-site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,21,45,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.06); }
.afg-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.afg-brand { display: inline-flex; flex-direction: column; line-height: .86; align-items: flex-start; letter-spacing: .03em; }
.afg-brand .custom-logo { max-height: 50px; width: auto; }
.afg-brand-mark { color: var(--afg-pink); font-size: 2rem; font-weight: 900; letter-spacing: .03em; }
.afg-brand-sub { color: #fff; font-weight: 800; font-size: .92rem; letter-spacing: .13em; }
.afg-primary-nav { display: flex; align-items: center; gap: 24px; }
.afg-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.afg-menu a { color: rgba(255,255,255,.9); font-size: .89rem; font-weight: 650; transition: color .2s ease; }
.afg-menu a:hover { color: var(--afg-pink-2); }
.afg-menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 8px; }
.afg-menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: #fff; margin: 5px 0; }

.afg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font-size: .82rem; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.afg-btn:hover { transform: translateY(-2px); }
.afg-btn-primary { color: #fff; background: linear-gradient(135deg, var(--afg-pink), #ff486f); box-shadow: 0 10px 24px rgba(255,44,104,.24); }
.afg-btn-outline { color: #fff; border-color: var(--afg-pink); background: transparent; }
.afg-header-cta { min-height: 42px; }

.afg-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 67% 35%, rgba(202,46,186,.22), transparent 32%), linear-gradient(125deg, #07152d 0%, #0a1731 48%, #210f3c 100%); color: #fff; }
.afg-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.afg-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 650px; align-items: center; gap: 60px; }
.afg-hero-copy { padding: 78px 0 84px; }
.afg-hero h1 { max-width: 620px; margin: 0; font-size: clamp(3rem, 5.2vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
.afg-hero h1::first-line { color: #fff; }
.afg-hero-copy > p { max-width: 620px; margin: 28px 0 30px; font-size: 1.12rem; color: rgba(255,255,255,.8); }
.afg-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0 34px; }
.afg-mini-feature { display: flex; gap: 12px; align-items: flex-start; }
.afg-mini-feature strong { display: block; font-size: .86rem; margin-bottom: 3px; }
.afg-mini-feature small { display: block; color: rgba(255,255,255,.65); font-size: .73rem; line-height: 1.35; }
.afg-icon { display: inline-flex; flex: 0 0 auto; color: var(--afg-pink); }
.afg-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.afg-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.afg-hero-media { position: relative; align-self: stretch; min-height: 560px; display: flex; align-items: flex-end; justify-content: center; }
.afg-hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(to top, #0a1731 0%, transparent 100%); pointer-events: none; }
.afg-hero-media img { position: absolute; right: -12%; bottom: 0; width: 112%; height: 94%; object-fit: cover; object-position: center top; border-radius: 80px 0 0 0; opacity: .96; }
.afg-hero-orbit { display:none; }
.afg-floating-card { position: absolute; z-index: 4; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(7,21,45,.76); backdrop-filter: blur(12px); box-shadow: 0 16px 34px rgba(0,0,0,.2); font-size: .82rem; }
.afg-floating-card-top { top: 19%; left: -3%; }
.afg-floating-card-bottom { right: 2%; bottom: 14%; }
.afg-floating-card-bottom strong { color: var(--afg-pink-2); font-size: 1.25rem; margin-right: 5px; }
.afg-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #38d39f; margin-right: 6px; }

.afg-statbar { background: #0b1f3f; color: #fff; border-top: 1px solid rgba(255,255,255,.06); }
.afg-statbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.afg-statbar-grid > div { padding: 30px 20px; display: grid; grid-template-columns: 34px auto; grid-template-rows: auto auto; gap: 0 10px; justify-content: center; align-items: center; border-right: 1px solid rgba(255,255,255,.08); }
.afg-statbar-grid > div:last-child { border-right: 0; }
.afg-statbar .afg-icon { grid-row: 1 / span 2; }
.afg-statbar strong { font-size: 1rem; }
.afg-statbar span:not(.afg-icon) { font-size: .78rem; color: rgba(255,255,255,.68); }

.afg-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.afg-steps article { background: #fff; border: 1px solid var(--afg-border); border-radius: var(--afg-radius); padding: 30px; box-shadow: 0 12px 35px rgba(16,26,49,.04); }
.afg-steps article > span { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,44,104,.1); color: var(--afg-pink); font-weight: 900; }
.afg-steps h3 { margin: 22px 0 8px; }
.afg-steps p { margin: 0; color: var(--afg-muted); font-size: .94rem; }

.afg-requirements { background: linear-gradient(135deg, #06142b 0%, #0d1d3a 55%, #24113f 100%); color: #fff; position: relative; overflow: hidden; }
.afg-requirements::after { content: ""; position: absolute; right: -180px; top: -180px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,44,104,.18), transparent 70%); }
.afg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.afg-checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.afg-checklist li { display: flex; gap: 13px; align-items: flex-start; color: rgba(255,255,255,.78); }
.afg-checklist li strong { color: #fff; }
.afg-checklist .afg-icon svg { width: 22px; height: 22px; }
.afg-section-light .afg-checklist li, .afg-registration-aside .afg-checklist li { color: var(--afg-muted); }
.afg-section-light .afg-checklist li strong, .afg-registration-aside .afg-checklist li strong { color: var(--afg-text); }
.afg-device-card { display: flex; justify-content: center; }
.afg-phone-shell { width: 315px; padding: 10px; border-radius: 46px; background: #050910; border: 4px solid #29303b; box-shadow: 0 35px 80px rgba(0,0,0,.4); transform: rotate(2deg); }
.afg-phone-screen { min-height: 590px; padding: 60px 24px 28px; border-radius: 34px; background: radial-gradient(circle at 70% 20%, rgba(255,44,104,.25), transparent 28%), linear-gradient(180deg, #101f3e 0%, #07152d 100%); }
.afg-phone-notch { position: absolute; }
.afg-phone-screen h3 { margin: 26px 0 8px; font-size: 1.55rem; }
.afg-phone-screen p { color: rgba(255,255,255,.62); font-size: .9rem; }
.afg-compat-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); padding: 14px; border-radius: 12px; margin: 10px 0; display: flex; justify-content: space-between; font-size: .84rem; }
.afg-phone-screen .afg-btn { width: 100%; margin-top: 16px; }

.afg-dashboard-preview { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--afg-border); border-radius: 24px; overflow: hidden; box-shadow: var(--afg-shadow); background: #fff; }
.afg-dashboard-preview aside { background: #071a37; color: #fff; padding: 30px 18px; }
.afg-brand-panel { margin-bottom: 28px; }
.afg-brand-panel .afg-brand-mark { font-size: 1.6rem; }
.afg-brand-panel .afg-brand-sub { font-size: .75rem; }
.afg-dashboard-preview aside a { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 9px; color: rgba(255,255,255,.75); font-size: .82rem; margin-bottom: 6px; }
.afg-dashboard-preview aside a.active { background: var(--afg-pink); color: #fff; }
.afg-dashboard-preview aside .afg-icon svg { width: 18px; height: 18px; }
.afg-dashboard-main { padding: 34px; }
.afg-dashboard-topline { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.afg-dashboard-topline h3, .afg-dashboard-topline h1 { margin: 3px 0 0; letter-spacing: -.035em; }
.afg-dashboard-topline h1 { font-size: 2rem; }
.afg-dashboard-topline > div > span { color: var(--afg-muted); font-size: .82rem; }
.afg-cutoff { min-width: 160px; padding: 14px 16px; border: 1px solid var(--afg-border); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(16,26,49,.05); font-size: .78rem; color: var(--afg-muted); }
.afg-cutoff strong { display: block; color: var(--afg-pink); margin-top: 4px; }
.afg-cutoff small { display: block; margin-top: 2px; }
.afg-dashboard-main > p { color: var(--afg-muted); margin-top: 6px; }
.afg-money-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px; }
.afg-money-grid > div { padding: 17px; border: 1px solid var(--afg-border); border-radius: 12px; background: #fff; }
.afg-money-grid span { display: block; font-size: .73rem; color: var(--afg-muted); }
.afg-money-grid strong { display: block; margin-top: 8px; font-size: 1.25rem; letter-spacing: -.03em; }
.afg-money-grid small { color: #9299aa; }
.afg-net-card { margin-top: 16px; padding: 18px 22px; border-radius: 13px; color: #fff; background: linear-gradient(120deg, #07152d, #112a55); display: grid; grid-template-columns: 1fr auto; position: relative; }
.afg-net-card span { grid-column: 1; font-size: .78rem; color: rgba(255,255,255,.72); }
.afg-net-card strong { grid-column: 1; color: var(--afg-pink); font-size: 1.55rem; }
.afg-net-card em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; color: var(--afg-pink); font-weight: 900; }

.afg-faq { background: #07152d; color: #fff; }
.afg-faq-grid { align-items: start; }
.afg-accordion { display: grid; gap: 12px; }
.afg-accordion details { border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 20px; background: rgba(255,255,255,.04); }
.afg-accordion summary { cursor: pointer; font-weight: 800; }
.afg-accordion p { color: rgba(255,255,255,.68); margin-bottom: 0; }

.afg-register { background: linear-gradient(180deg, #fff, #f7f8fb); }
.afg-register-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; padding: 44px; border: 1px solid var(--afg-border); border-radius: 28px; box-shadow: var(--afg-shadow); background: #fff; }
.afg-register-card p { color: var(--afg-muted); }
.afg-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.afg-lead-form label, .afg-form-stack label { font-size: .78rem; font-weight: 750; color: var(--afg-text); }
.afg-lead-form input, .afg-form-stack input, .afg-form-stack textarea, .afg-form-stack select { width: 100%; margin-top: 7px; min-height: 48px; border: 1px solid #dfe3eb; border-radius: 10px; padding: 0 13px; background: #fbfcfe; outline: none; transition: border .2s, box-shadow .2s; }
.afg-lead-form input:focus, .afg-form-stack input:focus { border-color: var(--afg-pink); box-shadow: 0 0 0 3px rgba(255,44,104,.08); }
.afg-lead-form .afg-btn, .afg-lead-form small { grid-column: 1 / -1; }
.afg-lead-form small { color: var(--afg-muted); }

.afg-inner-hero { padding: 88px 0 70px; background: radial-gradient(circle at 75% 20%, rgba(255,44,104,.17), transparent 28%), #07152d; color: #fff; }
.afg-inner-hero h1 { max-width: 850px; margin: 0; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.afg-inner-hero p { max-width: 760px; color: rgba(255,255,255,.72); }
.afg-form-page-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 30px; align-items: start; }
.afg-form-stack { display: grid; gap: 15px; }
.afg-checkbox { display: flex !important; align-items: center; gap: 9px; }
.afg-checkbox input { width: 18px !important; min-height: 18px !important; margin: 0 !important; }
.afg-form-note { font-size: .8rem; color: var(--afg-muted); }
.afg-registration-aside { padding: 28px; border-radius: 18px; background: var(--afg-navy); color: #fff; }
.afg-registration-aside h3 { margin-top: 0; }
.afg-post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.afg-post-card { background: #fff; padding: 26px; border-radius: 16px; border: 1px solid var(--afg-border); }
.afg-empty-state { text-align: center; padding-block: 80px; }

.afg-footer { background: #061225; color: #fff; padding: 56px 0 24px; }
.afg-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.afg-brand-footer { margin-bottom: 18px; }
.afg-footer p { color: rgba(255,255,255,.62); max-width: 450px; }
.afg-footer h3 { margin-top: 0; }
.afg-footer-menu { list-style: none; padding: 0; margin: 0; }
.afg-footer-menu li { margin: 8px 0; }
.afg-footer-menu a, .afg-inline-link { color: rgba(255,255,255,.74); }
.afg-footer-bottom { margin-top: 34px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.08); display: grid; justify-items: start; gap: 6px; color: rgba(255,255,255,.5); font-size: .78rem; text-align: left; }

/* Dashboard app */
body.afg-dashboard-page { background: #f5f6fa; }
.afg-dashboard-page #wpadminbar + .afg-app-shell { min-height: calc(100vh - 32px); }
.afg-app-shell { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; background: #f5f6fa; }
.afg-app-sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #06172f, #0b2345); color: #fff; padding: 30px 18px; display: flex; flex-direction: column; z-index: 60; }
.afg-app-sidebar nav { display: grid; gap: 5px; }
.afg-app-sidebar nav a, .afg-sidebar-footer a { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 9px; color: rgba(255,255,255,.74); font-size: .87rem; }
.afg-app-sidebar nav a:hover, .afg-app-sidebar nav a.active, .afg-sidebar-footer a:hover { background: var(--afg-pink); color: #fff; }
.afg-app-sidebar .afg-icon svg { width: 19px; height: 19px; }
.afg-sidebar-footer { margin-top: auto; }
.afg-app-main { min-width: 0; }
.afg-app-header { height: 70px; padding: 0 28px; border-bottom: 1px solid var(--afg-border); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); display: flex; justify-content: flex-end; align-items: center; position: sticky; top: 0; z-index: 40; }
.afg-app-header-actions { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.afg-avatar { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, #6d3db6, #ee5f89); color: #fff; font-weight: 900; }
.afg-notify-dot { width: 9px; height: 9px; background: var(--afg-pink); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,44,104,.09); }
.afg-app-menu-toggle { display: none; margin-right: auto; border: 0; background: transparent; }
.afg-app-content { width: min(1040px, calc(100% - 54px)); margin: 0 auto; padding: 46px 0 70px; }
.afg-app-section > h2 { margin: 34px 0 14px; font-size: 1rem; }
.afg-money-grid-app { margin-top: 0; }
.afg-net-card-app { min-height: 100px; align-items: center; }
.afg-payment-note { background: #fff; border: 1px solid var(--afg-border); border-top: 0; padding: 14px 20px; border-radius: 0 0 12px 12px; color: var(--afg-muted); font-size: .84rem; line-height: 1.5; }
.afg-payment-note strong { display: inline; color: var(--afg-navy); font-size: inherit; font-weight: 850; }
.afg-app-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.afg-panel-card { background: #fff; border: 1px solid var(--afg-border); border-radius: 14px; padding: 22px; margin-top: 18px; }
.afg-panel-card h2, .afg-panel-card h3 { margin: 5px 0 8px; }
.afg-panel-card p { color: var(--afg-muted); margin-bottom: 0; }
.afg-card-label { color: var(--afg-muted); font-size: .76rem; }
.afg-status-pending { color: var(--afg-warning); }
.afg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.afg-table-filter { border: 1px solid var(--afg-border); background: #fff; border-radius: 9px; padding: 9px 12px; color: var(--afg-muted); }
.afg-table-wrap { overflow-x: auto; }
.afg-table { width: 100%; border-collapse: collapse; margin-top: 14px; min-width: 760px; }
.afg-table th, .afg-table td { padding: 13px 10px; text-align: left; border-top: 1px solid var(--afg-border); font-size: .8rem; }
.afg-table th { color: var(--afg-muted); font-weight: 700; }
.afg-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.afg-pill.paid { color: #14744f; background: #e8f7f0; }
.afg-pill.pending { color: #9b620f; background: #fff3df; }

/* RUT status: balanced, centered and visually consistent. */
.afg-rut-card-head {
  align-items: flex-start;
}
.afg-rut-card-head > div {
  min-width: 0;
  flex: 1 1 auto;
}
.afg-rut-status-pill {
  flex: 0 0 auto;
  min-width: 154px;
  min-height: 42px;
  padding: 9px 16px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .01em;
}
.afg-rut-status-pill.pending {
  border-color: #f2ddb4;
}
.afg-rut-status-pill.paid {
  border-color: #c9eadb;
}
.afg-platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.afg-platform-grid > div { border: 1px solid var(--afg-border); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.afg-platform-badge { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.afg-platform-badge.strip { background: #ffdce9; color: #c61d59; }
.afg-platform-badge.chat { background: #ffe7ca; color: #b45b00; }
.afg-platform-grid small { display: block; color: var(--afg-muted); }

@media (max-width: 1024px) {
  .afg-menu { gap: 18px; }
  .afg-menu a { font-size: .8rem; }
  .afg-hero-grid { grid-template-columns: 1fr .8fr; gap: 30px; }
  .afg-steps { grid-template-columns: repeat(2,1fr); }
  .afg-money-grid { grid-template-columns: repeat(2,1fr); }
  .afg-dashboard-preview { grid-template-columns: 180px 1fr; }
  .afg-app-shell { grid-template-columns: 210px 1fr; }
}

@media (max-width: 860px) {
  .afg-container { width: min(100% - 28px, 1180px); }
  .afg-menu-toggle { display: block; }
  .afg-primary-nav { position: fixed; inset: 76px 14px auto; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #07152d; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
  .afg-primary-nav.is-open { display: flex; }
  .afg-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .afg-menu a { display: block; padding: 11px; }
  .afg-header-cta { width: 100%; }
  .afg-hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .afg-hero-copy { padding: 64px 0 18px; }
  .afg-hero-media { min-height: 430px; }
  .afg-hero-media img { right: -10%; width: 112%; border-radius: 60px 0 0 0; }
  .afg-hero-orbit { width: 220px; height: 220px; right: 10%; }
  .afg-statbar-grid { grid-template-columns: repeat(2,1fr); }
  .afg-split, .afg-register-card, .afg-form-page-grid { grid-template-columns: 1fr; }
  .afg-dashboard-preview { grid-template-columns: 1fr; }
  .afg-dashboard-preview aside { display: none; }
  .afg-footer-grid { grid-template-columns: 1fr 1fr; }
  .afg-app-shell { grid-template-columns: 1fr; }
  .afg-app-sidebar { position: fixed; transform: translateX(-102%); transition: transform .25s ease; width: 245px; }
  .afg-app-sidebar.is-open { transform: translateX(0); }
  .afg-app-menu-toggle { display: inline-flex; color: var(--afg-navy); }
  .afg-app-header { justify-content: space-between; }
}

@media (max-width: 620px) {
  .afg-section { padding: 68px 0; }
  .afg-hero h1 { font-size: 3.1rem; }
  .afg-feature-row { grid-template-columns: 1fr; }
  .afg-mini-feature { padding: 6px 0; }
  .afg-hero-media { min-height: 360px; }
  .afg-floating-card-top { left: 0; top: 10%; }
  .afg-floating-card-bottom { right: 0; }
  .afg-statbar-grid { grid-template-columns: 1fr 1fr; }
  .afg-statbar-grid > div { padding: 22px 8px; }
  .afg-steps, .afg-money-grid, .afg-app-two-col, .afg-platform-grid { grid-template-columns: 1fr; }
  .afg-dashboard-main { padding: 22px 16px; }
  .afg-dashboard-topline { flex-direction: column; }
  .afg-cutoff { width: 100%; }
  .afg-net-card { grid-template-columns: 1fr; gap: 5px; }
  .afg-net-card em { grid-column: 1; grid-row: auto; }
  .afg-register-card { padding: 26px 20px; }
  .afg-lead-form { grid-template-columns: 1fr; }
  .afg-lead-form .afg-btn, .afg-lead-form small { grid-column: 1; }
  .afg-footer-grid { grid-template-columns: 1fr; }
  .afg-footer-bottom { flex-direction: column; }
  .afg-app-content { width: min(100% - 26px, 1040px); padding-top: 30px; }
  .afg-app-header { padding: 0 16px; }
  .afg-app-header-actions strong { display: none; }
}


.afg-hours-list { display: grid; gap: 4px; margin-top: 4px; }
.afg-hours-list span { display: block; }
.afg-footer-hours { display: grid; gap: 6px; }
.afg-info-grid { align-items: stretch; }
.afg-info-card { background: #fff; border: 1px solid rgba(8,20,40,.08); border-radius: 22px; padding: 32px; box-shadow: 0 18px 50px rgba(8, 20, 40, .08); }
.afg-checklist-compact { margin-top: 20px; }
.afg-token-note { margin-top: 18px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(9, 26, 68, .95), rgba(18, 41, 91, .98)); color: #fff; }
.afg-floating-card-bottom { max-width: 260px; }
@media (max-width: 900px) {
  .afg-info-card { padding: 24px; }
}


/* Legal pages and compliance footer */
.afg-footer-grid-legal { grid-template-columns: 1.35fr .8fr 1fr 1fr; gap: 54px; }
.afg-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.afg-footer-links a { color: rgba(255,255,255,.74); font-size: .92rem; }
.afg-footer-links a:hover { color: #fff; }
.afg-footer-badge { display: inline-flex; margin-top: 12px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255,44,104,.35); color: #ff789f; font-size: .72rem; font-weight: 800; }
.afg-footer-hours { display: grid; gap: 4px; margin-bottom: 13px; }
.afg-footer-hours span { color: rgba(255,255,255,.55); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.afg-footer-hours strong { color: #fff; font-size: .9rem; margin-bottom: 8px; }
.afg-cookie-manage { margin-top: 15px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.58); text-decoration: underline; cursor: pointer; font: inherit; font-size: .82rem; }
.afg-footer-disclaimer { display: block; padding: 0; color: rgba(255,255,255,.4); font-size: .72rem; line-height: 1.55; }
.afg-legal-hero h1 { max-width: 900px; }
.afg-legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; align-items: start; }
.afg-legal-nav { position: sticky; top: 105px; display: grid; gap: 5px; padding: 20px; border: 1px solid #e5e8ef; border-radius: 18px; background: #fff; }
.afg-legal-nav > strong { margin-bottom: 8px; color: #0b1b38; }
.afg-legal-nav a { padding: 10px 12px; border-radius: 10px; color: #526078; font-size: .88rem; }
.afg-legal-nav a:hover, .afg-legal-nav a.active { background: #fff0f5; color: #ed275d; }
.afg-legal-content { max-width: 850px; }
.afg-legal-content h2 { margin: 34px 0 12px; color: #0b1b38; font-size: 1.35rem; }
.afg-legal-content p, .afg-legal-content li { color: #536077; line-height: 1.75; }
.afg-legal-content ul { padding-left: 22px; }
.afg-legal-content a { color: #e82059; text-decoration: underline; }
.afg-legal-lead { font-size: 1.06rem; color: #273650 !important; }
.afg-legal-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.afg-legal-data-grid > div { display: grid; gap: 5px; padding: 16px; background: #fff; border: 1px solid #e9ebf0; border-radius: 14px; }
.afg-legal-data-grid span { color: #8790a1; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.afg-legal-data-grid strong { color: #17253f; overflow-wrap: anywhere; }
.afg-legal-note { margin-top: 40px; padding: 20px; border-radius: 16px; border: 1px solid #ffd2df; background: #fff3f7; color: #6b3344; line-height: 1.6; }
.afg-consent-check { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; font-size: .77rem; line-height: 1.45; color: #657085; }
.afg-consent-check input { width: 17px !important; min-width: 17px; height: 17px; margin-top: 2px; }
.afg-consent-check a { color: #e82059; text-decoration: underline; }
.afg-cookie-banner[hidden] { display: none !important; }
.afg-cookie-banner { position: fixed; inset: auto 0 18px; z-index: 9999; padding: 0 20px; }
.afg-cookie-card { width: min(980px, 100%); margin: 0 auto; padding: 18px 20px; border-radius: 18px; background: rgba(5,12,25,.97); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 60px rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; backdrop-filter: blur(14px); }
.afg-cookie-card strong { display: block; margin-bottom: 4px; }
.afg-cookie-card p { margin: 0; color: rgba(255,255,255,.66); font-size: .82rem; line-height: 1.5; }
.afg-cookie-card a { color: #ff6d98; font-size: .78rem; }
.afg-cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.afg-cookie-actions .afg-btn { min-height: 40px; padding-inline: 16px; }
@media (max-width: 980px) {
  .afg-footer-grid-legal { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .afg-legal-layout { grid-template-columns: 1fr; }
  .afg-legal-nav { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .afg-legal-nav > strong { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .afg-footer-grid-legal { grid-template-columns: 1fr; gap: 34px; }
  .afg-legal-nav { grid-template-columns: 1fr; }
  .afg-legal-data-grid { grid-template-columns: 1fr; }
  .afg-cookie-card { align-items: stretch; flex-direction: column; }
  .afg-cookie-actions { width: 100%; }
  .afg-cookie-actions .afg-btn { flex: 1; }
}

/* AFG v1.4 · Privacy contact block */
.afg-legal-owner-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 0;
  margin: 20px 0 36px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e8f1;
  border-radius: 20px;
  box-shadow: 0 14px 42px rgba(9, 27, 59, .07);
}
.afg-legal-owner-brand, .afg-legal-owner-contact {
  min-width: 0;
  padding: 24px 26px;
}
.afg-legal-owner-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.afg-legal-owner-contact {
  display: grid;
  align-content: center;
  gap: 6px;
  border-left: 1px solid #e7ebf2;
  background: linear-gradient(135deg, #f9fbff, #fff4f7);
}
.afg-legal-owner-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 16px;
  background: #091a37;
  color: #ff3e70;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .08em;
}
.afg-legal-owner-brand > div:last-child, .afg-legal-owner-contact { min-width: 0; }
.afg-legal-owner-brand span, .afg-legal-owner-contact > span, .afg-legal-channel-inline span {
  display: block;
  color: #8a95a8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.afg-legal-owner-brand strong {
  display: block;
  margin-top: 3px;
  color: #10213e;
  font-size: 1.25rem;
}
.afg-legal-owner-brand small, .afg-legal-owner-contact small {
  display: block;
  margin-top: 4px;
  color: #68758a;
  line-height: 1.5;
}
.afg-legal-owner-contact a {
  width: fit-content;
  max-width: 100%;
  color: #e9245a;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.afg-legal-owner-contact a:hover { text-decoration: underline; }
.afg-legal-channel-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 14px;
}
.afg-legal-channel-inline > div {
  padding: 17px 18px;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fff;
}
.afg-legal-channel-inline strong, .afg-legal-channel-inline a {
  display: block;
  margin-top: 5px;
  color: #17253f;
  font-weight: 800;
  text-decoration: none;
}
.afg-legal-channel-inline a { color: #e9245a; }
@media (max-width: 760px) {
  .afg-legal-owner-card { grid-template-columns: 1fr; }
  .afg-legal-owner-contact { border-left: 0; border-top: 1px solid #e7ebf2; }
  .afg-legal-channel-inline { grid-template-columns: 1fr; }
}

/* Hero revenue split: anchored to the copy column instead of floating over the photo */
.afg-revenue-split {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: -8px 0 24px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(7,21,45,.58);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.82);
  font-size: .79rem;
}
.afg-revenue-split strong { color: #fff; font-size: .9rem; }
.afg-revenue-primary strong { color: var(--afg-pink-2); font-size: 1.2rem; margin-right: 4px; }
.afg-revenue-divider { width: 1px; height: 24px; background: rgba(255,255,255,.16); }
.afg-revenue-primary, .afg-revenue-secondary { display: inline-flex; align-items: baseline; white-space: nowrap; }
@media (max-width: 620px) {
  .afg-revenue-split { display: flex; width: 100%; justify-content: space-between; gap: 10px; margin-top: 0; }
  .afg-revenue-primary, .afg-revenue-secondary { white-space: normal; }
}

/* =========================================================
   AFG v1.6 · Mandatory onboarding + internal model records
   ========================================================= */
.afg-onboarding-hero { padding: 70px 0 64px; }
.afg-onboarding-hero h1 { max-width: 820px; margin-bottom: 14px; }
.afg-onboarding-hero p { max-width: 760px; }
.afg-onboarding-section { padding-top: 52px; }
.afg-onboarding-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.afg-onboarding-sidebar { position: sticky; top: 102px; display: grid; gap: 16px; }
.afg-onboarding-progress-card, .afg-onboarding-help { background: #fff; border: 1px solid var(--afg-border); border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(16,26,49,.05); }
.afg-onboarding-progress-card { display: grid; gap: 9px; }
.afg-onboarding-progress-card > span { color: var(--afg-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.afg-onboarding-progress-card > strong { font-size: 1.5rem; line-height: 1; }
.afg-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #eef1f6; }
.afg-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--afg-pink), var(--afg-pink-2)); transition: width .25s ease; }
.afg-onboarding-steps { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--afg-border); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(16,26,49,.05); }
.afg-onboarding-steps button { width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; padding: 11px 10px; border: 0; border-radius: 12px; background: transparent; color: #657085; text-align: left; cursor: default; }
.afg-onboarding-steps button b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f3f5f9; color: #8b96a8; font-size: .8rem; }
.afg-onboarding-steps button span { display: grid; line-height: 1.25; }
.afg-onboarding-steps button strong { color: #283650; font-size: .84rem; }
.afg-onboarding-steps button small { margin-top: 3px; color: #929bad; font-size: .69rem; }
.afg-onboarding-steps button.active { background: #fff0f5; }
.afg-onboarding-steps button.active b { background: var(--afg-pink); color: #fff; }
.afg-onboarding-steps button.active strong { color: #dd1f55; }
.afg-onboarding-steps button.done { cursor: pointer; }
.afg-onboarding-steps button.done b { background: rgba(31,157,104,.12); color: var(--afg-success); }
.afg-onboarding-help { display: flex; gap: 12px; align-items: center; }
.afg-onboarding-help .afg-icon svg { width: 24px; height: 24px; }
.afg-onboarding-help div { display: grid; }
.afg-onboarding-help strong { font-size: .84rem; }
.afg-onboarding-help span { color: var(--afg-muted); font-size: .73rem; }
.afg-onboarding-main { min-width: 0; }
.afg-onboarding-form { background: #fff; border: 1px solid var(--afg-border); border-radius: 24px; box-shadow: var(--afg-shadow); overflow: hidden; }
.afg-onboarding-step { display: none; padding: 34px; }
.afg-onboarding-step.active { display: block; }
.afg-step-head { align-items: flex-start; margin-bottom: 28px; }
.afg-step-head h2 { margin: 2px 0 5px; font-size: 1.65rem; }
.afg-step-head p { margin: 0; color: var(--afg-muted); }
.afg-required-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fff0f5; color: #e5235a; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.afg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.afg-field { display: grid; gap: 7px; color: #4c5a72; font-size: .78rem; font-weight: 750; }
.afg-field.span-2, .afg-record-grid .span-2 { grid-column: 1 / -1; }
.afg-field input, .afg-field select, .afg-field textarea, .afg-status-form select, .afg-country-search { width: 100%; min-height: 48px; border: 1px solid #dfe4ec; border-radius: 11px; padding: 0 13px; background: #fbfcfe; color: var(--afg-text); outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.afg-field input:focus, .afg-field select:focus, .afg-field textarea:focus, .afg-country-search:focus { border-color: var(--afg-pink); box-shadow: 0 0 0 3px rgba(255,44,104,.08); background: #fff; }
.afg-field small { color: #909aab; font-size: .68rem; font-weight: 500; line-height: 1.45; }
.afg-optional { padding: 2px 6px; margin-left: 5px; border-radius: 999px; background: #eff2f6; color: #7b879b; font-style: normal; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; }
.afg-password-field { position: relative; display: block; }
.afg-password-field input { padding-right: 78px; }
.afg-password-field button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: #eef1f6; color: #536078; font-size: .69rem; font-weight: 800; cursor: pointer; }
.afg-member-card { margin-top: 22px; padding: 24px; border: 1px solid #e4e8ef; border-radius: 19px; background: #fbfcfe; }
.afg-member-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.afg-member-title > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #091a37; color: #fff; font-weight: 900; }
.afg-member-title div { display: grid; }
.afg-member-title strong { font-size: .98rem; }
.afg-member-title small { color: var(--afg-muted); font-size: .72rem; }
.afg-profile-photo-upload { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; padding: 18px; border: 1px dashed #d7dde7; border-radius: 16px; background: #fafbfe; }
.afg-profile-photo-upload .afg-field { flex: 1; }
.afg-upload-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #fff0f5; }
.afg-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 20px; }
.afg-upload-card { min-width: 0; display: grid; gap: 8px; padding: 14px; border: 1px dashed #d6dde8; border-radius: 14px; background: #fff; cursor: pointer; }
.afg-upload-card > span { color: #293852; font-size: .76rem; font-weight: 800; }
.afg-upload-card input { width: 100%; color: #68758a; font-size: .68rem; }
.afg-upload-card small { color: #98a1b0; font-size: .64rem; }
.afg-geo-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.afg-choice-card { position: relative; display: block; cursor: pointer; }
.afg-choice-card > input { position: absolute; opacity: 0; pointer-events: none; }
.afg-choice-card > span { min-height: 118px; display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; align-items: start; gap: 3px 10px; padding: 20px; border: 1px solid #e1e6ee; border-radius: 16px; background: #fbfcfe; }
.afg-choice-card .afg-icon { grid-row: 1 / span 2; }
.afg-choice-card strong { color: #24324b; }
.afg-choice-card small { color: var(--afg-muted); }
.afg-choice-card > input:checked + span { border-color: var(--afg-pink); background: #fff4f7; box-shadow: 0 0 0 3px rgba(255,44,104,.06); }
.afg-country-picker-wrap { margin-top: 22px; padding: 20px; border: 1px solid #e3e8f0; border-radius: 17px; background: #fbfcfe; }
.afg-country-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.afg-country-picker-head > div { display: grid; }
.afg-country-picker-head small { color: var(--afg-muted); }
.afg-country-picker-head > span { color: var(--afg-pink); font-size: .72rem; font-weight: 800; }
.afg-country-search { margin-bottom: 12px; background: #fff; }
.afg-country-grid { max-height: 290px; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; padding-right: 5px; }
.afg-country-grid label { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 9px 10px; border: 1px solid #e7eaf0; border-radius: 9px; background: #fff; color: #526078; font-size: .72rem; cursor: pointer; }
.afg-country-grid label:has(input:checked) { border-color: #ff9db8; background: #fff2f6; color: #ce1f50; }
.afg-country-grid input { accent-color: var(--afg-pink); }
.afg-platform-select-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.afg-platform-select-card { overflow: hidden; border: 1px solid #e1e6ee; border-radius: 18px; background: #fbfcfe; transition: border-color .18s ease, box-shadow .18s ease; }
.afg-platform-select-card.selected { border-color: #ff8dac; box-shadow: 0 0 0 3px rgba(255,44,104,.05); background: #fff; }
.afg-platform-select-head { display: grid; grid-template-columns: 20px 42px 1fr; align-items: center; gap: 11px; padding: 18px; cursor: pointer; }
.afg-platform-select-head > input { accent-color: var(--afg-pink); }
.afg-platform-select-head > span:last-child { display: grid; }
.afg-platform-select-head strong { font-size: .94rem; }
.afg-platform-select-head small { color: var(--afg-muted); font-size: .68rem; }
.afg-platform-fields { display: grid; gap: 14px; padding: 18px; border-top: 1px solid #eceff4; background: #fff; }
.afg-platform-fields fieldset { margin: 0; padding: 13px; border: 1px solid #e4e8ef; border-radius: 12px; }
.afg-platform-fields legend { padding: 0 5px; color: #536078; font-size: .72rem; font-weight: 800; }
.afg-platform-fields fieldset label { display: block; margin-top: 7px; color: #58667b; font-size: .72rem; }
.afg-platform-fields fieldset input { accent-color: var(--afg-pink); }
.afg-security-note, .afg-review-status-banner { display: flex; gap: 13px; align-items: flex-start; margin-top: 20px; padding: 17px 18px; border-radius: 15px; background: #0b1d3b; color: #fff; }
.afg-security-note strong, .afg-review-status-banner strong { display: block; margin-bottom: 4px; }
.afg-security-note p, .afg-review-status-banner p { margin: 0; color: rgba(255,255,255,.67); font-size: .78rem; line-height: 1.5; }
.afg-review-status-banner { margin: 0 0 24px; }
.afg-review-banner { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; border: 1px solid #e4e8ef; border-radius: 16px; margin-bottom: 22px; }
.afg-review-banner > div { display: grid; gap: 3px; padding: 18px; border-right: 1px solid #e8ebf1; background: #fbfcfe; }
.afg-review-banner > div:last-child { border-right: 0; }
.afg-review-banner span { color: #8b95a6; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }
.afg-review-banner strong { color: #17253f; font-size: .84rem; }
.afg-consent-stack { display: grid; gap: 10px; }
.afg-consent-stack .afg-consent-check { padding: 14px; border: 1px solid #e4e8ef; border-radius: 12px; background: #fbfcfe; }
.afg-consent-stack .afg-consent-check:has(input:checked) { border-color: #b7e4d2; background: #f5fffa; }
.afg-contract-later-note { margin-top: 18px; padding: 18px; border: 1px solid #ffd2df; border-radius: 14px; background: #fff5f8; }
.afg-contract-later-note strong { color: #dc2457; }
.afg-contract-later-note p { margin: 5px 0 0; color: #68758a; font-size: .78rem; }
.afg-onboarding-actions { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 34px; border-top: 1px solid #edf0f4; background: #fbfcfe; }
.afg-onboarding-actions > span { text-align: center; color: #8a94a5; font-size: .74rem; font-weight: 700; }
.afg-btn-soft { color: #536078; border-color: #dde3ec; background: #fff; }
.afg-btn-soft:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.afg-form-alert { margin-bottom: 18px; padding: 15px 17px; border-radius: 13px; font-size: .82rem; }
.afg-form-alert.error { border: 1px solid #ffd0dc; background: #fff2f6; color: #7a3148; }
.afg-form-alert.success { border: 1px solid #bde9d7; background: #f3fff9; color: #226548; }
.afg-form-alert ul { margin: 7px 0 0 18px; padding: 0; }
.has-error { border-color: #e53562 !important; box-shadow: 0 0 0 3px rgba(229,53,98,.07) !important; }
.afg-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.afg-form-note { color: #8a95a7; font-size: .7rem; }
.afg-registration-chips, .afg-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.afg-registration-chips span, .afg-chip-list span { display: inline-flex; padding: 7px 10px; border-radius: 999px; border: 1px solid #e2e7ef; background: #fff; color: #536078; font-size: .7rem; font-weight: 750; }
.afg-register-cta-card { align-items: center; }
.afg-register-cta-side { display: grid; gap: 10px; padding: 26px; border-radius: 18px; background: #091a37; color: #fff; }
.afg-register-cta-side p, .afg-register-cta-side small { margin: 0; color: rgba(255,255,255,.68); }
.afg-register-cta-side small { font-size: .7rem; }

/* Internal AFG model administration */
.afg-admin-shell { min-height: 100vh; }
.afg-admin-header-title { display: grid; line-height: 1.2; }
.afg-admin-header-title span { color: #8994a6; font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.afg-admin-header-title strong { color: #17253f; font-size: .92rem; }
.afg-admin-content { max-width: 1280px; }
.afg-admin-list-head { margin-bottom: 22px; }
.afg-admin-model-list { display: grid; }
.afg-admin-model-row { display: grid; grid-template-columns: 54px minmax(190px, 1.4fr) minmax(150px, .8fr) minmax(100px,.55fr) auto; gap: 15px; align-items: center; padding: 14px 4px; border-bottom: 1px solid #edf0f4; }
.afg-admin-model-row:last-child { border-bottom: 0; }
.afg-admin-model-row:hover { background: #fbfcfe; }
.afg-admin-model-row > span:not(.afg-admin-thumb):not(.afg-pill) { display: grid; min-width: 0; }
.afg-admin-model-row small { color: #8b95a6; font-size: .67rem; }
.afg-admin-model-row strong { overflow: hidden; color: #26344c; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.afg-admin-thumb { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border-radius: 13px; background: #0b1d3b; color: #fff; font-weight: 900; }
.afg-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.afg-model-record-head { display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; margin-bottom: 22px; }
.afg-model-record-head h1 { margin: 0; font-size: 1.55rem; }
.afg-model-record-head p { margin: 2px 0 0; color: var(--afg-muted); font-size: .75rem; }
.afg-back-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #e0e5ed; border-radius: 11px; background: #fff; color: #647188; font-size: 1.25rem; }
.afg-model-record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.afg-model-record-main, .afg-model-record-side { display: grid; gap: 18px; min-width: 0; }
.afg-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.afg-record-grid > div { display: grid; gap: 4px; padding: 14px; border: 1px solid #e7ebf1; border-radius: 12px; background: #f8fafc; }
.afg-record-grid span, .afg-member-summary span { color: #8995a8; font-size: .64rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.afg-record-grid strong, .afg-member-summary strong { color: #192740; font-size: .78rem; overflow-wrap: anywhere; }
.afg-admin-platforms { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.afg-admin-platform-card { border: 1px solid #e4e8ef; border-radius: 15px; overflow: hidden; }
.afg-admin-platform-title { display: flex; align-items: center; gap: 10px; padding: 14px; background: #f8fafc; }
.afg-admin-platform-title > div { display: grid; }
.afg-admin-platform-title small { color: #8b95a6; font-size: .66rem; }
.afg-credential-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 9px; align-items: center; padding: 11px 14px; border-top: 1px solid #edf0f4; }
.afg-credential-row span { color: #8a95a6; font-size: .66rem; text-transform: uppercase; }
.afg-credential-row strong { min-width: 0; overflow-wrap: anywhere; font-size: .78rem; }
.afg-reveal-btn { border: 0; border-radius: 8px; padding: 6px 9px; background: #fff0f5; color: #db2457; font-size: .66rem; font-weight: 800; cursor: pointer; }
.afg-profile-summary-card { text-align: center; }
.afg-profile-record-photo { width: 132px; height: 132px; object-fit: cover; margin: 0 auto 13px; border: 5px solid #fff; outline: 3px solid #ffd267; border-radius: 50%; }
.afg-profile-record-photo.placeholder { display: grid; place-items: center; background: #0b1d3b; color: #fff; font-size: 2.2rem; font-weight: 900; }
.afg-profile-summary-card h2 { margin: 6px 0 0; font-size: 1rem; }
.afg-profile-role { color: var(--afg-pink); font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.afg-profile-summary-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-top: 17px; }
.afg-profile-summary-stats div { display: grid; gap: 3px; padding: 12px; border-radius: 11px; background: #f7f9fc; }
.afg-profile-summary-stats span { color: #8a95a7; font-size: .6rem; text-transform: uppercase; }
.afg-profile-summary-stats strong { font-size: .73rem; }
.afg-doc-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.afg-doc-gallery a { overflow: hidden; border: 1px solid #e3e8ef; border-radius: 11px; background: #f8fafc; }
.afg-doc-gallery span { display: block; padding: 8px; overflow: hidden; color: #657085; font-size: .58rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.afg-doc-gallery img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; background: #edf0f4; }
.afg-status-form { display: grid; gap: 10px; margin-top: 12px; }
.afg-status-form .afg-btn, .afg-whatsapp-full { width: 100%; }
.afg-whatsapp-full { margin-top: 9px; }
.afg-model-profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 18px; margin-bottom: 18px; }
.afg-profile-mini-card { text-align: center; align-content: start; }
.afg-profile-mini-card img { width: 104px; height: 104px; object-fit: cover; margin: 0 auto 10px; border-radius: 50%; }
.afg-profile-mini-card h3 { margin: 0; }
.afg-profile-mini-card > span { color: var(--afg-pink); font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.afg-profile-mini-card > div { display: grid; gap: 2px; margin-top: 14px; padding: 11px; border-radius: 11px; background: #f6f8fb; }
.afg-profile-mini-card small { color: #8893a5; }
.afg-member-summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f4; }
.afg-member-summary > div { display: grid; gap: 3px; }

@media (max-width: 1080px) {
  .afg-onboarding-shell { grid-template-columns: 225px minmax(0,1fr); }
  .afg-country-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .afg-model-record-layout { grid-template-columns: 1fr; }
  .afg-model-record-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .afg-model-record-side > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .afg-onboarding-shell { grid-template-columns: 1fr; }
  .afg-onboarding-sidebar { position: static; }
  .afg-onboarding-steps { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .afg-onboarding-steps button { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .afg-onboarding-steps button span small { display: none; }
  .afg-onboarding-help { display: none; }
  .afg-review-banner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .afg-review-banner > div:nth-child(2) { border-right: 0; }
  .afg-review-banner > div:nth-child(-n+2) { border-bottom: 1px solid #e8ebf1; }
  .afg-admin-model-row { grid-template-columns: 48px 1fr auto; }
  .afg-admin-model-row > span:nth-child(3), .afg-admin-model-row > span:nth-child(4) { display: none !important; }
  .afg-model-profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .afg-onboarding-step { padding: 24px 18px; }
  .afg-onboarding-actions { padding: 16px 18px; grid-template-columns: auto auto; }
  .afg-onboarding-actions > span { display: none; }
  .afg-form-grid, .afg-geo-choice-grid, .afg-platform-select-grid, .afg-record-grid, .afg-admin-platforms, .afg-model-record-side { grid-template-columns: 1fr; }
  .afg-field.span-2, .afg-record-grid .span-2 { grid-column: auto; }
  .afg-document-grid { grid-template-columns: 1fr; }
  .afg-country-grid { grid-template-columns: 1fr; }
  .afg-onboarding-steps { gap: 3px; padding: 6px; }
  .afg-onboarding-steps button { padding: 8px 3px; }
  .afg-onboarding-steps button b { width: 28px; height: 28px; }
  .afg-onboarding-steps button strong { font-size: .65rem; }
  .afg-review-banner { grid-template-columns: 1fr; }
  .afg-review-banner > div { border-right: 0; border-bottom: 1px solid #e8ebf1; }
  .afg-review-banner > div:last-child { border-bottom: 0; }
  .afg-model-record-head { grid-template-columns: 42px 1fr; }
  .afg-model-record-head > .afg-pill { grid-column: 2; justify-self: start; }
  .afg-model-record-side > :last-child { grid-column: auto; }
  .afg-doc-gallery { grid-template-columns: 1fr 1fr; }
  .afg-member-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* =========================================================
   AFG v1.7 · Onboarding alignment and optional geo privacy
   ========================================================= */
.afg-onboarding-form [hidden] { display: none !important; }
.afg-form-grid { align-items: stretch; }
.afg-form-grid > .afg-field { align-content: start; grid-template-rows: auto minmax(48px, auto) minmax(20px, auto); }
.afg-form-grid > .afg-field.span-2 { grid-template-rows: auto minmax(48px, auto) auto; }
.afg-form-grid > .afg-field > small { min-height: 20px; }
.afg-member-card .afg-form-grid > .afg-field { min-width: 0; }
.afg-optional { vertical-align: middle; white-space: nowrap; }
.afg-optional-step-badge { display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;background:#eef3fa;color:#64748b;font-size:.68rem;font-weight:800;white-space:nowrap; }
.afg-country-picker-wrap { margin-top: 0; }
.afg-country-grid label { min-height: 44px; }
.afg-country-grid label:has(input:checked) { border-color: var(--afg-pink); box-shadow: 0 0 0 2px rgba(255,44,104,.05); }
.afg-country-grid label:has(input:checked) span { font-weight: 800; }
.afg-platform-select-head small { transition: color .18s ease; }
.afg-platform-select-card.selected .afg-platform-select-head small { color: #dc2457; font-weight: 800; }
.afg-onboarding-action-primary { display:flex;justify-content:flex-end; }
.afg-onboarding-action-primary .afg-btn { min-width: 190px; }
.afg-onboarding-actions > .afg-btn-soft { min-width: 150px; }
@media (max-width: 760px) {
  .afg-form-grid > .afg-field { grid-template-rows: auto auto auto; }
  .afg-form-grid > .afg-field > small { min-height: 0; }
  .afg-onboarding-action-primary { width:100%; }
  .afg-onboarding-action-primary .afg-btn { width:100%; min-width:0; }
}


/* v1.8 · AFG-only authentication */
.afg-login-hero { padding-bottom: 54px; }
.afg-login-section { min-height: 520px; }
.afg-login-card { width: min(100%, 560px); margin: 0 auto; background: #fff; border: 1px solid #e2e8f2; border-radius: 24px; padding: 36px; box-shadow: 0 24px 70px rgba(7, 21, 45, .10); }
.afg-login-card-head { margin-bottom: 28px; }
.afg-login-card-head .afg-brand-mark { display: inline-block; margin-bottom: 12px; }
.afg-login-card-head h2 { margin: 0 0 8px; color: #071a36; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.afg-login-card-head p { margin: 0; color: #738198; }
.afg-login-form { display: grid; gap: 18px; }
.afg-login-remember { display: flex; align-items: center; gap: 10px; color: #516077; font-weight: 600; }
.afg-login-remember input { width: 18px; height: 18px; accent-color: #ff356c; }
.afg-login-submit { width: 100%; min-height: 54px; }
.afg-login-foot { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid #edf0f5; color: #738198; }
.afg-login-foot a { color: #ff356c; font-weight: 800; }
@media (max-width: 640px) {
  .afg-login-card { padding: 24px 18px; border-radius: 18px; }
}

/* =========================================================
   AFG v1.9 · Unified access + resilient registration draft
   ========================================================= */
.afg-header-login { min-height: 42px; padding-inline: 18px; border-color: rgba(255,255,255,.28); }
.afg-header-login:hover { border-color: var(--afg-pink); background: rgba(255,44,104,.08); }
.afg-field-heading { min-height: 24px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.afg-field-heading > span { min-width: 0; }
.afg-required-mini, .afg-balanced-field .afg-optional { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 21px; padding: 2px 8px; margin: 0; border-radius: 999px; font-style: normal; font-size: .59rem; line-height: 1; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.afg-required-mini { background: #fff0f5; color: #dc2457; }
.afg-balanced-field .afg-optional { background: #eef2f7; color: #738198; }
.afg-member-card .afg-balanced-field { grid-template-rows: 24px minmax(48px, auto) minmax(38px, auto); }
.afg-member-card .afg-balanced-field > small { min-height: 38px; display: flex; align-items: flex-start; }
.afg-client-validation-alert[hidden] { display: none !important; }
.afg-client-validation-alert { position: relative; border-left: 4px solid #e53562 !important; box-shadow: 0 12px 32px rgba(229,53,98,.08); }
.afg-client-validation-alert p { margin: 5px 0 0; }
.afg-upload-card.has-saved-file, .afg-profile-photo-upload.has-saved-file { border-color: #9fd9c3; background: #f6fffa; }
.afg-upload-card.has-saved-file > span::after { content: " · guardado"; color: var(--afg-success); font-weight: 800; }
.afg-btn:disabled { cursor: not-allowed; opacity: .68; transform: none; }
@media (max-width: 1180px) {
  .afg-primary-nav { gap: 14px; }
  .afg-menu { gap: 18px; }
  .afg-header-login, .afg-header-cta { padding-inline: 16px; }
}
@media (max-width: 760px) {
  .afg-member-card .afg-balanced-field { grid-template-rows: auto auto auto; }
  .afg-member-card .afg-balanced-field > small { min-height: 0; }
  .afg-field-heading { min-height: 0; }
}

/* v1.10 registration reliability and success state */
.afg-readonly-input,
.afg-field input[readonly] {
  background: #eef3fb;
  color: #6f7d92;
  border-color: #dfe6f0;
  cursor: not-allowed;
}

.afg-registration-success-section {
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  padding-block: 70px;
}
.afg-registration-success-card {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #e1e7f0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 21, 45, .10);
  text-align: center;
}
.afg-success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8fbf3;
  color: #0ca86f;
  font-size: 2rem;
  font-weight: 900;
  border: 1px solid #bfeeda;
}
.afg-registration-success-card h1 {
  margin: 0 0 12px;
  color: #071a36;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.03;
}
.afg-success-lead {
  width: min(680px, 100%);
  margin: 0 auto 28px;
  color: #6f7d92;
  font-size: 1.05rem;
  line-height: 1.65;
}
.afg-success-status {
  display: inline-grid;
  gap: 4px;
  margin-bottom: 30px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff0f5;
  color: #d81f58;
}
.afg-success-status span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.afg-success-status strong { font-size: .96rem; }
.afg-success-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}
.afg-success-grid > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 20px;
  border: 1px solid #e5eaf2;
  border-radius: 18px;
  background: #f9fbfe;
}
.afg-success-grid b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #091a37;
  color: #fff;
}
.afg-success-grid span { display: grid; gap: 5px; }
.afg-success-grid strong { color: #071a36; }
.afg-success-grid small { color: #79869a; line-height: 1.45; }
.afg-success-time {
  display: grid;
  gap: 4px;
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #091a37;
  color: #fff;
}
.afg-success-time span { color: rgba(255,255,255,.7); font-size: .86rem; }
.afg-success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.afg-platform-username-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 12px 14px;
  border-top: 1px solid #edf0f5;
}
.afg-platform-username-form label { display: grid; gap: 6px; }
.afg-platform-username-form label span { color: #7c899c; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.afg-platform-username-form input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  color: #071a36;
  font-weight: 700;
}
@media (max-width: 760px) {
  .afg-success-grid { grid-template-columns: 1fr; }
  .afg-registration-success-section { padding-block: 36px; }
}

.afg-btn-ghost.afg-header-logout { min-height: 42px; padding-inline: 15px; border: 0; background: transparent; color: rgba(255,255,255,.78); box-shadow: none; font-size: .72rem; }
.afg-btn-ghost.afg-header-logout:hover { color: #fff; background: rgba(255,255,255,.06); }

/* =========================================================
   AFG v1.14 · Guided upload examples for registration
   ========================================================= */
.afg-onboarding-tip-card {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #ffd7e3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8fb 0%, #fff4f8 100%);
}
.afg-onboarding-tip-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  color: var(--afg-pink);
  box-shadow: 0 10px 24px rgba(255,44,104,.10);
}
.afg-onboarding-tip-card strong {
  display: block;
  margin-bottom: 4px;
  color: #17253f;
}
.afg-onboarding-tip-card p {
  margin: 0;
  color: #67758b;
  font-size: .78rem;
  line-height: 1.6;
}
.afg-profile-photo-upload {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  align-items: start;
}
.afg-upload-stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.afg-upload-example {
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.afg-upload-example summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #21314a;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}
.afg-upload-example summary::-webkit-details-marker { display: none; }
.afg-upload-example summary::after {
  content: '+';
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1f5;
  color: var(--afg-pink);
  font-size: 1rem;
  line-height: 1;
}
.afg-upload-example[open] summary::after { content: '–'; }
.afg-upload-example-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
  border-top: 1px solid #edf1f6;
}
.afg-upload-example-body img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #ebeff5;
  background: #f8fafc;
  object-fit: cover;
}
.afg-profile-photo-upload .afg-upload-example-body img {
  max-height: 280px;
  object-fit: contain;
}
.afg-upload-example-body ul {
  margin: 0;
  padding-left: 18px;
  color: #6a7688;
  font-size: .72rem;
  line-height: 1.55;
}
.afg-upload-example-body li + li { margin-top: 4px; }
.afg-upload-card {
  align-content: start;
  grid-template-rows: auto auto auto auto;
}
.afg-upload-card small {
  min-height: 38px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .afg-onboarding-tip-card,
  .afg-profile-photo-upload {
    grid-template-columns: 1fr;
  }
  .afg-upload-icon,
  .afg-onboarding-tip-icon {
    width: 52px;
    height: 52px;
  }
  .afg-upload-card small { min-height: 0; }
}


/* =========================================================
   AFG v1.15 · Reliable example buttons + modal
   ========================================================= */
.afg-example-btn {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  padding: 0 14px;
  border: 1px solid #ffd0dc;
  border-radius: 11px;
  background: #fff4f7;
  color: #dc2457;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.afg-example-btn::before { content: '👁'; font-size: .88rem; }
.afg-example-btn:hover { background: #ffe9f0; box-shadow: 0 8px 22px rgba(255,44,104,.10); transform: translateY(-1px); }
.afg-upload-stack .afg-example-btn { max-width: 210px; justify-self: start; }
.afg-document-grid .afg-upload-card { min-height: 218px; grid-template-rows: auto auto minmax(44px,1fr) auto; }
.afg-document-grid .afg-example-btn { align-self: end; }
.afg-example-modal[hidden] { display: none !important; }
.afg-example-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 24px; }
.afg-example-modal-backdrop { position: absolute; inset: 0; background: rgba(4,15,34,.72); backdrop-filter: blur(5px); }
.afg-example-modal-dialog { position: relative; z-index: 1; width: min(760px,100%); max-height: calc(100vh - 48px); overflow: auto; padding: 26px; border-radius: 22px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.30); }
.afg-example-modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f4f8; color: #22314a; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.afg-example-modal-head { padding-right: 44px; }
.afg-example-modal-head h3 { margin: 4px 0 18px; color: #071a36; font-size: 1.35rem; }
.afg-example-modal-image { display: block; width: 100%; max-height: 500px; object-fit: contain; border: 1px solid #e7ebf2; border-radius: 16px; background: #f8fafc; }
.afg-example-modal-list { margin: 18px 0 0; padding-left: 21px; color: #56657b; font-size: .82rem; line-height: 1.6; }
.afg-example-modal-list li + li { margin-top: 5px; }
.afg-example-modal-warning { margin-top: 18px; padding: 14px 16px; border: 1px solid #ffd4df; border-radius: 13px; background: #fff5f8; color: #6f3b4b; font-size: .78rem; line-height: 1.55; }
html.afg-modal-open { overflow: hidden; }
@media (max-width: 620px) {
  .afg-example-modal { padding: 12px; }
  .afg-example-modal-dialog { padding: 20px 16px; border-radius: 18px; }
  .afg-upload-stack .afg-example-btn { max-width: none; }
  .afg-document-grid .afg-upload-card { min-height: 0; }
}

/* =========================================================
   AFG v1.16 · Private media, immutable ID docs and RUT
   ========================================================= */
.afg-profile-photo-form,
.afg-rut-upload-form {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #edf0f4;
  text-align: left;
}
.afg-profile-photo-form label,
.afg-rut-upload-form label { display: grid; gap: 7px; color: #34435a; font-size: .72rem; }
.afg-profile-photo-form input[type="file"],
.afg-rut-upload-form input[type="file"] { width: 100%; font-size: .68rem; }
.afg-profile-photo-form small { color: #8c97a8; font-size: .64rem; line-height: 1.45; }
.afg-profile-photo-form .afg-btn,
.afg-rut-upload-form .afg-btn { width: 100%; }

.afg-model-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.afg-model-doc-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 170px auto auto;
  border: 1px solid #e3e8ef;
  border-radius: 15px;
  background: #fbfcfe;
  color: #1c2b43;
  text-decoration: none;
}
.afg-model-doc-card img { width: 100%; height: 170px; object-fit: contain; background: #eef2f7; }
.afg-model-doc-card span { padding: 12px 13px 3px; font-size: .7rem; font-weight: 850; }
.afg-model-doc-card small { padding: 0 13px 12px; color: #8a95a7; font-size: .64rem; }

.afg-rut-file-row,
.afg-rut-admin-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #fbfcfe;
}
.afg-rut-file-row > div,
.afg-rut-admin-file > div:first-child { display: flex; align-items: center; gap: 11px; min-width: 0; }
.afg-rut-file-row span,
.afg-rut-admin-file span { display: grid; min-width: 0; }
.afg-rut-file-row strong,
.afg-rut-admin-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afg-rut-file-row small,
.afg-rut-admin-file small { color: #8a95a7; font-size: .65rem; }

.afg-admin-document-stack { display: grid; gap: 14px; }
.afg-admin-document-item {
  display: grid;
  grid-template-columns: 118px minmax(0,1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid #e4e8ef;
  border-radius: 14px;
  background: #fbfcfe;
}
.afg-admin-document-preview {
  overflow: hidden;
  width: 118px;
  min-height: 104px;
  border-radius: 11px;
  border: 1px solid #e2e7ee;
  background: #eef2f7;
}
.afg-admin-document-preview img { width: 100%; height: 100%; min-height: 104px; object-fit: contain; }
.afg-admin-document-info { display: grid; align-content: start; gap: 5px; min-width: 0; }
.afg-admin-document-info > strong { font-size: .78rem; }
.afg-admin-document-info > span { overflow: hidden; color: #7f8b9d; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.afg-file-meta-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 6px; }
.afg-file-meta-grid > div { display: grid; gap: 2px; padding: 7px 9px; border-radius: 9px; background: #fff; }
.afg-file-meta-grid small { color: #909aab; font-size: .55rem; text-transform: uppercase; letter-spacing: .04em; }
.afg-file-meta-grid b { color: #334158; font-size: .62rem; font-weight: 750; }
.afg-admin-file-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.afg-admin-file-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #dde4ee;
  border-radius: 8px;
  background: #fff;
  color: #334158;
  font-size: .58rem;
  font-weight: 850;
  text-decoration: none;
}
.afg-admin-file-actions a:last-child { border-color: #ffd1df; color: #d82456; background: #fff6f9; }
.afg-admin-file-actions.compact { justify-content: center; }
.afg-rut-review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.afg-rut-review-form .afg-btn { width: 100%; min-width: 0; }

@media (max-width: 900px) {
  .afg-model-doc-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .afg-rut-file-row,
  .afg-rut-admin-file { align-items: stretch; flex-direction: column; }
}
@media (max-width: 620px) {
  .afg-model-doc-grid { grid-template-columns: 1fr; }
  .afg-admin-document-item { grid-template-columns: 1fr; }
  .afg-admin-document-preview { width: 100%; height: 210px; }
  .afg-file-meta-grid { grid-template-columns: 1fr; }
  .afg-rut-review-form { grid-template-columns: 1fr; }
}

/* =========================================================
   AFG v1.17 · Reliable private previews + balanced admin UI
   ========================================================= */
.afg-admin-shell .afg-app-header {
  justify-content: space-between;
  gap: 22px;
  padding-inline: 34px;
}
.afg-admin-shell .afg-app-content {
  width: min(1280px, calc(100% - 54px));
  max-width: 1280px;
}
.afg-admin-header-title {
  margin-right: auto;
  justify-self: start;
  align-self: center;
}
.afg-admin-identity {
  min-width: 190px;
  justify-content: flex-end;
  padding: 8px 11px;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: #fbfcfe;
}
.afg-admin-identity-copy {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}
.afg-admin-identity-copy small {
  color: #8b96a7;
  font-size: .57rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.afg-admin-identity-copy strong {
  color: #17253f;
  font-size: .78rem;
}
.afg-admin-shell .afg-model-record-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
}
.afg-admin-shell .afg-model-record-side { gap: 16px; }
.afg-admin-rut-card { border-color: #ffd7e2; background: #fffdfd; }
.afg-rut-admin-head { align-items: flex-start; }
.afg-rut-admin-head p { margin: 4px 0 0; color: #8994a5; font-size: .66rem; }
.afg-rut-missing {
  padding: 15px;
  border: 1px dashed #e2e7ef;
  border-radius: 12px;
  background: #fafbfd;
}
.afg-rut-missing strong { color: #22314a; }
.afg-rut-missing p { margin: 5px 0 0; color: #7f8a9c; font-size: .68rem; line-height: 1.5; }
.afg-admin-document-item {
  grid-template-columns: 145px minmax(0,1fr);
  gap: 14px;
}
.afg-admin-document-preview {
  width: 145px;
  min-height: 125px;
}
.afg-admin-document-preview img {
  width: 100%;
  height: 100%;
  min-height: 125px;
  object-fit: contain;
}
.afg-private-preview-error {
  min-height: 125px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 12px;
  text-align: center;
  color: #788598;
}
.afg-private-preview-error .afg-icon { color: var(--afg-pink); }
.afg-private-preview-error strong { font-size: .67rem; }
.afg-private-preview-error small { font-size: .58rem; line-height: 1.35; }
.afg-admin-file-actions a {
  min-height: 34px;
  padding-inline: 11px;
  font-size: .59rem;
}
.afg-admin-file-actions a:last-child {
  border-color: #ff9fba;
  background: #fff1f5;
  color: #cc1f4e;
}
.afg-model-doc-fallback {
  min-height: 170px;
  display: grid !important;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px !important;
  background: #eef2f7;
  color: #778398 !important;
  text-align: center;
}
@media (max-width: 1120px) {
  .afg-admin-shell .afg-model-record-layout { grid-template-columns: 1fr; }
  .afg-admin-shell .afg-model-record-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .afg-admin-shell .afg-model-record-side > section:nth-child(3),
  .afg-admin-shell .afg-model-record-side > section:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .afg-admin-shell .afg-app-header { padding-inline: 16px; }
  .afg-admin-identity { min-width: 0; padding: 7px 9px; }
  .afg-admin-identity-copy small { display: none; }
  .afg-admin-shell .afg-model-record-side { grid-template-columns: 1fr; }
  .afg-admin-shell .afg-model-record-side > section { grid-column: auto !important; }
}
@media (max-width: 620px) {
  .afg-admin-document-item { grid-template-columns: 1fr; }
  .afg-admin-document-preview { width: 100%; min-height: 220px; }
}

/* =========================================================
   AFG v1.18 · Stable profile schema, media delivery and admin symmetry
   ========================================================= */
.afg-admin-shell .afg-app-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 32px;
  min-height: 78px;
  height: auto;
  padding: 12px 34px;
}
.afg-admin-shell .afg-app-menu-toggle {
  grid-column: 1;
  justify-self: start;
}
.afg-admin-shell .afg-admin-header-title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  text-align: center;
  min-width: 170px;
}
.afg-admin-shell .afg-admin-header-title span,
.afg-admin-shell .afg-admin-header-title strong {
  display: block;
}
.afg-admin-shell .afg-admin-identity {
  grid-column: 3;
  justify-self: end;
  min-width: 210px;
  margin: 0;
  gap: 12px;
  padding: 9px 13px;
}
.afg-admin-shell .afg-admin-identity .afg-avatar {
  flex: 0 0 auto;
}
.afg-admin-shell .afg-admin-identity-copy {
  min-width: 0;
  text-align: left;
}

/* Identity originals always use the same predictable grid for every model. */
.afg-admin-document-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.afg-admin-document-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 11px;
  border: 1px solid #e4e9f0;
  border-radius: 15px;
  background: #fff;
}
.afg-admin-document-item.is-missing {
  background: #fafbfd;
  border-style: dashed;
}
.afg-admin-document-preview {
  width: 100%;
  height: 180px;
  border-radius: 11px;
  overflow: hidden;
  background: #eef2f6;
}
.afg-admin-document-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f4f6f9;
}
.afg-admin-document-info {
  min-width: 0;
}
.afg-admin-document-info > strong {
  display: block;
  color: #17253f;
  font-size: .77rem;
}
.afg-admin-document-info > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7e899b;
  font-size: .61rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.afg-admin-document-item .afg-file-meta-grid {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 9px;
}
.afg-admin-document-item .afg-file-meta-grid > div {
  min-width: 0;
  padding: 7px;
}
.afg-admin-document-item .afg-file-meta-grid small {
  font-size: .52rem;
}
.afg-admin-document-item .afg-file-meta-grid b {
  overflow-wrap: anywhere;
  font-size: .58rem;
}
.afg-admin-document-item .afg-admin-file-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}
.afg-admin-document-item .afg-admin-file-actions a {
  justify-content: center;
  text-align: center;
}
.afg-private-preview-error {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  color: #7a8799;
}
.afg-private-preview-error strong { color: #34435a; font-size: .7rem; }
.afg-private-preview-error small { font-size: .58rem; line-height: 1.45; }

/* Model documents remain visible but immutable. */
.afg-model-doc-card { text-decoration: none; }
.afg-model-doc-card .afg-model-doc-media-link {
  display: block;
  text-decoration: none;
}
.afg-model-doc-card .afg-model-doc-media-link img {
  transition: transform .2s ease, box-shadow .2s ease;
}
.afg-model-doc-card .afg-model-doc-media-link:hover img {
  transform: scale(1.01);
}
.afg-model-doc-intro {
  margin: 8px 0 0;
  color: #1f2c44;
  font-size: .84rem;
  line-height: 1.55;
  font-weight: 500;
}
.afg-model-doc-card.is-missing { opacity: .78; }

/* RUT must always be visually present in both panels. */
.afg-admin-rut-card {
  display: block !important;
  visibility: visible !important;
}
.afg-rut-payment-warning {
  margin: 9px 0 0;
  color: #bd3158;
  font-size: .65rem;
  font-weight: 750;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .afg-admin-shell .afg-app-header {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }
  .afg-admin-shell .afg-admin-header-title { grid-column: 2; }
  .afg-admin-shell .afg-admin-identity { grid-column: 3; min-width: 0; }
  .afg-admin-document-stack { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .afg-admin-shell .afg-app-header {
    grid-template-columns: auto 1fr;
    padding: 10px 16px;
  }
  .afg-admin-shell .afg-admin-header-title { display: none; }
  .afg-admin-shell .afg-admin-identity { grid-column: 2; justify-self: end; }
  .afg-admin-document-stack { grid-template-columns: 1fr; }
  .afg-admin-document-preview { height: 220px; }
}

/* =========================================================
   AFG v1.19 · Separate logins + stable admin profile/media
   ========================================================= */
.afg-admin-shell {
  width: 100%;
  grid-template-columns: 245px minmax(0, 1fr);
}
.afg-admin-shell .afg-app-main { width: 100%; min-width: 0; }
.afg-admin-shell .afg-app-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 12px 34px;
}
.afg-admin-shell .afg-admin-header-title {
  display: grid !important;
  grid-column: auto !important;
  justify-self: auto !important;
  margin: 0 auto 0 0 !important;
  min-width: 0;
  text-align: left !important;
}
.afg-admin-shell .afg-admin-header-title span {
  font-size: .62rem;
  letter-spacing: .08em;
}
.afg-admin-shell .afg-admin-header-title strong {
  margin-top: 2px;
  font-size: .92rem;
}
.afg-admin-shell .afg-admin-identity {
  grid-column: auto !important;
  justify-self: auto !important;
  display: flex;
  align-items: center;
  gap: 14px !important;
  min-width: 210px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  background: #fbfcfe;
}
.afg-admin-shell .afg-admin-identity .afg-avatar { margin: 0; }
.afg-admin-shell .afg-admin-identity-copy {
  display: grid;
  gap: 2px;
  text-align: left;
  line-height: 1.15;
}
.afg-admin-shell .afg-app-content {
  width: min(1360px, calc(100% - 64px)) !important;
  max-width: 1360px !important;
  margin-inline: auto;
}
.afg-admin-profile-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.afg-admin-profile-core { display: grid; gap: 18px; min-width: 0; }
.afg-admin-profile-summary { position: sticky; top: 96px; align-self: start; }
.afg-admin-rut-card,
.afg-admin-documents-card { margin-top: 22px; }
.afg-admin-rut-card {
  display: block !important;
  visibility: visible !important;
  border-color: #ffd7e2;
  background: #fffdfd;
}
.afg-admin-document-stack {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.afg-admin-document-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 10px;
  padding: 11px;
}
.afg-admin-document-preview {
  width: 100% !important;
  height: 180px !important;
  min-height: 180px !important;
}
.afg-admin-document-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f7fa;
}
.afg-admin-document-item .afg-file-meta-grid { grid-template-columns: 1fr 1fr; }
.afg-admin-document-item .afg-admin-file-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.afg-admin-document-item .afg-admin-file-actions a,
.afg-admin-file-actions.compact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #dfe5ee;
  border-radius: 9px;
  background: #fff;
  color: #34435a;
  font-size: .6rem;
  font-weight: 850;
  text-decoration: none;
}
.afg-admin-document-item .afg-admin-file-actions a:last-child,
.afg-admin-file-actions.compact a:last-child {
  border-color: #ffadc2;
  background: #fff1f5;
  color: #d32255;
}
.afg-admin-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  gap: 22px;
  margin-top: 22px;
}
.afg-rut-payment-warning {
  margin: 14px 0 18px !important;
  padding: 12px 14px;
  border: 1px solid #ffc7d6;
  border-radius: 11px;
  background: #fff1f5;
  color: #a91f48 !important;
  font-size: .72rem !important;
  font-weight: 650 !important;
  line-height: 1.5;
}
.afg-rut-payment-warning strong { color: #d11e51; }
.afg-footer-bottom { gap: 6px; }
.afg-footer-admin-access {
  margin: 8px 0 0;
  color: rgba(255,255,255,.52);
  font-size: .72rem;
}
.afg-footer-age {
  color: rgba(255,255,255,.52);
  font-size: .72rem;
}
.afg-footer-admin-access a {
  color: rgba(255,255,255,.78);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.afg-admin-login-card { border-top: 4px solid var(--afg-pink); }

@media (max-width: 1180px) {
  .afg-admin-profile-top { grid-template-columns: 1fr; }
  .afg-admin-profile-summary { position: static; }
  .afg-admin-document-stack { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
  .afg-admin-shell { grid-template-columns: 1fr; }
  .afg-admin-shell .afg-app-header { padding: 10px 16px; }
  .afg-admin-shell .afg-admin-header-title { display: none !important; }
  .afg-admin-shell .afg-admin-identity { min-width: 0 !important; padding: 7px 9px !important; }
  .afg-admin-shell .afg-app-content { width: min(100% - 26px, 1360px) !important; }
  .afg-admin-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .afg-rut-card-head { align-items: stretch; flex-direction: column; }
  .afg-rut-status-pill { width: max-content; min-width: 0; margin-top: 2px; }
  .afg-admin-document-stack { grid-template-columns: 1fr !important; }
  .afg-admin-document-preview { height: 230px !important; }
  .afg-footer-bottom { justify-items: start; }
  .afg-footer-admin-access { margin-left: 0; }
}
.afg-payment-blocked-banner {
  display: grid;
  gap: 3px;
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid #ffc8d7;
  border-left: 4px solid var(--afg-pink);
  border-radius: 12px;
  background: #fff4f7;
}
.afg-payment-blocked-banner strong { color: #b51f49; font-size: .78rem; }
.afg-payment-blocked-banner span { color: #7b5360; font-size: .68rem; line-height: 1.45; }
.afg-payment-blocked-banner-success {
  border-color: #bfe9d6;
  border-left-color: var(--afg-success);
  background: #f3fff8;
}
.afg-payment-blocked-banner-success strong { color: #18724f; }
.afg-payment-blocked-banner-success span { color: #4d6e61; }

/* AFG v1.22 · Weekly liquidation administration and model history */
.afg-period-context {
  margin: -4px 0 14px;
  color: #7d899c;
  font-size: .7rem;
  line-height: 1.45;
}

.afg-admin-liquidation-card {
  overflow: visible;
}
.afg-liquidation-admin-head {
  align-items: flex-start;
}
.afg-liquidation-admin-head > .afg-pill {
  min-width: 112px;
  justify-content: center;
  text-align: center;
}
.afg-liquidation-admin-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #e4e9f0;
  border-radius: 15px;
  background: #f8fafc;
}
.afg-liquidation-period-picker {
  flex: 1;
  min-width: 0;
}
.afg-liquidation-period-picker label,
.afg-liquidation-form-grid label,
.afg-model-period-picker label {
  display: grid;
  gap: 7px;
}
.afg-liquidation-period-picker label > span,
.afg-liquidation-form-grid label > span,
.afg-model-period-picker label > span {
  color: #68768c;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .025em;
}
.afg-liquidation-period-picker select,
.afg-liquidation-form-grid input,
.afg-liquidation-form-grid select,
.afg-model-period-picker select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce3ec;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: #15233c;
  font: inherit;
  font-size: .74rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.afg-liquidation-period-picker select:focus,
.afg-liquidation-form-grid input:focus,
.afg-liquidation-form-grid select:focus,
.afg-model-period-picker select:focus {
  border-color: #f04470;
  box-shadow: 0 0 0 3px rgba(240,68,112,.08);
}
.afg-liquidation-form-grid input[readonly] {
  background: #f4f7fa;
  color: #6c788a;
}
.afg-liquidation-empty-copy {
  display: grid;
  gap: 2px;
}
.afg-liquidation-empty-copy strong { color: #18263f; font-size: .76rem; }
.afg-liquidation-empty-copy span { color: #7b879a; font-size: .66rem; }

.afg-liquidation-admin-form {
  display: grid;
  gap: 18px;
}
.afg-liquidation-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 13px;
}
.afg-liquidation-form-grid label small {
  color: #8d98aa;
  font-size: .58rem;
  line-height: 1.4;
}
.afg-admin-only-field {
  padding: 10px;
  border: 1px dashed #d7deea;
  border-radius: 12px;
  background: #fbfcfe;
}
.afg-admin-only-field > span::after {
  content: " · SOLO ADMIN";
  color: #d32f5c;
  font-size: .52rem;
  font-weight: 900;
}

.afg-liquidation-preview {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  padding: 13px;
  border-radius: 15px;
  background: #0c1c3a;
}
.afg-liquidation-preview > div {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
}
.afg-liquidation-preview span {
  color: rgba(255,255,255,.62);
  font-size: .62rem;
}
.afg-liquidation-preview strong {
  align-self: end;
  color: #fff;
  font-size: 1rem;
}
.afg-liquidation-preview .afg-liquidation-model-net {
  border-color: rgba(255,55,108,.28);
}
.afg-liquidation-preview .afg-liquidation-model-net strong { color: #ff376c; }
.afg-liquidation-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.afg-liquidation-save-row p {
  max-width: 670px;
  margin: 0;
  color: #7b8798;
  font-size: .66rem;
  line-height: 1.5;
}
.afg-liquidation-save-row .afg-btn { flex: 0 0 auto; }

.afg-liquidation-history-admin {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e8ecf2;
}
.afg-liquidation-history-admin h3 {
  margin: 0 0 4px;
  color: #17243c;
  font-size: .84rem;
}
.afg-liquidation-history-row {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(150px,.7fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  background: #fff;
  color: #18263f;
  text-decoration: none;
}
.afg-liquidation-history-row:hover { border-color: #cfd7e3; background: #fbfcfe; }
.afg-liquidation-history-row > span:not(.afg-pill) { display: grid; gap: 3px; }
.afg-liquidation-history-row small { color: #8792a4; font-size: .61rem; }
.afg-liquidation-history-row strong { font-size: .7rem; }

.afg-model-period-picker {
  margin: 4px 0 14px;
  padding: 13px;
  border: 1px solid #e2e8ef;
  border-radius: 13px;
  background: #f8fafc;
}
.afg-model-liquidation-history {
  display: grid;
  gap: 8px;
}
.afg-model-liquidation-row {
  display: grid;
  grid-template-columns: 12px minmax(0,1fr) minmax(130px,.45fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #fff;
  color: #233149;
  text-decoration: none;
}
.afg-model-liquidation-row:hover,
.afg-model-liquidation-row.is-selected {
  border-color: #c6eadb;
  background: #f2fff9;
}
.afg-model-liquidation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f56b7e;
}
.afg-model-liquidation-row.is-selected .afg-model-liquidation-dot { background: #1ab47b; }
.afg-model-liquidation-copy,
.afg-model-liquidation-money { display: grid; gap: 3px; }
.afg-model-liquidation-copy strong { font-size: .72rem; }
.afg-model-liquidation-copy small,
.afg-model-liquidation-money small { color: #8a96a9; font-size: .6rem; }
.afg-model-liquidation-money { text-align: right; }
.afg-model-liquidation-money strong { color: #17253d; font-size: .7rem; }

@media (max-width: 1100px) {
  .afg-liquidation-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .afg-liquidation-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .afg-liquidation-admin-toolbar,
  .afg-liquidation-save-row { align-items: stretch; flex-direction: column; }
  .afg-liquidation-form-grid,
  .afg-liquidation-preview { grid-template-columns: 1fr; }
  .afg-liquidation-history-row { grid-template-columns: 1fr auto; }
  .afg-liquidation-history-row > span:first-child { grid-column: 1 / -1; }
  .afg-model-liquidation-row { grid-template-columns: 10px minmax(0,1fr) auto; }
  .afg-model-liquidation-money { grid-column: 2; text-align: left; }
}
