/* ===== STEM Store Common CSS ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #f0f0f8;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; }

/* Nav bar (top) */
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #0f0f1a;
  border-bottom: 1px solid #2a2a3a;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-back {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #1e1e2e;
  border: 1px solid #2a2a3a;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
}
.nav-title { font-size: 17px; font-weight: 700; }

/* Colors & tokens */
:root {
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --cyan: #06b6d4;
  --green: #22c55e;
  --yellow: #fbbf24;
  --red: #ef4444;
  --orange: #f97316;
  --pink: #ec4899;
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1e1e2e;
  --border: #2a2a3a;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: 15px; font-weight: 600; padding: 12px 24px; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: linear-gradient(135deg, #7c3aed, #6d28d9); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, #8b5cf6, #7c3aed); transform: translateY(-1px); box-shadow: 0 4px 16px #7c3aed44; }
.btn-secondary { background: #1e1e2e; color: #d1d5db; border: 1px solid #2a2a3a; }
.btn-secondary:hover { background: #2a2a3a; }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-outline { background: transparent; border: 1px solid #7c3aed; color: #a78bfa; }
.btn-outline:hover { background: #7c3aed22; }
.btn-lg { font-size: 17px; padding: 15px 32px; border-radius: 14px; }
.btn-sm { font-size: 13px; padding: 7px 14px; border-radius: 8px; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: 10px; }

/* Cards */
.card { background: #12121a; border: 1px solid #2a2a3a; border-radius: 16px; padding: 20px; }
.card:hover { border-color: #3a3a4a; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.tag-purple { background: #7c3aed22; color: #a78bfa; border: 1px solid #7c3aed33; }
.tag-cyan { background: #06b6d422; color: #67e8f9; border: 1px solid #06b6d433; }
.tag-green { background: #22c55e22; color: #86efac; border: 1px solid #22c55e33; }
.tag-red { background: #ef444422; color: #fca5a5; border: 1px solid #ef444433; }
.tag-yellow { background: #fbbf2422; color: #fde68a; border: 1px solid #fbbf2433; }
.tag-orange { background: #f9731622; color: #fdba74; border: 1px solid #f9731633; }
.tag-pink { background: #ec489922; color: #f9a8d4; border: 1px solid #ec489933; }

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: #d1d5db; margin-bottom: 8px; }
.form-hint { font-size: 12px; color: #6b7280; margin-top: 6px; }
.form-input { width: 100%; background: #1e1e2e; border: 1px solid #2a2a3a; border-radius: 12px; padding: 12px 16px; color: #f0f0f8; font-size: 15px; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px #7c3aed22; }
.form-textarea { width: 100%; background: #1e1e2e; border: 1px solid #2a2a3a; border-radius: 12px; padding: 12px 16px; color: #f0f0f8; font-size: 15px; min-height: 100px; resize: vertical; transition: border-color 0.2s; }
.form-textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px #7c3aed22; }
.form-select { width: 100%; background: #1e1e2e; border: 1px solid #2a2a3a; border-radius: 12px; padding: 12px 16px; color: #f0f0f8; font-size: 15px; appearance: none; cursor: pointer; }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #374151; border-radius: 99px; transition: 0.3s; cursor: pointer; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: #7c3aed; }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Status indicators */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; }
.status-pending { background: #fbbf2422; color: #fde68a; }
.status-approved { background: #22c55e22; color: #86efac; }
.status-rejected { background: #ef444422; color: #fca5a5; }
.status-review { background: #06b6d422; color: #67e8f9; }
.status-suspended { background: #9ca3af22; color: #d1d5db; }
.status-live { background: #22c55e22; color: #86efac; }

/* Progress bar */
.progress-bar { height: 6px; background: #1e1e2e; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7c3aed, #06b6d4); }

/* Avatar */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.avatar-sm { width: 32px; height: 32px; font-size: 16px; }
.avatar-md { width: 40px; height: 40px; font-size: 20px; }
.avatar-lg { width: 56px; height: 56px; font-size: 28px; }

/* Star rating */
.stars { color: #fbbf24; letter-spacing: 2px; }

/* Divider */
.divider { border: none; border-top: 1px solid #2a2a3a; margin: 20px 0; }

/* Modal overlay */
.modal-overlay { position: fixed; inset: 0; background: #00000099; backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; z-index: 1000; }
.modal { background: #12121a; border: 1px solid #2a2a3a; border-radius: 24px 24px 0 0; width: 100%; max-width: 480px; padding: 24px; }
.modal-handle { width: 40px; height: 4px; background: #374151; border-radius: 99px; margin: 0 auto 20px; }

/* Toast */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #1e1e2e; border: 1px solid #7c3aed44; border-radius: 12px; padding: 12px 20px; font-size: 14px; font-weight: 600; z-index: 9999; white-space: nowrap; box-shadow: 0 8px 32px #00000080; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e1e2e; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 99px; }

/* Responsive */
@media (min-width: 768px) {
  .mobile-only { display: none !important; }
  .container { max-width: 1400px; margin: 0 auto; padding: 32px 40px; }
}
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
}
