:root {
  color-scheme: dark;
  --bg: #05080b;
  --panel: rgba(8, 15, 21, 0.82);
  --panel-strong: rgba(9, 18, 25, 0.94);
  --text: #f4f8fb;
  --muted: #a9b7c3;
  --line: rgba(144, 234, 255, 0.22);
  --accent: #00f0e0;
  --accent-2: #42ff9d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --header-offset: 92px;
  --page-width: 1480px;
  --surface-inset: clamp(10px, 3vw, 34px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  overflow: hidden;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 56px);
  left: 50%;
  transform: translateX(-50%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 10px var(--surface-inset);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(3, 8, 12, 0.86), rgba(5, 13, 18, 0.46));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-chip {
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 0 22px rgba(0, 240, 224, 0.35);
}

.brand-chip::before,
.brand-chip::after {
  content: "";
  position: absolute;
  inset: -8px 8px;
  border-block: 2px solid var(--accent);
}

.brand-chip::after {
  inset: 8px -8px;
  border-block: 0;
  border-inline: 2px solid var(--accent);
}

.brand-chip span {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.brand strong {
  display: block;
  font-size: 28px;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 62px);
}

.main-nav a {
  color: rgba(244, 248, 251, 0.84);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent);
}

.account-menu {
  position: relative;
}

.account-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% + 16px);
  right: 0;
  width: max-content;
  min-width: 190px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 10, 14, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.account-dropdown[hidden] {
  display: none;
}

.account-dropdown a,
.account-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  color: rgba(244, 248, 251, 0.9);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-dropdown a:hover,
.account-dropdown button:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:focus-visible {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

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

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 8, 12, 0.58);
}

.language-switch button {
  height: 34px;
  border: 0;
  color: rgba(244, 248, 251, 0.8);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.is-active {
  color: #001515;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 0 clamp(22px, 5vw, 80px);
  overflow: hidden;
}

@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(1, 5, 8, 0.96) 0%, rgba(2, 8, 12, 0.82) 32%, rgba(2, 8, 12, 0.24) 68%, rgba(2, 8, 12, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.74)),
    url("assets/motherboard-bios-hero.png") center / cover no-repeat;
  transform: translateZ(0);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

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

.panel-deck {
  position: fixed;
  top: var(--header-offset);
  left: 50%;
  right: auto;
  bottom: 0;
  z-index: 30;
  display: grid;
  width: min(100%, var(--page-width));
  place-items: stretch;
  padding: 12px clamp(18px, 4vw, 56px) 22px;
  pointer-events: none;
  transform: translateX(calc(-50% + 100%));
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.is-ready) .panel-deck,
body:not(.is-ready) .info-panel {
  visibility: hidden;
  opacity: 0;
}

.panel-deck.is-open {
  pointer-events: auto;
  transform: translateX(-50%);
}

.content-band {
  width: 100%;
  margin: 0 auto;
  padding: 48px;
}

.info-panel {
  position: absolute;
  inset: 12px var(--surface-inset) 22px;
  min-height: 0;
  height: auto;
  overflow: auto;
  border: 1px solid rgba(144, 234, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(8, 18, 25, 0.96), rgba(3, 8, 12, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(0, 240, 224, 0.1), transparent 38%);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transform: translateX(100%);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    visibility 0s linear 520ms;
}

.info-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    visibility 0s;
}

.info-panel.is-exiting {
  opacity: 0;
  visibility: visible;
  transform: translateX(-12%);
  transition:
    transform 420ms ease,
    opacity 280ms ease,
    visibility 0s linear 420ms;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.action-band p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.contact-copy {
  max-width: 480px;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 2px;
  width: min(100%, 560px);
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(2, 8, 12, 0.48);
}

.contact-form .field {
  width: 100%;
}

.contact-form textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid rgba(144, 234, 255, 0.2);
  color: var(--text);
  background: rgba(2, 8, 12, 0.72);
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
}

.contact-form textarea:focus {
  border-color: rgba(0, 240, 224, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 240, 224, 0.12);
}

.contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.contact-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-status[data-type="success"] {
  color: var(--accent-2);
}

.contact-status[data-type="error"] {
  color: #ff7a7a;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 230px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(10, 24, 32, 0.92), rgba(5, 12, 18, 0.94));
}

.feature-grid h3 {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.2;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.news-list {
  border-top: 1px solid var(--line);
}

.news-list article {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--accent);
  font-weight: 800;
}

.news-list span {
  color: var(--text);
  line-height: 1.5;
}

.login-band {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.login-card {
  display: grid;
  align-items: center;
  width: min(100%, 560px);
  min-height: 470px;
  perspective: 1800px;
}

.login-card[hidden],
.user-panel[hidden] {
  display: none;
}

.login-card-inner {
  position: relative;
  width: 100%;
  height: 470px;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.login-card.is-flipped .login-card-inner {
  transform: rotateY(180deg);
}

.login-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 28px 18px;
  border: 1px solid rgba(144, 234, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 24, 32, 0.94), rgba(4, 10, 15, 0.96));
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.login-face-back {
  align-items: center;
  transform: rotateY(180deg);
}

.login-copy {
  width: min(100%, 420px);
  margin: 0 0 18px;
  text-align: center;
}

.login-copy h2 {
  margin-bottom: 0;
}

.login-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.login-copy-reset {
  margin: 0 0 18px;
}

.login-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  margin: 0 auto 16px;
  border: 1px solid rgba(144, 234, 255, 0.22);
  border-radius: 9999px;
  color: var(--accent);
  background: rgba(2, 8, 12, 0.72);
  box-shadow: 0 0 0 8px rgba(0, 240, 224, 0.05);
  overflow: hidden;
}

.login-badge svg {
  width: 26px;
  height: 26px;
}

.login-face-back .field {
  width: min(100%, 420px);
}

.login-face-back .login-row {
  width: min(100%, 420px);
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  width: min(100%, 420px);
  text-align: left;
}

.field-control {
  position: relative;
  width: 100%;
}

