/* ---------- COLOR PALETTE ---------- */
:root {
  --gm-cream: #faf1e6;
  --gm-soft-white: #fffcf5;
  --gm-mint: #e6f2ea;
  --gm-dark-green: #244f35;
  --gm-sage: #b7c5b7;

  --gm-text-main: #243b30;
  --gm-text-muted: #6b7a71;

  /* Extra accents */
  --gm-accent: #1b7f3a;
  --gm-accent-soft: rgba(27, 127, 58, 0.08);
  --gm-shadow-soft: 0 18px 40px rgba(16, 40, 26, 0.16);
}

/* ---------- BASE ---------- */
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--gm-text-main);
  background-color: var(--gm-soft-white);
  animation: gmPageFadeIn 0.55s ease-out;
}

/* Smooth transitions for interactive elements */
a,
button,
.btn,
.card,
.form-control,
.gm-tag,
.nav-link {
  transition: all 0.25s ease-out;
}

.gm-main {
  min-height: calc(100vh - 72px - 48px);
}

/* ---------- NAVBAR (dark, modern) ---------- */

.gm-navbar {
  background: linear-gradient(120deg, #10251a, #244f35);
  padding-top: 18px;
  padding-bottom: 18px;
  box-shadow: var(--gm-shadow-soft);
  backdrop-filter: blur(12px);
}

.gm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: -10px;
}

.gm-brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transform-origin: center;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.gm-brand:hover img {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.gm-brand span {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #ffffff;
}

/* Nav links */
.gm-navbar .nav-link {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 500;
  padding-inline: 16px;
  position: relative;
}

.gm-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gm-mint), var(--gm-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease-out;
}

.gm-navbar .nav-link:hover {
  color: var(--gm-mint) !important;
}

.gm-navbar .nav-link:hover::after {
  transform: scaleX(1);
}
/* ---------- DROPDOWN (Profile menu) – GoalMate theme, no blue ---------- */

.dropdown-menu {
  border-radius: 16px;
  border: 1px solid rgba(36, 79, 53, 0.18);
  box-shadow: 0 18px 32px rgba(36, 79, 53, 0.18);
  background: rgba(255, 252, 245, 0.98);
  padding: 8px 6px;
}

.dropdown-item {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gm-text-main) !important;
  border-radius: 10px;
  padding: 8px 14px;
}

/* Remove blue background / text on hover / focus / active */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active,
.dropdown-item.active,
.show > .dropdown-item {
  background-color: var(--gm-mint) !important;
  color: var(--gm-dark-green) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ---------- BUTTON SYSTEM (micro-press, lift, glow, ripple) ---------- */

/* Common button base: applies to main CTAs + custom buttons */
.btn,
.gm-hero-cta-secondary,
.gm-btn-light,
.gm-btn-outline-light {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  transform: translateY(0) scale(1);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    background 0.18s ease-out,
    border-color 0.18s ease-out,
    color 0.18s ease-out;
}
/* Make secondary CTA same height & rounded size as primary CTA */
.gm-hero-cta-secondary {
  padding: 10px 26px !important; /* same as primary */
  border-radius: 999px !important;
  font-size: 0.98rem;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Soft lift on hover */
.btn:hover,
.gm-hero-cta-secondary:hover,
.gm-btn-light:hover,
.gm-btn-outline-light:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 26px rgba(16, 40, 26, 0.35);
}

/* Micro-press on click */
.btn:active,
.gm-hero-cta-secondary:active,
.gm-btn-light:active,
.gm-btn-outline-light:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 10px rgba(16, 40, 26, 0.4);
}

/* Ripple (centered, GoalMate green) */
.btn::after,
.gm-hero-cta-secondary::after,
.gm-btn-light::after,
.gm-btn-outline-light::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 1px;
  height: 1px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(27, 127, 58, 0.5), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Trigger ripple on active */
.btn:active::after,
.gm-hero-cta-secondary:active::after,
.gm-btn-light:active::after,
.gm-btn-outline-light:active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(60);
  transition:
    transform 0.5s ease-out,
    opacity 0.5s ease-out;
}

