/* ══════════════════════════════════════════════════════════════
   standard.css — Standard proxies: pick a provider, then configure.
   Loaded after app.css.
   ══════════════════════════════════════════════════════════════ */

/* ── heading, with the same straight rule as the other pages ── */
.std-head{padding-bottom:4px}
.std-head h1{font-size:23px;font-weight:650;margin:0 0 6px;letter-spacing:-.4px}
.std-head p{margin:0;color:var(--text-2);font-size:13.5px;line-height:1.6;max-width:64ch}

/* ── provider cards ─────────────────────────────────────── */
.providers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.prov{
  position:relative;display:flex;flex-direction:column;text-align:center;
  background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden;
  transition:border-color .15s,transform .15s
}
.prov.live{cursor:pointer}
.prov.live:hover{border-color:var(--accent);transform:translateY(-2px)}

/* the logo area */
.prov-logo{height:130px;display:grid;place-items:center;padding:18px 18px 4px}
/* the round arrow, as on the home page's proxy types */
.prov .chev{
  position:absolute;top:14px;right:14px;width:26px;height:26px;border-radius:50%;
  display:grid;place-items:center;color:var(--accent);
  background:var(--panel-3);border:1px solid var(--line);transition:transform .15s,background .15s,border-color .15s
}
.prov .chev svg{width:13px;height:13px;display:block}
.prov.live:hover .chev{transform:translateX(3px);background:var(--panel-2);border-color:var(--accent)}
.prov.live:hover h3{color:var(--accent)}
.prov-body h3{transition:color .15s}
.prov-soon-tag{margin-top:auto;font-family:var(--mono);font-size:10.5px;letter-spacing:.8px;text-transform:uppercase;
  color:var(--muted);padding:3px 9px;border:1px solid var(--line);border-radius:99px}
/* the app's server art, in a soft tile as in the app; drawn as a mask
   so it takes the theme's text colour */
.prov-ico{width:84px;height:84px;border-radius:18px;background:var(--panel-3);position:relative;
  display:block;transition:background .15s}
.prov-ico::after{content:"";position:absolute;inset:16px;background:var(--text-2);
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat;transition:background .15s}
.prov.live:hover .prov-ico::after{background:var(--accent)}
.prov-soon .prov-ico::after{background:var(--muted)}

.prov-body{flex:1;display:flex;flex-direction:column;align-items:center;padding:18px 18px 20px}
.prov-body h3{margin:0 0 6px;font-size:15.5px;font-weight:650}
.prov-body p{margin:0 0 12px;font-size:13px;line-height:1.6;color:var(--text-2);max-width:32ch}
.prov-go{margin-top:auto;min-width:150px;justify-content:center}

/* unavailable */
.prov-soon{opacity:.62}
.prov-soon .prov-go{cursor:not-allowed}

