
:root {
  --bg: #0a0a0a;
  --surface: #101010;
  --surface-light: #141414;
  --text-primary: #f5f5f5;
  --text-secondary: #a1a1a1;
  --text-muted: #666666;
  --border: #262626;
  --border-hover: #3a3a3a;
  --accent: #ffffff;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --status-green: #10b981;
  --status-red: #ff4757;
  --status-amber: #ffa726;
  --glass-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(20, 20, 20, 0.5) 100%);
  --glass-border: rgba(255, 255, 255, 0.15);
  --sidebar-w: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}

.admin-login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 60%), var(--bg);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.login-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.05em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}

.login-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px 12px 40px;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}

.login-input:focus {
  border-color: var(--status-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.login-input::placeholder {
  color: var(--text-muted);
}

.login-toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  transition: color 0.2s;
}

.login-toggle-pw:hover {
  color: var(--text-secondary);
}

.login-error {
  font-size: 13px;
  color: var(--status-red);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}

.login-error.show {
  max-height: 60px;
  padding: 8px 0 0;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--status-green);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s;
  margin-top: 6px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
}

.login-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.login-back-link:hover {
  color: var(--text-secondary);
}

.admin-dashboard {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s var(--ease);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-name {
  font-size: 15px;
  font-weight: 700;
}

.sidebar-brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-close-btn {
  display: none;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.15s ease;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
}

.sidebar-nav-group {
  margin-bottom: 8px;
}

.sidebar-nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 10px 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
}

.sidebar-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar-nav-item:hover i {
  color: var(--text-secondary);
}

.sidebar-nav-item.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--status-green);
}

.sidebar-nav-item.active i {
  color: var(--status-green);
}

.badge-count {
  margin-left: auto;
  background: var(--status-green);
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-mono);
  line-height: 1;
}

.msg-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  width: 100%;
  text-align: left;
}

.sidebar-footer-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar-footer-btn.logout-btn:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--status-red);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
}

.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  padding: 32px;
  max-width: calc(100vw - var(--sidebar-w));
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.admin-page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}

.overview-card:hover {
  border-color: var(--border-hover);
}

.overview-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--status-green);
  font-size: 14px;
  margin-bottom: 12px;
}

.overview-card-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.overview-card-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

.editor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.editor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.editor-card-title {
  font-size: 15px;
  font-weight: 600;
}

.editor-card-body {
  padding: 20px;
}

.editor-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.field-group {
  margin-bottom: 18px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: var(--status-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-muted);
}

.field-textarea {
  resize: vertical;
  min-height: 80px;
}

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

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-admin:hover {
  transform: translateY(-1px);
}

.btn-admin:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-save {
  background: var(--status-green);
  color: #000;
  border-color: var(--status-green);
}

.btn-save:hover {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-cancel {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-cancel:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: transparent;
  color: var(--status-red);
  border-color: rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 71, 87, 0.1);
  border-color: var(--status-red);
}

.btn-add {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  width: 100%;
  justify-content: center;
  padding: 12px;
}

.btn-add:hover {
  border-color: var(--status-green);
  color: var(--status-green);
  background: rgba(16, 185, 129, 0.05);
}

.editor-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editor-list-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s;
}

.editor-list-item:hover {
  border-color: var(--border-hover);
}

.editor-list-item-content {
  flex: 1;
  min-width: 0;
}

.editor-list-item-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.editor-list-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-list-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.item-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.item-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border);
}

.item-action-btn.delete-btn:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--status-red);
  border-color: rgba(255, 71, 87, 0.3);
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--status-green);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(16px);
  background: #000;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--status-green);
}

.toast-error {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: var(--status-red);
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.confirm-overlay.show {
  opacity: 1;
  visibility: visible;
}

.confirm-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 71, 87, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--status-red);
  font-size: 20px;
  margin-bottom: 16px;
}

.confirm-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.confirm-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  padding: 20px;
}

.edit-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.edit-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.edit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.edit-modal-title {
  font-size: 16px;
  font-weight: 700;
}

.edit-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.edit-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.edit-modal-body {
  padding: 22px;
}

.edit-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--surface);
}

