/* ======================================
   GD MAP FORUM - STYLE (Online Version)
   Neon Dark Theme + Auth + Admin Panel
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: #1a1a3e;
  --bg-card-hover: #222255;
  --bg-modal: #15152f;
  --neon-cyan: #00f0ff;
  --neon-pink: #ff2daa;
  --neon-green: #39ff14;
  --neon-yellow: #ffe600;
  --neon-orange: #ff6600;
  --neon-purple: #b44dff;
  --neon-red: #ff2244;
  --neon-blue: #4466ff;
  --text-primary: #e8e8ff;
  --text-secondary: #9999cc;
  --text-muted: #6666aa;
  --border-color: rgba(100, 100, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.3);
  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,240,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,45,170,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(57,255,20,0.03) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple)); border-radius: 4px; }

/* ======== AUTH SCREEN ======== */
.auth-screen {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 20px;
  background: var(--bg-primary);
}
.auth-screen.hidden { display: none; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,240,255,0.06);
  animation: modalSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.auth-logo {
  text-align: center; padding: 32px 24px 20px;
}
.auth-logo .logo-icon {
  width: 64px; height: 64px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 24px rgba(0,240,255,0.3);
  animation: logoPulse 3s ease-in-out infinite;
}
.auth-logo h1 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.auth-logo p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* Auth Tabs */
.auth-tabs {
  display: flex; border-bottom: 1px solid var(--border-color);
}
.auth-tab {
  flex: 1; padding: 12px; text-align: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.auth-tab.active {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  background: rgba(0,240,255,0.03);
}
.auth-tab:hover { color: var(--text-primary); }

/* Auth Form */
.auth-form {
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-form.hidden { display: none; }
.auth-error {
  padding: 10px 14px;
  background: rgba(255,34,68,0.1);
  border: 1px solid rgba(255,34,68,0.3);
  border-radius: var(--radius-sm);
  color: var(--neon-red); font-size: 0.85rem;
  display: none;
}
.auth-error.visible { display: block; }
.auth-footer {
  padding: 0 24px 24px; text-align: center;
}
.auth-footer .guest-link {
  font-size: 0.85rem; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
  background: none; border: none; font-family: var(--font-body);
  text-decoration: underline; text-underline-offset: 3px;
}
.auth-footer .guest-link:hover { color: var(--neon-cyan); }

/* ======== APP SCREEN ======== */
.app-screen { display: none; }
.app-screen.visible { display: block; }

/* ======== HEADER ======== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 16px rgba(0,240,255,0.3);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0,240,255,0.3); }
  50% { box-shadow: 0 0 28px rgba(0,240,255,0.5); }
}
.header-logo h1 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.header-right { display: flex; align-items: center; gap: 10px; }

/* User Badge */
.user-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition);
}
.user-badge:hover { background: rgba(255,255,255,0.1); border-color: var(--neon-cyan); }
.user-badge .badge-role {
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.user-badge .badge-role.viewer { background: rgba(102,102,170,0.2); color: var(--text-muted); }
.user-badge .badge-role.user { background: rgba(0,240,255,0.15); color: var(--neon-cyan); }
.user-badge .badge-role.admin { background: rgba(255,230,0,0.15); color: var(--neon-yellow); }
.user-badge .badge-name { font-weight: 600; font-size: 0.85rem; }

/* ======== BUTTONS ======== */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  padding: 8px 16px; border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #000; box-shadow: 0 0 20px rgba(0,240,255,0.25);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(0,240,255,0.45); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--neon-cyan); }
.btn-danger {
  background: rgba(255,34,68,0.15); color: var(--neon-red);
  border: 1px solid rgba(255,34,68,0.3);
}
.btn-danger:hover { background: rgba(255,34,68,0.25); }
.btn-gold {
  background: rgba(255,230,0,0.12); color: var(--neon-yellow);
  border: 1px solid rgba(255,230,0,0.3);
}
.btn-gold:hover { background: rgba(255,230,0,0.2); }
.btn-icon {
  width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 1rem;
}
.btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ======== STATS BAR ======== */
.stats-bar {
  display: flex; gap: 20px; padding: 12px 24px;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}
.stat-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.stat-icon { font-size: 1rem; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--neon-cyan); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ======== MAIN CONTENT ======== */
.main-content {
  position: relative; z-index: 1;
  max-width: 1000px; margin: 0 auto;
  padding: 20px 16px 80px;
}

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 12px; opacity: 0.6; }
.empty-state h2 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }

