/* ==========================================================================
   R Pad — Portal stylesheet · NEON DARK THEME
   Cyberpunk gaming look: near-black navy, electric cyan primary, neon
   green/purple/gold section colors, glowing panels with corner brackets.
   Class names unchanged from the light theme — pure reskin.
   ========================================================================== */

:root {
  --rp-font: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Neon palette */
  --rp-neon:        #2d7ff9;   /* electric cyan (primary) */
  --rp-neon-strong: #4d94ff;
  --rp-neon-deep:   #1e63d6;
  --rp-green:       #4ade80;
  --rp-purple:      #c084fc;
  --rp-gold:        #fbbf24;
  --rp-red:         #fb7185;

  /* Surfaces */
  --rp-bg:       #050a17;
  --rp-bg-2:     #071022;
  --rp-surface:  #0a1630;
  --rp-surface-2:#0d1c3c;
  --rp-inset-bg: #081328;
  --rp-line:     rgba(45, 127, 249, 0.22);
  --rp-line-soft:rgba(45, 127, 249, 0.12);

  /* Text */
  --rp-text:   #e8f1ff;
  --rp-text-2: #b7c6dd;
  --rp-muted:  #7f93b0;
  --rp-dim:    #55677f;

  /* Legacy variable aliases (used across components) */
  --rp-primary-50:  rgba(45, 127, 249, 0.10);
  --rp-primary-100: rgba(45, 127, 249, 0.18);
  --rp-primary-200: rgba(45, 127, 249, 0.32);
  --rp-primary-400: #4d94ff;
  --rp-primary-500: #2d7ff9;
  --rp-primary-600: #2d7ff9;
  --rp-primary-700: #66e7ff;
  --rp-primary-900: #003a4d;

  --rp-accent-50:  rgba(45, 127, 249, 0.08);
  --rp-accent-100: rgba(45, 127, 249, 0.15);
  --rp-accent-200: rgba(45, 127, 249, 0.35);
  --rp-accent-400: #2d7ff9;
  --rp-accent-500: #4d94ff;

  --rp-dark-50:  #050a17;
  --rp-dark-100: rgba(45, 127, 249, 0.10);
  --rp-dark-200: rgba(45, 127, 249, 0.22);
  --rp-dark-300: #3d5270;
  --rp-dark-400: #7f93b0;
  --rp-dark-500: #8fa3c0;
  --rp-dark-600: #b7c6dd;
  --rp-dark-700: #cdd9ec;
  --rp-dark-800: #0d1c3c;
  --rp-dark-900: #e8f1ff;

  --rp-r-xl:  0.75rem;
  --rp-r-2xl: 1rem;
  --rp-r-3xl: 1.15rem;

  --rp-glow:      0 0 18px rgba(45, 127, 249, 0.18), 0 0 2px rgba(45, 127, 249, 0.35);
  --rp-glow-soft: 0 0 14px rgba(45, 127, 249, 0.10);
}

* { box-sizing: border-box; }

html, body.rp-body { margin: 0; padding: 0; height: 100%; }

body.rp-body {
  font-family: var(--rp-font);
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(45, 127, 249, 0.07), transparent 60%),
    radial-gradient(50rem 30rem at -20% 110%, rgba(14, 165, 233, 0.06), transparent 60%),
    linear-gradient(160deg, #060a14 0%, var(--rp-bg) 55%, #030509 100%);
  background-attachment: fixed;
  color: var(--rp-text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 0.95rem; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(45, 127, 249, 0.25); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   App shell: sidebar + bottom nav
   -------------------------------------------------------------------------- */
.rp-shell { display: flex; height: 100vh; overflow: hidden; }

.rp-sidebar {
  display: none;
  flex-direction: column;
  width: 16rem;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--rp-surface) 0%, var(--rp-bg-2) 100%);
  border-right: 1px solid var(--rp-line);
  box-shadow: 8px 0 30px -20px rgba(45, 127, 249, 0.25);
  z-index: 10;
  flex-shrink: 0;
}
.rp-sidebar-nav { flex: 1; }
.rp-sidebar-brand { padding: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.rp-logo {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--rp-r-xl);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  color: #fff;
  font-weight: 900; font-size: 1.15rem;
  border: 1px solid var(--rp-line);
  box-shadow: var(--rp-glow-soft);
  overflow: hidden;
}
.rp-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.rp-logo:has(img) { background: transparent; border: 1px solid var(--rp-line); }
.rp-brand-name {
  font-size: 1.2rem; font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--rp-text);
  text-shadow: 0 0 12px rgba(45, 127, 249, 0.35);
}
.rp-sidebar-nav { flex: 1; padding: 1rem 1rem 0; margin-top: 1rem; }
.rp-nav-item {
  display: flex; align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: var(--rp-r-xl);
  color: var(--rp-muted);
  border: 1px solid transparent;
  transition: all .15s;
}
.rp-nav-item:hover { color: var(--rp-text); background: rgba(45, 127, 249, 0.06); }
.rp-nav-item.active {
  background: rgba(45, 127, 249, 0.10);
  color: var(--rp-neon);
  border-color: var(--rp-line);
  box-shadow: var(--rp-glow-soft), inset 0 0 12px rgba(45, 127, 249, 0.07);
  text-shadow: 0 0 10px rgba(45, 127, 249, 0.6);
}
.rp-nav-item .rp-ico { margin-right: 0.75rem; font-size: 1.1rem; width: 1.4rem; text-align: center; }

.rp-main { flex: 1; display: flex; flex-direction: column; height: 100%; overflow: hidden; position: relative; }
.rp-scroll { flex: 1; overflow-y: auto; padding-bottom: 92px; }
.rp-container { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

.rp-bottomnav {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rp-line);
  box-shadow: 0 -8px 30px -12px rgba(45, 127, 249, 0.25);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.rp-bottomnav-inner { display: flex; justify-content: space-around; align-items: center; height: 68px; padding: 0 0.25rem; }
.rp-bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: var(--rp-dim);
  gap: 0.25rem;
  transition: color .15s;
}
.rp-bottomnav a:hover { color: var(--rp-text-2); }
.rp-bottomnav a.active { color: var(--rp-neon); text-shadow: 0 0 12px rgba(45, 127, 249, 0.8); }
.rp-bottomnav .rp-ico { font-size: 1.25rem; line-height: 1; }
.rp-bottomnav .rp-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

@media (min-width: 768px) {
  .rp-sidebar { display: flex; }
  .rp-bottomnav { display: none; }
  .rp-scroll { padding-bottom: 2rem; }
  .rp-container { padding: 0 2rem; }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.rp-h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; color: var(--rp-text); }
