:root {
  --bg: #020504;
  --bg-soft: #06110d;
  --panel: rgba(9, 17, 15, 0.78);
  --panel-strong: rgba(13, 25, 21, 0.92);
  --line: rgba(52, 219, 128, 0.36);
  --line-soft: rgba(255, 255, 255, 0.08);
  --green: #19d979;
  --green-2: #7effba;
  --green-deep: #0f9f56;
  --text: #f6f7f6;
  --muted: #b8c0bc;
  --muted-2: #7f8c86;
  --danger: #ff313b;
  --danger-dark: #5b0b10;
  --shadow: 0 20px 90px rgba(0, 0, 0, 0.55);
  --glow: 0 0 28px rgba(25, 217, 121, 0.34);
  --radius: 24px;
  --radius-sm: 14px;
  --font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Poppins", var(--font);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  scroll-behavior: smooth;
  scrollbar-color: rgba(255, 255, 255, 0.32) #121212;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track {
  background: #121212;
}

::-webkit-scrollbar-thumb {
  min-height: 120px;
  border: 5px solid #121212;
  border-radius: 999px;
  background: linear-gradient(180deg, #444, #2d2d2d);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #555, #363636);
}

::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-corner {
  background: #121212;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 18% 22%, rgba(25, 217, 121, 0.14), transparent 28%),
    radial-gradient(circle at 80% 34%, rgba(126, 255, 186, 0.10), transparent 22%),
    linear-gradient(135deg, #010202, #05100d 48%, #020303);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, transparent 100%);
}

a {
  color: var(--green-2);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.svg-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  color: currentColor;
}

h1,
h2,
h3,
strong {
  font-family: var(--display);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 52px;
  line-height: 1.05;
}

h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 700;
}

.site-glow {
  position: fixed;
  inset: auto 0 0;
  height: 220px;
  background: linear-gradient(to top, rgba(25, 217, 121, 0.08), transparent);
  pointer-events: none;
}

.alert {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  padding: 14px 18px;
  padding-right: 54px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(7, 16, 13, 0.94);
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.alert.closing {
  opacity: 0;
  transform: translate(-50%, -10px);
}

.alert button {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 20px;
  line-height: 1;
}

.alert-success {
  color: var(--green-2);
}

.alert-error {
  border-color: rgba(255, 49, 59, 0.5);
  color: #ffd4d6;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid rgba(126, 255, 186, 0.65);
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, #168e52, #20d873);
  box-shadow: var(--glow);
  font-weight: 800;
  text-align: center;
}

.button .svg-icon {
  width: 22px;
  height: 22px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(25, 217, 121, 0.45);
}

.button.ghost {
  background: rgba(9, 17, 15, 0.72);
  box-shadow: none;
}

.button.danger {
  background: linear-gradient(135deg, #c71520, #ff2630);
  border-color: rgba(255, 90, 96, 0.85);
  box-shadow: 0 0 26px rgba(255, 49, 59, 0.26);
}

.button.full {
  width: 100%;
}

.button.small {
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.icon-button {
  min-width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(9, 17, 15, 0.76);
}

.icon-button .svg-icon {
  width: 28px;
  height: 28px;
}

.home-frame,
.profile-frame {
  width: min(1780px, calc(100% - 96px));
  min-height: calc(100vh - 96px);
  margin: 48px auto;
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 44px;
}

.brand-panel,
.content-panel,
.profile-side,
.profile-main,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-panel {
  min-height: 860px;
  padding: 44px 34px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: 228px;
  height: auto;
  margin: 0 auto 10px;
}

.small-logo {
  width: 230px;
  height: auto;
  margin-inline: 0;
}

.tagline {
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}

.car-card {
  position: relative;
  width: 100%;
  min-height: 360px;
  margin: 0 0 12px;
  overflow: visible;
  border-radius: 28px;
  background:
    linear-gradient(rgba(25, 217, 121, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 217, 121, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at 48% 78%, rgba(25, 217, 121, 0.28), transparent 42%),
    radial-gradient(circle at 50% 45%, rgba(25, 217, 121, 0.13), transparent 64%);
  background-size: 46px 46px, 46px 46px, auto, auto;
  mask-image: linear-gradient(to bottom, black 0 82%, transparent 100%);
}

.car-card::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 18px;
  height: 230px;
  border-top: 1px solid rgba(52, 219, 128, 0.24);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.car-card::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 54px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(25, 217, 121, 0.24), transparent 68%);
  filter: blur(10px);
}

.car-image {
  position: absolute;
  left: -27%;
  bottom: 54px;
  width: 146%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 24px rgba(25, 217, 121, 0.20));
}

.feature-list {
  width: 100%;
  list-style: none;
  margin: auto 0 30px;
  padding: 0;
}

.feature-list li {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.feature-list span,
.contact-card > span,
.emergency-card > span {
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green);
  background: rgba(8, 22, 17, 0.72);
  font-size: 28px;
}

.feature-list p {
  margin: 5px 0 0;
  color: var(--muted);
}

.brand-contact {
  width: 100%;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(33, 224, 132, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(33, 224, 132, 0.10), rgba(33, 224, 132, 0.025)),
    rgba(4, 13, 10, 0.76);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.brand-contact strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.brand-contact a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.brand-contact span {
  color: var(--muted);
  font-weight: 700;
}

.brand-contact a:hover,
.brand-contact a:focus-visible {
  color: var(--green-2);
}

.content-panel {
  min-width: 0;
  padding: 0 56px 38px;
}

.glass-nav {
  min-height: 76px;
  margin: 0 -56px 42px;
  padding: 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 86px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.035);
}

.nav-form {
  margin: 0;
}

.nav-tab {
  position: relative;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.nav-tab .svg-icon {
  width: 22px;
  height: 22px;
}

.nav-tab.active,
.home-frame[data-active-tab="home"] .glass-nav [data-tab-target="home"],
.home-frame[data-active-tab="login"] .glass-nav [data-tab-target="login"],
.home-frame[data-active-tab="apply"] .glass-nav [data-tab-target="apply"] {
  color: var(--green);
}

.nav-tab.active::after,
.home-frame[data-active-tab="home"] .glass-nav [data-tab-target="home"]::after,
.home-frame[data-active-tab="login"] .glass-nav [data-tab-target="login"]::after,
.home-frame[data-active-tab="apply"] .glass-nav [data-tab-target="apply"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--green-2);
  box-shadow: var(--glow);
}

.tab-page {
  display: none;
}

.home-frame[data-active-tab="home"] [data-tab-page="home"],
.home-frame[data-active-tab="login"] [data-tab-page="login"],
.home-frame[data-active-tab="apply"] [data-tab-page="apply"] {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: center;
  min-height: 410px;
}

.hero-copy h1 span {
  display: block;
  color: var(--green-deep);
}

.mobile-tag-pill {
  display: none;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-2);
  background: rgba(25, 217, 121, 0.08);
  font-weight: 800;
}

.hero-copy p {
  max-width: 600px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.sticker-preview {
  min-height: 360px;
  display: grid;
  place-items: center;
  position: relative;
  perspective: 1000px;
}

.sticker-card {
  width: 274px;
  min-height: 374px;
  padding: 14px 15px 0;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: #f4f8f5;
  border: 7px solid rgba(249, 255, 251, 0.96);
  box-shadow:
    0 24px 60px rgba(25, 217, 121, 0.30),
    0 12px 26px rgba(0, 0, 0, 0.54);
  transform: rotate(8deg);
}

.sticker-card.sticker-card-image {
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.sticker-card.sticker-card-image::before,
.sticker-card.sticker-card-image::after {
  content: none;
}

.sticker-card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  filter:
    drop-shadow(0 24px 60px rgba(25, 217, 121, 0.30))
    drop-shadow(0 12px 26px rgba(0, 0, 0, 0.54));
}

.sticker-card::before {
  content: "";
  position: absolute;
  inset: 0 0 68px;
  background:
    radial-gradient(circle at 12% 76%, rgba(255, 255, 255, 0.16) 0 10px, transparent 11px),
    radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.12) 0 18px, transparent 19px),
    linear-gradient(165deg, #28ce77 0%, #0b914e 72%, #087742 100%);
  border-radius: 15px 15px 46% 46% / 15px 15px 13% 13%;
}

.sticker-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 50px;
  height: 28px;
  border-radius: 50%;
  background: rgba(5, 52, 31, 0.18);
  filter: blur(14px);
}