/* Loading */
.loading-state { text-align: center; padding: 60px 20px; }
.spinner {
  width: 40px; height: 40px; margin: 0 auto 16px;
  border: 3px solid var(--border-color);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { color: var(--text-muted); font-size: 0.9rem; }

/* ======== MAP CARDS ======== */
.map-list { display: flex; flex-direction: column; gap: 10px; }
.map-card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 14px; display: flex; align-items: center; gap: 14px;
  transition: var(--transition); cursor: default; overflow: hidden;
}
.map-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,240,255,0.03), transparent);
  pointer-events: none; opacity: 0; transition: var(--transition);
}
.map-card:hover { border-color: var(--border-glow); transform: translateY(-1px); box-shadow: var(--shadow-neon); }
.map-card:hover::before { opacity: 1; }

.map-card[data-rank="1"] { border-color: rgba(255,230,0,0.3); background: linear-gradient(135deg, rgba(255,230,0,0.06), var(--bg-card)); }
.map-card[data-rank="1"]:hover { box-shadow: 0 0 25px rgba(255,230,0,0.15); }
.map-card[data-rank="2"] { border-color: rgba(192,192,220,0.25); background: linear-gradient(135deg, rgba(192,192,220,0.05), var(--bg-card)); }
.map-card[data-rank="3"] { border-color: rgba(205,127,50,0.25); background: linear-gradient(135deg, rgba(205,127,50,0.05), var(--bg-card)); }

.rank-badge {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem;
  background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border-color);
}
.map-card[data-rank="1"] .rank-badge { background: linear-gradient(135deg,#ffe600,#ff9900); color: #000; border: none; box-shadow: 0 0 16px rgba(255,230,0,0.3); font-size: 0.95rem; }
.map-card[data-rank="2"] .rank-badge { background: linear-gradient(135deg,#c0c0dc,#9898b8); color: #000; border: none; }
.map-card[data-rank="3"] .rank-badge { background: linear-gradient(135deg,#cd7f32,#a06020); color: #fff; border: none; }

.map-thumbnail {
  flex-shrink: 0; width: 76px; height: 52px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--bg-secondary); border: 1px solid var(--border-color);
}
.map-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.map-thumbnail .no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; opacity: 0.3; }

.map-info { flex: 1; min-width: 0; }
.map-name {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.75rem; color: var(--text-secondary); }
.map-meta span { display: inline-flex; align-items: center; gap: 3px; }
.map-meta .creator { color: var(--neon-cyan); }
.map-meta .verifier { color: var(--neon-green); }
.map-meta .difficulty { color: var(--neon-orange); }

.map-actions { display: flex; gap: 4px; flex-shrink: 0; }
.map-actions .btn-icon {
  width: 32px; height: 32px; font-size: 0.9rem;
  background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid transparent;
}
.map-actions .btn-icon:hover { color: var(--text-primary); border-color: var(--border-color); background: rgba(255,255,255,0.08); }
.map-actions .btn-icon.move-up:hover { color: var(--neon-green); border-color: rgba(57,255,20,0.3); }
.map-actions .btn-icon.move-down:hover { color: var(--neon-orange); border-color: rgba(255,102,0,0.3); }
.map-actions .btn-icon.delete:hover { color: var(--neon-red); border-color: rgba(255,34,68,0.3); }
.map-actions .btn-icon.view-btn:hover { color: var(--neon-cyan); border-color: rgba(0,240,255,0.3); }

/* ======== MODALS ======== */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 1000; justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-modal); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,240,255,0.08);
  animation: modalSlideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border-color);
}
.modal-header h2 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-color); background: transparent;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition);
}
.modal-close:hover { color: var(--neon-red); border-color: rgba(255,34,68,0.3); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  padding: 14px 22px; border-top: 1px solid var(--border-color);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ======== FORMS ======== */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-weight: 600; font-size: 0.8rem; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.form-group label .required { color: var(--neon-red); }
.form-input, .form-select, .form-textarea {
  font-family: var(--font-body); font-size: 0.88rem; padding: 9px 13px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); color: var(--text-primary);
  transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--neon-cyan); box-shadow: 0 0 12px rgba(0,240,255,0.1); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236666aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* File Upload */
