.apply-dialog{width:min(680px,calc(100% - 32px));max-height:90dvh;border:1px solid #e8e0ef;border-radius:28px;padding:0;color:#19151e;background:#fff;box-shadow:0 24px 100px #21133333;overflow:hidden;font-family:inherit}
.apply-dialog::backdrop{background:#24173566;backdrop-filter:blur(5px)}
.apply-dialog .ad-content{padding:30px 32px 16px;max-height:calc(90dvh - 54px);overflow-y:auto;overscroll-behavior:contain}
.apply-dialog h2{font-size:clamp(25px,4vw,32px);line-height:1.3;margin:10px 0 12px;font-weight:800;letter-spacing:-1px}
.ad-close{position:absolute;right:12px;top:8px;border:0;background:#fff;border-radius:50%;width:36px;height:36px;font-size:28px;color:#63596d;z-index:2;cursor:pointer}
.ad-eyebrow{font-size:11px;letter-spacing:3px;color:#9d528b;font-weight:800}.ad-desc{font-size:15px;line-height:1.7;color:#6b6174;margin-bottom:16px}
.ad-tiers{display:grid;gap:12px}.ad-tier{border:1px solid #e3dce9;background:#fff;border-radius:16px;padding:13px 18px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:4px;font:inherit;color:inherit;cursor:pointer}
.ad-tier[aria-pressed=true]{border:2px solid #8662da;background:#f7f3ff;padding:12px 17px}.ad-tier-name{font-weight:800}.ad-tier strong{color:#7047be}.ad-tier>span:not(.ad-tier-name),.ad-tier small{grid-column:1/-1;font-size:13px;color:#75697f;line-height:1.6}
.ad-button{display:flex;align-items:center;justify-content:center;background:#17131d;color:white;border:1px solid #17131d;border-radius:14px;padding:15px 20px;font:inherit;font-size:15px;font-weight:750;text-decoration:none;cursor:pointer;width:100%;min-height:50px;box-sizing:border-box}.ad-button.secondary{background:#fff;color:#463b54;border-color:#dbd2e5}
.ad-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ad-field{display:grid;gap:8px;font-size:14px;font-weight:700;margin-bottom:14px}.ad-field input,.ad-field select{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-weight:400;border:1px solid #dcd3e5;border-radius:10px;padding:12px;background:#fff;color:#231c2e;min-height:46px}
.ad-total{display:flex;justify-content:space-between;gap:16px;padding:20px 0;margin:8px 0;border-top:1px solid #eee8f4;border-bottom:1px solid #eee8f4}.ad-total strong{font-size:22px}.ad-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.7;margin:14px 0}.ad-check input{margin-top:5px;accent-color:#8057cb;flex-shrink:0;width:17px;height:17px}
.ad-help{font-size:12px;color:#7d7387;line-height:1.8;margin:16px 0}.ad-actions{display:flex;gap:10px;margin-top:24px}.ad-bank{display:grid;gap:12px;background:#f7f3ff;padding:24px;border-radius:18px}.ad-bank strong{font-size:26px;letter-spacing:.5px}.ad-link{display:block;text-align:center;font-size:13px;margin-top:18px}.ad-alert{padding:0 24px;min-height:24px;font-size:13px;color:#93425d;line-height:1.6}
.apply-dialog:focus-visible,.apply-dialog button:focus-visible,.apply-dialog a:focus-visible,.apply-dialog input:focus-visible,.apply-dialog select:focus-visible{outline:3px solid #bea7ed;outline-offset:3px}
@media(max-width:600px){.apply-dialog{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:24px 24px 0 0}.apply-dialog .ad-content{max-height:calc(94dvh - 54px);padding:36px 22px 12px}.ad-fields{grid-template-columns:1fr}.ad-tier{padding:16px}.ad-tier[aria-pressed=true]{padding:15px}.ad-actions{flex-direction:column-reverse}.ad-desc{font-size:14px}}

.apply-dialog .ad-content>.ad-button:last-child{position:sticky;bottom:0;box-shadow:0 -12px 18px #fff;z-index:1}
/* One bottom sheet on both desktop and mobile; only its body scrolls. */
.apply-dialog{position:fixed;inset:auto 0 0;width:min(720px,100%);max-width:100%;max-height:92dvh;margin:0 auto;border-radius:24px 24px 0 0;overflow:hidden}
.apply-dialog[open]{display:flex;flex-direction:column;animation:application-sheet-in .32s cubic-bezier(.2,.8,.2,1)}
.apply-dialog .ad-content{min-height:0;max-height:none;overflow-y:auto;flex:1;padding:40px 28px 10px;-webkit-overflow-scrolling:touch}
.ad-footer{flex-shrink:0;padding:14px 28px max(14px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eee8f4}
.ad-footer[hidden]{display:none}.ad-footer .ad-actions{margin:0}.ad-alert{flex-shrink:0;margin:0;padding:0 28px 10px;min-height:0}.ad-alert:empty{display:none}
.ad-close{width:44px;height:44px;top:4px;right:8px}.ad-refund{border:1px solid #e5dfec;border-radius:14px;margin:20px 0;padding:16px}.ad-refund legend{font-weight:700;font-size:14px}.ad-refund .ad-help{margin:0 0 12px}.ad-privacy{display:inline-block;margin-left:16px}.ad-tier{touch-action:manipulation}
@keyframes application-sheet-in{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(max-width:600px){.apply-dialog .ad-content{padding:38px 20px 10px}.ad-footer{padding:12px 20px max(12px,env(safe-area-inset-bottom))}.ad-fields{gap:8px}.ad-actions{flex-direction:row}.ad-actions .ad-button:first-child{flex:0 0 35%}.ad-tier{padding:13px 16px}.ad-tier[aria-pressed=true]{padding:12px 15px}.ad-desc{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.apply-dialog[open]{animation:none}}
