/* ============================================================
   PeerTuPeer — Maximalist Design System
   Theme: Dark green #0b6b00, Neon #caff25/#a3ff12, Black #111
   Style: Bold type, mixed section backgrounds, thick borders,
          overlapping elements, high contrast, playful layout
============================================================ */

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

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f6fff4;
  color: #111;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --green:      #0b6b00;
  --green-dark: #063d00;
  --neon:       #caff25;
  --neon-bright:#a3ff12;
  --black:      #111111;
  --white:      #ffffff;
  --off-white:  #f6fff4;
  --yellow:     #ffe135;
  --purple:     #7c3aed;
  --cream:      #fef9ec;
  --red:        #dc2626;
  --border:     2px solid #111;
  --radius-sm:  8px;
  --radius:     16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow:     4px 4px 0px #111;
  --shadow-lg:  6px 6px 0px #111;
  --shadow-neon:4px 4px 0px #0b6b00;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.display { font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; line-height: 0.95; letter-spacing: -2px; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: var(--border);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}
.btn:hover  { transform: translate(-2px,-2px); }
.btn:active { transform: translate(2px,2px); box-shadow: none !important; }

.btn-neon   { background: var(--neon);   color: var(--black); box-shadow: var(--shadow); }
.btn-neon:hover { box-shadow: var(--shadow-lg); }

.btn-black  { background: var(--black);  color: var(--neon);  box-shadow: var(--shadow); }
.btn-black:hover { box-shadow: var(--shadow-lg); }

.btn-white  { background: var(--white);  color: var(--black); box-shadow: var(--shadow); }
.btn-white:hover { box-shadow: var(--shadow-lg); }

.btn-green  { background: var(--green);  color: var(--neon);  box-shadow: 4px 4px 0 var(--neon-bright); }
.btn-green:hover { box-shadow: 6px 6px 0 var(--neon-bright); }

.btn-outline { background: transparent; color: var(--black); }
.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 18px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-neon   { background: var(--neon);   border: var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-black  { background: var(--black);  border: var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 4px 4px 0 var(--neon); color: var(--white); }
.card-green  { background: var(--green);  border: var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 4px 4px 0 var(--neon-bright); color: var(--white); }
.card-cream  { background: var(--cream);  border: var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-yellow { background: var(--yellow); border: var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* ── Badge / Tag ─────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-neon    { background: var(--neon);  color: var(--black); }
.tag-black   { background: var(--black); color: var(--white); }
.tag-green   { background: var(--green); color: var(--neon); }
.tag-white   { background: var(--white); color: var(--black); }
.tag-red     { background: #fee2e2; color: var(--red); border-color: var(--red); }
.tag-yellow  { background: var(--yellow); color: var(--black); }
.tag-pending { background: #fff3cd; color: #856404; border-color: #fbbf24; }
.tag-success { background: #e6ffea; color: var(--green); border-color: var(--green); }
.tag-info    { background: #eff6ff; color: #1d4ed8; border-color: #1d4ed8; }

/* ── Form Elements ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Space Grotesk', sans-serif;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  transition: box-shadow 0.15s;
  outline: none;
  color: #111;
}
.form-input:focus { box-shadow: 4px 4px 0 var(--green); }
.form-input::placeholder { color: #9ca3af; }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }

/* ── Navbar (public) ─────────────────────────────────────────── */
.navbar {
  background: var(--black);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo-mark {
  width: 36px; height: 36px;
  background: var(--neon);
  border: 2px solid var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
}
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}
.navbar-links { display: flex; align-items: center; gap: 4px; }
.navbar-links a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.navbar-links a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.navbar-hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--white); font-size: 24px; }
.navbar-mobile {
  display: none;
  flex-direction: column;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px 20px;
}
.navbar-mobile.open { display: flex; }
.navbar-mobile a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── App Layout (sidebar + content) ─────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--black);
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  z-index: 50;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
}
.sidebar-logo-mark {
  width: 34px; height: 34px;
  background: var(--neon);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}
.sidebar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}
.sidebar-nav { flex: 1; padding: 12px 8px; }
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  padding: 8px 10px 4px;
  font-family: 'Space Grotesk', sans-serif;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.15s;
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.nav-item.active {
  background: var(--neon);
  color: var(--black);
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--neon-bright);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-user {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 4px;
}
.sidebar-avatar {
  width: 34px; height: 34px;
  background: var(--neon);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.2; }
.sidebar-user-email { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.sidebar-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: #f87171; font-size: 13px; font-weight: 600;
  text-decoration: none; width: 100%;
  transition: background 0.15s;
}
.sidebar-logout:hover { background: rgba(248,113,113,0.1); }

/* ── Topbar (app) ────────────────────────────────────────────── */
.topbar {
  height: 60px;
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
}
.topbar-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--black);
}
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-avatar {
  width: 36px; height: 36px;
  background: var(--neon);
  border: var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--black);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 2px 2px 0 #111;
}
.topbar-hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; font-size: 20px; color: var(--black);
}
.topbar-icon-btn {
  width: 36px; height: 36px;
  background: var(--off-white);
  border: var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  color: var(--black);
  box-shadow: 2px 2px 0 #111;
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
}
.topbar-icon-btn:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 #111; }
.topbar-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--red); color: white;
  font-size: 9px; font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* ── App content area ────────────────────────────────────────── */