.file-upload {
  position: relative; border: 2px dashed var(--border-color);
  border-radius: var(--radius-md); padding: 18px; text-align: center;
  cursor: pointer; transition: var(--transition);
}
.file-upload:hover { border-color: var(--neon-cyan); background: rgba(0,240,255,0.03); }
.file-upload input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-upload .upload-icon { font-size: 1.6rem; margin-bottom: 4px; }
.file-upload .upload-text { font-size: 0.8rem; color: var(--text-muted); }
.file-upload .upload-hint { font-size: 0.7rem; color: var(--text-muted); opacity: 0.6; margin-top: 3px; }
.file-upload.has-file { border-color: var(--neon-green); background: rgba(57,255,20,0.03); }
.file-upload.has-file .upload-text { color: var(--neon-green); }
.image-preview { width: 100%; max-height: 140px; border-radius: var(--radius-sm); object-fit: cover; margin-top: 6px; display: none; }
.image-preview.visible { display: block; }

/* Video Type Toggle */
.video-type-toggle { display: flex; gap: 5px; margin-bottom: 6px; }
.video-type-btn {
  flex: 1; padding: 7px; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--border-color); background: transparent; color: var(--text-muted);
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.video-type-btn.active { background: rgba(0,240,255,0.1); border-color: var(--neon-cyan); color: var(--neon-cyan); }
.video-preview { width: 100%; max-height: 160px; border-radius: var(--radius-sm); margin-top: 6px; display: none; background: #000; }
.video-preview.visible { display: block; }

/* ======== DETAIL VIEW ======== */
.detail-thumbnail { width: 100%; max-height: 250px; border-radius: var(--radius-md); object-fit: cover; border: 1px solid var(--border-color); }
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-info-item {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 10px;
}
.detail-info-item .label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.detail-info-item .value { font-weight: 600; font-size: 0.9rem; }
.detail-info-item .value.creator-val { color: var(--neon-cyan); }
.detail-info-item .value.verifier-val { color: var(--neon-green); }
.detail-info-item .value.difficulty-val { color: var(--neon-orange); }
.detail-info-item .value.rank-val { color: var(--neon-yellow); font-family: var(--font-display); }
.detail-video-container { width: 100%; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); }
.detail-video-container iframe { width: 100%; aspect-ratio: 16/9; border: none; }
.detail-video-container video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.detail-description {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 12px;
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; white-space: pre-wrap;
}

/* ======== ADMIN PANEL ======== */
.admin-modal .modal { max-width: 640px; }
.user-list { display: flex; flex-direction: column; gap: 10px; }
.user-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 14px; transition: var(--transition);
}
.user-card:hover { border-color: var(--border-glow); }
.user-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.user-card-info { display: flex; align-items: center; gap: 10px; }
.user-card-name { font-weight: 700; font-size: 0.95rem; }
.user-card-role {
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; text-transform: uppercase;
}
.badge-role.viewer { background: rgba(255,255,255,0.1); color: #ccc; }
.badge-role.user { background: rgba(57,255,20,0.15); color: var(--neon-green); }
.badge-role.admin { background: rgba(255,102,0,0.15); color: var(--neon-orange); }
.badge-role.superadmin { background: rgba(255,230,0,0.15); color: var(--neon-yellow); box-shadow: 0 0 10px rgba(255,230,0,0.3); }

.user-card-role.viewer { background: rgba(102,102,170,0.2); color: var(--text-muted); }
.user-card-role.user { background: rgba(0,240,255,0.15); color: var(--neon-cyan); }
.user-card-role.admin { background: rgba(255,102,0,0.15); color: var(--neon-orange); }
.user-card-role.superadmin { background: rgba(255,230,0,0.2); color: var(--neon-yellow); box-shadow: 0 0 10px rgba(255,230,0,0.4); }

.perm-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  font-size: 0.78rem; cursor: pointer; transition: var(--transition);
  user-select: none;
}
.perm-toggle:hover { border-color: var(--neon-cyan); }
.perm-toggle.active { background: rgba(57,255,20,0.1); border-color: rgba(57,255,20,0.3); color: var(--neon-green); }
.perm-toggle .perm-check { font-size: 0.85rem; }
.user-card-actions { display: flex; gap: 6px; }

/* Admin code section in user card */
.user-card.is-self { border-color: rgba(255,230,0,0.2); background: rgba(255,230,0,0.03); }
.user-card.is-admin { opacity: 0.7; }
.self-label { font-size: 0.7rem; color: var(--neon-yellow); font-weight: 600; }