/* Primary CTA (GoalMate palette) */
.btn-primary {
  background: linear-gradient(135deg, var(--gm-accent), #244f35);
  border-color: var(--gm-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(27, 127, 58, 0.4);
}

/* Glow pulse for the main hero primary CTA */
.gm-hero-cta-primary {
  box-shadow: 0 14px 28px rgba(27, 127, 58, 0.5);
  animation: gmBtnGlow 2.4s ease-in-out infinite;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.45s ease-out;
}

.btn-primary:hover::before {
  transform: translateX(0%);
}

.btn-primary:hover {
  background: #1b3b27;
  border-color: #1b3b27;
}

/* Secondary CTA in hero */
.gm-hero-cta-secondary {
  background: rgba(230, 242, 234, 0.06);
  border: 1px solid rgba(230, 242, 234, 0.6);
  color: var(--gm-mint);
  font-weight: 500;
}

/* Light buttons */
.gm-btn-light {
  background: linear-gradient(135deg, var(--gm-mint), #f3f9f5);
  color: var(--gm-dark-green);
  border: 1px solid var(--gm-sage);
}

.gm-btn-outline-light {
  color: #fff;
  border: 1px solid #fff;
  background: transparent;
}

/* Remove blue focus / click outlines (keep GoalMate theme only) */
.btn:focus,
.btn:active,
.btn:focus-visible,
button:focus,
button:active,
a:focus,
a:active {
  outline: none !important;
  box-shadow: none !important;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--gm-accent), #244f35) !important;
  border-color: var(--gm-accent) !important;
  color: #fff !important;
}

.gm-hero-cta-secondary:focus,
.gm-hero-cta-secondary:active {
  background: rgba(230, 242, 234, 0.15) !important;
  border-color: rgba(230, 242, 234, 0.5) !important;
  color: var(--gm-mint) !important;
}

.gm-btn-outline-light:focus,
.gm-btn-outline-light:active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--gm-mint) !important;
  border: 1px solid var(--gm-mint) !important;
}

/* Remove blue tap highlight on mobile */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* ---------- HERO SECTION (Hacktoberfest-style) ---------- */

.gm-hero-section {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(circle at top left, rgba(27, 127, 58, 0.35), transparent 55%),
    radial-gradient(circle at bottom right, rgba(186, 209, 195, 0.45), transparent 60%),
    linear-gradient(145deg, #06150e, #10251a 40%, #244f35 100%);
  color: #fdfdfb;
  overflow: hidden;
  opacity: 0;
  animation: gmHeroBgIn 0.7s ease-out forwards;
}

/* Subtle grid overlay */
.gm-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
  pointer-events: none;
}

/* Floating blobs / shapes */
.gm-hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.7;
  animation: gmBlobFloat 18s ease-in-out infinite alternate;
}

.gm-hero-blob--1 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(230, 242, 234, 0.9), transparent 70%);
  top: -40px;
  right: 14%;
}

.gm-hero-blob--2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(250, 241, 230, 0.95), transparent 70%);
  bottom: -60px;
  left: 6%;
  animation-delay: 3s;
}

/* Two-column layout */
.gm-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

/* Left side */
.gm-hero-left {
  max-width: 560px;
}

/* Badge */
.gm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(230, 242, 234, 0.08);
  border: 1px solid rgba(230, 242, 234, 0.4);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gm-mint);
  margin-bottom: 18px;
  opacity: 0;
  animation: gmFadeDown 0.6s ease-out forwards;
  animation-delay: 0.05s;
}

.gm-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7bf5a2;
  box-shadow: 0 0 12px rgba(123, 245, 162, 0.8);
}

/* Main heading */
.gm-hero-title {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  animation: gmFadeUp 0.7s ease-out forwards;
  animation-delay: 0.15s;
  opacity: 0;
}

