/* USDT Load visual templates. Include after styles.css. */

/* Shared form refinements keep translated text readable in all templates. */
body:has(.application-card) {
  --sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans Thai", "Noto Sans Devanagari", system-ui, sans-serif;
}
.application-card :is(.field label,.section-heading h3,.optional-section summary strong) { line-height: 1.6; }
.application-card :is(.submit-note,.card-support,.success-actions,.progress-label) { flex-wrap: wrap; }
.application-card :is(.section-kicker,.form-heading p,.optional-description,.wallet-note p,.submit-note,.success-timeline span) { overflow-wrap: anywhere; }
.application-card .section-kicker { line-height: 1.8; }
.intro h1 { overflow-wrap: anywhere; }
.intro .hero-description { white-space: pre-line; }
.application-card .privacy-notice { color: #677665; font-size: 11px; line-height: 1.85; margin: 15px 0; }
.application-card .reference-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 18px 0; overflow-wrap: anywhere; }
.application-card .reference-card strong { display: block; margin: 6px 0; font-family: ui-monospace, "Cascadia Code", monospace; font-size: 15px; letter-spacing: .7px; }
.application-card .reference-card p { font-size: 11px; line-height: 1.8; }
.site-footer .admin-link { text-decoration: underline; text-underline-offset: 3px; padding: 9px 0; }
html:is(:lang(th),:lang(hi)) :is(h1,h2,h3,.eyebrow,.section-kicker,.primary-button) { letter-spacing: 0; }
html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 { font-size: 37px; line-height: 1.45; }
html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 strong { font-size: 57px; letter-spacing: -1.8px; }

