
/* =========================
   ZENDRA GLOBAL THEME
   Hybrid Neon – Gold Primary
   ========================= */

:root {
  /* MAIN THEME – default mode */
  --bg-main: #050507;          /* deep near-black */
  --bg-soft: #101018;          /* card background */
  --accent-gold: #f5d488;      /* main brand gold */
  --accent-gold-soft: #b69456; /* softer gold */
  --text-primary: #f7f7f7;
  --text-muted: #9b9bb2;

  /* NEON ACCENTS – used lightly unless After Dark is on */
  --accent-neon: #c86dff;
  --accent-neon-blue: #5f94ff;

  /* After Dark background + bubbles */
  --bg-after-gradient: radial-gradient(circle at top, #24113d 0, #02010a 55%);
  --bubble-after-out: linear-gradient(135deg, #9a4bff, #4b7dff);
  --bubble-after-in: rgba(8, 9, 30, 0.96);
}

/* ========== RESET / BASE ========= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b0714 0, #020203 65%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

body.mode-normal {
  background: radial-gradient(circle at top, #0b0714 0, #020203 65%);
}

body.mode-afterdark {
  background: #020011;
}

/* Main app shells (used by ALL pages) */

.app-shell,
.chat-shell {
  width: 100%;
  max-width: 420px;
  height: 90vh;
  max-height: 760px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.92),
    0 0 0 1px rgba(245, 212, 136, 0.16); /* soft gold edge */
  position: relative;
}

/* After Dark gives strong neon glow only to chat shell */

body.mode-afterdark .chat-shell {
  background: var(--bg-after-gradient);
  box-shadow:
    0 0 45px rgba(131, 69, 255, 0.9),
    0 0 0 1px rgba(112, 79, 255, 0.4);
}

/* HEADERS / FOOTERS (shared) */

.app-header,
.chat-header {
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, #111118, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.app-title {
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent-gold);
}

.app-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--accent-gold);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.app-main,
.chat-main {
  flex: 1;
  padding: 12px 14px 14px;
  overflow-y: auto;
}

.app-main::-webkit-scrollbar,
.chat-main::-webkit-scrollbar {
  width: 4px;
}
.app-main::-webkit-scrollbar-thumb,
.chat-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.app-footer,
.chat-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(to top, #050506, rgba(5, 5, 7, 0.75));
}

/* ========== LANDING / HERO ========== */

.hero {
  margin-top: 10px;
}

.hero-logo {
  font-size: 26px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero-tagline {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== BUTTONS (shared) ========== */

.btn-primary,
.btn-secondary,
.settings-item {
  border-radius: 14px;
  border: 1px solid rgba(245, 212, 136, 0.3);
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #f5d488, #b69456);
  color: #2b1a10;
  box-shadow: 0 0 16px rgba(245, 212, 136, 0.4);
}

.btn-secondary {
  background: #14141e;
  color: var(--text-primary);
}

.settings-item {
  background: #15151f;
  color: var(--text-primary);
  text-align: left;
  font-size: 13px;
}

.settings-item.danger {
  border-color: rgba(255, 87, 87, 0.65);
  color: #ffbbbb;
}

/* LINKS */

.link {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 12px;
}

.link-small {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== FORMS ========== */

.form-section h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.form-section p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.form-input,
.form-select,
textarea.form-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 212, 136, 0.25);
  background: #111117;
  color: var(--text-primary);
  font-size: 13px;
}

textarea.form-input {
  resize: vertical;
}

.form-helper {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-footer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== DASHBOARD CARDS ========== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-card {
  border-radius: 16px;
  padding: 10px;
  background: #15151f;
  border: 1px solid rgba(245, 212, 136, 0.18);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.dashboard-card-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.dashboard-card-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== BROWSE / PROFILE CARDS ========== */

.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #15151f;
  border: 1px solid rgba(245, 212, 136, 0.18);
}

.profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #fce0b0, #9c5f36);
}

.profile-meta {
  flex: 1;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
}

.profile-info {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

/* small pill badges if needed */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(245, 212, 136, 0.25);
  padding: 3px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ========== CHAT ========== */

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #fce0b0, #9c5f36);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  color: #2b1a10;
  box-shadow: 0 0 0 2px rgba(245, 212, 136, 0.2);
}

.chat-user-meta {
  display: flex;
  flex-direction: column;
}

.chat-user-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.chat-user-status {
  font-size: 11px;
  color: var(--text-muted);
}

/* Mode toggle (Normal / After Dark) */

.chat-header-right {
  display: flex;
  align-items: center;
}

.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(245, 212, 136, 0.35);
  padding: 3px;
  background: radial-gradient(circle at top, rgba(245, 212, 136, 0.24), #050507);
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-label-normal,
.mode-label-after {
  padding: 3px 8px;
  opacity: 0.6;
}

.mode-switch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 212, 136, 0.9);
}

