/* ==========================================================================
   Mystery Rooms India · Enterprise PF & ESIC AI Assistant
   Aesthetic Light Mode Glassmorphism Design System
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Brand Accents */
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-glow: rgba(225, 29, 72, 0.25);
  --primary-gradient: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  
  --accent-blue: #0284c7;
  --accent-green: #059669;
  --accent-amber: #d97706;

  /* Light Glass Surface Tokens */
  --bg-page: #f1f5f9;
  --glass-container: rgba(255, 255, 255, 0.85);
  --glass-header: rgba(255, 255, 255, 0.92);
  --glass-card: rgba(255, 255, 255, 0.75);
  --glass-card-hover: rgba(255, 255, 255, 0.95);
  --glass-bot-bubble: rgba(255, 255, 255, 0.94);
  --glass-user-bubble: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  --glass-composer: rgba(255, 255, 255, 0.92);

  /* Glass Borders */
  --glass-border: rgba(226, 232, 240, 0.85);
  --glass-border-strong: rgba(203, 213, 225, 0.9);
  --glass-border-light: rgba(255, 255, 255, 0.8);
  --glass-border-focus: #e11d48;

  /* Typography Colors (High-Contrast Light Theme) */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --blur-app: blur(28px) saturate(180%);
  --blur-card: blur(16px);
  --shadow-container: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04);
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Ambient Light Mode Glow Orbs
   ========================================================================== */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatOrbs 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.22) 0%, transparent 70%);
  top: -60px;
  left: -60px;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.20) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
  animation-duration: 24s;
}

.orb-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.16) 0%, transparent 70%);
  top: 40%;
  right: 15%;
  animation-duration: 18s;
}

@keyframes floatOrbs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 25px) scale(1.06); }
  100% { transform: translate(-25px, 40px) scale(0.96); }
}

/* ==========================================================================
   Main Glass Container (Light Mode)
   ========================================================================== */
.chat-container {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--glass-container);
  backdrop-filter: var(--blur-app);
  -webkit-backdrop-filter: var(--blur-app);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
  border: 1px solid var(--glass-border-light);
}

@media (min-width: 800px) {
  .chat-container {
    max-width: 860px;
    height: 94vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-container);
    border: 1px solid rgba(255, 255, 255, 0.95);
  }
}

/* ==========================================================================
   Header (Light Mode)
   ========================================================================== */