.rp-h2 {
  font-size: 0.85rem; font-weight: 800; margin: 0 0 1rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--rp-text-2);
  position: relative; padding-left: 0.9rem;
}
.rp-h2::before {
  content: ""; position: absolute; left: 0; top: 0.1em; bottom: 0.1em;
  width: 3px; border-radius: 2px;
  background: var(--rp-neon);
  box-shadow: 0 0 8px rgba(45, 127, 249, 0.8);
}
.rp-h-black { font-weight: 900; }
.rp-muted { color: var(--rp-muted); }
.rp-small { font-size: 0.875rem; }
.rp-xs { font-size: 0.75rem; }
.rp-bold { font-weight: 700; }
.rp-section { margin-bottom: 2rem; }
.rp-page-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.rp-eyebrow {
  font-size: 0.8rem; font-weight: 800; color: var(--rp-muted);
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Cards — glowing panels with corner brackets
   -------------------------------------------------------------------------- */
.rp-card {
  position: relative;
  background: linear-gradient(165deg, var(--rp-surface-2) 0%, var(--rp-surface) 60%, #080f1c 100%);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-3xl);
  box-shadow: var(--rp-glow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.rp-card::before, .rp-card::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(45, 127, 249, 0.55);
  pointer-events: none; z-index: 2;
}
.rp-card::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: var(--rp-r-3xl); }
.rp-card::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: var(--rp-r-3xl); }
.rp-card-p { padding: 1.25rem; }
.rp-card-p6 { padding: 1.5rem; }
.rp-card-hover { transition: box-shadow .15s, border-color .15s, transform .15s; }
.rp-card-hover:hover {
  border-color: rgba(45, 127, 249, 0.5);
  box-shadow: var(--rp-glow);
  transform: translateY(-1px);
}
.rp-card-dashed {
  background: rgba(45, 127, 249, 0.03);
  border: 1px dashed var(--rp-line);
  border-radius: var(--rp-r-3xl);
  padding: 1.5rem;
  text-align: center;
  color: var(--rp-muted);
}
.rp-inset {
  background: var(--rp-inset-bg);
  border-radius: var(--rp-r-2xl);
  padding: 1rem;
  border: 1px solid var(--rp-line-soft);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.rp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: var(--rp-r-2xl);
  padding: 1rem 1.5rem;
  transition: all .15s;
  text-align: center;
}
.rp-btn-block { display: flex; width: 100%; }
.rp-btn-accent {
  background: linear-gradient(135deg, #2d7ff9 0%, #0891d1 100%);
  color: #03141d;
  box-shadow: 0 0 22px rgba(45, 127, 249, 0.45), 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(151, 235, 255, 0.7);
}
.rp-btn-accent:hover { filter: brightness(1.12); box-shadow: 0 0 30px rgba(45, 127, 249, 0.65); }
.rp-btn-dark {
  background: rgba(45, 127, 249, 0.08);
  color: var(--rp-neon);
  border: 1px solid var(--rp-line);
  border-radius: 9999px; padding: 0.65rem 1.25rem; font-size: 0.8rem;
  box-shadow: var(--rp-glow-soft);
}
.rp-btn-dark:hover { background: rgba(45, 127, 249, 0.16); }
.rp-btn-dark-xl {
  background: rgba(45, 127, 249, 0.08);
  color: var(--rp-neon);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-xl); padding: 0.65rem 1rem; font-size: 0.8rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.rp-btn-dark-xl:hover { background: rgba(45, 127, 249, 0.16); }
.rp-btn-primary {
  background: linear-gradient(135deg, #2d7ff9 0%, #0891d1 100%);
  color: #03141d;
  border: 1px solid rgba(151, 235, 255, 0.6);
  box-shadow: 0 0 16px rgba(45, 127, 249, 0.35);
}
.rp-btn-primary:hover { filter: brightness(1.1); }
.rp-btn-primary-soft {
  background: rgba(45, 127, 249, 0.10); color: var(--rp-neon);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-xl); padding: 0.4rem 0.85rem;
  font-size: 0.8rem; font-weight: 800;
}
.rp-btn-primary-soft:hover { background: rgba(45, 127, 249, 0.18); }
.rp-btn-ghost { color: var(--rp-muted); font-weight: 700; padding: 0.75rem; }
.rp-btn-ghost:hover { color: var(--rp-text-2); }
.rp-btn-danger-ghost {
  color: var(--rp-red); font-weight: 800; width: 100%; padding: 1rem;
  border-radius: var(--rp-r-2xl);
  border: 1px solid rgba(251, 113, 133, 0.25);
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem;
}
.rp-btn-danger-ghost:hover { background: rgba(251, 113, 133, 0.08); box-shadow: 0 0 14px rgba(251, 113, 133, 0.2); }
.rp-btn[disabled], .rp-btn.rp-disabled {
  background: #101827 !important;
  color: var(--rp-dim) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  filter: none !important;
}
.rp-link { color: var(--rp-neon); font-weight: 700; font-size: 0.875rem; }
.rp-link:hover { color: var(--rp-neon-strong); text-shadow: 0 0 10px rgba(45, 127, 249, 0.5); }

/* --------------------------------------------------------------------------
   Chips / badges
   -------------------------------------------------------------------------- */
.rp-chip {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 0.5rem;
  white-space: nowrap;
  border: 1px solid transparent;
}
.rp-chip-primary { background: rgba(45, 127, 249, 0.10); color: var(--rp-neon); border-color: var(--rp-line); }
.rp-chip-dark { background: rgba(127, 147, 176, 0.10); color: var(--rp-text-2); border-color: rgba(127, 147, 176, 0.25); }
.rp-chip-accent { background: linear-gradient(135deg, #2d7ff9, #0891d1); color: #03141d; }
.rp-chip-green { background: rgba(74, 222, 128, 0.10); color: var(--rp-green); border-color: rgba(74, 222, 128, 0.35); border-radius: 9999px; }
.rp-chip-red { background: rgba(251, 113, 133, 0.10); color: var(--rp-red); border-color: rgba(251, 113, 133, 0.35); border-radius: 9999px; }
.rp-chip-amber { background: rgba(251, 191, 36, 0.10); color: var(--rp-gold); border-color: rgba(251, 191, 36, 0.35); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.rp-label {
  display: block; font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rp-text-2); margin-bottom: 0.4rem; margin-left: 0.25rem;
}
.rp-input, .rp-select, .rp-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--rp-inset-bg);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-2xl);
  font-weight: 500;
  color: var(--rp-text);
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}
.rp-input::placeholder, .rp-textarea::placeholder { color: var(--rp-dim); }
.rp-select option { background: var(--rp-surface); color: var(--rp-text); }
.rp-input:focus, .rp-select:focus, .rp-textarea:focus {
  border-color: var(--rp-neon);
  box-shadow: 0 0 0 2px rgba(45, 127, 249, 0.25), var(--rp-glow-soft);
}
.rp-search-wrap { position: relative; margin-bottom: 1rem; }
.rp-search-wrap .rp-ico {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--rp-neon); pointer-events: none;
  text-shadow: 0 0 8px rgba(45, 127, 249, 0.6);
}
.rp-search-input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 2.75rem;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-2xl);
  background: var(--rp-surface);
  box-shadow: var(--rp-glow-soft);
  font-weight: 500;
  color: var(--rp-text);
  outline: none;
}
.rp-search-input::placeholder { color: var(--rp-dim); }
.rp-search-input:focus { border-color: var(--rp-neon); box-shadow: 0 0 0 2px rgba(45, 127, 249, 0.25); }

/* Segmented tabs */
.rp-tabs {
  display: flex;
  background: var(--rp-inset-bg);
  border: 1px solid var(--rp-line-soft);
  padding: 0.375rem;
  border-radius: var(--rp-r-xl);
  margin-top: 1rem;
}
.rp-tab {
  flex: 1;
  padding: 0.625rem;
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: 0.5rem;
  color: var(--rp-muted);
  text-align: center;
  transition: all .15s;
}
.rp-tab:hover { color: var(--rp-text-2); }
.rp-tab.active {
  background: rgba(45, 127, 249, 0.12);
  color: var(--rp-neon);
  box-shadow: inset 0 0 12px rgba(45, 127, 249, 0.08);
  border: 1px solid var(--rp-line);
  text-shadow: 0 0 10px rgba(45, 127, 249, 0.5);
}

/* Pill filter row */
.rp-pills { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.rp-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--rp-r-xl);
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
  background: var(--rp-surface); color: var(--rp-muted);
  border: 1px solid var(--rp-line-soft);
}
.rp-pill.active {
  background: rgba(45, 127, 249, 0.12);
  color: var(--rp-neon);
  border-color: var(--rp-neon);
  box-shadow: var(--rp-glow-soft);
  text-shadow: 0 0 10px rgba(45, 127, 249, 0.5);
}

/* --------------------------------------------------------------------------
   Grids & quick-action tiles (per-tile neon colors like the mockup)
   -------------------------------------------------------------------------- */
.rp-grid { display: grid; gap: 1rem; }
.rp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-grid-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) {
  .rp-grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-grid-actions { grid-template-columns: repeat(4, 1fr); }
}