/* OCEAN — cobalt accents, an ink-blue story panel and crisp application form. */
html[data-theme="ocean"] {
  --ink: #102d54;
  --text: #263e59;
  --muted: #64768b;
  --green: #1857b2;
  --mint: #e4efff;
  --paper: #f3f7fc;
  --line: #dce5f2;
  --red: #b13e3c;
}
html[data-theme="ocean"] body { background: radial-gradient(ellipse at 88% 0%,#e4effe 0,transparent 42%),var(--paper); }
html[data-theme="ocean"] .site-header { min-height: 108px; }
html[data-theme="ocean"] .brand { color: #12304f; }
html[data-theme="ocean"] .brand img { filter: hue-rotate(65deg) saturate(1.3); }
html[data-theme="ocean"] .brand-dot { color: #2f7bdf; }
html[data-theme="ocean"] .language-control { border-color: #d3dfef; background: #fff; color: #315579; border-radius: 10px; }
html[data-theme="ocean"] .process-link { color: #607690; }
html[data-theme="ocean"] .layout { grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: 34px; }
html[data-theme="ocean"] .intro {
  background: linear-gradient(152deg,#173c69,#102745 78%);
  border: 1px solid #23466e;
  border-radius: 28px;
  padding: 33px 31px 27px;
  box-shadow: 0 22px 54px #15375c16;
}
html[data-theme="ocean"] .eyebrow { color: #bfd0e7; letter-spacing: 1px; }
html[data-theme="ocean"] .eyebrow>span:first-child { background: #92c7ff; box-shadow: 0 0 0 4px #b5dbff10; }
html[data-theme="ocean"] h1 { color: #f4f8ff; font-size: 39px; line-height: 1.47; margin: 22px 0 19px; }
html[data-theme="ocean"] h1 strong { color: #c3ddff; font-size: 57px; letter-spacing: -2.3px; }
html[data-theme="ocean"] h1 .usdt { font-size: 25px; }
html[data-theme="ocean"] h1 .hero-period { color: #83bfff; }
html[data-theme="ocean"] .hero-description { color: #bed0e5; line-height: 1.9; font-size: 12px; }
html[data-theme="ocean"] .hero-art { background: linear-gradient(135deg,#d3e9fd,#a9cbed); border: 1px solid #c4dffa; border-radius: 14px; height: 232px; }
html[data-theme="ocean"] .token-art { filter: hue-rotate(65deg) saturate(.85); }
html[data-theme="ocean"] .art-grid { background-image: radial-gradient(#416caa44 .8px,transparent .8px); }
html[data-theme="ocean"] .art-orbit { border-color: #6b9bc066; }
html[data-theme="ocean"] :is(.art-topline,.art-bottomline) { color: #2f5b89; }
html[data-theme="ocean"] .steps { gap: 21px; margin-top: 27px; }
html[data-theme="ocean"] .step-number { background: #234a73; border-color: #3c6085; color: #cee4ff; border-radius: 8px; }
html[data-theme="ocean"] .step h3 { color: #e7f0ff; font-size: 12px; }
html[data-theme="ocean"] .step p { color: #b8cce3; font-size: 11px; }
html[data-theme="ocean"] .step:not(:last-child):after { background: #42617f; }
html[data-theme="ocean"] .intro-footnote { color: #abc1dc; margin-bottom: 0; }
html[data-theme="ocean"] .application-card { border: 1px solid #dae4f0; border-radius: 17px; box-shadow: 0 16px 55px #183d6b0a; }
html[data-theme="ocean"] :is(.form-heading h2,.section-heading h3,.success-view h2) { color: #173963; }
html[data-theme="ocean"] :is(.section-kicker,.form-heading p,.optional-description,.required-note) { color: #6c8099; }
html[data-theme="ocean"] .mini-logo { color: #2867bb; border-color: #dce7f6; background: #f2f7ff; border-radius: 7px; }
html[data-theme="ocean"] :is(.progress-label,.progress-label>span:first-child,.progress-label b) { color: #577699; }
html[data-theme="ocean"] .progress-track { background: #eaf0fa; height: 4px; }
html[data-theme="ocean"] #progressFill { background: #3a7bcf; }
html[data-theme="ocean"] .section-index { color: #2f6cb9; background: #edf4fe; border-radius: 4px; padding: 3px 5px; }
html[data-theme="ocean"] .field label { color: #48627f; }
html[data-theme="ocean"] i { color: #2f6fc1; }
html[data-theme="ocean"] :is(.field input,.field select,.field textarea) { border-color: #d7e1ee; color: #2e4d6a; border-radius: 5px; }
html[data-theme="ocean"] :is(.field input,.field textarea)::placeholder { color: #8d9db0; }
html[data-theme="ocean"] .field select:has(option:checked[value=""]) { color: #8194ab; }
html[data-theme="ocean"] :is(.contact-input,.income-input) { border-color: #d7e1ee; border-radius: 5px; }
html[data-theme="ocean"] :is(.type-wrap select,.income-input select,.select-wrap>.icon,.muted) { color: #527aa5; }
html[data-theme="ocean"] .type-wrap:after { background: #dce7f4; }
html[data-theme="ocean"] :is(input,select,textarea):focus { border-color: #4d83c9; box-shadow: 0 0 0 3px #e5efff; }
html[data-theme="ocean"] :is(.contact-input,.income-input):focus-within { border-color: #4d83c9; box-shadow: 0 0 0 3px #e5efff; }
html[data-theme="ocean"] .wallet-note { background: #f0f6ff; border-color: #e2ecfb; color: #57779d; border-left: 3px solid #8cb6ec; border-radius: 5px; }
html[data-theme="ocean"] .wallet-note-small { color: #6a85a5; }
html[data-theme="ocean"] :is(.wallet-section,.optional-section,.card-support) { border-color: #e3eaf3; }
html[data-theme="ocean"] .optional-section summary strong { color: #4f6c8c; }
html[data-theme="ocean"] .optional-tag { background: #edf4fe; color: #587ea7; }
html[data-theme="ocean"] .optional-section summary>.icon { color: #718dab; }
html[data-theme="ocean"] .primary-button { background: #1859b3; color: #fff; border-radius: 6px; box-shadow: 0 5px 12px #1859b31a; }
html[data-theme="ocean"] .primary-button:hover { background: #124b9b; }
html[data-theme="ocean"] .primary-button>.icon { color: #dbeaff; }
html[data-theme="ocean"] :is(.submit-note,.submit-note .icon,.demo-label,.privacy-notice) { color: #6d829e; }
html[data-theme="ocean"] .card-support { background: #f8faff; color: #7489a2; }
html[data-theme="ocean"] .card-support button { color: #2863ae; }
html[data-theme="ocean"] .site-footer { color: #7589a1; border-color: #dce5f0; }
html[data-theme="ocean"] .success-icon { background: #eaf3ff; border-color: #d5e6fd; color: #326fbf; }
html[data-theme="ocean"] .success-timeline { background: #f2f7ff; border-color: #e0ebfa; }
html[data-theme="ocean"] :is(.success-timeline>.icon,.success-timeline strong,.success-actions) { color: #4776af; }
html[data-theme="ocean"] :is(.success-timeline span,.success-view>p:not(.demo-label)) { color: #7087a2; }
html[data-theme="ocean"] dialog { border-color: #d5e2f3; background: #f8fbff; }
html[data-theme="ocean"] dialog::backdrop { background: #102d5466; }
html[data-theme="ocean"] :is(dialog p,.dialog-close) { color: #6580a1; }
html[data-theme="ocean"] .support-dialog-icon { background: #e3efff; color: #3975bf; }

/* SUNSET — warm editorial canvas, plum form accents and a gold visual panel. */
html[data-theme="sunset"] {
  --ink: #482b55;
  --text: #544458;
  --muted: #806d79;
  --green: #764675;
  --mint: #f8e2b0;
  --paper: #fcf8f1;
  --line: #eae0d8;
  --red: #b3443a;
}
html[data-theme="sunset"] body { background: radial-gradient(ellipse at 10% 9%,#f7e7d3 0,transparent 44%),var(--paper); }
html[data-theme="sunset"] .site-header { min-height: 108px; border-bottom: 1px solid #e9ded155; }
html[data-theme="sunset"] .brand { color: #4b2c53; }
html[data-theme="sunset"] .brand img { filter: hue-rotate(205deg) saturate(.65); border-radius: 13px; }
html[data-theme="sunset"] .brand-dot { color: #bb8547; }
html[data-theme="sunset"] .language-control { border-color: #e5d7cb; background: #fffcf8; color: #77576d; }
html[data-theme="sunset"] .process-link { color: #8e756f; }
html[data-theme="sunset"] .layout { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 74px; margin-top: 32px; }
html[data-theme="sunset"] .intro { padding-top: 22px; }
html[data-theme="sunset"] .eyebrow { color: #9c754c; letter-spacing: 1.5px; }
html[data-theme="sunset"] .eyebrow>span:first-child { background: #c4934a; }
html[data-theme="sunset"] h1 { color: #4c2f55; font-size: 44px; line-height: 1.42; margin-top: 25px; }
html[data-theme="sunset"] h1 strong { color: #734e73; font-size: 66px; }
html[data-theme="sunset"] h1 .usdt { font-size: 30px; }
html[data-theme="sunset"] h1 .hero-period { color: #c28a46; }
html[data-theme="sunset"] .hero-description { color: #8b756f; line-height: 2; }
html[data-theme="sunset"] .hero-art { background: linear-gradient(128deg,#f6e4bd,#efd2a4); border: 1px solid #e5c999; border-radius: 90px 22px 22px 22px; height: 256px; }
html[data-theme="sunset"] .token-art { filter: hue-rotate(275deg) saturate(.68) brightness(1.04); }
html[data-theme="sunset"] .art-grid { background-image: radial-gradient(#a8772d44 .8px,transparent .8px); mask-image: linear-gradient(90deg,transparent,#0008); }
html[data-theme="sunset"] .art-orbit { border-color: #b68c4b50; transform: rotate(20deg) scaleX(1.3); }
html[data-theme="sunset"] :is(.art-topline,.art-bottomline) { color: #8f663a; }
html[data-theme="sunset"] .art-topline { left: 39px; }
html[data-theme="sunset"] .steps { padding-left: 0; gap: 19px; }
html[data-theme="sunset"] .step-number { background: #fbefd8; border: 1px solid #e6cfaa; color: #9b6a33; }
html[data-theme="sunset"] .step h3 { color: #675064; }
html[data-theme="sunset"] .step p { color: #8b7976; }
html[data-theme="sunset"] .step:not(:last-child):after { background: #e7d7c3; }
html[data-theme="sunset"] .intro-footnote { color: #9b8879; }
html[data-theme="sunset"] .application-card { border: 1px solid #e8ded8; border-top: 5px solid #bf945a; border-radius: 23px; box-shadow: 0 18px 48px #704d4010; padding-top: 27px; }
html[data-theme="sunset"] :is(.form-heading h2,.section-heading h3,.success-view h2) { color: #59375d; }
html[data-theme="sunset"] :is(.section-kicker,.form-heading p,.required-note,.optional-description) { color: #927b88; }
html[data-theme="sunset"] .mini-logo { border-color: #ead6b7; color: #aa773c; background: #fff8eb; }
html[data-theme="sunset"] :is(.progress-label,.progress-label>span:first-child,.progress-label b) { color: #93724c; }
html[data-theme="sunset"] .progress-track { background: #f1e7da; height: 4px; }
html[data-theme="sunset"] #progressFill { background: #bf945a; }
html[data-theme="sunset"] .section-index { color: #b28750; font-weight: 650; }
html[data-theme="sunset"] .field label { color: #796078; }
html[data-theme="sunset"] i { color: #ad7b38; }
html[data-theme="sunset"] :is(.field input,.field select,.field textarea) { border-color: #e5dbdf; color: #624562; border-radius: 10px; background: #fffdfd; }
html[data-theme="sunset"] :is(.field input,.field textarea)::placeholder { color: #a996a4; }
html[data-theme="sunset"] .field select:has(option:checked[value=""]) { color: #a18a9b; }
html[data-theme="sunset"] :is(.contact-input,.income-input) { border-color: #e5dbdf; border-radius: 10px; background: #fffdfd; }
html[data-theme="sunset"] :is(.contact-input input,.contact-input select,.income-input input,.income-input select) { background: transparent; }
html[data-theme="sunset"] :is(.type-wrap select,.income-input select,.select-wrap>.icon,.muted) { color: #98748e; }
html[data-theme="sunset"] .type-wrap:after { background: #eee3e9; }
html[data-theme="sunset"] :is(input,select,textarea):focus { border-color: #9b749d; box-shadow: 0 0 0 3px #f3eaf4; }
html[data-theme="sunset"] :is(.contact-input,.income-input):focus-within { border-color: #9b749d; box-shadow: 0 0 0 3px #f3eaf4; }
html[data-theme="sunset"] .wallet-note { background: #fdf6e9; border-color: #f2e5c9; color: #957344; border-radius: 10px; }
html[data-theme="sunset"] .wallet-note-small { color: #9d8562; }
html[data-theme="sunset"] :is(.wallet-section,.optional-section,.card-support) { border-color: #eee4e9; }
html[data-theme="sunset"] .optional-section summary strong { color: #8a6c85; }
html[data-theme="sunset"] .optional-tag { background: #f6eef5; color: #9c7a96; border-radius: 20px; padding: 4px 8px; }
html[data-theme="sunset"] .optional-section summary>.icon { color: #a3879f; }
html[data-theme="sunset"] .primary-button { background: #754a79; color: #fff8ef; border-radius: 12px; }
html[data-theme="sunset"] .primary-button:hover { background: #623b68; }
html[data-theme="sunset"] .primary-button>.icon { color: #f8dab2; }
html[data-theme="sunset"] :is(.submit-note,.submit-note .icon,.demo-label,.privacy-notice) { color: #967b89; }
html[data-theme="sunset"] .card-support { background: #fffaf3; color: #9b887b; }
html[data-theme="sunset"] .card-support button { color: #8c6483; }
html[data-theme="sunset"] .site-footer { color: #9c887c; border-color: #e8dbce; }
html[data-theme="sunset"] .success-icon { color: #a67c3d; background: #fcf1d9; border-color: #edddbd; }
html[data-theme="sunset"] .success-timeline { background: #fbf4fb; border-color: #eee2ee; }
html[data-theme="sunset"] :is(.success-timeline>.icon,.success-timeline strong,.success-actions) { color: #96728e; }
html[data-theme="sunset"] :is(.success-timeline span,.success-view>p:not(.demo-label)) { color: #9c8498; }
html[data-theme="sunset"] dialog { border-color: #e5d6d9; background: #fffaf5; }
html[data-theme="sunset"] dialog::backdrop { background: #4d2e4d66; }
html[data-theme="sunset"] :is(dialog p,.dialog-close) { color: #977e8d; }
html[data-theme="sunset"] .support-dialog-icon { background: #f2e5f1; color: #9a7391; }

/* Make theme previews and multilingual forms work from 320px up. */
@media (max-width:1100px) and (min-width:761px) {
  html[data-theme="ocean"] .layout { gap: 25px; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  html[data-theme="ocean"] .intro { padding: 29px 24px 25px; }
  html[data-theme="ocean"] h1 { font-size: 32px; }
  html[data-theme="ocean"] h1 strong { font-size: 45px; }
  html[data-theme="ocean"] h1 .usdt { font-size: 22px; }
  html[data-theme="sunset"] .layout { gap: 36px; }
  html[data-theme="sunset"] h1 { font-size: 35px; }
  html[data-theme="sunset"] h1 strong { font-size: 51px; }
  html[data-theme="sunset"] h1 .usdt { font-size: 25px; }
  html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 { font-size: 29px; }
  html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 strong { font-size: 44px; }
}
@media (max-width:760px) {
  .language-control { gap: 6px; }
  .language-control select { max-width: 112px; }
  .intro h1 strong { white-space: normal; display: inline-block; max-width: 100%; }
  .intro h1 strong [data-i18n="heroAmount"] { white-space: nowrap; }
  .intro h1 .usdt { white-space: nowrap; }
  html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 { font-size: 29px; line-height: 1.5; }
  html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 strong { font-size: 42px; letter-spacing: -1px; }
  .field label { min-height: 20px; }
  .field select,.field select:has(option:checked[value=""]) { font-size: 16px; }
  .field :is(.type-wrap select,.income-input select) { font-size: 13px; }
  .field input::placeholder,.field textarea::placeholder { font-size: 12px; }
  .application-card .form-heading h2 { line-height: 1.5; }
  .application-card .section-heading { align-items: flex-start; }
  .application-card .section-heading h3 { gap: 7px; }
  .application-card .required-note { font-size: 9px; padding-top: 3px; }
  .application-card .submit-note { font-size: 10px; }
  .application-card .card-support { gap: 6px 12px; padding: 12px 20px; }
  .application-card .card-support button { font-size: 11px; }
  .site-footer { flex-wrap: wrap; line-height: 1.8; }
  html[data-theme="ocean"] .site-header { min-height: 83px; }
  html[data-theme="ocean"] .layout { margin-top: 7px; }
  html[data-theme="ocean"] .intro { padding: 26px 24px 22px; border-radius: 22px; margin-bottom: 25px; }
  html[data-theme="ocean"] h1 { font-size: 31px; margin-top: 20px; margin-bottom: 16px; }
  html[data-theme="ocean"] h1 strong { font-size: 43px; margin-left: 5px; letter-spacing: -1.5px; }
  html[data-theme="ocean"] h1 .usdt { font-size: 23px; }
  html[data-theme="ocean"] .hero-description { font-size: 12px; margin-bottom: 21px; }
  html[data-theme="ocean"] .hero-art { height: 170px; border-radius: 11px; margin-bottom: 15px; }
  html[data-theme="ocean"] .token-art { right: -14px; width: 270px; }
  html[data-theme="ocean"] .intro-footnote { color: #b4cae3; font-size: 9px; margin: 0; }
  html[data-theme="ocean"] .application-card { border-radius: 14px; }
  html[data-theme="sunset"] .site-header { min-height: 83px; }
  html[data-theme="sunset"] .layout { margin-top: 14px; }
  html[data-theme="sunset"] .intro { padding-top: 9px; }
  html[data-theme="sunset"] h1 { font-size: 34px; line-height: 1.5; margin: 19px 0 13px; }
  html[data-theme="sunset"] h1 strong { font-size: 46px; letter-spacing: -2px; }
  html[data-theme="sunset"] h1 .usdt { font-size: 24px; }
  html[data-theme="sunset"] .hero-art { height: 178px; border-radius: 58px 16px 16px 16px; margin-bottom: 20px; }
  html[data-theme="sunset"] .art-topline { left: 30px; }
  html[data-theme="sunset"] .intro-footnote { margin-bottom: 25px; }
  html[data-theme="sunset"] .application-card { border-radius: 22px; border-top-width: 4px; }
  html:is([data-theme="ocean"],[data-theme="sunset"]):is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 { font-size: 27px; }
  html:is([data-theme="ocean"],[data-theme="sunset"]):is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 strong { font-size: 40px; }
}
@media (max-width:380px) {
  .language-control { padding: 8px 9px; gap: 5px; }
  .language-control select { max-width: 85px; font-size: 11px; }
  .language-control>.icon { width: 15px; height: 15px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand img { width: 32px; height: 32px; }
  .field-grid { grid-template-columns: minmax(0,1fr); }
  html[data-theme="ocean"] .intro { padding: 24px 19px 20px; }
  html[data-theme="ocean"] h1 { font-size: 27px; }
  html[data-theme="ocean"] h1 strong { font-size: 35px; margin-left: 4px; }
  html[data-theme="ocean"] h1 .usdt { font-size: 20px; }
  html[data-theme="ocean"] .hero-art { height: 150px; }
  html[data-theme="ocean"] .token-art { width: 236px; right: -24px; top: -7px; height: 164px; }
  html[data-theme="ocean"] .art-topline { top: 17px; left: 15px; letter-spacing: 1px; font-size: 8px; }
  html[data-theme="ocean"] .art-bottomline { left: 15px; font-size: 8px; letter-spacing: 1px; }
  html[data-theme="sunset"] h1 { font-size: 30px; }
  html[data-theme="sunset"] h1 strong { font-size: 39px; }
  html[data-theme="sunset"] h1 .usdt { font-size: 22px; }
  html[data-theme="sunset"] .hero-art { height: 160px; }
  html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 { font-size: 26px; }
  html:is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 strong { font-size: 36px; }
  html:is([data-theme="ocean"],[data-theme="sunset"]):is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 { font-size: 25px; }
  html:is([data-theme="ocean"],[data-theme="sunset"]):is(:lang(vi),:lang(th),:lang(hi),:lang(es),:lang(pt),:lang(en)) .intro h1 strong { font-size: 34px; }
  .application-card .section-heading h3 { font-size: 12px; }
}