.field span,
.checkbox span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 48px 12px 14px;
  border: 1px solid rgba(144, 234, 255, 0.2);
  color: var(--text);
  background: rgba(2, 8, 12, 0.72);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.field input::placeholder {
  color: rgba(169, 183, 195, 0.55);
}

.field input:focus {
  border-color: rgba(0, 240, 224, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 240, 224, 0.12);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  padding: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
}

.password-toggle svg {
  width: 16px;
  height: 16px;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] {
  color: var(--text);
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.password-toggle[aria-pressed="false"] .eye-closed {
  display: block;
}

.password-toggle[aria-pressed="false"] .eye-open {
  display: none;
}

.login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  width: min(100%, 420px);
}

.login-actions {
  margin-top: 4px;
  padding-top: 0;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #001515;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  align-self: center;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 240, 224, 0.18);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.button-secondary {
  color: var(--text);
  background: rgba(2, 8, 12, 0.72);
  border-color: rgba(144, 234, 255, 0.2);
}

.forgot-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

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

.login-message {
  min-height: 22px;
  width: min(100%, 420px);
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.login-message[data-type="success"] {
  color: var(--accent-2);
}

.login-message[data-type="error"] {
  color: #ff7a7a;
}

.user-panel {
  width: min(100%, 760px);
  padding: 34px;
  border: 1px solid rgba(144, 234, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 24, 32, 0.94), rgba(4, 10, 15, 0.96));
  box-shadow: var(--shadow);
}

.user-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.user-panel-head > div {
  min-width: 0;
}

.user-panel-head span,
.user-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.user-panel-head h2 {
  margin: 8px 0 0;
  font-size: 34px;
}

.user-panel-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.user-grid article {
  min-width: 0;
  padding: 22px;
  background: rgba(2, 8, 12, 0.7);
}

.user-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-footer {
  display: none;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 32px clamp(22px, 5vw, 80px) 46px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .panel-deck,
  .info-panel,
  .info-panel.is-active,
  .info-panel.is-exiting {
    transition: none;
  }
}

/* Mobile navigation and login icon */
.mobile-menu-toggle {
  display: none;
}

.header-login-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header-login {
  gap: 8px;
}

@media (max-width: 680px) {
  :root {
    --header-offset: 92px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 14px;
    padding: 16px;
  }

  .mobile-menu-toggle {
    position: relative;
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(150, 119, 255, 0.48);
    border-radius: 10px;
    color: #fff;
    background: rgba(9, 15, 37, 0.92);
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 220ms ease, opacity 180ms ease;
  }

  .site-header.is-menu-open .mobile-menu-toggle {
    color: var(--accent-2);
    border-color: rgba(255, 173, 24, 0.68);
  }

  .site-header.is-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.is-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header .main-nav,
  .site-header .header-actions {
    display: none;
  }

  .site-header.is-menu-open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin-top: 14px;
    padding: 14px 8px 8px;
    border-top: 1px solid rgba(150, 119, 255, 0.2);
  }

  .site-header.is-menu-open .main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
  }

  .site-header.is-menu-open .main-nav a:hover,
  .site-header.is-menu-open .main-nav a.is-active {
    background: rgba(132, 77, 244, 0.12);
  }

  .site-header.is-menu-open .main-nav a::after {
    right: 12px;
    bottom: 5px;
    left: 12px;
  }

  .site-header.is-menu-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 8px 8px;
    border-top: 1px solid rgba(150, 119, 255, 0.16);
  }

  .site-header.is-menu-open .header-login {
    min-height: 42px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .site-header.is-menu-open .language-switch button {
    min-width: 58px;
  }

  .site-header.is-menu-open .language-switch button span {
    display: inline;
  }

  .header-actions .account-dropdown {
    top: calc(100% + 8px);
    left: 0;
  }
}