.app-content { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.app-main { flex: 1; padding: 28px; background: #f6fff4; }

/* ── Stat cards ──────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: var(--neon);
  border-radius: 50%;
  opacity: 0.15;
}
.stat-card.accent { background: var(--neon); }
.stat-card.dark { background: var(--black); color: var(--white); }
.stat-card.green { background: var(--green); color: var(--white); }
.stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.6; margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.stat-value { font-size: 1.8rem; font-weight: 900; font-family: 'Space Grotesk', sans-serif; line-height: 1; }
.stat-sub { font-size: 12px; margin-top: 4px; opacity: 0.6; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { border: var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 2px solid #111; background: var(--black); }
.table-header-title { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 15px; color: var(--white); }
table.ptp-table { width: 100%; border-collapse: collapse; }
table.ptp-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--off-white);
  border-bottom: 2px solid #111;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
}
table.ptp-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}
table.ptp-table tr:last-child td { border-bottom: none; }
table.ptp-table tr:hover td { background: #f0fff4; }
table.ptp-table tr.clickable { cursor: pointer; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border: var(--border); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert-error   { background: #fee2e2; border-color: var(--red); color: var(--red); }
.alert-success { background: #e6ffea; border-color: var(--green); color: var(--green); }
.alert-warning { background: var(--yellow); border-color: #111; color: #111; }
.alert-info    { background: #eff6ff; border-color: #1d4ed8; color: #1d4ed8; }

/* ── Mobile sidebar overlay ──────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 49;
}
.sidebar-overlay.show { display: block; }

/* ── Bottom nav (mobile) ─────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--black);
  border-top: var(--border);
  height: 64px;
  z-index: 50;
  align-items: stretch;
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  font-size: 10px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  transition: color 0.15s;
}
.bottom-nav-item.active { color: var(--neon); }
.bottom-nav-item svg { width: 20px; height: 20px; }
.bottom-nav-fab {
  width: 48px; height: 48px;
  background: var(--neon);
  border: 2px solid #111;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 2px 2px 0 var(--green);
  margin-top: -12px;
  flex-shrink: 0;
}
.bottom-nav-fab svg { width: 20px; height: 20px; color: var(--black); }

/* ── Sections (public pages) ─────────────────────────────────── */
/* Hero */
.hero-section {
  background: var(--black);
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero-section::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--neon);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-neon    { color: var(--neon); }
.text-green   { color: var(--green); }
.text-muted   { color: #6b7280; }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 11px; }
.font-black   { font-weight: 900; }
.font-bold    { font-weight: 700; }
.mt-1 { margin-top: 6px; }  .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; } .mt-6 { margin-top: 36px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Floating decorative blobs ───────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ── Ticket/Offer card ───────────────────────────────────────── */
.offer-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.offer-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.offer-card.buy-card  { border-left: 5px solid var(--green); }
.offer-card.sell-card { border-left: 5px solid var(--red); }

.offer-action-buy  { background: #e6ffea; color: var(--green); border: 2px solid var(--green); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.offer-action-sell { background: #fee2e2; color: var(--red);   border: 2px solid var(--red);   border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }

/* ── Wallet card ─────────────────────────────────────────────── */
.wallet-card {
  background: var(--black);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  box-shadow: 6px 6px 0 var(--neon);
}
.wallet-card::before {
  content: 'PTP';
  position: absolute;
  right: -20px; top: -20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(202,255,37,0.06);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.wallet-balance-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.wallet-balance-amount { font-size: 2.4rem; font-weight: 900; font-family: 'Space Grotesk', sans-serif; color: var(--neon); line-height: 1; }
.wallet-balance-ghs { font-size: 15px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; padding: 16px 0; }
.page-btn { padding: 8px 14px; border: var(--border); border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--white); cursor: pointer; text-decoration: none; color: var(--black); box-shadow: 2px 2px 0 #111; transition: transform 0.1s; }
.page-btn:hover { transform: translate(-1px,-1px); }
.page-btn.active { background: var(--neon); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar.open { transform: translateX(0); }
  .app-content { margin-left: 0; }
  .topbar-hamburger { display: flex; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; }
  .app-main { padding: 16px; padding-bottom: 80px; }
  .display { letter-spacing: -1px; }
  .navbar-links, .navbar-actions { display: none; }
  .navbar-hamburger { display: block; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}