.edited-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--status-amber);
  background: rgba(255, 167, 38, 0.1);
  border: 1px solid rgba(255, 167, 38, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .sidebar-toggle {
    display: flex;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 250;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(16, 16, 16, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  }

  .sidebar-close-btn {
    display: flex;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    z-index: 300;
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.6);
  }

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

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 290;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .admin-main {
    margin-left: 0;
    max-width: 100vw;
    width: 100%;
    padding: 24px 20px;
    padding-top: 68px;
  }

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

@media (max-width: 768px) {
  .admin-main {
    padding: 20px 14px;
    padding-top: 66px;
  }

  .admin-main-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
  }

  .overview-card {
    padding: 16px;
  }

  .overview-card-value {
    font-size: 22px;
  }

  .editor-card {
    margin-bottom: 16px;
  }

  .editor-card-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .editor-card-body {
    padding: 16px 14px;
  }

  .editor-card-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .editor-card-footer .btn-admin {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  .editor-list-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .edit-modal-overlay {
    padding: 10px;
  }

  .edit-modal,
  .project-edit-modal {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .edit-modal-header {
    padding: 14px 16px;
  }

  .edit-modal-body {
    padding: 16px 14px;
  }

  .edit-modal-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .edit-modal-footer .btn-admin {
    flex: 1;
    justify-content: center;
    min-width: 100px;
  }

  .project-images-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }

  .media-upload-dropzone {
    padding: 20px 12px;
  }

  .cert-source-group {
    flex-direction: column;
    gap: 8px;
  }

  .cert-source-pill {
    padding: 9px 12px;
  }

  .msg-inbox-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .msg-inbox-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .msg-inbox-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 6px;
  }

  .msg-action-btn {
    flex: 1;
    min-width: 70px;
    justify-content: center;
  }

  .resume-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .resume-actions-row .btn-admin,
  .resume-actions-row .resume-preview-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sidebar-toggle {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .admin-main {
    padding: 14px 10px;
    padding-top: 60px;
  }

  .admin-page-title {
    font-size: 19px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .overview-card {
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .overview-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .overview-card-value {
    font-size: 20px;
  }

  .editor-card-header {
    padding: 12px 14px;
  }

  .editor-card-body {
    padding: 14px 12px;
  }

  .field-input,
  .field-textarea,
  .field-select {
    font-size: 13.5px;
    padding: 9px 12px;
  }

  .btn-admin {
    font-size: 12.5px;
    padding: 8px 12px;
  }

  .editor-list-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .editor-list-item-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .project-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tech-custom-input-row {
    flex-direction: column;
    gap: 8px;
  }

  .tech-custom-input-row .btn-admin {
    width: 100%;
    justify-content: center;
  }

  .toast {
    left: 10px;
    right: 10px;
    bottom: 12px;
    width: auto;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 12px;
  }

  .login-container {
    padding: 12px;
  }

  .login-card {
    padding: 26px 18px;
    border-radius: 14px;
  }

  .login-title {
    font-size: 20px;
  }

  .confirm-dialog {
    padding: 22px 16px;
  }

  .confirm-actions {
    flex-direction: column;
    gap: 8px;
  }

  .confirm-actions .btn-admin {
    width: 100%;
    justify-content: center;
  }

  .hv-code-box {
    font-size: 11px;
    padding: 10px;
  }
}

.msg-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-inbox-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.msg-inbox-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.msg-inbox-card.is-unread {
  border-left: 4px solid var(--status-green, #10b981);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 2px 14px rgba(16, 185, 129, 0.08);
}

.msg-inbox-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.msg-inbox-sender {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.msg-unread-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green, #10b981);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
  flex-shrink: 0;
}

.msg-sender-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #f3f4f6);
}

.msg-sender-email {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted, #9ca3af);
  font-family: var(--font-mono, monospace);
}

.msg-inbox-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.msg-relay-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--status-green, #10b981);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
}

.msg-timestamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
  font-family: var(--font-mono, monospace);
  font-weight: 500;
  opacity: 0.85;
}

.msg-inbox-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #f9fafb);
  margin-top: 2px;
}

.msg-inbox-preview {
  font-size: 13px;
  color: var(--text-muted, #9ca3af);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-inbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.msg-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-display, inherit);
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary, #f1f3f5);
  text-decoration: none;
  transition: all 0.15s ease;
}

.msg-action-btn:hover {
  background: rgba(16, 185, 129, 0.14);
  color: var(--status-green, #10b981);
  border-color: rgba(16, 185, 129, 0.35);
}

.msg-action-btn.reply-btn:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.msg-action-btn.delete-btn {
  padding: 7px 10px;
}

.msg-action-btn.delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.project-edit-modal {
  max-width: 760px;
}

.domain-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.domain-pill-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  user-select: none;
}

.domain-pill-choice:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.domain-pill-choice.selected {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  font-weight: 600;
}

.domain-pill-choice.selected i {
  color: #10b981;
}

.tech-stack-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 6px;
}