/* User panel tabs and account controls */
.user-panel {
  width: min(100%, 980px);
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.user-panel-head {
  margin-bottom: 24px;
}

.user-tabs {
  display: flex;
  gap: 6px;
  margin: 0 -4px 24px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(150, 119, 255, 0.24);
}

.user-tab {
  position: relative;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.user-tab::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.user-tab:hover,
.user-tab.is-active {
  color: var(--text);
}

.user-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.user-tab:focus-visible {
  border-radius: 5px;
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.user-tab-panel[hidden],
.license-code[hidden] {
  display: none;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.license-grid article {
  min-width: 0;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(150, 119, 255, 0.2);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(132, 77, 244, 0.07), rgba(2, 7, 19, 0.42));
}

.license-grid span,
.license-code span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.license-grid strong {
  display: block;
  margin-top: 13px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.license-grid .license-status {
  color: #ffb5b5;
}

.license-grid .license-status.is-active {
  color: #d6ff8d;
}

.license-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(237, 177, 61, 0.22);
  border-radius: 7px;
  background: rgba(237, 177, 61, 0.055);
}

.license-code code {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.transfer-code-limit {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.transfer-code-limit strong {
  color: var(--accent);
}

.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.license-actions .button,
.email-settings-form .button {
  width: auto;
}

.button:disabled {
  cursor: not-allowed;
}

.settings-heading {
  margin-bottom: 20px;
}

.settings-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.settings-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.email-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  max-width: 720px;
}

.email-settings-form .field {
  width: 100%;
  margin: 0;
}

.email-settings-form .field:first-child {
  grid-column: 1 / -1;
}

.email-settings-form input[readonly] {
  color: var(--muted);
  background: rgba(2, 7, 19, 0.48);
  cursor: default;
}

.email-settings-form .button {
  justify-self: start;
  margin-top: 2px;
}

.panel-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.email-settings-form .panel-status {
  align-self: center;
  margin: 2px 0 0;
}

.panel-status[data-type="success"] {
  color: #d6ff8d;
}

.panel-status[data-type="error"] {
  color: var(--danger);
}

@media (max-width: 900px) {
  .license-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .user-panel {
    padding: 20px 16px;
  }

  .user-panel-head .button,
  .license-actions .button,
  .email-settings-form .button {
    width: 100%;
  }

  .user-tabs {
    margin-bottom: 18px;
  }

  .user-tab {
    flex: 1 1 0;
    padding-inline: 10px;
  }

  .license-grid,
  .email-settings-form {
    grid-template-columns: 1fr;
  }

  .license-grid article {
    min-height: 96px;
    padding: 15px;
  }

  .license-code {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .email-settings-form .field:first-child {
    grid-column: auto;
  }

  .email-settings-form .panel-status {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle span {
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  :root {
    --header-offset: 126px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(1, 5, 8, 0.98) 0%, rgba(2, 8, 12, 0.82) 48%, rgba(2, 8, 12, 0.36) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.76)),
      url("assets/motherboard-bios-hero.png") 64% center / cover no-repeat;
  }

  .feature-grid,
  .split-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --header-offset: 124px;
    --surface-inset: 8px;
  }

  .site-header {
    padding: 16px;
  }

  .site-header::before {
    inset: 8px;
  }

  .brand-chip {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand small {
    display: none;
  }

  .language-switch {
    grid-template-columns: repeat(2, 38px);
  }

  .main-nav a {
    font-size: 14px;
  }

  .account-dropdown {
    top: calc(100% + 12px);
    right: -4px;
    min-width: 170px;
  }

  .hero {
    min-height: 100svh;
    padding: 92px 18px 24px;
  }

  .panel-deck {
    padding: 10px 0 18px;
  }

  .info-panel {
    inset: 10px var(--surface-inset) 18px;
  }

  .content-band {
    padding: 28px 18px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .action-band {
    gap: 24px;
  }

  .contact-form {
    width: 100%;
    padding: 18px;
  }

  .contact-actions .button {
    width: 100%;
  }

  .feature-grid article {
    padding: 22px;
  }

  .login-band {
    padding: 18px 14px;
  }

  .login-card {
    width: 100%;
    max-width: 520px;
  }

  .login-card-inner {
    height: 450px;
  }

  .login-card {
    min-height: 450px;
  }

  .login-face {
    padding: 18px;
  }

  .login-badge {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }

  .login-badge svg {
    width: 22px;
    height: 22px;
  }

  .login-row {
    flex-direction: column;
    align-items: stretch;
  }

  .login-copy,
  .field,
  .login-row {
    width: 100%;
  }

  .login-actions {
    margin-top: 6px;
  }

  .button {
    width: 100%;
  }

  .user-panel {
    padding: 24px 18px;
  }

  .user-panel-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .user-panel-head h2 {
    font-size: 28px;
  }

  .user-panel-head p {
    font-size: 14px;
  }

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

  .news-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* UBT2 visual system refresh */

/* User panel redesign: license-first workspace */
.user-panel {
  width: min(100%, 1120px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(237, 177, 61, 0.28);
  border-radius: 14px;
  background: #080d10;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.user-panel-head {
  align-items: center;
  margin-bottom: 26px;
}

.user-panel-head h2 {
  margin: 0;
  color: #f5eee4;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
}

.user-panel-account {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.user-tabs {
  gap: 18px;
  margin: 0 0 26px;
  padding: 0;
  border-bottom-color: rgba(237, 177, 61, 0.24);
}

.user-tab {
  min-height: 48px;
  padding: 0 2px;
  color: #a8aaab;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
}

.user-tab::after {
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.user-tab:hover,
.user-tab.is-active { color: var(--accent); }

.license-overview,
.settings-frame {
  border: 1px solid rgba(224, 218, 205, 0.24);
  border-radius: 9px;
  background: #0b1114;
}

.license-overview { padding: clamp(22px, 3.2vw, 38px); }

.license-state {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(224, 218, 205, 0.2);
}

.license-state-icon {
  display: grid;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid #b4d86d;
  border-radius: 50%;
  color: #b4d86d;
  font-size: 32px;
  font-weight: 700;
}

.license-state span,
.license-grid span,
.license-code span {
  color: #a8aaab;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.license-state strong {
  display: block;
  margin-top: 3px;
  color: #b4d86d;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}

.license-state .license-status:not(.is-active) { color: #ffaaa3; }
.license-state p { margin: 5px 0 0; color: #ced0d1; font-size: 16px; }

.license-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 30px;
}

.license-grid article {
  min-height: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid rgba(224, 218, 205, 0.2);
  background: transparent;
}

.license-grid article:first-child { padding-left: 0; }
.license-grid article:last-child { padding-right: 0; border-right: 0; }
.license-grid strong { margin-top: 10px; color: #f5eee4; font-size: 25px; }

.license-transfer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 26px;
  align-items: end;
  margin-top: 30px;
}

.license-code {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.license-code code {
  display: block;
  width: min(100%, 290px);
  padding: 13px 18px;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: #090e10;
  font-size: 24px;
  letter-spacing: 0.18em;
  text-align: center;
}

.transfer-code-limit { margin: 0; color: #ced0d1; }
.transfer-code-limit span { display: block; }
.transfer-code-limit strong { display: block; margin-top: 6px; color: #f5eee4; font-size: 27px; font-weight: 600; }

.license-actions { margin-top: 32px; }
.license-actions .button { min-height: 56px; padding-inline: 28px; font-size: 17px; }

.transfer-help {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(224, 218, 205, 0.18);
  color: #c9cbcc;
  font-size: 15px;
  line-height: 1.55;
}

.settings-frame { padding: clamp(22px, 3.2vw, 34px); }

@media (max-width: 700px) {
  .user-panel { padding: 22px 16px; border-radius: 10px; }
  .user-panel-head { align-items: flex-start; }
  .user-panel-head .button { width: auto; }
  .license-state { align-items: flex-start; gap: 14px; padding-bottom: 24px; }
  .license-state-icon { width: 45px; height: 45px; font-size: 24px; }
  .license-state p { font-size: 14px; }
  .license-grid { grid-template-columns: 1fr; gap: 16px; }
  .license-grid article { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid rgba(224, 218, 205, 0.2); }
  .license-grid article:last-child { padding-bottom: 0; border-bottom: 0; }
  .license-transfer { grid-template-columns: 1fr; gap: 20px; }
  .license-code code { width: 100%; }
  .license-actions .button { width: 100%; }
}
:root {
  --bg: #070a0c;
  --panel: rgba(10, 15, 18, 0.94);
  --panel-strong: rgba(10, 15, 18, 0.98);
  --text: #eef5f6;
  --muted: #9ba9ad;
  --line: rgba(75, 212, 235, 0.26);
  --accent: #25ccef;
  --accent-2: #9bdd24;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

body {
  background: #070a0c;
}

.site-header {
  width: min(100%, 1540px);
  padding: 22px clamp(22px, 4vw, 62px);
}

.site-header::before {
  inset: 9px clamp(10px, 2vw, 24px);
  border-color: rgba(135, 222, 238, 0.18);
  background: rgba(7, 10, 12, 0.86);
  box-shadow: none;
}

.brand {
  gap: 12px;
}

.brand-chip {
  width: 40px;
  height: 40px;
  border-width: 1px;
  box-shadow: none;
}

.brand-chip::before,
.brand-chip::after {
  border-width: 1px;
}

.brand-chip span {
  width: 13px;
  height: 13px;
}

.brand strong {
  font-size: 30px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand strong::first-letter {
  color: var(--accent);
}

.main-nav {
  gap: clamp(20px, 3.2vw, 52px);
}

.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.language-switch {
  gap: 0;
  padding: 2px;
  border-color: rgba(135, 222, 238, 0.3);
  background: transparent;
}

.language-switch button {
  height: 30px;
  font-size: 12px;
}

.hero {
  align-items: end;
  padding: clamp(120px, 15vh, 170px) clamp(22px, 7vw, 110px) clamp(60px, 10vh, 120px);
}

.hero-bg {
  background:
    linear-gradient(90deg, #070a0c 0%, rgba(7, 10, 12, 0.93) 29%, rgba(7, 10, 12, 0.24) 66%, rgba(7, 10, 12, 0.66) 100%),
    url("assets/motherboard-bios-hero.png") 72% center / cover no-repeat;
}

.hero::after {
  height: 20%;
  background: linear-gradient(180deg, transparent, #070a0c);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 640px);
}

.hero h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(54px, 7.8vw, 112px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero h1::first-line {
  color: var(--text);
}

.hero-content > p:not(.hero-support) {
  max-width: 430px;
  margin: 26px 0 0;
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.45;
}

.hero-support {
  max-width: 490px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

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

.button {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button-primary {
  background: var(--accent);
}

.button-secondary {
  color: var(--accent-2);
  border-color: rgba(157, 221, 36, 0.78);
  background: transparent;
}

.info-panel {
  border-color: rgba(135, 222, 238, 0.2);
  background:
    linear-gradient(135deg, rgba(11, 16, 19, 0.98), rgba(6, 10, 12, 0.99)),
    none;
  box-shadow: none;
}

.content-band {
  padding: clamp(32px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 750;
  letter-spacing: -0.055em;
}

.section-heading p,
.action-band p,
.contact-copy p {
  max-width: 700px;
  font-size: 17px;
  line-height: 1.65;
}

.feature-grid {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feature-grid article {
  min-height: 250px;
  padding: 28px 28px 20px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
}

.feature-grid article:first-child {
  border-left: 0;
}

.feature-grid h3 {
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 0.02em;
}

.feature-grid h3::before {
  content: "0" counter(feature) "  ";
  color: var(--accent);
}

.feature-grid {
  counter-reset: feature;
}

.feature-grid article {
  counter-increment: feature;
}

.feature-grid p {
  font-size: 15px;
}

.news-list {
  border-top-color: var(--line);
}

.news-list article {
  padding: 26px 0;
  border-bottom-color: rgba(135, 222, 238, 0.16);
}

.news-list time {
  color: var(--accent);
  font-size: 14px;
}

.action-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
}

.contact-band {
  gap: clamp(40px, 8vw, 120px);
}

.contact-copy {
  padding-top: 6px;
}

.contact-email {
  font-size: 18px;
}

.contact-form,
.login-face,
.user-panel {
  border-color: rgba(135, 222, 238, 0.22);
  background: rgba(5, 9, 11, 0.54);
  box-shadow: none;
}

.contact-form {
  padding: 28px;
}

.field input,
.contact-form textarea {
  border-color: rgba(135, 222, 238, 0.24);
  border-radius: 0;
  background: rgba(5, 9, 11, 0.82);
}

.login-card,
.login-card-inner {
  min-height: 500px;
  height: 500px;
}

.login-face {
  padding: 32px;
}

.login-badge {
  border-color: rgba(37, 204, 239, 0.45);
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 980px) {
  .hero {
    padding-inline: 38px;
  }

  .action-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .feature-grid article:first-child {
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 16px;
  }

  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .hero {
    align-items: center;
    padding: 160px 22px 70px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(7, 10, 12, 0.96), rgba(7, 10, 12, 0.46)),
      url("assets/motherboard-bios-hero.png") 68% center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .content-band {
    padding: 28px 20px;
  }

  .section-heading {
    padding-bottom: 20px;
  }

  .feature-grid article,
  .feature-grid article:first-child {
    min-height: 0;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-form {
    padding: 18px;
  }

  .login-card,
  .login-card-inner {
    min-height: 470px;
    height: 470px;
  }
}


/* UBT2 violet / amber identity */
:root {
  --bg: #030817;
  --panel: rgba(5, 12, 29, 0.95);
  --panel-strong: rgba(5, 11, 27, 0.985);
  --text: #f5f3ef;
  --muted: #a9adbf;
  --line: rgba(150, 119, 255, 0.28);
  --accent: #844df4;
  --accent-strong: #a873ff;
  --accent-2: #ffad18;
  --danger: #ff6c7c;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

html,
body {
  background: #030817;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(132, 77, 244, 0.035) 48% 48.15%, transparent 48.15% 100%),
    radial-gradient(circle at 80% 18%, rgba(89, 51, 190, 0.13), transparent 28%);
}

.site-header {
  width: min(100%, 1600px);
  grid-template-columns: minmax(220px, auto) 1fr auto;
  padding: 18px clamp(22px, 4vw, 64px);
}

.site-header::before {
  inset: 8px clamp(10px, 2vw, 22px);
  border-color: rgba(150, 119, 255, 0.2);
  background: rgba(3, 8, 23, 0.9);
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.28);
}

.brand {
  gap: 10px;
}

.brand-mark {
  display: block;
  width: 68px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(132, 77, 244, 0.2));
}

.brand strong {
  color: var(--text);
  font-size: 26px;
  font-style: normal;
  letter-spacing: 0.02em;
}

.brand small {
  color: #8f93a7;
  letter-spacing: 0.14em;
}

.main-nav a {
  color: rgba(245, 243, 239, 0.82);
  font-size: 13px;
  letter-spacing: 0.07em;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent-strong);
}

.main-nav a::after {
  background: var(--accent-strong);
}

.language-switch {
  border-color: rgba(150, 119, 255, 0.28);
  background: rgba(132, 77, 244, 0.05);
}

.language-switch button.is-active {
  color: #fff;
  background: var(--accent);
}

.account-dropdown {
  border-color: rgba(150, 119, 255, 0.3);
  background: #050b1b;
}

.account-dropdown a:hover,
.account-dropdown button:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:focus-visible {
  color: var(--accent-strong);
  background: rgba(132, 77, 244, 0.12);
}

.hero {
  padding: clamp(126px, 15vh, 170px) clamp(24px, 7vw, 112px) clamp(60px, 10vh, 112px);
}

.hero-bg {
  background: url("assets/ubt2-hero-v2.png?v=20260718-1") center / cover no-repeat;
}

.hero::after {
  height: 18%;
  background: linear-gradient(180deg, transparent, #030817);
}

.hero-content {
  width: min(100%, 660px);
}

.hero h1 {
  max-width: 630px;
  font-size: clamp(58px, 7.2vw, 108px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-transform: none;
}

.hero h1::after {
  content: "";
  display: block;
  width: 180px;
  height: 2px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--accent-2), rgba(255, 173, 24, 0));
}

.hero-content > p:not(.hero-support) {
  max-width: 520px;
  margin-top: 26px;
  color: #e8e7e3;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-support {
  max-width: 520px;
  color: #a9adbf;
}

.button {
  position: relative;
  min-height: 48px;
  border-radius: 6px;
  letter-spacing: 0.055em;
  overflow: hidden;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #6a32dc, #995ef8);
}

.button-primary:hover {
  box-shadow: 0 14px 28px rgba(104, 51, 217, 0.28);
}

.button-secondary {
  color: var(--accent-2);
  border-color: rgba(255, 173, 24, 0.72);
  background: rgba(3, 8, 23, 0.54);
}

.panel-deck {
  width: min(100%, 1600px);
}

.info-panel {
  border-color: rgba(150, 119, 255, 0.24);
  border-radius: 9px;
  background:
    linear-gradient(120deg, rgba(7, 15, 35, 0.99), rgba(3, 8, 23, 0.985)),
    none;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

.info-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background:
    linear-gradient(135deg, transparent 0 78%, rgba(132, 77, 244, 0.08) 78% 78.15%, transparent 78.15%),
    radial-gradient(circle at 88% 12%, rgba(132, 77, 244, 0.14), transparent 24%);
}

.section-heading {
  border-bottom-color: rgba(150, 119, 255, 0.34);
}

h2 {
  color: var(--text);
  font-weight: 720;
}

.feature-grid article {
  border-left-color: rgba(150, 119, 255, 0.22);
}

.feature-grid h3,
.feature-grid h3::before,
.news-list time,
.contact-email,
.forgot-link {
  color: var(--accent-strong);
}

.feature-grid h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 14px;
  background: var(--accent-2);
}

.news-list {
  border-top-color: rgba(150, 119, 255, 0.3);
}

.news-list article {
  border-bottom-color: rgba(150, 119, 255, 0.17);
}

.action-band {
  grid-template-columns: minmax(240px, 0.7fr) minmax(300px, 1fr) auto;
  align-items: center;
}

.buy-media {
  position: relative;
  align-self: stretch;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(150, 119, 255, 0.25);
  border-radius: 8px;
  background: #050b1b;
}

.buy-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 70px rgba(3, 8, 23, 0.35);
  pointer-events: none;
}

.buy-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form,
.login-face,
.user-panel {
  border-color: rgba(150, 119, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 10, 26, 0.82);
}

.contact-form {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.field input,
.contact-form textarea {
  border-color: rgba(150, 119, 255, 0.28);
  border-radius: 5px;
  background: rgba(2, 7, 19, 0.86);
}

.field input:focus,
.contact-form textarea:focus {
  border-color: rgba(168, 115, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(132, 77, 244, 0.16);
}

.login-badge {
  border-color: rgba(132, 77, 244, 0.58);
  border-radius: 8px;
  color: var(--accent-strong);
  background: rgba(132, 77, 244, 0.08);
}

.login-message[data-type="success"],
.contact-status[data-type="success"] {
  color: #d6ff8d;
}

.login-message[data-type="error"],
.contact-status[data-type="error"] {
  color: var(--danger);
}

.user-grid article {
  border-color: rgba(150, 119, 255, 0.2);
  background: rgba(132, 77, 244, 0.045);
}

@media (max-width: 1100px) {
  .action-band {
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  }

  .action-band > .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .action-band {
    grid-template-columns: 1fr;
  }

  .action-band > .button {
    grid-column: auto;
  }

  .buy-media {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .brand-mark {
    width: 54px;
    height: 34px;
  }

  .brand strong {
    font-size: 22px;
  }

  .hero {
    padding: 160px 22px 68px;
  }

  .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(3, 8, 23, 0.94), rgba(3, 8, 23, 0.34)),
      url("assets/ubt2-hero-v2.png?v=20260718-1");
    background-position: 64% center;
  }

  .hero h1 {
    font-size: clamp(50px, 14vw, 70px);
  }

  .buy-media {
    min-height: 210px;
  }
}


/* Header account and language controls */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 14px;
}

.header-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 4px;
  color: rgba(245, 243, 239, 0.86);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-login::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 1px;
  left: 4px;
  height: 2px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.header-login:hover,
.header-login.is-active,
.account-menu.is-open .header-login {
  color: var(--accent-strong);
}

.header-login:hover::after,
.header-login.is-active::after,
.account-menu.is-open .header-login::after {
  transform: scaleX(1);
}

.header-actions .account-dropdown {
  right: auto;
  left: 0;
}

.language-switch {
  display: flex;
  grid-template-columns: none;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 66px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 5px;
  color: #a9adbf;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-switch button:hover {
  color: #fff;
  background: rgba(132, 77, 244, 0.1);
}

.language-switch button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(106, 50, 220, 0.96), rgba(153, 94, 248, 0.96));
  box-shadow: 0 6px 18px rgba(106, 50, 220, 0.2);
}

.language-flag {
  display: block;
  width: 22px;
  height: 15px;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-login {
    font-size: 11px;
  }

  .language-switch button {
    min-width: 42px;
    padding: 0 8px;
  }

  .language-switch button span {
    display: none;
  }
}

/* UBT2 image cards and logo v3 */
.brand-mark {
  width: clamp(138px, 12vw, 176px);
  height: auto;
  aspect-ratio: 1823 / 863;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(132, 77, 244, 0.2));
}

.ubt2-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(28px, 4vw, 52px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ubt2-card-grid .ubt2-card,
.ubt2-card-grid .ubt2-card:first-child {
  position: relative;
  display: block;
  min-height: clamp(260px, 22vw, 330px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(150, 119, 255, 0.58);
  border-radius: 18px;
  background: #050b1c;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  perspective: 1200px;
  transform: translateZ(0);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ubt2-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.ubt2-card.is-flipped .ubt2-card-inner {
  transform: rotateY(180deg);
}

.ubt2-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  padding: clamp(24px, 2.4vw, 36px);
  overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ubt2-card-front {
  isolation: isolate;
  align-items: flex-end;
}

.ubt2-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(2, 7, 19, 0.78) 0%,
    rgba(2, 7, 19, 0.62) 30%,
    rgba(2, 7, 19, 0.34) 58%,
    rgba(2, 7, 19, 0.06) 100%
  );
}

.ubt2-card-back {
  align-items: center;
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 86% 18%, rgba(132, 77, 244, 0.24), transparent 34%),
    linear-gradient(135deg, #0a1430, #050a1b 72%);
}

.ubt2-card-grid .ubt2-card:hover {
  border-color: rgba(255, 173, 24, 0.72);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.42), 0 0 28px rgba(132, 77, 244, 0.12);
  transform: translateY(-4px);
}

.ubt2-card-grid .ubt2-card:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.ubt2-card-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  filter: brightness(1.12) saturate(1.06);
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 220ms ease;
}

.ubt2-card:hover .ubt2-card-image {
  transform: scale(1.035);
}

.ubt2-card-content {
  width: min(88%, 340px);
  position: relative;
  z-index: 1;
}

.ubt2-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ubt2-card-hint::after {
  content: "↗";
  color: var(--accent-2);
  font-size: 16px;
}

.ubt2-card-back-content {
  width: min(100%, 340px);
}

.ubt2-card-topic {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ubt2-card-back strong {
  display: block;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.ubt2-card-grid .ubt2-card h3 {
  max-width: 10ch;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(25px, 2.2vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ubt2-card-grid .ubt2-card h3::before {
  display: none;
}

.ubt2-card-grid .ubt2-card h3::after {
  width: 58px;
  height: 3px;
  margin-top: 17px;
  background: linear-gradient(90deg, var(--accent-2) 0 54%, var(--accent-strong) 54%);
}

.ubt2-card-grid .ubt2-card p {
  margin: 0;
  color: rgba(245, 243, 239, 0.78);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .ubt2-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ubt2-card-grid .ubt2-card:last-child {
    grid-column: 1 / -1;
    min-height: 290px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-offset: 158px;
  }

  .brand-mark {
    width: 126px;
  }

  .ubt2-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 26px;
  }

  .ubt2-card-grid .ubt2-card,
  .ubt2-card-grid .ubt2-card:first-child,
  .ubt2-card-grid .ubt2-card:last-child {
    grid-column: auto;
    min-height: 270px;
    padding: 24px;
    border-top: 1px solid rgba(150, 119, 255, 0.58);
  }

  .ubt2-card-front::after {
    background: linear-gradient(
      90deg,
      rgba(2, 7, 19, 0.82) 0%,
      rgba(2, 7, 19, 0.66) 42%,
      rgba(2, 7, 19, 0.1) 100%
    );
  }

  .ubt2-card-content {
    width: min(86%, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ubt2-card-grid .ubt2-card,
  .ubt2-card-inner,
  .ubt2-card-image {
    transition: none;
  }
}

/* Final mobile header overrides */
@media (max-width: 680px) {
  :root {
    --header-offset: 92px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 14px;
    padding: 16px;
  }

  .site-header .main-nav,
  .site-header .header-actions {
    display: none;
  }

  .site-header.is-menu-open .main-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 2px;
    margin-top: 14px;
    padding: 14px 8px 8px;
    overflow: visible;
    border-top: 1px solid rgba(150, 119, 255, 0.2);
  }

  .site-header.is-menu-open .main-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
  }

  .site-header.is-menu-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 8px 8px;
    border-top: 1px solid rgba(150, 119, 255, 0.16);
  }

  .site-header.is-menu-open .header-login {
    min-height: 42px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .site-header.is-menu-open .language-switch button {
    min-width: 58px;
  }

  .site-header.is-menu-open .language-switch button span {
    display: inline;
  }
}

/* Header typography and spacing polish */
.site-header {
  font-family: "Liberation Sans Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;
}

.site-header::before {
  border-color: rgba(158, 128, 255, 0.28);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(3, 8, 23, 0.97), rgba(7, 12, 31, 0.93));
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

.main-nav a,
.header-login,
.language-switch button {
  font-family: inherit;
}

.main-nav a {
  font-size: 14px;
  letter-spacing: 0.09em;
}

.header-actions {
  gap: 20px;
}

.header-login {
  font-size: 14px;
  letter-spacing: 0.09em;
}

@media (max-width: 680px) {
  .site-header.is-menu-open .main-nav a,
  .site-header.is-menu-open .header-login {
    font-size: 13px;
  }

  .site-header.is-menu-open .header-actions {
    justify-content: flex-end;
    gap: 20px;
  }
}

/* UBT2 card flip artwork */
.ami-bios-card .ubt2-card-front {
  background:
    linear-gradient(135deg, rgba(7, 15, 34, 0.94), rgba(34, 16, 67, 0.9)),
    radial-gradient(circle at 22% 18%, rgba(255, 189, 77, 0.22), transparent 30%);
}

.ami-bios-visual {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 28px;
}

.ami-bios-logo {
  display: block;
  max-width: min(74%, 240px);
  max-height: 54%;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.4));
}

.ami-bios-fallback {
  color: #f3bd5d;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  text-align: center;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.6);
}

.ubt2-card-grid .ubt2-card {
  overflow: visible;
}

.ubt2-card-grid .ubt2-card.is-flipped {
  z-index: 10;
}

.ubt2-card-front {
  overflow: hidden;
}

.ubt2-card-back {
  isolation: isolate;
  overflow: visible;
}

.ubt2-card-back::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0 35%, rgba(3, 8, 23, 0.44) 58%, rgba(3, 8, 23, 0.93) 100%),
    linear-gradient(90deg, transparent 0 28%, rgba(3, 8, 23, 0.2) 55%, rgba(3, 8, 23, 0.62) 100%);
}

.ubt2-card-back-art {
  position: absolute;
  top: -28px;
  left: -24px;
  z-index: 3;
  width: 58%;
  height: 66%;
  overflow: hidden;
  border: 1px solid rgba(255, 173, 24, 0.55);
  border-radius: 14px;
  background: #050b1c;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.52), 0 0 30px rgba(132, 77, 244, 0.16);
  opacity: 0;
  transform: translate(58%, 42%) scale(0.68) rotate(-3deg);
  transform-origin: top left;
  transition:
    transform 640ms cubic-bezier(0.18, 0.82, 0.2, 1),
    opacity 260ms ease 110ms,
    box-shadow 500ms ease;
}

.ubt2-card-back-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(132, 77, 244, 0.08), transparent 48%, rgba(255, 173, 24, 0.09));
}

.ubt2-card-back-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.1) saturate(1.08) contrast(1.03);
}

.ubt2-card.is-flipped .ubt2-card-back-art {
  opacity: 1;
  transform: translate(0, 0) scale(1.08) rotate(-3deg);
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.62), 0 0 36px rgba(132, 77, 244, 0.22);
}

.ubt2-card-content,
.ubt2-card-back-content {
  transition: opacity 150ms ease, transform 240ms ease;
}

.ubt2-card-content {
  transition-delay: 360ms;
}

.ubt2-card.is-flipped .ubt2-card-content {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition-delay: 0ms;
}

.ubt2-card-back-content {
  position: relative;
  z-index: 4;
  align-self: flex-end;
  width: min(76%, 350px);
  margin-left: auto;
  padding: 18px 16px 12px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(14px);
  background: linear-gradient(110deg, rgba(3, 8, 23, 0.76), rgba(3, 8, 23, 0.3));
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.ubt2-card.is-flipped .ubt2-card-back-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 410ms;
}

.ubt2-card.is-flipped .ubt2-card-image {
  opacity: 0;
  transform: translate(-18%, -18%) scale(1.16);
  filter: brightness(1.2) saturate(1.1);
}

.ubt2-card-image {
  transition:
    transform 640ms cubic-bezier(0.18, 0.82, 0.2, 1),
    opacity 220ms ease,
    filter 220ms ease;
}

@media (max-width: 680px) {
  .ubt2-card-back-art {
    top: -16px;
    left: -14px;
    width: 60%;
    height: 58%;
    border-radius: 11px;
  }

  .ubt2-card-back-content {
    width: 92%;
    padding: 14px 12px 8px;
  }

  .ubt2-card-back strong {
    margin-bottom: 12px;
    font-size: 38px;
  }

  .ubt2-card-grid .ubt2-card p {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ubt2-card-back-art,
  .ubt2-card-content,
  .ubt2-card-back-content,
  .ubt2-card-image {
    transition: none;
  }
}

/* Corrected generated 3D artwork for card backs */
.ubt2-card-back-art {
  top: -28px;
  left: -22px;
  width: 64%;
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
  transform: perspective(900px) translate3d(58%, 42%, -40px) scale(0.5) rotateX(14deg) rotateY(-18deg) rotateZ(-8deg);
  transform-origin: 42% 42%;
  transition:
    transform 720ms cubic-bezier(0.16, 0.84, 0.2, 1),
    opacity 220ms ease 110ms,
    filter 500ms ease;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.2));
}

.ubt2-card-back-art::after {
  display: block;
  inset: 28% 17% 17% 24%;
  z-index: -1;
  border-radius: 50%;
  opacity: 0.62;
  background: radial-gradient(circle, rgba(132, 77, 244, 0.42), rgba(255, 173, 24, 0.12) 40%, transparent 72%);
  filter: blur(22px);
  transform: translate3d(8px, 18px, -30px);
}

.ubt2-card-back-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 20px rgba(0, 0, 0, 0.46));
  transform: translateZ(0);
  will-change: transform;
}

.ubt2-card.is-flipped .ubt2-card-back-art {
  opacity: 1;
  transform: perspective(760px) translate3d(0, 0, 70px) scale(1.02) rotateX(9deg) rotateY(-11deg) rotateZ(-3deg);
  box-shadow: none;
  filter: drop-shadow(0 28px 24px rgba(0, 0, 0, 0.56));
}

.ubt2-card.is-flipped .ubt2-card-back-art img {
  animation: ubt2-card-art-float 4.2s ease-in-out 760ms infinite;
}

@keyframes ubt2-card-art-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }

  50% {
    transform: translate3d(0, -7px, 18px) rotateZ(0.7deg);
  }
}

@media (max-width: 680px) {
  .ubt2-card-back-art {
    top: -16px;
    left: -12px;
    width: 68%;
    height: auto;
  }

  .ubt2-card.is-flipped .ubt2-card-back-art {
    transform: perspective(680px) translate3d(0, 0, 52px) scale(1) rotateX(8deg) rotateY(-10deg) rotateZ(-3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ubt2-card-back-art {
    transition: none;
  }

  .ubt2-card.is-flipped .ubt2-card-back-art img {
    animation: none;
  }
}

/* Card-back artwork removed; restore the clean text reverse */
.ubt2-card-grid .ubt2-card,
.ubt2-card-grid .ubt2-card.is-flipped {
  z-index: auto;
  overflow: hidden;
}

.ubt2-card-back {
  overflow: hidden;
}

.ubt2-card-back::after {
  display: none;
}

.ubt2-card-back-content {
  align-self: center;
  width: min(100%, 340px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Full-access user panel */
.user-tab[hidden] {
  display: none;
}

.online-placeholder {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 190px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(150, 119, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 22%, rgba(132, 77, 244, 0.16), transparent 34%),
    rgba(2, 7, 19, 0.48);
}

.online-placeholder-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 1px solid rgba(255, 173, 24, 0.48);
  border-radius: 16px;
  color: var(--accent-2);
  background: rgba(255, 173, 24, 0.06);
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 0 24px rgba(255, 173, 24, 0.05);
}

.online-placeholder h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
}

.online-placeholder p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.online-workspace {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(150, 119, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 22%, rgba(132, 77, 244, 0.16), transparent 34%),
    rgba(2, 7, 19, 0.48);
}

.online-workspace h2,
.online-workspace p { margin: 0; }

.online-workspace > div > p { margin-top: 9px; color: var(--muted); line-height: 1.6; }

.online-file-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.online-file-button { cursor: pointer; }
.online-file-button.is-loading { cursor: wait; opacity: 0.55; pointer-events: none; }

.online-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.online-progress-copy { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; color: var(--muted); font-size: 14px; }
.online-progress-copy strong { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.online-progress-track { position: relative; display: grid; place-items: center; }
.online-progress progress { grid-area: 1 / 1; width: 100%; height: 22px; accent-color: var(--accent-2); }
.online-progress-track strong { position: relative; z-index: 2; grid-area: 1 / 1; align-self: center; color: #090b12; font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; text-shadow: none; }
.online-progress-track::after { position: absolute; z-index: 1; inset: 2px auto 2px 0; width: var(--progress-width, 0%); border-radius: 3px; background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.12) 43%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.12) 57%, transparent 66%); background-size: 180% 100%; content: ""; pointer-events: none; }
.online-progress.is-uploading .online-progress-track::after { animation: online-progress-shine 1.2s linear infinite; }
@keyframes online-progress-shine { to { background-position: -180% 0; } }
.online-memo-wrap { position: relative; }
.online-memo-pending { position: absolute; z-index: 2; top: -4px; left: 8px; transform: translateY(-100%); padding: 2px 6px; border-radius: 4px; color: var(--accent-2); background: rgba(4, 10, 26, 0.88); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.online-memo { box-sizing: border-box; width: 100%; min-height: 160px; resize: vertical; padding: 12px; border: 1px solid rgba(150, 119, 255, 0.24); border-radius: 7px; outline: none; color: var(--muted); background: rgba(4, 10, 26, 0.42); font: inherit; line-height: 1.5; }
.online-memo[readonly] { cursor: default; }
.online-memo[data-type="success"] { color: #7ce1a2; }
.online-memo[data-type="error"] { color: #ff8b8b; }

.online-bios-card { display: block; width: 70px; min-height: 70px; margin: 0 0 5px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; perspective: 900px; text-align: left; }
.online-bios-card-inner { position: relative; display: block; min-height: 70px; transform-style: preserve-3d; transition: transform 480ms ease; }
.online-bios-card.is-flipped .online-bios-card-inner { transform: rotateY(180deg); }
.online-bios-card-face { position: absolute; inset: 0; display: grid; overflow: hidden; min-height: 70px; border: 1px solid rgba(150, 119, 255, 0.3); border-radius: 9px; background: rgba(4, 10, 26, 0.58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); backface-visibility: hidden; }
.online-bios-card-front { place-items: center; }
.online-bios-card-image { width: 100%; height: 100%; object-fit: cover; background: #f4f7fa; }
.online-bios-card.is-unrecognized .online-bios-card-image { display: none; }
.online-bios-card.is-unrecognized .online-bios-card-front::after { color: var(--muted); content: "N/A"; font-size: 16px; font-weight: 800; }
.online-bios-card-back { place-content: center; gap: 4px; padding: 16px; transform: rotateY(180deg); text-align: center; }
.online-bios-card-back strong { color: var(--text); font-size: 10px; }
.online-bios-card-back em { color: var(--accent-2); font-size: 10px; font-style: normal; font-weight: 800; }

.online-file-info { display: grid; grid-template-columns: repeat(2, minmax(110px, 190px)); gap: 8px; margin: 0; }
.online-file-info div { padding: 8px 10px; border: 1px solid rgba(150, 119, 255, 0.2); border-radius: 6px; background: rgba(4, 10, 26, 0.42); }
.online-file-info dt { color: var(--muted); font-size: 11px; }
.online-file-info dd { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--text); font-size: 13px; font-weight: 700; }

@media (max-width: 560px) {
  .online-file-controls { align-items: stretch; flex-direction: column; }
  .online-file-info { grid-template-columns: 1fr; }
  .online-progress-copy { align-items: flex-start; flex-direction: column; gap: 3px; }
  .online-bios-card { width: 70px; }
}

@media (max-width: 560px) {
  .online-placeholder {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
  }

  .online-placeholder-icon {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 12px;
    font-size: 18px;
  }
}