.sticker-head,
.qr-shell,
.sticker-copy,
.sticker-footer {
  position: relative;
  z-index: 1;
}

.sticker-head {
  height: 13px;
  display: flex;
  justify-content: center;
  gap: 3px;
  opacity: 0.75;
}

.sticker-head span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.qr-shell {
  width: 184px;
  margin: 4px auto 0;
  padding: 10px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(2, 20, 12, 0.24);
}

.sticker-copy {
  width: 100%;
  margin: 14px auto 0;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
}

.sticker-copy strong {
  display: block;
  font-size: 22px;
  line-height: 0.96;
  letter-spacing: 0;
}

.sticker-copy p {
  width: min(100%, 190px);
  margin: 6px auto 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.sticker-footer {
  height: 68px;
  margin: 25px -15px 0;
  display: grid;
  place-items: center;
  background: #f4f8f5;
}

.sticker-footer img {
  width: 132px;
  height: auto;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  width: 164px;
  position: relative;
  gap: 2px;
  padding: 0;
  border-radius: 6px;
  background: #fff;
}

.qr-grid span {
  aspect-ratio: 1;
  background: #050505;
  border-radius: 0.5px;
}

.qr-grid span:nth-of-type(2n),
.qr-grid span:nth-of-type(5n + 2),
.qr-grid span:nth-of-type(7n + 4),
.qr-grid span:nth-of-type(11n + 6) {
  background: #fff;
}

.qr-grid span:nth-of-type(9n + 1),
.qr-grid span:nth-of-type(13n + 5),
.qr-grid span:nth-of-type(17n + 3) {
  background: #050505;
}

.qr-finder {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  z-index: 2;
  border: 7px solid #050505;
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 17px #050505;
}

.qr-finder-tl {
  top: 0;
  left: 0;
}

.qr-finder-tr {
  top: 0;
  right: 0;
}

.qr-finder-bl {
  bottom: 0;
  left: 0;
}

.steps {
  margin-top: 18px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.step-grid article,
.privacy-band,
.contact-card,
.emergency-card,
.stats-grid article,
.notice {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 13, 11, 0.68);
}

.step-grid article {
  position: relative;
  min-height: 170px;
  padding: 30px;
}

.step-grid span,
.pill,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-2);
  background: rgba(25, 217, 121, 0.12);
  font-weight: 800;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid rgba(126, 255, 186, 0.3);
  border-radius: 8px;
  color: #f7faf8;
  background: rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0;
}

