/* ============================================
   STONE GALLERIES - ADMIN STYLESHEET
   ============================================ */

:root {
  --admin-bg: #0e1117;
  --admin-sidebar: #161b22;
  --admin-text: #e6edf3;
  --admin-text-secondary: #8b949e;
  --accent-gold: #D4AF37;
  --primary-green: #1a472a;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --border-color: rgba(255, 255, 255, 0.87);
  --sidebar-w: 280px;
  --header-h: 60px;
  --font-inter: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  background: var(--admin-bg);
  color: var(--admin-text);
}

/* ============================================
   ADMIN LOGO ICON (polygon/hexagon)
   ============================================ */

.admin-logo-icon,
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.login-logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.35));
}

/* Login logo */
.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.login-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.login-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-brand-text span { color: var(--accent-gold); }

.login-brand-sub {
  font-size: 0.72rem;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Sidebar logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
  flex: 1;
}

.sidebar-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-brand-name span { color: var(--accent-gold); }

.sidebar-brand-sub {
  font-size: 0.66rem;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #080101e6;
}

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

.login-box {
  background: rgba(9, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

/* External nav item style */
.nav-item-external {
  margin-top: 8px;
  border-top: 1px solid #30363d;
  padding-top: 16px;
  color: var(--admin-text-secondary) !important;
}

.nav-item-external:hover {
  color: var(--accent-gold) !important;
}

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

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

.login-form label {
  color: var(--admin-text);
  font-weight: 500;
  font-size: 14px;
}

.login-form input {
  padding: 12px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: var(--admin-text);
  font-size: 14px;
  transition: border-color 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(186,149,100, 0.1);
}

.btn-login {
  padding: 12px;
  background: var(--accent-gold);
  color: var(--primary-green);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-login:hover {
  background: #a8845a;
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #30363d;
}

.login-footer p {
  color: var(--admin-text-secondary);
  font-size: 12px;
}

/* ============================================
   ADMIN CONTAINER
   ============================================ */

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

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
  width: var(--sidebar-w);
  background: var(--admin-sidebar);
  border-right: 1px solid #30363d;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  margin-bottom: 40px;
  text-align: center;
}

.sidebar-header h2 {
  color: var(--accent-gold);
  font-size: 18px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-header p {
  color: var(--admin-text-secondary);
  font-size: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--admin-text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background: #21262d;
  color: var(--admin-text);
}

.nav-item.active {
  background: var(--primary-green);
  color: var(--accent-gold);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #30363d;
}

.btn-logout {
  width: 100%;
  padding: 10px;
  background: #da3633;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  font-size: 14px;
}

.btn-logout:hover {
  background: #f85149;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: var(--admin-sidebar);
  border-bottom: 1px solid #30363d;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  font-size: 24px;
  color: var(--admin-text);
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.user-info {
  color: var(--admin-text-secondary);
  font-size: 14px;
}

/* ============================================
   TAB CONTENT
   ============================================ */

.tab-content {
  display: none;
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--admin-sidebar);
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.gallery {
  background: rgba(186,149,100, 0.1);
  color: var(--accent-gold);
}

.stat-icon.slots {
  background: rgba(26, 71, 42, 0.1);
  color: var(--primary-green);
}

.stat-icon.contacts {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
}

.stat-icon.unread {
  background: rgba(243, 156, 18, 0.1);
  color: var(--warning);
}

.stat-content h3 {
  font-size: 28px;
  color: var(--admin-text);
  margin-bottom: 5px;
}

.stat-content p {
  color: var(--admin-text-secondary);
  font-size: 12px;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions {
  margin-bottom: 40px;
}

.quick-actions h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--admin-text);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.action-btn {
  background: var(--admin-sidebar);
  border: 2px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  color: var(--admin-text);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  font-family: var(--font-inter);
  font-weight: 600;
}

.action-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.action-btn i {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}

/* ============================================
   GALLERY MANAGER
   ============================================ */

.gallery-manager h2 {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--admin-text);
}

.gallery-manager h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--admin-text);
  margin-top: 30px;
}

.upload-section {
  background: var(--admin-sidebar);
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
}

.upload-area {
  border: 2px dashed #30363d;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 15px;
}

.upload-area:hover {
  border-color: var(--accent-gold);
  background: rgba(186,149,100, 0.05);
}

.upload-area i {
  font-size: 48px;
  color: var(--accent-gold);
  margin-bottom: 15px;
  display: block;
}

.upload-area p {
  color: var(--admin-text-secondary);
  font-size: 14px;
}

.upload-info {
  color: var(--admin-text-secondary);
  font-size: 12px;
  margin-bottom: 15px;
}

/* Upload metadata form */
.upload-meta-form {
  margin-top: 16px;
  border: 1px solid rgba(186,149,100,0.35);
  border-radius: 8px;
  padding: 20px;
  background: rgba(186,149,100,0.04);
}

.meta-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #30363d;
}

.upload-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #30363d;
  flex-shrink: 0;
}

.upload-fname {
  font-size: 13px;
  color: var(--admin-text-secondary);
  word-break: break-all;
}

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

.meta-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #30363d;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #30363d;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gold);
  width: 0%;
  transition: width 0.3s;
}

#uploadProgress {
  margin-top: 20px;
}

#uploadStatus {
  color: var(--admin-text-secondary);
  font-size: 12px;
  margin-top: 10px;
}

/* ============================================
   GALLERY IMAGES
   ============================================ */

.gallery-list {
  background: var(--admin-sidebar);
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.image-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #0e1117;
  border: 1px solid #30363d;
  display: flex;
  flex-direction: column;
}

/* Metadata badges on admin gallery cards */
.image-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.img-cat-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--accent-gold);
  color: #1a1a1a;
  align-self: flex-start;
}

