@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #09090c;
  --panel: rgba(14, 17, 23, 0.8);
  --panel-strong: rgba(18, 21, 31, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #9fa9c2;
  --accent: #6ee7f2;
  --accent-strong: #30c6d7;
  --accent-shadow: rgba(48, 198, 215, 0.22);
  --danger: #ff7f96;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(55, 84, 183, 0.25), transparent 32%),
    radial-gradient(circle at bottom right, rgba(48, 198, 215, 0.18), transparent 28%),
    linear-gradient(160deg, #050608, #0c1018 50%, #06070a);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.main-content {
  transition: opacity 140ms ease;
}

body.app-booting .main-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.site-signature {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 18;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(110, 231, 242, 0.98);
  text-shadow:
    0 0 10px rgba(110, 231, 242, 0.5),
    0 0 26px rgba(48, 198, 215, 0.3);
  pointer-events: none;
  opacity: 0.92;
}

.backdrop {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.backdrop-one {
  width: 420px;
  height: 420px;
  top: -100px;
  right: -60px;
  background: rgba(76, 110, 255, 0.35);
}

.backdrop-two {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: -80px;
  background: rgba(48, 198, 215, 0.25);
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu {
  position: relative;
}

.language-picker {
  display: inline-flex;
  align-items: center;
}

.language-picker select {
  min-width: 132px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 18px;
  outline: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.language-picker select:focus {
  border-color: rgba(110, 231, 242, 0.4);
  box-shadow: 0 0 0 4px rgba(110, 231, 242, 0.08);
}

.user-pill,
.ghost-button,
.primary-button,
.dropdown-item {
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.user-pill,
.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 18px;
}

.ghost-button:hover,
.user-pill:hover,
.primary-button:hover,
.dropdown-item:hover {
  transform: translateY(-1px);
}

.primary-button {
  border: 1px solid rgba(110, 231, 242, 0.35);
  background: linear-gradient(135deg, rgba(47, 198, 215, 0.18), rgba(76, 110, 255, 0.26));
  color: var(--text);
  padding: 13px 18px;
  box-shadow: 0 16px 30px var(--accent-shadow);
}

.primary-button.small {
  padding: 11px 16px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
}

.dropdown-item + .dropdown-item {
  margin-top: 8px;
}

.dropdown-item.danger {
  color: var(--danger);
}

.main-content {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.auth-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.9), rgba(10, 12, 18, 0.9));
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.auth-card,
.view {
  padding: 32px;
}

.auth-card {
  width: min(430px, 100%);
}

.eyebrow,
.dropzone-kicker,
.result-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-header h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
}

.subtle,
.dropzone-inner p,
.empty-state {
  color: var(--muted);
  line-height: 1.65;
}

.settings-card h3,
.section-header h2,
.dropzone-inner h3,
.upload-result a {
  font-family: "Space Grotesk", sans-serif;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.tab-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  flex: 1 1 0;
}

.tab-button.active {
  background: rgba(110, 231, 242, 0.12);
  color: var(--text);
}

.form {
  display: none;
  gap: 16px;
}

.form.active {
  display: grid;
}

.auth-status {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 127, 150, 0.24);
  background: rgba(255, 127, 150, 0.08);
  color: #ffd5dd;
  line-height: 1.55;
}

.registration-note {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 127, 150, 0.18);
  background: rgba(255, 127, 150, 0.06);
  color: #ffd7df;
  line-height: 1.5;
}

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

.field span {
  color: var(--muted);
  font-size: 0.95rem;
}

.field-hint {
  color: rgba(255, 217, 122, 0.92);
  font-size: 0.82rem;
  line-height: 1.5;
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 16px;
  outline: none;
}

.field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 16px;
  outline: none;
}

.field input:focus {
  border-color: rgba(110, 231, 242, 0.4);
  box-shadow: 0 0 0 4px rgba(110, 231, 242, 0.08);
}

