:root {
  --bg: #f7f7f4;
  --panel: rgba(247, 249, 252, 0.84);
  --panel-strong: rgba(250, 252, 255, 0.9);
  --panel-border: rgba(213, 221, 229, 0.78);
  --ink: #181c21;
  --muted: #6f7783;
  --blue: #2b9cff;
  --blue-deep: #147cf0;
  --red: #c93642;
  --green: #2ea364;
  --shadow: 0 16px 34px rgba(18, 38, 63, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1280px, calc(100vw - 40px));
  font-family: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  position: relative;
  background:
    radial-gradient(circle at 18% 16%, rgba(43, 156, 255, 0.1), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(201, 54, 66, 0.06), transparent 20%),
    linear-gradient(180deg, #fcfcfd 0%, #eef2f6 66%, #e7ebef 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(36px);
  opacity: 0.5;
}

.ambient-a {
  top: 120px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(43, 156, 255, 0.1);
}

.ambient-b {
  right: 0;
  bottom: 80px;
  width: 320px;
  height: 320px;
  border-radius: 42% 58% 60% 40%;
  background: rgba(201, 54, 66, 0.08);
}

.glass-card,
.secondary-panel,
.summary-card,
.hero-banner,
.brand-stage-card,
.auth-popup,
.topbar,
.profile-chip {
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.topbar {
  position: sticky;
  top: 20px;
  z-index: 20;
  width: var(--content-width);
  margin: 24px auto 0;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(242, 246, 250, 0.8);
  border: 1px solid rgba(205, 214, 223, 0.82);
  border-radius: 26px;
  box-shadow: 0 16px 34px rgba(18, 38, 63, 0.07);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-left {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-right {
  flex: 0 0 auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(20, 135, 245, 0.2);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, filter 220ms ease;
}

.brand-link:hover .brand-logo,
.brand-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 22px 52px rgba(20, 135, 245, 0.24);
  filter: saturate(1.04);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 156px;
  white-space: nowrap;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(206, 214, 222, 0.9);
  background: rgba(250, 251, 253, 0.9);
  color: #59616d;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(201, 54, 66, 0.95);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.96);
  color: #1c2430;
  transform: translateY(-2px);
  border-color: rgba(192, 204, 216, 0.96);
  box-shadow: 0 8px 18px rgba(18, 38, 63, 0.06);
}

.nav-link.is-active {
  background: rgba(236, 245, 255, 0.98);
  color: var(--blue-deep);
  border-color: rgba(188, 217, 244, 0.98);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  background: rgba(247, 249, 252, 0.88);
  border-radius: 18px;
  border: 1px solid rgba(208, 216, 224, 0.86);
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(18, 38, 63, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

button.profile-chip {
  appearance: none;
  -webkit-appearance: none;
}

.profile-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.98);
}

.profile-chip:focus-visible {
  outline: 2px solid rgba(20, 135, 245, 0.35);
  outline-offset: 2px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #1487f5 0%, #0b63d8 100%);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, filter 220ms ease;
}

.profile-chip:hover .avatar,
.profile-card-head:hover .profile-avatar {
  transform: scale(1.06);
  filter: saturate(1.05);
  box-shadow: 0 14px 32px rgba(20, 135, 245, 0.18);
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1;
}

.profile-meta strong {
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-role {
  font-size: 0.82rem;
  white-space: nowrap;
}

.profile-card {
  display: grid;
  gap: 18px;
}

.profile-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(241, 246, 252, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1rem;
}

.profile-card-copy {
  display: grid;
  gap: 4px;
}

.profile-card-copy strong {
  font-size: 1rem;
}

.profile-card-copy p {
  margin: 0;
  color: var(--muted);
}

.profile-card-grid {
  display: grid;
  gap: 12px;
}

.profile-info-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-info-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

.role-badge,
.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-client {
  color: var(--blue);
  background: rgba(20, 135, 245, 0.12);
}

.badge-admin,
.badge-founder {
  color: var(--red);
  background: rgba(201, 54, 66, 0.11);
}

.badge-admin-limited {
  color: var(--red);
  background: rgba(201, 54, 66, 0.11);
}

.badge-super-admin {
  color: #7b45d6;
  background: rgba(123, 69, 214, 0.14);
}

.chip {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, background-color 180ms ease;
}

.hero-banner-meta .chip:hover,
.super-admin-strip .chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.status-pill.active {
  color: var(--green);
  background: rgba(46, 163, 100, 0.12);
}

.status-pill.inactive {
  color: var(--red);
  background: rgba(201, 54, 66, 0.12);
}

.status-pill.warning {
  color: #7b45d6;
  background: rgba(123, 69, 214, 0.16);
}

.ghost-button,
.primary-button,
.mini-button {
  border: 1px solid rgba(212, 220, 228, 0.96);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, filter 220ms ease;
}

.ghost-button {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(18, 38, 63, 0.05);
}

.ghost-button:hover,
.primary-button:hover,
.mini-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 28px rgba(18, 38, 63, 0.08);
  filter: saturate(1.04);
}

.ghost-button:active,
.primary-button:active,
.mini-button:active {
  transform: translateY(0) scale(0.99);
}

.primary-button {
  padding: 15px 18px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(180deg, rgba(76, 184, 255, 0.98), rgba(31, 138, 248, 0.98));
  border-color: rgba(132, 205, 255, 0.92);
  box-shadow: 0 12px 24px rgba(43, 156, 255, 0.18);
}

.primary-button-alert {
  background: linear-gradient(180deg, rgba(31, 39, 48, 0.96), rgba(18, 24, 31, 0.96));
  border-color: rgba(21, 27, 34, 0.42);
  box-shadow: 0 12px 28px rgba(18, 27, 36, 0.16);
}

.mini-button {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--ink);
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 8px 18px rgba(18, 38, 63, 0.04);
}

.mini-button-danger {
  color: var(--red);
  background: rgba(201, 54, 66, 0.12);
}

.mini-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-page {
  display: grid;
  min-height: 100vh;
}

.auth-page .brand-stage-card,
.auth-page .auth-card {
  background: rgba(248, 250, 253, 0.9);
  border: 1px solid rgba(218, 226, 234, 0.82);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.brand-stage-card,
.auth-card,
.secondary-panel,
.hero-banner,
.summary-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.brand-stage-card,
.auth-card,
.secondary-panel,
.hero-banner {
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.brand-stage-card {
  min-height: 100%;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.hero-logo {
  width: 148px;
  height: 148px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 28px 55px rgba(18, 38, 63, 0.12));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.hero-logo-main {
  width: 184px;
  height: 184px;
}

.hero-logo-admin {
  width: 196px;
  height: 196px;
}

.brand-stage-card:hover .hero-logo,
.hero-banner:hover .hero-logo {
  transform: scale(1.04);
  filter: drop-shadow(0 32px 62px rgba(20, 135, 245, 0.16));
}

.brand-stage h1,
.auth-card h2,
.hero-banner h1,
.secondary-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-card h2,
.secondary-panel h2 {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.hero-text,
.card-heading p,
.hero-banner p,
.rich-copy,
.summary-card p,
.data-row p,
.log-row p,
.field-footnote,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.auth-stage {
  display: flex;
}

.auth-card {
  width: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.card-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.security-checklist {
  display: grid;
  gap: 12px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(223, 229, 236, 0.82);
  background: rgba(250, 251, 253, 0.92);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.check-card:hover {
  border-color: rgba(190, 202, 214, 0.96);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.check-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.check-card span {
  font-size: 0.92rem;
  line-height: 1.55;
}

.check-card-disabled {
  align-items: center;
  border-style: dashed;
  color: var(--muted);
  background: linear-gradient(145deg, rgba(252, 252, 252, 0.86), rgba(239, 242, 247, 0.62));
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.inline-form input,
.inline-form select,
.cloud-view-form select,
.contact-form input,
.contact-form textarea,
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 253, 0.72));
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.inline-form select,
.cloud-view-form select,
.modal-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5f6a76 50%),
    linear-gradient(135deg, #5f6a76 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input:focus,
.inline-form input:focus,
.inline-form select:focus,
.cloud-view-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: rgba(20, 135, 245, 0.3);
  box-shadow: 0 0 0 6px rgba(20, 135, 245, 0.08);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-notice {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.form-notice-success {
  color: var(--green);
  background: rgba(46, 163, 100, 0.1);
}

.form-notice-error {
  color: var(--red);
  background: rgba(201, 54, 66, 0.1);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
  z-index: 40;
}

.auth-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.auth-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 20, 0);
  transition: background 700ms ease;
}

.auth-popup {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: 28px 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 252, 0.72));
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  opacity: 0;
  transform: scale(0.82) translateY(8px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.auth-popup-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.popup-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  transition: transform 200ms ease, background-color 240ms ease;
  flex-shrink: 0;
}

.popup-copy {
  flex: 1;
  min-width: 0;
}

.popup-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  transition: opacity 250ms ease;
}

.popup-subtitle {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--muted);
  transition: opacity 200ms ease;
}

.spinner-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.popup-track {
  position: relative;
  width: 100%;
  height: 6px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(24, 28, 33, 0.08);
}

.popup-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transform-origin: center;
}

.popup-foot {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--muted);
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  animation: dotPulse 1.2s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.app-shell {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto 60px;
  padding-top: 26px;
  display: grid;
  gap: 20px;
}

.contact-form,
.modal-form {
  display: grid;
  gap: 12px;
}

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

.hero-banner {
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-banner p {
  max-width: 720px;
}

.hero-banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.summary-card {
  display: grid;
  gap: 10px;
  min-height: 156px;
  padding: 18px;
  border-radius: var(--radius-lg);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, border-color 180ms ease, background-color 180ms ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(193, 209, 225, 0.96);
}

.summary-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card strong {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.single-column {
  grid-template-columns: 1fr;
}

.stacked-panels {
  display: grid;
  gap: 20px;
}

.secondary-panel {
  padding: 22px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease, border-color 180ms ease;
}

.secondary-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 52px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.68);
}

.hero-banner {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease, border-color 180ms ease;
}

.hero-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 56px rgba(15, 23, 42, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.action-panel {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 220px;
}

.inline-link {
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.mini-link {
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.log-table,
.data-list {
  display: grid;
  gap: 10px;
}

.log-row,
.data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  background: rgba(248, 250, 252, 0.9);
  border-radius: 20px;
  border: 1px solid rgba(217, 225, 233, 0.84);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.log-row strong,
.data-row strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.secret-code-line {
  display: flex;
  align-items: center;
  min-height: 1.35rem;
}

.secret-code-value {
  display: inline-block;
  min-width: 10ch;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.log-row-side,
.row-actions,
.row-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.inline-form-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.control-stack {
  display: grid;
  gap: 12px;
}

.control-stack-readonly {
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(249, 251, 253, 0.92);
  border: 1px solid rgba(223, 229, 236, 0.82);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.super-admin-deck {
  border-color: rgba(255, 255, 255, 0.54);
  background: linear-gradient(180deg, rgba(252, 249, 255, 0.82), rgba(245, 241, 253, 0.68));
}

.super-admin-head {
  align-items: flex-start;
}

.super-admin-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #6a44c6;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.power-orb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 0 6px rgba(123, 69, 214, 0.12);
  animation: none;
}

.super-admin-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.super-admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

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

.super-admin-metric {
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 249, 252, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.super-admin-metric strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.super-admin-command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.super-admin-command-list form {
  margin: 0;
}

.super-admin-command-list .ghost-button,
.super-admin-command-list .primary-button,
.super-admin-link-button {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.super-admin-link-button {
  text-decoration: none;
}

.super-admin-shortcuts {
  margin-top: 6px;
}

.super-admin-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.super-admin-preset-row form {
  margin: 0;
}

.inline-form .field {
  min-width: 0;
}

.inline-form-wrap {
  grid-template-columns: 1.2fr 1.1fr 0.6fr 1fr auto;
}

.inline-form .mini-button {
  align-self: end;
  min-height: 52px;
}

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

.span-two {
  grid-column: 1 / -1;
}

.generated-code-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.generated-code {
  padding: 12px 14px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #151b22 0%, #304053 100%);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-log-row {
  display: grid;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

.admin-log-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 18px;
}

.admin-log-head > div {
  min-width: 0;
}

.admin-log-stage {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-log-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 170px;
}

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

.admin-log-grid > div {
  min-width: 0;
}

.admin-log-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.log-signal-stack {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.signal-line {
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 252, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.signal-line p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.signal-label {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.log-reason {
  margin: 0;
  padding: 12px 14px;
  max-width: none;
  border-radius: 16px;
  background: rgba(24, 28, 33, 0.04);
  color: var(--ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.quota-meter {
  width: 100%;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(24, 28, 33, 0.08);
  overflow: hidden;
}

.quota-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1487f5 0%, #2ea364 100%);
}

.cloud-file-row .row-actions {
  min-width: 210px;
  align-self: center;
}

.cloud-workspace-panel {
  display: grid;
  gap: 18px;
}

.cloud-section-head {
  align-items: flex-start;
}

.cloud-command-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 252, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cloud-command-bar .inline-actions {
  justify-content: flex-start;
}

.cloud-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cloud-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: var(--muted);
  font-size: 0.84rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.cloud-status-chip strong {
  color: var(--ink);
}

.cloud-explorer-surface {
  min-height: 360px;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(245, 249, 253, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 12px 26px rgba(18, 38, 63, 0.04);
}

.cloud-browser-list {
  gap: 10px;
}

.cloud-browser-row {
  position: relative;
  min-height: 86px;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 220ms ease, background 180ms ease;
}

.cloud-browser-row:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 135, 245, 0.18);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.cloud-browser-row.is-selected {
  background: rgba(232, 241, 255, 0.92);
  border-color: rgba(20, 135, 245, 0.34);
  box-shadow: 0 14px 36px rgba(20, 135, 245, 0.1);
}

.cloud-entry-main {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.cloud-entry-copy {
  display: grid;
  gap: 4px;
}

.cloud-entry-copy strong[data-cloud-preview-trigger],
.cloud-entry-icon[data-cloud-preview-trigger] {
  cursor: pointer;
}

.cloud-entry-copy strong[data-cloud-preview-trigger] {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-color: rgba(20, 135, 245, 0.35);
  text-underline-offset: 3px;
}

.cloud-entry-icon {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(20, 135, 245, 0.12);
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, background-color 180ms ease;
}

.cloud-browser-row.cloud-folder-row .cloud-entry-icon {
  background: rgba(46, 163, 100, 0.12);
  color: #18764a;
}

.cloud-entry-main:hover .cloud-entry-icon,
.cloud-browser-row:hover .cloud-entry-icon {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(20, 135, 245, 0.14);
}

.cloud-entry-row {
  align-items: center;
}

.cloud-entry-link {
  color: var(--ink);
  text-decoration: none;
}

.cloud-entry-link:hover {
  color: var(--blue-deep);
}

.cloud-folder-row strong::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  color: var(--blue-deep);
}

.cloud-browser-row.cloud-folder-row strong::before {
  content: none;
  margin-right: 0;
}

.cloud-file-row strong {
  font-size: 1rem;
}

.cloud-file-row p {
  max-width: 620px;
}

[data-log-list] .empty-state {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(24, 28, 33, 0.05);
}

.cloud-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.crumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.54);
  color: var(--ink);
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 200ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.crumb-link:hover {
  transform: translateY(-2px);
  background: rgba(20, 135, 245, 0.08);
  border-color: rgba(187, 205, 224, 0.96);
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.cloud-view-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 252, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cloud-view-form select,
.anti-vpn-duration-row select {
  min-height: 50px;
  border-radius: 16px;
  font-weight: 600;
  color: var(--ink);
}

.cloud-view-form .mini-button,
.anti-vpn-duration-row .ghost-button {
  min-height: 50px;
}

.analysis-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.analysis-list li {
  line-height: 1.55;
}

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

.choice-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 252, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.56);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, box-shadow 220ms ease, background-color 180ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card strong {
  font-size: 0.96rem;
}

.choice-card span {
  color: var(--muted);
  line-height: 1.5;
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 135, 245, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.choice-card.is-selected {
  background: rgba(232, 241, 255, 0.92);
  border-color: rgba(20, 135, 245, 0.34);
  box-shadow: 0 14px 36px rgba(20, 135, 245, 0.1);
}

.anti-vpn-form {
  display: grid;
  gap: 14px;
}

.anti-vpn-duration-row,
.anti-vpn-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.anti-vpn-duration-row {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 252, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.modal-dialog {
  width: min(640px, calc(100vw - 28px));
  border: none;
  padding: 0;
  background: transparent;
}

.modal-dialog-wide {
  width: min(1040px, calc(100vw - 36px));
  max-width: calc(100vw - 36px);
}

.modal-dialog::backdrop {
  background: rgba(10, 14, 20, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog[open] .modal-card {
  animation: modal-rise 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-card {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 250, 253, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.modal-card-wide {
  width: 100%;
  max-height: min(84vh, 920px);
  display: grid;
  gap: 18px;
  overflow: hidden;
}

.modal-card-wide .section-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-bottom: 10px;
  background: rgba(252, 252, 253, 0.98);
}

.modal-card-wide .log-table[data-log-list] {
  max-height: 68vh;
  overflow: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}

.modal-content {
  display: grid;
  gap: 10px;
}

.message-box {
  margin-top: 8px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(24, 28, 33, 0.05);
  white-space: pre-wrap;
  line-height: 1.6;
}

.empty-state {
  padding: 12px 2px 4px;
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

form {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

  .content-grid,
  .admin-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .super-admin-grid,
  .super-admin-radar,
  .super-admin-command-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .auth-shell,
  .topbar,
  .topbar-left,
  .topbar-right,
  .hero-banner,
  .section-head,
  .cloud-command-bar,
  .cloud-status-strip,
  .log-row,
  .data-row {
    grid-template-columns: unset;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    padding: 26px 0 40px;
  }

  .topbar {
    position: static;
    margin-top: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .profile-chip,
  .hero-banner-meta,
  .row-actions,
  .row-meta,
  .log-row-side {
    justify-items: start;
    text-align: left;
  }

  .profile-info-value {
    justify-content: flex-start;
    text-align: left;
  }

  .admin-log-head,
  .admin-log-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .admin-log-meta {
    justify-items: start;
    text-align: left;
  }

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

@media (max-width: 700px) {
  :root {
    --content-width: min(100vw - 28px, 1000px);
  }

  .summary-grid,
  .inline-form,
  .inline-form-wrap,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .brand-stage-card,
  .auth-card,
  .secondary-panel,
  .hero-banner {
    padding: 22px;
  }

  .brand-stage h1,
  .hero-banner h1 {
    font-size: 2rem;
  }

  .hero-logo-main {
    width: 148px;
    height: 148px;
  }

  .hero-logo-admin {
    width: 168px;
    height: 168px;
  }
}