.step-grid strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 18px;
}

.step-grid p,
.privacy-band p {
  color: var(--muted);
  line-height: 1.55;
}

.privacy-band {
  margin-top: 34px;
  padding: 26px 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.privacy-icon,
.step-icon {
  display: grid;
  place-items: center;
  color: var(--green);
}

.step-icon {
  width: 58px;
  height: 58px;
  margin-top: 18px;
}

.step-icon .svg-icon {
  width: 58px;
  height: 58px;
  stroke-width: 1.8;
}

.privacy-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.privacy-icon .svg-icon {
  width: 72px;
  height: 72px;
  stroke-width: 1.7;
}

.step-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  color: var(--green);
  opacity: 0;
}

.auth-grid,
.apply-grid {
  display: none;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 34px;
  align-items: start;
}

.home-frame[data-active-tab="login"] .auth-grid,
.home-frame[data-active-tab="apply"] .apply-grid {
  display: grid;
}

.glass-form {
  display: grid;
  gap: 16px;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.form-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(126, 255, 186, 0.26);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(4, 9, 8, 0.72);
  outline: none;
}

textarea {
  resize: vertical;
}

.note-field textarea {
  min-height: 132px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
}

select option {
  background: #0a1210;
}

.field-hint {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.field-hint.field-error {
  color: #ffb4b8;
}

.check-row {
  grid-template-columns: 22px 1fr;
  align-items: center;
  color: var(--text);
}

.check-row input {
  min-height: 22px;
}

.legal-consent {
  grid-column: 1 / -1;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid rgba(126, 255, 186, 0.24);
  border-radius: 16px;
  background: rgba(3, 10, 8, 0.58);
  line-height: 1.45;
}

.legal-consent input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
  accent-color: var(--green);
}

.legal-consent a {
  color: var(--green-2);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.cooldown,
.notice {
  padding: 14px 16px;
  color: var(--green-2);
}

.notice.error {
  margin-bottom: 16px;
  border-color: rgba(255, 49, 59, 0.55);
  color: #ffb4b8;
  background: rgba(255, 49, 59, 0.09);
}

button:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.profile-frame {
  grid-template-columns: 450px minmax(0, 1fr);
}

.profile-frame.narrow {
  width: min(620px, calc(100% - 34px));
  min-height: 100vh;
  margin-block: 0;
  padding-block: 34px;
  grid-template-columns: 1fr;
  place-content: center;
}

.mobile-profile-header {
  display: none;
}

.mobile-home-header {
  display: none;
}

.profile-side {
  padding: 48px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 860px;
}

.avatar-ring {
  width: 190px;
  height: 190px;
  margin: 42px auto 24px;
  display: grid;
  place-items: center;
  border: 5px solid var(--green);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, #232827, #0b100f);
  box-shadow: var(--glow);
  font-family: var(--display);
  font-size: 76px;
  font-weight: 900;
}

.profile-side h1 {
  font-size: 40px;
  text-align: center;
}

.plate {
  --plate-strip: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  width: min(100%, 340px);
  margin: 20px 0 18px;
  padding: 0 14px 0 calc(var(--plate-strip) + 12px);
  border: 4px solid #111;
  border-radius: 10px;
  color: #0a0a0a;
  background: linear-gradient(90deg, #0d4db7 0 var(--plate-strip), #f7f7f4 var(--plate-strip));
  box-shadow: 0 0 0 4px #f7f7f4;
  box-sizing: border-box;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 42px;
  line-height: 1;
}

.plate::before {
  content: "TR";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--plate-strip);
  display: grid;
  place-items: end center;
  padding-bottom: 12px;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
}

.blood {
  margin-bottom: 36px;
  padding: 10px 22px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green-2);
  font-weight: 900;
}

