:root{
  --bg:#f3f9ff;
  --surface:#ffffff;
  --surface-strong:#fbfdff;
  --text:#0b2345;
  --muted:#536b89;
  --line:#d5e6f6;
  --line-strong:#bfd8f2;
  --blue:#176ce9;
  --blue2:#32c6ee;
  --green:#18a861;
  --purple:#5249ea;
  --red:#ef4f49;
  --azure:#1971ec;
  --shadow:0 22px 64px rgba(33,88,148,.12);
  --shadow-soft:0 12px 26px rgba(31,87,146,.08);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 10% 0%,rgba(213,233,255,.52),transparent 24%),
    radial-gradient(circle at 92% 12%,rgba(214,236,255,.55),transparent 20%),
    linear-gradient(180deg,#f6fbff 0%,#eef6ff 100%);
  overflow-x:hidden;
}
a{color:inherit}
button,input{font:inherit}
.hidden{display:none!important}

.site-header{
  width:min(1380px,calc(100% - 64px));
  margin:0 auto;
  height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.main-nav{display:flex;gap:40px;align-items:center}
.main-nav a{
  text-decoration:none;
  font-weight:760;
  font-size:15px;
  color:#4f6482;
  position:relative;
}
.main-nav a.active,.main-nav a:hover{color:var(--blue)}
.main-nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-11px;height:3px;border-radius:999px;background:var(--blue)
}
.brand{
  display:flex;align-items:center;gap:16px;text-decoration:none;margin-left:auto
}
.brand img{width:54px;height:54px;border-radius:14px;display:block}
.brand-copy{display:flex;flex-direction:column;line-height:1}
.brand-copy strong{font-size:36px;letter-spacing:-.04em}
.brand-copy small{margin-top:7px;font-size:8px;letter-spacing:.42em;color:#5a6e88;font-weight:850}

.shell{width:min(1380px,calc(100% - 64px));margin:4px auto 0}
.send-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,610px);gap:42px;align-items:start}
.marketing-column{padding-top:20px;position:relative}
.marketing-column.compact{padding-top:40px}
.eyebrow{display:inline-block;font-size:11px;letter-spacing:.39em;font-weight:850;color:var(--blue)}
h1{margin:20px 0 18px;font-size:clamp(52px,5vw,78px);line-height:.96;letter-spacing:-.055em}
.hero-lead{margin:0 0 24px;max-width:790px;font-size:18px;line-height:1.55;color:#4d6683}

.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}
.feature-card{
  min-height:138px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.88);
  border-radius:18px;
  padding:18px 18px 16px;
  display:flex;align-items:flex-start;gap:16px;
  box-shadow:0 8px 22px rgba(43,92,145,.04)
}
.feature-card-wide{grid-column:span 2;min-height:106px;align-items:center}
.feature-icon{width:58px;height:58px;border-radius:50%;flex:0 0 58px;display:grid;place-items:center}
.feature-icon svg{width:31px;height:31px}
.feature-icon.blue,.provider-badge.blue{background:#e8f3ff;color:var(--blue)}
.feature-icon.green{background:#e2f7eb;color:var(--green)}
.feature-icon.purple{background:#ecebff;color:var(--purple)}
.feature-icon.red{background:#ffeceb;color:var(--red)}
.feature-icon.azure{background:#e8f3ff;color:var(--azure)}
.feature-icon.cloud{background:#fff1e3;color:#ff8a18}
.feature-card h3{margin:2px 0 8px;font-size:17px;letter-spacing:-.02em}
.feature-card p{margin:0;font-size:13px;line-height:1.45;color:#536b89}

.world-card{margin-top:22px;height:234px;position:relative;overflow:hidden}
.world-map{width:100%;height:100%}
.world-pin circle{fill:#2f85f7}
.world-pin circle.inner{fill:#ffffff}
.world-pin rect{fill:#ffffff;stroke:#d7e6f5;stroke-width:1.5;filter:drop-shadow(0 8px 14px rgba(29,83,143,.09))}
.world-pin text{font:700 12px Inter,system-ui,sans-serif;fill:#395670}
.world-caption{font:italic 28px Georgia,serif;fill:#5680ca;opacity:.9}

.panel{
  background:rgba(255,255,255,.96);
  border:1px solid #dae8f6;
  border-radius:30px;
  box-shadow:var(--shadow);
}
.upload-column{padding:22px 22px 26px;position:relative}
.quota-teaser{
  width:168px;position:absolute;right:18px;top:24px;
  background:linear-gradient(180deg,#f7fbff,#ecf4ff);
  border:1px solid #d7e7f6;border-radius:16px;padding:16px 14px 14px;box-shadow:var(--shadow-soft)
}
.quota-teaser strong{display:block;font-size:13px;line-height:1.35;color:#304e73}
.sparkles{display:inline-block;color:#ffba1e;margin-bottom:6px;font-size:15px}
.ghost-action{
  width:100%;margin-top:12px;border:1px solid #9fc5ee;background:#f2f8ff;color:var(--blue);
  border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer
}
.ghost-action:hover{background:#eaf4ff}

.infra-panel-card{
  margin-top:16px;
  min-height:112px;
  width:100%;
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 22px rgba(43,92,145,.04);
}
.infra-panel-card h3{margin:2px 0 8px;font-size:17px;letter-spacing:-.02em}
.infra-panel-card p{margin:0;font-size:13px;line-height:1.45;color:#536b89}

.dropzone{
  margin-right:190px;
  border:1.8px dashed #2a92ff;
  border-radius:22px;padding:28px 22px;text-align:center;display:grid;gap:8px;
  background:linear-gradient(180deg,#fcfdff,#f5faff);transition:.2s
}
.dropzone.drag{background:#eef7ff;border-color:#0f71e8}
.upload-cloud{width:58px;height:58px;margin:0 auto 2px;color:var(--blue)}
.upload-cloud svg{width:100%;height:100%}
.file-button{background:transparent;border:0;color:var(--blue);font-size:18px;font-weight:850;cursor:pointer;padding:0}
.dropzone strong{font-size:15px}
.dropzone small{font-size:12px;color:#60748f}
.form-stack{display:grid;gap:16px;margin:18px 0}
.field{display:grid;gap:8px;font-size:14px;font-weight:800}
.field > span{padding-left:2px}
.field input,.share-link-row input,#downloadPassword{
  width:100%;border:1px solid #c8dced;border-radius:13px;padding:13px 14px;background:#fff;outline:none;color:var(--text)
}
.field input:focus,.share-link-row input:focus,#downloadPassword:focus{border-color:#7fb7ec;box-shadow:0 0 0 4px #eaf5ff}
.input-with-icon{position:relative}
.input-with-icon input{padding-right:44px}
.icon-toggle{
  position:absolute;right:10px;top:50%;transform:translateY(-50%);
  width:28px;height:28px;border:0;background:transparent;color:#8394a8;cursor:pointer;padding:0
}
.icon-toggle svg{width:22px;height:22px}
.toggle{display:flex;align-items:center;gap:10px;font-size:14px;color:#36516f}
.toggle input{width:18px;height:18px}
.turnstile-shell{margin:14px 0 16px;min-height:70px}
.primary{
  width:100%;border:0;border-radius:16px;padding:16px 18px;color:#fff;font-size:16px;font-weight:850;
  display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;
  background:linear-gradient(100deg,#1a6ef1,#34c8ee);box-shadow:0 12px 26px rgba(18,105,230,.18)
}
.primary svg{width:20px;height:20px}
.primary:disabled{opacity:.5;cursor:not-allowed}

.status,.status-card,.error,.share-result,.upload-complete{
  margin-top:16px;padding:16px;border-radius:16px;border:1px solid var(--line);background:#f8fbff
}
.status-row{display:flex;justify-content:space-between;font-size:13px;font-weight:750;margin-bottom:9px}
.cancel-upload{margin-top:12px;width:100%;border:1px solid #efb2aa;background:#fff7f5;color:#b42318;border-radius:12px;padding:10px 14px;font-weight:850;cursor:pointer}
.cancel-upload:hover{background:#fff0ed}
.cancel-upload:disabled{opacity:.55;cursor:not-allowed}
progress{width:100%;height:9px}
.error{background:#fff3f0;border-color:#f4c7c0;color:#b42318;font-weight:700}

.share-result h2{margin:6px 0 12px;font-size:24px;letter-spacing:-.03em}
.share-section-title{font-size:11px;letter-spacing:.34em;font-weight:850;color:var(--blue)}
.share-link-row{position:relative;display:flex;align-items:center}
.share-link-row input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;padding-right:48px}
.mini-copy{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:10px;
  display:grid;place-items:center;background:transparent;color:var(--blue);cursor:pointer
}
.mini-copy:hover{background:#eaf4ff}
.mini-copy svg{width:18px;height:18px}
.share-note{margin:10px 0 12px;font-size:12px;line-height:1.45;color:#5a718d}
.share-actions-inline{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.action-pill{
  min-height:50px;border-radius:14px;padding:12px 15px;font-size:15px;font-weight:850;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:10px
}
.action-pill svg{width:19px;height:19px}
.action-pill-primary{border:0;color:#fff;background:linear-gradient(100deg,#1a6ef1,#34c8ee);box-shadow:0 12px 26px rgba(18,105,230,.18)}
.action-pill-secondary{border:1px solid #a8c9ea;background:#f2f8ff;color:#1167dc}
.action-pill-secondary:hover{background:#eaf4ff}
.action-pill-primary.copied{background:linear-gradient(100deg,#0ea75b,#29c677)}

.upload-complete{display:flex;justify-content:space-between;align-items:center;background:#ffffff}
.upload-file-meta{display:flex;align-items:center;gap:12px}
.upload-file-icon{width:42px;height:42px;border-radius:14px;background:#eaf4ff;display:grid;place-items:center;font-size:20px}
.upload-file-meta strong,.upload-file-meta small{display:block}
.upload-file-meta strong{font-size:15px}
.upload-file-meta small{font-size:12px;color:#5c728e}
.upload-complete-right{text-align:right}
.upload-complete-right strong{display:block;color:#18a861;font-size:18px}
.upload-complete-right small{display:block;color:#5c728e;font-size:11px}

.receive-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(360px,.72fr);gap:36px;align-items:start}
.receive-panel{padding:28px}
.receive-file-summary{display:flex;align-items:center;gap:14px;padding-bottom:20px}
.receive-file-icon{width:56px;height:56px;border-radius:16px;background:linear-gradient(145deg,#0f57c0,#16bef1);display:grid;place-items:center;color:#fff;font:700 31px Georgia}
.receive-file-summary strong{display:block;font-size:18px;margin-bottom:5px}
.receive-file-summary small{display:block;color:#566e8a;font-size:13px}

.site-footer{
  width:min(1380px,calc(100% - 64px));margin:16px auto 0;padding:18px 0 26px;border-top:1px solid #d5e5f4;
  display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center
}
.footer-brand{display:flex;align-items:center;gap:10px}
.footer-brand img{width:34px;height:34px;border-radius:10px}
.footer-brand strong{display:block;font-size:17px}
.footer-brand small{display:block;font-size:9px;letter-spacing:.32em;color:#627792;font-weight:800}
.footer-links{display:flex;gap:30px;justify-content:center}
.footer-links a{text-decoration:none;font-size:12px;color:#4b6280}
.footer-cloudflare{text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.footer-cloudflare span{font-size:10px;color:#60728b}
.footer-cloudflare strong{font-size:12px;letter-spacing:.08em}
.footer-cloudflare small{font-size:9px;color:#61758e}
.copyright{grid-column:1/-1;text-align:center;font-size:10px;color:#72849a}

.modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center}
.modal-backdrop{position:absolute;inset:0;background:rgba(232,242,252,.78);backdrop-filter:blur(3px)}
.modal-card{
  position:relative;z-index:1;width:min(760px,calc(100% - 32px));background:#ffffff;border:1px solid #d6e6f5;border-radius:24px;
  box-shadow:0 30px 80px rgba(23,80,140,.22);padding:22px 20px 18px;text-align:center
}
.modal-close,.qr-flyout-close{
  position:absolute;top:14px;right:14px;width:32px;height:32px;border:0;border-radius:10px;background:#f1f7ff;color:#6a7c94;font-size:24px;line-height:1;cursor:pointer
}
.modal-cloud-icon{width:58px;height:58px;border-radius:50%;margin:0 auto 10px;display:grid;place-items:center;background:#eff6ff;color:#5e9bf4}
.modal-cloud-icon svg{width:32px;height:32px}
.modal-card h2{margin:0;font-size:38px;letter-spacing:-.04em}
.modal-lead{margin:10px auto 16px;max-width:520px;font-size:15px;line-height:1.55;color:#546d89}
.auth-tabs{display:flex;gap:12px;background:#f1f6fd;border-radius:14px;padding:6px;max-width:340px;margin:0 auto 16px}
.auth-tab{flex:1;border:0;border-radius:10px;padding:11px 14px;background:transparent;font-weight:850;color:#66809c;cursor:pointer}
.auth-tab.active{background:#ffffff;color:var(--blue);box-shadow:0 8px 18px rgba(31,89,150,.08)}
.divider-text{display:flex;align-items:center;gap:14px;color:#91a2b5;font-size:12px;margin:4px auto 16px;max-width:460px}
.divider-text::before,.divider-text::after{content:"";height:1px;background:#dce9f6;flex:1}
.provider-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.provider-btn{
  width:100%;border:1px solid #d7e6f5;border-radius:12px;background:#ffffff;padding:12px 14px;
  display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;text-align:left;color:#24425f;font-weight:700;cursor:pointer
}
.provider-btn:hover{background:#f8fbff}
.provider-badge{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:16px;font-weight:900}
.provider-badge.google{background:#fff2e7;color:#f56b00}
.provider-badge.microsoft{background:#edf7ff;color:#1177d8}
.provider-badge.apple{background:#f3f4f7;color:#111}
.provider-badge.facebook{background:#ecf3ff;color:#1877f2}
.provider-badge.x{background:#f4f5f7;color:#111}
.provider-badge.github{background:#f4f5f7;color:#111}
.provider-badge.linkedin{background:#edf5ff;color:#0a66c2}
.account-benefits{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:16px;text-align:center}
.account-benefits strong{display:block;font-size:14px;margin-bottom:6px}
.account-benefits span{display:block;font-size:12px;line-height:1.45;color:#60758f}
.modal-footnote{margin:14px 0 0;font-size:12px;color:#677d95}

.qr-flyout{
  position:fixed;right:34px;bottom:110px;z-index:29;width:240px;background:#ffffff;border:1px solid #d7e7f6;border-radius:22px;
  box-shadow:0 24px 54px rgba(32,85,141,.18);padding:18px 16px 16px;text-align:center
}
.qr-flyout::before{
  content:"";position:absolute;left:50%;bottom:-12px;transform:translateX(-50%) rotate(45deg);width:24px;height:24px;background:#ffffff;border-right:1px solid #d7e7f6;border-bottom:1px solid #d7e7f6
}
.qr-flyout-frame{padding:12px;border-radius:18px;border:1px solid #dce9f5;background:#fbfdff;margin-bottom:14px;position:relative}
#shareQrCode{width:170px;height:170px;margin:0 auto}
#shareQrCode img,#shareQrCode canvas{display:block;width:170px!important;height:170px!important;margin:0 auto}
.qr-flyout strong{display:block;font-size:20px;letter-spacing:-.03em;margin-bottom:6px}
.qr-flyout p{margin:0;font-size:13px;line-height:1.45;color:#5e7490}

.info-shell{
  max-width:1040px;margin:24px auto 60px;padding:0 22px
}
.info-hero{padding:34px 0 12px;text-align:center}
.info-hero h1{margin:10px auto 14px;font-size:clamp(38px,5vw,58px);letter-spacing:-.045em;line-height:1.05}
.info-hero p{max-width:760px;margin:0 auto;color:var(--muted);font-size:17px;line-height:1.65}
.info-card{margin-top:22px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 18px 55px rgba(31,89,150,.08)}
.info-card h2{margin:0 0 12px;font-size:26px;letter-spacing:-.025em}
.info-card h3{margin:24px 0 8px;font-size:18px}
.info-card p,.info-card li{color:#4c6482;line-height:1.7;font-size:14px}
.info-card ul{padding-left:20px}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.info-stat{border:1px solid var(--line);border-radius:18px;padding:18px;background:#f8fbff}
.info-stat strong{display:block;font-size:15px;margin-bottom:6px}
.info-stat span{display:block;color:var(--muted);font-size:12px;line-height:1.55}
.diagram-wrap{overflow-x:auto;padding:8px 0}
.arch-diagram{width:100%;min-width:820px;height:auto;display:block}
.arch-node{fill:#fff;stroke:#b8d4ef;stroke-width:1.6}
.arch-node.accent{fill:#eff7ff;stroke:#72ace7}
.arch-node.cloudflare{fill:#fff7ed;stroke:#ffb05a}
.arch-line{stroke:#7da8d2;stroke-width:2;fill:none;marker-end:url(#arrow)}
.arch-dashed{stroke-dasharray:7 7}
.arch-label{font:700 15px Inter,system-ui,sans-serif;fill:#0b2345}
.arch-sub{font:500 11px Inter,system-ui,sans-serif;fill:#647892}
.arch-zone{font:800 12px Inter,system-ui,sans-serif;fill:#0d6fe8;letter-spacing:.08em}
.notice{margin-top:18px;padding:15px 17px;border-radius:14px;background:#eef7ff;border:1px solid #cfe5fa;color:#4a6480;font-size:12px;line-height:1.6}
.support-box{display:flex;gap:16px;align-items:flex-start;padding:20px;border-radius:18px;border:1px solid var(--line);background:#f8fbff}
.support-icon{width:46px;height:46px;flex:0 0 46px;border-radius:14px;display:grid;place-items:center;background:#e7f3ff;color:var(--blue);font-weight:900}

@media (max-width:1220px){
  .send-layout{grid-template-columns:1fr}
  .upload-column{max-width:760px;width:100%;margin:0 auto}
  .marketing-column{text-align:center}
  .hero-lead{margin-left:auto;margin-right:auto}
  .feature-grid{max-width:920px;margin-left:auto;margin-right:auto;text-align:left}
  .world-card{max-width:920px;margin-left:auto;margin-right:auto}
  .quota-teaser{position:static;width:auto;margin-bottom:16px}
  .dropzone{margin-right:0}
  .infra-card{margin-top:14px}
}
@media (max-width:860px){
  .feature-grid,.provider-grid,.account-benefits,.receive-layout,.site-footer{grid-template-columns:1fr}
  .feature-card-wide{grid-column:auto}
  .cloudflare-feature{padding-right:18px}
  .cloudflare-label{position:static;transform:none;margin-top:10px}
  .share-actions-inline{grid-template-columns:1fr}
  .copyright{text-align:center}
  .footer-links{flex-wrap:wrap}
  .qr-flyout{right:16px;left:16px;bottom:16px;width:auto}
}
@media (max-width:700px){
  .site-header,.shell,.site-footer{width:calc(100% - 32px)}
  .site-header{height:84px}
  .brand img{width:46px;height:46px}
  .brand-copy strong{font-size:28px}
  .brand-copy small{display:none}
  .main-nav{gap:18px}
  .main-nav a{font-size:14px}
  h1{font-size:44px}
  .hero-lead{font-size:17px}
  .feature-grid{grid-template-columns:1fr}
  .feature-card,.feature-card-wide{grid-column:auto;min-height:auto}
  .upload-column{padding:18px}
  .modal-card h2{font-size:30px}
}


/* ---------- Email authentication ---------- */
.email-auth-panel{
  max-width:520px;
  margin:0 auto 16px;
  padding:16px;
  border:1px solid #d9e8f7;
  border-radius:16px;
  background:#f8fbff
}
.auth-email-field{text-align:left}
.auth-email-button{margin-top:12px}
.auth-status{
  margin-top:12px;
  padding:11px 12px;
  border-radius:11px;
  font-size:12px;
  line-height:1.5;
  text-align:left
}
.auth-status.info{background:#eef7ff;color:#3e6285}
.auth-status.success{background:#e9f8ef;color:#14643a;border:1px solid #c8ead5}
.auth-status.error{background:#fff2f0;color:#a7352c;border:1px solid #f2cbc6}
.provider-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  background:#f8fafc
}
.provider-btn small{
  display:block;
  margin-top:2px;
  font-size:9px;
  font-weight:700;
  color:#8b9aae
}
.ghost-action.signed-in-account{
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}


/* ---------- Signed-in account state ---------- */
.account-view{
  text-align:center
}
.account-avatar{
  width:64px;
  height:64px;
  margin:0 auto 12px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  font:700 30px Georgia,serif;
  background:linear-gradient(145deg,#176ce9,#32c6ee);
  box-shadow:0 12px 28px rgba(18,105,230,.18)
}
.account-view h3{
  margin:0 0 18px;
  font-size:22px;
  letter-spacing:-.02em
}
.account-summary-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:16px
}
.account-summary-card{
  padding:16px;
  border:1px solid #d8e7f6;
  border-radius:14px;
  background:#f8fbff;
  text-align:left
}
.account-summary-card span{
  display:block;
  font-size:11px;
  color:#71859d;
  margin-bottom:5px
}
.account-summary-card strong{
  display:block;
  font-size:18px
}
.account-capacity-summary{
  margin-top:12px;padding:13px 16px;border:1px solid #cfe2f5;border-radius:14px;background:#f8fbff;
  display:flex;align-items:center;justify-content:space-between;gap:16px
}
.account-capacity-summary span{font-size:12px;color:#60758f}
.account-capacity-summary strong{font-size:15px;color:#0b2345}

.account-actions{
  display:grid;
  gap:10px
}
.account-secondary,
.account-danger{
  width:100%;
  border-radius:14px;
  padding:13px 16px;
  font-weight:800;
  cursor:pointer
}
.account-secondary{
  border:1px solid #a9c9e9;
  color:#1167dc;
  background:#f3f8ff
}
.account-secondary:hover{
  background:#eaf4ff
}
.account-danger{
  border:1px solid #efc8c3;
  color:#a7352c;
  background:#fff7f5
}
.account-danger:hover{
  background:#fff0ed
}
@media(max-width:700px){
  .account-summary-grid{
    grid-template-columns:1fr
  }
}


/* ---------- OTP + password auth ---------- */
.auth-pane{
  max-width:520px;
  margin:0 auto 16px
}
.auth-pane .field{
  margin-bottom:12px
}
.text-action{
  border:0;
  background:transparent;
  color:#176ce9;
  font-weight:750;
  cursor:pointer;
  padding:10px 4px;
  font-size:13px
}
.text-action:hover{
  text-decoration:underline
}
.back-action{
  display:block;
  margin-bottom:8px;
  padding-left:0
}
#signupStepVerify,
#resetVerifyStep{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #dce8f5
}


/* ============================================================
   V11 POLISHED ACCOUNT MODAL
   Fixes duplicate tabs, alignment, spacing and provider layout.
   ============================================================ */

.modal-backdrop{
  background:rgba(226,239,252,.80);
  backdrop-filter:blur(6px);
}

.modal-card{
  width:min(700px,calc(100% - 32px));
  max-height:calc(100vh - 42px);
  overflow-y:auto;
  padding:22px 34px 24px;
  border:1px solid #d9e7f5;
  border-radius:22px;
  box-shadow:0 32px 90px rgba(26,83,144,.22);
  scrollbar-width:thin;
}

.modal-close{
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  border-radius:11px;
  background:#f0f6fd;
  color:#57708d;
  font-size:25px;
}

.modal-cloud-icon{
  width:58px;
  height:58px;
  margin:0 auto 12px;
  background:#eef6ff;
  color:#3285f4;
}

.modal-card h2{
  margin:0;
  font-size:37px;
  line-height:1.05;
  letter-spacing:-.045em;
}

.modal-lead{
  max-width:500px;
  margin:10px auto 15px;
  font-size:14px;
  line-height:1.55;
  color:#55708e;
}

.guest-auth-view{
  width:100%;
}

.auth-tabs{
  width:100%;
  max-width:390px;
  margin:0 auto 18px;
  padding:5px;
  gap:0;
  border-radius:14px;
  background:#edf4fd;
}

.auth-tab{
  min-height:44px;
  border-radius:10px;
  padding:10px 16px;
  font-size:15px;
  font-weight:800;
}

.auth-tab.active{
  color:#0864db;
  background:#fff;
  box-shadow:0 5px 18px rgba(33,90,151,.10);
}

.auth-pane{
  max-width:620px;
  margin:0 auto 10px;
}

.auth-field{
  gap:7px;
  margin:0 0 12px!important;
  text-align:left;
}

.auth-field > span{
  display:block;
  padding-left:2px;
  color:#102844;
  font-size:13px;
  line-height:1.2;
  font-weight:800;
}

.auth-input-wrap{
  position:relative;
}

.auth-input-wrap input{
  width:100%;
  height:48px;
  padding:0 48px 0 46px;
  border:1px solid #bbd7f1;
  border-radius:12px;
  outline:0;
  background:#fff;
  color:#102844;
  font-size:14px;
  transition:border-color .15s,box-shadow .15s;
}

.auth-input-wrap input::placeholder{
  color:#8292a7;
}

.auth-input-wrap input:focus{
  border-color:#6eaceb;
  box-shadow:0 0 0 4px #e9f4ff;
}

.auth-input-icon{
  position:absolute;
  z-index:2;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  color:#6685a6;
  pointer-events:none;
}

.auth-input-icon svg{
  width:20px;
  height:20px;
}

.code-icon{
  font-size:17px;
  font-weight:900;
}

.auth-password-toggle{
  position:absolute;
  z-index:2;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#6685a6;
  cursor:pointer;
}

.auth-password-toggle:hover{
  background:#eef6ff;
  color:#176ce9;
}

.auth-password-toggle svg{
  width:21px;
  height:21px;
}

.auth-submit{
  min-height:52px;
  margin-top:2px;
  border-radius:13px;
  font-size:15px;
  background:linear-gradient(100deg,#1769ef,#31c5eb);
  box-shadow:0 12px 25px rgba(20,107,229,.20);
}

.forgot-action,
.back-link{
  display:block;
  margin:7px auto 0;
  padding:5px 7px;
  border:0;
  background:transparent;
  color:#0c68df;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}

.forgot-action:hover,
.back-link:hover{
  text-decoration:underline;
}

.back-link{
  margin:0 0 10px;
}

#signupStepVerify,
#resetVerifyStep{
  margin-top:15px;
  padding-top:15px;
  border-top:1px solid #dce9f6;
}

.otp-input{
  letter-spacing:.30em;
  font-weight:800;
}

.auth-divider{
  max-width:620px;
  margin:10px auto 14px;
  display:flex;
  align-items:center;
  gap:14px;
  color:#7588a0;
  font-size:13px;
}

.auth-divider::before,
.auth-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:#d9e7f4;
}

.auth-divider span{
  white-space:nowrap;
}

.polished-providers{
  max-width:620px;
  margin:0 auto;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.polished-providers .provider-btn{
  min-height:50px;
  padding:10px 12px;
  grid-template-columns:32px minmax(0,1fr) auto;
  gap:10px;
  border:1px solid #cfe1f2;
  border-radius:12px;
  background:#fff;
  color:#173653;
  font-size:13px;
  font-weight:750;
  opacity:1;
  cursor:not-allowed;
}

.polished-providers .provider-btn:hover{
  background:#fff;
}

.polished-providers .provider-badge{
  width:28px;
  height:28px;
}

.polished-providers .provider-arrow{
  color:#123e67;
  font-size:20px;
  line-height:1;
}

.soon-pill{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  margin:0!important;
  padding:4px 7px;
  border-radius:999px;
  background:#eef4fc;
  color:#6d829a!important;
  font-size:9px!important;
  line-height:1!important;
  white-space:nowrap;
  font-weight:800!important;
}

.ms-grid{
  width:18px;
  height:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px;
}

.ms-grid i{
  display:block;
  border-radius:1px;
  background:#1688e5;
}

.ms-grid i:nth-child(2){background:#78b72a}
.ms-grid i:nth-child(3){background:#f2b51f}
.ms-grid i:nth-child(4){background:#e84b3c}

.modal-footnote{
  max-width:620px;
  margin:15px auto 0;
  color:#71869e;
  font-size:10px;
  line-height:1.45;
  text-align:center;
}

.auth-status{
  max-width:620px;
  margin:10px auto 0;
}

@media(max-width:700px){
  .modal-card{
    width:min(100% - 20px,700px);
    padding:22px 18px 20px;
  }

  .modal-card h2{
    font-size:31px;
  }

  .polished-providers{
    grid-template-columns:1fr;
  }

  .auth-tabs{
    max-width:none;
  }
}



/* ---------- V26 on-demand storage packs ---------- */
.storage-pack-modal-card{max-width:720px}
.storage-pack-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 14px;text-align:left}
.storage-pack-card{border:1px solid #d7e7f6;border-radius:16px;background:#f8fbff;padding:17px;display:grid;gap:8px;position:relative}
.storage-pack-card strong{font-size:24px;letter-spacing:-.035em}
.storage-pack-card .storage-pack-price{font-size:18px;font-weight:850;color:#1167dc}
.storage-pack-card small{color:#657b95;line-height:1.45}
.storage-pack-buy{margin-top:4px;border:1px solid #8fbee9;border-radius:12px;background:#eef6ff;color:#1167dc;padding:11px 12px;font-weight:850;cursor:pointer}
.storage-pack-buy:hover{background:#e4f1ff}
.storage-pack-buy:disabled{opacity:.55;cursor:not-allowed}
.storage-pack-loading{grid-column:1/-1;padding:24px;text-align:center;color:#60758f}
.storage-pack-note{margin:6px auto 0;max-width:580px;font-size:11px;line-height:1.5;color:#70839a}
@media(max-width:620px){.storage-pack-grid{grid-template-columns:1fr}}
