/* Liquid glass morphism theme — shared by admin & login */

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

:root {
  --bg-base: #e8edf8;
  --bg-soft: #f4f0fb;
  --text: #1a2240;
  --text-soft: #4a5578;
  --muted: #6b7694;
  --line: rgba(255, 255, 255, 0.65);
  --line-dark: rgba(120, 130, 180, 0.22);
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
  --glass: rgba(255, 255, 255, 0.42);
  --glass-strong: rgba(255, 255, 255, 0.58);
  --glass-input: rgba(255, 255, 255, 0.55);
  --shadow-glass: 0 8px 32px rgba(100, 80, 180, 0.12), 0 2px 8px rgba(30, 40, 90, 0.06);
  --shadow-lift: 0 16px 48px rgba(124, 58, 237, 0.18), 0 4px 16px rgba(6, 182, 212, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --blur: 20px;
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --toggle-track: #e2e6ef;
  --toggle-thumb: #ffffff;
  --toggle-shadow-in: inset 3px 3px 8px rgba(140, 150, 180, 0.35), inset -2px -2px 6px rgba(255, 255, 255, 0.9);
  --toggle-shadow-thumb: 3px 4px 10px rgba(80, 90, 130, 0.28), -1px -1px 3px rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #060913;
  --bg-soft: #0a1220;
  --text: #eaf1ff;
  --text-soft: #b8c5e8;
  --muted: #9dafd2;
  --line: rgba(173, 200, 255, 0.14);
  --line-dark: rgba(134, 154, 196, 0.2);
  --accent: #a78bfa;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
  --glass: rgba(18, 26, 42, 0.6);
  --glass-strong: rgba(15, 22, 37, 0.75);
  --glass-input: rgba(9, 14, 26, 0.76);
  --glass-inset: inset 1px 1px 0 rgba(255, 255, 255, 0.05), inset -1px -1px 0 rgba(0, 0, 0, 0.28);
  --shadow-glass: 8px 8px 18px rgba(0, 0, 0, 0.44), -6px -6px 14px rgba(60, 80, 126, 0.16);
  --shadow-lift: 0 16px 48px rgba(124, 58, 237, 0.22), 0 4px 16px rgba(6, 182, 212, 0.12);
  --blur: 20px;
  --toggle-track: #141c2e;
  --toggle-thumb: #e8eeff;
  --toggle-shadow-in: inset 3px 3px 8px rgba(0, 0, 0, 0.45), inset -2px -2px 6px rgba(80, 100, 150, 0.12);
  --toggle-shadow-thumb: 3px 4px 10px rgba(0, 0, 0, 0.45), -1px -1px 2px rgba(120, 140, 200, 0.15);
}

html,
body,
.card,
input,
textarea,
select,
button.secondary {
  transition: background 0.35s var(--ease-smooth), color 0.3s, border-color 0.3s, box-shadow 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient .orb { animation: none !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg-base) 0%, var(--bg-soft) 45%, #eef8fc 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated ambient orbs */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, transparent 70%);
  top: -12%;
  left: -8%;
  animation: orb-float-a 18s var(--ease-smooth) infinite;
}

.orb-b {
  width: min(380px, 50vw);
  height: min(380px, 50vw);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
  top: 35%;
  right: -10%;
  animation: orb-float-b 22s var(--ease-smooth) infinite;
}

.orb-c {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, transparent 70%);
  bottom: -8%;
  left: 25%;
  animation: orb-float-c 20s var(--ease-smooth) infinite;
}

@keyframes orb-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.05); }
  66% { transform: translate(20px, 50px) scale(0.95); }
}

@keyframes orb-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.08); }
}

@keyframes orb-float-c {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(35px, -25px); }
  80% { transform: translate(-20px, 15px); }
}

.wrap,
.login-shell {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.page-stack > .card {
  animation: card-enter 0.7s var(--ease-smooth) backwards;
}

.page-stack > .card:nth-child(1) { animation-delay: 0.05s; }
.page-stack > .card:nth-child(2) { animation-delay: 0.12s; }
.page-stack > .card:nth-child(3) { animation-delay: 0.19s; }
.page-stack > .card:nth-child(4) { animation-delay: 0.26s; }
.page-stack > .card:nth-child(5) { animation-delay: 0.33s; }

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease-smooth);
}