.tech-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  min-height: 28px;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.tech-chip-remove {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  transition: color 0.15s ease;
}

.tech-chip-remove:hover {
  color: #ef4444;
}

.tech-presets-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tech-presets-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tech-preset-pill {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tech-preset-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.tech-custom-input-row {
  display: flex;
  gap: 8px;
}

.media-manager-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
}

.media-upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.2s ease;
  position: relative;
}

.media-upload-dropzone:hover,
.media-upload-dropzone.dragover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.media-upload-dropzone i {
  font-size: 28px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.media-dropzone-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.media-dropzone-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.project-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.project-image-item {
  position: relative;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-image-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0d0d0d;
}

.project-image-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border);
}

.img-action-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.img-action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.img-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.img-action-btn.del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.video-preview-wrapper {
  margin-top: 12px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.video-preview-player {
  width: 100%;
  max-height: 220px;
  background: #000;
  display: block;
}

.video-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--border);
}

.video-meta-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cert-source-group {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.cert-source-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  user-select: none;
}

.cert-source-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.cert-source-pill.selected {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  font-weight: 600;
}

.cert-preview-wrapper {
  margin-top: 14px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.cert-preview-img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 10px;
  background: #0a0a0a;
}

.cert-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid var(--border);
}

.cert-preview-tag {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cert-convert-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.cert-convert-loading i {
  font-size: 24px;
  color: #10b981;
  animation: spin 1s linear infinite;
}

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

.hv-preview-window {
  background: #0d0e11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hv-preview-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hv-preview-body {
  padding: 18px 20px;
}

.hv-preview-q {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.hv-preview-a {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.hv-code-box {
  background: #060708;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #d1d5db;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.syn-kw { color: #f43f5e; font-weight: 600; }
.syn-op { color: #94a3b8; }
.syn-str { color: #10b981; }
.syn-fn { color: #60a5fa; }

.resume-manager-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.resume-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #60a5fa;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.resume-preview-btn:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: #60a5fa;
  color: #93c5fd;
}

/* ==========================================================================
   Gallery Admin Image Management Styles
   ========================================================================== */

.gal-quick-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.25s ease;
  margin-bottom: 22px;
}

.gal-quick-dropzone:hover,
.gal-quick-dropzone.dragover {
  border-color: var(--status-green);
  background: rgba(16, 185, 129, 0.05);
}

.gal-quick-dropzone i {
  font-size: 34px;
  color: var(--status-green);
  margin-bottom: 10px;
  display: block;
}

.gal-quick-dropzone-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.gal-quick-dropzone-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.gallery-admin-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.gallery-admin-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gallery-admin-card.is-disabled {
  opacity: 0.55;
}

.gallery-admin-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #080808;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-admin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-admin-card:hover .gallery-admin-thumb {
  transform: scale(1.03);
}

.gallery-admin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--status-green);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-admin-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.gallery-admin-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.gallery-admin-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-admin-card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gal-preview-container {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #080808;
  overflow: hidden;
}

.gal-preview-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  background: #050505;
}

.gal-preview-bar {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Management UI Styles
   ========================================================================== */
.section-manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.section-filter-tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.section-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-display);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-filter-btn:hover {
  color: var(--text-primary);
}

.section-filter-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

.section-manager-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-manager-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.section-manager-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
}

.section-manager-card.is-hidden-section {
  opacity: 0.72;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.section-manager-card.is-hidden-section:hover {
  opacity: 0.92;
}

.section-order-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.section-order-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

.section-order-btn-group {
  display: flex;
  gap: 3px;
}

.section-order-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 26px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.15s;
}

.section-order-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.section-order-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.section-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--status-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.section-manager-card.is-hidden-section .section-icon-box {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.section-info-block {
  flex: 1;
  min-width: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.section-card-heading {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.section-id-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.section-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.section-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-status-pill.visible {
  background: rgba(16, 185, 129, 0.12);
  color: var(--status-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.section-status-pill.hidden {
  background: rgba(255, 167, 38, 0.12);
  color: var(--status-amber);
  border: 1px solid rgba(255, 167, 38, 0.25);
}

.section-ctrl-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.section-nav-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-nav-input-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-nav-input {
  width: 110px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.15s;
}

.section-nav-input:focus {
  border-color: var(--status-green);
  background: rgba(255, 255, 255, 0.06);
}

.section-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .section-manager-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-ctrl-group {
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.admin-page-footer {
  margin-top: 48px;
  padding: 24px 0 16px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.admin-page-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-page-footer strong {
  color: var(--text-primary);
  font-weight: 600;
}