/* ── Design tokens ── */
:root {
  --cc-primary: #4f46e5;
  --cc-primary-dark: #4338ca;
  --cc-primary-light: #eef2ff;
  --cc-primary-rgb: 79, 70, 229;

  --cc-bg: #f8fafc;
  --cc-surface: #ffffff;
  --cc-border: #e2e8f0;
  --cc-border-focus: #a5b4fc;

  --cc-text: #1e293b;
  --cc-heading: #0f172a;
  --cc-muted: #64748b;
  --cc-muted-light: #94a3b8;

  --cc-success: #059669;
  --cc-success-bg: #ecfdf5;
  --cc-warning: #b45309;
  --cc-warning-bg: #fffbeb;
  --cc-danger: #dc2626;
  --cc-danger-bg: #fef2f2;
  --cc-info: #0284c7;
  --cc-info-bg: #f0f9ff;

  --cc-radius: 0.5rem;
  --cc-radius-sm: 0.375rem;
  --cc-radius-lg: 0.75rem;
  --cc-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --cc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

/* ── Base ── */
body {
  background-color: var(--cc-bg);
  color: var(--cc-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--cc-heading);
  font-weight: 700;
}

/* ── Navbar ── */
.cc-navbar {
  background: var(--cc-surface);
  border-bottom: 1px solid var(--cc-border);
  padding: 0 0;
  position: sticky;
  top: 0;
  /* position:sticky + z-index makes .cc-navbar its own stacking context, so
     everything inside it — including the phone nav-menu dropdown's own
     z-index:200 — is capped by this value when compared against sticky
     elements on individual pages (e.g. the template editor's toolbar/
     properties panel). Must stay above any such per-page z-index or the
     navbar's own dropdown menu renders underneath page content. */
  z-index: 1000;
}

.cc-navbar-inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 0.5rem;
}

.cc-brand {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--cc-heading) !important;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.cc-brand:hover {
  color: var(--cc-primary) !important;
}

.cc-brand-icon-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.cc-brand-wordmark {
  font-family: 'Orbitron', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.cc-brand-forma {
  color: rgb(78, 67, 192);
}

.cc-brand-guru {
  color: rgb(78, 67, 192);
}

.cc-nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
}

.cc-nav-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--cc-radius-sm);
  color: var(--cc-muted) !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.cc-nav-link:hover {
  color: var(--cc-text) !important;
  background: var(--cc-bg);
}

.cc-nav-link.active {
  color: var(--cc-primary) !important;
  background: var(--cc-primary-light);
}

.cc-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.cc-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--cc-radius-sm);
  color: var(--cc-text) !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.cc-user-btn:hover {
  background: var(--cc-bg);
}

.cc-avatar {
  width: 28px;
  height: 28px;
  background: var(--cc-primary-light);
  color: var(--cc-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cc-nav-toggler {
  display: none;
  padding: 0.375rem;
  border: none;
  background: transparent;
  color: var(--cc-muted);
  font-size: 1.25rem;
  border-radius: var(--cc-radius-sm);
  cursor: pointer;
  margin-left: auto;
}

.cc-nav-toggler:hover {
  background: var(--cc-bg);
  color: var(--cc-text);
}

/* Wrapper wraps cc-nav-links + cc-nav-right so both open/close together and
   (on phone) can be positioned as a single floating panel. display:contents
   keeps it invisible to layout above phone width, so both children remain
   direct flex items of .cc-navbar-inner exactly as before. */
.cc-nav-menu {
  display: contents;
}

@media (max-width: 768px) {
  .cc-nav-links,
  .cc-nav-right {
    display: none;
  }
  .cc-nav-menu.open .cc-nav-links,
  .cc-nav-menu.open .cc-nav-right {
    display: flex;
  }
  .cc-nav-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cc-navbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0;
  }
  .cc-nav-menu.open .cc-nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--cc-border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    gap: 0.25rem;
  }
  .cc-nav-menu.open .cc-nav-right {
    width: 100%;
    justify-content: flex-end;
    padding-bottom: 0.5rem;
    border-top: 1px solid var(--cc-border);
  }
  .cc-brand {
    margin-right: 0;
  }
}

/* ── Phone-only: menu becomes a floating overlay panel ──
   On phone the "push" layout above (menu expands the navbar and shoves page
   content down) is replaced with a compact dropdown-style panel anchored to
   the right, right under the toggler button — it doesn't span the full
   screen width and floats over the page instead of displacing it. */