/* ======== TOAST ======== */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 2000;
  display: flex; flex-direction: column-reverse; gap: 6px;
}
.toast {
  padding: 10px 18px; border-radius: var(--radius-md);
  font-size: 0.82rem; font-weight: 500; color: var(--text-primary);
  background: var(--bg-card); border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { border-color: rgba(57,255,20,0.3); }
.toast.error { border-color: rgba(255,34,68,0.3); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* ======== PARTICLES ======== */
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; width: 3px; height: 3px;
  background: var(--neon-cyan); border-radius: 50%; opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .header { padding: 10px 14px; }
  .header-logo h1 { font-size: 0.9rem; }
  .stats-bar { padding: 10px 14px; gap: 12px; }
  .main-content { padding: 14px 10px 60px; }
  .map-card { padding: 10px; gap: 8px; }
  .map-thumbnail { width: 56px; height: 40px; }
  .rank-badge { width: 36px; height: 36px; font-size: 0.95rem; }
  .map-meta { gap: 6px; font-size: 0.7rem; }
  .map-actions { flex-direction: column; gap: 3px; }
  .map-actions .btn-icon { width: 26px; height: 26px; font-size: 0.75rem; }
  .modal { max-width: 100%; margin: 8px; max-height: 85vh; }
  .form-row { grid-template-columns: 1fr; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .user-badge .badge-name { display: none; }
  .btn .btn-text { display: none; }
  .perm-grid { gap: 4px; }
}
@media (max-width: 480px) {
  .map-thumbnail { display: none; }
}

/* ======== INQUIRY LIST ======== */
.inquiry-list {
  display: flex; flex-direction: column; gap: 12px;
}
.inquiry-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.inquiry-card.resolved {
  opacity: 0.6;
  border-color: rgba(57, 255, 20, 0.2);
}
.inquiry-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-muted);
}
.inquiry-author { font-weight: 600; color: var(--neon-cyan); }
.inquiry-content {
  font-size: 0.95rem; line-height: 1.5; word-break: break-all;
  background: rgba(0,0,0,0.3); padding: 12px; border-radius: var(--radius-sm);
  border-left: 3px solid var(--neon-purple);
}
.inquiry-footer {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
}
.inquiry-status {
  font-size: 0.8rem; font-weight: 600; padding: 4px 8px; border-radius: 4px;
}
.inquiry-status.pending { background: rgba(255, 102, 0, 0.2); color: var(--neon-orange); }
.inquiry-status.resolved { background: rgba(57, 255, 20, 0.2); color: var(--neon-green); }

/* ===== COMMENTS ===== */
.comment-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  display: flex; flex-direction: column; gap: 6px;
  transition: var(--transition);
}
.comment-card:hover { background: rgba(255,255,255,0.05); }
.comment-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}
.comment-author { font-weight: 700; color: var(--neon-cyan); font-size: 0.9rem; }
.comment-content { font-size: 0.95rem; line-height: 1.4; word-break: break-all; }
.comment-actions { align-self: flex-end; margin-top: -5px; }
.btn-delete-comment {
  background: transparent; border: none; color: var(--neon-pink);
  font-size: 0.8rem; cursor: pointer; padding: 2px 6px;
  border-radius: 4px; transition: var(--transition);
}
.btn-delete-comment:hover { background: rgba(255, 0, 102, 0.2); }

/* ======== MOBILE RESPONSIVE ======== */
@media (max-width: 650px) {
  .header {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }
  .header-right {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .btn-text {
    display: none; /* 아이콘만 표시해서 공간 절약 */
  }
  .user-badge {
    width: 100%;
    justify-content: center;
    margin-bottom: 5px;
  }
  .modal {
    width: 95%;
    margin: 10px;
    max-height: 90vh;
  }
  .stats-bar {
    justify-content: space-between;
  }
}

/* ======== VOTE BUTTON ======== */
.vote-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 8px;
}
.vote-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
.vote-btn.voted {
  color: #ff2a5f;
  background: rgba(255, 42, 95, 0.15);
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.3);
}
.vote-btn.voted:hover {
  background: rgba(255, 42, 95, 0.25);
}
.vote-btn .vote-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}
.vote-btn.voted .vote-count {
  color: #ff2a5f;
}