.rp-tile {
  --tile: var(--rp-neon);
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: var(--rp-r-3xl);
  font-weight: 800; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-align: center;
  color: var(--rp-text);
  background: linear-gradient(165deg, var(--rp-surface-2), #070d19);
  border: 1px solid color-mix(in srgb, var(--tile) 45%, transparent);
  box-shadow: 0 0 18px -6px var(--tile), inset 0 0 22px -14px var(--tile);
  transition: all .15s;
}
.rp-tile:hover { box-shadow: 0 0 26px -4px var(--tile); transform: translateY(-2px); }
.rp-tile .rp-ico {
  font-size: 2rem; margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 10px var(--tile));
}
.rp-grid-actions a:nth-child(1) { --tile: #2d7ff9; }
.rp-grid-actions a:nth-child(2) { --tile: #4ade80; }
.rp-grid-actions a:nth-child(3) { --tile: #c084fc; }
.rp-grid-actions a:nth-child(4) { --tile: #fbbf24; }
.rp-tile-accent, .rp-tile-white { background: linear-gradient(165deg, var(--rp-surface-2), #070d19); color: var(--rp-text); border: 1px solid color-mix(in srgb, var(--tile) 45%, transparent); }
.rp-tile-white .rp-ico { color: inherit; }

/* --------------------------------------------------------------------------
   Club / listing cards
   -------------------------------------------------------------------------- */
.rp-clubcard { overflow: hidden; display: flex; flex-direction: column; }
.rp-clubcard-img { height: 10rem; width: 100%; background: var(--rp-inset-bg); position: relative; }
.rp-clubcard-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 6, 13, 0.75) 100%);
  pointer-events: none;
}
.rp-clubcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-img-badges { position: absolute; bottom: 0.75rem; left: 0.75rem; display: flex; gap: 0.5rem; z-index: 2; }
.rp-img-badge {
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  font-size: 0.7rem; font-weight: 800;
  color: var(--rp-gold);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.rp-clubrow { display: flex; height: 8rem; overflow: hidden; }
.rp-clubrow-img { width: 33.333%; background: var(--rp-inset-bg); position: relative; flex-shrink: 0; }
.rp-clubrow-img img { width: 100%; height: 100%; object-fit: cover; }
.rp-clubrow-body { padding: 1rem; width: 66.666%; display: flex; flex-direction: column; justify-content: space-between; }

/* Avatars */
.rp-avatars { display: flex; }
.rp-avatars > * { margin-left: -0.5rem; }
.rp-avatars > *:first-child { margin-left: 0; }
.rp-avatar {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  border: 2px solid var(--rp-bg);
  background: rgba(45, 127, 249, 0.15);
  color: var(--rp-neon);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
  position: relative; z-index: 1;
  box-shadow: 0 0 8px rgba(45, 127, 249, 0.25);
}
.rp-avatar-empty { background: rgba(127, 147, 176, 0.10); border-style: dashed; border-color: var(--rp-dark-300); color: var(--rp-dim); z-index: 0; box-shadow: none; }
.rp-avatar-lg {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  background: rgba(45, 127, 249, 0.12); color: var(--rp-neon);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  border: 1px solid var(--rp-line);
  box-shadow: 0 0 10px rgba(45, 127, 249, 0.2);
  flex-shrink: 0;
}
.rp-avatar-xl {
  width: 4rem; height: 4rem;
  border-radius: 9999px;
  background: rgba(45, 127, 249, 0.12); color: var(--rp-neon);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
  border: 1px solid var(--rp-line);
  box-shadow: 0 0 16px rgba(45, 127, 249, 0.3);
}
.rp-avatar-photo {
  width: 4rem; height: 4rem;
  border-radius: 9999px;
  object-fit: cover; display: block;
  border: 2px solid var(--rp-neon);
  box-shadow: 0 0 16px rgba(45, 127, 249, 0.4);
}
.rp-avatar-lg-img {
  width: 3rem; height: 3rem;
  border-radius: 9999px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--rp-line);
}
.rp-avatar-upload { position: relative; display: inline-block; cursor: pointer; }
.rp-avatar-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 1.75rem; height: 1.75rem;
  border-radius: 9999px;
  background: var(--rp-neon); color: #03141d;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  border: 2px solid var(--rp-bg);
  box-shadow: 0 0 10px rgba(45, 127, 249, 0.6);
}

/* --------------------------------------------------------------------------
   Detail pages: hero, sticky headers, dates, slots
   -------------------------------------------------------------------------- */
.rp-hero { position: relative; height: 16rem; background: var(--rp-bg-2); }
@media (min-width: 768px) { .rp-hero { height: 20rem; } }
.rp-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.rp-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.25) 0%, transparent 35%, rgba(4, 6, 13, 0.9) 100%);
  pointer-events: none;
}
.rp-hero-back {
  position: absolute; top: 1rem; left: 1rem;
  width: 2.5rem; height: 2.5rem;
  background: url('/r_padel/static/src/img/back_btn.png') center / contain no-repeat;
  border: none;
  border-radius: 14px;
  font-size: 0; line-height: 0; color: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--rp-neon); font-size: 1.25rem;
  z-index: 20;
  transition: all .15s;
}
.rp-hero-back:hover { box-shadow: var(--rp-glow); }
.rp-hero-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(6, 10, 20, 0.8);
  color: var(--rp-gold);
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 0.25rem 0.75rem; border-radius: var(--rp-r-xl);
  font-size: 0.75rem; font-weight: 800;
  z-index: 20;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
}
.rp-overlap { max-width: 56rem; margin: -4rem auto 0; padding: 0 1rem; position: relative; z-index: 10; }
@media (min-width: 768px) { .rp-overlap { margin-top: -6rem; } }

.rp-topbar {
  background: rgba(6, 10, 20, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem;
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--rp-line);
  display: flex; align-items: center;
}
.rp-topbar-title {
  font-size: 1rem; font-weight: 800; margin-left: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rp-text);
}
.rp-topbar-back {
  padding: 0; margin-left: -0.25rem;
  font-size: 0; line-height: 0; color: transparent;
  background: url('/r_padel/static/src/img/back_btn.png') center / contain no-repeat;
}
.rp-topbar-back:hover { filter: drop-shadow(0 0 10px rgba(45, 127, 249, 0.8)); }