@media (max-width: 576px) {
  .cc-navbar-inner {
    position: relative;
    flex-wrap: nowrap;
    height: 60px;
    padding: 0 0.75rem;
  }
  .cc-nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: min(80vw, 280px);
    max-width: 280px;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--cc-surface);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-lg);
    box-shadow: var(--cc-shadow-md);
    z-index: 200;
    gap: 0.25rem;
  }
  .cc-nav-menu.open .cc-nav-links {
    order: 1;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .cc-nav-menu.open .cc-nav-right {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0;
    border-top: none;
  }
  .cc-nav-menu.open .cc-nav-links,
  .cc-nav-menu.open .cc-nav-right {
    border-top: 1px solid var(--cc-border);
    padding-top: 0.5rem;
  }
  .cc-nav-menu.open .cc-nav-links:first-child {
    border-top: none;
    padding-top: 0;
  }
  .cc-nav-menu.open .cc-nav-right .dropdown {
    width: 100%;
  }
  .cc-nav-menu.open .cc-nav-right .cc-user-btn {
    width: 100%;
    justify-content: flex-start;
  }

  /* Flatten the account dropdown (Profile / Take tour / Logout) into the
     same menu as Dashboard/Clients/Sessions/Templates instead of nesting it
     behind a second, separate dropdown toggle. The trigger button is hidden
     and the dropdown-menu is forced open and laid out inline, with a
     border-top rule providing a clear separation from the nav links. */
  .cc-nav-menu.open .cc-user-btn {
    display: none;
  }
  .cc-nav-menu.open .dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  /* Anonymous users: no hamburger menu on phone — Login/Get Started show
     inline in the top bar, same as desktop. */
  .cc-navbar-anon .cc-nav-toggler {
    display: none;
  }
  .cc-navbar-anon .cc-nav-right {
    display: flex;
  }
}

/* ── Page layout ── */
.cc-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.cc-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.cc-page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cc-heading);
  margin: 0;
}

.cc-page-header .cc-page-subtitle {
  font-size: 0.875rem;
  color: var(--cc-muted);
  margin: 0.25rem 0 0;
}

.cc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--cc-muted);
  margin-bottom: 1.5rem;
}

.cc-breadcrumb a {
  color: var(--cc-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.cc-breadcrumb a:hover {
  color: var(--cc-primary);
}

.cc-breadcrumb .sep {
  color: var(--cc-muted-light);
}

/* ── Cards ── */
.card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--cc-border);
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cc-heading);
}

.card-body {
  padding: 1.25rem;
}

/* ── Stat cards ── */
.cc-stat-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cc-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cc-muted);
  margin-bottom: 0.375rem;
}

.cc-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cc-heading);
  line-height: 1.1;
}

.cc-stat-icon {
  width: 52px;
  height: 52px;
  background: var(--cc-primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cc-primary);
  flex-shrink: 0;
}

/* ── Tables ── */
.cc-table-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
}

.cc-table-card .table {
  margin: 0;
}

.table {
  font-size: 0.875rem;
}

.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cc-muted);
  background: var(--cc-bg);
  border-bottom: 1px solid var(--cc-border);
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

.table td {
  padding: 1rem 1.25rem;
  border-color: var(--cc-border);
  vertical-align: middle;
  color: var(--cc-text);
}

.table-hover tbody tr:hover td {
  background: #fafbfc;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Status badges ── */
.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.cc-badge-ready {
  background: var(--cc-success-bg);
  color: var(--cc-success);
}

.cc-badge-transcribing {
  background: var(--cc-warning-bg);
  color: var(--cc-warning);
}

.cc-badge-failed {
  background: var(--cc-danger-bg);
  color: var(--cc-danger);
}

.cc-badge-pending {
  background: var(--cc-bg);
  color: var(--cc-muted);
  border: 1px solid var(--cc-border);
}

.cc-badge-processing {
  background: var(--cc-info-bg);
  color: var(--cc-info);
}

/* ── Buttons ── */
.btn {
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--cc-radius-sm);
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--cc-primary-dark);
  border-color: var(--cc-primary-dark);
  color: white;
}

.btn-outline-primary {
  color: var(--cc-primary);
  border-color: #c7d2fe;
}

.btn-outline-primary:hover {
  background: var(--cc-primary);
  border-color: var(--cc-primary);
  color: white;
}

.btn-outline-secondary {
  color: var(--cc-muted);
  border-color: var(--cc-border);
  background: var(--cc-surface);
}

.btn-outline-secondary:hover {
  background: var(--cc-bg);
  border-color: #cbd5e1;
  color: var(--cc-text);
}

.btn-outline-danger {
  color: var(--cc-danger);
  border-color: #fecaca;
}

.btn-outline-danger:hover {
  background: var(--cc-danger);
  border-color: var(--cc-danger);
  color: white;
}

