/* ============================================================
   ogumogs.com — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-start: #0a0a0a;
  --bg-mid: #141414;
  --bg-end: #1e1e1e;
  --surface: #181818;
  --surface-hover: #202020;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a8;
  --text-muted: #606068;

  --accent: #7c86f7;
  --accent-hover: #6570f0;
  --accent-light: rgba(124,134,247,0.12);

  --success: #22d3a0;
  --success-light: rgba(34,211,160,0.1);
  --danger: #f25a5a;
  --danger-light: rgba(242,90,90,0.1);
  --warning: #f5b942;
  --warning-light: rgba(245,185,66,0.1);

  --roblox: #f25a5a;
  --roblox-light: rgba(242,90,90,0.1);
  --discord: #7c86f7;
  --discord-light: rgba(124,134,247,0.12);
  --telegram: #38bdf8;
  --telegram-light: rgba(56,189,248,0.1);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);

  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(160deg, #0a0a0a 0%, #111111 40%, #1c1c1c 70%, #242424 100%);
  min-height: 100vh;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes checkmark {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88,101,242,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(88,101,242,0); }
}

.fade-in { animation: fadeIn 0.3s ease forwards; }
.fade-in-up { animation: fadeInUp 0.4s ease forwards; }
.slide-in-right { animation: slideInRight 0.3s ease forwards; }

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
}

.nav-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { background: var(--border); color: var(--text-primary); }
.nav-link.active { background: var(--accent-light); color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.nav-username { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* ============================================================
   Layout
   ============================================================ */

.page { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 48px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(88,101,242,0.35); }

.btn-secondary { background: #242424; color: var(--text-primary); border: 1px solid rgba(255,255,255,0.18); }
.btn-secondary:hover:not(:disabled) { background: #2e2e2e; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #dc2626; transform: translateY(-1px); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover:not(:disabled) { background: #059669; transform: translateY(-1px); }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: #181818;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.09);
  overflow: hidden;
  transition: all 0.25s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); background: var(--surface-hover); }

/* Listing Card */
.listing-card {
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
}
.listing-card .card-body { padding: 16px 20px; }

.listing-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.listing-type-badge:hover { animation: badgePulse 1s ease; }

.badge-roblox { background: var(--roblox-light); color: var(--roblox); }
.badge-discord { background: var(--discord-light); color: var(--discord); }
.badge-telegram { background: var(--telegram-light); color: var(--telegram); }

.listing-username {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.listing-description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.listing-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* Listing Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.listings-grid .listing-card:nth-child(1) { animation-delay: 0ms; }
.listings-grid .listing-card:nth-child(2) { animation-delay: 50ms; }
.listings-grid .listing-card:nth-child(3) { animation-delay: 100ms; }
.listings-grid .listing-card:nth-child(4) { animation-delay: 150ms; }
.listings-grid .listing-card:nth-child(5) { animation-delay: 200ms; }
.listings-grid .listing-card:nth-child(6) { animation-delay: 250ms; }

/* ============================================================
   Tabs
   ============================================================ */

.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #1a1a1a;
  padding: 5px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  width: fit-content;
}

.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.tab-btn.active { background: #2c2c2c; color: var(--text-primary); box-shadow: 0 1px 8px rgba(0,0,0,0.5); font-weight: 600; }

/* ============================================================
   Forms
   ============================================================ */

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: #121212;
  transition: all 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   Modal
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   Verification Steps
   ============================================================ */

.verify-steps { display: flex; flex-direction: column; gap: 16px; }
.verify-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: #1e1e1e;
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.verify-step.active { border-color: var(--accent); background: var(--accent-light); }
.verify-step.done { border-color: var(--success); background: var(--success-light); }

.step-number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #2a2a2a;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}
.verify-step.active .step-number { background: var(--accent); color: #fff; }
.verify-step.done .step-number { background: var(--success); color: #fff; }

.step-content { flex: 1; }
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text-secondary); }

.code-block {
  margin-top: 10px;
  padding: 10px 14px;
  background: #1a1d23;
  color: #7dd3fc;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.copy-btn {
  padding: 3px 8px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ============================================================
   Hero / Landing
   ============================================================ */

.hero {
  text-align: center;
  padding: 60px 24px 48px;
  animation: fadeInUp 0.5s ease;
}
.hero-title {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c0c0c0 50%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #a0aaff 0%, #7c86f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 460px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Stats bar */
.stats-bar {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeInUp 0.5s 0.1s ease both;
}
.stat-item { text-align: center; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: var(--text-primary); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

/* ============================================================
   Profile
   ============================================================ */

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
}
.profile-name { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.profile-sub { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   Page Header
   ============================================================ */

.page-header { margin-bottom: 28px; animation: fadeInUp 0.4s ease; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 4px; }
.page-subtitle { color: var(--text-secondary); font-size: 15px; }

/* ============================================================
   Empty State
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  animation: fadeIn 0.3s ease;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.empty-desc { font-size: 14px; }

/* ============================================================
   Spinner
   ============================================================ */

.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
.loading-center { display: flex; justify-content: center; padding: 48px; }

/* ============================================================
   Toast
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--accent); color: #fff; }

/* ============================================================
   Tag / Status
   ============================================================ */

.status-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-pending { background: var(--warning-light); color: var(--warning); }
.status-verified { background: var(--success-light); color: var(--success); }
.status-rejected { background: var(--danger-light); color: var(--danger); }
.status-active { background: var(--success-light); color: var(--success); }
.status-removed { background: var(--danger-light); color: var(--danger); }

/* ============================================================
   My Listings Table
   ============================================================ */

.listings-table {
  width: 100%;
  border-collapse: collapse;
}
.listings-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.listings-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}
.listings-table tr:last-child td { border-bottom: none; }
.listings-table tr:hover td { background: var(--surface-hover); }

/* ============================================================
   Discord Login
   ============================================================ */

.discord-login-btn {
  background: #5865F2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}
.discord-login-btn:hover { background: #4752d4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(88,101,242,0.4); }

/* ============================================================
   Scrollbar
   ============================================================ */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 640px) {
  .navbar { padding: 0 16px; gap: 16px; }
  .nav-links { display: none; }
  .container { padding: 0 16px; }
  .listings-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; letter-spacing: -1px; }
  .tab-bar { width: 100%; overflow-x: auto; }
}

/* ============================================================
   View Transitions
   ============================================================ */

.view { display: none; }
.view.active { display: block; animation: fadeInUp 0.35s ease; }
