/* OkPools CSS cleanup: deduplicated selectors/declarations and normalized priority. */

:root {
  --bg: #eceff1;
  --panel: #ffffff;
  --text: #0c1e2a;
  --muted: #556672;
  --accent: #13829a;
  --accent-2: #0f6d82;
  --border: #d8e3e9;
  --shadow: 0 12px 28px rgba(10,35,52,.12);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-pill: 999px;
  --fz-xs: 11px;
  --fz-sm: 12px;
  --fz-md: 13px;
  --fz-lg: 18px;
  --fw-regular: 450;
  --fw-medium: 560;
  --fw-semibold: 640;
  --fw-bold: 720;
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
  --sal: env(safe-area-inset-left);
  --sar: env(safe-area-inset-right);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-weight: var(--fw-regular);
  color: var(--text);
  background: linear-gradient(180deg,#eef2f5 0%,#e6edf3 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  min-height: 100dvh;
  padding: max(14px,var(--sat)) calc(14px + var(--sar)) calc(16px + var(--sab)) calc(14px + var(--sal));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.card {
  width: min(520px,100%);
  padding: 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg,#fff 0%,#fff 62%,#e3edf4 100%);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.brandLogo {
  width: min(210px,72%);
  height: auto;
  display: block;
}

.brandSub {
  margin-top: 2px;
  font-size: var(--fz-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.h2 {
  margin: 0 0 6px 0;
  font-size: var(--fz-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -.005em;
}

.muted {
  font-size: var(--fz-md);
  line-height: 1.35;
  color: var(--muted);
}

.mini {
  font-size: var(--fz-sm);
}

b, strong {
  font-weight: var(--fw-semibold);
}

label {
  display: block;
  margin: 12px 0 6px;
  font-size: var(--fz-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(11,34,53,.82);
}

input, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(19,130,154,.5);
  box-shadow: 0 0 0 4px rgba(19,130,154,.12);
}

.btn {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--fz-sm);
  font-weight: var(--fw-bold);
  letter-spacing: .02em;
  cursor: pointer;
}

.btn.pri {
  color: #fff;
  background: linear-gradient(180deg,var(--accent),var(--accent-2));
  box-shadow: 0 8px 20px rgba(19,130,154,.24);
}

.btn.pri:hover {
  filter: brightness(1.03);
}

.msg {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(250,204,21,.45);
  border-radius: var(--r-md);
  background: rgba(250,204,21,.18);
  color: #4a3b00;
  font-size: var(--fz-md);
}

.apiHint {
  margin: -2px 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 12px;
  background: rgba(59,130,246,.10);
  color: #123a72;
  font-size: var(--fz-sm);
}

.hidden, [hidden] {
  display: none !important;
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
}

.tab {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(246,251,252,.85);
  color: rgba(11,34,53,.78);
  font-size: var(--fz-sm);
  font-weight: var(--fw-bold);
  cursor: pointer;
}

.tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg,var(--accent),var(--accent-2));
  box-shadow: 0 8px 20px rgba(19,130,154,.24);
}

.box {
  margin-top: 6px;
}

.consents {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(216,227,230,.95);
  border-radius: var(--r-md);
  background: rgba(246,251,252,.70);
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  color: rgba(11,34,53,.82);
  font-size: var(--fz-md);
  font-weight: var(--fw-medium);
  text-transform: none;
  letter-spacing: 0;
}

.chk input {
  width: auto;
  margin-top: 2px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: var(--fw-semibold);
}

.link:hover {
  text-decoration: underline;
}

.dot, .sep {
  opacity: .6;
}

.u-mt10 {
  margin-top: 10px;
}

@media (max-width:380px) {
.card {
  padding: 14px;
}

}