.gm-hero-title span {
  background: linear-gradient(120deg, var(--gm-mint), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subtitle */
.gm-hero-subtitle {
  font-size: 1.02rem;
  color: rgba(244, 253, 247, 0.86);
  max-width: 460px;
  margin-bottom: 28px;
  font-weight: 400;
  animation: gmFadeUp 0.7s ease-out forwards;
  animation-delay: 0.25s;
  opacity: 0;
}

/* CTA row */
.gm-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  opacity: 0;
  animation: gmFadeUp 0.7s ease-out forwards;
  animation-delay: 0.35s;
}

/* Tiny meta line */
.gm-hero-meta {
  font-size: 0.85rem;
  color: rgba(236, 248, 240, 0.9);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  opacity: 0;
  animation: gmFadeUp 0.7s ease-out forwards;
  animation-delay: 0.45s;
}

.gm-hero-meta .gm-tag {
  box-shadow: none;
  background-color: rgba(230, 242, 234, 0.12);
  color: #f7fdf9;
  transform: translateY(0);
}

.gm-hero-meta .gm-tag:hover {
  transform: translateY(-2px);
}

/* Right side */
.gm-hero-right {
  display: flex;
  justify-content: center;
}

/* Hero card */
.gm-hero-card {
  width: 100%;
  max-width: 380px;
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(246, 252, 248, 0.22), transparent 55%),
    rgba(6, 21, 14, 0.88);
  border: 1px solid rgba(230, 242, 234, 0.3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  padding: 20px 20px 18px;
  backdrop-filter: blur(18px);
  opacity: 0;
  animation: gmCardIn 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.gm-hero-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85);
}

.gm-hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #e9f8f0;
}

.gm-hero-card-title {
  font-weight: 600;
}

.gm-hero-pill {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(230, 242, 234, 0.12);
  border: 1px solid rgba(230, 242, 234, 0.35);
}

/* Hero stats rows */
.gm-hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #f4fbf7;
}

.gm-hero-card-row-label {
  opacity: 0.8;
}

.gm-hero-card-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(230, 242, 234, 0.18);
  overflow: hidden;
  margin-top: 4px;
}

.gm-hero-card-progress-fill {
  height: 100%;
  width: 0; /* will be overridden by inline style */
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gm-mint), #7bf5a2, var(--gm-accent));
  animation: gmProgressGlow 2s ease-in-out infinite alternate;
  transition: width 0.4s ease-out;
}


/* ---------- DASHBOARD PAGE SHELL ---------- */

.gm-dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(27, 127, 58, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(186, 209, 195, 0.18), transparent 60%),
    var(--gm-soft-white);
  min-height: calc(100vh - 72px - 60px);
  padding-block: 32px 40px;
}

.gm-dashboard-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.gm-dashboard-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gm-dark-green);
}

.gm-dashboard-subtitle {
  font-size: 0.95rem;
  color: var(--gm-text-muted);
}

.gm-dashboard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gm-stat-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(230, 242, 234, 0.9);
  border: 1px solid rgba(36, 79, 53, 0.18);
  color: var(--gm-dark-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gm-stat-pill span.value {
  font-weight: 700;
  color: var(--gm-accent);
}

.gm-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr);
  gap: 24px;
}

.gm-dashboard-sidebar-card {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: linear-gradient(
      145deg,
      rgba(246, 252, 248, 0.96),
      rgba(236, 246, 240, 0.96)
    );
  border: 1px solid rgba(36, 79, 53, 0.16);
  box-shadow: 0 18px 36px rgba(16, 40, 26, 0.16);
}

.gm-dashboard-sidebar-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gm-dark-green);
  margin-bottom: 8px;
}

.gm-dashboard-sidebar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--gm-text-main);
}

.gm-dashboard-sidebar-row span.key {
  opacity: 0.75;
}

.gm-dashboard-sidebar-row span.value {
  font-weight: 600;
}

.gm-divider {
  border-top: 1px solid rgba(36, 79, 53, 0.12);
  margin-block: 10px;
}

/* ---------- ULTRA-PREMIUM GOAL CARDS ---------- */

.gm-goal-card {
  background: linear-gradient(
      145deg,
      rgba(255, 252, 245, 0.98),
      rgba(238, 248, 242, 0.96)
    );
  border-radius: 22px;
  border: 1px solid rgba(36, 79, 53, 0.14);
  padding: 22px 24px;
  box-shadow: 0 14px 28px rgba(16, 40, 26, 0.12);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out;
}

