@import url('https://fonts.loli.net/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

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

:root {
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.3);
  --secondary: #b94dff;
  --secondary-glow: rgba(185, 77, 255, 0.3);
  --accent: #ff2d75;
  --success: #00ff88;
  --success-glow: rgba(0, 255, 136, 0.3);
  --danger: #ff2d75;
  --warning: #ffb800;
  --bg-deep: #0a0a1a;
  --bg: #0d0d2b;
  --bg-card: #111136;
  --bg-card-hover: #16163f;
  --text: #e0e0ff;
  --text-dim: #7a7aaa;
  --border: rgba(0, 240, 255, 0.12);
  --border-bright: rgba(0, 240, 255, 0.3);
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.15), 0 0 60px rgba(0, 240, 255, 0.05);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --grid-color: rgba(0, 240, 255, 0.03);
}

body {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -2;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: perspective(500px) rotateX(0deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(0deg) translateY(60px); }
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(185, 77, 255, 0.06) 0%, transparent 50%);
  z-index: -1;
  animation: ambientPulse 8s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Header */
.header {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

a.logo {
  text-decoration: none;
}

.logo {
  font-family: 'Orbitron', monospace;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px var(--primary-glow);
  letter-spacing: 2px;
  position: relative;
}

.logo span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-dim);
  margin-left: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  position: relative;
}

.nav a:hover {
  color: var(--primary);
  text-shadow: 0 0 15px var(--primary-glow);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s;
  box-shadow: 0 0 8px var(--primary-glow);
}

.nav a:hover::after {
  width: 100%;
}

/* Main */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Hero Banner */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  position: relative;
}

.hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), #ffffff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.hero p {
  color: var(--text-dim);
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Categories */
.categories {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 8px 22px;
  border: 1px solid var(--border);
  background: rgba(17, 17, 54, 0.6);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  color: var(--text-dim);
  backdrop-filter: blur(4px);
}

.cat-btn:hover, .cat-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15), inset 0 0 15px rgba(0, 240, 255, 0.05);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(17, 17, 54, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-neon);
}

.product-card:hover::before {
  opacity: 1;
}

.product-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.03), rgba(185, 77, 255, 0.03));
  position: relative;
  overflow: hidden;
}

.product-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.06), transparent);
  transition: left 0.6s;
}

.product-card:hover .product-img::after {
  left: 100%;
}

.product-img img {
  max-height: 100px;
  max-width: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.2));
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.tier-icon {
  font-size: 56px;
  filter: drop-shadow(0 0 20px var(--tier-color, rgba(0, 240, 255, 0.5)));
  transition: transform 0.4s;
  line-height: 1;
}

.product-card:hover .tier-icon {
  transform: scale(1.15);
}

.tier-label {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 4px;
  margin-top: 10px;
  text-shadow: 0 0 15px currentColor;
}

.product-info {
  padding: 18px 20px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
  letter-spacing: 0.5px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

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

.product-price {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.product-price::before {
  content: '¥';
  font-size: 13px;
  margin-right: 2px;
  opacity: 0.7;
}

.product-stock {
  font-size: 12px;
  color: var(--success);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.stock-zero {
  color: var(--danger);
  background: rgba(255, 45, 117, 0.08);
  border-color: rgba(255, 45, 117, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0088ff);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 60px rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #00cc6a);
  color: #000;
  box-shadow: 0 0 20px var(--success-glow);
}

.btn-success:hover {
  box-shadow: 0 0 30px var(--success-glow), 0 0 60px rgba(0, 255, 136, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #ff0055);
  color: #fff;
}

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

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-block {
  width: 100%;
}

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

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.15), var(--shadow-card);
  animation: modalIn 0.3s ease;
}

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

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s;
}

.modal-close:hover {
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 15px rgba(255, 45, 117, 0.2);
}

.modal-body {
  padding: 24px;
}

.detail-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.04), rgba(185, 77, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.detail-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05), transparent 70%);
}

.detail-img img {
  max-height: 120px;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.detail-desc {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.detail-price {
  font-family: 'Orbitron', monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 25px var(--primary-glow);
}

.detail-price::before {
  content: '¥';
  font-size: 16px;
  opacity: 0.7;
}

/* Quantity Selector */
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qty-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 240, 255, 0.06);
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(0, 240, 255, 0.15);
}

