
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Josefin+Sans:wght@100;300;400;600&display=swap');

:root {
  --gold: #FFD700;
  --gold2: #FFA500;
  --gold3: #B8860B;
  --cream: #FFFACD;
  --bank: #FFD700;
  --loom: #FFFACD;
  --social: #E91E8C;
  --drive: #8E44AD;
  --shop: #E67E22;
  --ent: #3498DB;
  --biz: #1ABC9C;
  --bg: #000;
  --bg2: #060400;
  --card: rgba(255,255,255,0.03);
  --border: rgba(255,215,0,0.12);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.4);
  --radius: 16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Josefin Sans", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(255,215,0,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(255,165,0,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.screen {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.screen.active { display: flex; }

/* SPLASH SCREEN */
#s-splash {
  background: #000;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* AUTH SCREENS */
#s-login, #s-register {
  padding: 60px 28px 40px;
  background: linear-gradient(180deg, #000 0%, #060400 100%);
}

#s-login h1, #s-register h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: 22px;
  background: linear-gradient(135deg, var(--cream), var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-align: center;
}

/* INPUTS */
input, select, textarea {
  width: 100%;
  background: rgba(255,215,0,0.04);
  color: var(--text);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  font-family: "Josefin Sans", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(255,215,0,0.5);
  background: rgba(255,215,0,0.06);
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  letter-spacing: 1px;
}

select option { background: #111; }

/* BUTTONS */
.btn {
  width: 100%;
  background: linear-gradient(135deg, var(--cream), var(--gold), var(--gold2), var(--gold3));
  color: #1a0800;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 15px 24px;
  cursor: pointer;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 3px;
  font-family: "Josefin Sans", sans-serif;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 30px rgba(255,180,0,0.25);
}

.btn:hover, .btn:active { transform: scale(0.98); }

.btn-o {
  background: transparent;
  color: rgba(255,215,0,0.7);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 10px;
  letter-spacing: 3px;
  font-family: "Josefin Sans", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-bottom: 10px;
}

.btn-o:hover { border-color: rgba(255,215,0,0.5); background: rgba(255,215,0,0.05); }

/* CARDS */
.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,215,0,0.3), transparent);
}

/* LABELS */
.lbl {
  color: rgba(255,215,0,0.4);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 8px;
  font-family: "Josefin Sans", sans-serif;
}

/* GOLD BALANCE */
.gold {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--gold);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(135deg, var(--cream), var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ERROR / SUCCESS */
.err { color: #ff4444; font-size: 12px; margin-bottom: 8px; letter-spacing: 1px; }
.ok { color: #44ff88; font-size: 12px; margin-bottom: 8px; letter-spacing: 1px; }

/* HOME SCREEN */
#s-home {
  padding: 0;
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER BAR */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
  position: relative;
  z-index: 10;
}

#hname {
  font-family: "Cinzel Decorative", serif;
  font-size: 13px;
  background: linear-gradient(135deg, var(--cream), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

#huser { color: var(--muted); font-size: 10px; letter-spacing: 2px; margin-top: 2px; }

/* TABS */
.tab {
  display: none;
  width: 100%;
  padding: 16px 16px 80px;
  overflow-y: auto;
  flex: 1;
}

.tab.on { display: block; }

/* BOTTOM NAV */
.nav {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 420px;
  background: rgba(0,0,0,0.95);
  border-top: 1px solid rgba(255,215,0,0.1);
  padding: 10px 0 14px;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.nb {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 6px 0;
  min-width: 0;
  letter-spacing: 1px;
  font-family: "Josefin Sans", sans-serif;
  transition: color 0.2s;
}

.nb span:first-child { font-size: 20px; }
.nb.on { color: var(--gold); }

/* NAV COLORS PER TAB */
#n-wallet.on { color: var(--bank); }
#n-thread.on { color: var(--loom); }
#n-social.on { color: var(--social); }
#n-drive.on { color: var(--drive); }
#n-shop.on { color: var(--shop); }
#n-entertainment.on { color: var(--ent); }
#n-business.on { color: var(--biz); }

/* TAB ACCENT BORDERS */
#t-wallet .card { border-color: rgba(255,215,0,0.15); }
#t-social .card { border-color: rgba(233,30,140,0.15); }
#t-drive .card { border-color: rgba(142,68,173,0.15); }
#t-shop .card { border-color: rgba(230,126,34,0.15); }
#t-entertainment .card { border-color: rgba(52,152,219,0.15); }
#t-business .card { border-color: rgba(26,188,156,0.15); }

/* SECTION HEADERS */
.section-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,215,0,0.08);
}

#t-wallet .section-title { color: var(--bank); }
#t-social .section-title { color: var(--social); }
#t-drive .section-title { color: var(--drive); }
#t-shop .section-title { color: var(--shop); }
#t-entertainment .section-title { color: var(--ent); }
#t-business .section-title { color: var(--biz); }

/* SIGN OUT BUTTON */
.signout-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 9px;
  letter-spacing: 2px;
  cursor: pointer;
  font-family: "Josefin Sans", sans-serif;
}

/* SOCIAL POSTS */
.post-card {
  background: var(--card);
  border: 1px solid rgba(233,30,140,0.12);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

.post-author {
  font-size: 11px;
  color: var(--social);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.post-content { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 10px; }

.post-actions { display: flex; gap: 8px; }

.post-action {
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 10px;
  cursor: pointer;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.post-action:hover { border-color: var(--social); color: var(--social); }

/* RIDE CARDS */
.ride-card {
  background: var(--card);
  border: 1px solid rgba(142,68,173,0.15);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

.ride-status {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.2); border-radius: 2px; }

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card { animation: fadeIn 0.3s ease forwards; }

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
  50% { box-shadow: 0 0 20px 2px rgba(255,215,0,0.1); }
}

/* BADGE */
.badge {
  display: inline-block;
  font-size: 7px;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,215,0,0.1);
  color: rgba(255,215,0,0.7);
  border: 1px solid rgba(255,215,0,0.2);
  text-transform: uppercase;
}

/* STAT GRID */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,215,0,0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.stat-value {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}

.stat-label { font-size: 7px; color: var(--muted); letter-spacing: 2px; margin-top: 4px; }

/* MOBILE */
@media (max-width: 420px) {
  .screen { max-width: 100%; }
  .nav { max-width: 100%; }
}
