:root {
  --black: #030607;
  --deep: #071011;
  --panel: rgba(8, 14, 16, 0.78);
  --silver: #c9d1d4;
  --silver-soft: #95a4a9;
  --line: rgba(201, 209, 212, 0.22);
  --cyan: #0f9d9e;
  --blue: #112c68;
  --violet: #6f5bff;
  --white: #f4f7f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 74% 18%, rgba(15, 157, 158, 0.22), transparent 27rem),
    radial-gradient(circle at 18% 88%, rgba(17, 44, 104, 0.55), transparent 33rem),
    linear-gradient(135deg, #030607 0%, #080f10 46%, #010203 100%);
}

main {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.background-logo {
  position: fixed;
  inset: -5vh -7vw auto -7vw;
  height: 74vh;
  z-index: -2;
  background: url("assets/vi-texture-logo-bg.jpg") center top / cover no-repeat;
  filter: blur(12px) grayscale(1);
  opacity: 0.42;
  transform: scale(1.04);
}

.background-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 7, 0.2), rgba(3, 6, 7, 0.76) 65%, rgba(3, 6, 7, 0.92)),
    linear-gradient(180deg, transparent 0%, rgba(3, 6, 7, 0.94) 90%);
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(201, 209, 212, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 209, 212, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent 75%);
}

.site-header {
  position: relative;
  z-index: 2;
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 34px clamp(22px, 6vw, 108px);
}

.brand-logo {
  display: inline-flex;
  width: clamp(190px, 24vw, 420px);
}

.brand-logo img,
.modal-logo {
  display: block;
  height: auto;
  width: 100%;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 36px);
}

.header-actions a {
  color: var(--silver);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-actions a {
  border-bottom: 1px solid transparent;
  padding-bottom: 8px;
}

.header-actions a:hover {
  border-color: var(--cyan);
  color: var(--white);
}

.hero {
  min-height: 650px;
  padding: clamp(84px, 13vh, 150px) clamp(22px, 12vw, 210px) 116px;
  position: relative;
  z-index: 1;
}

.hero::before {
  background: linear-gradient(180deg, var(--cyan), transparent);
  content: "";
  height: 108px;
  left: clamp(22px, 6vw, 108px);
  opacity: 0.72;
  position: absolute;
  top: 42px;
  width: 1px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.07em;
  margin: 14px 0 22px;
}

h1 {
  font-size: clamp(3.45rem, 8.4vw, 9rem);
  line-height: 0.88;
  max-width: 990px;
}

.hero-copy {
  color: var(--silver);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.75;
  max-width: 620px;
}

.hero-cards {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 44px 0 38px;
  max-width: 780px;
}

.hero-cards span {
  background: rgba(201, 209, 212, 0.065);
  border: 1px solid var(--line);
  color: var(--silver);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  padding: 18px;
  text-transform: uppercase;
}

.modal-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 10;
}

.modal-backdrop.is-closed {
  opacity: 0;
  visibility: hidden;
}

.support-modal {
  background:
    linear-gradient(135deg, rgba(244, 247, 248, 0.98), rgba(220, 230, 233, 0.94)),
    #f4f7f8;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
  color: #071011;
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  width: min(690px, 100%);
}

