.tfv-overlay{position:fixed;inset:0;z-index:12000;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;font:14px/1.5 Arial,'Microsoft YaHei',sans-serif;color:#503225;}.tfv-overlay *{box-sizing:border-box;}.tfv-overlay [hidden]{display:none!important;}.tfv-dialog{width:850px;max-width:calc(100vw - 32px);height:640px;max-height:calc(100vh - 32px);border:8px solid #fff0c5;border-radius:18px;background:#fff;position:relative;overflow:hidden;}.tfv-close{position:absolute;top:0;right:8px;border:0;background:transparent;font-size:26px;color:#969eac;cursor:pointer;z-index:2;}.tfv-header{height:60px;padding:14px 12px;background:linear-gradient(110deg,#faefd0,#ffe8a5);font-size:16px;}.tfv-header small{color:#978b72;font-size:12px;margin-left:12px;}.tfv-body{display:grid;grid-template-columns:minmax(0,1fr) 242px;height:calc(100% - 60px);}.tfv-main{padding:0 16px 24px;overflow:auto;}.tfv-main h2{font-size:16px;height:52px;margin:0;padding:14px 24px;}.tfv-main h3{font-size:14px;font-weight:500;margin:16px 0 10px;}.tfv-plans{display:flex;gap:8px;overflow-x:auto;padding:8px 0;}.tfv-plans button{flex:0 0 120px;height:118px;border:1px solid #e1e4e9;border-radius:9px;background:white;color:#1b2032;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;}.tfv-plans strong{font-size:24px;}.tfv-plans small{font-size:12px;color:#969eac;}.tfv-plans button[aria-selected=true]{background:#fff6dc;border:2px solid #ffcd56;box-shadow:0 0 4px #ffcd56;color:#704221;}.tfv-allowance{background:#fff9e9;border:1px solid #f8e9c8;border-radius:8px;padding:8px 12px;min-height:36px;}.tfv-benefit{border:1px solid #ffe6d4;border-radius:12px;min-height:162px;padding:16px 20px;background:linear-gradient(#fff8ed,#fff);position:relative;}.tfv-benefit nav{display:flex;gap:16px;}.tfv-benefit button{padding:4px 0;border:0;background:none;color:#767676;cursor:pointer;}.tfv-benefit button[aria-selected=true]{color:#503225;border-bottom:2px solid;}.tfv-benefit p{max-width:55%;font-size:12px;}.tfv-benefit img{position:absolute;right:0;bottom:0;width:42%;max-height:130px;object-fit:contain;}.tfv-comparison table{width:100%;border-collapse:collapse;text-align:center;}.tfv-comparison td,.tfv-comparison th{padding:12px 8px;border:1px solid #e9edf5;font-weight:400;}.tfv-comparison td:nth-child(2){background:#fff8e4;}.tfv-payment{background:#fdf8e8;padding:50px 16px 20px;text-align:center;overflow:auto;}.tfv-methods{display:flex;gap:8px;}.tfv-methods button{flex:1;padding:12px 8px;border:1px solid transparent;border-radius:8px;background:none;color:#555;cursor:pointer;}.tfv-methods button[aria-selected=true]{background:#fff;border-color:#ffd4a9;}.tfv-payment strong{font-size:36px;font-weight:400;color:#ff4946;}.tfv-payment-code{min-height:140px;display:flex;justify-content:center;align-items:center;}.tfv-qr{width:120px;height:120px;object-fit:contain;background:white;border:1px solid #e9edf5;border-radius:8px;}.tfv-primary,.tfv-secondary{border:0;border-radius:20px;background:#1769ff;color:white;padding:10px 20px;cursor:pointer;}.tfv-primary:disabled{opacity:.5;cursor:default;}.tfv-secondary{background:white;color:#1769ff;border:1px solid #1769ff;}.tfv-agreements{font-size:12px;color:#aaa;}.tfv-small{width:390px;height:auto;min-height:240px;padding:30px;text-align:center;}.tfv-small h2{font-size:24px;}.tfv-small button:not(.tfv-close){display:block;width:100%;margin:14px 0;}.tfv-gate-image,.tfv-assistant-bg{max-width:100%;max-height:180px;object-fit:contain;}.tfv-dialog button:focus-visible{outline:2px solid #1769ff;outline-offset:2px;}@media(max-width:650px){.tfv-body{grid-template-columns:1fr;overflow:auto;}.tfv-main{overflow:visible;}.tfv-payment{padding:20px;overflow:visible;}.tfv-methods{max-width:260px;margin:auto;}}

/* Supplied 1124×324 full-card artwork, with keyboard-accessible tab hit areas. */
.tfv-benefit.tfv-benefit-panel{padding:0;border:0;background:none;min-height:0;aspect-ratio:1124/324;overflow:hidden;}
.tfv-benefit-panel>img{position:static;display:block;width:100%;height:auto;max-height:none;}
.tfv-benefit-panel>p{display:none;}
.tfv-benefit-panel>nav{position:absolute;z-index:1;left:3.74%;top:12.35%;width:31.32%;height:17.3%;display:flex;gap:9.09%;}
.tfv-benefit-panel>nav>button{flex:1;min-width:0;padding:0;border:0!important;background:transparent;color:transparent;font-size:0;}
.tfv-benefit-panel>nav>button:focus-visible{outline:2px solid #1769ff;outline-offset:2px;border-radius:2px;}

.tfv-comparison-image{display:block;width:100%;height:auto;}
.tfv-accessible-table{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
/* Artwork is 1140 × 640 at 2x; QR frame follows the supplied composite. */
.tfv-dialog.tfv-assistant{width:min(570px, calc(100vw - 32px), calc((100dvh - 32px) * 1140 / 640));aspect-ratio:1140/640;height:auto;min-height:0;border:0;padding:0;background-size:100% 100%;background-repeat:no-repeat;border-radius:12px;}
.tfv-assistant-content{position:absolute;left:74.56%;top:54.375%;width:19.65%;aspect-ratio:1;padding:1.05%;border-radius:14%;background:rgba(255,255,255,.3);}
.tfv-assistant-content .tfv-qr{display:block;width:100%;height:100%;padding:7%;object-fit:contain;background:#fff;border:0;border-radius:10%;}
.tfv-assistant-content .tfv-qr-pending{display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;padding:8%;background:#fff;border-radius:10%;font-size:12px;line-height:1.4;color:#102b54;}
.tfv-assistant .tfv-close{top:3.125%;right:1.75%;width:24px;height:24px;padding:0;line-height:0;}
.tfv-assistant .tfv-close img{display:block;width:100%;height:100%;}


/* Keep the entitlement bar aligned with the list column, including horizontal scrolling. */
.rl-page .tfv-list-entry{position:sticky;bottom:12px;z-index:20;margin-top:16px;text-align:center;}
.rl-page .tfv-list-entry .tfv-list-actions{display:flex;align-items:center;min-height:44px;border-radius:24px;background:#1769ff;overflow:hidden;}
.rl-page .tfv-list-entry .tfv-list-action,.rl-page .tfv-list-entry .tfv-list-status{box-sizing:border-box;flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:10px 16px;border:0;border-radius:0;background:transparent;color:#fff;font:600 16px/24px Arial,'Microsoft YaHei',sans-serif;text-decoration:none;}
.rl-page .tfv-list-entry .tfv-list-action{cursor:pointer;}
.rl-page .tfv-list-entry .tfv-list-actions>:nth-child(2){position:relative;}
.rl-page .tfv-list-entry .tfv-list-actions>:nth-child(2):before{content:"";position:absolute;left:0;top:50%;height:20px;margin-top:-10px;border-left:1px solid rgba(255,255,255,.8);}
.rl-page .tfv-list-entry .tfv-list-action:hover{background:rgba(255,255,255,.12);color:#fff;text-decoration:none;}
.rl-page .tfv-list-entry .tfv-list-action:focus-visible{outline:2px solid #fff;outline-offset:-4px;border-radius:24px;}
.rl-page .tfv-list-entry .tfv-list-crown{width:20px;height:20px;flex:none;}
.rl-page .tfv-list-entry .tfv-list-refresh{display:block;margin:4px 12px 0 auto;padding:2px 8px;border:0;border-radius:4px;background:#f7f8fa;color:#66758f;font:12px/20px Arial,'Microsoft YaHei',sans-serif;cursor:pointer;}
.rl-page .tfv-list-entry .tfv-list-refresh:hover{color:#1769ff;text-decoration:underline;}
.rl-page .tfv-list-entry .tfv-list-refresh:focus-visible{outline:2px solid #1769ff;outline-offset:2px;}
.rl-page .tfv-list-entry [data-toefl-access-error]{margin:4px 0 0;padding:6px 12px;border-radius:6px;background:#fff3f0;color:#a63225;font-size:13px;line-height:20px;}
.rl-page .tfv-list-entry [hidden]{display:none!important;}

.tfv-payment-code{flex-direction:column;gap:10px}.tfv-payment-code [data-payment-form-wrap]{width:130px;height:130px;padding:5px;border:1px solid #ecedf0;border-radius:8px;background:#fff;overflow:hidden;text-align:center}.tfv-payment-code iframe{display:block;width:240px;height:240px;border:0;background:white}.tfv-payment-code [data-payment-qr]{background:white;padding:8px}

/* Membership design: 850 x 640, 592px content and 242px payment columns. */
.tfv-dialog:not(.tfv-small){border:0;padding:68px 8px 8px;border-radius:16px;background:linear-gradient(100deg,#fceecc,#f9edc8);}
.tfv-dialog:not(.tfv-small)>.tfv-close{top:8px;right:10px;width:24px;height:28px;padding:0;line-height:28px;font-weight:400;}
.tfv-header{position:absolute;inset:0 0 auto;height:68px;display:flex;align-items:center;gap:10px;padding:0 44px 0 18px;background:radial-gradient(ellipse at top right,#ffe19a,transparent 42%);color:#333;font-size:14px;overflow:hidden;}
.tfv-header:after{content:"";position:absolute;right:54px;top:-110px;width:230px;height:230px;border:2px solid #fff5d1;border-radius:50%;transform:rotate(-30deg);pointer-events:none;}
.tfv-avatar{width:26px;height:26px;border-radius:50%;object-fit:cover;background:#ddd;flex:none;}
.tfv-greeting{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tfv-header small{margin:0;color:#827e7f;font-size:12px;}
.tfv-body{height:100%;grid-template-columns:minmax(0,1fr) 242px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.4);}
.tfv-main{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden;}
.tfv-main h2{position:relative;flex:none;width:112px;height:52px;padding:15px 0 0 40px;background:#fff;border-radius:0 24px 0 0;font-size:16px;font-style:italic;font-weight:600;line-height:22px;}
.tfv-main h2:after{content:"";position:absolute;right:-16px;bottom:0;width:16px;height:22px;background:radial-gradient(circle at 100% 0,transparent 21px,#fff 22px);}
.tfv-scroll{flex:1;min-height:0;overflow:auto;padding:16px 16px 24px;background:#fff;scrollbar-width:none;}
.tfv-scroll::-webkit-scrollbar{display:none;}
.tfv-scroll:focus-visible{outline:2px solid #d49b37;outline-offset:-2px;}
.tfv-plans{padding:0 0 8px;margin-bottom:7px;gap:8px;max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#e4bc66 #fff8e8;}
.tfv-plans::-webkit-scrollbar{display:block;height:6px;}
.tfv-plans::-webkit-scrollbar-track{background:#fff8e8;border-radius:3px;}
.tfv-plans::-webkit-scrollbar-thumb{background:#e4bc66;border-radius:3px;}
.tfv-plans button{position:relative;justify-content:flex-start;gap:5px;padding:15px 7px 7px;border-color:#e7e9eb;border-radius:8px;font:14px/20px Arial,'Microsoft YaHei',sans-serif;color:#63646a;}
.tfv-plans strong{font-size:24px;font-weight:500;line-height:30px;color:#0f172b;}
.tfv-plans small{margin-top:auto;width:100%;min-height:20px;padding:0 2px;border-radius:10px;background:#fafafb;font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#858d9c;}
.tfv-plans small:empty{visibility:hidden;}
.tfv-plans button[aria-selected=true]{background:linear-gradient(#fff6de,#ffedbb);border-color:#ffcb54;box-shadow:0 0 5px #ffdb8a;color:#704221;padding-top:14px;}
.tfv-plans button[aria-selected=true] strong{color:#704221;}
.tfv-plans button[aria-selected=true] small{background:#f8d071;color:#704221;}
.tfv-allowance{min-height:36px;padding:7px 12px 7px 30px;background:#fff9e9 url('images/member-gift.png') no-repeat 12px center;background-size:13px auto;font-size:12px;line-height:20px;color:#0f172b;}
.tfv-main h3{margin:16px 0 10px;font-size:14px;line-height:20px;}
.tfv-main .tfv-benefit-title{padding-left:24px;background:url('images/member-crown.png') no-repeat left center;background-size:20px;}
.tfv-payment{position:relative;min-height:0;padding:50px 16px 20px;background:#fdf8e8;color:#666;}
.tfv-methods{gap:10px;}
.tfv-methods button{position:relative;height:44px;padding:0 8px;display:flex;align-items:center;justify-content:center;gap:6px;font:14px/20px Arial,'Microsoft YaHei',sans-serif;}
.tfv-methods img{width:16px;height:16px;object-fit:contain;}
.tfv-methods button[aria-selected=true]:after{content:"";position:absolute;bottom:-7px;left:calc(50% - 6px);width:12px;height:12px;border-right:1px solid #ffd4a9;border-bottom:1px solid #ffd4a9;background:#fff;transform:rotate(45deg);}
.tfv-amount{margin:12px 0 6px;line-height:44px;font-size:14px;white-space:nowrap;}
.tfv-payment strong{font-size:36px;line-height:44px;vertical-align:baseline;}
.tfv-payment-code{min-height:120px;gap:0;}
.tfv-pay-start{width:120px;height:120px;padding:12px;border:1px solid #e9edf5;border-radius:8px;background:#fff;color:#8c919b;font:12px/22px Arial,'Microsoft YaHei',sans-serif;cursor:pointer;}
.tfv-pay-start:disabled{cursor:default;color:#aaa;}
.tfv-payment-code [data-payment-qr]{padding:8px;border:1px solid #e9edf5;border-radius:8px;}
/* Payment canvases already include their quiet zone; keep sales image frames unchanged. */
.tfv-payment-code [data-payment-qr].tfv-payment-qr-compact{padding:0;border-radius:4px;}
.tfv-payment-code [data-payment-qr] img,.tfv-payment-code [data-payment-qr] canvas{display:block;max-width:100%;}
.tfv-payment-status{margin:22px 0 0;min-height:20px;font-size:12px;line-height:20px;color:#999;overflow-wrap:anywhere;}
.tfv-agreements{margin:12px 0 0;font-size:12px;line-height:20px;color:#999;}
.tfv-agreements a{color:#777;text-decoration:none;white-space:nowrap;}
.tfv-agreements a:hover{text-decoration:underline;}
@media(max-width:650px){
 .tfv-dialog:not(.tfv-small){padding-top:68px;}
 .tfv-header{gap:6px;}.tfv-header small{flex:1;font-size:11px;}.tfv-greeting{max-width:64px;}
 .tfv-body{display:block;overflow:auto;}.tfv-main{overflow:visible;}.tfv-scroll{flex:none;overflow:visible;}
 .tfv-payment{padding:24px 16px;overflow:visible;}.tfv-methods{max-width:242px;}
}

/* Real-exam gate: supplied transparent artwork includes the title and illustration. */
.tfv-dialog.tfv-gate{width:320px;height:auto;min-height:0;max-height:calc(100vh - 32px);padding:0;border:0;border-radius:0;background:transparent;overflow:auto;color:#102b54;}
.tfv-gate .tfv-close{top:0;right:3px;width:32px;height:32px;padding:0;border:1.5px solid #ccc;border-radius:50%;color:#ccc;font:26px/27px Arial,sans-serif;}
.tfv-gate-hero{position:relative;margin:0;}
.tfv-gate-artwork{display:block;width:100%;height:auto;}
.tfv-gate-actions{position:absolute;left:0;right:0;bottom:0;padding:24px;border-radius:26px;background:linear-gradient(135deg,#c9e5ff 0%,#fff 58%);}
.tfv-gate .tfv-gate-actions button{display:block;width:100%;height:44px;margin:0;padding:0 8px;border-radius:24px;font:16px/24px Arial,'Microsoft YaHei',sans-serif;}
.tfv-gate .tfv-gate-actions .tfv-primary{background:linear-gradient(100deg,#4ba0ff,#1769ff);}
.tfv-gate .tfv-gate-actions .tfv-secondary{margin-top:24px;background:#fff;border:1px solid #1769ff;color:#1769ff;}

.tfv-allowance span{display:inline-block;white-space:nowrap;}.tfv-allowance strong{color:#ff7b29;font-weight:600;margin:0 2px;}

.tfv-scan-icon{display:inline-block;width:14px;height:14px;object-fit:contain;vertical-align:-2px;}

.tfv-footer{position:absolute;bottom:16px;left:8px;right:8px;display:flex;justify-content:center;align-items:center;gap:5px;font-size:12px;color:#aaa;}
.tfv-footer button{padding:0;background:none;border:0;font:inherit;color:#999;cursor:pointer;}.tfv-footer button:disabled{cursor:default;}.tfv-footer button:not(:disabled):hover{color:#503225;}
.tfv-records-overlay{position:fixed;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35);}
.tfv-records{position:relative;width:648px;max-width:calc(100vw - 32px);height:400px;max-height:calc(100vh - 32px);padding:34px 35px;background:#fff;border-radius:8px;color:#475569;display:flex;flex-direction:column;font-size:12px;}
.tfv-records h2{margin:0 0 18px;font-size:16px;color:#444;font-weight:600;}.tfv-record-tabs{display:flex;gap:12px;margin-bottom:14px;}.tfv-record-tabs button{border:1px solid #eef0f4;border-radius:18px;padding:5px 12px;background:#fff;color:#1e293b;font:inherit;}.tfv-record-tabs button:disabled{background:#f6f7f9;color:#aab3c0;}
.tfv-record-content{overflow:auto;min-height:0;}.tfv-record-content table{width:100%;border-collapse:collapse;text-align:left;}.tfv-record-content th{background:#f8f9fb;font-size:11px;font-weight:400;white-space:nowrap;}.tfv-record-content th,.tfv-record-content td{padding:12px 10px;border-bottom:1px solid #edf0f4;}.tfv-record-content td{overflow-wrap:anywhere;}.tfv-record-content td:nth-child(3){min-width:150px;}.tfv-record-message{text-align:center;padding:20px;color:#999;}.tfv-record-retry{display:block;margin:auto;background:white;border:1px solid #ddd;border-radius:5px;padding:6px 15px;cursor:pointer;}
@media(max-width:650px){.tfv-footer{position:static;margin-top:24px;}.tfv-records{padding:30px 16px;}}

/* Trial QR uses the same message as the assistant dialog. */
.tfv-trial-copy{color:#102b54;}
.tfv-trial-copy h2{margin:0 0 8px;font-size:18px;line-height:30px;font-weight:700;}
.tfv-trial-copy strong{font-size:26px;line-height:30px;font-weight:700;color:inherit;}
.tfv-trial-copy p{margin:8px 0 16px;font-size:14px;line-height:22px;}

/* FAQ follows the IELTS dialog typography and spacing, without a second backdrop. */
.tfv-faq-overlay{position:fixed;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;}
.tfv-faq{position:relative;display:flex;flex-direction:column;width:800px;max-width:calc(100vw - 32px);max-height:min(600px,90vh);border-radius:8px;background:#fff;box-shadow:0 6px 30px #00000014;color:#333;overflow:hidden;}
.tfv-faq header{flex:none;padding:20px 24px 0;}
.tfv-faq h2{margin:0;padding-right:24px;font:500 18px/27px 'PingFang SC','Microsoft YaHei',sans-serif;}
.tfv-faq>.tfv-close{top:0;right:0;width:54px;height:54px;font-size:24px;}
.tfv-faq-body{min-height:0;padding:20px 20px 24px;overflow:hidden;display:flex;}
.tfv-faq-scroll{width:100%;max-height:min(500px,70vh);overflow:auto;padding-right:5px;overscroll-behavior:contain;scrollbar-width:thin;}
.tfv-faq-item{margin-bottom:24px;}.tfv-faq-item:last-child{margin-bottom:0;}
.tfv-faq-question{margin-bottom:8px;font:500 16px/24px 'PingFang SC','Microsoft YaHei',sans-serif;}
.tfv-faq-answer{font:400 14px/21px 'PingFang SC','Microsoft YaHei',sans-serif;overflow-wrap:break-word;}
.tfv-faq button:focus-visible,.tfv-faq-scroll:focus-visible{outline:2px solid #1769ff;outline-offset:-2px;}