/* After Dark: neon */

body.mode-afterdark .mode-toggle {
  border-color: rgba(200, 109, 255, 0.6);
  background: radial-gradient(circle at top, rgba(200, 109, 255, 0.16), #050413);
}

body.mode-afterdark .mode-switch {
  background: var(--accent-neon-blue);
  box-shadow: 0 0 12px rgba(95, 148, 255, 1);
}

body.mode-normal .mode-label-normal {
  opacity: 1;
}

body.mode-afterdark .mode-label-after {
  opacity: 1;
}

/* Chat bubbles */

.chat-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.message-row {
  display: flex;
  width: 100%;
}

.message-row.incoming {
  justify-content: flex-start;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
  background: #171721;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.message-row.incoming .message-bubble {
  border-bottom-left-radius: 4px;
  background: #181822;
  color: var(--text-primary);
}

.message-row.outgoing .message-bubble {
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, #f5d488, #b69456);
  color: #2b1a10;
}

body.mode-afterdark .message-row.incoming .message-bubble {
  background: var(--bubble-after-in);
  border: 1px solid rgba(200, 109, 255, 0.18);
  box-shadow:
    0 0 16px rgba(37, 9, 92, 0.9),
    0 0 0 1px rgba(17, 10, 40, 0.8);
}

body.mode-afterdark .message-row.outgoing .message-bubble {
  background: var(--bubble-after-out);
  color: #fdfdff;
  box-shadow:
    0 0 18px rgba(117, 41, 255, 0.9),
    0 0 0 1px rgba(89, 61, 255, 0.7);
}

/* Chat footer */

.footer-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(245, 212, 136, 0.35);
  background: radial-gradient(circle at top, rgba(245, 212, 136, 0.2), #050507);
  color: var(--accent-gold);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.footer-icon-btn.send {
  font-size: 17px;
}

body.mode-afterdark .footer-icon-btn {
  border-color: rgba(200, 109, 255, 0.6);
  background: radial-gradient(circle at top, rgba(200, 109, 255, 0.16), #050413);
  color: var(--accent-neon-blue);
}

.input-wrapper {
  flex: 1;
  border-radius: 18px;
  background: #111117;
  border: 1px solid rgba(245, 212, 136, 0.18);
  padding: 0 10px;
  display: flex;
  align-items: center;
}

body.mode-afterdark .input-wrapper {
  background: rgba(5, 5, 17, 0.96);
  border-color: rgba(200, 109, 255, 0.38);
}

.input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  padding: 8px 0;
  font-size: 14px;
}

/* ========== LIKED YOU / UPGRADES / SETTINGS / ADMIN ========== */

.liked-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.liked-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.liked-card {
  background: #15151f;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 212, 136, 0.15);
}

.liked-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #333447, #1b1b28);
}

.liked-meta {
  display: flex;
  flex-direction: column;
}

.liked-name {
  font-size: 13px;
  opacity: 0.8;
}

.liked-info {
  font-size: 11px;
  color: var(--text-muted);
}

.blurred {
  filter: blur(1.3px);
}

.liked-upgrade-panel {
  margin-top: 4px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #15151f, #111016);
  border: 1px solid rgba(245, 212, 136, 0.25);
}

.liked-upgrade-panel h2 {
  font-size: 15px;
  margin-bottom: 4px;
}

.liked-upgrade-panel p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Upgrades & boosts */

.upgrade-section h2,
.boost-section h2,
.settings-section h2,
.admin-section h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.upgrade-tagline,
.admin-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upgrade-cards,
.boost-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-card,
.boost-card {
  padding: 10px;
  border-radius: 16px;
  background: #15151f;
  border: 1px solid rgba(245, 212, 136, 0.18);
}

.upgrade-card h3,
.boost-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.upgrade-card p,
.boost-card p {
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.upgrade-card ul {
  list-style: disc;
  margin-left: 16px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.upgrade-card.highlight {
  border-width: 1.4px;
  box-shadow: 0 0 18px rgba(245, 212, 136, 0.2);
}

.boost-price {
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--accent-gold-soft);
}

.boost-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Settings groups */

.settings-group {
  margin-bottom: 12px;
}

.settings-group h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

/* Admin toggles */

.toggle-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 14px;
  background: #15151f;
  border: 1px solid rgba(245, 212, 136, 0.2);
  font-size: 12px;
}

.toggle-item input {
  display: none;
}

.toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #2b2b38;
  position: relative;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #f5d488;
  transition: transform 0.18s ease;
}

.toggle-item input:checked + .toggle-switch {
  background: #3a4c2f;
}

.toggle-item input:checked + .toggle-switch::after {
  transform: translateX(16px);
}