.verified {
  width: 100%;
  margin: auto 0 34px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-main {
  min-width: 0;
  padding: 0 50px 28px;
}

.profile-main h1 {
  font-size: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.contact-card {
  min-height: 118px;
  padding: 22px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 10px;
  align-items: center;
}

.contact-card > div {
  min-width: 0;
}

.contact-card > div:only-child {
  grid-column: 1 / -1;
}

.contact-card .button {
  grid-column: 2;
  justify-self: start;
  min-width: 154px;
  white-space: nowrap;
}

.contact-card.social-card {
  grid-template-columns: 64px minmax(0, 1fr);
}

.contact-card.social-card .button {
  min-width: 154px;
}

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

.kin-card {
  grid-template-columns: minmax(0, 1fr);
}

.contact-card.compact .button {
  grid-column: 1;
  margin-left: 98px;
}

.kin-info {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  justify-items: start;
}

.kin-info .pill {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-width: 70px;
  justify-content: center;
  white-space: nowrap;
}

.kin-info strong {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.kin-info p {
  grid-column: 2;
  grid-row: 2;
}

.contact-card strong {
  display: block;
  font-size: 20px;
}

.contact-card p {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.contact-card.compact p {
  font-size: 20px;
  color: var(--muted);
}

.quick-alert-panel {
  margin: 18px 0 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(33, 224, 132, 0.38);
  border-radius: 22px;
  background: rgba(3, 12, 9, 0.76);
}

.quick-alert-panel h2 {
  margin: 0 0 6px;
}

.quick-alert-panel .muted {
  margin: 0;
}

.quick-alert-open {
  min-width: 230px;
}

.emergency-card {
  min-height: 120px;
  padding: 24px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: center;
  border-color: rgba(255, 49, 59, 0.75);
  background: linear-gradient(90deg, rgba(91, 11, 16, 0.42), rgba(10, 10, 10, 0.78));
}

.emergency-card > span {
  border-color: rgba(255, 49, 59, 0.78);
  color: var(--danger);
}

.emergency-card strong {
  font-size: 28px;
}

.safe-note {
  color: var(--muted);
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-note-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(7px);
}

.profile-note-modal[hidden] {
  display: none;
}

.quick-alert-modal {
  display: none;
}

.quick-alert-modal.is-open,
.call-modal.is-open {
  display: grid;
}

body.modal-open {
  overflow: hidden;
}

.profile-note-card {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(126, 255, 186, 0.36);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0, rgba(25, 217, 121, 0.16), transparent 42%),
    rgba(7, 14, 12, 0.96);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.68),
    0 0 34px rgba(25, 217, 121, 0.18);
}

.quick-alert-modal-card {
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 224, 132, 0.7) rgba(255, 255, 255, 0.08);
}

.call-modal-card {
  width: min(520px, 100%);
}

.call-request-form {
  margin-top: 22px;
}

.quick-alert-modal-card::-webkit-scrollbar {
  width: 8px;
}

.quick-alert-modal-card::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.quick-alert-modal-card::-webkit-scrollbar-thumb {
  background: rgba(33, 224, 132, 0.72);
  border-radius: 999px;
}

.quick-alert-modal-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.quick-alert-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.quick-alert-option {
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(33, 224, 132, 0.34);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.quick-alert-option span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(33, 224, 132, 0.38);
  border-radius: 50%;
  color: var(--green-2);
  background: rgba(33, 224, 132, 0.08);
}

.quick-alert-option strong {
  min-width: 0;
  font-size: 18px;
  line-height: 1.25;
}

.quick-alert-option:hover,
.quick-alert-option:focus-visible {
  border-color: var(--green-2);
  background: rgba(33, 224, 132, 0.1);
  outline: none;
}

.qr-activation-form input[name="activation_code"] {
  max-width: 220px;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 6px;
}

.profile-note-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 26px;
  line-height: 1;
}

.profile-note-close:hover,
.profile-note-close:focus-visible {
  border-color: var(--line);
  color: var(--green-2);
}

.note-kicker {
  max-width: calc(100% - 48px);
  margin-bottom: 14px;
  font-size: 16px;
}

.note-date {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 800;
}

.note-message {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(126, 255, 186, 0.18);
  border-radius: 16px;
  color: var(--text);
  background: rgba(2, 8, 7, 0.62);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.form-page {
  width: min(1180px, calc(100% - 44px));
  margin: 44px auto;
  display: grid;
  gap: 24px;
}

.form-page.narrow {
  width: min(620px, calc(100% - 34px));
  min-height: 100vh;
  margin-block: 0;
  padding-block: 34px;
  place-content: center;
}

.auth-panel {
  padding: 42px 52px;
}

.auth-logo {
  width: clamp(185px, 34vw, 235px);
  height: auto;
  margin: 0 0 16px;
}

.auth-panel h1 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(36px, 4.7vw, 48px);
  line-height: 1.05;
}

.auth-panel .eyebrow {
  margin-bottom: 10px;
}

.auth-back-link {
  margin-top: 2px;
}

.legal-page {
  width: min(980px, calc(100% - 44px));
}

.legal-panel {
  padding: 38px;
}

.legal-logo {
  width: max-content;
  display: inline-flex;
  margin-bottom: 12px;
}

.legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.legal-content section {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(3, 10, 8, 0.52);
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.legal-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-actions {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(180px, 1fr);
  gap: 14px;
}

.payment-page,
.payment-result-page {
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 0 26px;
  display: grid;
  place-items: center;
}

.payment-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(520px, 1.22fr);
  gap: 22px;
  align-items: stretch;
}

.payment-summary,
.payment-frame-card,
.payment-result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 27, 23, 0.92), rgba(5, 13, 11, 0.82));
  box-shadow: var(--shadow);
}

.payment-summary {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.payment-logo {
  width: 230px;
  display: inline-flex;
}

.payment-summary h1,
.payment-result-card h1 {
  max-width: 620px;
}

.payment-facts {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(126, 255, 186, 0.22);
  border-radius: 18px;
  background: rgba(2, 8, 7, 0.48);
}

.payment-facts p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.payment-facts p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payment-facts span {
  color: var(--muted);
  font-weight: 700;
}

.payment-facts strong {
  text-align: right;
}

.payment-shipping {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(126, 255, 186, 0.22);
  border-radius: 18px;
  background: rgba(1, 8, 6, 0.58);
}

.payment-shipping h2 {
  margin: 0;
  font-size: 18px;
}

.payment-shipping p {
  margin: 0;
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.payment-shipping span {
  color: var(--muted);
  font-weight: 800;
}

.payment-shipping strong {
  color: var(--text);
  line-height: 1.45;
}

.payment-facts.compact {
  width: min(560px, 100%);
  margin: 18px auto 0;
}

.payment-frame-card {
  min-width: 0;
  padding: 22px;
}

.payment-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.payment-frame-head h2 {
  margin: 0;
}

.payment-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(126, 255, 186, 0.35);
  border-radius: 999px;
  color: var(--green-2);
  background: rgba(25, 217, 121, 0.12);
  font-weight: 900;
}

.paytr-frame-wrap {
  overflow: hidden;
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #fff;
}

.paytr-frame {
  width: 100%;
  min-height: 720px;
  border: 0;
  display: block;
  background: #fff;
}

.payment-result-page {
  width: min(760px, calc(100% - 42px));
}

.payment-result-card {
  width: 100%;
  padding: 38px;
  text-align: center;
}

.payment-result-icon {
  width: 72px;
  height: 72px;
  margin: 22px auto 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--green-2);
  background: rgba(25, 217, 121, 0.12);
}