/* Date pills */
.rp-dates { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.rp-date {
  flex: 1; min-width: 70px;
  padding: 0.75rem 0;
  border-radius: var(--rp-r-2xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--rp-inset-bg);
  border: 1px solid var(--rp-line-soft);
  transition: all .15s;
}
.rp-date .rp-date-label { font-size: 0.65rem; font-weight: 700; color: var(--rp-muted); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rp-date .rp-date-val { font-size: 0.875rem; font-weight: 800; color: var(--rp-text); }
.rp-date.active {
  background: rgba(45, 127, 249, 0.12);
  border-color: var(--rp-neon);
  box-shadow: var(--rp-glow);
}
.rp-date.active .rp-date-label { color: var(--rp-neon); }
.rp-date.active .rp-date-val { color: var(--rp-neon); text-shadow: 0 0 10px rgba(45, 127, 249, 0.6); }

/* Slot buttons */
.rp-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.rp-slot {
  padding: 0.75rem;
  border-radius: var(--rp-r-2xl);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--rp-line-soft);
  background: var(--rp-surface);
  transition: all .15s;
}
.rp-slot:hover { border-color: var(--rp-neon); box-shadow: var(--rp-glow); }
.rp-slot.peak { border-color: rgba(251, 191, 36, 0.4); }
.rp-slot .rp-slot-time { font-weight: 800; font-size: 1.1rem; color: var(--rp-text); }
.rp-slot .rp-slot-price { font-size: 0.7rem; font-weight: 800; margin-top: 0.25rem; color: var(--rp-muted); }
.rp-slot.peak .rp-slot-price { color: var(--rp-gold); text-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.rp-slot.booked { background: rgba(255, 255, 255, 0.02); border-color: transparent; opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.rp-slot .rp-slot-full { font-size: 10px; text-transform: uppercase; font-weight: 800; color: var(--rp-red); margin-top: 0.25rem; }

/* Option cards & radio rows */
.rp-opt {
  padding: 1rem;
  border-radius: var(--rp-r-2xl);
  border: 1px solid var(--rp-line-soft);
  background: var(--rp-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--rp-text-2);
  transition: all .15s;
  cursor: pointer;
  text-align: center;
}
.rp-opt:hover { border-color: var(--rp-line); }
.rp-opt .rp-ico { font-size: 1.5rem; margin-bottom: 0.5rem; }
.rp-opt-title { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.rp-opt-sub { font-size: 10px; margin-top: 0.25rem; opacity: 0.7; }
input.rp-opt-input { position: absolute; opacity: 0; pointer-events: none; }
input.rp-opt-input:checked + .rp-opt,
.rp-opt.active {
  border-color: var(--rp-neon);
  background: rgba(45, 127, 249, 0.10);
  color: var(--rp-neon);
  box-shadow: var(--rp-glow);
}
.rp-radio-row {
  width: 100%; padding: 1rem;
  border-radius: var(--rp-r-3xl);
  border: 1px solid var(--rp-line-soft);
  background: var(--rp-surface);
  display: flex; align-items: center; justify-content: space-between;
  transition: all .15s;
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.rp-radio-row:hover { border-color: var(--rp-line); }
input.rp-opt-input:checked + .rp-radio-row {
  border-color: var(--rp-neon);
  background: rgba(45, 127, 249, 0.08);
  box-shadow: var(--rp-glow-soft);
}
.rp-radio-dot {
  width: 1.25rem; height: 1.25rem; border-radius: 9999px;
  border: 2px solid var(--rp-dark-300);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
input.rp-opt-input:checked + .rp-radio-row .rp-radio-dot { border-color: var(--rp-neon); box-shadow: 0 0 8px rgba(45, 127, 249, 0.5); }
input.rp-opt-input:checked + .rp-radio-row .rp-radio-dot::after {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 9999px;
  background: var(--rp-neon);
}
.rp-radio-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(127, 147, 176, 0.10); color: var(--rp-muted);
  display: flex; align-items: center; justify-content: center;
  margin-right: 0.75rem; font-size: 1.1rem; flex-shrink: 0;
}
input.rp-opt-input:checked + .rp-radio-row .rp-radio-icon { background: rgba(45, 127, 249, 0.15); color: var(--rp-neon); }

/* Range */
.rp-range { width: 100%; accent-color: var(--rp-neon); }
.rp-level-display {
  text-align: center; margin-top: 1rem;
  font-weight: 800; color: var(--rp-neon);
  background: rgba(45, 127, 249, 0.08);
  border: 1px solid var(--rp-line);
  padding: 0.5rem; border-radius: var(--rp-r-xl);
  text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Wallet
   -------------------------------------------------------------------------- */
.rp-balance-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #0b1526 0%, #060b16 100%);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-3xl);
  padding: 1.5rem;
  color: var(--rp-text);
  box-shadow: var(--rp-glow), inset 0 0 40px -20px rgba(45, 127, 249, 0.25);
  margin-bottom: 1.5rem;
}
.rp-balance-card::before {
  content: ""; position: absolute; top: -2rem; right: -2rem;
  width: 9rem; height: 9rem; border-radius: 9999px;
  background: var(--rp-neon); opacity: 0.12; filter: blur(46px);
}
.rp-balance-card::after {
  content: ""; position: absolute; bottom: -2rem; left: -2rem;
  width: 7rem; height: 7rem; border-radius: 9999px;
  background: var(--rp-green); opacity: 0.10; filter: blur(30px);
}
.rp-balance-inner { position: relative; z-index: 1; }
.rp-balance-amount {
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  text-shadow: 0 0 20px rgba(45, 127, 249, 0.35);
}
.rp-balance-r { font-size: 1.25rem; color: var(--rp-green); font-weight: 800; text-shadow: 0 0 12px rgba(74, 222, 128, 0.6); }

.rp-pack {
  position: relative; width: 100%;
  background: linear-gradient(165deg, var(--rp-surface-2), #070d19);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--rp-r-3xl);
  padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--rp-text);
  box-shadow: 0 0 16px -8px rgba(251, 191, 36, 0.5);
  transition: all .15s;
}
.rp-pack:hover { border-color: var(--rp-gold); box-shadow: 0 0 22px -6px rgba(251, 191, 36, 0.7); transform: translateY(-2px); }
.rp-pack-bonus {
  position: absolute; top: -0.5rem; right: -0.5rem;
  background: var(--rp-green); color: #04140a;
  font-size: 10px; font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.6);
}
.rp-tx {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line-soft);
  padding: 1rem;
  border-radius: var(--rp-r-2xl);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.rp-tx-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 0.75rem; font-size: 1.1rem;
}
.rp-tx-icon.pos { background: rgba(74, 222, 128, 0.10); color: var(--rp-green); border: 1px solid rgba(74, 222, 128, 0.3); }
.rp-tx-icon.neg { background: rgba(251, 113, 133, 0.10); color: var(--rp-red); border: 1px solid rgba(251, 113, 133, 0.3); }
.rp-tx-amount.pos { color: var(--rp-green); font-weight: 800; text-shadow: 0 0 10px rgba(74, 222, 128, 0.4); }
.rp-tx-amount.neg { color: var(--rp-red); font-weight: 800; }

/* --------------------------------------------------------------------------
   Success screens
   -------------------------------------------------------------------------- */
.rp-success-full {
  min-height: 100vh;
  background:
    radial-gradient(40rem 24rem at 50% -10%, rgba(45, 127, 249, 0.15), transparent 60%),
    linear-gradient(170deg, #071120 0%, var(--rp-bg) 100%);
  color: var(--rp-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem; text-align: center;
}
.rp-success-check {
  width: 6rem; height: 6rem; border-radius: 9999px;
  background: rgba(45, 127, 249, 0.1);
  border: 2px solid var(--rp-neon);
  color: var(--rp-neon);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(45, 127, 249, 0.5), inset 0 0 24px rgba(45, 127, 249, 0.15);
  text-shadow: 0 0 20px rgba(45, 127, 249, 0.9);
}
.rp-success-glass {
  background: rgba(10, 17, 31, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-3xl);
  padding: 1.5rem;
  width: 100%; max-width: 24rem;
  text-align: left;
  margin-bottom: 2rem;
  box-shadow: var(--rp-glow-soft);
}
.rp-divider-light { height: 1px; background: var(--rp-line-soft); width: 100%; margin: 1rem 0; }
.rp-btn-white {
  background: linear-gradient(135deg, #2d7ff9, #0891d1);
  color: #03141d;
  border: 1px solid rgba(151, 235, 255, 0.6);
  box-shadow: 0 0 24px rgba(45, 127, 249, 0.5);
}
.rp-btn-white:hover { filter: brightness(1.1); }

/* --------------------------------------------------------------------------
   Alerts, sticky bar, setting list, misc
   -------------------------------------------------------------------------- */
.rp-alert-red {
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #ffb3c0;
  padding: 1rem; border-radius: var(--rp-r-3xl);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 0 16px -8px rgba(251, 113, 133, 0.4);
}
.rp-alert-green {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #a9f5c4;
  padding: 1rem; border-radius: var(--rp-r-2xl);
  font-weight: 700; font-size: 0.875rem;
  box-shadow: 0 0 16px -8px rgba(74, 222, 128, 0.4);
}
.rp-sticky-bottom {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom));
  left: 0; width: 100%;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rp-line);
  border-bottom: 1px solid var(--rp-line-soft);
  padding: 1rem;
  box-shadow: 0 -8px 30px -12px rgba(45, 127, 249, 0.3);
  z-index: 40;
}
@media (min-width: 768px) {
  .rp-sticky-bottom {
    bottom: 0;
    left: 16rem;
    width: calc(100% - 16rem);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    border-bottom: 0;
  }
}
.rp-sticky-bottom .rp-inner { max-width: 56rem; margin: 0 auto; }
.rp-setting-list { overflow: hidden; border-radius: var(--rp-r-2xl); }
.rp-setting-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem;
  background: transparent;
  transition: background .15s;
}
.rp-setting-item:hover { background: rgba(45, 127, 249, 0.05); }
.rp-setting-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--rp-r-xl);
  background: rgba(45, 127, 249, 0.07);
  border: 1px solid var(--rp-line-soft);
  display: flex; align-items: center; justify-content: center;
  margin-right: 1rem;
  color: var(--rp-neon);
}
.rp-setting-icon img {
  width: 2.25rem; height: 2.25rem; object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(45, 127, 249, 0.45));
}
.rp-hr { height: 1px; background: var(--rp-line-soft); margin-left: 3rem; }
.rp-row { display: flex; align-items: center; }
.rp-between { display: flex; align-items: center; justify-content: space-between; }
.rp-gap-2 { gap: 0.5rem; }
.rp-gap-3 { gap: 0.75rem; }
.rp-gap-4 { gap: 1rem; }
.rp-mt-1 { margin-top: 0.25rem; }
.rp-mt-2 { margin-top: 0.5rem; }
.rp-mt-4 { margin-top: 1rem; }
.rp-mt-6 { margin-top: 1.5rem; }
.rp-mb-2 { margin-bottom: 0.5rem; }
.rp-mb-4 { margin-bottom: 1rem; }
.rp-mb-6 { margin-bottom: 1.5rem; }
.rp-text-center { text-align: center; }
.rp-w-full { width: 100%; }
.rp-flex-1 { flex: 1; }
.rp-spin {
  width: 1.5rem; height: 1.5rem;
  border: 2px solid rgba(45, 127, 249, 0.25);
  border-top-color: var(--rp-neon);
  border-radius: 9999px;
  animation: rp-spin 0.8s linear infinite;
  display: none;
}
@keyframes rp-spin { to { transform: rotate(360deg); } }
.rp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
@media (min-width: 768px) { .rp-gallery { grid-template-columns: repeat(3, 1fr); } }
.rp-gallery > div { aspect-ratio: 4 / 3; border-radius: var(--rp-r-2xl); overflow: hidden; background: var(--rp-inset-bg); border: 1px solid var(--rp-line-soft); }
.rp-gallery img { width: 100%; height: 100%; object-fit: cover; }
.rp-left-accent { position: relative; overflow: hidden; }
.rp-left-accent::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--rp-neon);
  box-shadow: 0 0 10px rgba(45, 127, 249, 0.8);
  border: 0; border-radius: 0;
}

/* --------------------------------------------------------------------------
   Game chat
   -------------------------------------------------------------------------- */
.rp-chat-box {
  max-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column;
  gap: 0.6rem; padding: 0.25rem 0 0.75rem;
}
.rp-msg { max-width: 82%; align-self: flex-start; }
.rp-msg.mine { align-self: flex-end; text-align: right; }
.rp-msg-author {
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--rp-muted); margin: 0 0.25rem 0.15rem;
}
.rp-msg-bubble {
  display: inline-block; text-align: left;
  background: var(--rp-inset-bg);
  border: 1px solid var(--rp-line-soft);
  color: var(--rp-text);
  padding: 0.55rem 0.85rem;
  border-radius: 1rem; border-bottom-left-radius: 0.25rem;
  font-size: 0.9rem; word-break: break-word;
}
.rp-msg-bubble p { margin: 0; }
.rp-msg.mine .rp-msg-bubble {
  background: linear-gradient(135deg, rgba(45, 127, 249, 0.2), rgba(8, 145, 209, 0.15));
  border-color: var(--rp-line);
  color: var(--rp-text);
  border-radius: 1rem; border-bottom-right-radius: 0.25rem;
  box-shadow: var(--rp-glow-soft);
}
.rp-msg-time { font-size: 0.6rem; color: var(--rp-dim); margin-top: 0.15rem; }
.rp-chat-composer { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.rp-chat-composer .rp-input { flex: 1; padding: 0.8rem 1rem; }
.rp-chat-composer button { padding: 0.8rem 1.1rem; border-radius: 1rem; }

/* --------------------------------------------------------------------------
   Club dashboard bar chart
   -------------------------------------------------------------------------- */
.rp-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 140px; padding-top: 0.5rem; }
.rp-barwrap {
  flex: 1; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  gap: 0.3rem;
}
.rp-bar {
  width: 100%; max-width: 2.2rem;
  background: linear-gradient(180deg, var(--rp-neon), rgba(45, 127, 249, 0.35));
  border-radius: 0.5rem 0.5rem 0.25rem 0.25rem;
  min-height: 4px;
  box-shadow: 0 0 12px -2px rgba(45, 127, 249, 0.5);
  transition: height .2s;
}
.rp-bar.today {
  background: linear-gradient(180deg, var(--rp-gold), rgba(251, 191, 36, 0.35));
  box-shadow: 0 0 12px -2px rgba(251, 191, 36, 0.6);
}
.rp-bar-label { font-size: 0.6rem; font-weight: 800; color: var(--rp-muted); text-transform: uppercase; }
.rp-bar-val { font-size: 0.6rem; font-weight: 800; color: var(--rp-dim); }

