/* =============================================
   MIHAEL 3D PRINTS - Main Stylesheet
   Dark Industrial / Futuristic Aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: #13131e;
  --bg-card-hover: #1a1a2e;
  --accent: #ff6b00;
  --accent-glow: rgba(255, 107, 0, 0.3);
  --accent-secondary: #ff9d00;
  --text-primary: #f0f0f0;
  --text-secondary: #9090a0;
  --text-muted: #555570;
  --border: rgba(255, 107, 0, 0.15);
  --border-bright: rgba(255, 107, 0, 0.5);
  --success: #00e676;
  --error: #ff1744;
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --radius: 4px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; }
h1 { font-size: clamp(2rem, 6vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { line-height: 1.7; color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent));
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}

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

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  cursor: pointer;
  object-fit: cover;
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 8px 0;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.user-dropdown.open { display: block; }

.user-dropdown a, .user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.user-dropdown a:hover, .user-dropdown button:hover {
  background: rgba(255,107,0,0.1);
  color: var(--accent);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  box-shadow: 0 0 30px rgba(255,107,0,0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(255,107,0,0.1);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-google {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  width: 100%;
  justify-content: center;
  gap: 12px;
  padding: 14px;
}

.btn-google:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.btn-google svg { width: 20px; height: 20px; }

/* ========== PAGE WRAPPER ========== */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 64px;
  position: relative;
  z-index: 1;
}

.page.active { display: block; }

/* ========== HOME PAGE ========== */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(255,107,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,157,0,0.05) 0%, transparent 60%);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(255,107,0,0.1);
  border: 1px solid var(--border-bright);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); }

.hero p { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 500px; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.6;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.ring-1 { inset: 0; border-color: rgba(255,107,0,0.3); animation: spin 20s linear infinite; }
.ring-2 { inset: 40px; border-color: rgba(255,107,0,0.15); animation: spin 30s linear infinite reverse; }
.ring-3 { inset: 80px; border-color: rgba(255,107,0,0.2); animation: spin 15s linear infinite; }

.hero-cube {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), inset 0 0 40px var(--accent-glow);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 60px rgba(255,107,0,0.5), inset 0 0 60px rgba(255,107,0,0.3); }
}

.features-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 100%;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s ease;
}

.feature-card:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }
.feature-card:hover::before { right: 0; }

.feature-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-size: 2rem;
}

.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }

/* ========== SHOP PAGE ========== */
.shop-header {
  padding: 3rem 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 260px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 2rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
}

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