.field select:focus {
  border-color: rgba(110, 231, 242, 0.4);
  box-shadow: 0 0 0 4px rgba(110, 231, 242, 0.08);
}

.recaptcha-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.recaptcha-widget {
  min-height: 78px;
  overflow-x: auto;
}

.recaptcha-widget:empty::before {
  content: "reCAPTCHA";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 304px;
  min-height: 78px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.captcha-label,
.security-status-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.ghost-button.small-button {
  padding: 10px 14px;
}

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

.dashboard {
  display: grid;
}

.view {
  animation: rise-in 220ms ease;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.donor-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 127, 150, 0.24);
  background:
    linear-gradient(135deg, rgba(132, 16, 27, 0.9), rgba(82, 10, 16, 0.92)),
    radial-gradient(circle at top right, rgba(255, 214, 219, 0.18), transparent 32%),
    url("/banner_donor.png") center/cover no-repeat;
  box-shadow: 0 28px 60px rgba(76, 8, 18, 0.34);
}

.donor-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(67, 8, 13, 0.82), rgba(67, 8, 13, 0.16)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.donor-banner > * {
  position: relative;
  z-index: 1;
}

.donor-banner-copy {
  flex: 1 1 0;
  display: grid;
  gap: 10px;
  max-width: none;
  min-width: 0;
}

.donor-banner-copy h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.02;
  font-family: "Space Grotesk", sans-serif;
}

.donor-banner-copy .subtle {
  margin: 0;
  color: rgba(255, 233, 236, 0.92);
  white-space: pre-line;
}

.donor-banner-eyebrow {
  color: rgba(255, 223, 228, 0.95);
  margin-bottom: 0;
}

.donor-banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.verification-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 217, 122, 0.26);
  background:
    linear-gradient(135deg, rgba(91, 66, 10, 0.92), rgba(59, 44, 6, 0.94)),
    radial-gradient(circle at top right, rgba(255, 241, 194, 0.16), transparent 32%);
  box-shadow: 0 28px 60px rgba(67, 48, 8, 0.28);
}

.verification-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(52, 37, 5, 0.82), rgba(52, 37, 5, 0.18)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18));
}

.verification-banner > * {
  position: relative;
  z-index: 1;
}

.verification-banner-copy {
  flex: 1 1 0;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.verification-banner-copy h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  font-family: "Space Grotesk", sans-serif;
}

.verification-banner-copy .subtle {
  margin: 0;
  color: rgba(255, 246, 222, 0.92);
}

.verification-banner-eyebrow {
  color: rgba(255, 233, 171, 0.95);
  margin-bottom: 0;
}

.verification-banner-button {
  white-space: nowrap;
  border-color: rgba(255, 217, 122, 0.34);
  background: linear-gradient(135deg, rgba(255, 217, 122, 0.12), rgba(160, 120, 24, 0.24));
  box-shadow: 0 16px 30px rgba(179, 132, 27, 0.18);
}