.gm-goal-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top right,
    rgba(27, 127, 58, 0.16),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

.gm-goal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(16, 40, 26, 0.18);
  border-color: rgba(36, 79, 53, 0.25);
}

.gm-goal-card:hover::before {
  opacity: 1;
}

.gm-goal-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 4px;
}

.gm-goal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gm-dark-green);
  text-transform: capitalize;
}

.gm-goal-type {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(230, 242, 234, 0.9);
  border: 1px solid rgba(36, 79, 53, 0.18);
  color: var(--gm-dark-green);
}

.gm-goal-meta {
  font-size: 0.9rem;
  color: var(--gm-text-muted);
  margin-bottom: 8px;
}

.gm-goal-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--gm-text-main);
}

.gm-goal-progress-row span.label {
  opacity: 0.8;
}

.gm-goal-progress-row span.value {
  font-weight: 600;
  color: var(--gm-accent);
}

.gm-goal-card .progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(36, 79, 53, 0.1);
  overflow: hidden;
  margin-bottom: 10px;
}

.gm-goal-card .progress-bar {
  background: linear-gradient(90deg, var(--gm-mint), #35c96d, var(--gm-accent));
  box-shadow: 0 0 12px rgba(27, 127, 58, 0.5);
}

.gm-goal-section-title {
  font-weight: 600;
  color: var(--gm-dark-green);
  margin-top: 6px;
  margin-bottom: 4px;
}

.gm-goal-card p {
  margin-bottom: 6px;
  color: var(--gm-text-main);
}

.gm-goal-card ul {
  padding-left: 1.1rem;
  margin-bottom: 8px;
}

.gm-goal-card ul li {
  margin-bottom: 4px;
}

.gm-goal-card .gm-goal-btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  border: 2px solid var(--gm-accent);
  color: var(--gm-accent);
  background: transparent;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gm-goal-card .gm-goal-btn:hover {
  background: var(--gm-accent);
  color: #fff;
  transform: translateY(-1.5px);
  box-shadow: 0 12px 24px rgba(27, 127, 58, 0.4);
}

.gm-goal-card .gm-goal-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px rgba(27, 127, 58, 0.5);
}

.gm-goal-card .gm-goal-btn::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 1px;
  height: 1px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(27, 127, 58, 0.55), transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.gm-goal-card .gm-goal-btn:active::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(50);
  transition:
    transform 0.55s ease-out,
    opacity 0.55s ease-out;
}
/* Profile avatar circle */
.gm-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gm-accent), #244f35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 10px 22px rgba(16, 40, 26, 0.4);
}

/* Small stat tiles inside profile */
.gm-panel-soft {
  background: rgba(230, 242, 234, 0.9);
  border-radius: 16px;
  padding: 10px 6px;
  border: 1px solid rgba(36, 79, 53, 0.15);
  box-shadow: 0 8px 18px rgba(16, 40, 26, 0.12);
}

.gm-panel-number {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gm-dark-green);
  line-height: 1.1;
}

.gm-panel-label {
  font-size: 0.78rem;
  color: var(--gm-text-muted);
}

/* Make profile card animate nicely in */
.gm-dashboard-page .gm-goal-card {
  margin-top: 10px;
}

/* ---------- REMOVE ALL BOOTSTRAP BLUE (GLOBAL OVERRIDES) ---------- */

