@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --admin-bg: #f0f2f7;
  --admin-surface: #ffffff;
  --admin-sidebar: #0a1628;
  --admin-sidebar-hover: rgba(255, 255, 255, 0.06);
  --admin-sidebar-active: rgba(255, 170, 0, 0.12);
  --admin-gold: #ffaa00;
  --admin-gold-dim: rgba(255, 170, 0, 0.35);
  --admin-text: #0f172a;
  --admin-muted: #64748b;
  --admin-border: #e2e8f0;
  --admin-primary: #1e40af;
  --admin-primary-hover: #1d4ed8;
  --admin-radius: 12px;
  --admin-radius-lg: 16px;
  --admin-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
  --admin-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.1);
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  background: var(--admin-bg);
  color: var(--admin-text);
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--admin-sidebar);
  color: #e2e8f0;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: auto;
}

.admin-sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar-brand img {
  height: 36px;
  display: block;
  margin-bottom: 0.75rem;
}

.admin-sidebar-brand h2 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--admin-gold);
}

.admin-sidebar-brand p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.admin-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
}

.admin-nav-group {
  margin-bottom: 1.25rem;
}

.admin-nav-group-label {
  padding: 0 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: none;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s ease;
}

.admin-nav button svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-nav button:hover {
  background: var(--admin-sidebar-hover);
  color: #f1f5f9;
}

.admin-nav button.active {
  background: var(--admin-sidebar-active);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--admin-gold);
}

.admin-nav button.active svg {
  color: var(--admin-gold);
  opacity: 1;
}

.admin-sidebar-footer {
  padding: 1rem 0.65rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ─── Main area ─── */
.admin-main-wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  width: calc(100% - var(--sidebar-width));
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(240, 242, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--admin-border);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-topbar-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-topbar-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--admin-muted);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-main {
  flex: 1;
  width: 100%;
  padding: 1.75rem 2rem 2.5rem;
}

/* ─── Cards ─── */
.admin-card {
  background: var(--admin-surface);
  border-radius: var(--admin-radius-lg);
  padding: 2rem;
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-border);
}

.admin-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--admin-text);
  letter-spacing: -0.02em;
}

.admin-card .subtitle {
  color: var(--admin-muted);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
  line-height: 1.5;
}

.admin-page-header {
  margin-bottom: 1.5rem;
}

/* ─── Dashboard ─── */
.dashboard-welcome {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
  border-radius: var(--admin-radius-lg);
  padding: 1.75rem 2rem;
  color: #fff;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 170, 0, 0.15);
}

.dashboard-welcome h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.dashboard-welcome p {
  margin: 0;
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

.dashboard-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.dashboard-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.dashboard-tile {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  box-shadow: var(--admin-shadow);
}

.dashboard-tile:hover {
  border-color: var(--admin-gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-lg);
}

.dashboard-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(255, 170, 0, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-primary);
  margin-bottom: 0.85rem;
}

.dashboard-tile h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--admin-text);
}

.dashboard-tile p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--admin-muted);
  line-height: 1.4;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: var(--admin-surface);
  color: #475569;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: transparent;
  color: var(--admin-muted);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s;
}

.btn-ghost:hover {
  color: var(--admin-primary);
  border-color: var(--admin-primary);
  background: #eff6ff;
}

.save-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--admin-border);
}

/* ─── Editor split + section preview ─── */
.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 42%);
  gap: 1.25rem;
  align-items: start;
}

.admin-editor-form {
  min-width: 0;
}

.admin-editor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 240px;
  text-align: center;
  color: var(--admin-muted);
}

.admin-editor-placeholder p {
  margin: 0;
  max-width: 360px;
  line-height: 1.5;
  font-size: 0.9rem;
}

.admin-editor-placeholder svg {
  color: #dc2626;
}

.admin-preview-panel {
  position: sticky;
  top: 5.25rem;
  min-width: 0;
}

.admin-preview-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.admin-preview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--admin-primary);
}

.admin-preview-panel-header h3 {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text);
}

.admin-preview-open {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--admin-muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: var(--admin-surface);
  white-space: nowrap;
}

.admin-preview-open:hover {
  color: var(--admin-primary);
  border-color: rgba(30, 64, 175, 0.25);
}

.admin-preview-panel .admin-preview-shell {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-lg);
  background: #0f172a;
}