.upload-workspace {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  flex: 1 1 auto;
  border-radius: 28px;
  border: 1px dashed rgba(110, 231, 242, 0.28);
  background:
    radial-gradient(circle at top, rgba(110, 231, 242, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dropzone::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dropzone.is-over {
  transform: scale(0.996);
  border-color: rgba(110, 231, 242, 0.55);
  box-shadow: 0 20px 40px rgba(48, 198, 215, 0.14);
}

.dropzone-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(560px, calc(100% - 40px));
}

.dropzone-inner h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.upload-result {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(110, 231, 242, 0.16);
  background: rgba(12, 16, 24, 0.92);
  display: grid;
  gap: 14px;
}

.upload-result-rows {
  display: grid;
  gap: 14px;
}

.upload-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.result-copy {
  min-width: 0;
}

.upload-result a,
.upload-result-code {
  color: var(--text);
  word-break: break-all;
}

.upload-result a {
  text-decoration: none;
}

.upload-result-code {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.92rem;
}

.upload-preview {
  flex: 0 0 240px;
  min-height: 350px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(110, 231, 242, 0.14);
  background: rgba(12, 16, 24, 0.9);
  display: grid;
  gap: 18px;
  justify-items: center;
  align-content: center;
}

.upload-preview-frame {
  width: 180px;
  height: 240px;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(19, 24, 35, 0.92), rgba(9, 12, 18, 0.98));
}

.upload-preview-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 172px));
  gap: 18px;
  justify-content: start;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gallery-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  width: 100%;
  max-width: 172px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  align-content: start;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gallery-frame {
  position: relative;
  width: 140px;
  height: 200px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(19, 24, 35, 0.92), rgba(9, 12, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gallery-frame img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-frame-button {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
}

.gallery-frame-button:hover .gallery-frame {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 242, 0.28);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.gallery-delete-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 127, 150, 0.22);
  background: rgba(8, 10, 16, 0.9);
  color: var(--danger);
  z-index: 1;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.gallery-delete-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 127, 150, 0.36);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  background: rgba(16, 20, 28, 0.96);
}

.gallery-delete-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gallery-meta {
  display: grid;
  gap: 6px;
}

.gallery-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  word-break: break-word;
}

.gallery-subtitle {
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state {
  margin-top: 12px;
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
}

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

.profile-form {
  max-width: 680px;
}

.admin-view {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 420px));
  gap: 20px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.admin-grid .settings-card {
  width: min(420px, 100%);
}

.settings-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

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

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.toggle-field input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #ff7f96;
}

.admin-users-list {
  display: grid;
}

.blocked-ips-list {
  display: grid;
}

.admin-users-shell {
  width: 100%;
  margin: 0 auto;
}

.admin-users-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px;
}

.admin-users-toolbar h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.admin-users-search {
  width: min(360px, 100%);
}

.admin-users-table {
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.admin-users-head,
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.05fr) minmax(180px, 1.45fr) 110px minmax(150px, 1.05fr) 92px minmax(190px, 1.2fr) 180px;
  min-width: 1140px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.blocked-ips-head,
.blocked-ip-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(180px, 1.4fr) minmax(170px, 1.2fr) 170px 160px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.admin-users-head,
.blocked-ips-head {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.admin-user-row + .admin-user-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blocked-ip-row + .blocked-ip-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-user-row span,
.blocked-ip-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.admin-user-name-button {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 242, 0.16);
  background: rgba(110, 231, 242, 0.1);
  color: var(--accent);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-user-name-button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 242, 0.28);
  box-shadow: 0 12px 24px rgba(48, 198, 215, 0.14);
  background: rgba(110, 231, 242, 0.14);
}

.admin-user-count {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--accent);
}