.btn-outline-primary,
.btn-link,
.btn-info {
  color: var(--gm-accent) !important;
  border-color: var(--gm-accent) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-link:hover,
.btn-info:hover {
  background-color: var(--gm-accent) !important;
  color: #fff !important;
}

.text-primary {
  color: var(--gm-accent) !important;
}

a {
  color: var(--gm-accent);
}
a:hover {
  color: #13652f;
}

/* Default progress bars (anywhere) */
.progress {
  background: rgba(36, 79, 53, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, var(--gm-mint), #35c96d, var(--gm-accent));
}

/* ---------- GENERIC SECTION + CONTAINER ANIMATIONS ---------- */

.gm-section {
  padding: 64px 0;
  position: relative;
}

/* Base animation state: hidden */
.gm-animate,
.gm-animate-up,
.gm-animate-left,
.gm-animate-right,
.gm-animate-scale {
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.4s ease-out;
}

/* Variants */
.gm-animate-up {
  transform: translateY(24px);
}
.gm-animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gm-animate-left {
  transform: translateX(-28px);
}
.gm-animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.gm-animate-right {
  transform: translateX(28px);
}
.gm-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.gm-animate-scale {
  transform: scale(0.94);
}
.gm-animate-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.gm-animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.gm-animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.gm-animate-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0.05s;
}
.gm-animate-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.12s;
}
.gm-animate-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.19s;
}
.gm-animate-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.26s;
}

/* ---------- FOOTER ---------- */

.gm-footer {
  background-color: var(--gm-soft-white);
  border-top: 1px solid rgba(36, 79, 53, 0.15);
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 0.9rem;
  color: var(--gm-text-muted);
}

/* ---------- KEYFRAMES ---------- */

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

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

@keyframes gmFadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gmCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gmBlobFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -18px, 0);
  }
  100% {
    transform: translate3d(-10px, 10px, 0);
  }
}

@keyframes gmProgressGlow {
  0% {
    box-shadow: 0 0 0 rgba(123, 245, 162, 0.2);
  }
  100% {
    box-shadow: 0 0 16px rgba(123, 245, 162, 0.55);
  }
}

@keyframes gmBtnGlow {
  0% {
    box-shadow: 0 10px 20px rgba(27, 127, 58, 0.35);
  }
  50% {
    box-shadow: 0 16px 34px rgba(27, 127, 58, 0.55);
  }
  100% {
    box-shadow: 0 10px 20px rgba(27, 127, 58, 0.35);
  }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 992px) {
  .gm-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .gm-hero-right {
    order: -1;
  }

  .gm-hero-title {
    font-size: 2.4rem;
  }

  .gm-dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 576px) {
  .gm-hero-section {
    padding: 80px 0 64px;
  }

  .gm-hero-title {
    font-size: 2rem;
  }

  .gm-hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gm-hero-card {
    max-width: 100%;
  }
}
/* Mentor Card */
.gm-mentor-card {
  background: linear-gradient(180deg, #f7faf8, #eef4ef);
  border-radius: 18px;
  border: 1px solid rgba(36,79,53,0.15);
  box-shadow: 0 14px 30px rgba(16,40,26,0.12);
  transition: all 0.28s ease-out;
  overflow: hidden;
}

.gm-mentor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(16,40,26,0.22);
}

/* Avatar styling */
.gm-mentor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid rgba(27,127,58,0.25);
  box-shadow: 0 12px 25px rgba(16,40,26,0.15);
  margin-left: auto;
  margin-right: auto;
}

.gm-mentor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LinkedIn button (GoalMate styled) */
.gm-btn-linkedin {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--gm-accent);
  color: var(--gm-accent);
  background: rgba(27,127,58,0.05);
  transition: all 0.25s ease-out;
  
  /* REMOVE UNDERLINE */
  text-decoration: none !important;
}

.gm-btn-linkedin:hover {
  background: var(--gm-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27,127,58,0.35);
}

/* Animations */
.gm-animate-up {
  opacity: 0;
  transform: translateY(20px);
  animation: gmFadeInUp 0.6s ease-out forwards;
}

@keyframes gmFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ---------- COMMUNITY CHAT PREMIUM UI ---------- */

.gm-chat-card {
  background: linear-gradient(180deg, #f7faf8, #eef4ef);
  border: 1px solid rgba(36,79,53,0.18);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(16,40,26,0.15);
  animation: gmFadeInUp 0.6s ease-out;
}

.gm-chat-header {
  text-align: center;
  margin-bottom: 12px;
}

.gm-chat-title {
  margin: 0;
  font-weight: 700;
  color: #244f35;
}

.gm-chat-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7a71;
}