/* --------------------------------------------------------------------------
   Market listings
   -------------------------------------------------------------------------- */
.rp-listing-img { aspect-ratio: 1 / 1; background: var(--rp-inset-bg); overflow: hidden; position: relative; }
.rp-listing-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-listing-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: rgba(45, 127, 249, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Theme toggle button reset */
.rp-theme-btn { width: 100%; text-align: left; background: none; }
button.rp-setting-item { background: none; border: none; text-align: left; }

/* --------------------------------------------------------------------------
   3D SVG icons (tiles + nav)
   -------------------------------------------------------------------------- */
.rp-tile-img {
  width: 78px; height: 78px;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px var(--tile));
  pointer-events: none;
}
.rp-navicon {
  width: 26px; height: 26px;
  opacity: 0.55;
  transition: opacity .15s, filter .15s;
  pointer-events: none;
}
.rp-nav-item .rp-navicon { margin-right: 0.75rem; width: 22px; height: 22px; }
.rp-bottomnav a.active .rp-navicon,
.rp-nav-item.active .rp-navicon,
.rp-nav-item:hover .rp-navicon,
.rp-bottomnav a:hover .rp-navicon {
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(45, 127, 249, 0.8));
}

/* --------------------------------------------------------------------------
   Club portal fixes: compact inputs, iOS date/time sizing, schedule editor,
   club cover uploader
   -------------------------------------------------------------------------- */
.rp-input-sm { padding: 0.7rem 1rem; }
input[type="date"].rp-input, input[type="time"].rp-input {
  -webkit-appearance: none;
  appearance: none;
  min-height: 3.1rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  color: var(--rp-text);
}
input[type="date"].rp-input-sm, input[type="time"].rp-input-sm { min-height: 2.9rem; padding: 0.5rem 1rem; }
input[type="date"].rp-input::-webkit-date-and-time-value,
input[type="time"].rp-input::-webkit-date-and-time-value { text-align: left; }

.rp-sched-line {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem;
}
.rp-sched-in {
  flex: 1; min-width: 92px; width: auto;
  padding: 0.45rem 0.6rem; min-height: 2.6rem !important;
  font-size: 0.85rem; font-weight: 700;
}
.rp-sched-price-wrap { display: flex; align-items: center; gap: 0.3rem; }
.rp-sched-price {
  width: 84px; padding: 0.45rem 0.6rem;
  font-size: 0.85rem; font-weight: 700;
}
.rp-sched-peak {
  display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: var(--rp-r-xl);
  border: 1px solid var(--rp-line-soft);
  cursor: pointer; font-size: 1rem;
  opacity: 0.45; transition: all .15s;
}
.rp-sched-peak input { display: none; }
.rp-sched-peak:has(input:checked) {
  opacity: 1;
  border-color: rgba(251, 191, 36, 0.6);
  background: rgba(251, 191, 36, 0.10);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}
.rp-sched-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.rp-sched-actions .rp-btn-primary-soft { padding: 0.45rem 0.8rem; }

.rp-cover-upload {
  position: relative; display: block;
  cursor: pointer;
  border-radius: var(--rp-r-2xl);
  overflow: hidden;
}
.rp-cover-preview {
  width: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; display: block;
  border-radius: var(--rp-r-2xl);
  border: 1px solid var(--rp-line);
}
.rp-cover-placeholder {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.4rem;
  background: var(--rp-inset-bg);
  border: 1px dashed var(--rp-line);
  border-radius: var(--rp-r-2xl);
  color: var(--rp-muted); font-size: 1.6rem;
}
.rp-cover-upload .rp-avatar-edit { bottom: 0.6rem; right: 0.6rem; }

/* --------------------------------------------------------------------------
   Game sharing: 4-char code + WhatsApp/SMS/E-mail buttons
   -------------------------------------------------------------------------- */
.rp-share-code-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--rp-inset-bg);
  border: 1px dashed var(--rp-line);
  border-radius: var(--rp-r-2xl);
  padding: 0.6rem 0.6rem 0.6rem 1rem;
}
.rp-share-code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--rp-neon);
  text-shadow: 0 0 14px rgba(45, 127, 249, 0.5);
}
.rp-share-btns { display: flex; gap: 0.5rem; }
.rp-share-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: var(--rp-r-xl);
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: all .15s;
}
.rp-share-wa   { background: rgba(37, 211, 102, 0.12); color: #25d366; border-color: rgba(37, 211, 102, 0.4); }
.rp-share-wa:hover { background: rgba(37, 211, 102, 0.22); box-shadow: 0 0 12px rgba(37, 211, 102, 0.3); }
.rp-share-sms  { background: rgba(45, 127, 249, 0.10); color: var(--rp-neon); border-color: var(--rp-line); }
.rp-share-sms:hover { background: rgba(45, 127, 249, 0.18); }
.rp-share-mail { background: rgba(251, 113, 133, 0.10); color: var(--rp-red); border-color: rgba(251, 113, 133, 0.35); }
.rp-share-mail:hover { background: rgba(251, 113, 133, 0.18); }
.rp-code-input {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ==========================================================================
   Mock-exact home: split greeting, balance panel, chamfered action tiles,
   full-image club cards, stats row, center FAB
   ========================================================================== */
.rp-hello { font-size: 1.15rem; font-weight: 700; color: var(--rp-text); }
.rp-hello-name {
  font-size: 2rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--rp-neon);
  text-shadow: 0 0 18px rgba(45, 127, 249, 0.55);
}
.rp-hello-name .rp-wave { text-shadow: none; font-size: 1.6rem; }

.rp-balance-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(160deg, var(--rp-surface-2), #070d19);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-r-2xl);
  padding: 0.55rem 0.9rem;
  box-shadow: var(--rp-glow-soft);
  position: relative;
}
.rp-balance-chip::before, .rp-balance-chip::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border: 2px solid rgba(45, 127, 249, 0.6); pointer-events: none;
}
.rp-balance-chip::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: var(--rp-r-2xl); }
.rp-balance-chip::after { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: var(--rp-r-2xl); }
.rp-balance-ico { width: 34px; height: 34px; }
.rp-balance-col { display: flex; flex-direction: column; line-height: 1.1; }
.rp-balance-num { font-size: 1.15rem; font-weight: 900; color: var(--rp-text); }
.rp-balance-num .rp-balance-r { color: var(--rp-neon); font-size: 0.85rem; }
.rp-balance-lbl {
  font-size: 0.55rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--rp-muted);
}

/* section underline like the mock */
.rp-h2::after {
  content: ""; display: block;
  width: 38px; height: 2px; margin-top: 5px;
  background: var(--rp-line);
}

/* ----- Chamfered tiles ----- */
.rp-grid-actions .rp-tile,
.rp-grid-actions .rp-tile-accent,
.rp-grid-actions .rp-tile-white {
  --cut: 16px;
  position: relative;
  display: flex; flex-direction: column;
  align-items: stretch; text-align: left;
  min-height: 168px;
  padding: 0.9rem 1rem 0.75rem;
  border: 0; border-radius: 0;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut),
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: color-mix(in srgb, var(--tile) 65%, #04121c);
  box-shadow: none;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tile) 55%, transparent));
  text-transform: none; letter-spacing: normal;
}
.rp-grid-actions .rp-tile::before {
  content: ""; position: absolute; inset: 1.5px; z-index: 0;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut),
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background:
    radial-gradient(120% 90% at 85% 100%, color-mix(in srgb, var(--tile) 14%, transparent), transparent 60%),
    linear-gradient(165deg, #0b1524 0%, #060d18 100%);
}

/* Profile menu artwork: keep source PNGs inside their icon slots. */
.rp-setting-list .rp-setting-item .rp-setting-icon {
  flex: 0 0 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  overflow: hidden;
}
.rp-setting-list .rp-setting-item .rp-setting-icon img.rp-setting-icon-img {
  display: block !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  min-width: 0 !important;
  max-width: 2.25rem !important;
  max-height: 2.25rem !important;
  object-fit: contain !important;
}

/* ========================================================================== 
   V19 — unified responsive product theme
   Shared by the player, club-owner and coach applications.
   ========================================================================== */

html {
  color-scheme: dark;
  background: #020611;
}

