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

:root {
  --bg: #0c0c14;
  --surface: #151522;
  --surface-light: #1c1c2c;
  --purple: #995cff;
  --blue: #487dff;
  --text: #f5f3ff;
  --muted: #9291a5;
  --border: rgba(255,255,255,0.07);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  padding-bottom: 100px;
}

button, a {
  font: inherit;
}

.topbar {
  height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand span {
  color: var(--purple);
}

.profile-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #7046b9;
  color: white;
  background: linear-gradient(135deg, #995cff, #487dff);
  font-weight: 800;
  cursor: pointer;
}

main {
  max-width: 600px;
  margin: auto;
  padding: 28px 20px;
}

.welcome {
  margin: 16px 0 30px;
}

.eyebrow {
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.1;
}

h1 span {
  background: linear-gradient(100deg, #a66bff, #5289ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
}

.rank-card {
  padding: 22px;
  border: 1px solid rgba(153,92,255,.25);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at top right, rgba(125,75,220,.20), transparent 65%),
    var(--surface);
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

.rank-heading,
.xp-row,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rank-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.rank-badge {
  color: #c49aff;
  background: rgba(153,92,255,.15);
  padding: 7px 12px;
  border-radius: 8px;
}

.rank-value {
  font-size: 25px;
  font-weight: 800;
  margin: 19px 0;
}

.xp-row {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 9px;
}

.progress-track {
  height: 7px;
  border-radius: 20px;
  background: #29283a;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.rank-note {
  color: var(--muted);
  font-size: 11px;
  margin-top: 12px;
}

.wallet {
  margin-top: 16px;
  padding: 19px 21px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet h2 {
  font-size: 28px;
  font-weight: 900;
}

.wallet h2 span {
  font-size: 13px;
  color: #b68aff;
}

.coin-icon {
  width: 49px;
  height: 49px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff1bc;
  background: linear-gradient(145deg, #d7a74d, #81521b);
  border: 3px solid #f0c76d;
  box-shadow: 0 0 20px rgba(215,167,77,.18);
}

.activities {
  margin-top: 32px;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading h2 {
  font-size: 17px;
  font-weight: 800;
}

.section-heading > span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--purple);
  font-weight: 800;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.activity-card {
  min-height: 130px;
  text-align: left;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  transition: .2s ease;
}

.activity-card:active {
  transform: scale(.97);
}

.activity-card:hover {
  border-color: rgba(153,92,255,.5);
  background: var(--surface-light);
}

.activity-icon {
  font-size: 23px;
  color: #ae83ff;
}

.activity-card strong {
  font-size: 14px;
}

.activity-card small {
  font-size: 10px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(17,17,27,.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  z-index: 10;
}

.bottom-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.bottom-nav a.active {
  color: #b68aff;
}

@media (min-width: 700px) {
  main {
    padding-top: 45px;
  }
}


/* FREE RIDE */
.ride-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(153,92,255,.3);
  border-radius: 20px;
  background: var(--surface);
}

.ride-panel[hidden] {
  display: none;
}

.ride-status {
  text-align: center;
  color: #b68aff;
  font-size: 12px;
  margin: 22px 0;
}

.ride-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ride-stat {
  padding: 20px 10px;
  border-radius: 14px;
  background: var(--surface-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.ride-stat strong {
  font-size: 28px;
  font-weight: 900;
}

.ride-stat small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.ride-controls {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.ride-controls button,
#ride-back {
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, #995cff, #487dff);
  color: white;
  font-weight: 800;
}

.ride-controls button:disabled {
  opacity: .35;
}

#ride-back {
  width: 100%;
  margin-top: 12px;
  background: var(--surface-light);
}

/* RIDE HISTORY */
.ride-history {
  margin-top: 24px;
}

.ride-history h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.history-item {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 15px;
  margin-bottom: 10px;
}

.history-item strong {
  display: block;
  margin-bottom: 7px;
}

.history-item small {
  color: var(--muted);
  font-size: 11px;
}

.history-empty {
  color: var(--muted);
  font-size: 12px;
  padding: 15px;
  text-align: center;
}

/* CYKORA GARAGE */
.garage-panel[hidden] {
  display: none;
}

.garage-panel {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid rgba(153,92,255,.3);
  border-radius: 20px;
}

.bike-preview {
  margin-top: 22px;
  padding: 35px 15px;
  text-align: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(153,92,255,.2), transparent 70%),
    var(--surface-light);
}

.bike-art {
  font-size: 100px;
  filter: drop-shadow(0 10px 18px rgba(153,92,255,.25));
  margin-bottom: 15px;
  transition: .25s ease;
}

.bike-preview h2 {
  font-size: 19px;
  margin-bottom: 7px;
}

.bike-preview p {
  color: var(--muted);
  font-size: 11px;
}

.garage-section {
  margin-top: 25px;
}

.garage-section h3 {
  font-size: 16px;
}

.bike-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.bike-options button {
  padding: 13px;
  color: white;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
}

.bike-options button:active {
  transform: scale(.96);
}

#garage-back {
  width: 100%;
  padding: 14px;
  margin-top: 22px;
  color: white;
  background: linear-gradient(100deg, #995cff, #487dff);
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}

/* GARAGE COLOR CUSTOMIZATION */
.bike-preview {
  --bike-accent: #995cff;
  background:
    radial-gradient(circle at center,
      color-mix(in srgb, var(--bike-accent) 25%, transparent),
      transparent 70%),
    var(--surface-light);
  box-shadow: inset 0 0 25px color-mix(in srgb, var(--bike-accent) 15%, transparent);
  transition: background .25s ease, box-shadow .25s ease;
}

.bike-options button {
  transition: border-color .2s ease, background .2s ease;
}

.bike-options button.selected {
  border: 1px solid var(--bike-accent, #995cff);
  background: color-mix(in srgb, var(--bike-accent, #995cff) 20%, var(--surface-light));
}

/* CYKORA VECTOR BIKE */
.bike-art {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 190px;
  margin: 5px 0 20px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.3));
}

.bike-svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

.bike-preview {
  overflow: hidden;
}

.bike-svg circle,
.bike-svg path {
  transition: stroke .25s ease, fill .25s ease;
}

/* CYKORA BIKE CATALOG */
.bike-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 17px;
}

.bike-model {
  min-height: 112px;
  padding: 15px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  text-align: left;
  color: white;
  background: linear-gradient(145deg, #252438, #151520);
  border: 1px solid var(--border);
  border-radius: 15px;
  cursor: pointer;
  transition: .2s ease;
}

.bike-model strong {
  font-size: 14px;
  letter-spacing: .5px;
}

.bike-model span {
  color: #d0ccdc;
  font-size: 11px;
}

.bike-model small {
  color: #a987ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.bike-model.selected {
  border-color: #995cff;
  background: linear-gradient(145deg, #382653, #191725);
  box-shadow: 0 0 18px rgba(153,92,255,.15);
}


/* CYKORA STORE */
.store-panel[hidden] { display:none; }

.store-panel {
  margin-top:24px;
  padding-bottom:20px;
}

.store-hero {
  padding:25px 20px;
  border:1px solid rgba(153,92,255,.3);
  border-radius:22px;
  background:
    radial-gradient(circle at 85% 15%,rgba(72,125,255,.22),transparent 42%),
    radial-gradient(circle at 15% 90%,rgba(153,92,255,.2),transparent 45%),
    linear-gradient(145deg,#1c1b30,#11111b);
}

.store-hero h1 {
  font-size:35px;
  font-weight:950;
  letter-spacing:-1.5px;
  margin:8px 0;
}

.store-hero h1 span { color:#ae83ff; }

.store-balance {
  margin-top:24px;
  padding:15px;
  border-radius:15px;
  background:rgba(8,8,17,.55);
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.store-balance small {
  display:block;
  color:var(--muted);
  font-size:9px;
  letter-spacing:1.5px;
  margin-bottom:5px;
}

.store-balance strong { font-size:25px; }
.store-balance strong span { color:#b68aff;font-size:12px; }

.store-heading {
  margin:26px 0 15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.store-heading h2 { font-size:17px; }
.store-heading > span {
  color:#b68aff;
  font-size:9px;
  font-weight:800;
  letter-spacing:1px;
}

.store-filters {
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:2px 0 12px;
}

.store-filter {
  flex-shrink:0;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:30px;
  background:var(--surface);
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}

.store-filter.selected {
  color:white;
  border-color:#995cff;
  background:linear-gradient(110deg,#6336a1,#343b79);
}

.store-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.store-item {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:17px;
  background:linear-gradient(150deg,#202033,#14141f);
}

.store-item-art {
  height:105px;
  display:grid;
  place-items:center;
  font-size:43px;
  background:
    radial-gradient(circle,rgba(153,92,255,.23),transparent 68%),
    #191827;
}

.store-item-info { padding:12px; }
.store-item-info small {
  color:#b68aff;
  font-size:8px;
  font-weight:900;
  letter-spacing:1px;
}

.store-item-info h3 {
  margin:6px 0;
  font-size:12px;
  line-height:1.4;
}

.store-item-info p {
  min-height:29px;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
}

.store-buy {
  width:100%;
  margin-top:10px;
  padding:11px 5px;
  border:0;
  border-radius:10px;
  color:white;
  background:linear-gradient(105deg,#995cff,#487dff);
  font-size:11px;
  font-weight:900;
}

.store-buy:disabled {
  opacity:.4;
  background:#454454;
}

.store-inventory {
  margin-top:28px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:17px;
  background:var(--surface);
}

.store-inventory-item {
  padding:12px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--border);
}

.store-inventory-item:last-child { border-bottom:0; }
.store-inventory-item strong { font-size:12px; }
.store-inventory-item small { color:var(--muted);font-size:9px; }
.store-owned { color:#61d8a6;font-size:9px;font-weight:900; }
.store-empty {
  padding:15px 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
}

#store-back {
  width:100%;
  padding:14px;
  margin-top:20px;
  border:0;
  border-radius:12px;
  color:white;
  background:linear-gradient(100deg,#995cff,#487dff);
  font-weight:800;
}

@media (max-width:380px) {
  .store-grid { gap:8px; }
  .store-item-info { padding:9px; }
}


/* CYKORA WALLET 2.0 */
#wallet-open {
  margin-top: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(167,139,250,.35);
  border-radius: 9px;
  background: rgba(139,92,246,.12);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 800;
}

.wallet-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(167,139,250,.2);
}

.wallet-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.wallet-total {
  padding: 23px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #211b3c, #151b30);
  border: 1px solid rgba(167,139,250,.22);
}

.wallet-total h2 {
  margin-top: 8px;
  font-size: 35px;
  font-weight: 900;
  color: #e9ddff;
}

.wallet-total h2 span {
  font-size: 15px;
  color: #a78bfa;
}

.wallet-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 13px;
}

.wallet-stat {
  padding: 16px;
  border-radius: 13px;
  background: var(--surface-light);
  border: 1px solid var(--border);
}

.wallet-stat span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.wallet-stat strong {
  display: block;
  margin-top: 9px;
  font-size: 19px;
}

#wallet-total-earned { color: #6ee7b7; }
#wallet-total-spent { color: #fca5a5; }

.wallet-history {
  margin-top: 27px;
}

.wallet-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
}

.wallet-history-info {
  min-width: 0;
}

.wallet-history-info strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.wallet-history-info small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.wallet-history-amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 900;
}

.wallet-history-amount.earned { color: #6ee7b7; }
.wallet-history-amount.spent { color: #fca5a5; }

#wallet-back {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-light);
  color: white;
  font-weight: 800;
}


/* CYKORA RANKINGS */
.rankings-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(167,139,250,.2);
}

.rankings-header { margin-bottom: 20px; }
.rankings-header h2 { font-size: 25px; font-weight: 900; margin-top: 5px; }

.ranking-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 17px;
}

.ranking-tab {
  padding: 13px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-light);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.ranking-tab.active {
  color: #e9ddff;
  border-color: rgba(167,139,250,.55);
  background: linear-gradient(135deg, #302452, #202039);
}

.ranking-board {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, #211b3c, #151b30);
  border: 1px solid rgba(167,139,250,.2);
}

.ranking-board-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ranking-board-title h2 { font-size: 17px; margin-top: 5px; }

.ranking-season {
  color: #a78bfa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.ranking-player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 15px;
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}

.ranking-player-position {
  font-size: 22px;
  font-weight: 900;
  color: #c4b5fd;
}

.ranking-player-info { flex: 1; min-width: 0; }
.ranking-player-info strong { display: block; font-size: 14px; }
.ranking-player-info small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.ranking-player-score {
  font-size: 14px;
  font-weight: 900;
  color: #67e8f9;
  text-align: right;
}

.ranking-progress { margin-top: 17px; }
.ranking-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.09);
}

#ranking-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #67e8f9);
}

.ranking-progress small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.ranking-coming-soon {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-light);
}

.ranking-coming-soon span {
  display: block;
  color: #a78bfa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 9px;
}

.ranking-coming-soon strong { font-size: 13px; }
.ranking-coming-soon p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 7px;
}

#rankings-back {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-light);
  color: white;
  font-weight: 800;
}

/* CYKORA PROFILE + VISUAL REFRESH */
:root {
  --cykora-accent: #a77bff;
  --cykora-cyan: #62d9ff;
}

.bottom-nav {
  height: 78px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(13,14,24,.96);
  border-top: 1px solid rgba(167,123,255,.25);
  box-shadow: 0 -12px 35px rgba(0,0,0,.3);
}

.bottom-nav a {
  min-width: 58px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--muted);
  transition: .2s ease;
}

.bottom-nav a .nav-icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.bottom-nav a small {
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav a.active {
  color: #d8c2ff;
  background: linear-gradient(145deg,rgba(151,91,255,.22),rgba(72,125,255,.09));
  border-color: rgba(167,123,255,.4);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
  transform: translateY(-2px);
}

.profile-button {
  box-shadow: 0 0 0 4px rgba(153,92,255,.12),
              0 7px 20px rgba(72,125,255,.2);
}

.activity-card,
.rank-card,
.wallet,
.ride-panel,
.ranking-board,
.store-balance,
.store-inventory {
  border: 1px solid rgba(167,123,255,.2);
  box-shadow: 0 12px 30px rgba(0,0,0,.16),
              inset 0 1px rgba(255,255,255,.035);
}

.profile-panel {
  padding-bottom: 24px;
}

.profile-cover {
  position: relative;
  overflow: hidden;
  margin: 4px 0 18px;
  padding: 22px 19px;
  border: 1px solid rgba(167,123,255,.35);
  border-radius: 25px;
  background:
    radial-gradient(circle at 90% 5%,rgba(98,217,255,.2),transparent 34%),
    linear-gradient(135deg,#242039,#171a2b 65%,#172638);
  box-shadow: 0 16px 36px rgba(0,0,0,.25);
}

.profile-cover:after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -65px;
  bottom: -90px;
  border: 1px solid rgba(167,123,255,.25);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(167,123,255,.035),
              0 0 0 38px rgba(167,123,255,.025);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  font-size: 39px;
  background: linear-gradient(145deg,rgba(167,123,255,.25),rgba(98,217,255,.12));
  border: 1px solid rgba(202,177,255,.55);
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.profile-identity h1 {
  margin: 0 0 3px;
  font-size: 23px;
  overflow-wrap: anywhere;
}

.profile-identity p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 13px;
}

.profile-rank-pill {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(98,217,255,.3);
  border-radius: 999px;
  background: rgba(98,217,255,.08);
  color: #a9eaff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
}

.profile-section-card {
  padding: 19px;
  border: 1px solid rgba(167,123,255,.23);
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(35,32,53,.96),rgba(22,24,37,.96));
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.profile-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.profile-section-heading h2 {
  margin: 3px 0 0;
  font-size: 19px;
}

.profile-edit-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #d5c0ff;
  background: rgba(167,123,255,.13);
  border: 1px solid rgba(167,123,255,.25);
}

.profile-label {
  display: block;
  margin: 14px 0 7px;
  color: #c8c4d8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .55px;
}

.profile-input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(167,123,255,.28);
  border-radius: 13px;
  outline: none;
  color: #f5f2ff;
  background: #171827;
  font: inherit;
}

.profile-input:focus {
  border-color: #a77bff;
  box-shadow: 0 0 0 3px rgba(167,123,255,.12);
}

.profile-avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.profile-avatar-options button {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(167,123,255,.22);
  border-radius: 13px;
  background: #1a1b2b;
  font-size: 22px;
  cursor: pointer;
}

.profile-avatar-options button.selected {
  border-color: #b58aff;
  background: rgba(167,123,255,.2);
  box-shadow: 0 0 0 3px rgba(167,123,255,.1);
}

.profile-save-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(199,174,255,.4);
  border-radius: 14px;
  color: white;
  background: linear-gradient(110deg,#8050d7,#4d75d9);
  font-weight: 800;
  cursor: pointer;
}

.profile-save-button span {
  font-size: 19px;
}

.profile-save-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px;
  margin: 14px 0;
}

