/* Mixxing Companions — base styles */
:root {
  --bg: #0a0e1a;
  --bg-card: #131829;
  --bg-card-hover: #1a2138;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaed;
  --text-muted: #8b92a7;
  --text-dim: #5a6378;
  --accent: #c084fc;
  --accent-hover: #a855f7;
  --accent-soft: rgba(192, 132, 252, 0.15);
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --pink: #f472b6;
  --success: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ─── NAV ─── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-logo { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* ─── BUTTONS ─── */
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a0d2a; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-card-hover); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--accent-soft); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); }
.btn-large { padding: 13px 24px; font-size: 15px; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  cursor: pointer;
}
.btn-icon:hover { border-color: var(--accent); }

/* ─── LAYOUT ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 24px; }
.hero { text-align: center; padding: 36px 0 24px; }
.hero h1 { font-size: 42px; font-weight: 700; margin: 0 0 8px; letter-spacing: -1px; background: linear-gradient(135deg, var(--accent), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 17px; color: var(--text-muted); margin: 0; }

.ai-disclosure-banner {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.04));
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
}
.ai-disclosure-banner strong { color: #fde68a; }
.ai-disclosure-banner a { color: #fde68a; text-decoration: underline; }
.chat-disclosure { margin: 0; border-radius: 0; border-left: none; border-right: none; padding: 8px 14px; font-size: 12px; }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter:hover { color: var(--text); border-color: var(--accent); }
.filter.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

/* ─── COMPANION GRID ─── */
.companion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.companion-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.companion-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-photo { position: relative; aspect-ratio: 3/4; background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card)); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 64px; opacity: 0.3; }
.online-badge { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); color: white; padding: 4px 10px; border-radius: 999px; font-size: 11px; display: flex; align-items: center; gap: 6px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.5;} }
.tier-badge { position: absolute; top: 12px; left: 12px; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; backdrop-filter: blur(8px); }
.card-info { padding: 16px; }
.card-info h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.card-info-age { color: var(--text-dim); font-size: 13px; font-weight: 400; margin-left: 6px; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0; }
.card-tag { background: var(--accent-soft); color: var(--accent); padding: 3px 8px; border-radius: 999px; font-size: 11px; }
.card-cta { margin-top: 10px; display: flex; gap: 6px; }

/* ─── PROFILE ─── */
.profile-container { max-width: 980px; }
.back-link { color: var(--text-muted); font-size: 14px; display: inline-block; margin-bottom: 16px; }
.profile-hero { display: grid; grid-template-columns: 320px 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 720px) { .profile-hero { grid-template-columns: 1fr; } }
.profile-hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--bg-card); }
.profile-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-photo .online-dot { position: absolute; bottom: 16px; right: 16px; width: 12px; height: 12px; border: 2px solid var(--bg); }
.profile-hero-info h1 { font-size: 36px; margin: 0 0 6px; }
.tagline { color: var(--text-muted); font-size: 17px; margin: 0 0 14px; }
.profile-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.meta-pill { background: var(--bg-card); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.intro { font-style: italic; color: var(--text-muted); margin: 16px 0 24px; padding: 14px; background: var(--bg-card); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.profile-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.pricing-note { color: var(--text-dim); font-size: 13px; margin-top: 12px; }

.profile-section { margin: 36px 0; }
.profile-section h2 { font-size: 22px; margin: 0 0 14px; font-weight: 600; }
.interest-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.interest-tag { background: var(--bg-card); color: var(--text); padding: 5px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--border); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-item { aspect-ratio: 3/4; background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: all 0.15s; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-locked { display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 28px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.price-card { background: var(--bg-card); padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.price-card-label { color: var(--text-muted); font-size: 13px; }
.price-card-value { font-size: 22px; font-weight: 600; margin: 4px 0; }

/* ─── MODAL ─── */
.overlay, .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.overlay-card, .modal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; max-width: 480px; width: 100%; }
.overlay-card h2, .modal-card h3 { margin-top: 0; }
.overlay-actions, .modal-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; }
.overlay-note { font-size: 12px; color: var(--text-dim); margin-top: 14px; }
.tip-quick-amounts { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.tip-amount { background: var(--bg-card-hover); color: var(--text); padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.tip-amount:hover, .tip-amount.selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
input[type="number"], input[type="text"] { background: var(--bg-card-hover); border: 1px solid var(--border); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; width: 100%; }
input:focus { outline: none; border-color: var(--accent); }

/* ─── FOOTER ─── */
.footer-note { color: var(--text-dim); font-size: 12px; text-align: center; margin: 60px auto 24px; max-width: 760px; line-height: 1.6; }

/* ─── CHAT ─── */
.chat-body { display: flex; flex-direction: column; height: 100vh; max-height: 100vh; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.chat-header-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.chat-header-info img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--bg-card-hover); }
.chat-header-info strong { display: block; font-size: 15px; }
.chat-header-info small { color: var(--text-muted); font-size: 12px; }
.back-link-small { font-size: 22px; color: var(--text); text-decoration: none; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 75%; padding: 10px 14px; border-radius: 16px; line-height: 1.4; word-wrap: break-word; }
.msg.user { background: var(--accent); color: #1a0d2a; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.girl { background: var(--bg-card); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.system { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); color: #fde68a; align-self: center; text-align: center; font-size: 13px; max-width: 90%; }
.msg-time { font-size: 11px; color: var(--text-dim); margin-top: 4px; opacity: 0.7; }
.typing-indicator { padding: 12px 16px; display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; font-style: italic; }
.typing-indicator .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: typing 1.4s infinite; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: scale(1); opacity: 0.5; } 30% { transform: scale(1.3); opacity: 1; } }

.input-form { display: flex; gap: 8px; padding: 12px 16px; background: var(--bg-card); border-top: 1px solid var(--border); }
.input-form input { flex: 1; }
.tip-popup { position: fixed; bottom: 80px; right: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; display: flex; gap: 4px; box-shadow: var(--shadow); }

/* ─── MUTED ─── */
.muted { color: var(--text-muted); font-size: 13px; }