.payment-result-icon.fail {
  color: #ffb4b8;
  border-color: rgba(255, 49, 59, 0.48);
  background: rgba(255, 49, 59, 0.10);
}

.payment-result-icon .svg-icon {
  width: 34px;
  height: 34px;
}

.payment-result-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.payment-result-actions .button:only-child {
  grid-column: 1 / -1;
}

.site-footer {
  width: min(920px, calc(100% - 44px));
  margin: 22px auto 54px;
  padding: 22px 18px 34px;
  text-align: center;
  color: var(--muted-2);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-bottom: 34px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 18px rgba(25, 217, 121, 0.22);
}

.footer-mark {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.footer-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  font-weight: 700;
}

.site-footer p + p {
  margin-top: 18px;
}

.site-footer strong,
.footer-sponsor a {
  color: var(--muted);
}

.footer-sponsor {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
}

.footer-sponsor span {
  color: var(--muted-2);
}

.footer-sponsor a {
  font-size: 18px;
  font-weight: 900;
}

.page-heading {
  display: flex;
  gap: 28px;
  align-items: center;
}

.contacts-editor,
.section-line,
.wide .button.full,
.wide .notice {
  grid-column: 1 / -1;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 90px 110px;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-edit-page {
  width: min(1180px, calc(100% - 44px));
}

.editor-heading {
  justify-content: space-between;
}

.editor-heading > div {
  min-width: 0;
  flex: 1;
}

.heading-action {
  flex: 0 0 auto;
}

.editor-panel {
  padding: 28px;
}

.profile-edit-form {
  display: grid;
  gap: 20px;
}

.editor-block {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(3, 10, 8, 0.42);
}

.editor-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.editor-block-head h2,
.editor-block-head p {
  margin-bottom: 0;
}

.editor-fields {
  display: grid;
  gap: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.admin-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.switch-row {
  min-height: 78px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(126, 255, 186, 0.24);
  border-radius: 16px;
  color: var(--text);
  background: rgba(4, 12, 10, 0.78);
}

.switch-row-compact {
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) 62px;
  padding: 10px 12px;
}

.switch-text {
  display: grid;
  gap: 4px;
}

.switch-text strong {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.2;
}

.switch-text em {
  color: var(--muted-2);
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.switch-input {
  position: absolute;
  inset: auto;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  position: relative;
  justify-self: end;
  width: 66px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.38);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8ece9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.38);
  transition: transform 180ms ease;
}

.switch-row-compact .switch-ui {
  width: 54px;
  height: 32px;
}

.switch-row-compact .switch-ui::after {
  width: 24px;
  height: 24px;
}

.switch-input:checked + .switch-ui {
  border-color: rgba(126, 255, 186, 0.46);
  background: linear-gradient(135deg, #1ea754, #2bdc77);
  box-shadow: 0 0 22px rgba(25, 217, 121, 0.26);
}

.switch-input:checked + .switch-ui::after {
  transform: translateX(28px);
}

.switch-row-compact .switch-input:checked + .switch-ui::after {
  transform: translateX(22px);
}

.switch-input:focus-visible + .switch-ui {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
}

.contact-list-editor {
  display: grid;
  gap: 12px;
}

.contact-row-editor {
  grid-template-columns: minmax(120px, 0.9fr) minmax(170px, 1.1fr) minmax(190px, 1.1fr) 92px 138px;
  gap: 12px;
  align-items: end;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid rgba(126, 255, 186, 0.18);
  border-radius: 16px;
  background: rgba(2, 8, 7, 0.56);
}

.contact-row-editor label > span {
  color: var(--muted);
  font-weight: 800;
}

.note-editor {
  display: grid;
  gap: 14px;
}

.note-clear-button {
  justify-self: start;
}

.contact-switch {
  align-self: stretch;
}

.editor-submit-bar {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(240px, 1fr);
  gap: 14px;
}

.password-panel .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.password-panel .button {
  align-self: end;
}

.user-detail-card {
  display: grid;
  gap: 22px;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
}

.detail-block {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(3, 10, 8, 0.46);
}

.detail-block h2 {
  margin-bottom: 18px;
}

.admin-contact-list {
  display: grid;
  gap: 12px;
}

.admin-contact-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(126, 255, 186, 0.18);
  border-radius: 14px;
  background: rgba(2, 8, 7, 0.58);
}

.admin-contact-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-contact-item em {
  color: #ffb4b8;
  font-style: normal;
  font-weight: 800;
}

.admin-danger-zone {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.state-page {
  padding: 42px;
}

.admin-body {
  background: #020504;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px;
  border-right: 1px solid var(--line-soft);
  background: rgba(4, 10, 8, 0.92);
}

.logo-img {
  width: 220px;
  height: auto;
  margin: 0 auto 32px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a:focus-visible {
  color: var(--green-2);
  border-color: var(--line);
  background: rgba(25, 217, 121, 0.08);
}

.admin-nav span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06110d;
  background: var(--green);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  min-height: 74px;
  margin-bottom: 24px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--panel);
}

