/* OnlyFans earnings calculator (/onlyfans-calculator) and its compact version in blog posts (.ofc-mini). */
.ofc { margin-top: 36px; }
.ofc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.ofc-card { background: #fff; border: 1px solid #e8edf5; border-radius: 8px; box-shadow: 0 12px 13px 7px rgba(231, 231, 231, .5); padding: 28px 28px 24px; min-width: 0; }

/* inputs */
.ofc-field { padding: 14px 0; border-bottom: 1px solid #eef2f7; }
.ofc-field:first-child { padding-top: 0; }
.ofc-inputs > .ofc-field:last-of-type { border-bottom: 0; }
.ofc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ofc-label { font-size: 15px; font-weight: 600; color: #0a2540; line-height: 1.35; }
.ofc-field > .ofc-label { display: block; margin-bottom: 10px; }
.ofc-num { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 40px; padding: 0 12px; border: 1px solid #dfe6ef; border-radius: 8px; background: #fff; }
.ofc-num:focus-within { border-color: #4791ff; box-shadow: 0 0 0 3px rgba(71, 145, 255, .15); }
.ofc-num input { width: 84px; border: 0; outline: 0; padding: 0; background: none; text-align: right; font: inherit; font-size: 16px; font-weight: 700; color: #0a2540; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.ofc-num input::-webkit-outer-spin-button, .ofc-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ofc-unit { font-size: 15px; font-weight: 600; color: #7a8aa0; }
.ofc-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #7a8aa0; }
.ofc input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 14px 0 2px; border-radius: 3px; background: linear-gradient(to right, #4791ff var(--p, 0%), #e8edf5 var(--p, 0%)); cursor: pointer; }
.ofc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #4791ff; box-shadow: 0 2px 6px rgba(10, 37, 64, .18); }
.ofc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #4791ff; box-shadow: 0 2px 6px rgba(10, 37, 64, .18); }
.ofc input[type=range]:focus-visible { outline: 2px solid #4791ff; outline-offset: 6px; }
.ofc-toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 100px; background: #edf4ff; }
.ofc-toggle button { height: 36px; padding: 0 18px; border: 0; border-radius: 100px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #4791ff; cursor: pointer; }
.ofc-toggle button[aria-pressed="true"] { background: #4791ff; color: #fff; }
.ofc.is-free .ofc-f-price { display: none; }
.ofc-costs { padding-top: 14px; }
.ofc-costs summary { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #4791ff; cursor: pointer; list-style: none; }
.ofc-costs summary::-webkit-details-marker { display: none; }
.ofc-costs summary::after { content: ''; width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.ofc-costs[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ofc-costs[open] summary { margin-bottom: 6px; }
.ofc-costs .ofc-field:last-of-type { border-bottom: 0; }

/* result */
.ofc-result { position: relative; background: #0a2540; border-color: #0a2540; color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.ofc-bot { position: absolute; top: 8px; right: 8px; width: 132px; height: 132px; pointer-events: none; }
.ofc-bot img, .ofc-bot .ofc-bot__live { position: absolute; inset: 0; width: 100%; height: 100%; }
.ofc-bot .ofc-bot__live svg { width: 100% !important; height: 100% !important; }
.ofc-bot.is-live img { visibility: hidden; }
.ofc-take-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ofc-take { margin-top: 10px; padding-right: 120px; }
.ofc-take b { display: block; font-size: 52px; line-height: 1.05; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.ofc-take span { display: block; margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.ofc-year { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.ofc-year b { color: #ff9a74; font-weight: 700; }
.ofc-lines { margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ofc-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.ofc-lines dt { font-weight: 400; color: rgba(255, 255, 255, .7); }
.ofc-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ofc-perfan { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.ofc-perfan b { color: #fff; }
.ofc-goal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; padding: 12px 14px; border-radius: 8px; border: 1px dashed rgba(255, 255, 255, .22); font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.ofc-goal label { margin: 0; font-weight: 400; color: inherit; }
.ofc-goal__num { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); }
.ofc-goal__num em { font-style: normal; color: rgba(255, 255, 255, .6); }
.ofc-goal__num input { width: 76px; border: 0; outline: 0; padding: 0; background: none; font: inherit; font-weight: 700; color: #fff; text-align: right; -moz-appearance: textfield; }
.ofc-goal__num input::-webkit-outer-spin-button, .ofc-goal__num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ofc-goal b { color: #fff; font-size: 16px; }
.ofc-share { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 18px 0 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #8fbcff; cursor: pointer; align-self: flex-start; }
.ofc-share:hover { color: #b3d1ff; }

/* growth */
.ofc-grow { margin-top: 20px; }
.ofc-grow__head p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; color: #5e718d; max-width: 640px; }
.ofc-grow__title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: #0a2540; }
.ofc-grow__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; margin-top: 18px; }
.ofc-grow__fields .ofc-field:last-child { border-bottom: 0; }
.ofc-chart-title { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7a8aa0; }
.ofc-bars { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; margin-top: 14px; padding-bottom: 22px; position: relative; }
.ofc-bar { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
/* a bar stacks its parts (public/js/calc-bars.js): the fans you have now under the new ones */
.ofc-col { display: flex; flex-direction: column; width: 100%; border-radius: 4px 4px 0 0; overflow: hidden; transition: height .35s ease, opacity .15s ease; }
.ofc-seg { flex: 0 1 0; min-height: 0; }
.ofc-seg--now { background: #0a2540; }
.ofc-seg--new { background: #4791ff; }
.ofc-bars.has-on .ofc-bar:not(.is-on) .ofc-col { opacity: .6; }
.ofc-bar.now em { font-weight: 700; color: #0a2540; }
.ofc-bar em { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-style: normal; font-size: 11px; color: #9aa8bc; font-variant-numeric: tabular-nums; }
.ofc-keys { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.ofc-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5e718d; }
.ofc-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 3px; }
.ofc-tip { position: absolute; z-index: 5; min-width: 190px; padding: 10px 12px; border: 1px solid #e8edf5; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(10, 37, 64, .16); font-size: 12.5px; line-height: 1.45; color: #425466; white-space: nowrap; pointer-events: none; }
.ofc-tip__head { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7a8aa0; }
.ofc-tip__total { margin: 1px 0 6px; font-size: 17px; font-weight: 700; color: #0a2540; font-variant-numeric: tabular-nums; }
.ofc-tip__row { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.ofc-tip__row span { flex: 1; }
.ofc-tip__row b { margin-left: 12px; font-weight: 600; color: #0a2540; font-variant-numeric: tabular-nums; }
.ofc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.ofc-stats > div { padding: 12px 14px; border-radius: 8px; background: #f6f8fb; }
.ofc-stats dt { font-size: 12.5px; font-weight: 500; color: #7a8aa0; }
.ofc-stats dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #0a2540; font-variant-numeric: tabular-nums; }

@media (max-width: 991px) {
    .ofc-grid, .ofc-grow__body { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .ofc-card { padding: 20px 16px 18px; }
    .ofc-label { font-size: 14px; }
    .ofc-num input { width: 70px; }
    .ofc-take { padding-right: 96px; }
    .ofc-take b { font-size: 40px; }
    .ofc-bot { width: 104px; height: 104px; }
    .ofc-bars { height: 140px; gap: 4px; }
    .ofc-stats dd { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    .ofc-col { transition: none; }
}

/* what creators really make */
.ofc-figs li { padding-top: 14px; }
.ofc-figs span { font-size: 14.5px; color: #5e718d; }
@media (max-width: 575px) {
    .ofc-figs b { font-size: 28px; }
}

/* compact version in blog posts */
.ofc-mini { margin: 32px 0; padding: 22px 24px; border-radius: 12px; background: #edf4ff; border: 1px solid rgba(71, 145, 255, .25); }
.ofc-mini__title { font-size: 20px; line-height: 1.3; font-weight: 700; color: #0a2540; }
.ofc-mini__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ofc-mini__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 600; color: #425466; }
.ofc-mini__field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d4e3fb; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; font-weight: 700; color: #0a2540; }
.ofc-mini__money { position: relative; display: block; }
.ofc-mini__money em { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 600; color: #7a8aa0; }
.ofc-mini__money input { padding-left: 24px; }
.ofc-mini__result { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.ofc-mini__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7a8aa0; }
.ofc-mini__take { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: #0a2540; font-variant-numeric: tabular-nums; }
.ofc-mini__note { font-size: 13px; color: #7a8aa0; }
/* blog links inherit the text color and get underlined (.content-rich a) */
.ofc-mini a.btn, .ofc-mini a.btn:visited, .ofc-mini a.btn:hover { color: #fff; text-decoration: none; }
@media (max-width: 575px) {
    .ofc-mini { padding: 18px 16px; }
    .ofc-mini__fields { grid-template-columns: 1fr; }
}
