* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
}

.login-body {
  min-height: 100vh;
  background: #0b1020;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bg-blur {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.bg-blur-1 {
  background: #2563eb;
  top: -50px;
  left: -50px;
}

.bg-blur-2 {
  background: #9333ea;
  bottom: -60px;
  right: -60px;
}

.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.login-left {
  padding: 48px;
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(147,51,234,0.18));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: #93c5fd;
  margin-bottom: 18px;
}

.login-left h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.subtitle {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.feature-card {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-card strong {
  font-size: 20px;
}

.feature-card span {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}

.login-right {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-box {
  width: 100%;
  max-width: 420px;
}

.form-box h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.form-desc {
  color: #cbd5e1;
  margin-bottom: 26px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8f0;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  transition: 0.25s;
}

.form-group input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96,165,250,0.15);
}

.btn-login {
  width: 100%;
  border: none;
  padding: 15px 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, #3b82f6, #9333ea);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59,130,246,0.25);
}

.alert-error {
  margin-bottom: 18px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fecaca;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.dashboard-body {
  background: #0f172a;
  min-height: 100vh;
  color: #fff;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #111827;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.logo-box {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 28px;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu a,
.logout-btn {
  text-decoration: none;
  color: #cbd5e1;
  padding: 12px 14px;
  border-radius: 12px;
  transition: 0.2s;
}

.menu a:hover,
.menu a.active,
.logout-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.main-content {
  padding: 32px;
}

.topbar h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.topbar p {
  color: #cbd5e1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.stat-card,
.content-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
}

.stat-card h3 {
  margin-bottom: 10px;
}

.stat-card p,
.content-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.content-card {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .stats-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, #3b82f6, #9333ea);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59,130,246,0.25);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.page-header p {
  color: #cbd5e1;
}

.table-card,
.form-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #e2e8f0;
  font-size: 14px;
}

.admin-table td {
  color: #cbd5e1;
  font-size: 14px;
}

.table-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.thumb-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 12px;
}

.color-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-small {
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  display: inline-block;
}

.btn-edit {
  background: #2563eb;
}

.btn-delete {
  background: #dc2626;
}

.alert-success {
  margin-bottom: 18px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #bbf7d0;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  transition: 0.25s;
  resize: vertical;
}

.form-group textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96,165,250,0.15);
}

.gallery-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 12px;
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-2,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: flex-start;
  }
}
.color-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.color-input-wrap input[type="color"] {
  width: 60px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-input-wrap input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 12px;
}

.color-input-wrap span {
  font-size: 14px;
  color: #e2e8f0;
  font-family: monospace;
}
.form-hint {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.preview-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
}

.preview-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-box-header span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
}

.anchor-preview-value {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  font-family: monospace;
  word-break: break-all;
}

.product-live-preview {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 22px;
}

.product-live-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  background: #eff6ff;
  color: #1e293b;
}

.product-live-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.product-live-content h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #0f172a;
}

.product-live-content p {
  color: #475569;
  line-height: 1.7;
  max-width: 600px;
}

.product-live-icon {
  min-width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: #3b82f6;
  box-shadow: 0 12px 24px rgba(59,130,246,0.22);
}

@media (max-width: 900px) {
  .product-live-content {
    flex-direction: column;
  }
}
.form-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  outline: none;
  transition: 0.25s;
}

.form-select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96,165,250,0.15);
}

.form-select option {
  color: #111827;
  background: #ffffff;
}

.check-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

.check-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.badge-green,
.badge-gray {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-green {
  background: rgba(34,197,94,0.15);
  color: #86efac;
}

.badge-gray {
  background: rgba(148,163,184,0.15);
  color: #cbd5e1;
}
.price-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.price-prefix {
  padding: 14px 16px;
  color: #cbd5e1;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.price-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  padding: 14px 16px;
  font-size: 16px;
}