/* =============================================
   CLIENT AREA - MINIMAL DARK (SPOTIFY/APPLE)
   ============================================= */

.client-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111;
  flex-direction: column;
}
.client-modal.open { display: flex; }

/* Top bar */
.cm-top {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cm-back {
  width: 36px; height: 36px;
  background: none; border: none;
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.cm-top h3 { font-size: .95rem; font-weight: 600; color: #fff; margin: 0; }

/* Scroll */
.cm-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cm-scroll::-webkit-scrollbar { display: none; }

/* ========== AUTH ========== */
.au {
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.au-head {
  margin-bottom: 32px;
}

.au-head h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 8px;
}

.au-head p {
  font-size: .88rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* Input */
.au-f {
  margin-bottom: 16px;
}

.au-f label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
}

.au-f input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .92rem;
  outline: none;
  transition: border-color .2s;
}

.au-f input:focus {
  border-color: #DA2535;
}

.au-f input::placeholder { color: #444; }

/* Buttons */
.au-btn {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
  border: none;
  font-size: .95rem;
  margin-top: 8px;
}

.au-btn-main {
  background: #DA2535;
  color: #fff;
}
.au-btn-main:active { opacity: .85; transform: scale(.99); }

.au-btn-sec {
  background: transparent;
  color: #aaa;
  border: 1px solid #2a2a2a;
  font-size: .85rem;
  font-weight: 600;
  height: 48px;
  margin-top: 12px;
}
.au-btn-sec:active { background: rgba(255,255,255,.03); }

.au-sep {
  text-align: center;
  color: #333;
  font-size: .72rem;
  margin: 20px 0;
}

.au-err {
  color: #DA2535;
  font-size: .8rem;
  text-align: center;
  margin-top: 16px;
}

/* ========== PROFILE ========== */

/* User section */
.pr-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 20px 24px;
}

.pr-pic {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DA2535, #ff6b35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800;
  flex-shrink: 0;
}

.pr-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

.pr-info p {
  font-size: .82rem;
  color: #666;
  margin: 0;
}

/* Stats */
.pr-stats {
  display: flex;
  gap: 1px;
  margin: 0 16px 16px;
  background: #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
}

.pr-st {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  background: #1a1a1a;
}

.pr-st-v {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.pr-st-v.g { color: #1DB954; }

.pr-st-l {
  display: block;
  font-size: .6rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 6px;
  font-weight: 600;
}

/* Section */
.pr-sec {
  padding: 0 16px;
}

.pr-sec-title {
  font-size: .65rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 4px 8px;
}

/* Menu row */
.pr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pr-row:last-child { border-bottom: none; }
.pr-row:active { opacity: .7; }

.pr-row-ic {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pr-row-ic.r { background: rgba(218,37,53,.1); color: #DA2535; }
.pr-row-ic.g { background: rgba(29,185,84,.1); color: #1DB954; }
.pr-row-ic.b { background: rgba(59,130,246,.1); color: #3b82f6; }
.pr-row-ic.o { background: rgba(255,107,53,.1); color: #ff6b35; }

.pr-row-txt { flex: 1; }
.pr-row-txt span { display: block; font-size: .9rem; font-weight: 500; color: #e0e0e0; }
.pr-row-txt small { display: block; font-size: .75rem; color: #555; margin-top: 1px; }

.pr-row-arr { color: #333; font-size: 1rem; }

/* Logout */
.pr-out {
  padding: 24px 20px 48px;
}

.pr-out-btn {
  width: 100%;
  height: 46px;
  background: none;
  border: 1px solid #222;
  border-radius: 23px;
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s;
}
.pr-out-btn:hover { border-color: #DA2535; color: #DA2535; }