.admin-topbar .icon-button {
  display: none;
}

.admin-topbar span {
  display: block;
  color: var(--green);
  font-size: 13px;
}

.admin-section {
  display: grid;
  gap: 22px;
}

.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-line h1 {
  margin: 0;
  font-size: 34px;
}

.action-row,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.stats-grid article {
  min-height: 126px;
  padding: 18px;
}

.stats-grid span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.stats-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 36px;
  color: var(--green-2);
}

.admin-grid {
  display: grid;
  gap: 20px;
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-card {
  min-width: 0;
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green-2);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 160px auto;
  gap: 12px;
  align-items: center;
}

.detail-list p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.detail-list span {
  color: var(--muted);
}

.detail-list .detail-row-block {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.detail-list .detail-row-block strong {
  text-align: right;
  line-height: 1.45;
}

.admin-settings-form {
  display: grid;
  gap: 20px;
}

.settings-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.settings-card label {
  display: grid;
  gap: 7px;
}

.settings-card label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-card input,
.settings-card select {
  width: 100%;
}

.settings-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 8, 6, 0.72);
  backdrop-filter: blur(14px);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal-card {
  width: min(480px, 100%);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(126, 255, 186, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(6, 20, 16, 0.98), rgba(1, 10, 8, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.confirm-modal-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 255, 186, 0.34);
  border-radius: 50%;
  color: var(--green-2);
  font-weight: 900;
  background: rgba(34, 255, 133, 0.10);
}

.confirm-modal-copy {
  display: grid;
  gap: 7px;
}

.confirm-modal-copy h2 {
  margin: 0;
  font-size: 24px;
}

.confirm-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.status.pending {
  color: #c8f8dd;
}

.status.payment_pending,
.status.payment-pending {
  color: #ffe0a3;
  border-color: rgba(255, 190, 92, 0.38);
  background: rgba(255, 190, 92, 0.10);
}

.status.approved,
.status.active,
.status.payment-paid {
  color: var(--green-2);
}

.status.rejected,
.status.passive,
.status.deleted,
.status.payment-failed {
  color: #ffb4b8;
  border-color: rgba(255, 49, 59, 0.35);
  background: rgba(255, 49, 59, 0.10);
}

code {
  white-space: pre-wrap;
  color: var(--green-2);
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 22px 0;
}

@media (max-width: 1280px) {
  .home-frame,
  .profile-frame {
    width: min(1180px, calc(100% - 42px));
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
  }

  .content-panel,
  .profile-main {
    padding-inline: 34px;
  }

  .glass-nav {
    margin-inline: -34px;
    padding-inline: 26px;
    gap: 38px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .payment-shell {
    grid-template-columns: 1fr;
  }

  h1,
  .profile-main h1 {
    font-size: 42px;
  }

  .home-frame,
  .profile-frame {
    grid-template-columns: 1fr;
    margin-block: 28px;
  }

  .brand-panel,
  .profile-side {
    min-height: auto;
  }

  .hero-grid,
  .auth-grid,
  .apply-grid,
  .admin-grid.two,
  .user-detail-grid,
  .settings-grid,
  .admin-settings-grid,
  .admin-danger-zone,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .editor-submit-bar {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    order: 2;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .emergency-card {
    grid-template-columns: 72px 1fr;
  }

  .emergency-card .button {
    grid-column: 1 / -1;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .detail-list .detail-row-block {
    grid-template-columns: 1fr;
  }

  .detail-list .detail-row-block strong {
    text-align: left;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: 290px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-topbar .icon-button {
    display: inline-grid;
  }
}

@media (max-width: 768px) {
  .payment-page,
  .payment-result-page {
    width: min(100% - 26px, 560px);
    padding: 18px 0 16px;
  }

  .payment-summary,
  .payment-frame-card,
  .payment-result-card {
    border-radius: 20px;
  }

  .payment-summary,
  .payment-result-card {
    padding: 24px;
  }

  .payment-logo {
    width: 190px;
  }

  .payment-frame-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .paytr-frame-wrap,
  .paytr-frame {
    min-height: 680px;
  }

  .payment-result-actions {
    grid-template-columns: 1fr;
  }

  body {
    background:
      radial-gradient(circle at 50% 0, rgba(25, 217, 121, 0.14), transparent 36%),
      linear-gradient(145deg, #010302, #040b09);
  }

  .home-frame,
  .profile-frame,
  .form-page {
    width: min(100% - 28px, 720px);
    margin: 18px auto 32px;
  }

  .home-frame {
    display: block;
  }

  .profile-frame {
    position: relative;
    gap: 18px;
  }

  .brand-panel {
    display: none;
  }

  .content-panel,
  .profile-main,
  .profile-side,
  .admin-card {
    border-radius: 20px;
    padding: 24px;
  }

  .auth-panel {
    padding: 34px 30px;
  }

  .auth-logo {
    width: min(220px, 72vw);
  }

  .glass-nav {
    margin: -24px -24px 28px;
    padding: 10px;
    min-height: auto;
    justify-content: stretch;
    gap: 8px;
    overflow-x: auto;
  }

  .nav-tab {
    white-space: nowrap;
  }

  .hero-grid {
    min-height: 0;
  }

  .sticker-preview {
    min-height: 280px;
  }

  .sticker-card {
    width: 232px;
    min-height: 320px;
    padding: 12px 13px 0;
    border-width: 6px;
    border-radius: 19px;
  }

  .sticker-card::before {
    bottom: 58px;
  }

  .qr-shell {
    width: 156px;
    padding: 8px;
  }

  .qr-grid {
    width: 140px;
    gap: 1.7px;
  }

  .qr-finder {
    border-width: 6px;
    box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 15px #050505;
  }

  .sticker-copy strong {
    font-size: 19px;
  }

  .sticker-copy p {
    font-size: 15px;
  }

  .sticker-footer {
    height: 58px;
    margin: 22px -13px 0;
  }

  .sticker-footer img {
    width: 112px;
  }

  .mobile-tag-pill {
    display: inline-flex;
  }

  .step-grid article {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 16px;
    min-height: 138px;
    padding: 22px;
  }

  .step-grid article > span {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .step-icon {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .step-grid article strong,
  .step-grid article p {
    grid-column: 3;
  }

  .step-grid article strong {
    margin: 0 0 6px;
  }

  .step-grid article p {
    margin-bottom: 0;
  }

  .step-arrow {
    position: static;
    grid-column: 4;
    grid-row: 1 / span 2;
    opacity: 1;
  }

  .privacy-band {
    align-items: flex-start;
  }

  .site-footer {
    width: min(100% - 28px, 720px);
    margin: 6px auto 36px;
    padding: 18px 12px 28px;
  }

  .footer-links {
    gap: 12px 22px;
    margin-bottom: 28px;
  }

  .footer-sponsor {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .form-grid,
  .form-grid.wide,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .profile-edit-page {
    width: min(100% - 28px, 720px);
  }

  .editor-panel {
    padding: 20px;
  }

  .editor-block {
    padding: 18px;
  }

  .editor-block-head {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-note-card {
    padding: 28px 22px 22px;
  }

  .note-message {
    font-size: 18px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
  }

  .contact-row-editor {
    grid-template-columns: 1fr;
  }

  .switch-row,
  .switch-row-compact {
    grid-template-columns: minmax(0, 1fr) 66px;
  }

  .password-panel .form-grid {
    grid-template-columns: 1fr;
  }

  .mobile-profile-header {
    display: flex;
    position: relative;
    z-index: 50;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 22px;
  }

  .mobile-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 22px;
  }

  .mobile-profile-header img,
  .mobile-home-header img {
    width: 210px;
  }

  .content-panel > .glass-nav {
    display: none;
  }

  .content-panel > .glass-nav.open {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .content-panel > .glass-nav.open .nav-tab {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .desktop-profile-nav {
    display: none;
  }

  .mobile-profile-nav.glass-nav {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
      rgba(8, 18, 15, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 28px rgba(25, 217, 121, 0.10);
    backdrop-filter: blur(18px);
    overflow: visible;
  }

  .mobile-profile-nav.glass-nav.open {
    display: grid;
  }

  .mobile-profile-nav.glass-nav.open .nav-tab {
    width: 100%;
    min-height: 58px;
    justify-content: flex-start;
    text-align: left;
  }

  .profile-side .small-logo {
    display: none;
  }

  .profile-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    gap: 12px;
    min-height: auto;
    text-align: center;
  }

  .profile-side .button {
    display: none;
  }

  .avatar-ring {
    width: 146px;
    height: 146px;
    margin: 0 0 8px;
    font-size: 56px;
  }

  .profile-side .eyebrow,
  .profile-side h1,
  .plate,
  .blood {
    grid-column: auto;
  }

  .profile-side .eyebrow {
    margin: 0;
    justify-self: center;
  }

  .profile-side h1 {
    margin: 0;
    text-align: center;
    font-size: 36px;
    line-height: 1.05;
  }

  .plate {
    width: min(100%, 318px);
    min-height: 66px;
    margin: 0;
    justify-self: center;
    font-size: clamp(28px, 7.4vw, 34px);
    white-space: nowrap;
  }

  .blood {
    justify-self: center;
    margin: 2px 0 0;
  }

  .verified {
    grid-column: auto;
    width: 100%;
    margin: 10px 0 0;
    padding-top: 18px;
    text-align: center;
    justify-content: center;
  }

  .contact-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .quick-alert-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .quick-alert-open {
    width: 100%;
    min-width: 0;
  }

  .contact-card p {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .contact-card .button {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .contact-card.compact {
    grid-template-columns: 1fr;
  }

  .contact-card.compact .button {
    grid-column: auto;
    margin-left: 0;
  }

  .kin-card {
    grid-template-columns: 1fr;
  }

  .kin-info {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .admin-contact-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-main {
    padding: 14px;
  }

  .section-line,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .payment-page,
  .payment-result-page {
    width: calc(100% - 18px);
  }

  .payment-summary,
  .payment-frame-card,
  .payment-result-card {
    padding: 18px;
  }

  .payment-facts p {
    display: grid;
    gap: 4px;
  }

  .payment-facts strong {
    text-align: left;
  }

  .paytr-frame-wrap,
  .paytr-frame {
    min-height: 620px;
  }

  h1,
  .profile-main h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 23px;
  }

  .home-frame,
  .profile-frame,
  .form-page,
  .form-page.narrow {
    width: min(100% - 20px, 390px);
    margin-top: 10px;
  }

  .content-panel,
  .profile-main,
  .profile-side,
  .admin-card {
    padding: 18px;
  }

  .auth-panel {
    padding: 28px 22px;
  }

  .auth-logo {
    width: min(205px, 70vw);
    margin-bottom: 14px;
  }

  .auth-panel h1 {
    font-size: 34px;
  }

  .glass-nav {
    margin: -18px -18px 24px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .hero-actions,
  .action-row {
    display: grid;
  }

  .switch-row,
  .switch-row-compact {
    min-height: 68px;
    padding: 12px;
  }

  .switch-text em {
    font-size: 12px;
  }

  .step-grid article {
    grid-template-columns: 44px 56px minmax(0, 1fr) 24px;
    gap: 12px;
    padding: 18px;
  }

  .step-grid article > span {
    min-height: 36px;
    padding-inline: 9px;
  }

  .step-icon,
  .step-icon .svg-icon {
    width: 48px;
    height: 48px;
  }

  .privacy-band {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }

  .site-footer {
    width: min(100% - 20px, 390px);
    margin-top: 8px;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
  }

  .footer-sponsor {
    display: grid;
    justify-items: center;
  }

  .profile-note-modal {
    padding: 18px;
    align-items: start;
    padding-top: 82px;
  }

  .quick-alert-modal {
    place-items: end center;
    padding: 12px;
    padding-top: 72px;
  }

  .quick-alert-modal-card {
    width: 100%;
    max-height: min(78dvh, calc(100vh - 92px));
    overflow: auto;
    padding: 24px 18px 18px;
    border-radius: 18px 18px 10px 10px;
  }

  .quick-alert-modal-card h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .quick-alert-modal-card .muted {
    font-size: 14px;
  }

  .quick-alert-list {
    gap: 10px;
    margin-top: 16px;
  }

  .quick-alert-option {
    min-height: 54px;
    padding: 10px 12px;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .quick-alert-option span {
    width: 38px;
    height: 38px;
  }

  .quick-alert-option strong {
    font-size: 16px;
  }

  .note-kicker {
    max-width: calc(100% - 42px);
  }

  .sticker-preview {
    min-height: 340px;
    display: block;
    margin: 28px -18px 2px;
    overflow: hidden;
    isolation: isolate;
  }

  .sticker-preview::before {
    content: "";
    position: absolute;
    left: -92px;
    bottom: 4px;
    width: 348px;
    height: 220px;
    z-index: 0;
    background: url("../img/arackimin-car-cropped.png") center / contain no-repeat;
    filter:
      drop-shadow(0 24px 28px rgba(0, 0, 0, 0.72))
      drop-shadow(0 0 18px rgba(25, 217, 121, 0.22));
  }

  .sticker-preview::after {
    content: "";
    position: absolute;
    inset: auto 4px 0 4px;
    height: 145px;
    z-index: -1;
    background: radial-gradient(ellipse at 54% 82%, rgba(25, 217, 121, 0.22), transparent 64%);
    filter: blur(8px);
  }

  .sticker-preview .sticker-card {
    position: absolute;
    right: 6px;
    bottom: 18px;
    z-index: 1;
    width: 156px;
    min-height: 225px;
    padding: 7px 8px 0;
    border-width: 4px;
    border-radius: 14px;
    transform: rotate(8deg);
    box-shadow:
      0 18px 34px rgba(25, 217, 121, 0.30),
      0 10px 18px rgba(0, 0, 0, 0.58);
  }

  .sticker-preview .sticker-card::before {
    bottom: 42px;
  }

  .sticker-preview .sticker-card::after {
    bottom: 34px;
  }

  .sticker-preview .sticker-head {
    height: 8px;
  }

  .sticker-preview .sticker-head span {
    width: 2px;
    height: 5px;
  }

  .sticker-preview .qr-shell {
    width: 102px;
    padding: 6px;
    border-radius: 9px;
  }

  .sticker-preview .qr-grid {
    width: 90px;
    gap: 1.1px;
  }

  .sticker-preview .qr-finder {
    border-width: 4px;
    box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px #050505;
  }

  .sticker-preview .sticker-copy {
    margin-top: 8px;
  }

  .sticker-preview .sticker-copy strong {
    font-size: 12px;
  }

  .sticker-preview .sticker-copy p {
    width: 106px;
    margin-top: 3px;
    font-size: 10px;
  }

  .sticker-preview .sticker-footer {
    height: 42px;
    margin: 13px -8px 0;
  }

  .sticker-preview .sticker-footer img {
    width: 78px;
  }

  .sticker-preview .sticker-card.sticker-card-image {
    width: 156px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: transparent;
  }

  .sticker-preview .sticker-card.sticker-card-image::before,
  .sticker-preview .sticker-card.sticker-card-image::after {
    content: none;
  }

  .sticker-preview .sticker-card-image img {
    border-radius: 12px;
  }

  .profile-side {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 22px 16px 20px;
  }

  .avatar-ring {
    width: 128px;
    height: 128px;
    font-size: 50px;
  }

  .profile-side h1 {
    font-size: 32px;
  }

  .plate {
    --plate-strip: 46px;
    width: min(100%, 300px);
    min-height: 62px;
    font-size: clamp(27px, 7.2vw, 30px);
    border-width: 3px;
  }

  .plate::before {
    padding-bottom: 9px;
  }

  .contact-card p {
    font-size: 22px;
  }

  .emergency-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .emergency-card .button {
    width: 100%;
    min-height: 72px;
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 720px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