.profile-stat-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(167,123,255,.2);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(32,34,52,.95),rgba(21,23,36,.95));
}

.profile-stat-card>span {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.profile-stat-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 22px;
}

.profile-stat-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
}

.profile-back-button {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(167,123,255,.25);
  border-radius: 14px;
  color: #d8c2ff;
  background: rgba(167,123,255,.08);
  font-weight: 700;
  cursor: pointer;
}

/* CYKORA GARAGE: ESTADOS DE PROPIEDAD */
.bike-model {
  position: relative;
  overflow: hidden;
}

.bike-model.locked {
  opacity: 1 !important;
  border: 1px solid rgba(255, 190, 90, .42) !important;
  background: linear-gradient(145deg, #292536, #17151f) !important;
}

.bike-model.locked::after {
  content: "🔒 BLOQUEADA";
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 6px 8px;
  box-sizing: border-box;
  border-radius: 7px;
  background: rgba(255, 190, 90, .12);
  color: #ffc66d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
}

.bike-model .bike-unlock-status {
  display: block !important;
  width: 100%;
  margin-top: 5px;
  color: #ffc66d !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.bike-model.selected {
  border: 1px solid #a77bff !important;
  box-shadow: 0 0 0 2px rgba(167,123,255,.18);
}

.bike-model:not(.locked) .bike-unlock-status {
  color: #83e6b0 !important;
}

/* CYKORA: UNA SOLA SECCIÓN ACTIVA */
.bottom-nav a {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav a:focus,
.bottom-nav a:focus-visible {
  outline: none !important;
}

.bottom-nav a:not(.active) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.bottom-nav a.active {
  border: 1px solid rgba(167,123,255,.4) !important;
  background: linear-gradient(145deg,rgba(151,91,255,.22),rgba(72,125,255,.09)) !important;
}


/* CYKORA PROFILE 2.0 */
.profile-v2-fields {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.profile-v2-fields [hidden] {
  display: none !important;
}

.profile-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-upload-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px dashed rgba(150,150,180,.45);
  border-radius: 13px;
  background: rgba(120,120,150,.07);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.profile-upload-control small {
  color: var(--text-muted, #999);
  font-size: 11px;
  font-weight: 400;
}

.profile-upload-control input {
  width: 100%;
  max-width: 100%;
  font-size: 11px;
}

.profile-group-divider {
  margin: 12px 0 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(150,150,180,.2);
  color: var(--accent, #a78bfa);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.profile-v2-fields textarea {
  resize: vertical;
  min-height: 76px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#profile-save:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 420px) {
  .profile-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* CYKORA: ocultar por completo los selectores nativos */
.profile-media-card input[type="file"],
.profile-upload-control input[type="file"],
#profile-photo-input,
#profile-cover-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Tarjetas de medios CYKORA */
.profile-media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157,125,255,.3);
  background: linear-gradient(145deg, #222235, #11131d);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}

.profile-media-actions {
  position: relative;
  z-index: 2;
}

.profile-media-actions button {
  appearance: none;
  -webkit-appearance: none;
}

/* CYKORA: ajuste y recorte de imágenes */
#profile-avatar-preview,
.profile-media-preview,
.profile-avatar,
.profile-cover {
  position: relative;
  overflow: hidden !important;
  box-sizing: border-box;
}

#profile-avatar-preview img,
.profile-media-preview img,
.profile-avatar img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit;
}

.profile-media-avatar,
#profile-avatar-preview,
.profile-avatar {
  border-radius: 50% !important;
}

.profile-media-cover {
  border-radius: 12px !important;
}


/* CYKORA PROFILE MEDIA - FINAL */
.profile-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-media-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(157,125,255,.35);
  border-radius: 16px;
  background: linear-gradient(145deg, #222235, #11131d);
  overflow: hidden;
}

.profile-media-preview {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(170,145,255,.3);
  background: rgba(150,130,200,.12);
  color: #c6b5ff;
  font-size: 23px;
}

.profile-media-avatar { border-radius: 50%; }
.profile-media-cover { border-radius: 12px; }

.profile-media-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.profile-media-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.profile-media-info strong {
  font-size: 11px;
  letter-spacing: 1px;
}

.profile-media-info small {
  color: var(--text-muted, #999);
  font-size: 11px;
}

.profile-file-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.profile-media-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.profile-media-actions button {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.profile-media-button {
  border: 1px solid rgba(157,125,255,.45);
  color: #e2d8ff;
  background: rgba(137,91,255,.17);
}

.profile-media-delete {
  border: 1px solid rgba(255,105,115,.35);
  color: #ff9da5;
  background: rgba(255,75,90,.12);
}

@media (min-width: 520px) {
  .profile-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
