:root {
  --bg-main: #0b0e14;
  --bg-card: #151b26;
  --bg-card-alt: #10151f;
  --bg-input: #090c10;
  --border-color: #242f40;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-red: #ef4444;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
}

body.dark-mode {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 72px; /* For mobile bottom nav */
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  z-index: 1020;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  background: #202938;
}

.brand-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: #fff;
  display: block;
  line-height: 1.1;
}

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link-custom {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link-custom:hover {
  color: var(--accent-gold);
}

/* Hero Section */
.hero-section {
  padding: 24px 0 20px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12) 0%, transparent 65%);
}

.hero-title {
  font-weight: 900;
  font-size: clamp(24px, 4.5vw, 40px);
  line-height: 1.15;
  color: #ffffff;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  max-width: 540px;
  margin-top: 10px;
}

.hero-image-wrap {
  max-width: 320px;
}

.hero-dsanya-avatar {
  border-radius: 20px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  width: 100%;
  background: #1e293b;
}

.hero-floating-card {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(21, 27, 38, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 100px;
  width: 92%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* SOS Cards */
.sos-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 12px !important;
}

.sos-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  background: #1c2433;
}

.sos-icon {
  font-size: 22px;
}

/* Chat Component */
.bg-dark-alt {
  background-color: var(--bg-card-alt);
}

.chat-container-card {
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  background: #202938;
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background-color: #22c55e;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

.chat-messages {
  height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-input);
}

.chat-message {
  max-width: 90%;
  display: flex;
  flex-direction: column;
}

.bot-msg {
  align-self: flex-start;
}

.user-msg {
  align-self: flex-end;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
}

.bot-msg .msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.bot-msg .msg-bubble p {
  color: var(--text-secondary);
}

.bot-msg .msg-bubble blockquote {
  border-left: 3px solid var(--accent-gold);
  padding-left: 8px;
  margin: 6px 0;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.08);
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius: 0 6px 6px 0;
}

.user-msg .msg-bubble {
  background: #d97706;
  color: #ffffff;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 4px;
}

.user-msg .msg-time {
  text-align: right;
}

/* Trainer Cards */
.trainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  padding: 16px !important;
}

.trainer-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.trainer-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(11, 14, 20, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1050;
  padding: 0 4px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  gap: 2px;
  flex: 1;
  height: 100%;
}

.bottom-nav-item i {
  font-size: 16px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--accent-gold);
}

.cursor-pointer {
  cursor: pointer;
}

/* Chayan Satirical Badge */
.chayan-badge {
  background: #fef08a;
  color: #1e293b;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.accordion-button:not(.collapsed) {
  background-color: #1a2332 !important;
  color: var(--accent-gold) !important;
}

.accordion-button::after {
  filter: invert(1);
}