@media (max-width:1100px){ .providers{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:640px){
  /* phones: a row per provider, icon on the left, as in the app */
  .providers{grid-template-columns:1fr;gap:12px}
  .prov{flex-direction:row;align-items:center;text-align:left;padding:14px}
  .prov-logo{height:auto;padding:0;border-bottom:0}
  .prov-ico{width:62px;height:62px;border-radius:14px}
  .prov-ico::after{inset:12px}
  .prov-body{align-items:flex-start;padding:0 30px 0 14px}
  .prov-body h3{font-size:15px;margin-bottom:4px}
  .prov-body p{margin-bottom:0;font-size:12.8px}
  .prov-soon-tag{margin-top:8px}
  .prov .chev{top:50%;margin-top:-13px;right:12px}
  .prov.live:hover .chev{transform:translateX(2px)}
}

/* ── the right-hand rail ────────────────────────────────── */
.rail .panel-body p{margin:0 0 10px;font-size:13px;line-height:1.62;color:var(--text-2)}
.rail .panel-body p:last-of-type{margin-bottom:12px}
.rail .panel-body b{color:var(--text);font-weight:600}
.rail .panel-body .btn.block{display:flex;width:100%;justify-content:center}
.steps-list{display:flex;flex-direction:column}
.sl{display:flex;gap:11px;align-items:flex-start;padding:12px 16px;border-top:1px solid var(--line-2,var(--line))}
.sl:first-child{border-top:0}
.sl b{width:22px;height:22px;flex:0 0 22px;border-radius:50%;display:grid;place-items:center;
  background:var(--panel-3);border:1px solid var(--line);font-family:var(--mono);font-size:10.5px;color:var(--accent)}
.sl span{font-size:12px;line-height:1.45;color:var(--muted)}
.sl strong{display:block;font-size:12.8px;font-weight:600;color:var(--text)}

/* ── configure page ───────────────────────────────────── */
.cfg-wait{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
  padding:34px 22px}
.cfg-wait b{font-size:14.5px}
.cfg-wait span{max-width:46ch;font-size:13px;line-height:1.6;color:var(--text-2)}
.cfg-wait em{font-style:normal;color:var(--text);font-weight:600}

/* the Back button above the heading */
.back-btn{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;width:auto}
.back-btn svg{width:15px;height:15px}
/* ── the order form ─────────────────────────────────────── */
.cfg-body{padding:18px 18px 20px}
.cfg-loading{padding:26px 10px;text-align:center;font-size:13.5px;color:var(--text-2);line-height:1.6}
.cfg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.cfg .fld{display:flex;flex-direction:column;gap:6px;margin:0}
.cfg .fld > span{font-size:12.5px;font-weight:600;color:var(--text-2)}
.cfg .fld em{font-style:normal;font-weight:400;color:var(--muted)}
.cfg select,.cfg input[type=text]{
  width:100%;padding:10px 12px;border-radius:10px;font-size:13.5px;
  background:var(--panel-2);border:1px solid var(--line);color:var(--text);outline:none
}
.cfg select:focus,.cfg input:focus{border-color:var(--accent)}

.cfg-qty{display:flex;align-items:center;gap:16px;margin-top:18px;padding:14px 0;
  border-top:1px solid var(--line-2,var(--line));border-bottom:1px solid var(--line-2,var(--line))}
.qty-t{flex:1;min-width:0}
.qty-t b{display:block;font-size:14px}
.qty-t span{display:block;margin-top:2px;font-size:12.5px;color:var(--muted)}
.qty-t em{font-style:normal;color:var(--text-2);font-weight:600}
.qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden;flex:0 0 auto}
.qty button{width:38px;height:38px;font-size:18px;color:var(--text);background:var(--panel-2)}
.qty button:hover:not(:disabled){color:var(--accent)}
.qty button:disabled{opacity:.35;cursor:default}
.qty input{width:56px;height:38px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);
  text-align:center;font-family:var(--mono);font-size:15px;font-weight:600;background:var(--panel);color:var(--text);
  -moz-appearance:textfield}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.cfg-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 12px}
.cfg-total span{font-size:13px;color:var(--text-2)}
.cfg-total b{display:inline-flex;align-items:center;gap:7px;font-size:20px;font-family:var(--mono)}
.cfg-buy{width:100%;justify-content:center;padding:11px 16px;font-size:14px;font-weight:650}
.cfg .req-msg{margin:10px 0 0;font-size:12.8px;min-height:1px}
.cfg .req-msg.bad{color:var(--bad,#e07b7b)}
.cfg .req-msg a{color:var(--accent);margin-left:4px}

/* ── the result ─────────────────────────────────────────── */
.done-head b{display:block;font-size:15px;color:var(--accent)}
.done-head span{display:block;margin-top:3px;font-size:12.5px;color:var(--text-2)}
.done-tools{display:flex;gap:8px;margin:14px 0 10px}
.done-tools select{flex:1;padding:8px 10px;border-radius:9px;font-family:var(--mono);font-size:12px;
  background:var(--panel-2);border:1px solid var(--line);color:var(--text)}
.done-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.done-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--line-2,var(--line))}
.done-row:first-child{border-top:0}
.done-row .n{flex:0 0 auto;font-family:var(--mono);font-size:11px;color:var(--muted)}
.done-row code{flex:1;min-width:0;font-family:var(--mono);font-size:12px;word-break:break-all;color:var(--text)}
.done-note{margin:12px 0;font-size:12.5px;color:var(--text-2)}
.done-note a{color:var(--accent)}

