/*
 * GoPrints Front-End Style Sheet
 * Clean version – permanent light glass header
 */

/* ============================== */
/* Root variables & base          */
/* ============================== */
:root {
  --primary: #58b368;        /* grassy green primary colour */
  --secondary: #e94e77;      /* mushroom red secondary colour */
  --success: #6cc24a;
  --danger: #e74c3c;
  --warning: #f39c12;
  --info: #3498db;
  --light: #fdfdfb;
  --dark: #2e4057;
  --body-bg: #f4fbf1;
  --card-bg: #ffffff;
  --radius: 0.75rem;

  /* Headline accents tuned for the warm hero */
  --primary-hero:   #2f9e55; /* deeper mint */
  --secondary-hero: #d94c73; /* deeper rose */
  --hero-dark:      #243248; /* soft navy */
}

* { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  color: var(--dark);
  background: var(--body-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > footer {
  margin-top: auto;
  width: 100%;
}

body.print-flow-page {
  position: relative;
  background: var(--body-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.print-flow-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image:
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg');

  background-position:
    left  -70px  top   120px,
    right -80px  top    30px,
    left  -90px  bottom 60px,
    right -50px  bottom 140px,
    right -120px center;

  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;

  background-size:
    220px,
    150px,
    180px,
    240px,
    110px;

  opacity: 1;
}

@media (max-width: 768px) {
  body.print-flow-page::before {
    background-position:
      left  -60px  top   100px,
      right -60px  top    10px,
      left  -70px  bottom 40px,
      right -40px  bottom 100px,
      right -90px  center;

    background-size:
      160px,
      120px,
      140px,
      180px,
      90px;
  }
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; margin-bottom: .5rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: #0056b3; }

/* ============================== */
/* Header / Navbar (shared)       */
/* ============================== */

/* Layout: float the nav over the hero */
.homepage .navbar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2rem));
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  z-index: 2;

  /* transparent container (no backdrop on element) */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  /* avoid descendant paint affecting our glass */
  isolation: isolate;
}

/* Frosted glass drawn behind the navbar contents */
.homepage .navbar::before,
.navbar.navbar-glass::before {             /* optional helper class if needed on other pages */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
  pointer-events: none;
  z-index: -1;
}

/* Keep the same light style even when scrolled */
.homepage.scrolled .navbar::before { 
  background: rgba(255,255,255,0.78);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
}

/* Brand + nav links (dark over light glass) */
.navbar .navbar-brand,
.navbar .nav-link {
  color: #1f2937 !important; /* slate-900 */
  font-weight: 700;
}
.navbar .nav-link { font-weight: 500; }
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: #111827 !important; }

/* Icons / carets */
.navbar .dropdown-toggle::after,
.navbar i,
.navbar svg {
  color: #1f2937 !important;
  fill: #1f2937 !important;
}

/* Buttons inside header */
.navbar .btn-buy { padding: .25rem .6rem; }
.navbar .btn-outline-light-custom {
  border-color: #1f2937 !important;
  color: #1f2937 !important;
  background: transparent !important;
}
.navbar .btn-outline-light-custom:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

/* Token pill + profile chip */
.token-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; border-radius: 999px;
  background: #ffe58f; color: #111;
  font-weight: 600; font-size: 0.9rem;
}
.token-pill .muted { color: #5c5c5c; font-weight: 500; font-size: .8rem; }

.profile-chip {
  display: flex; align-items: center; gap: .6rem;
  padding: .25rem .6rem; border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: #1f2937;
}
.profile-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Right-aligned dropdown (Bootstrap helper kept) */
.dropdown-menu-end { right: 0; left: auto; }
/* Do NOT change Bootstrap's z-index (fixes glass “growing” bug) */

/* Hide header on admin dashboard pages */
body.admin-page .navbar { display: none; }

/* ============================== */
/* Home / Landing                  */
/* ============================== */

.homepage {
  color: var(--dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Hero */
.homepage .home-hero {
  position: relative;
  padding-top: 9.5rem;    /* room for floating nav */
  padding-bottom: 6rem;
  min-height: 80vh;

  /* use art only, no dark scrim */
  background-image: url('../images/ChatGPT Image Oct 8, 2025, 02_13_08 AM.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  color: var(--dark);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.homepage .home-hero > .container {
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 992px) {
  .homepage .home-hero > .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

.homepage .home-hero h1 {
  font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem;
  color: var(--hero-dark);
  text-shadow: none;
  letter-spacing: -0.01em;
}
.homepage .home-hero p {
  font-size: 1.15rem; max-width: 520px; margin-bottom: 2rem;
  color: #374151;  /* slate-700 */
  text-shadow: none;
}

/* Accent words in headline */
.homepage .home-hero .highlight-blue  { color: var(--primary-hero); }
.homepage .home-hero .highlight-yellow{ color: var(--secondary-hero); }

/* CTA outline variant that remains readable on light art */
.homepage .btn-outline-light-custom {
  border: 2px solid #1f2937; color: #1f2937; border-radius: 2rem;
  padding: 0.5rem 1.25rem; transition: background .3s, color .3s;
}
.homepage .btn-outline-light-custom:hover { background: #1f2937; color: #fff; }

/* Glass login card */
.glass-card {
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Information section */
.info-section {
  position: relative; isolation: isolate;
  background:
    radial-gradient(1200px 600px at -10% 120%, rgba(88,179,104,0.15), transparent 60%),
    radial-gradient(1000px 500px at 110% -20%, rgba(233,78,119,0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf6 100%);
}
.info-section .section-badge {
  display: inline-block; padding: .35rem .9rem; border-radius: 999px; font-weight: 600; letter-spacing: .02em;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.info-section .section-title {
  margin: .8rem 0 .4rem; font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  font-weight: 800; color: var(--dark);
}
.info-section .section-subtitle { color: #5b6b7a; margin-bottom: 2rem; max-width: 780px; }

.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem; margin-bottom: 1.75rem;
}
.info-card {
  background: rgba(255,255,255,.86); backdrop-filter: blur(6px);
  border: 1px solid rgba(46,64,87,.06); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.info-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 1.1rem; margin-bottom: .6rem;
  box-shadow: 0 8px 18px rgba(88,179,104,.25);
}
.info-card h5 { margin: 0 0 .25rem; font-weight: 700; }
.info-card p  { margin: 0; color: #445363; font-size: .95rem; }

.stat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: .75rem; border-top: 1px dashed rgba(46,64,87,.15); padding-top: 1rem;
}
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
.stat {
  background: #fff; border: 1px solid rgba(46,64,87,.06);
  border-radius: calc(var(--radius) - .2rem);
  padding: .85rem 1rem; display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: .4rem;
}
.stat .num {
  font-size: 1.8rem; line-height: 1; font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .suffix { margin-left: -2px; font-weight: 800; }
.stat .label { color: #5b6b7a; font-size: .9rem; grid-column: 1 / -1; }

/* ============================== */
/* Generic hero (non-homepage)    */
/* ============================== */

.hero {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 4rem 1rem;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero_bg.png');
  background-size: cover; background-position: center; color: #fff; min-height: 70vh;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; }

/* ============================== */
/* Buttons                        */
/* ============================== */

.btn {
  display: inline-block; font-weight: 500; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; user-select: none;
  padding: 0.5rem 1rem; font-size: 1rem; border-radius: var(--radius);
  transition: background-color .3s, color .3s, box-shadow .3s;
  border: 1px solid transparent;
}
.btn:focus { outline: none; box-shadow: 0 0 0 0.1rem rgba(0,0,0,0.1); }

.btn-primary { background-color: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: #4fa35f; border-color: #4fa35f; color: #fff; }

.btn-primary-custom {
  background: #ffffff; color: var(--primary);
  border: none; border-radius: var(--radius);
  padding: 0.75rem 1.5rem; font-size: 1rem;
  transition: all 0.3s ease;
}
.btn-primary-custom:hover {
  background: #e6e6e6; color: var(--primary);
  transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.btn-outline-secondary { color: var(--secondary); border-color: var(--secondary); background: transparent; }
.btn-outline-secondary:hover, .btn-outline-secondary:focus { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* ============================== */
/* Forms, Dropzone, Preview       */
/* ============================== */

.form-control, .form-select {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #ced4da; border-radius: var(--radius);
  font-size: 1rem; color: var(--dark); background: #ffffff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 0.1rem rgba(88,179,104,0.25);
}
.form-label { display: block; margin-bottom: 0.25rem; font-weight: 500; color: var(--dark); }

.dropzone {
  border: 2px dashed var(--primary); border-radius: var(--radius);
  padding: 3rem; text-align: center; background: #fdfdff; color: var(--secondary);
  cursor: pointer; transition: background 0.3s;
}
.dropzone:hover { background: #f3f5ff; }
.dropzone input { display: none; }

.preview-container {
  max-width: 100%; overflow: hidden; border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05); margin-top: 1rem;
}
.preview-container iframe, .preview-container img { width: 100%; height: 70vh; border: none; }

/* ============================== */
/* Footer                         */
/* ============================== */

footer {
  margin-top: 4rem; padding: 2rem 0; text-align: center;
  background: #f1f3f5; color: var(--secondary); border-top: 1px solid #eaeaea;
}

/* ============================== */
/* Features grid                  */
/* ============================== */

.feature-section { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.feature-card {
  background: #ffffff; border: 1px solid #e6f2e5; border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03); transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; flex: 1 1 280px;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.06); }
.feature-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #ffffff;
}
.feature-icon.upload { background: var(--primary); }
.feature-icon.print  { background: var(--warning); }
.feature-icon.pay    { background: var(--secondary); }
.feature-card h5 { margin-bottom: 0.25rem; font-weight: 600; }
.feature-card p  { margin-bottom: 0; font-size: 0.95rem; color: var(--dark); }

/* ============================== */
/* Token checkout flow            */
/* ============================== */

.checkout-steps { gap: 1rem; }
.checkout-steps .step-card {
  background: var(--card-bg); border-radius: var(--radius); padding: 0.75rem 1.5rem;
  min-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; color: var(--dark);
}
.checkout-steps .step-card .step-number { font-weight: 700; font-size: 1.25rem; }
.checkout-steps .step-card .step-label  { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.checkout-steps .step-card.active { border: 2px solid var(--primary); box-shadow: 0 10px 24px rgba(88,179,104,0.2); }
.checkout-steps .step-card.completed {
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
  box-shadow: 0 12px 28px rgba(88,179,104,0.25);
}
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0,16px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
.animate-fade-in  { opacity: 0; animation: fadeInUp 1s ease-out forwards; }
.animate-slide-in { opacity: 0; animation: slideInRight 1s ease-out forwards; }

/* ============================== */
/* Reports polish                 */
/* ============================== */

.report-card .card-header { display: flex; align-items: baseline; justify-content: space-between; }
.report-card .card-header small { color:#6b6b6b; font-weight: 500; }
.report-form .form-row { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; align-items: end; }
@media (min-width: 768px) { .report-form .form-row { grid-template-columns: 280px auto auto; } }
.report-form .custom-range { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 540px) { .report-form .custom-range { grid-template-columns: 1fr; } }
.btn-chip { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .55rem .9rem; font-weight: 600; border: 1px solid transparent; line-height: 1; }
.btn-chip i { font-size: .95rem; }
.btn-chip.csv { color:#e94e77; background:#fff; border-color:#f5b7c8; }
.btn-chip.csv:hover { background:#ffeaf1; }
.btn-chip.pdf { color:#fff; background:#58b368; border-color:#58b368; }
.btn-chip.pdf:hover { filter: brightness(0.95); }
.hidden { display:none !important; }
.report-card .report-title { font-weight: 700; color: var(--dark); }
.report-form .custom-range.hidden { display: none !important; }

/* ============================== */
/* Admin dashboard bits           */
/* ============================== */

.admin-page { background: #f8f9fa; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: var(--primary); min-height: 100vh; color: #fff;
  position: fixed; top: 0; left: 0; padding-top: 3.5rem; overflow-y: auto;
}
.admin-sidebar .brand {
  position: absolute; top: 0; left: 0; width: 100%; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); font-weight: 700; font-size: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.admin-sidebar .nav-item { list-style: none; }
.admin-sidebar .nav-link {
  display: flex; align-items: center; padding: 0.75rem 1.5rem;
  color: #fff; font-size: 0.95rem; text-decoration: none; transition: background 0.2s;
}
.admin-sidebar .nav-link i { margin-right: 0.5rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: rgba(255,255,255,0.15); }
.admin-content { margin-left: 220px; padding: 2rem; }

.kpi-row { max-width: 1200px; margin-left: auto; margin-right: auto; }
.kpi-row .card { border: none !important; border-radius: var(--radius) !important; min-height: 110px !important; color: #fff !important; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.kpi-row .card .card-body { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.kpi-row .card .display-6 { flex: 0 0 auto; line-height: 1; }
.card-green  { background-color: #4caf50 !important; } /* Users    */
.card-pink   { background-color: #e94e77 !important; } /* Files    */
.card-orange { background-color: #f39c12 !important; } /* Pages    */
.card-teal   { background-color: #1abc9c !important; } /* Prints   */
.card-purple { background-color: #9b59b6 !important; } /* Tokens   */
.admin-table thead { background: var(--primary); color: #fff; }
.admin-table tbody tr:nth-child(even) { background: #f8f9fa; }

/* navbar can paint outside its box */
.homepage .navbar { overflow: visible; }

/* put the menu out of flow and align it to the right of the trigger */
.navbar .dropdown-menu {
  position: absolute;          /* override Bootstrap's navbar=static */
  right: 0;
  left: auto;
  z-index: 1000;               /* keep above hero (Bootstrap default) */
}

/* when Popper adds the attribute, anchor it under the toggle */
.navbar .dropdown-menu[data-bs-popper] {
  top: 100%;
  margin-top: .5rem;
}

:root {
  --primary: #89A894;        /* mellow sage */
  --secondary: #D77A61;      /* terracotta */
  --accent: #E8C39E;         /* golden beige */
  --dark: #2E2E2E;
  --light: #FAF5E9;

  --primary-hero: #7C9A85;   /* deeper sage for contrast */
  --secondary-hero: #CC6C56; /* muted clay tone */
  --hero-dark: #2F2F2F;      /* warm dark for text */
}

.highlight-blue { color: var(--primary-hero); }
.highlight-yellow { color: var(--secondary-hero); }

/* ===== Navbar alignment fixes ===== */

/* Make all top-level nav links flex so content is vertically centered */
.navbar .navbar-nav > .nav-item > .nav-link,
.navbar .navbar-nav > .nav-item > .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: 0;          /* kill Bootstrap vertical padding */
  padding-bottom: 0;
  line-height: 1;          /* avoid different baselines */
}

/* Token pill: same height as the profile chip & Buy button */
.token-pill {
  height: 36px;
  padding: 0 .6rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

/* Buy button: match height, center icon + text */
.navbar .btn-buy {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: 0 .8rem;
}

/* Profile chip: fixed height + centered contents */
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 36px;
  padding: 0 .6rem;
  border-radius: 999px;
  line-height: 1;
}
.profile-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Prevent long names from stretching things */
.username-clip {
  max-width: 140px;                 /* adjust to taste */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;                    /* align with avatar */
}

/* ========= Subtle paw motif on the info section edges ========= */
/* You already have .info-section { position: relative; isolation: isolate; } — perfect */
.info-section {
  position: relative;
  isolation: isolate; /* ensures our pseudo layer stays behind the content */
}

/* keep section content above the decorative layer */
.info-section > * {
  position: relative;
  z-index: 1;
}

/* paws layer */
.info-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* 5 paw placements, different sizes & corners */
  background-image:
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg'),
    url('../images/paw-grey.svg');

  /* positions hug the edges; negative X pushes a bit off-screen */
  background-position:
    left  -70px  top   120px,
    right -80px  top    30px,
    left  -90px  bottom 60px,
    right -50px  bottom 140px,
    right -120px center;

  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;

  /* varied sizes for a natural, minimal feel */
  background-size:
    220px,
    150px,
    180px,
    240px,
    110px;

  /* global opacity safety in case the SVG is edited later */
  opacity: 1; /* individual paw opacity handled inside the SVG */
}

/* tighten for small screens so paws don’t dominate */
@media (max-width: 768px) {
  .info-section::before {
    background-position:
      left  -60px  top   100px,
      right -60px  top    10px,
      left  -70px  bottom 40px,
      right -40px  bottom 100px,
      right -90px  center;

    background-size:
      160px,
      120px,
      140px,
      180px,
      90px;
  }
}
/* ===== Print flow: progress steps ===== */
.progress-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin: 2rem 0 1.25rem;
  position:relative;
}

/* faint connector line across the row */
.progress-container::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top: 16px;                 /* aligns with indicator center (32px/2) */
  height:2px;
  background: rgba(0,0,0,0.06);
  z-index:0;
}

.progress-step{
  display:flex;
  align-items:center;
  gap:.5rem;
  background:transparent;
  position:relative;
  z-index:1;                 /* sit above the connector line */
  color:#6b7280;             /* slate-500 */
}

.progress-step .step-indicator{
  width:32px; height:32px;
  border-radius:999px;
  display:grid; place-items:center;
  font-weight:700;
  font-size:.95rem;
  background:#e5e7eb;        /* slate-200 */
  color:#111827;             /* slate-900 */
  box-shadow:0 1px 2px rgba(0,0,0,.05) inset;
}

.progress-step span{
  font-weight:500;
  white-space:nowrap;
}

.progress-step.active .step-indicator{
  background: var(--primary);
  color:#fff;
}
.progress-step.active span{
  color:#111827;
}

/* stack nicely on small screens */
@media (max-width: 640px){
  .progress-container{
    flex-wrap:wrap;
    row-gap: .75rem;
  }
  .progress-container::before{ display:none; }
}

/* ===== Card polish used on settings page ===== */
.card.card-custom{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.card.card-custom .card-header{
  background: #f8fafc;       /* very light */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
}

/* ============================== */
/* Print flow: progress steps     */
/* (used by settings.php)         */
/* ============================== */

.progress-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin: 2rem 0 1.25rem;
  position:relative;
}

/* connector line across the row */
.progress-container::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top: 18px;                 /* center of the 36px indicator */
  height:2px;
  background: rgba(17,24,39,0.08);  /* soft line */
  z-index:0;
}

.progress-step{
  display:flex;
  align-items:center;
  gap:.6rem;
  position:relative;
  z-index:1;                 /* sit above the connector line */
  color:#6b7280;             /* slate-500 for inactive labels */
  white-space:nowrap;
}

.progress-step .step-indicator{
  width:36px; height:36px;
  border-radius:999px;
  display:grid; place-items:center;
  font-weight:700;
  font-size:.95rem;
  background:#e5e7eb;        /* slate-200 */
  color:#111827;             /* slate-900 */
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}

/* active (current and previous) steps */
.progress-step.active .step-indicator,
.progress-step.completed .step-indicator{
  background: var(--primary);   /* matches your theme */
  color:#fff;
  box-shadow:none;
}
.progress-step.active span,
.progress-step.completed span{
  color:#111827;
}

/* optional: “completed” step gets a checkmark look */
.progress-step.completed .step-indicator{
  position: relative;
  font-size:0; /* hide the number */
}
.progress-step.completed .step-indicator::after{
  content:"✓";
  font-size:1rem;
  line-height:1;
}

/* stack nicely on small screens */
@media (max-width: 640px){
  .progress-container{
    flex-wrap:wrap;
    row-gap: .75rem;
  }
  .progress-container::before{ display:none; }
}

/* ============================== */
/* Card polish (used on settings) */
/* ============================== */
.card.card-custom{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.card.card-custom .card-header{
  background: #f8fafc;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
}

/* ===== Print flow: progress steps (clean) ===== */
.progress-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin: 2rem 0 1.25rem;
  position:relative;
}

/* connector line centered to the indicator (36px / 2) */
.progress-container::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top: 18px;
  height:2px;
  background: rgba(17,24,39,0.08); /* subtle */
  z-index:0;
}

.progress-step{
  display:flex;
  align-items:center;
  gap:.6rem;
  position:relative;
  z-index:1;                 /* sits above connector line */
  color:#6b7280;             /* slate-500 for inactive labels */
  white-space:nowrap;
}

.progress-step .step-indicator{
  width:36px; height:36px;
  border-radius:999px;
  display:grid; place-items:center;
  font-weight:700;
  font-size:.95rem;
  background:#e5e7eb;        /* slate-200 */
  color:#111827;             /* slate-900 */
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}

/* Current + previous steps */
.progress-step.active .step-indicator,
.progress-step.completed .step-indicator{
  background: var(--primary);  /* your theme green */
  color:#fff;
  box-shadow:none;
}
.progress-step.active span,
.progress-step.completed span{
  color:#111827;               /* stronger label for reached steps */
}

/* Optional checkmark for completed steps */
.progress-step.completed .step-indicator{
  position: relative;
  font-size:0;                 /* hide the number */
}
.progress-step.completed .step-indicator::after{
  content:"✓";
  font-size:1rem;
  line-height:1;
}

/* Small screens: wrap and hide the connector */
@media (max-width: 640px){
  .progress-container{
    flex-wrap:wrap;
    row-gap: .75rem;
  }
  .progress-container::before{ display:none; }
}

/* ============================== */
/* Print-flow navbar: pill + gradient */
/* ============================== */

/* Make the navbar look/behave like the homepage one (centered pill) */
body.print-flow-page .navbar {
  position: sticky;               /* stays visible while scrolling */
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2rem));
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  z-index: 100;
  background: transparent !important;  /* draw the pill with ::before */
  border: none !important;
  box-shadow: none !important;
  isolation: isolate;              /* keep pseudo-layer behind content */
}

/* The pill itself, but with your sage → terracotta gradient */
body.print-flow-page .navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  /* subtle glassy feel */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
  pointer-events: none;
  z-index: -1;
}

/* Keep the pill look identical even when page scrolls */
body.print-flow-page.scrolled .navbar::before {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(17,24,39,0.06);
}

/* Light-on-gradient content */
body.print-flow-page .navbar .navbar-brand,
body.print-flow-page .navbar .nav-link {
  color: #fff !important;
  font-weight: 600;
}
body.print-flow-page .navbar .nav-link:hover,
body.print-flow-page .navbar .nav-link:focus { color: #fdfdfd !important; }

/* Icons / carets white */
body.print-flow-page .navbar .dropdown-toggle::after,
body.print-flow-page .navbar i,
body.print-flow-page .navbar svg {
  color: #fff !important;
  fill: #fff !important;
}

/* Buttons inside the header */
body.print-flow-page .navbar .btn-outline-light-custom {
  border-color: #fff !important;
  color: #fff !important;
  background: transparent !important;
}
body.print-flow-page .navbar .btn-outline-light-custom:hover {
  background: #ffffff !important;
  color: #1f2937 !important;
}

/* Token pill/profile chip readable over gradient */
body.print-flow-page .token-pill {
  background: rgba(255,255,255,0.22);
  color: #fff;
}
body.print-flow-page .token-pill .muted { color: rgba(255,255,255,.85); }

body.print-flow-page .profile-chip {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
body.print-flow-page .profile-chip img { box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }

/* Keep dropdown aligned & above the pill */
body.print-flow-page .navbar .dropdown-menu {
  position: absolute;
  right: 0;
  left: auto;
  z-index: 1000;
}

/* === Print-flow navbar: fix centering for sticky + tidy spacing === */
body.print-flow-page .navbar{
  position: sticky;
  top: 16px;
  /* center the whole pill with auto margins (works for sticky) */
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  z-index: 100;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  isolation: isolate;
}

/* draw the pill with the sage→terracotta gradient */
body.print-flow-page .navbar::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:2rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(17,24,39,.06);
  pointer-events:none;
  z-index:-1;
}

/* keep same look while scrolling */
body.print-flow-page.scrolled .navbar::before{
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

/* light content on gradient */
body.print-flow-page .navbar .navbar-brand,
body.print-flow-page .navbar .nav-link{
  color:#fff !important;
  font-weight:600;
}
body.print-flow-page .navbar .nav-link:hover,
body.print-flow-page .navbar .nav-link:focus{ color:#fdfdfd !important; }

body.print-flow-page .navbar .dropdown-toggle::after,
body.print-flow-page .navbar i,
body.print-flow-page .navbar svg{
  color:#fff !important; fill:#fff !important;
}

/* buttons/chips readable on gradient */
body.print-flow-page .navbar .btn-outline-light-custom{
  border-color:#fff !important; color:#fff !important; background:transparent !important;
}
body.print-flow-page .navbar .btn-outline-light-custom:hover{
  background:#fff !important; color:#1f2937 !important;
}
body.print-flow-page .token-pill{ background:rgba(255,255,255,.22); color:#fff; }
body.print-flow-page .token-pill .muted{ color:rgba(255,255,255,.85); }
body.print-flow-page .profile-chip{ background:rgba(255,255,255,.18); color:#fff; }
body.print-flow-page .profile-chip img{ box-shadow:0 0 0 2px rgba(255,255,255,.35); }

/* dropdown stays aligned and above the pill */
body.print-flow-page .navbar .dropdown-menu{
  position:absolute; right:0; left:auto; z-index:1000;
}

/* PRINT-FLOW NAVBAR — single source of truth */
body.print-flow-page .navbar{
  position: sticky;
  top: 16px;

  /* center the whole pill */
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;

  /* neutralize earlier centering */
  left: auto !important;
  right: auto !important;
  transform: none !important;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 2rem;
  z-index: 100;
  isolation: isolate;
}

/* gradient pill */
body.print-flow-page .navbar::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:2rem;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(17,24,39,.06);
  pointer-events:none;
  z-index:-1;
}

/* make the inner Bootstrap container span the pill so content is visually centered too */
body.print-flow-page .navbar > .container,
body.print-flow-page .navbar > .container-fluid{
  max-width: none;     /* don’t cap at 1140px, match the pill */
  padding-left: 12px;  /* keep a little breathing room */
  padding-right: 12px;
}

/* ===== Auth page: readable text ===== */
body.auth-page {
  background: var(--body-bg); /* your light sage background */
  color: var(--dark);         /* default dark text */
}

body.auth-page .auth-tagline h2,
body.auth-page .auth-tagline p {
  color: #1f2937 !important; /* deep slate text instead of white */
}

body.auth-page .auth-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

body.auth-page .card-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
  color: #111827;
}

body.auth-page label,
body.auth-page .form-label,
body.auth-page .small,
body.auth-page a {
  color: #111827 !important;
}

body.auth-page a:hover {
  color: var(--primary);
}

/* Example: one large cat, faint, bottom-right */
body.print-flow-page::before {
  /* …your existing paws… */
  background-image:
    url('../images/cat-grey.svg'),
    /* keep your existing paw svgs after this line */
    url('../images/paw-grey.svg'), url('../images/paw-grey.svg');

  background-position:
    right -40px bottom 80px,  /* cat */
    left -70px 120px, right -80px 30px; /* paws… */
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size:
    260px, 220px, 150px; /* cat size first */
  opacity: 1; /* SVG itself is already ~35% */
}

/* Cute tabby at bottom-right on print-flow pages */
body.print-flow-page::after{
  content:"";
  position:fixed;
  right:-10px;              /* slight crop on the edge for a tucked look */
  bottom:-6px;
  width:720px;              /* base size; adjust to taste */
  height: 720px;
  background: url('../images/cat-grey.svg') no-repeat right bottom / contain;
  pointer-events:none;
  z-index:-1;               /* behind content, above page bg */
  opacity:0.98;
}
@media (max-width: 992px){
  body.print-flow-page::after{ width:260px; height:260px; }
}
@media (max-width: 600px){
  body.print-flow-page::after{ width:200px; height:200px; right:-6px; bottom:-4px; }
}
