:root {
  --page-max: 1440px;
  --page-pad: clamp(20px, 3vw, 40px);
  --font-sans: "Manrope", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --color-text: #f6f1e8;
  --color-muted: rgba(246, 241, 232, 0.82);
  --color-panel: rgba(10, 29, 47, 0.72);
  --color-panel-border: rgba(255, 214, 120, 0.28);
  --color-accent: #2f9fff;
  --color-accent-deep: #0c4f8c;
  --color-outline: rgba(255, 255, 255, 0.2);
  --color-dark: rgba(10, 15, 20, 0.78);
}

html,
body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.navbar-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}
.forecast-chart-card-h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 2.5rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #c7c55e;
}

.forecast-chart-card-fwi,
.forecast-chart-card-z1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0 12px 16px 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.forecast-chart-card-fwi {
  color: #ffd25c;
  background: rgba(244, 183, 7, 0.14);
  border: 1px solid rgba(244, 183, 7, 0.34);
}

.forecast-chart-card-z1 {
  color: #75bcff;
  background: rgba(47, 159, 255, 0.14);
  border: 1px solid rgba(47, 159, 255, 0.32);
}

/* Pill + short definition stacked together (FWI / Z1 explanations) */
.forecast-term {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}
.forecast-term .forecast-chart-card-fwi,
.forecast-term .forecast-chart-card-z1 {
  margin: 0;
  align-self: flex-start;
}
.forecast-term-desc {
  margin: 0;
  padding-left: 13px;
  max-width: 62ch;
  font-size: clamp(0.86rem, 1.05vw, 0.98rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: rgba(232, 234, 226, 0.78);
}
.forecast-term--fwi .forecast-term-desc {
  border-left: 2px solid rgba(244, 183, 7, 0.45);
}
.forecast-term--z1 .forecast-term-desc {
  border-left: 2px solid rgba(47, 159, 255, 0.45);
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  max-height: 100px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-right: 36px;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--color-outline);
  border-radius: 18px;
  background:rgb(17 58 91 / 55%);
  backdrop-filter: blur(12px);
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

main {
  flex: 1;
  display: block;
}

main .wrapper {
  width: 100%;
  max-width: var(--page-max);
  margin: 118px auto 0;
  padding: 0 var(--page-pad) 24px;
}

main .landing {
  max-width: 760px;
}

main .landing h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  margin-top: 8px;
}

main .landing p {
  margin-top: 24px;
  font-size: clamp(16px, 3vw, 28px);
}

main .landing .btn {
  display: inline-block;
  text-decoration: none;
  margin-top: 24px;
  margin-bottom: 64px;
  padding: 20px 28px;
  color: #ffffff;
  background-color: #245a77;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  border-radius: 12px;
}

main .scrollable {
  overflow-y: scroll;
  height: 70vh;
}

