:root {
  --green: #087766;
  --green-deep: #064a45;
  --green-soft: #dff4ef;
  --sky: #78d8ce;
  --sky-pale: #effaf7;
  --gold: #c99a4a;
  --gold-soft: #f4dfb5;
  --ink: #123a37;
  --muted: #67807a;
  --line: #cfe4de;
  --surface: rgba(255, 255, 255, .9);
  color: var(--ink);
  background: #eaf6f3;
}

html { min-height: 100%; background: #eaf6f3; }

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(117, 218, 205, .35), transparent 28%),
    radial-gradient(circle at 94% 18%, rgba(244, 223, 181, .35), transparent 24%),
    linear-gradient(145deg, #edf9f6 0%, #f8fbf8 52%, #e8f4f2 100%);
  color: var(--ink);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

body::before {
  inset: 0;
  opacity: .56;
  background:
    radial-gradient(ellipse 150px 54px at 8% 22%, rgba(255,255,255,.88) 0 50%, transparent 52%),
    radial-gradient(ellipse 215px 72px at 94% 72%, rgba(255,255,255,.72) 0 50%, transparent 52%),
    radial-gradient(ellipse 120px 40px at 72% 8%, rgba(255,255,255,.68) 0 50%, transparent 52%);
  filter: blur(1px);
}

body::after {
  width: 360px;
  height: 360px;
  right: -150px;
  top: 32%;
  border: 1px solid rgba(8,119,102,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(8,119,102,.025), 0 0 0 84px rgba(8,119,102,.02);
}

main {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 36px));
  padding: 34px 0 56px;
}

.site-header {
  position: relative;
  min-height: 116px;
  margin-bottom: 24px;
  padding: 18px 22px 18px 18px;
  border: 1px solid rgba(194, 224, 216, .82);
  border-radius: 26px;
  background: linear-gradient(115deg, rgba(255,255,255,.88), rgba(244,252,249,.7));
  box-shadow: 0 20px 55px rgba(9, 77, 67, .09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 90px;
  bottom: -1px;
  width: min(38vw, 410px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: block;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 10px 15px rgba(7, 100, 87, .17));
  animation: cloud-nest-float 5s ease-in-out infinite;
}

.brand-copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 3px;
  color: #167d70;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.06;
  text-shadow: 0 3px 0 rgba(255,255,255,.9);
}

.brand-subtitle {
  margin: 7px 0 0;
  color: #3f6c65;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}

#welcome {
  margin: 5px 0 0;
  color: #78908a;
  font-size: 13px;
}

.card,
.stats article,
.progress {
  border-color: rgba(197, 224, 216, .9);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(8, 77, 67, .075);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card { border-radius: 20px; }

button {
  background: linear-gradient(135deg, #0c8873, #076554);
  box-shadow: 0 7px 17px rgba(7, 101, 84, .17);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 23px rgba(7, 101, 84, .24);
}

button:active:not(:disabled) { transform: translateY(0); }

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(102, 205, 190, .36);
  outline-offset: 2px;
}

.ghost {
  border-color: #c9dfd9;
  background: rgba(255,255,255,.82);
  color: #315f58;
  box-shadow: 0 5px 14px rgba(9, 73, 64, .06);
}

input,
select {
  border-color: #c9dfd9;
  background-color: rgba(255,255,255,.9);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus,
select:focus {
  border-color: #62bcae;
  box-shadow: 0 0 0 4px rgba(98,188,174,.12);
}

.login {
  position: relative;
  max-width: 460px;
  margin: 5vh auto 0;
  padding: 26px;
  overflow: hidden;
}

.login::before {
  content: "CLOUD NEST ACCESS";
  position: absolute;
  right: -16px;
  top: 72px;
  color: rgba(8,119,102,.055);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: .08em;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right top;
  pointer-events: none;
}

.login h2 { color: var(--green-deep); font-size: 25px; }

.tabs {
  padding: 4px;
  border: 1px solid #d9e9e4;
  border-radius: 14px;
  background: #edf6f3;
}

.tabs button { border-radius: 10px; box-shadow: none; }

.tabs button:not(.active) { background: transparent; color: #617872; }

.stats article {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
}

.stats article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(#62cabb, #d9bc78);
}

.stats strong { color: var(--green-deep); }

.push-setup {
  border-color: #bfe1d8;
  background: linear-gradient(110deg, rgba(255,255,255,.95), rgba(225,247,241,.86));
}

.admin-nav {
  border-color: rgba(192, 219, 212, .9);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 30px rgba(8,77,67,.1);
}

.admin-nav button { box-shadow: none; }

.admin-nav button.active {
  background: linear-gradient(135deg, #0d8874, #075f51);
  box-shadow: 0 6px 14px rgba(7,95,81,.2);
}

.overview-head h2,
.binding-head h2,
.plan-admin h2 {
  color: var(--green-deep);
  letter-spacing: .03em;
}

.overview-stats span,
.owner,
.badge.good {
  background: linear-gradient(135deg, #e3f6f1, #eef9f6);
  color: #08715e;
}

.admin-table-wrap,
.customer-table-wrap {
  border-color: #cfe2dc;
  background: rgba(255,255,255,.66);
}

.admin-table th,
.customer-table th {
  border-bottom-color: #dbeae6;
  background: linear-gradient(180deg, #f5fbf9, #edf6f3);
  color: #53716a;
  letter-spacing: .02em;
}

.admin-table td,
.customer-table td { border-bottom-color: #e3eeea; }

.admin-table tbody tr,
.customer-table tbody tr { transition: background .15s ease; }

.admin-table tbody tr:hover,
.customer-table tbody tr:hover { background: rgba(231,247,242,.55); }

.track { background: #dcece7; }

.track i { background: linear-gradient(90deg, #0c8b74, #75d6c9 72%, #e2c27b); }

.badge { border: 1px solid rgba(202,220,215,.8); }

.plan-state.active {
  border: 1px solid #bce4d9;
  background: linear-gradient(135deg, #e5f8f2, #f2fbf8);
}

.binding-sheet { background: linear-gradient(145deg, #f5fbf9, #edf6f3); }

.binding-account-row { box-shadow: 0 7px 18px rgba(8,77,67,.045); }

* { scrollbar-color: #8fc8bd #e8f2ef; scrollbar-width: thin; }

@keyframes cloud-nest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 760px) {
  main { width: min(100% - 18px, 1240px); padding: 12px 0 30px; }

  .site-header {
    min-height: 92px;
    margin-bottom: 13px;
    padding: 12px;
    border-radius: 19px;
  }

  .brand-lockup { gap: 11px; }
  .brand-mark { flex-basis: 60px; width: 60px; height: 60px; }
  .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .eyebrow::after { display: none; }
  h1 { font-size: clamp(30px, 10vw, 42px); }
  .brand-subtitle { margin-top: 4px; font-size: 11px; letter-spacing: .03em; }
  #welcome { display: none; }
  .site-header > .ghost { padding: 9px 11px; }
  .login { margin-top: 18px; padding: 20px 17px; }
  .card { border-radius: 16px; }
}

@media (max-width: 430px) {
  .site-header { align-items: flex-start; }
  .brand-mark { flex-basis: 54px; width: 54px; height: 54px; }
  h1 { font-size: 31px; }
  .brand-subtitle { max-width: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark { animation: none; }
  button { transition: none; }
}
