/* ═══════════════════════════════════════════════
   GirlfriendsAi — Premium UI v2
   ═══════════════════════════════════════════════ */

:root {
  --bg:       #08080e;
  --bg2:      #0f0f18;
  --bg3:      #14141f;
  --glass:    rgba(255,255,255,0.04);
  --glass2:   rgba(255,255,255,0.08);
  --border:   rgba(255,255,255,0.07);
  --bpink:    rgba(255,45,120,0.35);

  --pink:     #ff2d78;
  --pink2:    #ff6fab;
  --pink3:    rgba(255,45,120,0.15);
  --purple:   #9b59b6;
  --orange:   #f39c12;
  --teal:     #1dd1a1;

  --text:     #ffffff;
  --text2:    rgba(255,255,255,0.55);
  --text3:    rgba(255,255,255,0.28);
  --green:    #1dd1a1;
  --warn:     #ffd32a;

  --r4:4px; --r8:8px; --r12:12px; --r16:16px;
  --r20:20px; --r24:24px; --r32:32px; --rpill:100px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  background: var(--bg);
  overflow: hidden;
  /* DO NOT add user-select: none here — breaks Telegram input */
}

/* Allow selection on interactive elements */
input, textarea, [contenteditable] {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Disable selection on non-interactive UI */
.no-sel { -webkit-user-select: none; user-select: none; }

/* ── App Shell ──────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ── Screen System ──────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
  padding-bottom: 68px;   /* space for fixed bottom nav */
  overflow: hidden;       /* contain children */
}

.screen.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.screen.slide-back {
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
}

.screen-scroll {
  flex: 1;
  min-height: 0;        /* CRITICAL: enables flex child to scroll */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,45,120,0.3) transparent;
}
.screen-scroll::-webkit-scrollbar { width: 3px; }
.screen-scroll::-webkit-scrollbar-thumb { background: rgba(255,45,120,0.3); border-radius: 3px; }
.screen-scroll::-webkit-scrollbar-track { background: transparent; }

/* ── Loading ────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.5s var(--ease);
}
#loader.out { opacity: 0; pointer-events: none; }

.loader-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 20%, var(--pink2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-dots {
  display: flex;
  gap: 8px;
}
.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; background: var(--pink2); }
.loader-dot:nth-child(3) { animation-delay: 0.4s; background: var(--purple); }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Toast ──────────────────────────────────────── */
#toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 9998;
  background: rgba(15,15,24,0.95);
  border: 1px solid var(--border);
  border-radius: var(--rpill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.35s var(--spring);
  -webkit-user-select: none;
  user-select: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.ok  { border-color: rgba(29,209,161,0.5); color: var(--green); }
#toast.err { border-color: var(--bpink); color: var(--pink2); }

/* ── Bottom Nav ─────────────────────────────────── */
.bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 200;
  display: flex;
  background: rgba(8,8,14,0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(32px);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  -webkit-user-select: none;
  user-select: none;
}

.bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--text3);
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
  position: relative;
}

.bnav-btn.on { color: var(--pink); }

.bnav-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bnav-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.2s var(--spring);
}

.bnav-btn.on .bnav-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px var(--pink));
}

.bnav-dot {
  position: absolute;
  top: 0; right: -2px;
  width: 7px; height: 7px;
  background: var(--pink);
  border-radius: 50%;
  border: 1.5px solid var(--bg);
  display: none;
}
.bnav-dot.show { display: block; }

.bnav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   HOME
══════════════════════════════════════════════════ */

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}

.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, var(--pink2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.credit-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--glass2);
  border: 1px solid var(--bpink);
  border-radius: var(--rpill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink2);
  box-shadow: 0 0 16px var(--pink3);
  transition: transform 0.15s;
}
.credit-chip:active { transform: scale(0.96); }
.credit-chip svg { width: 13px; height: 13px; fill: var(--pink2); }

/* Hero */
.hero {
  margin: 4px 16px 16px;
  background: linear-gradient(135deg, rgba(255,45,120,0.14) 0%, rgba(155,89,182,0.1) 100%);
  border: 1px solid var(--bpink);
  border-radius: var(--r24);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,45,120,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pink2);
  margin-bottom: 8px;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 18px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--pink) 0%, #cc0066 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--r16);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(255,45,120,0.4);
  transition: all 0.2s var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