body.rp-body {
  min-width: 280px;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(52rem 28rem at 100% -8%, rgba(28, 126, 255, .13), transparent 64%),
    radial-gradient(34rem 26rem at -10% 86%, rgba(0, 181, 255, .08), transparent 68%),
    linear-gradient(155deg, #020611 0%, #050b19 48%, #02050d 100%);
}

::selection { background: rgba(52, 151, 255, .38); color: #fff; }
:focus-visible { outline: 2px solid #3ca4ff; outline-offset: 3px; }

.rp-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 156, 255, .48) rgba(2, 8, 20, .75);
  overscroll-behavior-y: contain;
}
.rp-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.rp-scroll::-webkit-scrollbar-track { background: rgba(2, 8, 20, .75); }
.rp-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(#176bdc, #35bdff);
  border-radius: 999px;
}

/* App shell and desktop navigation */
.rp-sidebar {
  width: 17.5rem;
  padding: 1rem .8rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(8, 20, 45, .97), rgba(2, 8, 20, .99)),
    radial-gradient(circle at 50% 0, rgba(36, 137, 255, .2), transparent 45%);
  border-right: 1px solid rgba(58, 149, 255, .2);
  box-shadow: 18px 0 45px -32px rgba(31, 139, 255, .75);
}
.rp-sidebar-brand {
  min-height: 4.7rem;
  margin: 0 .2rem 1rem;
  padding: .8rem;
  border: 1px solid rgba(55, 153, 255, .18);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(15, 40, 82, .72), rgba(3, 12, 29, .78));
  box-shadow: inset 0 0 24px rgba(44, 139, 255, .07), 0 0 20px rgba(44, 139, 255, .08);
}
.rp-sidebar-brand .rp-logo {
  width: 2.9rem; height: 2.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(64, 174, 255, .45);
  box-shadow: 0 0 18px rgba(47, 150, 255, .35);
}
.rp-brand-name { color: #eff6ff; letter-spacing: .015em; }
.rp-sidebar-nav { gap: .28rem; }
.rp-nav-item {
  min-height: 3.15rem;
  padding: .62rem .75rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: #8498b7;
  font-size: .82rem;
  letter-spacing: .025em;
}
.rp-nav-item .rp-navicon {
  width: 2rem; height: 2rem; margin-right: .65rem;
  object-fit: contain; opacity: .72;
  filter: saturate(.75) brightness(.85);
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
.rp-nav-item:hover,
.rp-nav-item.active {
  color: #eff7ff;
  border-color: rgba(58, 159, 255, .3);
  background: linear-gradient(110deg, rgba(30, 102, 215, .25), rgba(11, 32, 68, .6));
  box-shadow: inset 0 0 22px rgba(38, 133, 255, .08), 0 0 16px rgba(38, 133, 255, .1);
}
.rp-nav-item:hover .rp-navicon,
.rp-nav-item.active .rp-navicon {
  opacity: 1;
  filter: saturate(1.15) brightness(1.08) drop-shadow(0 0 8px rgba(55, 164, 255, .7));
  transform: translateY(-1px) scale(1.06);
}

.rp-main {
  background:
    radial-gradient(42rem 24rem at 90% 0, rgba(31, 127, 255, .08), transparent 62%),
    transparent;
}
.rp-container { max-width: 74rem; padding-left: 1.25rem; padding-right: 1.25rem; }
.rp-page-header { gap: 1rem; flex-wrap: wrap; }
.rp-h1 { letter-spacing: -.025em; text-shadow: 0 0 24px rgba(45, 137, 255, .18); }
.rp-h2 { letter-spacing: -.012em; }

/* Surfaces, cards and content collections */
.rp-card,
.rp-inset,
.rp-search-wrap,
.rp-setting-list {
  border-color: rgba(49, 143, 255, .2);
  background:
    linear-gradient(155deg, rgba(12, 31, 65, .9), rgba(4, 13, 31, .96));
  box-shadow: 0 0 22px rgba(29, 127, 255, .09), inset 0 0 24px rgba(40, 130, 255, .035);
}
.rp-card { border-radius: 1.25rem; }
.rp-card::before,
.rp-card::after { border-color: rgba(52, 158, 255, .48); }
.rp-card-hover:hover {
  border-color: rgba(61, 170, 255, .58);
  box-shadow: 0 0 28px rgba(34, 145, 255, .22), inset 0 0 26px rgba(35, 132, 255, .05);
  transform: translateY(-2px);
}
.rp-card-dashed { background: rgba(5, 17, 39, .72); border-color: rgba(57, 146, 255, .25); }
.rp-section { margin-bottom: 1.6rem; }

.rp-clubcard,
.rp-listing-img { border-radius: 1.15rem; }
.rp-clubcard-img { height: clamp(9.5rem, 23vw, 13rem); }
.rp-clubrow {
  border: 1px solid rgba(52, 146, 255, .16);
  border-radius: 1rem;
  background: rgba(6, 18, 42, .68);
}
.rp-tx,
.rp-setting-item { border-color: rgba(53, 140, 255, .13); }
.rp-setting-item:hover { background: rgba(38, 126, 255, .09); }
.rp-setting-icon {
  background: radial-gradient(circle at 35% 28%, #173d7a, #07152f);
  border: 1px solid rgba(59, 161, 255, .28);
  box-shadow: 0 0 14px rgba(35, 135, 255, .15);
}

/* Controls */
.rp-input,
.rp-select,
.rp-textarea,
.rp-search-input {
  min-height: 2.85rem;
  color: #edf5ff;
  background: rgba(3, 12, 29, .88);
  border-color: rgba(53, 145, 255, .25);
  border-radius: .95rem;
}
.rp-input:hover,
.rp-select:hover,
.rp-textarea:hover { border-color: rgba(59, 158, 255, .43); }
.rp-input:focus,
.rp-select:focus,
.rp-textarea:focus,
.rp-search-input:focus {
  border-color: #399cff;
  box-shadow: 0 0 0 3px rgba(54, 153, 255, .13), 0 0 20px rgba(41, 139, 255, .16);
}
.rp-btn { min-height: 2.75rem; border-radius: .92rem; }
.rp-btn-accent,
.rp-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1473e6 0%, #2196f3 58%, #3bc4ff 100%);
  border: 1px solid rgba(121, 211, 255, .55);
  box-shadow: 0 0 22px rgba(30, 145, 255, .34);
}
.rp-btn-dark,
.rp-btn-dark-xl,
.rp-btn-primary-soft {
  background: rgba(16, 55, 112, .32);
  border-color: rgba(61, 156, 255, .28);
}
.rp-chip,
.rp-pill,
.rp-tab,
.rp-date,
.rp-slot {
  border-color: rgba(56, 149, 255, .22);
  background: rgba(4, 15, 35, .8);
}
.rp-pill.active,
.rp-tab.active,
.rp-date.active {
  border-color: rgba(64, 175, 255, .58);
  background: linear-gradient(145deg, rgba(29, 108, 224, .28), rgba(8, 33, 73, .7));
  box-shadow: 0 0 18px rgba(36, 142, 255, .2);
}
.rp-slots { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
.rp-slot { min-height: 4.7rem; border-radius: 1rem; }

/* Headers and hero imagery */
.rp-topbar {
  min-height: 4rem;
  background: rgba(3, 10, 25, .86);
  border-bottom: 1px solid rgba(55, 151, 255, .2);
  box-shadow: 0 12px 32px -25px rgba(46, 153, 255, .8);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.rp-topbar-back,
.rp-hero-back {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-block;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent;
  border: none;
  border-radius: 14px;
  background: url('/r_padel/static/src/img/back_btn.png') center / contain no-repeat;
  box-shadow: none;
}
.rp-topbar-back:active,
.rp-hero-back:active { transform: scale(0.92); }
.rp-topbar-back::before,
.rp-hero-back::before { content: none; }
.rp-hero { height: clamp(15rem, 39vw, 23rem); }
.rp-hero img { opacity: .92; }
.rp-hero::after {
  background: linear-gradient(180deg, rgba(2, 7, 18, .08), transparent 34%, rgba(2, 7, 18, .96) 100%);
}
.rp-overlap { max-width: 70rem; }

/* Wallet and product moments */
.rp-balance-card {
  background:
    radial-gradient(circle at 85% 15%, rgba(55, 176, 255, .24), transparent 34%),
    linear-gradient(145deg, #0b2a62, #06152f 58%, #030b1b);
  border: 1px solid rgba(82, 181, 255, .42);
  box-shadow: 0 0 34px rgba(34, 141, 255, .24), inset 0 0 38px rgba(31, 133, 255, .09);
}
.rp-pack {
  border-color: rgba(64, 157, 255, .22);
  background: linear-gradient(155deg, rgba(11, 35, 75, .9), rgba(4, 14, 33, .96));
}

/* Mobile navigation shared by club and coach portals. The player layout
   adds its raised central racket treatment in its own inline theme. */
.rp-bottomnav {
  padding: 0 .55rem calc(env(safe-area-inset-bottom, 0px) + .45rem);
  background: transparent;
  border: 0;
  box-shadow: none;
}
.rp-bottomnav-inner {
  min-height: 4.15rem;
  height: auto;
  max-width: 44rem;
  margin: 0 auto;
  padding: .45rem .45rem .35rem;
  gap: .1rem;
  border: 1px solid rgba(54, 149, 255, .2);
  border-radius: 1.35rem;
  background: rgba(3, 11, 28, .96);
  box-shadow: 0 0 28px rgba(35, 134, 255, .16);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.rp-bottomnav a {
  min-width: 0;
  padding: .25rem .12rem;
  gap: .18rem;
  border-radius: .85rem;
}
.rp-bottomnav a .rp-navicon {
  width: 1.65rem; height: 1.65rem;
  object-fit: contain;
  opacity: .62;
  filter: saturate(.65) brightness(.85);
}
.rp-bottomnav a .rp-label {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  color: #7187a8; font-size: .5rem; white-space: nowrap;
}
.rp-bottomnav a.active .rp-navicon {
  opacity: 1;
  filter: saturate(1.2) brightness(1.1) drop-shadow(0 0 7px rgba(52, 164, 255, .85));
}
.rp-bottomnav a.active .rp-label { color: #3da8ff; }

/* Tables and wide content stay usable instead of overflowing the viewport. */
.rp-card table { width: 100%; border-collapse: collapse; }
.rp-card th,
.rp-card td { padding: .72rem .65rem; border-bottom: 1px solid rgba(52, 137, 255, .12); }
.rp-card th { color: #8095b4; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }

/* Responsive scale */
@media (min-width: 768px) {
  .rp-main { min-width: 0; }
  .rp-scroll { padding-bottom: 2rem; }
  .rp-container { padding-left: clamp(1.4rem, 3vw, 2.6rem); padding-right: clamp(1.4rem, 3vw, 2.6rem); }
  .rp-grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .rp-sidebar { width: 18.5rem; padding-left: 1rem; padding-right: 1rem; }
  .rp-container { padding-top: .5rem; }
  .rp-card-p { padding: 1.4rem; }
  .rp-card-p6 { padding: 1.7rem; }
}

@media (max-width: 767px) {
  .rp-scroll { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .rp-container { padding-left: .9rem; padding-right: .9rem; }
  .rp-page-header { padding-top: .75rem; padding-bottom: .75rem; }
  .rp-h1 { font-size: clamp(1.35rem, 6vw, 1.75rem); }
  .rp-h2 { font-size: 1.05rem; }
  .rp-card-p { padding: 1rem; }
  .rp-card-p6 { padding: 1.15rem; }
  .rp-section { margin-bottom: 1.25rem; }
  .rp-grid { gap: .75rem; }
  .rp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-stats-row { overflow-x: auto; justify-content: flex-start; }
  .rp-stat { min-width: 5.25rem; }
  .rp-dates,
  .rp-pills,
  .rp-tabs { scrollbar-width: none; }
  .rp-dates::-webkit-scrollbar,
  .rp-pills::-webkit-scrollbar,
  .rp-tabs::-webkit-scrollbar { display: none; }
  .rp-overlap { margin-top: -3.25rem; padding-left: .85rem; padding-right: .85rem; }
  .rp-btn { padding-left: .9rem; padding-right: .9rem; }
  .rp-sticky-bottom { padding: .75rem .85rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 520px) {
  .rp-grid-md-2,
  .rp-grid-md-3 { grid-template-columns: 1fr; }
  .rp-clubcard-img { height: 10.5rem; }
  .rp-page-header > * { max-width: 100%; }
  .rp-page-header form,
  .rp-page-header .rp-select { width: 100%; }
  .rp-bottomnav-inner { border-radius: 1.15rem; }
  .rp-bottomnav a .rp-label { font-size: .46rem; letter-spacing: .03em; }
}

@media (max-width: 370px) {
  body.rp-body { font-size: 14px; }
  .rp-container { padding-left: .7rem; padding-right: .7rem; }
  .rp-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .rp-bottomnav { padding-left: .25rem; padding-right: .25rem; }
  .rp-bottomnav-inner { padding-left: .2rem; padding-right: .2rem; }
  .rp-bottomnav a .rp-navicon { width: 1.45rem; height: 1.45rem; }
  .rp-bottomnav a .rp-label { font-size: .41rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .rp-card-hover,
  .rp-btn,
  .rp-nav-item,
  .rp-bottomnav a { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
  .rp-btn:hover { transform: translateY(-1px); }
}
.rp-grid-actions .rp-tile:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--tile) 75%, transparent));
}
.rp-tile-head, .rp-tile-sub, .rp-grid-actions .rp-tile-img { position: relative; z-index: 1; }
.rp-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rp-tile-title {
  font-size: 0.82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--tile); line-height: 1.25;
  text-shadow: 0 0 10px color-mix(in srgb, var(--tile) 55%, transparent);
}
.rp-tile-arrow { color: var(--tile); font-weight: 900; font-size: 1.1rem; line-height: 1; }
.rp-tile-sub { font-size: 0.68rem; font-weight: 600; color: var(--rp-text-2); margin-top: 0.15rem; }
.rp-grid-actions .rp-tile-img {
  width: 68px; height: 68px;
  margin: auto auto 0;
  filter: drop-shadow(0 0 12px var(--tile));
}

/* ----- Full-image club cards ----- */
.rp-clubfeature {
  position: relative; display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--rp-r-3xl);
  overflow: hidden;
  border: 1px solid var(--rp-line);
  box-shadow: var(--rp-glow-soft);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.rp-clubfeature:hover { border-color: rgba(45, 127, 249, 0.55); box-shadow: var(--rp-glow); transform: translateY(-1px); }
.rp-clubfeature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-clubfeature-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 13, 0.15) 0%, transparent 35%, rgba(4, 6, 13, 0.92) 100%);
}
.rp-clubfeature-info { position: absolute; left: 1rem; right: 3.6rem; bottom: 0.9rem; }
.rp-clubfeature-name {
  display: block;
  font-size: 1.15rem; font-weight: 800; color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.rp-clubfeature-go {
  position: absolute; right: 0.9rem; bottom: 0.9rem;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  border: 1.5px solid var(--rp-neon);
  background: rgba(6, 10, 20, 0.55);
  color: var(--rp-neon);
  font-size: 1.3rem; font-weight: 900;
  box-shadow: 0 0 14px rgba(45, 127, 249, 0.45);
}

/* ----- Stats row ----- */
.rp-stats-row { display: flex; align-items: stretch; gap: 0.25rem; }
.rp-stat {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0.25rem;
  padding: 0.25rem 0.1rem;
}
.rp-stat + .rp-stat { border-left: 1px solid var(--rp-line-soft); }
.rp-stat-val { font-size: 1.35rem; font-weight: 900; line-height: 1; text-shadow: 0 0 12px currentColor; }
.rp-stat-lbl {
  font-size: 0.56rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--rp-muted); line-height: 1.3;
}

/* ----- Center FAB (Parties) ----- */
.rp-bottomnav, .rp-bottomnav-inner { overflow: visible; }
.rp-bottomnav a.rp-fab { position: relative; justify-content: flex-end; padding-bottom: 9px; overflow: visible; }
.rp-bottomnav a.rp-fab .rp-navicon {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 58px; padding: 11px; box-sizing: border-box;
  background: radial-gradient(circle at 35% 30%, #10233b, #060d18);
  border: 2px solid var(--rp-neon);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(45, 127, 249, 0.55), inset 0 0 14px rgba(45, 127, 249, 0.15);
  opacity: 1;
}
.rp-bottomnav a.rp-fab.active .rp-navicon { box-shadow: 0 0 28px rgba(45, 127, 249, 0.8), inset 0 0 14px rgba(45, 127, 249, 0.2); }

/* ----- Court-grid texture inside action tiles (mock interior) ----- */
.rp-grid-actions .rp-tile::before {
  background:
    repeating-linear-gradient(0deg,
      color-mix(in srgb, var(--tile) 7%, transparent) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--tile) 7%, transparent) 0 1px, transparent 1px 22px),
    radial-gradient(120% 90% at 85% 100%, color-mix(in srgb, var(--tile) 16%, transparent), transparent 60%),
    linear-gradient(165deg, #0b1524 0%, #060d18 100%);
}


/* Mobile bottom-nav logout (club / coach / store portals) */
.rp-bottomnav-inner .rp-logout-mobile { color: #f87171; }
.rp-bottomnav-inner .rp-logout-mobile .rp-navicon { filter: none; opacity: .95; }
.rp-bottomnav-inner .rp-logout-mobile .rp-label { color: #f87171; }

/* ===== App-wide neon court background (all pages except player home) ===== */
body.rp-appbg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/r_padel/static/src/img/app_bg_v2.jpg') center bottom / cover no-repeat;
  background-attachment: scroll;
}
@media (min-width: 900px) {
  body.rp-appbg::before { background-position: center center; background-attachment: fixed; }
}
body.rp-appbg::after {
  /* very light veil — only slightly dim the top & bottom so the top bar and
     bottom nav text stay legible; the court itself stays vivid in the middle */
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(5,10,23,0.55) 0%,
    rgba(5,10,23,0.12) 22%,
    rgba(5,10,23,0.05) 50%,
    rgba(5,10,23,0.20) 78%,
    rgba(5,10,23,0.65) 100%);
}
body.rp-appbg { background: transparent !important; }
body.rp-appbg .rp-shell, body.rp-pagebg .rp-shell,
body.rp-appbg .rp-container, body.rp-pagebg .rp-container,
body.rp-appbg main, body.rp-pagebg main { background: transparent !important; }

/* ===== Frosted-glass surfaces over the neon court background (A look) ===== */
/* Only on .rp-appbg pages, so the player home theme is untouched. Cards become
   translucent + blurred so the court glows through, while a subtle inner tint
   keeps text readable. */
body.rp-appbg .rp-card, body.rp-pagebg .rp-card,
body.rp-pagebg .rp-clubcard,
body.rp-appbg .rp-clubcard {
  background: linear-gradient(165deg, rgba(16,30,58,0.62) 0%, rgba(9,18,36,0.58) 100%) !important;
  border: 1px solid rgba(120,180,255,0.28) !important;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
body.rp-pagebg .rp-inset,
body.rp-appbg .rp-inset {
  background: rgba(8,19,40,0.55) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* search bar / inputs: glassy too */
body.rp-pagebg .rp-input, body.rp-appbg .rp-input,
body.rp-appbg .rp-select,
body.rp-appbg .rp-search,
body.rp-appbg select,
body.rp-appbg input[type="text"],
body.rp-appbg input[type="search"],
body.rp-appbg input[type="number"],
body.rp-appbg input[type="date"],
body.rp-appbg input[type="tel"] {
  background: rgba(8,19,40,0.55) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(120,180,255,0.22) !important;
}
/* top bar + bottom nav: glassy translucent so the court runs edge to edge */
body.rp-pagebg .rp-topbar, body.rp-appbg .rp-topbar,
body.rp-pagebg .rp-page-header,
body.rp-appbg .rp-page-header {
  background: rgba(5,10,23,0.35) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.rp-pagebg .rp-bottomnav,
body.rp-appbg .rp-bottomnav {
  background: transparent !important;
}
body.rp-pagebg .rp-bottomnav-inner,
body.rp-appbg .rp-bottomnav-inner {
  background: rgba(5,10,23,0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(120,180,255,0.18) !important;
}
/* pro portal sidebar: glassy */
body.rp-pagebg .rp-sidebar,
body.rp-appbg .rp-sidebar {
  background: rgba(6,14,30,0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
/* strengthen text shadow slightly so any label over bright neon stays crisp */
body.rp-pagebg .rp-container, body.rp-appbg .rp-container { text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
/* keep the mid-veil a touch stronger now that cards are see-through, so
   dense text (lists, wallet) doesn't fight the busiest part of the image */
body.rp-appbg::after {
  background: linear-gradient(180deg,
    rgba(5,10,23,0.72) 0%,
    rgba(5,10,23,0.50) 30%,
    rgba(5,10,23,0.48) 55%,
    rgba(5,10,23,0.60) 78%,
    rgba(5,10,23,0.84) 100%) !important;
}

/* ===== Per-page themed backgrounds (court / players / shop / coins / coach) =====
   Technique: cover (no distortion), per-image anchor so the subject (lower band)
   stays visible, readability veil, and iOS-safe attachment (scroll on mobile,
   fixed on wide screens). These override the generic .rp-appbg court on their
   specific pages. */
body.rp-pagebg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;   /* keep the subject band visible */
  background-attachment: scroll;        /* iOS-safe default */
}
body.rp-pagebg::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Stronger veil: the themed image reads as subtle atmosphere behind the
     content, not a competing full-brightness picture. Darker toward the
     bottom where pages with few items leave empty space. */
  background: linear-gradient(180deg,
    rgba(5,10,23,0.74) 0%,
    rgba(5,10,23,0.52) 30%,
    rgba(5,10,23,0.50) 55%,
    rgba(5,10,23,0.62) 78%,
    rgba(5,10,23,0.85) 100%);
}
body.rp-pagebg { background: transparent !important; }

/* per-page image + best anchor for its composition */
body.bg-court::before   { background-image: url('/r_padel/static/src/img/bg_court_v2.jpg'); background-position: center bottom; }
body.bg-players::before { background-image: url('/r_padel/static/src/img/bg_players_v2.jpg'); background-position: center bottom; }
body.bg-shop::before    { background-image: url('/r_padel/static/src/img/bg_shop_v2.jpg'); background-position: center center; }
body.bg-coins::before   { background-image: url('/r_padel/static/src/img/bg_coins_v2.jpg'); background-position: center bottom; }
body.bg-coach::before   { background-image: url('/r_padel/static/src/img/bg_coach_v2.jpg'); background-position: center bottom; }
body.bg-assistant::before { background-image: url('/r_padel/static/src/img/bg_assistant_v2.jpg'); background-position: center bottom; }
body.bg-profile::before { background-image: url('/r_padel/static/src/img/bg_profile_v2.jpg'); background-position: center bottom; }
body.bg-chat::before { background-image: url('/r_padel/static/src/img/bg_chat_v2.jpg'); background-position: center bottom; }
body.bg-tournaments::before { background-image: url('/r_padel/static/src/img/bg_tournaments_v2.jpg'); background-position: center bottom; }
body.bg-notifications::before { background-image: url('/r_padel/static/src/img/bg_notifications_v2.jpg'); background-position: center bottom; }
body.bg-game::before { background-image: url('/r_padel/static/src/img/bg_game_v2.jpg'); background-position: center center; }
body.bg-friendly::before { background-image: url('/r_padel/static/src/img/bg_friendly_v2.jpg'); background-position: center center; }
body.bg-flash::before { background-image: url('/r_padel/static/src/img/bg_flash_v2.jpg'); background-position: center center; }

/* Wide screens (tablet landscape / laptop): fixed parallax + a bit more veil so
   the portrait art fills nicely and text stays readable across the width. */
@media (min-width: 900px) {
  body.rp-pagebg::before { background-attachment: fixed; background-position: center center; }
  body.rp-pagebg::after {
    background: linear-gradient(180deg,
      rgba(5,10,23,0.74) 0%,
      rgba(5,10,23,0.56) 30%,
      rgba(5,10,23,0.54) 60%,
      rgba(5,10,23,0.80) 100%),
      radial-gradient(120% 90% at 50% 60%, rgba(5,10,23,0) 30%, rgba(5,10,23,0.6) 100%);
  }
}

/* ===== Facebook-style compact market grid ===== */
.rp-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* phone: 2 across */
  gap: 0.6rem;
}
.rp-market-grid .rp-clubcard .rp-listing-img { aspect-ratio: 1 / 1; }
.rp-market-grid .rp-card-p { padding: 0.6rem !important; }
@media (min-width: 620px)  { .rp-market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px)  { .rp-market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; } }
@media (min-width: 1400px) { .rp-market-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ===== More breathing room on pro portal pages (desktop) ===== */
@media (min-width: 900px) {
  .rp-main .rp-scroll { padding-left: 2rem !important; padding-right: 2rem !important; padding-bottom: 3rem !important; }
  .rp-main .rp-page-header { margin-bottom: 1.25rem; }
  .rp-main .rp-scroll > .rp-container { max-width: 1100px; margin-left: auto; margin-right: auto; }
}

/* ===== Court picker (choose a specific terrain) ===== */
.rp-court-pick {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .7rem; margin-bottom: .5rem;
  border: 1px solid var(--rp-line); border-radius: 14px;
  background: rgba(8,19,40,.5);
}
.rp-court-pick:active { transform: scale(.995); }
.rp-court-pick-img { width: 3.5rem; height: 3.5rem; border-radius: 10px;
  overflow: hidden; flex-shrink: 0; background: var(--rp-inset-bg);
  display: flex; align-items: center; justify-content: center; }
.rp-court-pick-img img { width: 100%; height: 100%; object-fit: cover; }
.rp-court-pick-ph { font-size: 1.4rem; }
.rp-court-pick-info { display: flex; flex-direction: column; gap: .15rem; flex: 1; }

/* ============ Rental items with photos ============ */
.rp-rental-thumb {
  width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.18);
  display: grid; place-items: center;
}
.rp-rental-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-rental-thumb-sm { width: 34px; height: 34px; border-radius: 10px; }

/* Player-side picker: tappable cards instead of a bare dropdown */
.rp-rental-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 0.5rem;
}
.rp-rental-opt { display: block; cursor: pointer; }
.rp-rental-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rp-rental-opt-in {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.4rem; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(148,163,184,0.18);
  transition: border-color .15s ease, background .15s ease;
}
.rp-rental-opt input:checked + .rp-rental-opt-in {
  border-color: var(--rp-neon, #22d3ee);
  background: rgba(34,211,238,0.10);
}
.rp-rental-opt input:focus-visible + .rp-rental-opt-in {
  outline: 2px solid var(--rp-neon, #22d3ee); outline-offset: 2px;
}
.rp-rental-name {
  font-size: 0.75rem; font-weight: 600; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.rp-rental-price { font-size: 0.7rem; opacity: 0.75; }