/* Chat message container */
.gm-chat-box {
  background: #244f35;
  border-radius: 16px;
  padding: 16px;
  height: 350px;
  overflow-y: auto;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.25);
  margin-bottom: 16px;
}

/* Input + button row */
.gm-chat-input-row {
  display: flex;
  gap: 10px;
}

.gm-chat-input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--gm-sage);
  background: var(--gm-soft-white);
  color: var(--gm-dark-green);
  transition: all 0.22s ease-out;
}

.gm-chat-input:focus {
  outline: none;
  border-color: var(--gm-accent);
  box-shadow: 0 0 0 3px rgba(27,127,58,0.18);
}

/* Send Button */
.gm-chat-send {
  padding: 11px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gm-accent), #244f35);
  color: #fff;
  border: none;
  font-weight: 500;
  box-shadow: 0 10px 20px rgba(27,127,58,0.42);
  transition: all 0.25s ease-out;
  cursor: pointer;
}

.gm-chat-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(27,127,58,0.55);
}

.gm-chat-send:active {
  transform: scale(0.95);
}

/* Under-identity text */
.gm-chat-identity {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7a71;
}

/* Chat animation */
@keyframes gmFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ---------- CHATBOT PAGE WRAPPER ---------- */
.gm-chatbot-container {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}

.gm-chatbot-card {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, #f7faf8, #eef4ef);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(36,79,53,0.15);
  box-shadow: 0 16px 40px rgba(16,40,26,0.15);
  animation: gmFadeInUp 0.7s ease-out;
}

/* ---------- HEADINGS ---------- */
.gm-chatbot-title {
  font-weight: 800;
  color: var(--gm-dark-green);
}

.gm-chatbot-subtitle {
  color: var(--gm-text-muted) !important;
}

/* ---------- CHAT WINDOW ---------- */
.gm-chat-window {
  height: 380px;
  overflow-y: auto;
  padding: 14px;
  border-radius: 16px;
  background: #244f35;
  border: 1px solid rgba(230,242,234,0.3);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3);
}

/* ---------- BUBBLES ---------- */
.gm-bubble-row {
  margin-bottom: 10px;
  display: flex;
}

.gm-bubble-row.user {
  justify-content: flex-end;
}

.gm-bubble {
  padding: 10px 16px;
  border-radius: 14px;
  max-width: 75%;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.28s ease-out;
}

.gm-bubble.show {
  opacity: 1;
  transform: translateY(0);
}

.gm-user-bubble {
  background: var(--gm-soft-white);
  color: var(--gm-dark-green);
  box-shadow: 0 4px 12px rgba(16,40,26,0.18);
}

.gm-bot-bubble {
  background: var(--gm-sage);
  color: var(--gm-dark-green);
  box-shadow: 0 4px 14px rgba(16,40,26,0.22);
}

/* ---------- INPUT AREA ---------- */
.gm-chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.gm-chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--gm-sage);
  background: var(--gm-soft-white);
  color: var(--gm-dark-green);
}

.gm-chat-input:focus {
  border-color: var(--gm-accent);
  box-shadow: 0 0 0 3px rgba(27,127,58,0.18);
}

/* ---------- ICON BUTTONS ---------- */
.gm-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gm-sage);
  color: var(--gm-dark-green);
  transition: 0.2s;
}

.gm-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36,79,53,0.25);
}

/* ---------- SEND BUTTON ---------- */
.gm-send-btn {
  width: 60px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gm-accent), #244f35);
  color: #fff;
  font-size: 1.2rem;
  border: none;
  transition: 0.2s;
}

.gm-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27,127,58,0.55);
}

.gm-send-btn:active {
  transform: scale(0.92);
}

/* ---------- ANIMATIONS ---------- */
@keyframes gmFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gm-title-premium {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(120deg, #1b7f3a, #6ddf9c, #ffffff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(27,127,58,0.35);
  animation: gmTitleGlow 3s ease-in-out infinite alternate;
}

@keyframes gmTitleGlow {
  0% { text-shadow: 0 0 18px rgba(27,127,58,0.40); }
  100% { text-shadow: 0 0 38px rgba(27,127,58,0.75); }
}