.btn-hero:active { transform: scale(0.97); box-shadow: 0 2px 12px rgba(255,45,120,0.3); }
.btn-hero svg { width: 16px; height: 16px; fill: #fff; }

/* Section header */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  margin-bottom: 12px;
  -webkit-user-select: none;
  user-select: none;
}
.sec-head h2 { font-size: 17px; font-weight: 700; }
.sec-head span { font-size: 12px; color: var(--text3); }

/* Character Cards */
.char-list {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ccard {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s;
  position: relative;
}
.ccard:active { transform: scale(0.98); }

.ccard-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

/* Character color accents */
.ccard[data-char="melanie"] { border-color: rgba(255,107,171,0.25); }
.ccard[data-char="sophie"]  { border-color: rgba(155,89,182,0.25); }
.ccard[data-char="emma"]    { border-color: rgba(243,156,18,0.25); }
.ccard[data-char="lisa"]    { border-color: rgba(29,209,161,0.25); }

.ccard[data-char="melanie"]:active { border-color: rgba(255,107,171,0.6); }
.ccard[data-char="sophie"]:active  { border-color: rgba(155,89,182,0.6); }
.ccard[data-char="emma"]:active    { border-color: rgba(243,156,18,0.6); }
.ccard[data-char="lisa"]:active    { border-color: rgba(29,209,161,0.6); }

.ccard-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.ccard[data-char="melanie"] .ccard-glow { background: radial-gradient(ellipse at 0% 50%, rgba(255,107,171,0.08) 0%, transparent 70%); }
.ccard[data-char="sophie"]  .ccard-glow { background: radial-gradient(ellipse at 0% 50%, rgba(155,89,182,0.08) 0%, transparent 70%); }
.ccard[data-char="emma"]    .ccard-glow { background: radial-gradient(ellipse at 0% 50%, rgba(243,156,18,0.08) 0%, transparent 70%); }
.ccard[data-char="lisa"]    .ccard-glow { background: radial-gradient(ellipse at 0% 50%, rgba(29,209,161,0.08) 0%, transparent 70%); }
.ccard:hover .ccard-glow, .ccard:active .ccard-glow { opacity: 1; }

/* Avatar ring */
.ccard-av {
  position: relative;
  flex-shrink: 0;
}
.av-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
}
.av-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-c1), var(--ring-c2), var(--ring-c1));
  animation: ringRotate 4s linear infinite;
  opacity: 0.7;
}
.av-ring::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg3);
}
.av-emoji {
  position: relative;
  z-index: 1;
  font-size: 30px;
}