@media (max-width:640px){
  .cfg-grid{grid-template-columns:1fr}
  .cfg-qty{flex-wrap:wrap}
}
.cfg-grid .cfg-wide{grid-column:1 / -1}
.cfg .fld select:disabled{opacity:.6}

/* ── custom dropdown (select.js) ───────────────────────── */
.dd-native{position:absolute!important;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden}
.dd{position:relative}
.dd-btn{
  width:100%;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;
  padding:11px 12px 11px 14px;border-radius:10px;font-size:13.5px;font-weight:500;
  background:var(--panel-2);border:1px solid var(--line);color:var(--text);
  transition:border-color .15s,background .15s
}
.dd-btn:hover{border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}
.dd.is-open .dd-btn,.dd-btn:focus-visible{border-color:var(--accent);outline:none;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}
/* app.css styles every span in a .fld as a small label: not in here */
.dd span{margin:0;font-size:inherit;color:inherit}
.dd .dd-val{flex:1;min-width:0;display:flex;align-items:center;gap:10px}
.dd .dd-val span{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dd-ico{width:24px;height:24px;flex:0 0 24px;border-radius:50%;object-fit:cover;
  background:var(--panel-3);box-shadow:0 0 0 1px var(--line)}
.dd-chev{width:16px;height:16px;flex:0 0 16px;color:var(--muted);transition:transform .15s}
.dd.is-open .dd-chev{transform:rotate(180deg);color:var(--accent)}
.dd.is-disabled .dd-btn{opacity:.6;cursor:default}

.dd-pop{
  position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 16px 40px -12px rgba(0,0,0,.45);overflow:hidden;animation:ddIn .12s ease-out
}
@keyframes ddIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.dd-search{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);color:var(--muted)}
.dd-search svg{width:15px;height:15px;flex:0 0 15px}
.dd-search input{flex:1;min-width:0;border:0;background:none;outline:none;color:var(--text);font-size:13.5px}
.dd-list{list-style:none;margin:0;padding:6px;max-height:280px;overflow-y:auto}
.dd-list li{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;
  font-size:13.5px;cursor:pointer;color:var(--text-2)}
.dd-list li span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dd-list li:hover,.dd-list li.hl{background:var(--panel-2);color:var(--text)}
.dd-list li.on{color:var(--accent);font-weight:600}
.dd-list li svg{width:15px;height:15px;flex:0 0 15px}
.dd-list li.dd-none{cursor:default;color:var(--muted);justify-content:center}
.dd-list li.dd-none:hover{background:none}
@media (prefers-reduced-motion:reduce){ .dd-pop{animation:none} }
/* ── Premium: GB packs and session (premium-configure.html) ── */
.cfg-gb{margin-top:18px;padding-top:14px;border-top:1px solid var(--line-2,var(--line))}
.packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:12px}
.pack{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px;cursor:pointer;
  background:var(--panel-2);border:1px solid var(--line);border-radius:12px;color:var(--text);
  transition:border-color .15s,background .15s,transform .1s}
.pack b{font-size:17px;font-weight:700;letter-spacing:-.3px}
.pack span{display:inline-flex;align-items:center;gap:5px;font-family:var(--mono);font-size:12.5px;color:var(--text-2)}
.pack:hover{border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}
.pack.on{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 10%, var(--panel-2));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent)}
.pack.on span{color:var(--text)}
.pack:active{transform:scale(.98)}
.cfg-hint{margin:6px 2px 0;font-size:12.5px;color:var(--muted)}
@media (max-width:640px){ .packs{grid-template-columns:repeat(2,minmax(0,1fr))} }
