:root {
  --bg: #f7f9f7;
  --text: #333;
  --primary: #4a5e4e;
  --primary-light: #e8f0e9;
  --card-bg: #fff;
  --border: #d8e0d9;
  --button-bg: #4a5e4e;
  --button-text: #fff;
  --button-hover-bg: #3a4a3e;
  --secondary-button-bg: #e8f0e9;
  --secondary-button-text: #4a5e4e;
  --secondary-button-hover-bg: #d8e0d9;
  --premium-bg: #fdf8e1;
  --premium-border: #f0e0b0;
  --chat-bg: #fafafa;
  --sage: #665544;
  --user: #222;
  --timer: #888;
  --spinner: #888;
  --error: #b55;
}
body {
  font-family: 'Georgia', serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}
body.dark {
  --bg: #181a1b;
  --card-bg: #232627;
  --text: #e0e0e0;
  --border: #333;
  --primary: #a2bdaa;
  --primary-light: #2c3a31;
  --secondary-button-bg: #2c3a31;
  --secondary-button-text: #a2bdaa;
  --secondary-button-hover-bg: #3c4a41;
  --chat-bg: #191c1d;
  --sage: #e6ad7b;
  --user: #c3e7fa;
  --timer: #aaa;
  --spinner: #aaa;
  --error: #ff7e7e;
}
.container {
  max-width: 800px;
  width: 100%;
  background: transparent;
  padding: 0;
}
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
h1 .icon { font-size: 2.2rem; vertical-align: middle; }
.subtitle {
  font-size: 1.25rem;
  color: #777;
  margin-bottom: 2.5rem;
  font-style: italic;
}
body.dark .subtitle { color: #aaa; }
.section {
  margin-bottom: 3.5rem;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
p, .feature-list li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto 1rem auto;
}
.feature-list { list-style: '✅ '; padding-left: 1.5rem; text-align: left; display: inline-block; margin-top: 1.5rem; }
.feature-list li { margin-bottom: 0.75rem; }
.quote { font-style: italic; color: var(--primary); margin: 2rem 0; font-size: 1.2rem; font-weight: bold; }
.button-group { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 1rem 2rem; font-size: 1.1rem; border-radius: 8px; text-decoration: none; font-weight: bold; cursor: pointer; border: 1px solid transparent; transition: all 0.2s ease-in-out; }
.btn:active {
  transform: translateY(2px);
  filter: brightness(0.95);
}
.btn-primary { background: var(--button-bg); color: var(--button-text); }
.btn-primary:hover { background: var(--button-hover-bg); transform: translateY(-2px); }
.btn-secondary { background: var(--secondary-button-bg); color: var(--secondary-button-text); border-color: var(--border); }
.btn-secondary:hover { background: var(--secondary-button-hover-bg); }
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 2rem; text-align: left; }
.pricing-table th, .pricing-table td { padding: 1rem; border-bottom: 1px solid var(--border); }
.pricing-table th { background-color: var(--primary-light); color: var(--primary); font-size: 1.1rem; }
.pricing-table td { vertical-align: middle; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .plan-name { font-weight: bold; font-size: 1.15rem; }
.pricing-table .plan-price { font-weight: bold; color: var(--primary); }
.pricing-table .plan-action { text-align: center; }
.final-cta { background: var(--primary-light); border-color: var(--primary-light); }
.final-cta h2 { color: var(--primary); }
.footer { font-size: 0.9em; color: #777; margin-top: 2em; }
body.dark .footer { color: #aaa; }
.darkmode-switch { position: fixed; top: 10px; right: 10px; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; z-index: 1001; padding: 0.25em 0.7em; border-radius: 6px; transition: background 0.3s, color 0.3s; }
.darkmode-switch:focus { outline: 2px solid var(--sage); }

/* Chat Interface Styles */
#chat-section { display: none; margin-top: 3rem; }
.chat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.chatbox { height: 350px; overflow-y: auto; border: 1px solid var(--border); padding: 1rem; border-radius: 8px; background: var(--chat-bg); margin-bottom: 1rem; white-space: pre-wrap; transition: background 0.3s, border 0.3s; text-align: left; }
.user { font-weight: bold; color: var(--user); }
.sage { color: var(--sage); margin-bottom: 1rem; }
#chat-section textarea, #chat-section button#sendBtn { width: 100%; padding: 1rem; font-size: 1rem; border-radius: 8px; margin-top: 0.5rem; border: 1px solid var(--border); background: var(--button-bg); color: var(--button-text); font-family: 'Segoe UI', sans-serif; transition: background 0.3s, color 0.3s, border 0.3s; box-sizing: border-box; }
#chat-section textarea { background: var(--card-bg); color: var(--text); }
#timer { text-align: left; color: var(--timer); font-size: 0.95rem; transition: color 0.3s; }
#spinner { display: none; text-align: left; margin: 0.5rem 0 0.5rem 0; color: var(--spinner); font-style: italic; transition: color 0.3s; }
#importInput { display: none; }
#session-ended-msg { display: none; padding: 1.5rem; margin-top: 1rem; background: var(--primary-light); border-radius: 8px; }

/* --- NEW Chat Menu Styles --- */
.chat-menu { position: relative; }
.chat-menu-button { background: none; border: none; cursor: pointer; padding: 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-menu-button svg { stroke: var(--text); }
.chat-menu-button:hover { background-color: var(--secondary-button-bg); }
.chat-dropdown-content { display: none; position: absolute; right: 0; background-color: var(--card-bg); min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 10; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.chat-dropdown-content.show-dropdown { display: block; }
.chat-dropdown-content a { color: var(--text); padding: 12px 16px; text-decoration: none; display: block; text-align: left; }
.chat-dropdown-content a:hover { background-color: var(--secondary-button-bg); }
.chat-dropdown-content .danger-option { color: var(--error); }
.chat-dropdown-content .danger-option:hover { color: #fff; background-color: var(--error); }

/* Feedback Message Style */
.session-feedback { color: var(--error); margin-top: 1rem; font-weight: bold; font-size: 1rem; height: 1.2rem; }

/* Stripe Modal Styles */
#stripe-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; box-sizing: border-box; }
.stripe-modal-content { background: var(--card-bg); border-radius: 12px; padding: 2rem; width: 100%; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.stripe-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.stripe-modal-header h3 { margin: 0; color: var(--primary); }
.close-modal { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }
#stripe-form { display: flex; flex-direction: column; gap: 1rem; }
#stripe-form button { background: var(--button-bg); color: var(--button-text); border: none; padding: 12px; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 1rem; }
#stripe-form button:hover { background: var(--button-hover-bg); }
#card-element { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); }
#card-errors { color: var(--error); font-size: 0.9rem; min-height: 1.2rem; }
.payment-success { text-align: center; padding: 2rem 0 0 0; }
.payment-success h3 { color: var(--primary); margin-bottom: 1rem; }
.payment-success-icon { font-size: 4rem; color: var(--primary); margin-bottom: 1rem; line-height: 1; }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  body { padding: 1rem 0.5rem; }
  .section { padding: 2rem 1rem; margin-bottom: 2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  p, .feature-list li { font-size: 1rem; }
  .btn { padding: 0.8rem 1.2rem; font-size: 1rem; }
  .pricing-table thead { display: none; }
  .pricing-table tr { display: block; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1.5rem; padding: 1rem; }
  .pricing-table td { display: block; text-align: center; padding: 0.5rem; border-bottom: none; }
  .pricing-table td::before { content: ""; display: none; }
  .pricing-table .plan-name { font-size: 1.3rem; font-weight: bold; color: var(--primary); }
  .pricing-table .plan-price { font-size: 1.1rem; margin: 0.5rem 0; }
  .pricing-table .plan-action { margin-top: 1rem; }
}

  }
  .pricing-table .plan-action {
    margin-top: 1rem;
  }
}