.admin-user-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(110, 231, 242, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user-badge.is-donor {
  background: rgba(255, 127, 150, 0.14);
  color: #ffc4ce;
}

.admin-user-badge.is-unlimited {
  background: rgba(110, 231, 242, 0.16);
  color: #aef6ff;
}

.admin-user-tier {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.admin-user-ip {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-ip-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.admin-ip-button:hover {
  border-color: rgba(110, 231, 242, 0.22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.admin-ip-text {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flag-icon {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-user-note {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.admin-users-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.admin-pagination-button,
.admin-pagination-ellipsis {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
}

.admin-pagination-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-pagination-nav {
  min-width: 96px;
  padding: 0 18px;
}

.admin-pagination-button:hover {
  transform: translateY(-1px);
  border-color: rgba(110, 231, 242, 0.24);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.admin-pagination-button.is-active {
  border-color: rgba(110, 231, 242, 0.34);
  background: rgba(110, 231, 242, 0.12);
  color: #c9fbff;
  box-shadow: 0 14px 28px rgba(48, 198, 215, 0.18);
}

.admin-pagination-button:disabled {
  opacity: 0.4;
}

.admin-pagination-ellipsis {
  color: var(--muted);
}

.blocked-ip-shell {
  margin-top: 28px;
}

.blocked-ip-header {
  margin-bottom: 12px;
}

.admin-edit-form {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.security-status-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.security-status-card .subtle {
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-button.is-danger {
  border-color: rgba(255, 127, 150, 0.18);
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(110, 231, 242, 0.16);
  background: rgba(10, 13, 18, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
  z-index: 20;
}

.toast.is-error {
  border-color: rgba(255, 127, 150, 0.28);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 4, 7, 0.84);
  backdrop-filter: blur(16px);
  z-index: 30;
}

.lightbox-panel {
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 24, 0.96);
  box-shadow: var(--shadow);
  transform: scale(0.94);
  opacity: 0;
  animation: zoom-in 220ms forwards;
}

.lightbox-panel img {
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 18px;
}

.lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}

.lightbox-meta a {
  color: var(--accent);
  text-decoration: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.36);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 4, 7, 0.76);
  backdrop-filter: blur(16px);
  z-index: 40;
  animation: modal-fade 180ms ease;
}

.modal-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.96), rgba(10, 12, 18, 0.98));
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  animation: modal-pop 220ms forwards;
}

.modal-panel h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.modal-panel.is-destructive {
  border-color: rgba(255, 127, 150, 0.18);
}

.modal-alert {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 127, 150, 0.12);
  color: var(--danger);
}

.modal-alert svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.modal-panel .subtle {
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.ip-history-modal-panel {
  width: min(720px, 100%);
}

.user-info-modal-panel {
  width: min(620px, 100%);
}

.upload-progress-modal-panel {
  width: min(560px, 100%);
}

.upload-progress-track {
  position: relative;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2b8cff 0%, #54b9ff 55%, #79dcff 100%);
  box-shadow: 0 0 24px rgba(43, 140, 255, 0.32);
  transition: width 120ms linear;
}

.upload-progress-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.upload-progress-percent {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: #79dcff;
}

.ip-history-list {
  display: grid;
  gap: 12px;
  max-height: min(56vh, 640px);
  overflow: auto;
  padding-right: 4px;
}

.user-info-list {
  display: grid;
  gap: 12px;
}

.ip-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.user-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.ip-history-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ip-history-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ip-history-address {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-history-time {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.user-info-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.user-info-value {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  text-align: right;
}

.danger-button {
  border-color: rgba(255, 127, 150, 0.28);
  background: linear-gradient(135deg, rgba(255, 127, 150, 0.16), rgba(145, 45, 70, 0.24));
  box-shadow: 0 16px 30px rgba(255, 127, 150, 0.12);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom-in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-user-row {
  animation: adminRowReveal 180ms ease both;
}

@keyframes adminRowReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .admin-view {
    width: 100%;
  }

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

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

  .admin-users-head,
  .blocked-ips-head {
    display: none;
  }

  .admin-user-row,
  .blocked-ip-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-users-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-users-search {
    width: 100%;
  }

  .admin-user-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .topbar,
  .main-content {
    width: min(100% - 24px, 1420px);
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .auth-card,
  .view {
    padding: 24px;
  }

  .donor-banner,
  .verification-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .donor-banner-button,
  .verification-banner-button {
    width: 100%;
    justify-content: center;
  }

  .section-header,
  .gallery-actions,
  .lightbox-meta,
  .modal-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-result-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dropzone {
    min-height: 280px;
  }

  .upload-workspace {
    flex-direction: column;
  }

  .upload-preview {
    min-height: auto;
    width: 100%;
    padding: 18px 20px;
  }

  .upload-preview-frame {
    width: 140px;
    height: 200px;
  }

  .ip-history-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-history-time {
    white-space: normal;
  }

  .user-info-value {
    text-align: left;
  }

  .dropzone-inner h3 {
    font-size: 2.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .gallery-card {
    max-width: none;
  }
}