.img-stone-name {
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.image-item:hover .image-actions {
  opacity: 1;
}

.btn-delete {
  background: #da3633;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
}

.btn-delete:hover {
  background: #f85149;
}

/* ============================================
   INQUIRIES MANAGER
   ============================================ */

.inquiries-manager h2 {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--admin-text);
}

.inquiries-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.inquiry-card {
  background: var(--admin-sidebar);
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inquiry-card:hover {
  border-color: var(--accent-gold);
}

.inquiry-card.unread {
  border-left: 4px solid var(--accent-gold);
}

.inquiry-info {
  flex: 1;
}

.inquiry-name {
  color: var(--admin-text);
  font-weight: 600;
  margin-bottom: 5px;
}

.inquiry-email {
  color: var(--admin-text-secondary);
  font-size: 12px;
  margin-bottom: 5px;
}

.inquiry-message {
  color: var(--admin-text-secondary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.inquiry-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
}

.inquiry-status.unread {
  background: rgba(243, 156, 18, 0.1);
  color: var(--warning);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--admin-sidebar);
  border: 1px solid #30363d;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #30363d;
}

.modal-header h2 {
  color: var(--admin-text);
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--admin-text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.3s;
}

.modal-close:hover {
  background: #30363d;
  color: var(--admin-text);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #30363d;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ============================================
   DETAIL FIELDS
   ============================================ */

.detail-field {
  margin-bottom: 20px;
}

.detail-label {
  color: var(--admin-text-secondary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
}

.detail-value {
  color: var(--admin-text);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-secondary {
  padding: 10px 16px;
  background: var(--admin-sidebar);
  color: var(--admin-text);
  border: 1px solid #30363d;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-primary {
  padding: 10px 16px;
  background: var(--accent-gold);
  color: var(--primary-green);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  font-size: 14px;
}

.btn-primary:hover {
  background: #a8845a;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px 24px;
  background: var(--primary-green);
  color: white;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .admin-main {
    margin-left: 200px;
  }

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

  .images-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .inquiry-message {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    z-index: 999;
    transition: left 0.3s;
  }

  .sidebar.open {
    left: 0;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-header {
    padding: 15px;
  }

  .admin-header h1 {
    font-size: 18px;
  }

  .tab-content {
    padding: 15px;
  }

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

  .stat-card {
    flex-direction: column;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

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

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

  .inquiry-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .inquiry-message {
    max-width: 100%;
    margin-top: 5px;
  }

  .modal-content {
    width: 95%;
  }

  .modal-footer {
    flex-direction: column;
  }

  .toast {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .upload-area {
    padding: 20px;
  }

  .upload-area i {
    font-size: 32px;
  }

  .stat-content h3 {
    font-size: 24px;
  }

  .quick-actions h2,
  .gallery-manager h2,
  .inquiries-manager h2 {
    font-size: 16px;
  }
}

/* ── Clients tab ─────────────────────────── */
.section-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--admin-text-secondary); font-size: 13px; margin-bottom: 20px; line-height: 1.6;
}
.clients-list { display: flex; flex-direction: column; gap: 12px; }
.client-card {
  background: #161b22; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 16px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  transition: border-color 0.2s;
}
.client-card:hover { border-color: var(--accent-gold); }
.client-card.client-inactive { opacity: 0.6; }
.client-info { flex: 1; min-width: 200px; }
.client-name { font-weight: 700; font-size: 15px; color: var(--admin-text); margin-bottom: 2px; }
.client-email { font-size: 12px; color: var(--admin-text-secondary); margin-bottom: 6px; }
.client-key-row { display: flex; align-items: center; gap: 8px; }
.client-key { font-family: monospace; font-size: 12px; color: var(--accent-gold); background: rgba(186,149,100,0.1); padding: 3px 8px; border-radius: 4px; }
.btn-icon { background: none; border: none; color: var(--admin-text-secondary); cursor: pointer; font-size: 12px; padding: 2px 5px; }
.btn-icon:hover { color: var(--accent-gold); }
.client-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-badge, .status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.plan-badge { background: rgba(186,149,100,0.15); color: var(--accent-gold); }
.status-badge.active { background: rgba(39,174,96,0.15); color: var(--success); }
.status-badge.inactive { background: rgba(231,76,60,0.15); color: var(--danger); }
.client-since { font-size: 11px; color: var(--admin-text-secondary); }
.client-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: var(--admin-text);
  cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.2s; white-space: nowrap;
}
.btn-action:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-action.btn-warn:hover { border-color: var(--warning); color: var(--warning); }
.btn-action.btn-success:hover { border-color: var(--success); color: var(--success); }
.btn-action.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.loading-text { color: var(--admin-text-secondary); text-align: center; padding: 20px 0; }

/* Embed code */
.embed-intro { color: var(--admin-text-secondary); font-size: 13px; margin-bottom: 12px; }
.embed-code {
  background: #0d1117; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 14px; font-family: monospace; font-size: 12px;
  color: #79c0ff; line-height: 1.7; white-space: pre-wrap; word-break: break-all;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--admin-text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select {
  width: 100%; padding: 9px 12px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1); background: #0d1117;
  color: var(--admin-text); font-size: 13px; outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent-gold); }

/* Gallery context bar */
.gallery-context { margin-bottom: 16px; }
.gallery-context-client { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(186,149,100,0.1); border: 1px solid rgba(186,149,100,0.3); border-radius: 6px; }
.btn-back { background: none; border: 1px solid rgba(186,149,100,0.4); color: var(--accent-gold); padding: 5px 12px; border-radius: 5px; cursor: pointer; font-size: 12px; }
.btn-back:hover { background: rgba(186,149,100,0.15); }
.sv-hidden { display: none !important; }
