:root {
/* Layout backgrounds (premium: warm white) */
    --color-bg-body: #f9f9f9;          /* warm background */
    --color-bg-section: #f9fafb;
    --color-bg-card: #ffffff;

    /* Brand colors (palette) */
    --color-primary: #588b8b;          /* Teal */
    --color-primary-hover: #4b7b7b;    /* Darker teal */
    --color-secondary: #ffd5c2;        /* Peach */
    --color-accent: #f28f3b;           /* Orange */
    --color-danger: #c8553d;           /* Terracotta */

    /* Text */
    --color-text-main: #1f2933;
    --color-text-muted: #6b7280;

    /* Borders and shadows (premium) */
    --color-border-subtle: #f1e7e2;    /* warmer border */
    --shadow-soft: 0 10px 26px rgba(31, 41, 51, 0.10);

    /* Radii and fonts */
    --radius-large: 24px;
    --radius-medium: 14px;
    --radius-pill: 999px;

    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}


/* Basic reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Avoid horizontal scrolling */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.5;
}

/* Generic buttons */
.btn {
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition:
    background 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.btn-ghost:hover {
    border-color: var(--color-primary);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Generic card (wedding.net style) */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-large);
    padding: 24px;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-soft);
}

/* Headings and links */
h1,
h2,
h3 {
  color: var(--color-text-main);
  font-weight: 700;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------- */
/* GLOBAL HEADER – shared by all pages           */
/* --------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--color-bg-body);
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-main);
}

.logo-mark {
  width: 24px;
  height: 24px;
  display: inline-block;
  object-fit: contain;
  font-size: 20px;
}

.logo-text {
  letter-spacing: 0.04em;
}

.nav {
  margin-left: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--color-text-main);
}

/* Make header-inner relative so nav can be positioned under it on mobile */
.header-inner {
  position: relative;
}

/* Make logout button inside mobile nav match <a> styles */
.nav .logout-link {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  color: var(--color-text-main);
}

/* Desktop header layout */
@media (min-width: 801px) {
  .nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  /* hide extra auth links on desktop */
  .nav-auth {
    display: none;
  }

  .nav a {
    position: relative;
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
  }

  .nav a:hover::after {
    width: 100%;
  }
}

/* Mobile header layout: right-side drawer */
@media (max-width: 800px) {
  .nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 22px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--color-text-main);
    z-index: 60;
  }

  .site-header.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 40;
  }

  .site-header.menu-open .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg-card);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.18);
    border-left: 1px solid var(--color-border-subtle);
    padding: 24px 22px;
    gap: 6px;
    z-index: 50;
  }

  .site-header.menu-open .nav a {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-main);
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(241, 245, 249, 0.9);
  }

  /* Show register/login items specifically on mobile */
  .nav-auth {
    display: block;
  }
}

/* --------------------------------------------- */
/* GLOBAL FOOTER – shared by all pages           */
/* --------------------------------------------- */

.site-footer {
    border-top: 1px solid color-mix(in srgb, var(--color-primary) 22%, #ffffff);
    padding: 14px 16px 16px;
    background-color: var(--color-primary);
    color: #ffffff;
    margin-top: 48px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.site-footer a {
    color: #ffffff !important;
    opacity: 0.9;
}

.site-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-inner a {
  margin-left: 0;
  text-decoration: none;
  font-size: 12px;
}

.footer-inner a:first-of-type {
  margin-left: auto;
}

.footer-inner a:hover {
  color: var(--color-primary);
}

@media (max-width: 800px) {
  .footer-inner {
    flex-wrap: wrap;
  }
}

/* --------------------------------------------- */
/* PREMIUM CTA (used for billing / activation)   */
/* --------------------------------------------- */

.btn-cta {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
}

.btn-cta:hover {
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 28%, transparent);
}

/* --------------------------------------------- */
/* CHAT PAGE – hide footer for app-like feeling  */
/* --------------------------------------------- */

.page-chat .site-footer {
    display: none;
}

/* --------------------------------------------- */
/* Google login form                             */
/* --------------------------------------------- */

.oauth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 16px;
}

.btn-oauth {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
  color: var(--color-text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.08s ease, border-color 0.15s ease;
}

.btn-oauth:hover {
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.btn-oauth:active {
  transform: translateY(0);
}

.oauth-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: var(--color-bg-section);
  border: 1px solid var(--color-border-subtle);
}

.oauth-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

.oauth-sep::before,
.oauth-sep::after {
  content: "";
  height: 1px;
  background: var(--color-border-subtle);
  flex: 1;
}

.oauth-sep span {
  padding: 0 10px;
}

.upper-case-text {
  text-transform: capitalize;
}

