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

:root {
  --accent: #6c7bff;
  --accent-rgb: 108, 123, 255;
  --accent-grad-end: #8b5cf6;
}
body.theme-neon-green  { --accent: #00ff88; --accent-rgb: 0, 255, 136; --accent-grad-end: #00cc6a; }
body.theme-cyber-pink  { --accent: #ff2d78; --accent-rgb: 255, 45, 120; --accent-grad-end: #e61a6d; }
body.theme-liquid-gold { --accent: #ffb347; --accent-rgb: 255, 179, 71; --accent-grad-end: #ff9500; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Particle Canvas ─── */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ─── Glass Utility ─── */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(100, 120, 255, 0.15);
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

/* Glitch */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.glitch::before {
  color: #ff6b6b;
  z-index: -1;
  animation: glitchShift 3s infinite linear alternate-reverse;
}
.glitch::after {
  color: var(--accent);
  z-index: -2;
  animation: glitchShift 2.8s infinite linear alternate-reverse;
}

@keyframes glitchShift {
  0%   { transform: translate(0); }
  20%  { transform: translate(-2px, 2px); }
  40%  { transform: translate(2px, -1px); }
  60%  { transform: translate(-1px, -2px); }
  80%  { transform: translate(1px, 1px); }
  100% { transform: translate(0); }
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 40px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  display: inline-block;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-grad-end));
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5);
}
.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn.secondary:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.theme-picker {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.theme-picker-label {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.theme-options {
  display: flex;
  gap: 8px;
}
.theme-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: var(--swatch, var(--accent));
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
  outline: none;
}
.theme-btn:hover {
  transform: scale(1.25);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 16px var(--swatch, var(--accent));
}
.theme-btn.active {
  border-color: #fff;
  box-shadow: 0 0 20px var(--swatch, var(--accent));
  transform: scale(1.15);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ─── Page Banner ─── */
.page-banner {
  position: relative;
  z-index: 1;
  padding: 140px 24px 40px;
  text-align: center;
}
.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.page-banner h1 span { color: var(--accent); }
.page-banner p {
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-content {
  max-width: 600px;
  width: 100%;
  padding: 40px;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.modal-close:hover { color: #fff; }

.modal-image {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 360px;
  background: rgba(0,0,0,0.3);
}
.modal-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 360px;
}

.modal-info h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.modal-info p {
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}
.modal-category {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── Sections ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}
.section-title span { color: var(--accent); }

.section-sub {
  text-align: center;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
}

/* ─── Viewer Section (Tool page — upload + 360°) ─── */
.viewer-section {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.viewer-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.viewer-canvas canvas {
  display: block;
}

.drop-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 24px;
}
.drop-zone {
  padding: 60px 48px;
  text-align: center;
  cursor: pointer;
  max-width: 420px;
  width: 100%;
  transition: border-color 0.3s, background 0.3s;
  border: 2px dashed rgba(255,255,255,0.08);
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}
.drop-icon { font-size: 3rem; margin-bottom: 16px; }
.drop-zone h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.drop-zone p { color: rgba(255,255,255,0.4); font-size: 0.95rem; }
.drop-formats {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.model-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
  justify-content: center;
}
.model-bar-name {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.toggle-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
  cursor: pointer;
}
.btn.small {
  padding: 6px 16px;
  font-size: 0.8rem;
}

.bar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar-label {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
}
.bar-group input[type="range"] {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.bar-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.bar-group input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.bar-value {
  color: #fff;
  font-size: 0.85rem;
  min-width: 32px;
  text-align: center;
  font-weight: 500;
}

.rot-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rot-group .bar-label {
  min-width: 14px;
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  font-weight: 600;
}
.rot-slider {
  width: 56px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.rot-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.rot-slider::-moz-range-thumb {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.rot-val {
  min-width: 28px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.dropdown-wrap {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 10;
  background: rgba(15, 15, 22, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 4px;
  min-width: 140px;
}
.dropdown-menu.open { display: flex; flex-direction: column; gap: 2px; }
.dropdown-item {
  padding: 8px 14px;
  background: none;
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  font-family: inherit;
}
.dropdown-item:hover {
  background: rgba(var(--accent-rgb), 0.15);
  color: #fff;
}

.material-panel {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px 20px;
  gap: 12px;
  flex-direction: column;
  min-width: 220px;
}
.material-panel.open {
  display: flex;
}
.mat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mat-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 60px;
}
.mat-row input[type="color"] {
  width: 36px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: none;
  cursor: pointer;
}
.mat-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.mat-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}
.mat-slider {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.mat-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.mat-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.mat-value {
  color: #fff;
  font-size: 0.8rem;
  min-width: 32px;
  text-align: center;
  font-weight: 500;
}

.transform-modes {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 2px;
}
.transform-btn {
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.transform-btn:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
}
.transform-btn.active {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
}

.viewer-watermark {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.1);
  font-size: 0.8rem;
  letter-spacing: 2px;
  z-index: 1;
  pointer-events: none;
}

/* 3D CSS Cube (general) */
.cube-3d {
  width: 80px; height: 80px;
  position: relative;
  transform-style: preserve-3d;
}
.cube-3d.spin {
  animation: spinCube 8s infinite linear;
}
.cube-3d .face {
  position: absolute;
  width: 80px; height: 80px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.08);
}
.cube-3d .front  { transform: translateZ(40px); }
.cube-3d .back   { transform: rotateY(180deg) translateZ(40px); }
.cube-3d .left   { transform: rotateY(-90deg) translateZ(40px); }
.cube-3d .right  { transform: rotateY(90deg) translateZ(40px); }
.cube-3d .top    { transform: rotateX(90deg) translateZ(40px); }
.cube-3d .bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes spinCube {
  0%   { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ─── Portfolio ─── */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-item {
  overflow: hidden;
  cursor: pointer;
}

.portfolio-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  transition: transform 0.5s;
  overflow: hidden;
  position: relative;
}
.portfolio-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 16px 20px;
}
.portfolio-info h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}
.portfolio-info p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ─── Skills ─── */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.skill-item {
  padding: 12px 28px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
}
.skill-item:hover {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.3);
}

/* ─── Contact ─── */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 24px;
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    transition: transform 0.4s;
  }
  .nav-links.open { transform: translateY(0); }

  .hamburger { display: flex; }

  .drop-zone { padding: 40px 24px; }
  .model-bar { bottom: 16px; padding: 8px 14px; gap: 8px; }
  .rot-slider { width: 40px; }
  .dropdown-menu { left: auto; right: 0; }
  .contact-form { padding: 24px; }
}

/* ─── Pricing Tool ─── */
.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}
.pricing-drop {
  padding: 60px 40px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
.pricing-drop:hover,
.pricing-drop.drag-over {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}
.pricing-drop-icon {
  color: rgba(255,255,255,0.2);
  margin-bottom: 16px;
}
.pricing-drop h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.pricing-drop p {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}
.pricing-preview {
  border-radius: 12px;
  overflow: hidden;
  max-height: 300px;
  margin-bottom: 8px;
}
.pricing-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 300px;
}
.pricing-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 24px;
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.pricing-result-label {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pricing-result-value {
  color: var(--accent);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* ─── Admin Panel ─── */
.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
}

.admin-form, .admin-list {
  padding: 32px;
}

.admin-form-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}
.admin-form input:focus,
.admin-form select:focus {
  border-color: var(--accent);
}
.admin-form select option {
  background: #1a1a2e;
  color: #fff;
}

.file-upload-wrap {
  margin-bottom: 12px;
}
.file-upload-label {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px dashed rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  text-align: center;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  transition: border-color 0.3s, color 0.3s;
}
.file-upload-label:hover {
  border-color: var(--accent);
  color: #fff;
}

.admin-preview {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 180px;
}
.admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-list {
  max-height: 500px;
  overflow-y: auto;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 8px;
  transition: background 0.3s;
}
.admin-item:hover {
  background: rgba(255,255,255,0.06);
}

.admin-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.placeholder-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

.admin-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-item-info strong {
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-item-info > span {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-item-cat {
  display: inline-block;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
}

.admin-delete {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.3s;
  flex-shrink: 0;
}
.admin-delete:hover {
  color: #ff6b6b;
}

.admin-hint {
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
  padding: 32px 0;
}

.isolated-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-grad-end));
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.3);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.isolated-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.5);
}

.admin-item-link {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: underline;
  width: fit-content;
}