main img {
  margin-top: 10px;
  max-width: 800px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

main iframe {
  margin-top: 10px;
  width: 42vw;
  height: 40vh;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

main h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: bold;
  margin-top: 8px;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

main p {
  margin-top: 24px;
  font-size: clamp(16px, 3vw, 20px);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

main a {
  color: orange;
}

main strong {
  font-weight: bold;
}

body.landing-page {
  overflow-x: hidden;
}

body.landing-page .landing-shell {
  max-width: none;
  margin-top: 0;
  padding: 0;
}

.landing-navbar {
  background:
   linear-gradient(180deg, rgba(9, 32, 54, 0.78), rgba(10, 28, 44, 0.66));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(3, 10, 18, 0.22);
}

.landing-navbar .navbar-inner {
  padding-top: clamp(14px, 2vw, 24px);
  padding-bottom: clamp(12px, 1.6vw, 18px);
}

.landing-navbar .brand-link {
  flex: 0 0 auto;
}

.landing-navbar .logo {
  max-height: clamp(90px, 8vw, 100px);
    margin: 0 auto;
}



.landing-nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.login-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 18px 28px;
  border-radius: 20px;
  background: rgba(8, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8f4ed;
  text-decoration: none;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.login-pill:hover {
  color: white;
  background: rgba(8, 10, 12, 0.86);
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(120px, 16vh, 152px) var(--page-pad) clamp(32px, 6vh, 56px);
  width: 100%;
  box-sizing: border-box;
   background-image:
    linear-gradient(180deg, rgba(4, 16, 30, 0.52) 0%, rgba(7, 18, 24, 0.12) 34%, rgba(8, 13, 9, 0.42) 100%),
    url("../img/nature.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(120px, 10vh, 100px);
  /* background: rgba(9, 21, 35, 0.34); */
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: calc(100vh - 208px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 24px;
}

.hero-copy {
  position: relative;
  /* width: 100%; */
  max-width: 620px;
  align-self: center;
  padding: clamp(28px, 3vw, 42px);
  background: linear-gradient(180deg, rgba(9, 32, 54, 0.78), rgba(10, 28, 44, 0.66));
  border: 1px solid var(--color-panel-border);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  border-radius: 4px;

}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  margin-bottom: 10px;
  /* background: rgba(14, 27, 40, 0.82); */
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(14px, 1.35vw, 21px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  /* font-family: var(--font-display); */
  font-size: clamp(2.8rem, 4.2vw, 5.2rem);
  line-height: 0.92;
  color: var(--color-text);
  text-shadow: none;

}

.hero-copy h1 span {
  display: block;
  width: fit-content;
}


.hero-copy p {
  max-width: 26ch;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 700;
  color: var(--color-muted);
}

.hero-actions {
   grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width:200px ;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius:15px;
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-btn:hover {
  color: white;
  transform: translateY(-2px);
}

.hero-btn-primary {
  background: linear-gradient(180deg, #2e76d6, #1c59ad);
  border-color: rgba(98, 184, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(10, 50, 105, 0.34);
}

.hero-btn-secondary {
  background: rgba(24, 27, 18, 0.48);
  color: #f2f0ea;
  backdrop-filter: blur(8px);
}

.hero-visuals {
  position: relative;
  min-height: 520px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visuals::before {
  content: "";
  position: absolute;
  inset: 10% 6% 4% auto;
  width: 58%;
  background: radial-gradient(circle, rgba(255, 190, 75, 0.22) 0%, rgba(255, 190, 75, 0) 70%);
  pointer-events: none;
}

.hero-device-stage {
  position: relative;
  width: min(100%, 920px);
  padding: 24px 18px 54px 72px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.device-monitor {
    position: relative;
    z-index: 1;
    width: max(80%, 450px);
    /* Reserve space below the screen for the stand so it can never overlap the
       screen or the next section, at any viewport width. */
    margin-bottom: 46px;
    padding: 12px 12px 14px;
    border-radius: 16px 16px 12px 12px;
    background: linear-gradient(180deg, #15181c, #040608);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 34px 78px rgba(0, 0, 0, 0.48);
  }

.device-monitor-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #0b1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-monitor-screen .device-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Stand = a tapered neck (this element) directly under the screen, plus a wide
   rounded base foot (::before). Anchored to the monitor's bottom edge (top:100%)
   so it always sits beneath the screen and scales with it — never drifts on top. */
/* Modern monitor stand: a short flared neck (::before) onto a wide, flat, rounded
   base slab (this element). The base is sized as a % of the monitor so it scales,
   and the whole thing sits just under the screen (anchored to the bottom edge). */
.device-monitor-stand {
  position: absolute;
  left: 50%;
  top: calc(100% + 13px);
  transform: translateX(-50%);
  width: 62%;
  height: 16px;
  border-radius: 9px;
  background: linear-gradient(180deg, #3a4651 0%, #1a212a 55%, #0a0e13 100%);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.45);
}

.device-monitor-stand::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% - 2px);
  transform: translateX(-50%);
  width: 132px;
  height: 15px;
  background: linear-gradient(180deg, #2c3742, #141a20);
  /* narrow at the screen, flaring out to the base */
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.device-phone {
  position: absolute;
  left: 24px;
  bottom: 40px;
  z-index: 2;
  width: min(22%, 145px);
  padding: 10px 7px;
  border-radius: 24px;
  background: linear-gradient(180deg, #171c20, #040608);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.device-phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 42%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2;
}

.device-phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  background: #07111d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-phone-screen .device-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.device-screen-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.about-section {
  position: relative;
  padding: clamp(72px, 10vw, 112px) var(--page-pad) clamp(72px, 10vw, 120px);
  background:#04040c;
}

.about-grid {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.about-copy {
  max-width: 620px;
}

.about-label {
  margin: 0 0 28px;
  font-size: clamp(2.5rem, 3.8vw, 3.3rem);
  line-height: 0.98;
  font-weight: 800;
  color: #f7f6f1;
  text-shadow: none;
}

.about-copy h2 {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: 1.16;
  font-weight: 500;
  color: #f1f3f7;
}

.about-text {
  margin: 34px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  line-height: 1.72;
  color: rgba(240, 243, 247, 0.92);
  text-shadow: none;
}

.about-visual {
  position: relative;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 6% 8% 10%;
  background: radial-gradient(circle, rgba(255, 132, 41, 0.12) 0%, rgba(255, 132, 41, 0) 72%);
  pointer-events: none;
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 990px;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.forecast-section {
  position: relative;
  padding: clamp(76px, 10vw, 110px) var(--page-pad);
  background-image:
    linear-gradient(180deg, rgba(7, 11, 10, 0.42), rgba(8, 11, 10, 0.74)),
    url("../img/forest.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.forecast-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 76%, rgba(217, 164, 58, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.forecast-shell {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
}

.forecast-intro {
  max-width: 1180px;
}

.forecast-kicker {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 3.8vw, 4rem);
  line-height: 1.02;
  font-weight: 800;
  color: #f7f4ee;
  text-shadow: none;
}

.forecast-copy-card {
  padding: clamp(28px, 3vw, 40px);
  background: rgba(18, 18, 18, 0.46);
  backdrop-filter: blur(4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.forecast-copy-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 3.2rem);
  line-height: 1.16;
  font-weight: 500;
  color: #b6b14c;
}

.forecast-copy-card p {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.28vw, 1.45rem);
  line-height: 1.65;
  font-weight: 700;
  color: rgba(247, 244, 238, 0.96);
  text-shadow: none;
}

.forecast-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  align-items: end;
  gap: clamp(22px, 3vw, 36px);
  margin-top: clamp(28px, 4vw, 44px);
}

.forecast-chart-card {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 22px;
  border: 1px solid rgba(205, 188, 92, 0.58);
  background: linear-gradient(180deg, rgba(12, 18, 19, 0.76), rgba(10, 17, 17, 0.5));
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.forecast-chart-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-top: 6px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.forecast-highlights {
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 22px;
  background: rgba(19, 19, 19, 0.56);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.forecast-highlights h3 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
  line-height: 1.1;
  font-weight: 500;
  color: #b3b246;
}

.forecast-stat {
  display: grid;
  grid-template-columns: 44px auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px 18px;
  background: rgba(57, 57, 57, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.forecast-stat + .forecast-stat {
  margin-top: 12px;
}

.forecast-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 171, 53, 0.12);
  color: #ffa62f;
  font-size: 1.4rem;
  font-weight: 800;
}

.forecast-stat-value {
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  line-height: 1;
  font-weight: 500;
  color: #f6f2ea;
}

.forecast-stat-label {
  font-size: clamp(1rem, 1.35vw, 1.5rem);
  line-height: 1.25;
  color: rgba(235, 230, 221, 0.92);
}

.contact-landing-section {
  position: relative;
  padding: clamp(72px, 10vw, 116px) var(--page-pad);
  background-image:
    url("../img/contact.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-landing-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 56% 42%, rgba(255, 121, 23, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(2, 8, 15, 0.1), rgba(2, 8, 15, 0.28));
  pointer-events: none;
}

.contact-landing-shell {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
}

.contact-landing-head {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(214, 226, 236, 0.72);
}

.contact-landing-head h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 1;
  font-weight: 500;
  text-align: center;
  color: #f7f5ef;
  text-shadow: none;
}

.contact-landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.84fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}

.contact-card {
  padding: clamp(28px, 3vw, 38px);
  background: rgba(8, 27, 44, 0.66);
  border: 1px solid rgba(219, 227, 233, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
}

.contact-form-card {
  background: linear-gradient(180deg, rgba(9, 32, 54, 0.82), rgba(10, 28, 44, 0.72));
  border: 1px solid rgba(255, 214, 120, 0.22);
  color: #f4efe6;
}

.contact-card h3 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 2.9vw, 3rem);
  line-height: 1.06;
  font-weight: 500;
  color: #f7f5ef;
  text-shadow: none;
}

.contact-card p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  line-height: 1.6;
  color: rgba(245, 245, 240, 0.94);
  text-shadow: none;
}

.contact-card p + p {
  margin-top: 12px;
}

.contact-form-ui {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form-intro {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-form-intro h3 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 2.8vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  color: #f7f5ef;
}

.contact-form-intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(246, 241, 232, 0.76);
}

.contact-form-section h4 {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(183, 197, 212, 0.72);
  font-size: 1.2rem;
  font-weight: 700;
  color: #30567b;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.contact-form-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field span,
.contact-checkbox span {
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
  color: rgba(246, 241, 232, 0.9);
}

.contact-field strong {
  color: #ffd678;
}

.contact-form-ui input,
.contact-form-ui textarea,
.contact-form-ui select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 18, 30, 0.72);
  color: #f6f1e8;
  padding: 14px 16px;
  font-size: 0.98rem;
  border-radius: 10px;
  box-sizing: border-box;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-form-ui select {
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffd678 50%),
    linear-gradient(135deg, #ffd678 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form-ui input::placeholder,
.contact-form-ui textarea::placeholder {
  color: rgba(246, 241, 232, 0.44);
}

.contact-form-ui input:focus,
.contact-form-ui textarea:focus,
.contact-form-ui select:focus {
  outline: none;
  border-color: rgba(255, 214, 120, 0.64);
  box-shadow: 0 0 0 3px rgba(255, 214, 120, 0.12);
}

.contact-form-ui textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.contact-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: #1b6eb3;
}

.contact-checkbox span {
  font-size: 0.94rem;
  font-weight: 500;
  color: #5a7087;
}

.contact-form-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-form-actions button {
  min-width: 180px;
  min-height: 54px;
  border: 1px solid rgba(255, 214, 120, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, #2e76d6, #1c59ad);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 14px 24px;
  box-shadow: 0 16px 34px rgba(10, 50, 105, 0.28);
}

.contact-form-actions button:hover {
  background: linear-gradient(180deg, #3a84e7, #245fb6);
}

.contact-form-actions button[type="reset"] {
  background: rgba(20, 28, 38, 0.6);
  color: #f6f1e8;
  box-shadow: none;
}

.contact-form-actions button[type="reset"]:hover {
  background: rgba(27, 38, 50, 0.88);
}

.contact-info-card h3 {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(214, 226, 236, 0.48);
}

.contact-info-list {
  margin-top: 26px;
}

.contact-info-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 16px;
}

.contact-info-item + .contact-info-item {
  margin-top: 28px;
}


.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
   line-height: 1;
}

.contact-info-item a,
.contact-info-item p {
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  line-height: 1.5;
  color: #f4f2eb;
  text-decoration: none;
  word-break: break-word;
}

.contact-info-item a:hover {
  color: white;
  text-decoration: underline;
}

.contact-info-address p {
  margin: 0;
}

.faq-page {
  background:
    linear-gradient(180deg, rgba(7, 18, 30, 0.94), rgba(6, 12, 18, 0.98)),
    url("../img/nature.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.faq-hero-section {
  padding: clamp(136px, 16vw, 188px) 0 clamp(34px, 5vw, 60px);
}

.faq-hero-shell,
.faq-shell,
.faq-cta-section {
  max-width: var(--page-max);
  margin: 0 auto;
}

.faq-eyebrow {
  margin: 0 0 12px;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd678;
  text-shadow: none;
}

.faq-hero-shell h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 0.95;
  color: #f8f3ea;
  text-shadow: none;
}

.faq-intro {
  max-width: 38ch;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.9);
  text-shadow: none;
}

.faq-section {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: rgba(9, 24, 38, 0.78);
  border: 1px solid rgba(255, 214, 120, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 24px 72px 24px 26px;
  font-size: clamp(1.05rem, 1.45vw, 1.45rem);
  line-height: 1.45;
  font-weight: 800;
  color: #f7f3e9;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 214, 120, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 500;
  color: #ffd678;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  padding: 0 26px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-answer p,
.faq-answer li,
.faq-cta-card p {
  margin: 0;
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  line-height: 1.72;
  color: rgba(243, 239, 231, 0.92);
  text-shadow: none;
}

.faq-answer p + p,
.faq-answer p + ul,
.faq-answer ul + p {
  margin-top: 16px;
}

.faq-answer ul {
  margin: 0;
  padding-left: 22px;
}

.faq-answer li + li {
  margin-top: 8px;
}

.faq-answer a,
.faq-cta-card a {
  color: #ffd678;
}

.faq-cta-section {
  padding-bottom: clamp(58px, 8vw, 110px);
}

.faq-cta-card {
  padding: clamp(26px, 3vw, 40px);
  max-width: 760px;
  background: linear-gradient(180deg, rgba(28, 58, 88, 0.9), rgba(15, 34, 54, 0.88));
  border: 1px solid rgba(255, 214, 120, 0.3);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.24);
}

.faq-cta-kicker {
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd678;
}

.faq-cta-card h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.1;
  font-weight: 500;
  color: #f8f3ea;
  text-shadow: none;
}


.legal-page {
  background:
    linear-gradient(180deg, rgba(8, 16, 26, 0.96), rgba(6, 10, 16, 0.98)),
    url("../img/nature.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}


.legal-card {
  padding: clamp(28px, 3vw, 40px);
  background: rgba(9, 24, 38, 0.82);
  border: 1px solid rgba(255, 214, 120, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.legal-block + .legal-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-block h2 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 600;
  color: #f7f3e9;
  text-shadow: none;
}

.legal-block p,
.legal-block li,
.legal-links a {
  margin: 0;
  font-size: clamp(1rem, 1.14vw, 1.14rem);
  line-height: 1.72;
  color: rgba(243, 239, 231, 0.92);
  text-shadow: none;
}

.legal-block p + p,
.legal-block p + ul,
.legal-block ul + p {
  margin-top: 14px;
}

.legal-block ul {
  margin: 0;
  padding-left: 22px;
}

.legal-block li + li {
  margin-top: 10px;
}

.legal-block a,
.legal-links a {
  color: #ffd678;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer {
  position: relative;
  padding: clamp(56px, 8vw, 84px) 0 0;
  background-image:
    linear-gradient(180deg, rgba(11, 18, 28, 0.24), rgba(10, 18, 28, 0.46)),
    url("../img/nature.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.landing-footer-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 15, 26, 0.08), rgba(8, 15, 26, 0.2)),
    radial-gradient(circle at 84% 58%, rgba(255, 212, 92, 0.14), transparent 22%);
  pointer-events: none;
}

.landing-footer-shell {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
}

.landing-footer-brand {
  display: flex;
  justify-content: center;
  padding: 0 var(--page-pad) 18px;
}

.landing-footer-brand img {
  display: block;
  width: clamp(180px, 20vw, 280px);
  height: auto;
}

.landing-footer-summary {
  margin: 0 var(--page-pad);
  padding: 18px 26px 26px;
  background: rgb(17 33 53 / 67%);
}

.landing-footer-summary h3 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  line-height: 1.2;
  font-weight: 500;
  color: #f5f5f1;
  text-shadow: none;
}

.landing-footer-summary p {
  margin: 0;
  max-width: 96ch;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  line-height: 1.55;
  color: rgba(244, 244, 239, 0.96);
  text-shadow: none;
}

.landing-footer-links {
  padding: 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 80px);
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-socials {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 28, 45, 0.34);
  color: #f4f2ec;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-socials a i {
  font-size: 1.18rem;
  line-height: 1;
}

.footer-socials a:hover {
  color: white;
  background: rgba(29, 52, 79, 0.56);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

.footer-link-group a,
.footer-link-group span,
.footer-link-group p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  line-height: 1.45;
  color: #f4f2ec;
  text-decoration: none;
  text-shadow: none;
}

.footer-link-group a:hover {
  color: white;
  text-decoration: underline;
}

.footer-partners p {
  margin-bottom: 6px;
}

.landing-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px var(--page-pad) 16px;
  background: rgba(38, 63, 96, 0.46);
}

.landing-footer-bottom p {
  margin: 0;
  font-size: clamp(0.98rem, 1.15vw, 1.2rem);
  line-height: 1.45;
  color: #f3f2ed;
  text-align: center;
  text-shadow: none;
}

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

.landing-footer-legal a,
.landing-footer-legal span {
  color: #f3f2ed;
  text-decoration: none;
  font-size: clamp(0.98rem, 1.15vw, 1.2rem);
  line-height: 1.4;
}

.landing-footer-legal a:hover {
  text-decoration: underline;
}

.device {
  position: absolute;
  overflow: hidden;
  background: #15181e;
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.device::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  z-index: 2;
}

.device-screen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.device-phone {
    left: -3%;
    width: min(26%, 190px);
    aspect-ratio: 10 / 19.5;
    border-radius: 26px;
    border: 7px solid #0e1014;
    z-index: 2;
    top: 20%;
    height: max-content;
}

.device-phone::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 36%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(5, 6, 8, 0.92);
  z-index: 3;
}

.device-tablet {
  right: 0;
  bottom: 6%;
  width: min(78%, 720px);
  aspect-ratio: 1.5 / 1;
  border-radius: 28px;
  border: 8px solid #111318;
}

.device-tablet::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f17a3b;
  z-index: 3;
}

.card-container {
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
  min-height: calc(100vh - 160px); /* adjust for navbar height */
  box-sizing: border-box;
}

body.login-page,
body.manage-page {
  background-image:
   linear-gradient(180deg, rgb(17 67 115 / 21%), rgba(10, 28, 44, 0.66)), url(../img/nature.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.login-page .card-container,
body.manage-page .card-container {
  position: relative;
}

main .card {
  background: linear-gradient(180deg, rgb(17 67 115 / 21%), rgba(10, 28, 44, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  padding: 32px;
  border-radius: 12px;
  max-width: 700px;
  color: white;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  margin: 0;
}

main .login {
  max-width: 350px;
  width: 90%;
  margin: 0 auto;
  padding: 16px;
}

.login img {
  width: 90%;
  display: block;
  margin: 16px auto;
}

.login .welcome {
  margin: 14px 10px;
  font-size: 16px;
  text-align: center;
  color: white;
}

.login input {
  width: 92%;
  padding: 12px;
  margin-bottom: 8px;
  border: none;
  border-radius: 6px;
  background: #2c2c2c;
  color: #aaa;
}

.login select {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: none;
  border-radius: 6px;
  background: #2c2c2c;
  color: #fff;
}

.login button {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  background: #e54222;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
}

.login .links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.login .links a {
  font-size: 14px;
  text-decoration: none;
  color: #aaa;
}

.login .links a:hover {
  text-decoration: underline;
  color: white;
}

.login hr {
  background-color: #393838;
  height: 1px;
  border: none;
}

.login .version {
  margin-top: 20px;
  font-size: 16px;
  color: #aaa;
}

/* Manage layout */
.manage {
  display: flex;
  border-radius: 12px;
  color: white;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  margin: 10vh auto;
  max-width: 800px;
  height: 400px;
}

/* Hide radio buttons */
input[type="radio"] {
  display: none;
}

.manage-container {
  display: flex;
  border-radius: 12px;
  color: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  margin: 10vh auto;
  width: 1000px;
  height: 400px;
  overflow: hidden;
}

.sidebar {
  width: 220px;
  background:linear-gradient(180deg, rgb(17 67 115 / 78%), rgba(10, 28, 44, 0.66));
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

.sidebar img {
  display: block;
  margin: 10px auto;
  width: 80%;
}

.tab-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem;
}

.sidebar .tab-row .tab {
  padding: 0.75rem 1rem;
  color: #ccc;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.sidebar .tab:hover {
  background: #222;
  color: #fff;
}

input#tab-users:checked ~ .manage-container .sidebar label[for="tab-users"],
input#tab-companies:checked ~ .manage-container .sidebar label[for="tab-companies"],
input#tab-upload:checked ~ .manage-container .sidebar label[for="tab-upload"],
input#tab-support:checked ~ .manage-container .sidebar label[for="tab-support"],

input#tab-profile:checked ~ .manage-container .sidebar label[for="tab-profile"],
input#tab-company:checked ~ .manage-container .sidebar label[for="tab-company"],
input#tab-facilities:checked ~ .manage-container .sidebar label[for="tab-facilities"],
input#tab-contact:checked ~ .manage-container .sidebar label[for="tab-contact"] {
  background: #e94444;
  color: white;
}

.main-content {
  flex: 1;
  padding: 2rem;
  background:linear-gradient(180deg, rgba(9, 32, 54, 0.78), rgba(10, 28, 44, 0.66));
  overflow-y: auto;
}

.content {
  display: none;
  background:linear-gradient(180deg, rgb(17 67 115 / 78%), rgba(10, 28, 44, 0.66));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.content h2 {
  font-weight: bold;
  font-size: 24px;
}

input#tab-users:checked ~ .manage-container .main-content #users-content,
input#tab-companies:checked ~ .manage-container .main-content #companies-content,
input#tab-upload:checked ~ .manage-container .main-content #upload-content,
input#tab-support:checked ~ .manage-container .main-content #support-content,

input#tab-profile:checked ~ .manage-container .main-content #profile-content,
input#tab-company:checked ~ .manage-container .main-content #company-content,
input#tab-facilities:checked ~ .manage-container .main-content #facilities-content,
input#tab-contact:checked ~ .manage-container .main-content #contact-content {
  display: block;
}

.users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.add-user-btn, .add-company-btn {
  background: #e94444;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.add-user-btn:hover, .add-company-btn:hover {
  background: #c73333;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2a;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.users-table th, .users-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #444;
}

.users-table th {
  background: #333;
  font-weight: bold;
  color: #eee;
}

.users-table tr:last-child td {
  border-bottom: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.modal h3 {
  margin-top: 0;
}

.modal input,
.modal select {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #2c2c2c;
  color: #eee;
  border: none;
  border-radius: 6px;
}

.modal button {
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.modal small {
  display: block;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 8px;
}

.modal button[type="submit"] {
  background-color: #28a745;
  color: white;
}

.modal .close-modal {
  background-color: #dc3545;
  color: white;
}

.split {
  display: flex;
  height: 70vh;
}

.split h2 {
  font-size: 24px;
  font-weight: bold;
  color: #2bb851;
}

.split > div {
  flex: 1;
  overflow-y: auto;   /* scroll container for sticky */
  padding: 1rem;
  box-sizing: border-box;
}

.left, .right {
  background-color: #222;
  margin: 5px;
}

.right table {
  margin-top: 20px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  color: #333;
  background: #fff;
  border-radius: 8px;
  /* overflow: hidden;  <-- remove this */
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.right th,
.right td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.right thead th {
  position: sticky;
  top: -1rem;
  z-index: 2;
  background: #f9fafb; /* solid bg so rows don’t show through */
  font-weight: 600;
  color: #333;
}

.right tr:last-child td { border-bottom: none; }
.right tbody tr:nth-child(even) td { background: #fcfcfd; }
.right tbody tr:hover td { background: #f0f6ff; transition: background .2s; }
.right td:last-child { text-align: right; font-weight: 500; color: #222; }

/* --- Thumbnail preview --- */
#webmPlayer {
  position: relative;
}

#webmPlayer #webmPreview {
  width: 40vw;
  cursor: pointer;
  border-radius: 8px;
  display: block;
  float: right;
}

/* --- Fullscreen overlay --- */
#webmOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* --- WebM Player --- */
.wfs-video-wrap {
  max-width: 80vw;
  margin: 0 auto;
}
.wfs-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  border-radius: 12px;
}
.wfs-ctrls {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* --- Play/Pause Button --- */
.wfs-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  background: #000;
}

/* Play icon */
.wfs-btn .tri {
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 0;
  transform: none;
  display: inline-block;
}

/* Hide triangle when paused */
.wfs-btn.pause .tri {
  display: none;
}

/* Pause icon — perfectly centered */
.wfs-btn.pause::before,
.wfs-btn.pause::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 18px;
  background: #fff;
  border-radius: 1px;
  transform: translateY(-50%);
}

/* Slightly reduced spacing for better centering */
.wfs-btn.pause::before { left: 50%; transform: translate(-7px, -50%); }
.wfs-btn.pause::after  { left: 50%; transform: translate( 2px, -50%); }

/* --- Progress bar --- */
.wfs-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #3b3b3b;
  position: relative;
}
.wfs-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  margin: 0;
  background: transparent;
  position: absolute;
  left: 0;
  top: 0;
}
.wfs-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
  margin-top: -3px;
}
.wfs-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
}
.wfs-fill,
.wfs-buf {
  position: absolute;
  left: 0;
  top: 0;
  height: 8px;
  border-radius: 4px;
}
.wfs-fill {
  background: #fff;
  width: 0%;
}
.wfs-buf {
  background: #6b6b6b;
  width: 0%;
}
.wfs-time {
  min-width: 90px;
  text-align: right;
  color: #eaeaea;
  font-variant-numeric: tabular-nums;
}
.wfs-speed {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #3d3d3d;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  min-width: 46px;
  text-align: center;
}
.wfs-speed:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}


/* Logs Page */
.logs-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #1e1e1e;
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  color: #eee;
}

.logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.logs-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
}

.download-btn {
  background: #e94444;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.download-btn:hover {
  background: #c73333;
}

.logs-table-wrapper {
  height: 70vh;
  overflow-y: auto;
  border-radius: 0.75rem;
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  background: #2a2a2a;
  border-radius: 0.75rem;
  overflow: hidden;
}

.logs-table th,
.logs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #444;
  vertical-align: top;
}

.logs-table th {
  background: #333;
  font-weight: bold;
  color: #eee;
  position: sticky;
  top: 0;
  z-index: 1;
}

.logs-table tr:last-child td {
  border-bottom: none;
}

.logs-table tr:nth-child(even) {
  background: #242424;
}

.logs-table tr:hover {
  background: #383838;
}

.logs-table td pre {
  white-space: pre-wrap;
  margin: 0;
  font-family: monospace;
  font-size: 0.8rem;
  color: #ccc;
}

/* Success/Fail colors */
.logs-table td.success {
  color: #28a745;
  font-weight: bold;
}

.logs-table td.fail {
  color: #dc3545;
  font-weight: bold;
}



/* MEDIA QUERIES */
@media (max-width: 900px) {
  .navbar-inner {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 16px;
  }

  .nav-links {
    gap: 4px;
    padding: 8px;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .landing-navbar .navbar-inner {
    align-items: center;
  }

  .login-pill {
    min-width: 160px;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 17px;
  }

  .hero-section {
    padding-top: 108px;
    padding-bottom: 28px;
  }

  .hero-backdrop {
    height: 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy p {
    max-width: none;
  }

  .hero-visuals {
    min-height: auto;
    width: 100%;
    justify-content: center;
    padding-top: 12px;
  }

  .hero-device-stage {
    width: min(100%, 700px);
    padding: 18px 12px 42px 36px;
  }

  .device-monitor {
    width: min(100%, 640px);
    margin-bottom: 40px;
    padding: 10px 10px 12px;
  }

  .device-monitor-stand {
    width: 64%;
    height: 14px;
  }

  .device-monitor-stand::before {
    width: 112px;
    height: 13px;
  }

  .device-phone {
    width: min(24%, 128px);
    left: 14px;
    bottom: 28px;
  }

  .about-section {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-copy {
    max-width: none;
  }

  .about-copy h2,
  .about-text {
    max-width: none;
  }

  .about-visual {
    order: 2;
  }

  .about-visual img {
    max-width: min(100%, 760px);
  }

  .forecast-section {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .forecast-bottom {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .forecast-chart-card {
    max-width: 100%;
  }

  .forecast-chart-card-h2 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 4.8vw, 2rem);
  }

  .forecast-chart-card-fwi,
  .forecast-chart-card-z1 {
    min-height: 34px;
    margin-bottom: 14px;
    padding: 7px 12px;
    font-size: 0.95rem;
  }

  .forecast-copy-card p {
    max-width: none;
  }

  .forecast-highlights {
    max-width: 760px;
    width: 100%;
  }

  .contact-landing-section {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .contact-landing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-form-actions {
    justify-content: center;
  }

  .landing-footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .footer-partners {
    grid-column: 1 / -1;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .device-phone {
    left: 0;
    bottom: 12%;
    width: min(28%, 150px);
  }

  .device-tablet {
    width: min(84%, 620px);
  }

  .logo {
    max-height: 100px;
   
  }

  .manage-container {
    flex-direction: column;
    height: auto;
    width: 95%;
    margin: 2rem auto;
  }

  .sidebar {
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  .sidebar img {
    max-width: 120px;
    margin-bottom: 0.5rem;
  }

  .sidebar .tab-row .tab {
    white-space: nowrap;
    font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    flex-shrink: 0;
    background: #222;
    color: #ccc;
  }

  .tab-row {
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.25rem;
    margin: 0.5rem auto;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 1rem;
  }

  .manage-container .sidebar .tab {
    padding: 0.5rem;
    font-size: 14px;
  }

  .content {
    overflow-x: auto;
  }

  .users-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .add-user-btn, .add-company-btn {
    margin: 0 auto;
  }

  .users-table th,
  .users-table td {
    font-size: 14px;
    padding: 0.5rem;
  }
}

@media (max-width: 500px) {
  .landing-navbar {
    position: static;
    background:rgb(25 46 68);
  }

  .hero-section {
    min-height: auto;
    padding-top: 12px;
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(1.95rem, 11vw, 3rem);
    line-height: 0.95;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }

  .hero-btn {
    width: 90%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    justify-content: center;
    white-space: normal;
    font-size: 0.95rem;
  }

  .hero-visuals {
    min-height: auto;
    justify-content: center;
  }

  .navbar-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 10px;
  }

  .landing-navbar .navbar-inner {
    align-items: stretch;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;

  }

  .landing-nav-actions {
    width: 100%;
  }

  .login-pill {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-backdrop {
    display: none;
  }

  .hero-copy {
    margin-top: 0;
    max-width: none;
    padding: 18px 14px;
  }

  .hero-eyebrow {
    min-height: 0;
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin-top: 0px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .hero-copy p {
    max-width: none;
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.42;
  }

  .about-section {
    padding: 52px 14px 56px;
  }

  .about-grid {
    gap: 24px;
  }

  .about-label {
    margin-bottom: 18px;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .about-copy h2 {
    max-width: none;
    font-size: clamp(1.35rem, 7vw, 2rem);
    line-height: 1.2;
    text-decoration-thickness: 2px;
  }

  .about-text {
    max-width: none;
    margin-top: 20px;
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .about-visual img {
    border-radius: 0;
  }

  .forecast-section {
    padding: 52px 14px 56px;
    background-position: center;
  }

  .forecast-kicker {
    margin-bottom: 14px;
    font-size: clamp(1.9rem, 9.5vw, 2.7rem);
  }

  .forecast-copy-card {
    padding: 18px 14px;
  }

  .forecast-copy-card h2 {
    font-size: clamp(1.35rem, 6.8vw, 2rem);
  }

  .forecast-copy-card p {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .forecast-bottom {
    margin-top: 20px;
    gap: 18px;
  }

  .forecast-chart-card {
    padding: 14px;
    border-radius: 18px;
  }

  .forecast-chart-card-h2 {
    margin-bottom: 10px;
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }

  .forecast-chart-card-fwi,
  .forecast-chart-card-z1 {
    min-height: 32px;
    margin-right: 8px;
    margin-bottom: 10px;
    padding: 6px 10px;
    font-size: 0.84rem;
  }

  .forecast-chart-card img {
    margin-top: 2px;
    border-radius: 12px;
  }

  .forecast-highlights {
    padding: 14px;
    border-radius: 18px;
  }

  .forecast-highlights h3 {
    margin-bottom: 14px;
    font-size: 1.35rem;
  }

  .forecast-stat {
    grid-template-columns: 38px 1fr;
    gap: 10px 12px;
    min-height: 0;
    padding: 12px 12px;
  }

  .forecast-stat-value {
    font-size: 1.8rem;
  }

  .forecast-stat-label {
    grid-column: 2;
    font-size: 0.96rem;
  }

  .forecast-stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .contact-landing-section {
    padding: 52px 14px 56px;
  }

  .contact-landing-head {
    margin-bottom: 22px;
    padding-bottom: 14px;
  }

  .contact-landing-head h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .contact-card {
    padding: 18px 14px;
  }

  .contact-card h3 {
    margin-bottom: 18px;
    font-size: clamp(1.6rem, 8vw, 2.25rem);
  }

  .contact-card p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .contact-form-ui {
    gap: 22px;
  }

  .contact-form-ui input,
  .contact-form-ui textarea,
  .contact-form-ui select {
    padding: 14px 14px;
    font-size: 0.98rem;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-section h4 {
    margin-bottom: 16px;
  }

  .contact-form-ui textarea {
    min-height: 150px;
  }

  .contact-form-actions {
    justify-content: stretch;
  }

  .contact-form-actions button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .contact-info-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .contact-info-item + .contact-info-item {
    margin-top: 20px;
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-info-item a,
  .contact-info-item p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .faq-hero-section {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .faq-hero-shell h1 {
    max-width: none;
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .faq-intro {
    max-width: none;
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .faq-section {
    padding-bottom: 34px;
  }

  .faq-list {
    gap: 12px;
  }

  .faq-item summary {
    padding: 18px 56px 18px 16px;
    font-size: 1rem;
    line-height: 1.45;
  }

  .faq-item summary::after {
    right: 16px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .faq-answer {
    padding: 0 16px 18px;
  }

  .faq-answer p,
  .faq-answer li,
  .faq-cta-card p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .faq-answer ul {
    padding-left: 18px;
  }

  .faq-cta-section {
    padding-bottom: 44px;
  }

  .faq-cta-card {
    padding: 18px 16px;
  }

  .faq-cta-card h2 {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

 
  .legal-card {
    padding: 18px 16px;
  }

  .legal-block + .legal-block {
    margin-top: 22px;
    padding-top: 22px;
  }

  .legal-block h2 {
    margin-bottom: 12px;
    font-size: clamp(1.2rem, 6.5vw, 1.65rem);
  }

  .legal-block p,
  .legal-block li,
  .legal-links a {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .legal-block ul {
    padding-left: 18px;
  }

  .legal-links {
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .landing-footer {
    padding-top: 42px;
  }

  .landing-footer-brand {
    padding-bottom: 14px;
  }

  .landing-footer-summary {
    margin: 0 14px;
    padding: 16px 14px 18px;
  }

  .landing-footer-summary h3 {
    font-size: 1.2rem;
  }

  .landing-footer-summary p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .landing-footer-links {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 14px 30px;
  }

  .footer-partners {
    grid-column: auto;
  }

  .footer-link-group a,
  .footer-link-group span,
  .footer-link-group p {
    font-size: 0.98rem;
  }

  .footer-socials {
    gap: 12px;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  .landing-footer-bottom {
    gap: 10px;
    padding: 16px 14px 14px;
  }

  .landing-footer-bottom p,
  .landing-footer-legal a,
  .landing-footer-legal span {
    font-size: 0.94rem;
  }


  .hero-copy p {
    font-size: 1rem;
    line-height: 1.6;
  }


  .device-phone {
    width: 30%;
    border-width: 5px;
    border-radius: 20px;
  }

  .device-tablet {
    width: 82%;
    border-width: 6px;
    border-radius: 20px;
  }

  .login .welcome,
  .login .version {
    font-size: 14px;
  }

  .login button {
    font-size: 16px;
  }
}
/* ---- Admin dashboard (polished shell + file management) ---- */
body.admin-page .navbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  width: 100%;
}

body.admin-page .admin-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

body.admin-page .admin-nav-links {
  margin-right: 0;
  flex: 1 1 auto;
  justify-content: center;
  min-width: min(100%, 420px);
}

body.admin-page .admin-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body.admin-page .admin-nav-links a i {
  opacity: 0.9;
  font-size: 15px;
}

body.admin-page .admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

body.admin-page .admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
  white-space: nowrap;
}

body.admin-page .admin-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3aa6ff 0%, #1f6fbf 100%);
  border: 1px solid rgba(120, 200, 255, 0.45);
  box-shadow: 0 10px 26px rgba(15, 80, 140, 0.35);
}

body.admin-page .admin-btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

body.admin-page .admin-btn-ghost {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 20, 34, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

body.admin-page .admin-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
}

/* Sidebar: icons + profile card */
body.admin-page .admin-dashboard .sidebar .tab-row {
  flex: 1 1 auto;
  margin: 0.75rem 0.5rem 1rem;
}

body.admin-page .admin-dashboard .sidebar .tab-row .tab {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

body.admin-page .admin-dashboard .sidebar .tab-row .tab i {
  width: 1.1em;
  text-align: center;
  opacity: 0.92;
}

body.admin-page .admin-sidebar-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.admin-page .admin-sidebar-profile__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 68, 68, 0.2);
  color: #ffb4a8;
  border: 1px solid rgba(233, 68, 68, 0.35);
  flex-shrink: 0;
}

body.admin-page .admin-sidebar-profile__meta {
  flex: 1;
  min-width: 0;
}

body.admin-page .admin-sidebar-profile__name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.admin-page .admin-sidebar-profile__role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

body.admin-page .admin-sidebar-profile__chev {
  opacity: 0.55;
  font-size: 12px;
}

/* File management card */
body.admin-page .admin-file-card {
  background: linear-gradient(180deg, rgba(17, 67, 115, 0.42), rgba(10, 28, 44, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

body.admin-page .admin-file-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

body.admin-page .admin-file-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #bfe6ff;
  background: radial-gradient(circle at 30% 25%, rgba(120, 200, 255, 0.35), rgba(10, 40, 70, 0.9));
  border: 1px solid rgba(120, 200, 255, 0.28);
  flex-shrink: 0;
}

body.admin-page .admin-file-card__titles h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.admin-page .admin-file-card__sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

body.admin-page .admin-upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

body.admin-page .admin-file-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 260px;
  min-height: 44px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

body.admin-page .admin-file-pick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #eaf6ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

body.admin-page .admin-file-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

body.admin-page .admin-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

body.admin-page .admin-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.admin-page .admin-btn-upload:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

body.admin-page .admin-file-empty {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

body.admin-page .admin-zip-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.admin-page .admin-zip-panel__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

body.admin-page .admin-table-scroll {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-page .admin-zip-table {
  margin-bottom: 0;
}

body.admin-page .admin-download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #ffb86b;
  text-decoration: none;
}

body.admin-page .admin-download-link:hover {
  text-decoration: underline;
  color: #ffd4a8;
}

/* Full-width admin shell — scroll inside main pane only */
body.admin-page main .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 118px);
  max-width: none;
  width: 100%;
  margin-top: 118px;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  padding-bottom: 12px;
  box-sizing: border-box;
  overflow: hidden;
}

body.admin-page .admin-dashboard {
  flex: 1 1 auto;
  min-height: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: min(1080px, 100%) !important;
  max-width: min(1080px, 100%) !important;
  height: 100%;
  max-height: 100%;
  margin: 10px auto 12px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.admin-page .admin-dashboard .manage-container {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

body.admin-page .admin-dashboard .sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  align-self: stretch;
  width: 250px;
  min-width: 250px;
  padding: 18px 14px;
  overflow-y: auto;
}

body.admin-page .admin-dashboard .main-content {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 18px 20px 22px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body.admin-page .admin-dashboard .content h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.admin-page .admin-dashboard .users-header {
  margin-bottom: 14px;
  align-items: center;
}

body.admin-page .admin-dashboard .users-table th,
body.admin-page .admin-dashboard .users-table td {
  padding: 12px 14px;
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.05rem);
  line-height: 1.45;
}

body.admin-page .admin-dashboard .users-table th {
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.admin-page .admin-dashboard .users-table a {
  font-weight: 600;
}

/* Users table: keep cells on one line so the long "Company" list isn't clipped —
   the table then grows wider than its .admin-table-scroll wrapper, which shows a
   horizontal scrollbar (overflow:auto) so every column is reachable. */
body.admin-page #admin-users-table th,
body.admin-page #admin-users-table td {
  white-space: nowrap;
}

body.admin-page .admin-table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

body.admin-page .admin-dashboard .users-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

body.admin-page .admin-dashboard .modal {
  width: min(760px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 12px;
}

body.admin-page .admin-dashboard .modal input,
body.admin-page .admin-dashboard .modal select,
body.admin-page .admin-dashboard .modal button {
  min-height: 34px;
}

@media (max-width: 980px) {
  body.admin-page main .wrapper {
    max-height: calc(100vh - 110px);
  }

  body.admin-page .admin-dashboard {
    width: min(1080px, calc(100vw - 16px)) !important;
    max-width: min(1080px, calc(100vw - 16px)) !important;
    margin: 6px auto 10px;
    min-height: 0;
  }

  body.admin-page .admin-dashboard .sidebar {
    width: 180px;
    min-width: 180px;
  }

  body.admin-page .admin-dashboard .main-content {
    width: auto;
  }

  body.admin-page .admin-nav-links {
    justify-content: flex-start;
  }
}

/* Admin: prevent document scroll; flex chain for inner main-content scroll */
body.admin-page {
  overflow-y: hidden;
}

body.admin-page main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