.support-modal::before {
  background: linear-gradient(180deg, var(--cyan), rgba(15, 157, 158, 0));
  content: "";
  height: 132px;
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.modal-logo {
  margin-bottom: 34px;
  max-width: 330px;
}

.support-modal h2 {
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.9;
}

.modal-intro {
  color: #566266;
  line-height: 1.55;
  margin: 0 0 30px;
}

.support-form-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

.close-button {
  background: transparent;
  border: 0;
  color: #071011;
  cursor: pointer;
  font-size: 33px;
  font-weight: 300;
  position: absolute;
  right: 20px;
  top: 16px;
}

form {
  border-top: 1px solid rgba(7, 16, 17, 0.16);
  padding-top: 24px;
}

fieldset {
  border: 0;
  margin: 0 0 23px;
  padding: 0;
}

legend,
.field-label {
  color: #071011;
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.field-label span {
  color: #69767a;
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 4px;
}

.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.choice {
  cursor: pointer;
  position: relative;
}

.choice input {
  opacity: 0;
  position: absolute;
}

.choice span {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(7, 16, 17, 0.16);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 62px;
  padding: 17px 15px;
  transition: background 0.16s, border-color 0.16s, box-shadow 0.16s, color 0.16s;
}

.choice input:checked + span {
  background: rgba(15, 157, 158, 0.12);
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
  color: #052f30;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  border-bottom: 1px solid rgba(7, 16, 17, 0.2);
  border-radius: 0;
  color: #071011;
  display: block;
  font: 14px "Inter", Arial, sans-serif;
  margin: 0 0 23px;
  outline: 0;
  padding: 14px 2px;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
}

.admin-page input {
  color: var(--white);
  border-bottom-color: rgba(201, 209, 212, 0.3);
}

.admin-page input:focus {
  border-color: var(--cyan);
}

textarea {
  resize: vertical;
}

.submit-button {
  background: #071011;
  border: 1px solid #071011;
  color: var(--white);
  cursor: pointer;
  font: 800 12px "Inter", Arial, sans-serif;
  letter-spacing: 0.16em;
  margin-top: 6px;
  padding: 17px;
  text-transform: uppercase;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  width: 100%;
}

.submit-button:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #001516;
}

.submit-button span {
  font-size: 17px;
  margin-left: 13px;
}

.submit-button.secondary {
  background: transparent;
  color: #071011;
  margin-top: 14px;
}

.form-note {
  color: #69767a;
  font-size: 11px;
  line-height: 1.5;
  margin: 14px 0 0;
  text-align: center;
}

.hidden-field {
  display: none;
}

.success-message {
  padding: 26px 0 6px;
  text-align: center;
}

.success-message h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.success-message p {
  color: #566266;
  line-height: 1.6;
}

.checkmark {
  align-items: center;
  background: rgba(15, 157, 158, 0.12);
  border: 1px solid rgba(15, 157, 158, 0.5);
  border-radius: 999px;
  color: #0b7374;
  display: inline-flex;
  font-size: 28px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.admin-page {
  min-height: 100vh;
  padding: 38px clamp(20px, 6vw, 96px) 80px;
}

.admin-shell {
  margin: 68px auto 0;
  max-width: 1180px;
}

.login-panel {
  border: 1px solid var(--line);
  background: rgba(8, 14, 16, 0.72);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.36);
  margin: 26px auto 0;
  max-width: 620px;
  padding: clamp(28px, 5vw, 54px);
}

.login-panel .modal-logo {
  margin-bottom: 34px;
  max-width: 340px;
}

.login-panel h1 {
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.92;
}

.login-form {
  border-top-color: var(--line);
  margin-top: 26px;
}

.field-label.light {
  color: var(--white);
}

.login-error {
  color: #ff9a9a;
  font-size: 13px;
  margin: 14px 0 0;
  text-align: center;
}

.admin-shell h1 {
  font-size: clamp(3rem, 7vw, 7.4rem);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.admin-toolbar button,
.admin-toolbar a {
  background: rgba(201, 209, 212, 0.08);
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 13px 16px;
  text-decoration: none;
  text-transform: uppercase;
}

.data-table-wrap {
  border: 1px solid var(--line);
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  color: var(--silver);
  font-size: 13px;
  line-height: 1.45;
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(201, 209, 212, 0.08);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empty-state {
  border: 1px solid var(--line);
  color: var(--silver);
  line-height: 1.65;
  padding: 28px;
}

.empty-state strong {
  color: var(--white);
}

.public-message {
  margin-top: clamp(70px, 14vh, 150px);
}

.return-link {
  border-bottom: 1px solid var(--cyan);
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-top: 26px;
  padding-bottom: 9px;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    gap: 20px;
    padding: 25px 22px;
  }

  .brand-logo {
    width: 180px;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    min-height: 600px;
    padding-top: 94px;
  }

  .hero-cards,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .support-modal {
    padding: 32px 24px 27px;
  }

  .modal-logo {
    max-width: 240px;
  }
}
