/* ── Design Tokens ─────────────────────────────────── */
:root {
    --bg-main: #000000;
    --bg-card: #121212;
    --accentColour: #ffd700;
    --accentColour-soft: rgba(255, 215, 0, 0.15);
    --accent-dim:    rgba(255, 215, 0, 0.12);
    --accent-glow:   rgba(255, 215, 0, 0.35);
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --border-subtle: #2a2a2a;
    --border: rgba(255, 255, 255, 0.07);
    --danger: #ff4d4d;
    --radius-card: 14px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.7);
    --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.45);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --blur-strong: 22px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.28s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/*=========Title Panel Section==========*/
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: radial-gradient(circle at top left, rgba(71, 71, 71, 0.1)); /* Creates a radial gradient background that starts from the top left corner, with a very light color */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: var(--trans), box-shadow var(--trans);
}

.nav-bar {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color var(--transition-med), box-shadow var(--transition-med),border-color var(--transition-med), transform 0.25s ease-out;
    border-bottom: 1px solid transparent;
}
.nav-right,
.nav-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}
.nav-brand-btn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.nav-brand-btn:focus-visible {
  outline: 2px solid var(--accentColour);
  outline-offset: 6px;
  border-radius: 10px;
}
.nav-center {
    display: flex;
    padding-left: 20px;
    left: 100%;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Gap beteen each component on the panel*/
}
.appName {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accentColour);
}
.nav-left img {
  flex-shrink: 0;
  height: 50px;   /* change this number to make it smaller */
  width: auto;    /* keeps the proportions correct */
}

/* Navigation Links */
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  padding: 6px 14px;
  position: relative;
  transition: color var(--transition-fast);
  cursor: pointer;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accentColour), #38bdf8);
  transition: width var(--transition-med);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}
/* Hides the page completely */
.hidden {
  display: none !important; 
}
/*=========Intro Text Section==========*/

.intro-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 140px 28px 110px;
  display: flex;
  gap: 64px;
  align-items: center;
}
/* .intro-text{} caused a problem? not needed? */ 

.intro-section h1 {

  font-family: 'poppins', sans-serif;
  font-size: 88px;
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  padding-left: 0px;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.intro-section h1 span { color: var(--accentColour); }

.intro-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/*============ Dashboard Section ==========*/
.section-frame {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 28px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accentColour);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 1000px;
  margin-bottom: 36px;
}

/* Dashboard info */
#dashboard .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color var(--transition-med), transform var(--transition-med);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accentColour);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.stat-card:hover { border-color: rgba(255,215,0,0.2); transform: translateY(-3px); }
.stat-card:hover::after { transform: scaleX(1); }


.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.stat-value { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--text-main); line-height: 1; }
.stat-value.accent { color: var(--accentColour); }
.stat-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ============= Subscription Section ==========*/

.subscriptions-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 80px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 80px;
  padding: 15px 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-med);
  font-size: 0.88rem;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: rgba(255, 255, 255, 0.034); }


.sub-list { display: flex; flex-direction: column; gap: 10px; }

.row-name { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.row-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.row-muted { color: var(--text-muted); }
.trial-badge {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(96,165,250,0.18);
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
}
.status-ok {               /* Free Trial (green) */
  background: rgba(34,197,94,0.15);
  color: #4ade80;
}
.status-soon {             /* Soon (orange, next 7 days) */
  background: rgba(249,115,22,0.15);
  color: #f97316;
}
.status-cancel {           /* Now / Overdue (red) */
  background: rgba(239,68,68,0.12);
  color: #f87171;
}
.status-later {            /* Later (grey, > 7 days) */
  background: rgba(148,163,184,0.16);
  color: #e5e7eb;
}
.status-ok     { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-soon   { background: rgba(255,215,0,0.12); color: var(--accentColour); }
.status-cancel { background: rgba(239,68,68,0.12); color: #f87171; }


/* ================= Insight Section ============== */
.insights-one {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 28px 30px;
  background-color: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.insights-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.insights-right {
  display: flex;
  min-height: 0;
}

.insights-right .category-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.insights-right .category-chart-container {
  flex: 1;
  max-width: none;
  min-height: 200px;
}

/* Monthly Spend by Service card (Insights, top-left) */
.service-spend-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
}

.service-spend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.service-spend-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.service-spend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Free Trials card: no max height so list extends as more trials are added */
.service-spend-card--grows .service-spend-list {
  min-height: 0;
}

.service-spend-row {
  display: grid;
  grid-template-columns: 1.4fr 4fr auto;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
}

.service-spend-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-spend-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(55, 65, 81, 0.9);
  overflow: hidden;
}

.service-spend-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: var(--accentColour);
  box-shadow: 0 0 16px var(--accent-glow);
  transition: width 0.3s ease-out;
}

/* Personal value slider in add subscription */
.value-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-slider-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accentColour);
}

input[type="range"]#subValue {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #22c55e);
  outline: none;
}

input[type="range"]#subValue::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accentColour);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

input[type="range"]#subValue::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accentColour);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.service-spend-amount {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-spend-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Spend by Category pie card (top-right)*/
.pi-chart{
  align-self: stretch;
}

.category-card { /* The card container for the pie chart */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
}

.category-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.category-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.category-chart-container {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.category-chart-container canvas {
  width: 100% !important;
  height: 100% !important;

}
.category-chart-subtitle {
  position: absolute;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-bottom: 30px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}

/* ================ Insights, bottom section =============== */
.insights-two{
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 28px 30px;
  background-color: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}


/*================Button styling ==================*/
.btn{
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 9px 18px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 550;
    color: #000000;
    background: var(--accentColour);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 24px var(--accent-glow);
    transition: background-color var(--transition-med), color var(--transition-med),
        border-color var(--transition-med), box-shadow var(--transition-med),
        transform var(--transition-fast);
    white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.55);
}