.qty-input {
  width: 60px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
}

.total-price {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

/* Order Card */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 600px;
  margin: 40px auto;
  overflow: hidden;
  box-shadow: var(--shadow-neon);
}

.order-header {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(185, 77, 255, 0.1));
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.order-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.order-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.order-header p {
  color: var(--text-dim);
  font-size: 13px;
  font-family: monospace;
  letter-spacing: 1px;
}

.order-body {
  padding: 24px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item .label {
  color: var(--text-dim);
  font-weight: 500;
}

.order-item .value {
  font-weight: 600;
  color: #fff;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border-bright);
  font-size: 16px;
  font-weight: 700;
}

.order-total .price {
  font-family: 'Orbitron', monospace;
  font-size: 26px;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

.order-actions {
  padding: 0 24px 24px;
}

/* Account Box */
.account-box {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 240, 255, 0.05));
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.account-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--success), var(--primary));
}

.account-box h3 {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--success);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.account-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.account-field .field-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.account-field .field-value {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--success);
  text-shadow: 0 0 10px var(--success-glow);
}

.copy-btn {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--success);
  padding: 4px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: rgba(0, 255, 136, 0.25);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

/* Status */
.status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.status-paid {
  background: rgba(0, 255, 136, 0.1);
  color: var(--success);
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.status-pending {
  background: rgba(255, 184, 0, 0.1);
  color: var(--warning);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.status-failed {
  background: rgba(255, 45, 117, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 45, 117, 0.3);
}

/* Admin */
.admin-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
}

.login-box {
  max-width: 420px;
  margin: 80px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-neon);
  text-align: center;
  position: relative;
}

.login-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-box h2 {
  font-family: 'Orbitron', monospace;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: 2px;
}

.login-box .subtitle {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.form-input::placeholder {
  color: var(--text-dim);
  opacity: 0.5;
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

select.form-input {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300f0ff' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.admin-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-tab.active {
  background: linear-gradient(135deg, var(--primary), #0088ff);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.admin-tab:hover:not(.active) {
  color: var(--primary);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.5;
}

.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
}

.admin-form-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.5;
}

.admin-form-box h3 {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #fff;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0, 240, 255, 0.02);
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1), inset 0 0 30px rgba(0, 240, 255, 0.03);
}

.drop-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 12px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.drop-zone:hover .drop-icon, .drop-zone.drag-over .drop-icon {
  opacity: 1;
}

.drop-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.drop-sub {
  font-size: 13px;
  color: var(--text-dim);
}

.drop-link {
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drop-link:hover {
  text-shadow: 0 0 10px var(--primary-glow);
}

/* File Preview */
.file-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
}

.file-preview-icon {
  font-size: 36px;
  line-height: 1;
}

.file-preview-name {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.file-preview-meta {
  font-size: 13px;
  color: var(--success);
}

.admin-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border-collapse: collapse;
}

.admin-table th {
  background: rgba(0, 240, 255, 0.04);
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}

.admin-table tr:hover td {
  background: rgba(0, 240, 255, 0.02);
}

/* Toast */
.toast {
  position: fixed;
  top: 84px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-neon);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--success);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
}

.toast.error {
  border-color: rgba(255, 45, 117, 0.4);
  color: var(--danger);
  box-shadow: 0 0 30px rgba(255, 45, 117, 0.15);
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
  box-shadow: 0 0 15px var(--primary-glow);
}

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

/* Empty */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

/* Selection */
::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #fff;
}

/* Pay Methods */
.pay-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pay-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.2);
}

.pay-method:hover {
  border-color: var(--border-bright);
}

