:root {
  --bg-dark: #0f1117;
  --bg-card: rgba(26, 31, 44, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-accent: #e6a817;
  --text-main: #f1f2f6;
  --text-muted: #8b9bb4;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent-gold: #f59e0b;
  --accent-cyan: #10b981;
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background atmosphere */
.background-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 20% 15%, rgba(59, 130, 246, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* Header */
.header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 23, 0.7);
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  font-size: 2.2rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 0.4rem 0.6rem;
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(90deg, #fff, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-accent { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.badge-gold { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.badge-cyan { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }

/* Main Container */
.main-container {
  max-width: 1300px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.editor-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mt-4 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.75rem; }

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(245, 158, 11, 0.03);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #e2e8f0;
}

.dropzone-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Orientation Filter Tabs */
.orientation-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.orient-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.orient-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.orient-tab.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-gold);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.auto-orient-notice {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}

.size-highlight-wide {
  border-color: rgba(96, 165, 250, 0.4);
}

.size-highlight-tall {
  border-color: rgba(216, 180, 254, 0.5);
  background: rgba(168, 85, 247, 0.08);
}

.size-btn-grand.size-highlight-tall:hover {
  border-color: #d8b4fe;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

/* Size Selector Grid */
.size-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.size-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s ease;
}

.size-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.size-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.size-val {
  font-weight: 700;
  font-size: 0.95rem;
}

.size-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Options Box */
.options-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.toggle-control input {
  display: none;
}

.toggle-slider {
  width: 36px;
  height: 20px;
  background: #334155;
  border-radius: 20px;
  position: relative;
  transition: 0.25s;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

.toggle-control input:checked + .toggle-slider {
  background: var(--accent-gold);
}

.toggle-control input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  margin-left: 2.85rem;
}

/* Admin Hidden Artwork Controls */
.admin-hidden-option {
  background: rgba(147, 51, 234, 0.12);
  border: 1px dashed rgba(168, 85, 247, 0.5);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.admin-toggle .toggle-label {
  color: #e9d5ff;
  font-weight: 600;
}

.admin-toggle input:checked + .toggle-slider {
  background: #a855f7 !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.cat-pill-admin-hidden {
  border-color: rgba(168, 85, 247, 0.5) !important;
  color: #d8b4fe !important;
  background: rgba(147, 51, 234, 0.12) !important;
}

.cat-pill-admin-hidden:hover {
  background: rgba(147, 51, 234, 0.25) !important;
  border-color: #c084fc !important;
  color: #fff !important;
}

.cat-pill-admin-hidden.active {
  background: rgba(168, 85, 247, 0.35) !important;
  border-color: #d8b4fe !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35) !important;
}

.art-card-tier-badge.hidden-badge {
  background: rgba(147, 51, 234, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.5);
}

/* Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.btn-primary {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Preview Panel */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.view-toggles {
  display: flex;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem;
  border-radius: 8px;
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.pill-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.canvas-wrapper {
  background: #181920;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 1.5rem;
}

.empty-state {
  text-align: center;
  max-width: 340px;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Minecraft Wall Scene */
.wall-scene {
  width: 100%;
  min-height: 480px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    radial-gradient(#303642 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px;
  padding: 2rem;
  border-radius: 8px;
}

.frame-container {
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  border: 6px solid #2d241e; /* Wooden frame look */
  border-radius: 4px;
  display: inline-block;
  overflow: hidden;
  box-sizing: content-box;
  flex-shrink: 0;
}

#mainCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.block-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Info Bar */
.info-bar {
  display: flex;
  justify-content: space-around;
  margin-top: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

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

.info-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-content {
  background: #1a1e2b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  text-align: center;
  animation: modalIn 0.25s ease-out forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.code-box {
  background: rgba(245, 158, 11, 0.1);
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.code-prefix {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.code-number {
  font-family: monospace;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: #fff;
}

.command-box {
  text-align: left;
  margin-bottom: 1.5rem;
}

.command-box label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.input-with-button input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: monospace;
  font-size: 0.9rem;
}

.btn-copy {
  background: var(--primary);
  color: #fff;
  padding: 0 1rem;
  font-size: 0.85rem;
}

.btn-copy:hover {
  background: var(--primary-hover);
}

.instruction-steps {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-num {
  background: var(--accent-gold);
  color: #000;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step p {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.step code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.nav-tab {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
}

/* Gallery View */
.gallery-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.gallery-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 600px;
}

.gallery-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  pointer-events: none;
  font-size: 0.85rem;
  opacity: 0.6;
}

.search-box input {
  background: rgba(15, 17, 23, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Artwork Card */
.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

.art-card-thumb-wrap {
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at center, #262c38, #11141c);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.art-card-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border: 3px solid #3d2f23; /* Minecraft item frame border look */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.art-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.art-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.art-card-code {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.art-card-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
}

.art-card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.art-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.art-card-actions .btn-copy {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.6rem 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.art-card-actions .btn-copy:hover {
  background: var(--primary);
  color: #fff;
}

.art-card-actions .btn-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.art-card-actions .btn-delete:hover {
  background: #ef4444;
  color: #fff;
}

/* Spinner & Loading */
.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Moderator Mode Button */
.btn-mod {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-mod:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-mod.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Duplicate Notice in Modal */
.duplicate-notice {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Token Input Field */
.token-input-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.token-field {
  background: rgba(15, 17, 23, 0.8);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  outline: none;
  transition: all 0.2s;
}

.token-field:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.mt-3 {
  margin-top: 1rem;
}

/* ============================================================
   STAFF HEADER & AUTH BUTTONS
   ============================================================ */
.staff-header-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.staff-logged-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 0.2rem 0.6rem 0.2rem 0.8rem;
}

.staff-user-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fbbf24;
}

.btn-danger-soft {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* ============================================================
   SIZE SELECTORS (STANDARD & GRAND)
   ============================================================ */
.size-group-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.size-btn-grand {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
}

.size-btn-grand:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(168, 85, 247, 0.15);
}

.size-btn-grand.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.25));
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

.tier-warning-notice {
  margin-top: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.8rem;
  color: #93c5fd;
}

.tier-warning-notice.grand-alert {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}

/* ============================================================
   FIT MODE SELECTOR (COVER / CONTAIN / STRETCH)
   ============================================================ */
.fit-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.fit-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.fit-btn span {
  font-size: 0.82rem;
  font-weight: 600;
}

.fit-btn small {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.fit-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.fit-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* ============================================================
   FORM FIELDS & INPUTS
   ============================================================ */
.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.flex-1 {
  flex: 1;
}

.form-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.text-field {
  background: rgba(15, 17, 23, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.2s;
  width: 100%;
}

.text-field:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.select-field {
  cursor: pointer;
}

.select-field option {
  background: #1a1f2c;
  color: #fff;
}

/* ============================================================
   CATEGORY FILTER BAR (GALLERY)
   ============================================================ */
.category-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cat-pill.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: #fbbf24;
  font-weight: 600;
}

/* ============================================================
   ART CARD ENHANCEMENTS & AUDIT BADGES
   ============================================================ */
.art-card-category-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.art-card-tier-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.art-card-tier-badge.grand {
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}

.art-card-tier-badge.standard {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.art-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-audit-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.art-audit-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.art-audit-label {
  color: #fca5a5;
  font-weight: 600;
}

.art-audit-val {
  color: #fef08a;
  font-family: monospace;
}

/* ============================================================
   STAFF AUTH & DASHBOARD MODALS
   ============================================================ */
.modal-auth-content {
  max-width: 420px;
  width: 90%;
}

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

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

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

.modal-dashboard-content {
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.role-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.dash-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.dash-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.dash-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dash-tab.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.dash-pane {
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.dash-pane.active {
  display: flex;
}

.token-generator-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem;
}

.token-generator-card h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.token-create-form, .mod-create-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) auto;
  gap: 0.75rem;
  align-items: flex-end;
}

.section-sub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.section-sub-head h4 {
  font-size: 0.95rem;
  color: #fff;
}

/* ============================================================
   DATA TABLES (TOKENS, MODERATORS, AUDIT LOG)
   ============================================================ */
.tokens-table-wrap {
  background: rgba(15, 17, 23, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow-x: auto;
}

.audit-scroll-wrap {
  max-height: 400px;
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.data-table th {
  background: rgba(26, 31, 44, 0.9);
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.token-code-text {
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-gold);
  cursor: pointer;
}

.token-code-text:hover {
  text-decoration: underline;
}

/* IP Badges */
.ip-badge-safe {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

.ip-badge-warn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulseWarn 2s infinite;
}

@keyframes pulseWarn {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.status-active {
  color: #34d399;
  font-weight: 600;
}

.status-blocked {
  color: #f87171;
  font-weight: 600;
}