.admin-preview-panel .admin-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-preview-panel .admin-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.admin-preview-panel .admin-preview-dot:nth-child(1) { background: #f87171; }
.admin-preview-panel .admin-preview-dot:nth-child(2) { background: #fbbf24; }
.admin-preview-panel .admin-preview-dot:nth-child(3) { background: #4ade80; }

.admin-preview-panel .admin-preview-url {
  margin-left: 0.45rem;
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(2, 7, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.admin-preview-panel .admin-preview-viewport {
  position: relative;
  overflow: hidden;
  background: #020710;
  width: 100%;
  isolation: isolate;
}

.admin-preview-stage,
.login-preview-stage {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.admin-preview-panel .admin-preview-iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
  pointer-events: auto;
  background: #fff;
}

.admin-preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
  background: #020710;
  z-index: 2;
}

.admin-preview-note {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--admin-muted);
  line-height: 1.4;
}

/* ─── Forms ─── */
.form-field {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--admin-text);
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--admin-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.form-preview {
  margin-bottom: 0.65rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--admin-border);
  max-height: 140px;
  background: #f1f5f9;
}

.form-preview img,
.form-preview video {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  display: block;
}

.form-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.form-upload-btn:hover {
  border-color: var(--admin-primary);
  color: var(--admin-primary);
  background: #eff6ff;
}

/* ─── Array editor ─── */
.array-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--admin-border);
}

.array-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.array-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-text);
}

.array-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: var(--admin-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s;
}

.array-add-btn:hover {
  background: var(--admin-primary-hover);
}

.array-item {
  background: #f8fafc;
  border-radius: var(--admin-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--admin-border);
}

.array-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--admin-border);
}

.array-item-badge {
  font-weight: 700;
  color: var(--admin-primary);
  font-size: 0.75rem;
  background: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.array-remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s;
}

.array-remove-btn:hover {
  background: #fee2e2;
}

/* ─── Login ─── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.login-preview {
  background: linear-gradient(160deg, #020710 0%, #0a1628 40%, #1e3a5f 100%);
  display: flex;
  flex-direction: column;
  padding: 2rem 2rem 2.25rem;
  gap: 1.25rem;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.login-preview::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.login-preview-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.login-preview-intro img {
  height: 40px;
  flex-shrink: 0;
}

.login-preview-intro h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.login-preview-intro h1 span {
  color: var(--admin-gold);
}

.login-preview-intro p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 420px;
}

.login-preview-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  transition: all 0.15s;
}

.login-preview-link:hover {
  color: #fff;
  border-color: rgba(255, 170, 0, 0.35);
  background: rgba(255, 170, 0, 0.08);
}

.login-preview-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(2, 7, 16, 0.45);
  background: #0f172a;
}

.login-preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.login-preview-dot:nth-child(1) { background: #f87171; }
.login-preview-dot:nth-child(2) { background: #fbbf24; }
.login-preview-dot:nth-child(3) { background: #4ade80; }

.login-preview-url {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(2, 7, 16, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.login-preview-viewport {
  position: relative;
  overflow: hidden;
  background: #020710;
  width: 100%;
  isolation: isolate;
}

.login-preview-iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
  pointer-events: auto;
  background: #fff;
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--admin-bg);
}

.login-card {
  background: var(--admin-surface);
  border-radius: var(--admin-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--admin-shadow-lg);
  border: 1px solid var(--admin-border);
}

.login-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--admin-text);
}

.login-card .login-subtitle {
  color: var(--admin-muted);
  font-size: 0.875rem;
  margin: 0 0 1.75rem;
}

.login-card .form-field {
  margin-bottom: 1rem;
}

.login-card .btn-primary {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc2626;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

/* ─── Toast & loading ─── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 100;
  animation: slideIn 0.3s ease;
  box-shadow: var(--admin-shadow-lg);
}

.toast.success {
  background: #fff;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.toast.error {
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
}

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

.admin-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--admin-bg);
  color: var(--admin-muted);
}

.admin-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--admin-border);
  border-top-color: var(--admin-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.settings-card {
  max-width: 480px;
}

.msg-success { color: #166534; font-size: 0.875rem; margin: 0.5rem 0; }
.msg-error { color: #dc2626; font-size: 0.875rem; margin: 0.5rem 0; }

/* ─── Mobile ─── */
.admin-mobile-toggle {
  display: none;
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 70;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--admin-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 16, 0.6);
  z-index: 55;
}

@media (min-width: 901px) {
  .admin-sidebar-overlay {
    display: none !important;
  }

  .admin-sidebar {
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-preview {
    min-height: auto;
    padding: 1.25rem 1rem 1rem;
    gap: 0.85rem;
  }

  .login-preview-intro {
    flex-wrap: wrap;
  }

  .login-preview-intro h1 {
    font-size: 1.25rem;
  }

  .login-preview-link {
    margin-left: 0;
  }

  .login-preview-shell {
    min-height: 220px;
  }

  .admin-mobile-toggle {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

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

  .admin-sidebar-overlay.visible {
    display: block;
  }

  .admin-main-wrap {
    margin-left: 0;
    width: 100%;
  }

  .admin-topbar {
    padding: 0.85rem 1rem 0.85rem 3.5rem;
  }

  .admin-main {
    padding: 1.25rem 1rem 2rem;
  }

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

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

  .admin-preview-panel {
    position: static;
    order: -1;
  }
}