.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

/* ── Forms ── */
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cc-heading);
  margin-bottom: 0.375rem;
}

.form-control,
.form-select {
  border-color: var(--cc-border);
  border-radius: var(--cc-radius-sm);
  font-size: 0.875rem;
  color: var(--cc-text);
  background-color: var(--cc-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cc-border-focus);
  box-shadow: 0 0 0 3px rgba(var(--cc-primary-rgb), 0.1);
}

.form-control::placeholder {
  color: var(--cc-muted-light);
}

.form-text {
  font-size: 0.8rem;
  color: var(--cc-muted);
}

/* ── Alerts ── */
.alert {
  border-radius: var(--cc-radius);
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--cc-success-bg);
  color: var(--cc-success);
  border-color: #a7f3d0;
}

.alert-danger {
  background: var(--cc-danger-bg);
  color: var(--cc-danger);
  border-color: #fecaca;
}

.alert-warning {
  background: var(--cc-warning-bg);
  color: var(--cc-warning);
  border-color: #fde68a;
}

.alert-info {
  background: var(--cc-info-bg);
  color: var(--cc-info);
  border-color: #bae6fd;
}

/* ── Empty states ── */
.cc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--cc-muted);
}

.cc-empty-icon {
  width: 64px;
  height: 64px;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--cc-muted-light);
  margin-bottom: 1rem;
}

.cc-empty h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cc-text);
  margin-bottom: 0.25rem;
}

.cc-empty p {
  font-size: 0.875rem;
  color: var(--cc-muted);
  margin-bottom: 1.25rem;
}

/* ── Dropdown ── */
.dropdown-menu {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow-md);
  font-size: 0.875rem;
  padding: 0.375rem;
}

.dropdown-item {
  border-radius: var(--cc-radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--cc-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background: var(--cc-bg);
  color: var(--cc-text);
}

.dropdown-divider {
  border-color: var(--cc-border);
  margin: 0.25rem 0;
}

/* ── Modal ── */
.modal-content {
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.modal-header {
  border-bottom: 1px solid var(--cc-border);
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cc-heading);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--cc-border);
  padding: 1rem 1.5rem;
}

/* ── Phone-only: vertically center the delete-confirm, approve-confirm and
   add-field modals. Bootstrap's default .modal-dialog aligns to the top of
   the viewport, which lands the modal in the corner on a short phone screen. */
@media (max-width: 576px) {
  #confirmModal .modal-dialog,
  #lockConfirmModal .modal-dialog,
  #addFieldModal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
  }
}

/* ── Auth pages ── */
.cc-auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.cc-auth-card {
  width: 100%;
  max-width: 420px;
}

.cc-auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cc-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.cc-auth-logo-img {
  width: 56px;
  height: 56px;
}

.cc-auth-header h1 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.cc-auth-header p {
  font-size: 0.875rem;
  color: var(--cc-muted);
  margin: 0;
}

/* ── Google "Sign in with Google" branded button ── */
/* Follows Google's identity branding guidelines: white surface, #747775
   border, #1f1f1f text, and the official multicolor "G" mark. */
.cc-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: #fff;
  border: 1px solid #747775;
  border-radius: 4px;
  color: #1f1f1f;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.cc-btn-google:hover,
.cc-btn-google:focus {
  background: #f8f9fa;
  color: #1f1f1f;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.cc-btn-google svg {
  flex: none;
}

/* ── Recording UI ── */
.cc-record-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  gap: 1rem;
}

.cc-record-icon {
  font-size: 2.5rem;
  color: var(--cc-muted-light);
}

.cc-record-icon.recording {
  color: var(--cc-danger);
}

/* ── Spinner ── */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* ── Footer ── */
.cc-footer {
  border-top: 1px solid var(--cc-border);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--cc-muted);
  margin-top: 4rem;
}

.cc-footer a {
  color: var(--cc-text);
  text-decoration: none;
  transition: color 0.15s;
}

.cc-footer a:hover {
  color: var(--cc-primary);
  text-decoration: underline;
}

.cc-footer-sep {
  margin: 0 0.5rem;
  color: var(--cc-muted);
}

.cc-footer-copyright {
  margin-top: 0.5rem;
}

/* ── Misc utilities ── */
.text-muted {
  color: var(--cc-muted) !important;
}

.border-top {
  border-color: var(--cc-border) !important;
}

/* ── Landing page ── */

/* Remove the cc-page padding and max-width so sections can stretch full-width */
.landing-page .cc-page {
  padding: 0;
  max-width: none;
}

/* Restore horizontal padding for flash messages, which live directly inside
   the full-width .cc-page on the landing page */
