/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #e91e8c;
  --pink-dark: #c01670;
  --pink-light: rgba(233,30,140,.12);
  --pink-glow: rgba(233,30,140,.25);
  --bg: #0c0c10;
  --bg2: #161620;
  --bg3: #1f1f2e;
  --bg4: #252535;
  --text: #f0e8f4;
  --text-muted: #8a7f98;
  --border: #27273a;
  --border-hover: #3e3e58;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,.5);
  --shadow-pink: 0 4px 20px rgba(233,30,140,.3);
  --transition: .18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ===== Navbar ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 2rem;
  background: rgba(22,22,32,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6bb5, var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.nav-user {
  color: var(--text-muted);
  font-size: .875rem;
}

/* ===== Buttons ===== */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f0479a, var(--pink));
  color: #fff;
  box-shadow: 0 2px 12px rgba(233,30,140,.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  box-shadow: var(--shadow-pink);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-light);
  text-decoration: none;
}

.btn-lg { padding: .8rem 2.2rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { font-size: .8rem; padding: .35rem .75rem; }

.btn-send {
  background: linear-gradient(135deg, #f0479a, var(--pink));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .6rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-size: .9rem;
  box-shadow: 0 2px 10px rgba(233,30,140,.2);
}
.btn-send:hover { box-shadow: var(--shadow-pink); transform: translateY(-1px); }
.btn-send:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }

.btn-premium {
  background: linear-gradient(135deg, #f5a623, #e91e8c);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .8rem 2rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  display: inline-block;
  margin-top: .5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(233,30,140,.35);
  transition: all var(--transition);
  letter-spacing: .2px;
}
.btn-premium:hover { opacity: .92; transform: translateY(-1px); text-decoration: none; box-shadow: 0 6px 28px rgba(233,30,140,.45); }

.btn-premium-sm {
  background: linear-gradient(135deg, #f0479a, var(--pink));
  color: #fff;
  border-radius: 8px;
  padding: .35rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  display: inline-block;
  margin-top: .4rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-premium-sm:hover { opacity: .9; text-decoration: none; }

/* ===== Badges ===== */
.badge-premium {
  background: linear-gradient(135deg, #f5a623, #e91e8c);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-private {
  background: var(--bg3);
  color: var(--text-muted);
  padding: .15rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
}
.badge-current {
  background: var(--bg3);
  color: var(--text-muted);
  padding: .4rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  display: inline-block;
}

/* ===== Main ===== */
main { flex: 1; }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(233,30,140,.18) 0%, transparent 70%),
    linear-gradient(180deg, #130917 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(233,30,140,.06) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(100,50,200,.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.15;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Gallery ===== */
.gallery { padding: 3rem 2rem 4rem; max-width: 1280px; margin: 0 auto; }
.gallery h2 {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: .8rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

/* Photo-card style — image fills card, name/desc overlay */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(233,30,140,.5);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(233,30,140,.15);
}

.card-avatar {
  position: relative;
  overflow: hidden;
}
.card-avatar img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.card:hover .card-avatar img {
  transform: scale(1.04);
}

/* Gradient overlay at bottom of photo */
.card-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  pointer-events: none;
}

/* Name + desc on photo */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem .85rem;
  z-index: 1;
}
.card-overlay h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.card-overlay p {
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Chat button appears on hover */
.card-body {
  padding: .75rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* ===== Features ===== */
.features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 2rem 4rem;
  flex-wrap: wrap;
}
.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  max-width: 240px;
  transition: border-color var(--transition);
}
.feature:hover { border-color: rgba(233,30,140,.3); }
.feature-icon { font-size: 2.2rem; display: block; margin-bottom: .75rem; }
.feature h3 { margin-bottom: .4rem; font-size: 1rem; }
.feature p { color: var(--text-muted); font-size: .875rem; line-height: 1.5; }

/* ===== Chat Layout ===== */
.chat-layout {
  display: flex;
  height: calc(100vh - 57px);
}

.chat-sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  overflow-y: auto;
}

.sidebar-avatar {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.chat-sidebar h2 { font-size: 1.1rem; font-weight: 700; }
.sidebar-desc {
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.limit-info { display: flex; flex-direction: column; gap: .35rem; font-size: .82rem; color: var(--text-muted); }
.limit-bar { background: var(--bg3); border-radius: 4px; height: 5px; overflow: hidden; }
.limit-fill { background: linear-gradient(90deg, #f0479a, var(--pink)); height: 100%; transition: width .4s; border-radius: 4px; }

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.msg-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  max-width: 340px;
  align-self: center;
}

.message {
  display: flex;
  gap: .65rem;
  max-width: 72%;
  animation: msgIn .15s ease-out;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message.assistant { align-self: flex-start; }

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: .25rem;
  border: 1.5px solid var(--border);
}

.bubble {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: .7rem 1rem;
  line-height: 1.55;
  font-size: .925rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.user .bubble {
  background: linear-gradient(135deg, #f0479a, var(--pink));
  color: #fff;
  border-color: transparent;
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 18px;
  box-shadow: 0 2px 10px rgba(233,30,140,.2);
}

.chat-input-area {
  display: flex;
  gap: .6rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  align-items: flex-end;
}

#msg-input {
  flex: 1;
  background: var(--bg3);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .7rem 1rem;
  font-size: .925rem;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.4;
}
#msg-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(233,30,140,.1);
}
#msg-input::placeholder { color: var(--text-muted); }

/* ===== Paywall ===== */
.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: overlayIn .2s ease;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.paywall-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 400px;
  width: 92%;
  box-shadow: var(--shadow);
  animation: boxIn .22s cubic-bezier(.34,1.56,.64,1);
  position: relative;
  overflow: hidden;
}
/* subtle gradient glow at top */
.paywall-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f5a623, var(--pink), #a855f7);
}

@keyframes boxIn {
  from { opacity: 0; transform: scale(.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.paywall-box h2 { margin-bottom: .5rem; font-size: 1.35rem; font-weight: 800; }
.paywall-box p { color: var(--text-muted); margin-bottom: .75rem; font-size: .9rem; }
.paywall-reset { font-size: .82rem; margin-top: .75rem !important; }

.unlock-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.unlock-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-size: .9rem;
  padding: .5rem .75rem;
  background: var(--bg3);
  border-radius: 8px;
}

/* ===== Forms ===== */
.form-section {
  max-width: 520px;
  margin: 3.5rem auto;
  padding: 0 1rem;
}
.form-section h1 { margin-bottom: .4rem; font-size: 1.75rem; }
.form-sub { color: var(--text-muted); margin-bottom: 2rem; font-size: .95rem; }

.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow);
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .875rem; color: var(--text-muted); font-weight: 500; }
.form-group small { font-size: .78rem; color: var(--text-muted); }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg3);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .7rem 1rem;
  font-size: .925rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(233,30,140,.1);
}
.form-group textarea { resize: vertical; }

.form-alt {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: .875rem;
}

.alert-error {
  background: rgba(233,30,140,.12);
  border: 1px solid rgba(233,30,140,.35);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: .875rem;
}

/* ===== Character Builder ===== */
.form-section { max-width: 680px; }
.label-hint { font-weight: 400; color: var(--text-muted); }

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

.chip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1rem .75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  user-select: none;
}
.chip-card input[type="radio"] { display: none; }
.chip-card:hover { border-color: rgba(233,30,140,.5); background: var(--pink-light); }
.chip-card.selected,
.chip-card:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-light);
}
.chip-icon { font-size: 1.8rem; }
.chip-desc { font-size: .73rem; color: var(--text-muted); line-height: 1.3; }