[data-char="melanie"] .av-ring { --ring-c1: #ff6fab; --ring-c2: #ff2d78; }
[data-char="sophie"]  .av-ring { --ring-c1: #9b59b6; --ring-c2: #c39bd3; }
[data-char="emma"]    .av-ring { --ring-c1: #f39c12; --ring-c2: #ffd32a; }
[data-char="lisa"]    .av-ring { --ring-c1: #1dd1a1; --ring-c2: #12c2e9; }

@keyframes ringRotate { to { transform: rotate(360deg); } }

.av-online {
  position: absolute;
  bottom: 1px; right: 1px;
  z-index: 2;
  width: 14px; height: 14px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--green);
  animation: onlinePing 2s ease-in-out infinite;
}
@keyframes onlinePing { 0%,100%{box-shadow:0 0 6px var(--green);}50%{box-shadow:0 0 12px var(--green),0 0 20px rgba(29,209,161,0.3);} }

.ccard-body { flex: 1; min-width: 0; }

.ccard-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.ccard-name { font-size: 17px; font-weight: 700; }
.ccard-online { font-size: 11px; color: var(--green); font-weight: 600; }

.ccard-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--rpill);
  padding: 3px 9px;
  margin-bottom: 5px;
}
[data-char="melanie"] .ccard-tag { background: rgba(255,107,171,0.15); color: #ff6fab; }
[data-char="sophie"]  .ccard-tag { background: rgba(155,89,182,0.15); color: #c39bd3; }
[data-char="emma"]    .ccard-tag { background: rgba(243,156,18,0.15);  color: #ffd32a; }
[data-char="lisa"]    .ccard-tag { background: rgba(29,209,161,0.15);  color: #1dd1a1; }

.ccard-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ccard-action {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--spring);
}
[data-char="melanie"] .ccard-action { background: rgba(255,107,171,0.2); }
[data-char="sophie"]  .ccard-action { background: rgba(155,89,182,0.2); }
[data-char="emma"]    .ccard-action { background: rgba(243,156,18,0.2);  }
[data-char="lisa"]    .ccard-action { background: rgba(29,209,161,0.2);  }
.ccard-action:active { transform: scale(0.88); }
.ccard-action svg { width: 18px; height: 18px; fill: #fff; }

/* ══════════════════════════════════════════════════
   CHAT
══════════════════════════════════════════════════ */

#screen-chat {
  padding-bottom: 0 !important;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px;
  background: rgba(8,8,14,0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  z-index: 10;
}

.ch-back {
  width: 36px; height: 36px;
  border-radius: var(--r12);
  background: var(--glass2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.ch-back:active { background: var(--glass); }
.ch-back svg { width: 20px; height: 20px; fill: var(--text2); }

.ch-av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  box-shadow: 0 0 14px rgba(255,45,120,0.3);
  position: relative;
}
.ch-av::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 11px; height: 11px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.ch-info { flex: 1; min-width: 0; }
.ch-name { font-size: 15px; font-weight: 700; }
.ch-status { font-size: 12px; color: var(--green); margin-top: 1px; }

.ch-credits {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink2);
  background: var(--glass2);
  border: 1px solid var(--bpink);
  border-radius: var(--rpill);
  padding: 5px 12px;
  flex-shrink: 0;
}
.ch-credits svg { width: 12px; height: 12px; fill: var(--pink2); }

/* Messages */
.chat-body {
  flex: 1;
  min-height: 0;        /* CRITICAL: enables flex child to scroll */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,45,120,0.2) transparent;
}
.chat-body::-webkit-scrollbar { width: 3px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,45,120,0.2); border-radius: 3px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }

/* Date divider */
.msg-date {
  text-align: center;
  font-size: 11px;
  color: var(--text3);
  margin: 4px 0;
  -webkit-user-select: none;
  user-select: none;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: msgSlide 0.2s ease-out;
}
.msg.me  { align-self: flex-end; align-items: flex-end; }
.msg.her { align-self: flex-start; align-items: flex-start; }
@keyframes msgSlide {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bubble {
  padding: 11px 15px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  border-radius: 20px;
}
.msg.me  .bubble {
  background: linear-gradient(135deg, var(--pink) 0%, #cc0066 100%);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 16px rgba(255,45,120,0.25);
}
.msg.her .bubble {
  background: var(--glass2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 5px;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text3);
  margin-top: 4px;
  padding: 0 2px;
}
.msg.me .msg-meta { flex-direction: row-reverse; }

.tick svg { width: 14px; height: 14px; fill: var(--pink2); opacity: 0.6; }

/* Typing */
.typing-row {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  animation: msgSlide 0.2s ease-out;
}
.typing-row.show { display: flex; }

.typing-bubble {
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 20px;
  border-bottom-left-radius: 5px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.td {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text3);
  animation: tdBounce 1.4s ease-in-out infinite;
}
.td:nth-child(2) { animation-delay: 0.2s; }
.td:nth-child(3) { animation-delay: 0.4s; }
@keyframes tdBounce {
  0%,60%,100% { transform: scale(0.7); opacity: 0.4; }
  30% { transform: scale(1); opacity: 1; }
}

/* No credits bar */
.no-credits {
  display: none;
  margin: 0 14px 8px;
  padding: 12px 16px;
  background: rgba(255,45,120,0.08);
  border: 1px solid var(--bpink);
  border-radius: var(--r16);
  font-size: 13px;
  color: var(--pink2);
  text-align: center;
}
.no-credits.show { display: block; }
.no-credits a { color: var(--pink); font-weight: 700; text-decoration: none; }

/* Input bar */
.chat-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(8,8,14,0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  background: var(--glass2);
  border: 1.5px solid var(--border);
  border-radius: var(--r20);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  padding: 11px 16px;
  outline: none;
  resize: none;
  line-height: 1.45;
  transition: border-color 0.2s;
  overflow-y: auto;
  /* Critical: allow text selection + input in Telegram */
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-appearance: none;
  appearance: none;
}
.chat-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.12);
}
.chat-input::placeholder { color: var(--text3); }

.send-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, #cc0066 100%);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,45,120,0.4);
  transition: all 0.2s var(--spring);
  -webkit-user-select: none;
  user-select: none;
}
.send-btn:active { transform: scale(0.88); box-shadow: 0 2px 8px rgba(255,45,120,0.3); }
.send-btn:disabled { opacity: 0.35; transform: none !important; }
.send-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ══════════════════════════════════════════════════
   SHOP
══════════════════════════════════════════════════ */

.shop-hero {
  margin: 12px 16px 20px;
  background: linear-gradient(135deg, rgba(155,89,182,0.15) 0%, rgba(255,45,120,0.1) 100%);
  border: 1px solid rgba(155,89,182,0.3);
  border-radius: var(--r24);
  padding: 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: '💎';
  position: absolute;
  font-size: 120px;
  opacity: 0.04;
  top: -20px; right: -20px;
  pointer-events: none;
}
.shop-hero h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.shop-hero p  { font-size: 14px; color: var(--text2); }

.pkg-list {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  -webkit-user-select: none;
  user-select: none;
}
.pkg:active { transform: scale(0.98); }
.pkg.hot {
  border-color: var(--bpink);
  background: rgba(255,45,120,0.04);
}
.pkg.hot::after {
  content: '🔥 BELIEBT';
  position: absolute;
  top: 0; right: 0;
  background: var(--pink);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-bottom-left-radius: var(--r8);
}

.pkg-icon {
  width: 48px; height: 48px;
  border-radius: var(--r16);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.pkg:nth-child(1) .pkg-icon { background: rgba(100,200,255,0.1); border: 1px solid rgba(100,200,255,0.2); }
.pkg:nth-child(2) .pkg-icon { background: rgba(155,89,182,0.1); border: 1px solid rgba(155,89,182,0.2); }
.pkg:nth-child(3) .pkg-icon { background: rgba(255,45,120,0.1); border: 1px solid var(--bpink); }
.pkg:nth-child(4) .pkg-icon { background: rgba(255,215,0,0.1);  border: 1px solid rgba(255,215,0,0.2); }

.pkg-body { flex: 1; min-width: 0; }
.pkg-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.pkg-credits { font-size: 13px; font-weight: 600; color: var(--pink2); }
.pkg-hint { font-size: 11px; color: var(--text3); margin-top: 2px; }

.pkg-right { text-align: right; flex-shrink: 0; }
.pkg-price { font-size: 19px; font-weight: 800; }
.pkg-per   { font-size: 10px; color: var(--text3); margin-top: 1px; }

.pay-note {
  display: none;
  margin: 0 16px 12px;
  padding: 13px 16px;
  background: rgba(255,211,42,0.07);
  border: 1px solid rgba(255,211,42,0.25);
  border-radius: var(--r16);
  font-size: 13px;
  color: var(--warn);
}
.pay-note.show { display: block; }

/* ══════════════════════════════════════════════════
   PROFILE
══════════════════════════════════════════════════ */

.profile-top {
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}

.profile-av {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 14px;
  box-shadow: 0 0 32px rgba(255,45,120,0.35);
  overflow: hidden;
  position: relative;
}
.profile-av::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--pink), var(--purple), var(--pink2), var(--pink));
  animation: ringRotate 3s linear infinite;
  z-index: -1;
}
.profile-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 3px; }
.profile-un   { font-size: 14px; color: var(--text3); }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 0 16px 16px;
}
.stat {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 14px 10px;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}
.stat-n { font-size: 20px; font-weight: 800; color: var(--pink2); }
.stat-l { font-size: 11px; color: var(--text3); margin-top: 2px; }

.prem-card {
  margin: 0 16px 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,45,120,0.1) 0%, rgba(155,89,182,0.1) 100%);
  border: 1px solid var(--bpink);
  border-radius: var(--r20);
  display: flex;
  align-items: center;
  gap: 14px;
  -webkit-user-select: none;
  user-select: none;
}
.prem-icon { font-size: 32px; flex-shrink: 0; }
.prem-text h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.prem-text p  { font-size: 12px; color: var(--text3); }

.profile-btns {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-solid {
  width: 100%;
  padding: 15px;
  border-radius: var(--r16);
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  -webkit-user-select: none;
  user-select: none;
}
.btn-solid:active { transform: scale(0.98); }
.btn-solid.primary {
  background: linear-gradient(135deg, var(--pink) 0%, #cc0066 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,45,120,0.3);
}
.btn-solid.secondary {
  background: var(--glass2);
  border: 1px solid var(--border);
  color: var(--text);
}