.landing-page .cc-messages {
  padding: 1.5rem 1.5rem 0;
}

/* ── Hero ── */
.landing-hero {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
  padding: 5rem 0 4rem;
  color: white;
}

.landing-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 1.25rem;
}

.landing-subheading {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.landing-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.landing-hero-ctas .btn-outline-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.landing-hero-ctas .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
}

/* ── Hero mockup ── */
.landing-hero-visual {
  display: flex;
  justify-content: center;
}

.landing-screenshot-mockup {
  background: var(--cc-surface);
  border-radius: var(--cc-radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
}

.landing-mockup-header {
  background: #f1f5f9;
  border-bottom: 1px solid var(--cc-border);
  padding: 0.625rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.landing-mockup-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.landing-mockup-dot:first-child { background: #fca5a5; }
.landing-mockup-dot:nth-child(2) { background: #fcd34d; }
.landing-mockup-dot:nth-child(3) { background: #6ee7b7; }

.landing-mockup-title {
  font-size: 0.8rem;
  color: var(--cc-muted);
  margin-left: 0.5rem;
  font-weight: 500;
}

.landing-mockup-body {
  padding: 1.25rem;
}

.landing-mockup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
}

.landing-mockup-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-mockup-value {
  font-size: 0.8125rem;
  color: var(--cc-text);
}

.landing-mockup-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 99px;
}

.landing-mockup-badge-done {
  background: var(--cc-success-bg);
  color: var(--cc-success);
}

.landing-mockup-divider {
  border-top: 1px solid var(--cc-border);
  margin: 0.875rem 0;
}

.landing-mockup-field {
  margin-bottom: 0.625rem;
}

.landing-mockup-field-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--cc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.landing-mockup-field-value {
  display: block;
  font-size: 0.875rem;
  color: var(--cc-text);
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  padding: 0.3rem 0.6rem;
}

.landing-mockup-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-mockup-actions {
  margin-top: 1rem;
}

.landing-mockup-btn {
  width: 100%;
  background: var(--cc-primary);
  color: white;
  border: none;
  border-radius: var(--cc-radius-sm);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ── Sections ── */
.landing-section {
  padding: 3rem 0;
}

.landing-section-alt {
  background-color: var(--cc-bg);
  padding: 3rem 0;
}

.landing-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--cc-heading);
  margin-bottom: 0.5rem;
}

.landing-section-subtitle {
  font-size: 1.0625rem;
  color: var(--cc-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── How It Works ── */
.landing-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--cc-primary);
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
}

.landing-step-icon {
  font-size: 2rem;
  color: var(--cc-primary);
  margin-top: 0.75rem;
}

/* ── Who It's For ── */
.landing-usecase-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  height: 100%;
  box-shadow: var(--cc-shadow);
}

.landing-usecase-icon {
  font-size: 1.75rem;
  color: var(--cc-primary);
  background: var(--cc-primary-light);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-usecase-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.landing-usecase-moment {
  font-weight: 600;
  color: var(--cc-heading);
  font-size: 0.9375rem;
}

.landing-usecase-arrow {
  color: var(--cc-muted);
  font-size: 0.875rem;
}

.landing-usecase-result {
  color: var(--cc-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.landing-tagline {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--cc-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Benefits ── */
.landing-benefit-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: 1.25rem 1rem;
  height: 100%;
  box-shadow: var(--cc-shadow);
  transition: box-shadow 0.15s ease;
}

.landing-benefit-card:hover {
  box-shadow: var(--cc-shadow-md);
}

.landing-benefit-icon {
  font-size: 1.5rem;
  color: var(--cc-primary);
  background: var(--cc-primary-light);
  width: 48px;
  height: 48px;
  border-radius: var(--cc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Pricing Teaser ── */
.landing-pricing-teaser {
  max-width: 560px;
  margin: 0 auto;
}

.landing-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cc-primary-light);
  color: var(--cc-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.4em 1em;
  border-radius: 99px;
}

/* ── Pricing plan cards ── */
.landing-pricing-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  padding: 1.5rem 1.25rem;
  height: 100%;
  text-align: center;
  box-shadow: var(--cc-shadow);
  transition: box-shadow 0.15s ease;
}

.landing-pricing-card:hover {
  box-shadow: var(--cc-shadow-md);
}

.landing-pricing-card-name {
  font-weight: 700;
  color: var(--cc-heading);
  font-size: 1.0625rem;
}

.landing-pricing-card-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cc-heading);
  margin-top: 0.5rem;
}

.landing-pricing-card-price span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cc-muted);
}

.landing-pricing-card-sessions {
  font-size: 0.9375rem;
  color: var(--cc-muted);
  margin-top: 0.5rem;
}