.attr-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.attr-chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: .87rem;
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}
.attr-chip input[type="radio"] { display: none; }
.attr-chip:hover { border-color: rgba(233,30,140,.5); background: var(--pink-light); }
.attr-chip.selected,
.attr-chip:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-light);
  color: var(--pink);
  font-weight: 600;
}

.form-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

/* ===== Pricing ===== */
.pricing-section {
  max-width: 860px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}
.pricing-section h1 { margin-bottom: .5rem; font-size: 2rem; }
.pricing-sub { color: var(--text-muted); margin-bottom: 3rem; }

.pricing-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  width: 270px;
  text-align: left;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.premium {
  border-color: rgba(233,30,140,.4);
  background: linear-gradient(180deg, rgba(233,30,140,.06) 0%, var(--bg2) 100%);
  box-shadow: 0 4px 30px rgba(233,30,140,.12);
}

.pricing-card h2 { font-size: 1.25rem; margin-bottom: .75rem; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--pink); margin-bottom: 1.25rem; }
.price span { font-size: .95rem; font-weight: 400; color: var(--text-muted); }

.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.pricing-card li { font-size: .875rem; color: var(--text-muted); display: flex; align-items: center; gap: .5rem; }
.pricing-card li::before { content: "✓"; color: var(--pink); font-weight: 800; }

.badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f5a623, var(--pink));
  color: #fff;
  padding: .25rem .9rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .3px;
  box-shadow: 0 2px 12px rgba(233,30,140,.3);
}

/* ===== Chat photos ===== */
.bubble-image {
  padding: 3px !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.chat-photo {
  max-width: 260px;
  max-height: 360px;
  border-radius: 14px;
  display: block;
  cursor: zoom-in;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.chat-photo:hover { opacity: .93; transform: scale(1.01); }

.btn-photo {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .55rem .8rem;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.btn-photo:hover { border-color: var(--pink); background: var(--pink-light); transform: translateY(-1px); }
.btn-photo:disabled { opacity: .35; cursor: default; transform: none; }

/* ===== Locked photo ===== */
.locked-photo-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
}

.locked-blur {
  filter: blur(16px);
  transform: scale(1.06);
  pointer-events: none;
  user-select: none;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  border-radius: 14px;
  transition: background var(--transition);
}
.locked-photo-wrapper:hover .lock-overlay { background: rgba(0,0,0,.55); }

.lock-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.7));
}

.btn-unlock {
  background: linear-gradient(135deg, #f5a623, #e91e8c);
  color: #fff !important;
  padding: .45rem 1.2rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 3px 14px rgba(233,30,140,.45);
  transition: all var(--transition);
  letter-spacing: .2px;
}
.locked-photo-wrapper:hover .btn-unlock { transform: scale(1.04); box-shadow: 0 4px 20px rgba(233,30,140,.6); }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: overlayIn .15s ease;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
  animation: boxIn .2s cubic-bezier(.34,1.56,.64,1);
}

/* ===== Typing dots ===== */
.typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 1.1em;
  padding: .1em 0;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.3s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; }

@keyframes typingBounce {
  0%, 75%, 100% { transform: scale(.55); opacity: .35; }
  35%  { transform: scale(1.1); opacity: 1; }
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
}

/* ===== Relationship Level ===== */
.rel-level {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .82rem;
}
.rel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}
.rel-header strong { color: var(--text); }
.rel-count { font-size: .72rem; }
.rel-bar {
  display: flex;
  gap: 3px;
}
.rel-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--bg3);
  transition: background .5s;
}
.rel-dot.filled {
  background: linear-gradient(90deg, #f0479a, var(--pink));
}
.memory-hint {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: .8;
}

/* ===== Subscription ===== */
.premium-status {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid rgba(233,30,140,.3);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(233,30,140,.1);
}
.premium-status-icon { font-size: 3rem; margin-bottom: 1rem; }
.premium-status h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.premium-status p { color: var(--text-muted); }

.pricing-note {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: .85rem;
}

.pricing-card li.dim {
  opacity: .4;
  text-decoration: line-through;
}

/* ===== Success page ===== */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 2rem 1rem;
}
.success-card {
  background: var(--bg2);
  border: 1px solid rgba(233,30,140,.25);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 50px rgba(233,30,140,.12);
  position: relative;
  overflow: hidden;
}
.success-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f5a623, var(--pink), #a855f7);
}
.success-icon { font-size: 4rem; margin-bottom: 1.25rem; }
.success-card h1 { font-size: 1.75rem; margin-bottom: .75rem; }
.success-card p { color: var(--text-muted); line-height: 1.6; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar { padding: .7rem 1rem; }
  .chat-sidebar { display: none; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .message { max-width: 88%; }
  .messages { padding: 1.25rem 1rem; }
}

@media (max-width: 640px) {
  .chat-input-area { padding: .6rem .75rem; gap: .4rem; }
  .btn-send { padding: .6rem .9rem; font-size: .85rem; }
  .btn-photo { padding: .5rem .6rem; font-size: .95rem; }
  #msg-input { padding: .6rem .85rem; font-size: .9rem; }
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .hero-sub { font-size: .95rem; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card-avatar img { height: 200px; }
  .gallery { padding: 1.75rem 1rem 3rem; }
  .chat-photo { max-width: 210px; max-height: 290px; }
  .message { max-width: 90%; }
  .paywall-box { padding: 2rem 1.5rem; }
}