.pay-method.active {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.pay-icon {
  font-size: 24px;
  line-height: 1;
}

.pay-name {
  font-size: 14px;
  font-weight: 600;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
}

.auth-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-user {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 50px;
  font-size: 13px;
  margin-left: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  /* Header - 横向排列不换行 */
  .header {
    padding: 0 12px;
  }

  .header-inner {
    flex-direction: row;
    height: 52px;
    gap: 0;
  }

  .logo {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .logo span {
    display: none;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .nav a {
    margin-left: 14px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .nav-user {
    margin-left: 8px;
    font-size: 11px;
    padding: 2px 10px;
  }

  /* Hero */
  .hero {
    padding: 24px 16px 20px;
  }

  .hero h1 {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .hero p {
    font-size: 12px;
    letter-spacing: 2px;
  }

  /* Container */
  .container {
    padding: 16px 12px;
  }

  /* Product Grid - 单列，紧凑卡片 */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .product-img {
    width: 100px;
    min-width: 100px;
    height: auto;
    min-height: 100px;
    border-radius: var(--radius) 0 0 var(--radius);
  }

  .tier-icon {
    font-size: 36px !important;
  }

  .tier-label {
    font-size: 11px;
    margin-top: 6px;
    letter-spacing: 2px;
  }

  .product-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  .product-name {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .product-desc {
    font-size: 12px;
    margin-bottom: 8px;
    -webkit-line-clamp: 1;
  }

  .product-price {
    font-size: 20px;
  }

  .product-stock {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Modal - 居中显示 */
  .modal-overlay {
    padding: 16px;
    align-items: center;
  }

  .modal {
    max-width: 340px;
    max-height: 80vh;
    border-radius: var(--radius);
    animation: modalFadeIn 0.25s ease;
  }

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

  .modal-header {
    padding: 12px 16px;
  }

  .modal-header h2 {
    font-size: 15px;
  }

  .modal-body {
    padding: 12px 16px;
  }

  .detail-img {
    height: 80px;
    margin-bottom: 12px;
  }

  .detail-img .tier-icon {
    font-size: 36px !important;
  }

  .detail-desc {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .detail-meta {
    padding: 12px;
    margin-bottom: 12px;
  }

  .detail-price {
    font-size: 22px;
  }

  /* Qty selector */
  .qty-row {
    margin-bottom: 12px;
  }

  .qty-btn {
    width: 36px;
    height: 36px;
  }

  .qty-input {
    width: 50px;
    height: 36px;
    font-size: 14px;
  }

  .total-row {
    padding: 12px 0;
    margin-bottom: 12px;
  }

  .total-price {
    font-size: 20px;
  }

  /* Order Card */
  .order-card {
    margin: 16px auto;
    border-radius: var(--radius);
  }

  .order-header {
    padding: 20px 16px;
  }

  .order-header h2 {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .order-header p {
    font-size: 11px;
  }

  .order-body {
    padding: 16px;
  }

  .order-item {
    padding: 10px 0;
    font-size: 13px;
  }

  .order-total .price {
    font-size: 22px;
  }

  .order-actions {
    padding: 0 16px 16px;
  }

  /* Account Box */
  .account-box {
    padding: 16px;
  }

  .account-field {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .account-field .field-value {
    font-size: 13px;
  }

  /* QR Code */
  #qrcodeBox {
    padding: 12px 0 !important;
  }

  /* Buttons */
  .btn {
    padding: 11px 20px;
    font-size: 14px;
  }

  /* Pay Methods */
  .pay-methods {
    flex-direction: column;
    gap: 8px;
  }

  /* Login box */
  .login-box {
    margin: 40px 12px;
    padding: 28px 20px;
  }

  .login-box h2 {
    font-size: 18px;
  }

  /* Admin */
  .admin-container {
    padding: 16px 12px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 14px 8px;
  }

  .stat-num {
    font-size: 24px;
  }

  .stat-label {
    font-size: 11px;
  }

  .admin-tabs {
    padding: 3px;
  }

  .admin-tab {
    padding: 8px 8px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .admin-table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }

  .admin-table th, .admin-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .admin-form-box {
    padding: 16px;
  }

  .admin-form-box h3 {
    font-size: 13px;
  }

  /* Drop Zone */
  .drop-zone {
    padding: 32px 16px;
  }

  .drop-icon {
    font-size: 30px;
  }

  .drop-text {
    font-size: 14px;
  }

  /* Toast */
  .toast {
    top: 60px;
    right: 12px;
    left: 12px;
    text-align: center;
    font-size: 13px;
  }

  /* Orders list page */
  h2[style*="Orbitron"] {
    font-size: 18px !important;
  }

  /* Particles - reduce on mobile */
  #particles {
    opacity: 0.5;
  }

  /* Grid background - subtle on mobile */
  body::before {
    opacity: 0.3;
  }
}