a:hover { color: #5b21b6; }

/* Glass panels */
.card,
.glass-panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 14px 0;
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  box-shadow: var(--shadow-glass), var(--glass-inset);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-smooth), border-color 0.3s;
}

.card:hover,
.glass-panel:hover {
  box-shadow: var(--shadow-lift), var(--glass-inset);
  border-color: rgba(255, 255, 255, 0.9);
}

h2 {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, #4c1d95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  background: var(--glass-input);
  border: 1px solid var(--line-dark);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.2s var(--ease-spring);
}

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

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(124, 58, 237, 0.25);
  background: rgba(255, 255, 255, 0.72);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 4px 20px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

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

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

.spacer-sm { height: 12px; }

button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 42%, #06b6d4 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background-position 0.5s;
  animation: btn-shimmer 6s ease infinite;
}

@keyframes btn-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-smooth);
}

button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

button:hover::after { transform: translateX(120%); }

button:active { transform: translateY(0) scale(0.98); }

button.secondary {
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: none;
}

button.secondary:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.12);
}

code {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line-dark);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

th,
td {
  border-bottom: 1px solid rgba(120, 130, 180, 0.12);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.35);
}

.pill {
  display: inline-block;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: transform 0.2s var(--ease-spring);
}

.pill:hover { transform: scale(1.04); }

.role-admin {
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
  background: rgba(167, 243, 208, 0.45);
}

.role-user {
  border-color: rgba(99, 102, 241, 0.3);
  color: #4338ca;
  background: rgba(199, 210, 254, 0.4);
}

.pill-expired {
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  background: rgba(254, 202, 202, 0.5);
}

.pill-active {
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
  background: rgba(167, 243, 208, 0.45);
}

.small {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
  animation: result-pop 0.4s var(--ease-spring) backwards;
}

@keyframes result-pop {
  from { opacity: 0; transform: scale(0.96) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.result-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.1);
}

.result-item .link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  padding: 6px 12px;
  font-size: 0.7rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar h2 { margin-bottom: 6px; }

.topbar .small { margin: 0; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Neumorphic dark / light toggle */
.theme-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.theme-switch__track {
  display: block;
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--toggle-track);
  box-shadow: var(--toggle-shadow-in);
  transition: background 0.35s var(--ease-smooth), box-shadow 0.35s;
}

.theme-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 9px;
  background: var(--toggle-thumb, #fff);
  box-shadow: var(--toggle-shadow-thumb);
  transition: transform 0.4s var(--ease-spring), background 0.35s, box-shadow 0.35s;
}

.theme-switch__input:checked + .theme-switch__track .theme-switch__thumb {
  transform: translateX(24px);
}

.theme-switch__input:focus-visible + .theme-switch__track {
  outline: 2px solid rgba(124, 58, 237, 0.45);
  outline-offset: 3px;
}

.theme-switch:hover .theme-switch__thumb {
  transform: scale(1.04);
}

.theme-switch__input:checked + .theme-switch__track .theme-switch__thumb,
.theme-switch:hover .theme-switch__input:checked + .theme-switch__track .theme-switch__thumb {
  transform: translateX(24px) scale(1.04);
}

.theme-switch:hover .theme-switch__input:not(:checked) + .theme-switch__track .theme-switch__thumb {
  transform: scale(1.04);
}

#result {
  animation: card-enter 0.5s var(--ease-smooth) backwards;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7694' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.shortener-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 4px;
}

.shortener-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  padding: 4px 0;
}

.shortener-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px 4px;
  margin: 0;
}

.shortener-options label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text);
  margin: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.shortener-options label:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line-dark);
  transform: translateY(-1px);
}

.shortener-options input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

#bitlyApiInput:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Open Graph panel */
.og-main-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 18px;
  align-items: start;
}

.og-main-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.og-main-layout .og-live {
  min-width: 0;
  animation: live-glow 4s ease-in-out infinite;
}

@keyframes live-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.15)); }
}

.og-live-label {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.og-live-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, border-color 0.3s;
}

.og-live-card:not(.og-live-empty) {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: preview-pulse 3s ease-in-out infinite;
}

@keyframes preview-pulse {
  0%, 100% { box-shadow: var(--shadow-glass), 0 0 0 0 rgba(124, 58, 237, 0); }
  50% { box-shadow: var(--shadow-lift), 0 0 24px rgba(124, 58, 237, 0.12); }
}

.og-live-image-wrap {
  aspect-ratio: 1.91 / 1;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}