/* ── Bottom CTA ── */
.landing-cta {
  background: linear-gradient(135deg, var(--cc-primary) 0%, var(--cc-primary-dark) 100%);
  padding: 3rem 0;
  color: white;
}

.landing-cta-headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

.landing-cta-sub {
  font-size: 1.0625rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .landing-hero {
    padding: 3rem 0;
    text-align: center;
    overflow-x: hidden;
  }

  .landing-subheading {
    max-width: 100%;
  }

  .landing-hero-ctas {
    justify-content: center;
  }

  .landing-hero-visual {
    margin-top: 2rem;
  }

  .landing-section,
  .landing-section-alt,
  .landing-cta {
    padding: 2rem 0;
  }

  .landing-section-title {
    font-size: 1.25rem;
  }

  .landing-section-subtitle,
  .landing-tagline {
    font-size: 0.9375rem;
  }

  .landing-step-icon {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }

  .landing-step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .landing-usecase-card {
    padding: 0.875rem 0.75rem;
    gap: 0.5rem;
  }

  .landing-usecase-icon {
    width: 40px;
    height: 40px;
    font-size: 1.375rem;
  }

  .landing-benefit-card {
    padding: 0.75rem;
  }

  .landing-step h5,
  .landing-benefit-card h5 {
    font-size: 0.75rem;
    margin-bottom: 0.375rem !important;
  }

  .landing-step p,
  .landing-benefit-card p {
    font-size: 0.6875rem;
  }

  .landing-benefit-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .landing-benefit-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
  }

  .landing-pricing-card {
    padding: 1rem 0.75rem;
  }

  .landing-pricing-card-name {
    font-size: 0.9375rem;
  }

  .landing-pricing-card-price {
    font-size: 1.5rem;
  }

  .landing-pricing-card-sessions {
    font-size: 0.75rem;
  }
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--cc-muted);
}

.empty-state i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Dashboard quick-action buttons: icon-only variant, shown in place of the
   text label on phone (see the ≤576px block below). */
.cc-quick-action-btn-icon {
  display: none;
}

/* ── Clickable table rows ── */
.cc-clickable-row {
  cursor: pointer;
}

.cc-clickable-row:hover td {
  background: var(--cc-primary-light) !important;
}

/* ── Mobile: compact table padding ── */
@media (max-width: 575px) {
  .table td,
  .table thead th {
    padding: 0.625rem 0.75rem;
  }
}

/* ── Phone-only: compact dashboard ──
   Tighten spacing and shrink the stat/quick-action cards so the whole
   dashboard needs less scrolling on small screens. */
@media (max-width: 576px) {
  .cc-dashboard .cc-page-header {
    margin-bottom: 1.25rem;
  }

  /* Keep the 3 dashboard stat cards side by side instead of stacking,
     so the dashboard doesn't need extra scrolling for a handful of
     small numbers. */
  .cc-stats-row {
    flex-wrap: nowrap;
  }

  .cc-stats-row > [class*="col-"] {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .cc-dashboard .cc-stat-card {
    padding: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .cc-dashboard .cc-stat-value {
    font-size: 1.15rem;
  }

  .cc-dashboard .cc-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .cc-stats-row .cc-stat-icon {
    order: -1;
  }

  /* Quick-action cards: icon + title + a compact action button, all on one
     row instead of a tall vertical stack with a full-width button. */
  .cc-dashboard .cc-quick-action-card .card-body {
    padding: 0.875rem 1rem !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap;
    gap: 0.625rem !important;
  }

  .cc-dashboard .cc-quick-action-card .cc-stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 0 !important;
  }

  .cc-dashboard .cc-quick-action-card h3 {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cc-dashboard .cc-quick-action-card p {
    display: none;
  }

  .cc-dashboard .cc-quick-action-card .btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.375rem 0.5rem;
  }

  /* Icon-only action button: swap the "View X" text for a plain eye icon so
     the button doesn't compete with the title for space on a narrow row. */
  .cc-dashboard .cc-quick-action-card .cc-quick-action-btn-text {
    display: none;
  }

  .cc-dashboard .cc-quick-action-card .cc-quick-action-btn-icon {
    display: inline-block;
  }
}

/* ── iPad / iOS: remove native file-input gray button appearance ── */
input[type="file"] {
  -webkit-appearance: none;
  appearance: none;
}

/* ── Disabled buttons: uniform gray regardless of color variant ── */
.btn:disabled,
.btn[aria-disabled="true"] {
  background-color: #e9ecef;
  border-color: #ced4da;
  color: #6c757d;
  opacity: 1;
}
