.generator-page { width: min(1280px, calc(100% - 40px)); }
.generator-config { padding: 30px; }
.generator-config-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.generator-config-head h2 { margin: 9px 0 5px; font-size: 24px; }
.generator-config-head p { margin: 0; font-size: 12px; }
.generate-controls { display: grid; grid-template-columns: 150px auto; align-items: end; gap: 10px; flex: 0 0 auto; }
.generate-controls .field { margin: 0; }
.generate-controls .button { min-height: 44px; white-space: nowrap; }
.generate-buttons { display: flex; align-items: stretch; gap: 8px; }
.generate-buttons .button { min-width: 150px; }
.hybrid-progress { display: grid; gap: 10px; margin: 22px 0 4px; padding: 16px; border: 1px solid var(--lottery-line, var(--line)); border-radius: 12px; background: var(--lottery-soft, var(--panel2)); }
.progress-copy { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.progress-copy strong { font-size: 14px; }
.progress-copy span { color: var(--muted); font-size: 12px; text-align: right; }
.progress-track { height: 12px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--lottery-color, var(--purple)) 13%, #dce2e9); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lottery-deep, var(--purple)), var(--lottery-color, var(--purple2))); transition: width .18s ease; }
.games-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.games-pagination span { min-width: 190px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.filter-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.filter-card { min-width: 0; margin: 0; padding: 17px; border: 1px solid #34303e; border-radius: 13px; background: #0c0b12; }
.filter-card legend { padding: 0 7px; color: #f4f0f8; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.filter-option { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; padding: 10px 8px; border-radius: 8px; cursor: pointer; transition: background .15s ease; }
.filter-option:hover { background: #17141e; }
.filter-option + .filter-option { border-top: 1px solid #201d27; }
.filter-option input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--purple); }
.filter-option span { display: grid; gap: 3px; min-width: 0; }
.filter-option b { color: #dcd5e2; font-size: 11px; }
.filter-option small { color: #817a89; font-size: 10px; line-height: 1.4; }
.filter-all { margin-bottom: 3px; background: rgba(154, 69, 229, .08); }
.filter-all b { color: #d79cff; }
.generator-form-footer { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.generator-form-footer .status { margin: 0; }
.generator-results { min-height: 360px; margin-top: 18px; }
.generator-results .section-head { align-items: center; }
.generator-results .section-head h2 { margin: 7px 0 3px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.danger-action { color: #ff8797; border-color: rgba(255, 110, 131, .28); }
.generator-results .generated-games { max-height: none; }

.lessons-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lesson-card { padding: 0; overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #07060a; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-copy { padding: 22px; }
.lesson-copy h2 { margin: 10px 0 8px; font-size: 20px; }
.lesson-copy p, .lessons-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.lessons-empty { padding: 55px; text-align: center; }
.lessons-empty h2 { margin: 16px 0 10px; }
.video-create-form { margin-bottom: 18px; }
.video-form-grid { display: grid; grid-template-columns: 1fr 1.5fr 2fr 100px; gap: 12px; }
.video-form-grid .field { margin-bottom: 12px; }
.video-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.video-form-footer .toggle-field, .video-form-footer .footer-actions { margin: 0; }
.admin-video-list { display: grid; gap: 14px; }
.admin-video-card { display: grid; grid-template-columns: 210px 1fr; gap: 20px; }
.admin-video-preview img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #08070d; }
.admin-video-preview span { display: inline-block; margin-top: 9px; color: var(--purple2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 980px) {
    .filter-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .generator-config-head { align-items: flex-start; flex-direction: column; }
    .video-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-video-card { grid-template-columns: 160px 1fr; }
}

@media (max-width: 650px) {
    .generator-page { width: min(100% - 24px, 1280px); }
    .generator-config { padding: 18px; }
    .generate-controls, .filter-groups, .lessons-grid, .video-form-grid, .admin-video-card { grid-template-columns: 1fr; width: 100%; }
    .generate-buttons { flex-direction: column; }
    .generate-controls .button { width: 100%; }
    .generator-form-footer, .video-form-footer { align-items: stretch; flex-direction: column; }
    .result-actions { justify-content: flex-start; }
    .lessons-empty { padding: 35px 20px; }
    .admin-video-preview { max-width: 260px; }
}

/* Identidade visual e acessibilidade das loterias */
.lottery-page {
    --lottery-deep: color-mix(in srgb, var(--lottery-color) 66%, #08070d);
    --lottery-soft: color-mix(in srgb, var(--lottery-color) 18%, transparent);
    --lottery-line: color-mix(in srgb, var(--lottery-color) 52%, #34303e);
    font-size: 16px;
}
.lottery-page .lottery-title {
    position: relative;
    overflow: hidden;
    border-color: var(--lottery-line);
    background: linear-gradient(110deg, var(--lottery-soft), var(--panel) 46%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 50px color-mix(in srgb, var(--lottery-color) 12%, transparent);
}
.lottery-page .lottery-title::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: var(--lottery-color);
    opacity: .09;
    filter: blur(8px);
    pointer-events: none;
}
.lottery-page .lottery-title i { background: var(--lottery-color); box-shadow: 0 0 22px var(--lottery-soft); }
.lottery-page .eyebrow,
.lottery-page .back-link,
.lottery-page .card-link { color: color-mix(in srgb, var(--lottery-color) 72%, white); }
.lottery-page .eyebrow::before { background: var(--lottery-color); }
.lottery-page .game-format { border-color: var(--lottery-line); background: var(--lottery-soft); color: #f6f2fa; }
.lottery-page .lottery-tools-nav { border-color: var(--lottery-line); }
.lottery-page .lottery-tools-nav a { padding: 12px 17px; color: #c7c0cc; font-size: 14px; }
.lottery-page .lottery-tools-nav a:hover { background: var(--lottery-soft); color: #fff; }
.lottery-page .lottery-tools-nav a.active {
    background: var(--lottery-deep);
    color: #fff;
    box-shadow: inset 0 0 0 1px var(--lottery-line);
}
.lottery-page .panel { border-color: color-mix(in srgb, var(--lottery-color) 25%, var(--line)); }
.lottery-page .button:not(.button-ghost) {
    min-height: 50px;
    background: linear-gradient(135deg, var(--lottery-deep), color-mix(in srgb, var(--lottery-color) 78%, #35303b));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--lottery-color) 24%, transparent);
}
.lottery-page .button-small { min-height: 44px; font-size: 14px; }
.lottery-page .field label { color: #eee8f2; font-size: 14px; }
.lottery-page .field input,
.lottery-page .field select,
.lottery-page .checker-inputs textarea,
.lottery-page .generator-form select {
    min-height: 50px;
    border-color: #45404d;
    font-size: 16px;
}
.lottery-page .field input:focus,
.lottery-page .field select:focus,
.lottery-page .checker-inputs textarea:focus,
.lottery-page .generator-form select:focus {
    border-color: var(--lottery-color);
    box-shadow: 0 0 0 4px var(--lottery-soft);
}
.lottery-page .filter-card { border-color: color-mix(in srgb, var(--lottery-color) 32%, #34303e); }
.lottery-page .filter-option { min-height: 52px; align-items: center; }
.lottery-page .filter-option b { font-size: 13px; }
.lottery-page .filter-option small { font-size: 12px; }
.lottery-page .filter-option input { width: 19px; height: 19px; accent-color: var(--lottery-color); }
.lottery-page .filter-option:has(input:checked) { background: var(--lottery-soft); }
.lottery-page .filter-option:has(input:checked) b { color: #fff; }
.lottery-page .filter-all { background: color-mix(in srgb, var(--lottery-color) 9%, transparent); }
.lottery-page .filter-all b { color: color-mix(in srgb, var(--lottery-color) 65%, white); }
.lottery-page .number-picker span { min-width: 36px; min-height: 36px; font-size: 12px; }
.lottery-page .number-picker input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.lottery-page .number-picker input:checked + span {
    background: var(--lottery-deep);
    border-color: var(--lottery-color);
    color: #fff;
    box-shadow: 0 0 0 2px var(--lottery-soft);
}
.selection-toolbar strong { padding: 9px 12px; border-radius: 9px; background: #17141e; font-size: 13px; }
.selection-toolbar strong.is-complete { background: rgba(66,214,156,.13); color: #8ff0c9; }
.status {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}
.status::before { flex: 0 0 auto; font-size: 15px; line-height: 1.3; }
.status--info { color: #d9d2df; background: #18151e; border-color: #383240; }
.status--info::before { content: "●"; color: var(--lottery-color, var(--purple2)); }
.status--success { color: #baf5dc; background: rgba(42,161,116,.13); border-color: rgba(66,214,156,.34); }
.status--success::before { content: "✓"; color: #61dfaa; }
.status--error { color: #ffc4cc; background: rgba(210,58,82,.12); border-color: rgba(255,110,131,.36); }
.status--error::before { content: "!"; color: #ff7e90; font-weight: 900; }
.button.is-loading::before { content: ""; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: sx-spin .75s linear infinite; }
button:disabled { opacity: .46; cursor: not-allowed; transform: none!important; filter: none!important; }
.icon-button { min-height: 42px; padding: 10px 13px; font-size: 13px; font-weight: 700; }
.icon-button:not(:disabled):hover { border-color: var(--lottery-line, #554c60); color: #fff; background: var(--lottery-soft, #211b29); }
.game-row { padding: 14px; }
.game-index { font-size: 11px; font-weight: 800; }
.game-ball { width: 34px; height: 34px; font-size: 11px; }
.empty-state { font-size: 14px; line-height: 1.6; }
.checked-card-head strong,
.checked-draw > span,
.award-list { font-size: 13px; }
.matched-numbers i { width: 32px; height: 32px; font-size: 10px; }

.lottery-card { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--lottery-color) 38%, var(--line)); }
.lottery-card::after { content: ""; position: absolute; inset: auto -28px -52px auto; width: 120px; height: 120px; border-radius: 50%; background: var(--lottery-color); opacity: .09; }
.lottery-card i { background: var(--lottery-color); box-shadow: 0 0 15px color-mix(in srgb, var(--lottery-color) 55%, transparent); }
.lottery-card .card-link { color: color-mix(in srgb, var(--lottery-color) 65%, white); font-size: 13px; }
.lottery-card:hover { border-color: var(--lottery-color); box-shadow: 0 12px 34px color-mix(in srgb, var(--lottery-color) 15%, transparent); }

.toast-stack { position: fixed; top: 92px; right: 22px; z-index: 1000; display: grid; gap: 10px; width: min(390px, calc(100% - 32px)); }
.toast { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 15px; border: 1px solid #3b3542; border-radius: 13px; background: #17141d; color: #f8f4fa; box-shadow: 0 18px 55px rgba(0,0,0,.48); font-size: 14px; line-height: 1.45; animation: sx-toast-in .22s ease-out; }
.toast--success { border-color: rgba(66,214,156,.48); }
.toast--success .toast-icon { color: #61dfaa; }
.toast--error { border-color: rgba(255,110,131,.5); }
.toast--error .toast-icon { color: #ff8797; }
.toast--info .toast-icon { color: var(--purple2); }
.toast-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.06); font-size: 16px; font-weight: 900; }
.toast-close { border: 0; background: none; color: #aaa2b0; cursor: pointer; font-size: 21px; line-height: 1; padding: 4px; }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: .2s ease; }
@keyframes sx-spin { to { transform: rotate(360deg); } }
@keyframes sx-toast-in { from { opacity: 0; transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; }
}
@media (max-width: 650px) {
    .lottery-page { font-size: 15px; }
    .lottery-page .lottery-tools-nav a { min-height: 46px; display: grid; place-items: center; font-size: 13px; }
    .toast-stack { top: 78px; right: 16px; }
    .game-ball { width: 31px; height: 31px; }
    .progress-copy, .games-pagination { align-items: stretch; flex-direction: column; }
    .progress-copy span { text-align: left; }
    .games-pagination span { min-width: 0; order: -1; }
}

[hidden] { display: none!important; }

.checker-actions { display: grid; gap: 9px; margin-bottom: 12px; }
.checker-summary { margin: 4px 0 18px; padding: 15px; border: 1px solid var(--lottery-line); border-radius: 12px; background: var(--lottery-soft); }
.checker-summary > strong { display: block; margin-bottom: 10px; font-size: 15px; }
.checker-summary-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checker-summary-card { min-width: 118px; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--lottery-color) 30%, #d7dde7); border-radius: 9px; background: #fff; color: #344052; font-size: 12px; }
.checker-summary-card b { display: block; color: var(--lottery-deep); font-size: 16px; }
.checker-results .games-pagination { margin-top: 16px; }
.checker-filter-bar { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(180px, 1fr) auto minmax(150px, auto); align-items: end; gap: 12px; margin: 0 0 18px; padding: 14px; border: 1px solid var(--lottery-line); border-radius: 12px; background: color-mix(in srgb, var(--lottery-color) 6%, #f7f8fa); }
.checker-filter-bar .field { margin: 0; }
.checker-filter-bar select { width: 100%; min-height: 46px; background: #fff; }
.checker-filter-bar > strong { align-self: center; color: #455166; font-size: 13px; text-align: right; }
.special-check { display: grid; gap: 3px; margin-top: 8px; padding: 8px 10px; border: 1px solid #e0b8bd; border-radius: 9px; background: #fff2f3; color: #9b2f3c; font-size: 12px; font-weight: 800; }
.special-check.is-match { border-color: #acd9c7; background: #eaf8f2; color: #126847; }
.special-check small { color: inherit; font-size: 11px; font-weight: 600; opacity: .86; }
.checker-file-import { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px; border: 1px dashed var(--lottery-line); border-radius: 12px; background: var(--lottery-soft); }
.checker-file-import .button { flex: 0 0 auto; margin: 0; cursor: pointer; }
.checker-file-import > span { color: #536074; font-size: 13px; font-weight: 700; line-height: 1.45; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0, 0, 0, 0)!important; white-space: nowrap!important; border: 0!important; }
.visually-hidden:focus + span { outline: 3px solid var(--lottery-color); outline-offset: 3px; }

/* Fechamentos: seleção por bolinhas */
.lottery-page .number-picker { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 10px; max-height: 440px; padding: 10px; border: 1px solid color-mix(in srgb, var(--lottery-color) 25%, #dbe1e9); border-radius: 14px; background: color-mix(in srgb, var(--lottery-color) 4%, #f7f9fb); }
.lottery-page .number-picker label { display: grid; place-items: center; min-width: 48px; min-height: 48px; border-radius: 50%; }
.lottery-page .number-picker span { width: 48px; height: 48px; min-width: 48px; min-height: 48px; aspect-ratio: auto; border: 2px solid color-mix(in srgb, var(--lottery-color) 42%, #aeb8c7); border-radius: 50%; background: #fff; color: #344054; font-size: 14px; box-shadow: 0 3px 8px rgba(30, 42, 60, .08); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.lottery-page .number-picker label:hover span { transform: translateY(-2px); border-color: var(--lottery-color); box-shadow: 0 6px 14px color-mix(in srgb, var(--lottery-color) 18%, transparent); }
.lottery-page .number-picker input:checked + span { background: var(--lottery-deep); border-color: var(--lottery-color); color: #fff; box-shadow: 0 0 0 4px var(--lottery-soft), 0 6px 14px color-mix(in srgb, var(--lottery-color) 25%, transparent); }

/* Minha conta */
.account-page { width: min(1120px, calc(100% - 40px)); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-card { display: flex; flex-direction: column; min-height: 390px; }
.account-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.account-card-head h2 { margin: 4px 0 0; font-size: 22px; }
.account-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: #edf2f8; font-size: 21px; }
.subscription-card.is-active { border-color: #acd9c7; background: linear-gradient(145deg, #fff, #f1fbf7); }
.subscription-card.is-active .account-icon { background: #def5eb; color: #126847; font-weight: 900; }
.account-details { display: grid; gap: 0; margin: 0 0 22px; }
.account-details > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid #e1e6ed; }
.account-details dt { color: #667386; font-size: 14px; font-weight: 700; }
.account-details dd { min-width: 0; margin: 0; color: #273346; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.subscription-card .button { margin-top: auto; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.account-stats .panel { display: grid; gap: 6px; }
.account-stats strong { color: #1f2b3d; font-size: 25px; }
.account-stats span { color: #647185; font-size: 14px; }

/* Gestão do histórico */
.history-manager { width: min(1240px, calc(100% - 40px)); }
.history-filter { display: flex; align-items: end; gap: 12px; margin-bottom: 18px; padding: 16px; }
.history-filter .field { flex: 1 1 280px; max-width: 420px; margin: 0; }
.history-filter .button, .history-filter .icon-button { flex: 0 0 auto; }
.history-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.history-manager-card { display: flex; flex-direction: column; gap: 16px; border-color: color-mix(in srgb, var(--lottery-color) 30%, #d8dee8); }
.history-manager-head { display: flex; align-items: center; gap: 12px; }
.history-manager-head > i { width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; background: var(--lottery-color); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lottery-color) 12%, transparent); }
.history-manager-head span { color: #667386; font-size: 13px; font-weight: 700; }
.history-manager-head h2 { margin: 3px 0 0; color: #263246; font-size: 20px; }
.history-manager-card dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 0; }
.history-manager-card dl > div { padding: 11px; border-radius: 10px; background: #f3f6f9; }
.history-manager-card dt { color: #6a7688; font-size: 12px; font-weight: 700; }
.history-manager-card dd { margin: 4px 0 0; color: #2d394c; font-size: 14px; font-weight: 800; }
.history-manager-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.history-manager-actions .button, .history-manager-actions .icon-button { flex: 1 1 145px; justify-content: center; text-align: center; }
.history-rename { border-top: 1px solid #e1e6ed; padding-top: 13px; }
.history-rename summary { color: #455166; cursor: pointer; font-size: 14px; font-weight: 800; }
.history-rename form { display: grid; gap: 8px; padding-top: 13px; }
.history-rename label { color: #4f5c70; font-size: 14px; font-weight: 700; }
.history-rename form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.history-rename input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c7d0dc; border-radius: 9px; background: #fff; color: #263246; font: inherit; }
.history-rename small { color: #6c788a; font-size: 12px; }
.delete-history-form { margin-top: auto; text-align: right; }
.history-delete { padding: 8px 0; border: 0; background: none; color: #a72e42; cursor: pointer; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.history-delete:hover { color: #7f1729; }
.history-empty { padding: 42px 24px; text-align: center; }
.history-empty h2 { margin: 0 0 8px; }
.history-empty p { margin: 0 0 18px; color: #647185; }

/* Navegação móvel */
.topbar { position: relative; }
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.check-action { border-color: #a8d9c5; background: #eaf8f2; color: #126847; }
.check-action:not(:disabled):hover { border-color: #67bd99; background: #dff4eb; color: #0b5137; }
.checker-prefill-notice { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 15px 17px; border: 1px solid #a8d9c5; border-radius: 13px; background: #eaf8f2; color: #235b47; }
.checker-prefill-notice strong { flex: 0 0 auto; color: #126847; font-size: 15px; }
.checker-prefill-notice span { font-size: 14px; line-height: 1.5; }

/* Tabelas analíticas */
.checker-page { width: min(1460px, calc(100% - 40px)); }
.checker-page .checker-layout { grid-template-columns: minmax(340px, 410px) minmax(0, 1fr); align-items: start; }
.checker-results, .generator-results { min-width: 0; }
.generator-results .generated-games, .history-games { display: block; overflow: visible; padding: 0; }
.analysis-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; -webkit-overflow-scrolling: touch; }
.analysis-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.generated-analysis-table { min-width: 940px; }
.checker-results-table { min-width: 900px; }
.analysis-table th { padding: 13px 14px; background: color-mix(in srgb, var(--lottery-color) 7%, #f4f6f9); color: #435064; font-size: 12px; font-weight: 800; letter-spacing: .025em; text-align: left; white-space: nowrap; }
.analysis-table th:first-child { border-radius: 12px 0 0; }
.analysis-table th:last-child { border-radius: 0 12px 0 0; }
.analysis-table td { padding: 13px 14px; vertical-align: middle; border-bottom: 1px solid #e2e7ee; color: #273346; }
.analysis-table tbody tr:last-child td { border-bottom: 0; }
.analysis-table tbody tr:nth-child(even) { background: #fafbfd; }
.analysis-table tbody tr:hover { background: var(--lottery-soft); }
.table-game-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #edf1f5; color: #344054; font-size: 13px; }
.table-number-list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 210px; }
.table-ball { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border: 2px solid color-mix(in srgb, var(--ball-color) 64%, #fff); border-radius: 50%; background: color-mix(in srgb, var(--ball-color) 82%, #263143); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 2px 5px color-mix(in srgb, var(--ball-color) 18%, transparent); }
.table-extra { display: block; margin-top: 7px; color: #526074; font-size: 12px; font-weight: 700; }
.metric-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 50px; min-height: 34px; padding: 7px 10px; border: 1px solid #d5dce6; border-radius: 9px; background: #f4f6f9; color: #3b4658; font-weight: 800; white-space: nowrap; }
.metric-pill.is-selected { border-color: var(--lottery-line); background: var(--lottery-soft); color: var(--lottery-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lottery-color) 15%, transparent); }
.metric-pill i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--lottery-deep); color: #fff; font-size: 11px; font-style: normal; }
.applied-patterns { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px; padding: 13px 15px; border: 1px solid var(--lottery-line); border-radius: 11px; background: var(--lottery-soft); color: #344054; font-size: 13px; }
.applied-patterns > strong { color: var(--lottery-deep); font-size: 14px; }
.applied-patterns > div { display: flex; flex-wrap: wrap; gap: 7px; }
.pattern-chip { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--lottery-color) 25%, #d7dde6); border-radius: 99px; background: #fff; color: #455166; font-size: 12px; }
.pattern-chip b { color: #273346; }
.checker-draw-group { display: grid; gap: 5px; min-width: 70px; }
.checker-draw-group + .checker-draw-group { margin-top: 9px; padding-top: 9px; border-top: 1px dashed #d5dce6; }
.checker-draw-group small { color: #667386; font-size: 12px; font-weight: 800; }
.hit-count { display: grid; place-items: center; width: 40px; height: 36px; border-radius: 9px; background: #edf1f5; color: #354154; font-size: 16px; }
.hit-count.has-award { background: #e5f6ef; color: #126847; border: 1px solid #b7dfcf; }
.checker-results-table .matched-numbers { min-width: 120px; }
.checker-results-table .matched-numbers i { width: 29px; height: 29px; background: var(--checker-color); font-size: 10px; }
.checker-results-table .award-list { display: grid; gap: 4px; min-width: 145px; margin: 0; color: #475468; font-size: 13px; line-height: 1.45; }
.checker-results-table .award-list strong { color: #126847; font-size: 14px; }
.no-hits { color: #697588; font-size: 13px; }

@media (max-width: 1100px) {
    .checker-page .checker-layout { grid-template-columns: 1fr; }
    .checker-page { width: min(1120px, calc(100% - 32px)); }
    .checker-inputs textarea { min-height: 220px; }
}

@media (max-width: 900px) {
    .checker-filter-bar { grid-template-columns: 1fr 1fr; }
    .checker-filter-bar > strong { text-align: left; }
    .account-grid { grid-template-columns: 1fr; }
    .account-card { min-height: 0; }
    .history-manager-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
    .topbar .desktop-nav { display: none; }
    .mobile-menu { display: block; margin-left: auto; }
    .mobile-menu > summary { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 1px solid #b9c5d3; border-radius: 10px; background: #fff; color: #253246; cursor: pointer; font-size: 14px; font-weight: 800; }
    .mobile-menu > summary:focus-visible { outline: 3px solid rgba(11, 58, 91, .28); outline-offset: 3px; }
    .mobile-menu > summary i { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; }
    .mobile-menu[open] > summary i { transform: rotate(225deg) translate(-2px, -2px); }
    .topbar .mobile-nav { position: absolute; z-index: 100; top: calc(100% + 8px); right: 0; display: grid; align-items: stretch; gap: 5px; width: min(310px, calc(100vw - 24px)); padding: 10px; border: 1px solid #cbd4df; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(28, 40, 58, .2); }
    .topbar .mobile-nav > a { display: flex!important; align-items: center; min-height: 48px; padding: 12px 14px; border-radius: 9px; color: #344054; font-size: 15px; font-weight: 750; }
    .topbar .mobile-nav > a:hover, .topbar .mobile-nav > a:focus-visible { background: #eef3f7; color: #14283a; }
    .topbar .mobile-nav > a.button { justify-content: center; background: linear-gradient(135deg, #092f4b, #14577f); color: #fff; }
    .topbar .mobile-nav .inline-form { display: block; padding-top: 5px; border-top: 1px solid #e0e5ec; }
    .topbar .mobile-nav .link-button { width: 100%; min-height: 48px; padding: 12px 14px; color: #a72e42; font-size: 15px; font-weight: 800; text-align: left; }
}

@media (max-width: 760px) {
    .generator-results .section-head, .checker-results .section-head { align-items: stretch; flex-direction: column; }
    .generator-results .result-actions, .checker-results .section-head > .icon-button { width: 100%; }
    .generator-results .result-actions .icon-button { flex: 1 1 145px; }
    .checker-results .section-head > .icon-button { justify-content: center; }
    .analysis-table-wrap { overflow: visible; border: 0; background: transparent; }
    .analysis-table, .analysis-table tbody, .analysis-table tr, .analysis-table td { display: block; width: 100%; min-width: 0; }
    .analysis-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .analysis-table tbody { display: grid; gap: 12px; }
    .analysis-table tbody tr { overflow: hidden; border: 1px solid var(--lottery-line); border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(35, 45, 65, .06); }
    .analysis-table tbody tr:nth-child(even), .analysis-table tbody tr:hover { background: #fff; }
    .analysis-table td { display: grid; grid-template-columns: minmax(105px, 34%) minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #e4e8ee; }
    .analysis-table td::before { content: attr(data-label); color: #59667a; font-size: 12px; font-weight: 800; }
    .analysis-table td:last-child { border-bottom: 0; }
    .table-number-list { min-width: 0; }
    .table-ball { width: 30px; height: 30px; flex-basis: 30px; }
    .applied-patterns { align-items: flex-start; flex-direction: column; }
    .checker-draw-group { min-width: 0; }
    .checker-results-table .matched-numbers, .checker-results-table .award-list { min-width: 0; }
}

@media (max-width: 520px) {
    .checker-page, .generator-page { width: min(100% - 20px, 1280px); margin-top: 28px; }
    .lottery-page .lottery-title { padding: 18px; }
    .lottery-page .lottery-title > div { gap: 13px; }
    .lottery-page .lottery-title h1 { font-size: 27px; }
    .lottery-page .lottery-title p { font-size: 13px; line-height: 1.5; }
    .checker-inputs, .checker-results, .generator-results { padding: 15px; }
    .contest-row .button { width: 100%; }
    .analysis-table td { grid-template-columns: 96px minmax(0, 1fr); padding: 10px 11px; }
    .generator-results .result-actions { display: grid; grid-template-columns: 1fr; }
    .table-game-number { width: 34px; height: 34px; }
    .checker-summary { padding: 12px; }
    .checker-summary-card { flex: 1 1 105px; min-width: 0; }
    .checker-filter-bar { grid-template-columns: 1fr; padding: 12px; }
    .checker-filter-bar .button { width: 100%; }
    .checker-file-import { align-items: stretch; flex-direction: column; }
    .checker-file-import .button { width: 100%; text-align: center; }
    .lottery-page .number-picker { grid-template-columns: repeat(auto-fill, minmax(43px, 1fr)); gap: 8px; max-height: 390px; padding: 9px; }
    .lottery-page .number-picker label, .lottery-page .number-picker span { width: 43px; height: 43px; min-width: 43px; min-height: 43px; }
    .account-page { width: min(100% - 20px, 1120px); }
    .account-stats { grid-template-columns: 1fr; }
    .account-details > div { grid-template-columns: 1fr; gap: 5px; }
    .history-manager { width: min(100% - 20px, 1240px); }
    .history-filter { align-items: stretch; flex-direction: column; }
    .history-filter .field { max-width: none; }
    .history-filter .button, .history-filter .icon-button { width: 100%; text-align: center; }
    .history-manager-card dl { grid-template-columns: 1fr; }
    .history-rename form > div { grid-template-columns: 1fr; }
    .checker-prefill-notice { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* Home comercial */
.sales-home { overflow: hidden; color: #26364a; background: #fff; }
.sales-home .eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #a82b32; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.sales-home .eyebrow::before { width: 28px; height: 2px; content: ""; background: #d8b24b; }
.sales-hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); align-items: center; gap: 64px; min-height: 620px; padding-top: 72px; padding-bottom: 72px; }
.sales-hero-copy h1 { max-width: 720px; margin: 18px 0 22px; color: #0b3552; font-size: clamp(42px, 5vw, 66px); line-height: 1.04; letter-spacing: -.045em; }
.sales-hero-copy > p { max-width: 680px; margin: 0; color: #53657a; font-size: 19px; line-height: 1.7; }
.sales-home .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sales-home .hero-actions .button { min-height: 52px; padding: 14px 22px; font-size: 16px; }
.sales-home .sales-primary { background: linear-gradient(135deg, #9f252d, #c33d3d); box-shadow: 0 10px 24px rgba(159, 37, 45, .2); }
.sales-home .button-ghost { border: 1px solid #bdc8d3; background: #fff; color: #173b56; }
.sales-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 35px; padding-top: 24px; border-top: 1px solid #e0e6ec; }
.sales-trust span { display: grid; color: #657386; font-size: 13px; line-height: 1.3; }
.sales-trust b { color: #0b3552; font-size: 22px; }
.sales-product { position: relative; padding: 30px; border: 1px solid #d9e0e7; border-radius: 26px; background: linear-gradient(145deg, #fff 15%, #f6f8fa); box-shadow: 0 28px 65px rgba(16, 50, 73, .14); }
.sales-product::before { position: absolute; z-index: -1; inset: -20px 42px 26px -22px; border-radius: 26px; content: ""; background: #f5e9c6; transform: rotate(-3deg); }
.sales-product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sales-product-head small { color: #a82b32; font-weight: 900; letter-spacing: .11em; }
.sales-product-head h2 { margin: 5px 0 0; color: #7b218d; font-size: 30px; }
.sales-product-head > span { padding: 8px 11px; border-radius: 999px; background: #e5f5eb; color: #207441; font-size: 12px; font-weight: 800; }
.sales-number-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 11px; margin: 28px 0; }
.sales-number-grid i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #a535b8, #76218a); color: #fff; font-size: 17px; font-style: normal; font-weight: 900; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.sales-product-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 17px 0; border-top: 1px solid #e0e5eb; border-bottom: 1px solid #e0e5eb; }
.sales-product-metrics span { display: grid; color: #68778a; font-size: 12px; text-align: center; }
.sales-product-metrics b { color: #173b56; font-size: 20px; }
.sales-product-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #33485d; font-weight: 750; }
.sales-product-status strong { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #dff2e5; color: #198248; }
.sales-lotteries { border-top: 1px solid #e2e7ec; border-bottom: 1px solid #e2e7ec; background: #f7f9fb; }
.sales-lotteries .shell { padding-top: 25px; padding-bottom: 25px; }
.sales-section-label { display: block; margin-bottom: 17px; color: #69788a; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-align: center; }
.sales-lottery-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }
.sales-lottery-list span { display: flex; align-items: center; gap: 8px; color: #33485c; font-size: 14px; font-weight: 800; }
.sales-lottery-list i { width: 11px; height: 11px; border-radius: 50%; background: var(--item-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--item-color) 14%, transparent); }
.sales-section { padding-top: 92px; padding-bottom: 92px; }
.sales-section-heading { max-width: 690px; margin-bottom: 38px; }
.sales-section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.sales-section-heading.centered .eyebrow { justify-content: center; }
.sales-section-heading h2 { margin: 14px 0 12px; color: #0b3552; font-size: clamp(32px, 4vw, 46px); line-height: 1.12; letter-spacing: -.03em; }
.sales-section-heading p { margin: 0; color: #647386; font-size: 17px; line-height: 1.65; }
.sales-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sales-feature-grid article { min-height: 245px; padding: 28px; border: 1px solid #dfe5eb; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(23, 59, 86, .055); }
.sales-feature-grid article > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #f7ecd0; color: #8e6620; font-weight: 900; }
.sales-feature-grid h3 { margin: 24px 0 10px; color: #143a55; font-size: 20px; }
.sales-feature-grid p { margin: 0; color: #657487; font-size: 15px; line-height: 1.65; }
.sales-about { position: relative; overflow: hidden; border-top: 1px solid #e2e7ec; background: linear-gradient(115deg, #f5f8fa 0%, #fff 65%); }
.sales-about::after { position: absolute; top: -120px; right: -120px; width: 340px; height: 340px; border: 58px solid rgba(215, 174, 75, .15); border-radius: 50%; content: ""; }
.sales-about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); align-items: center; gap: 72px; min-height: 620px; padding-top: 72px; }
.sales-about-photo { align-self: end; display: flex; justify-content: center; height: 555px; overflow: hidden; }
.sales-about-photo img { width: auto; max-width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 20px 22px rgba(13, 46, 67, .16)); }
.sales-about-copy { max-width: 650px; padding: 55px 0 75px; }
.sales-about-copy h2 { margin: 14px 0 5px; color: #0b3552; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
.sales-about-copy h3 { margin: 0 0 25px; color: #a82b32; font-size: 19px; }
.sales-about-copy p { margin: 0 0 17px; color: #596b7e; font-size: 17px; line-height: 1.72; }
.sales-about-copy .button { display: inline-flex; min-height: 52px; margin-top: 13px; padding: 14px 22px; font-size: 16px; }
.sales-how { padding: 84px 0; background: #edf3f6; }
.sales-how .shell { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.sales-how ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sales-how li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid #ccd7df; }
.sales-how li:first-child { padding-top: 0; }
.sales-how li > b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #0c3a57; color: #fff; font-size: 18px; }
.sales-how h3 { margin: 1px 0 7px; color: #123a56; font-size: 20px; }
.sales-how p { margin: 0; color: #5f6f80; line-height: 1.6; }
.sales-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.sales-plan-card { position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 32px; border: 1px solid #d7e0e7; border-radius: 20px; background: #fff; box-shadow: 0 10px 32px rgba(23, 59, 86, .07); }
.sales-plan-card.featured { border: 2px solid #c89d38; box-shadow: 0 15px 40px rgba(156, 117, 27, .14); }
.sales-plan-highlight { position: absolute; top: -14px; right: 22px; padding: 7px 12px; border-radius: 999px; background: #d7ae4b; color: #3d2c08; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.sales-plan-card > small { color: #9d2c34; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.sales-plan-card h3 { margin: 10px 0 24px; color: #113a56; font-size: 25px; }
.sales-price { display: flex; align-items: baseline; margin-bottom: 24px; color: #0b3552; }
.sales-price sup { margin-right: 6px; font-size: 15px; font-weight: 850; }
.sales-price strong { font-size: 38px; letter-spacing: -.04em; }
.sales-price span { margin-left: 5px; color: #788595; font-size: 13px; }
.sales-plan-card ul { display: grid; gap: 13px; margin: 0 0 28px; padding: 0; list-style: none; color: #546579; }
.sales-plan-card li::before { margin-right: 9px; content: "✓"; color: #238450; font-weight: 900; }
.sales-plan-card .button { margin-top: auto; min-height: 50px; }
.sales-no-plans { max-width: 640px; margin: auto; text-align: center; }
.sales-faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding-top: 80px; padding-bottom: 90px; }
.sales-faq-list { display: grid; gap: 12px; }
.sales-faq details { overflow: hidden; border: 1px solid #dce3e9; border-radius: 13px; background: #fff; }
.sales-faq summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 16px 20px; color: #173b56; font-size: 16px; font-weight: 850; cursor: pointer; }
.sales-faq summary::after { content: "+"; color: #a82b32; font-size: 22px; }
.sales-faq details[open] summary::after { content: "−"; }
.sales-faq details p { margin: 0; padding: 0 20px 20px; color: #647386; line-height: 1.65; }
.sales-final-cta { padding: 66px 0; background: #0a334f; }
.sales-final-cta .shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.sales-final-cta .eyebrow { color: #efd078; }
.sales-final-cta h2 { max-width: 750px; margin: 13px 0 0; color: #fff; font-size: clamp(28px, 4vw, 43px); line-height: 1.15; }
.sales-final-cta .shell > div:last-child { display: grid; flex: 0 0 235px; gap: 13px; text-align: center; }
.sales-final-cta .button { min-height: 52px; background: #d7ae4b; color: #322406; font-size: 16px; }
.sales-final-cta a:not(.button) { color: #fff; font-size: 14px; font-weight: 800; }
.sales-responsible { margin-top: 0; margin-bottom: 0; padding-top: 24px; padding-bottom: 24px; color: #6e7c8b; font-size: 12px; line-height: 1.6; text-align: center; }

@media (max-width: 960px) {
    .sales-hero { grid-template-columns: 1fr; gap: 55px; min-height: 0; padding-top: 58px; }
    .sales-product { width: min(100%, 560px); margin: auto; }
    .sales-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .sales-about-grid { grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: 42px; }
    .sales-about-photo { height: 490px; }
    .sales-how .shell, .sales-faq { grid-template-columns: 1fr; gap: 25px; }
    .sales-how .sales-section-heading, .sales-faq .sales-section-heading { margin-bottom: 10px; }
}

@media (max-width: 650px) {
    .sales-hero { gap: 42px; padding-top: 42px; padding-bottom: 52px; }
    .sales-hero-copy h1 { font-size: 38px; }
    .sales-hero-copy > p { font-size: 17px; }
    .sales-home .hero-actions { display: grid; }
    .sales-home .hero-actions .button { justify-content: center; width: 100%; }
    .sales-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .sales-trust span { font-size: 11px; }
    .sales-trust b { font-size: 19px; }
    .sales-product { padding: 21px; border-radius: 20px; }
    .sales-product::before { display: none; }
    .sales-product-head { align-items: stretch; flex-direction: column; }
    .sales-product-head > span { align-self: flex-start; }
    .sales-number-grid { gap: 7px; }
    .sales-number-grid i { font-size: 14px; }
    .sales-section { padding-top: 64px; padding-bottom: 64px; }
    .sales-section-heading h2 { font-size: 32px; }
    .sales-feature-grid { grid-template-columns: 1fr; }
    .sales-feature-grid article { min-height: 0; padding: 24px; }
    .sales-about-grid { display: flex; flex-direction: column-reverse; gap: 0; padding-top: 0; }
    .sales-about-copy { padding: 62px 0 30px; }
    .sales-about-copy h2 { font-size: 36px; }
    .sales-about-copy .button { justify-content: center; width: 100%; }
    .sales-about-photo { align-self: center; width: 100%; height: 430px; }
    .sales-how { padding: 64px 0; }
    .sales-how .shell { gap: 14px; }
    .sales-how li { grid-template-columns: 48px 1fr; gap: 14px; }
    .sales-how li > b { width: 43px; height: 43px; }
    .sales-plan-card { min-height: 410px; padding: 27px; }
    .sales-faq { padding-top: 64px; padding-bottom: 64px; }
    .sales-final-cta { padding: 55px 0; }
    .sales-final-cta .shell { align-items: stretch; flex-direction: column; }
    .sales-final-cta .shell > div:last-child { flex: auto; width: 100%; }
}
/* Plan benefits and progressive access */
.access-locked{position:relative;opacity:.82}
.access-locked:hover{opacity:1}
.card-lock{float:right;display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff4dd;color:#815a00;font-size:10px;font-weight:800}
.benefit-showcase{margin:38px 0}
.benefit-showcase .section-head{margin-bottom:16px}
.benefit-showcase .section-head h2{margin:7px 0}
.benefit-card{display:flex;align-items:center;gap:18px;min-height:145px;transition:.2s}
.benefit-card:hover{transform:translateY(-2px);border-color:#cfad62}
.benefit-card h3{margin:0 0 7px}
.benefit-card p{margin:0 0 11px;color:var(--muted)}
.benefit-card strong{font-size:12px;color:#845d06}
.benefit-icon,.access-lock{display:grid;place-items:center;flex:0 0 auto;width:54px;height:54px;border-radius:16px;background:#fff6df;font-size:24px}
.access-required-page{display:grid;place-items:center;min-height:58vh}
.access-required-card{width:min(680px,100%);text-align:center;padding:44px}
.access-required-card .access-lock{margin:0 auto 22px}
.access-required-card h1{font-size:38px;margin:16px 0 12px}
.access-required-card>p{color:var(--muted);line-height:1.7}
.access-required-card h2{font-size:18px;margin-top:30px}
.eligible-plan-list{display:grid;gap:10px;margin:16px 0 22px;text-align:left}
.eligible-plan-list>div{display:flex;justify-content:space-between;gap:15px;padding:14px;border:1px solid var(--line);border-radius:12px}
.eligible-plan-list span{color:var(--muted)}
.feature-picker{display:grid;gap:10px;margin:16px 0;padding:15px;border:1px solid var(--line);border-radius:12px}
.feature-picker legend{padding:0 7px;font-size:12px;font-weight:800}
.feature-picker label{display:flex;align-items:flex-start;gap:10px;color:var(--text)}
.feature-picker input{margin-top:4px}
.feature-picker small{display:block;color:var(--muted);font-weight:400}
.settings-stack{display:grid;gap:28px}
.settings-stack>section+section{padding-top:28px;border-top:1px solid var(--line)}
.community-card{max-width:720px;margin-inline:auto;text-align:center}
.community-card .button{margin:16px 0}
@media(max-width:700px){.benefit-card{align-items:flex-start}.access-required-card{padding:26px 18px}.access-required-card h1{font-size:30px}.eligible-plan-list>div{flex-direction:column;gap:4px}}
.auth-help{margin:-6px 0 18px;text-align:right;font-size:12px}
.auth-help a,.auth-switch a{color:#0b5f86;font-weight:700}
.email-test-panel{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.email-test-panel h2{margin:5px 0}
@media(max-width:700px){.email-test-panel{align-items:stretch;flex-direction:column}}
.table-secondary{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.email-composer{margin-bottom:22px}
.email-composer textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font:inherit;resize:vertical}
.email-recipient-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.email-recipient-list{max-height:365px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:8px}
.email-recipient-list label{display:flex;align-items:flex-start;gap:10px;padding:10px;border-radius:9px;cursor:pointer}
.email-recipient-list label:hover{background:rgba(12,77,112,.06)}
.email-recipient-list input{margin-top:4px}
.email-recipient-list strong,.email-recipient-list small{display:block}
.email-recipient-list small{margin-top:3px;color:var(--muted)}
.email-history-panel{margin-top:22px}

/* Cloudflare Stream, video administration and course progress */
.admin-videos-page{width:min(1180px,calc(100% - 32px))}
.stream-upload-panel,.youtube-create-panel{margin-bottom:22px;padding:26px}
.stream-upload-panel .section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.stream-upload-panel h2{margin:5px 0 4px}.stream-upload-panel p{margin:0}
.stream-connection{display:inline-flex;white-space:nowrap;padding:7px 11px;border-radius:999px;background:#fff2d5;color:#7c5700;font-size:11px;font-weight:800}
.stream-connection.is-ready{background:#e8f7ef;color:#14623b}
.stream-upload-progress{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}
.stream-upload-progress>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}
.stream-progress-track,.lesson-progress-track,.course-progress-track{height:8px;overflow:hidden;border-radius:999px;background:#e5ebf0}
.stream-progress-track i,.lesson-progress-track i,.course-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0b557b,#d29a25);transition:width .25s}
.stream-upload-progress small{display:block;margin-top:9px;color:var(--muted)}
.youtube-create-panel summary{display:flex;justify-content:space-between;cursor:pointer;list-style:none}.youtube-create-panel summary span{color:var(--muted);font-size:12px}.youtube-create-panel[open] summary{margin-bottom:20px}
.stream-preview-placeholder{display:grid;place-items:center;align-content:center;gap:7px;width:100%;height:100%;min-height:120px;background:linear-gradient(145deg,#082f49,#0c638d);color:white}.stream-preview-placeholder span{font-size:30px}.stream-preview-placeholder small{font-weight:800}
.provider-badge{position:absolute!important;right:9px;top:9px!important;left:auto!important;padding:5px 7px!important;border-radius:7px!important;background:rgba(4,29,46,.88)!important;color:#fff!important;font-size:9px!important}
.stream-card-status{display:flex;align-items:center;gap:8px;margin-bottom:14px;padding:9px 11px;border-radius:10px;background:#fff6df;color:#775300;font-size:12px;font-weight:700}.stream-card-status i{width:8px;height:8px;border-radius:50%;background:#d59a1f}.stream-card-status.is-ready{background:#eaf8f0;color:#17603b}.stream-card-status.is-ready i{background:#21a362}.stream-card-status.is-error{background:#fff0f0;color:#972d2d}.stream-card-status.is-error i{background:#d33}.link-button{margin-left:auto;border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer;font:inherit;font-size:11px}
.lesson-card{overflow:hidden}.lesson-card.is-complete{border-color:#82c9a3;box-shadow:0 12px 30px rgba(20,98,59,.09)}
.lesson-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.lesson-status{padding:5px 9px;border-radius:999px;background:#eef3f7;color:#536574;font-size:10px;font-weight:800}.lesson-card.is-complete .lesson-status{background:#e7f7ef;color:#17603b}
.lesson-progress{margin:18px 0}.lesson-progress>div:first-child{display:flex;justify-content:space-between;margin-bottom:8px;font-size:12px}.lesson-progress-track{height:7px}.lesson-playback-error{display:grid;place-items:center;min-height:260px;padding:30px;background:#0b293a;color:#fff;text-align:center}
.course-progress-summary{margin-top:15px}.course-progress-summary>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;color:var(--muted);font-size:11px}.course-progress-summary b{color:var(--text)}.course-progress-track{height:6px}
.thumbnail-upload-field{margin-top:15px;padding:15px;border:1px dashed #bdcad5;border-radius:12px;background:#f8fafc}.thumbnail-upload-field input[type=file]{width:100%;padding:10px;background:#fff}.thumbnail-upload-field small{display:block;margin-top:7px;color:var(--muted)}.remove-thumbnail{margin-top:10px}
.thumbnail-live-preview{display:block;width:min(320px,100%);aspect-ratio:16/9;margin-top:12px;border:1px solid var(--line);border-radius:10px;object-fit:cover}
.video-frame{position:relative}.lesson-custom-poster{position:absolute;z-index:3;inset:0;width:100%;height:100%;padding:0;border:0;background:#071f2d;cursor:pointer;overflow:hidden}.lesson-custom-poster[hidden]{display:none}.lesson-custom-poster>img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.lesson-custom-poster:hover>img{transform:scale(1.025)}.lesson-custom-poster>span{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:10px;background:linear-gradient(180deg,rgba(4,21,31,.08),rgba(4,21,31,.5));color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.5)}.lesson-custom-poster i{display:grid;place-items:center;width:64px;height:64px;padding-left:4px;border-radius:50%;background:rgba(255,255,255,.94);color:#073a56;font-style:normal;font-size:25px;box-shadow:0 10px 30px rgba(0,0,0,.25)}.lesson-custom-poster b{font-size:14px}
@media(max-width:700px){.admin-videos-page{width:min(100% - 20px,1180px)}.stream-upload-panel,.youtube-create-panel{padding:19px 16px}.stream-upload-panel .section-head{align-items:flex-start;flex-direction:column}.stream-connection{white-space:normal}.lesson-meta{align-items:flex-start}.lesson-copy{padding:19px}.lesson-complete-toggle{width:100%;justify-content:center}}