.btn:active {
  transform: translateY(0);
  color: var(--accentColour);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.45);
}

/* Large button variation */
.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-width: 160px;
    min-height: 56px;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px rgba(34, 197, 94, 0.6);
}

.btn-large:active {
  transform: translateY(0);
  color: var(--accentColour);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.5);
}

.app-footer {
  border-top: 1px solid var(--border);
  padding: 28px 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* For Modal
    Adding popup for subscription being added*/
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
      z-index: 1000;
      backdrop-filter: blur(6px);           /* blurs the background for it to pop more */
      -webkit-backdrop-filter: blur(6px);   /* ← and this (Safari support) */
    }

    .modal-overlay.visible {
      display: flex;
    }

    /*Adding Button*/
    .modal-choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }

  .modal-choice-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
    color: var(--text-main);
  }

  .modal-choice-btn:hover {
    border-color: var(--accentColour);
    transform: translateY(-2px);
  }

.choice-icon { font-size: 1.6rem; }

.choice-label {
  font-size: 1rem;
  font-weight: 600;
  display: block;
}

.choice-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover { color: var(--text-main); }

.admin-console-modal {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.admin-console-output {
  margin-top: 16px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0a0a0a;
  color: var(--text-muted);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.admin-console-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}


/*================= LOGIN ===================*/
/* Auth lock state */
body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-header,
body.auth-locked .app-page,
body.auth-locked .email-reminder-section,
body.auth-locked .app-footer,
body.auth-locked .modal-overlay {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

/* Login overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 2, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10000;
}

.login-card {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(41, 24, 5, 0.98),
    rgba(88, 42, 8, 0.94)
  );
  border: 1px solid rgba(250, 204, 21, 0.65);
  box-shadow: 0 26px 52px rgba(15, 10, 2, 0.9);
  padding: 26px 24px 22px;
  color: var(--text-main);
}

.auth-brand {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accentColour);
  padding: 4px 10px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 999px;
  margin-bottom: 10px;
}

.login-title {
  margin: 0 0 6px 0;
  font-size: 1.55rem;
}

.login-subtitle {
  margin: 0 0 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-row label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-row input {
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: rgba(30, 16, 3, 0.9);
  color: var(--text-main);
  padding: 8px 11px;
  font-size: 0.9rem;
  outline: none;
}

.login-row input:focus {
  border-color: var(--accentColour);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.5);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.08), rgba(250, 204, 21, 0.45), rgba(250, 204, 21, 0.08));
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
  opacity: 0.75;
}

.signup-submit:disabled {
  cursor: not-allowed;
}

.auth-link-btn {
  margin-top: 4px;
  background: transparent;
  border: none;
  color: var(--accentColour);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 4px 0;
}

.auth-link-btn:hover {
  color: #f8e88d;
}

.login-error {
  min-height: 1.1em;
  font-size: 0.78rem;
  color: #fecaca;
  margin: 0;
}

.login-submit {
  margin-top: 4px;
}

.current-user-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 8px;
}

@media (max-width: 640px) {
  .login-card {
    max-width: 96vw;
    padding: 20px 16px 16px;
  }

  .login-title {
    font-size: 1.32rem;
  }
}

/*================= For Each Grou ===================*/
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

/* Modal form inputs: dark background, white text */
.modal input[type="text"],
.modal input[type="number"],
.modal input[type="date"],
.modal select {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: inherit;
}

.modal input::placeholder {
  color: var(--text-muted);
}

.modal input:focus,
.modal select:focus {
  outline: none;
  border-color: var(--accentColour);
}

/* Date input calendar icon: white so it's visible on dark background */
.modal input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.9;
  cursor: pointer;
}

.modal select option {
  background: #0a0a0a;
  color: var(--text-main);
}

/* ================= AI ADVISOR CHAT ================= */

.advisor-content {
  max-width: 900px;
  margin: 0 auto;
}

.advisor-section {
  max-width: 900px;
  margin: 0 auto;         /* centers horizontally */
  text-align: center;      /* centers text inside */
  padding: 60px 20px;      /* optional spacing */
}

.ai-chatbox {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Messages area */

.ai-chat-messages {
  text-align: left;
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Message bubbles */

.ai-message {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.ai-message.ai {
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  align-self: flex-start;
}

.ai-message.user {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  align-self: flex-end;
}

/* Input area */

.ai-chat-input {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 12px;
  gap: 10px;
}

.ai-chat-input input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.ai-chat-input input:focus {
  outline: none;
  border-color: var(--accentColour);
}

.ai-chat-input button {
  background: var(--accentColour);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ai-chat-input button:hover {
  transform: translateY(-1px);
}

/* Optional: animated dots typing indicator */
.ai-typing {
  display: inline-block;
  width: 50px;
  text-align: left;
}

.ai-typing::after {
  content: '...';
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 20%, 50%, 80%, 100% { opacity: 1; }
  40%, 60%, 80% { opacity: 0; }
}


.insights-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.insights-section .section-label,
.insights-section .section-title,
.insights-section .section-sub {
  text-align: center;
}

.email-reminder-section {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  border-radius: 8px;
}

.email-reminder-section h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.email-reminder-section p {
  font-size: 12px;
  margin-bottom: 12px;
  color: #ccc;
}

.email-input-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.email-input-group input {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  max-width: 250px;
  width: 100%;
}

#emailReminderBtn {
  background-color: #ffd700; /* same as logout button */
  color: #000;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

#emailReminderBtn:hover {
  opacity: 0.9;
}