.product-info {
  padding: 1.2rem;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.add-to-cart {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart:hover { background: var(--accent-secondary); }

.empty-shop {
  grid-column: 1/-1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.empty-shop .big-icon { font-size: 4rem; margin-bottom: 1rem; }

/* ========== CART ========== */
.cart-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px; height: 56px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px var(--accent-glow);
  z-index: 500;
  transition: var(--transition);
}

.cart-fab:hover { transform: scale(1.1); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: #fff;
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.hidden { display: none; }

/* Cart panel */
.cart-panel {
  position: fixed;
  top: 0; right: -480px;
  width: 440px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 2000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.cart-panel.open { right: 0; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  display: none;
}

.cart-overlay.open { display: block; }

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

.cart-header h3 { font-size: 1.2rem; }

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.cart-item-img {
  width: 60px; height: 60px;
  border-radius: 2px;
  object-fit: cover;
  background: var(--bg-primary);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--accent); font-family: var(--font-display); font-weight: 700; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  align-self: flex-start;
}

.cart-item-remove:hover { color: var(--error); }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-total span:last-child { color: var(--accent); }

/* ========== CHECKOUT MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open { display: flex; }

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

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

.modal-body { padding: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.payment-methods {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.payment-btn {
  flex: 1;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  font-size: 0.9rem;
}

.payment-btn.selected, .payment-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,107,0,0.05);
}

.card-fields, .paypal-info, .test-info { display: none; }
.card-fields.show, .paypal-info.show, .test-info.show { display: block; }

.paypal-info {
  background: rgba(255,184,28,0.08);
  border: 1px solid #FFB81C;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.paypal-info p { color: #FF9800; font-size: 0.9rem; margin: 0; }

.test-info {
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.test-info p { color: var(--success); font-size: 0.9rem; }

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.checkout-summary-row:last-child {
  border-bottom: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.checkout-summary-row span:last-child { color: var(--accent); }

/* ========== ORDER CONFIRMATION ========== */
.order-success {
  text-align: center;
  padding: 2rem;
}

.order-success .success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.order-success h3 { color: var(--success); margin-bottom: 0.5rem; }
.order-success p { margin-bottom: 1.5rem; }

/* ========== AUTH MODAL ========== */
.auth-modal .modal-content { max-width: 400px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ========== ADMIN PANEL ========== */
.admin-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
  letter-spacing: 0.05em;
}

.admin-tab.active, .admin-tab:hover { color: var(--accent); border-bottom-color: var(--accent); }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-card h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  padding: 10px 14px;
  background: var(--bg-primary);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,107,0,0.05);
  color: var(--text-secondary);
}

.data-table tr:hover td { background: rgba(255,107,0,0.02); color: var(--text-primary); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.badge-success { background: rgba(0,230,118,0.1); color: var(--success); }
.badge-warning { background: rgba(255,157,0,0.1); color: var(--accent-secondary); }
.badge-info { background: rgba(255,107,0,0.1); color: var(--accent); }

.product-admin-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.product-admin-img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 2px;
  background: var(--bg-primary);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

.product-admin-info { flex: 1; }
.product-admin-info strong { font-family: var(--font-display); }
.product-admin-info small { color: var(--text-muted); display: block; }

.product-admin-actions { display: flex; gap: 0.5rem; }

.icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 34px; height: 34px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.icon-btn.delete:hover { border-color: var(--error); color: var(--error); }
.icon-btn.edit:hover { border-color: var(--accent); color: var(--accent); }

/* Image upload preview */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.img-upload-area:hover { border-color: var(--accent); background: rgba(255,107,0,0.03); }
.img-upload-area p { color: var(--text-muted); font-size: 0.9rem; }
.img-preview { max-width: 100%; max-height: 150px; border-radius: 2px; margin-top: 0.5rem; }

/* ========== TOAST ========== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: toast-in 0.3s ease;
  min-width: 250px;
  text-align: center;
}

.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--error); color: var(--error); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========== ACCOUNT PAGE ========== */
.account-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.account-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
}

.account-name { font-family: var(--font-display); font-size: 1.5rem; }
.account-email { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; }

.orders-list { list-style: none; }

.order-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-id { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.order-items-list { color: var(--text-secondary); font-size: 0.9rem; }
.order-total { font-family: var(--font-display); font-weight: 700; color: var(--accent); }

/* ========== FOOTER ========== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

footer a { color: var(--accent); }

/* ========== UTIL ========== */
.hidden { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }

.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* ========== CUSTOM MODEL UPLOAD PAGE ========== */
.custom-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.custom-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.custom-page-header h2 {
  margin-bottom: 0.5rem;
}

.custom-page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.model-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.model-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 16px var(--accent-glow);
}

.model-card-preview {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}

.model-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card-info {
  padding: 1rem;
}

.model-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.model-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.model-card-user {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.model-card-user img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.model-submit-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.model-submit-section h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}

.model-file-types {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.file-type-badge {
  background: rgba(255,107,0,0.1);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  transition: var(--transition);
}

.hamburger:hover {
  border-color: var(--accent);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  padding: 1rem 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a, .mobile-menu button {
  display: block;
  padding: 14px 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}

.mobile-menu a:hover, .mobile-menu a.active, .mobile-menu button:hover {
  color: var(--accent);
  background: rgba(255,107,0,0.05);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .admin-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .cart-panel { width: 100%; right: -100%; }
  .cart-panel.open { right: 0; }
  .modal-content { margin: 0.5rem; max-height: 95vh; }
  .payment-methods { flex-direction: column; }
  .shop-header { flex-direction: column; align-items: stretch; }
  .search-input { width: 100%; }
  .account-header { flex-direction: column; text-align: center; }
  .products-grid { padding: 1rem 1rem 4rem; gap: 1rem; }
  .features-section { padding: 3rem 1rem; }
  .hero { padding: 3rem 1rem; }
  .admin-panel { padding: 1rem; }
  .admin-tabs { gap: 0; }
  .admin-tab { padding: 8px 12px; font-size: 0.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-page { padding: 1rem; }
  .model-gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .navbar { padding: 0 1rem; }
  .nav-right { gap: 0.5rem; }

  /* Cart FAB higher on mobile (above toast) */
  .cart-fab { bottom: 5rem; right: 1.2rem; }
  .toast-container { bottom: 1rem; width: 90%; }
}

@media (max-width: 420px) {
  .model-gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
}