.og-live-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.og-live-card:not(.og-live-empty) .og-live-image-wrap img:hover {
  transform: scale(1.03);
}

.og-live-image-placeholder[hidden] {
  display: none !important;
}

#ogLiveImage[hidden] {
  display: none !important;
}

.og-live-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
  background:
    radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15), transparent 45%),
    rgba(255, 255, 255, 0.4);
}

.og-live-body {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line-dark);
}

.og-live-domain {
  font-size: 0.62rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.og-live-title {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.og-live-desc {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.og-live-empty .og-live-title {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.75rem;
}

#ogPreviewStatus {
  animation: status-fade 0.5s var(--ease-smooth);
}

@keyframes status-fade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Login page */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-shell {
  width: min(440px, 94vw);
  animation: card-enter 0.8s var(--ease-smooth) backwards;
}

.login-shell .card,
.login-shell.glass-panel {
  margin: 0;
  padding: 28px 26px 22px;
}

.login-shell h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.login-shell button {
  width: 100%;
  margin-top: 4px;
  padding: 12px 18px;
}

.login-shell .login-support-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  color: var(--text);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, border-color 0.2s;
}

.login-shell .login-support-btn:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

html[data-theme="dark"] .login-shell .login-support-btn {
  color: var(--text);
}

.login-shell #status {
  margin-top: 8px;
  min-height: 0;
}

.login-shell #status:empty {
  display: none;
  margin: 0;
}

#status {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 20px;
  transition: color 0.3s;
}

/* ─── Dark theme — mirrors light (purple glass) ─── */
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% -20%, rgba(122, 144, 255, 0.18), transparent 34%),
    radial-gradient(circle at 100% -10%, rgba(44, 201, 255, 0.14), transparent 36%),
    linear-gradient(160deg, var(--bg-base) 0%, var(--bg-soft) 58%, #070d1a 100%);
}

html[data-theme="dark"] .orb {
  opacity: 0.5;
}

html[data-theme="dark"] h2 {
  background: linear-gradient(135deg, #f0f4ff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] a {
  color: var(--accent);
}

html[data-theme="dark"] a:hover {
  color: #ddd6fe;
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .glass-panel:hover {
  border-color: rgba(173, 200, 255, 0.22);
}

html[data-theme="dark"] input:hover,
html[data-theme="dark"] textarea:hover,
html[data-theme="dark"] select:hover {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(12, 18, 32, 0.88);
}

html[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239dafd2' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
}

html[data-theme="dark"] button {
  color: #fff;
}

html[data-theme="dark"] button.secondary {
  color: var(--text);
}

html[data-theme="dark"] code {
  background: rgba(12, 18, 32, 0.8);
  border-color: var(--line-dark);
  color: #c4b5fd;
}

html[data-theme="dark"] tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .pill {
  background: rgba(14, 21, 36, 0.75);
  color: var(--muted);
}

html[data-theme="dark"] .role-admin {
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
  background: rgba(20, 83, 45, 0.35);
}

html[data-theme="dark"] .role-user {
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.35);
}

html[data-theme="dark"] .pill-expired {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.35);
}

html[data-theme="dark"] .pill-active {
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
  background: rgba(20, 83, 45, 0.35);
}

html[data-theme="dark"] .result-item {
  background: rgba(9, 14, 26, 0.52);
}

html[data-theme="dark"] .shortener-options label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
}

html[data-theme="dark"] .og-live-card {
  background: rgba(9, 14, 26, 0.52);
  box-shadow: var(--shadow-glass), inset 1px 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .og-live-card:not(.og-live-empty) {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: var(--shadow-lift), inset 1px 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .og-live-image-wrap {
  background: rgba(9, 14, 26, 0.76);
}

html[data-theme="dark"] .og-live-body {
  background: rgba(18, 26, 42, 0.55);
}

html[data-theme="dark"] .og-live-image-placeholder {
  background:
    radial-gradient(circle at 30% 20%, rgba(122, 144, 255, 0.12), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(44, 201, 255, 0.08), transparent 45%),
    rgba(9, 14, 26, 0.85);
}

html[data-theme="dark"] .og-live-domain {
  color: var(--accent);
}

html[data-theme="dark"] #ogPreviewStatus {
  border-color: rgba(124, 58, 237, 0.35);
  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.2);
}

@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .wrap { padding: 16px 14px 32px; }
  .og-main-layout { grid-template-columns: 1fr; }
}