.app-header {
  height: 64px;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--glass-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 20;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 32px;
  max-height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.brand-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.brand-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Light Segmented Switch */
.lang-switch-group {
  display: flex;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.lang-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.control-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.control-btn:hover {
  background: #f8fafc;
  border-color: var(--glass-border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.sparkle-icon {
  color: #f59e0b;
}

/* ==========================================================================
   Feed Welcome Section & Summary Grid (Inside Scrollable Chat Thread)
   ========================================================================== */
.feed-welcome-section {
  width: 100%;
  margin-bottom: 8px;
}

.welcome-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.welcome-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.welcome-logo {
  height: 38px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  flex-shrink: 0;
}

.welcome-text {
  flex: 1;
  min-width: 0;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin-bottom: 2px;
}

.welcome-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.summary-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.summary-card {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.summary-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-icon {
  font-size: 1rem;
}

.card-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.card-tag.urgent-tag {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.card-tag.bonus-tag {
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.card-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.card-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.urgent-card {
  border-left: 3px solid #e11d48;
}

.bonus-card {
  border-left: 3px solid #059669;
}

/* ==========================================================================
   Chat Thread & Message Bubbles (Light Mode)
   ========================================================================== */
.chat-thread {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(248, 250, 252, 0.55);
}

.chat-thread::-webkit-scrollbar {
  width: 6px;
}

.chat-thread::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Message Item */
.msg-item {
  display: flex;
  gap: 10px;
  max-width: 86%;
  animation: msgFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.msg-item.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

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

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.msg-item.bot .msg-avatar {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.msg-item.user .msg-avatar {
  background: #0f172a;
  color: #ffffff;
}

/* Message Card (Light Mode) */
.msg-card {
  background: var(--glass-bot-bubble);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  word-break: break-word;
}

.msg-item.user .msg-card {
  background: var(--glass-user-bubble);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Typography Inside Messages */
.msg-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 8px 0;
}

.msg-card p {
  margin-bottom: 6px;
}

.msg-card p:last-child {
  margin-bottom: 0;
}

.msg-card ul, .msg-card ol {
  margin: 6px 0 8px 20px;
}

.msg-card li {
  margin-bottom: 4px;
}

.msg-card strong {
  font-weight: 700;
  color: var(--text-primary);
}

.msg-item.user .msg-card strong {
  color: #ffffff;
}

/* Responsive Light Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: #ffffff;
}

.msg-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.msg-card th {
  background: #f1f5f9;
  color: var(--text-primary);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 700;
  font-family: var(--font-heading);
}

.msg-card td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.msg-card tr:last-child td {
  border-bottom: none;
}

.guide-citation {
  display: inline-flex;
  align-items: center;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #e11d48;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Message Meta & Copy */
.msg-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.msg-time {
  font-size: 0.68rem;
  color: var(--text-light);
}

.msg-item.user .msg-time {
  color: rgba(255, 255, 255, 0.85);
  border-top: none;
  margin-top: 4px;
  display: block;
  text-align: right;
}

.copy-btn {
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--glass-border-strong);
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
}

.dot {
  width: 6px;
  height: 6px;
  background: #e11d48;
  border-radius: 50%;
  animation: dotBounce 1.2s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* ==========================================================================
   Quick Questions Carousel (Light Mode)
   ========================================================================== */
.quick-questions-wrapper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  padding: 8px 18px 6px 18px;
  flex-shrink: 0;
}

.quick-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.quick-chips::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.quick-chip:hover {
  background: #ffe4e6;
  border-color: #fecdd3;
  color: #e11d48;
  transform: translateY(-1px);
}

.quick-chip:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Composer Area (Light Mode Glass Capsule)
   ========================================================================== */
.composer-area {
  padding: 10px 18px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.composer-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--glass-border-strong);
  border-radius: 26px;
  padding: 4px 6px 4px 18px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.composer-box:focus-within {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.composer-box textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on mobile */
  resize: none;
  padding: 8px 0;
  max-height: 90px;
  line-height: 1.4;
  color: var(--text-primary);
}

.composer-box textarea::placeholder {
  color: var(--text-light);
}

.composer-send-btn {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px var(--primary-glow);
}

.composer-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.composer-send-btn:active {
  transform: scale(0.94);
}

.composer-send-btn:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.composer-footnote {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* ==========================================================================
   AI Settings Glass Modal (Light Mode)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-intro {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.provider-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.provider-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.provider-radio:hover {
  border-color: var(--glass-border-strong);
  background: #f8fafc;
}

.provider-radio input[type="radio"] {
  margin-top: 3px;
  accent-color: #e11d48;
}

.radio-content {
  flex: 1;
}

.radio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.radio-header strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.free-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: #d1fae5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.radio-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.custom-key-block {
  border-top: 1px solid var(--glass-border);
  padding-top: 12px;
}

.custom-key-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}

.custom-key-block input {
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: #f8fafc;
  color: var(--text-primary);
}

.custom-key-block input:focus {
  border-color: #e11d48;
  background: #ffffff;
}

.key-help-links {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.key-help-links a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.key-help-links a:hover {
  text-decoration: underline;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--glass-border);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.95;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 680px) {
  .app-header {
    height: 54px;
    padding: 0 12px;
  }
  
  .brand-logo-img {
    height: 28px;
    max-width: 110px;
  }

  .brand-desc {
    display: none;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .verified-badge {
    font-size: 0.62rem;
    padding: 1px 5px;
  }

  .hide-sm {
    display: none;
  }

  .control-btn {
    padding: 0 8px;
    height: 30px;
  }

  .lang-btn {
    padding: 3px 8px;
    font-size: 0.74rem;
  }

  .feed-welcome-section {
    margin-bottom: 6px;
  }

  .welcome-card {
    padding: 12px;
  }

  .welcome-header {
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .welcome-logo {
    height: 28px;
    max-width: 100px;
  }

  .welcome-title {
    font-size: 0.95rem;
  }

  .welcome-sub {
    font-size: 0.72rem;
  }

  .summary-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .summary-card {
    padding: 8px 10px;
  }

  .card-val {
    font-size: 0.88rem;
  }

  .card-lbl {
    font-size: 0.68rem;
  }

  .chat-thread {
    padding: 10px 10px;
    gap: 10px;
  }

  .msg-item {
    max-width: 95%;
  }

  .msg-card {
    font-size: 0.88rem;
    padding: 10px 12px;
    line-height: 1.5;
  }

  .quick-questions-wrapper {
    padding: 6px 10px 4px 10px;
  }

  .quick-chip {
    padding: 5px 11px;
    font-size: 0.74rem;
  }

  .composer-area {
    padding: 6px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .composer-box {
    padding: 2px 4px 2px 12px;
  }

  .composer-box textarea {
    font-size: 15px;
    padding: 6px 0;
  }

  .composer-send-btn {
    width: 34px;
    height: 34px;
  }
}
