/*
 * ChozekAI shared web design system.
 *
 * This file is the single owner of interactive component styling. Page-level
 * CSS may control layout and decorative sections, but must not redefine the
 * dimensions, typography, focus states, or motion of controls.
 */

:root {
  --cz-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cz-color-primary: #6d28d9;
  --cz-color-primary-hover: #5b21b6;
  --cz-color-primary-active: #4c1d95;
  --cz-color-secondary: #475569;
  --cz-color-secondary-hover: #334155;
  --cz-color-success: #15803d;
  --cz-color-success-hover: #166534;
  --cz-color-danger: #dc2626;
  --cz-color-danger-hover: #b91c1c;
  --cz-color-warning: #d97706;
  --cz-color-warning-hover: #b45309;
  --cz-color-orange: #f97316;
  --cz-color-orange-hover: #ea580c;
  --cz-color-surface: #ffffff;
  --cz-color-surface-muted: #f8fafc;
  --cz-color-text: #0f172a;
  --cz-color-text-muted: #64748b;
  --cz-color-border: #cbd5e1;
  --cz-color-border-hover: #94a3b8;
  --cz-color-focus: rgba(109, 40, 217, 0.22);
  --cz-control-height: 44px;
  --cz-control-height-sm: 36px;
  --cz-control-height-lg: 52px;
  --cz-control-radius: 10px;
  --cz-field-radius: 0;
  --cz-control-padding-x: 16px;
  --cz-control-font-size: 0.95rem;
  --cz-control-font-weight: 600;
  --cz-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --cz-shadow-control: 0 6px 16px rgba(15, 23, 42, 0.12);
  --cz-transition: 160ms ease;
}

html {
  color-scheme: light;
}

body {
  color: var(--cz-color-text);
  font-family: var(--cz-font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Buttons and button-like links */
.btn,
.btn-signup-link,
.btn-signin-link,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  align-items: center !important;
  border-radius: var(--cz-control-radius) !important;
  display: inline-flex !important;
  font-family: var(--cz-font-sans) !important;
  font-size: var(--cz-control-font-size) !important;
  font-weight: var(--cz-control-font-weight) !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  min-height: var(--cz-control-height) !important;
  padding: 0.65rem var(--cz-control-padding-x) !important;
  text-decoration: none !important;
  transition: background-color var(--cz-transition), border-color var(--cz-transition),
    box-shadow var(--cz-transition), color var(--cz-transition), transform var(--cz-transition) !important;
}

.btn:hover:not(:disabled):not(.disabled),
input[type="button"]:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled),
input[type="reset"]:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: var(--cz-shadow-control) !important;
}

.btn:active:not(:disabled):not(.disabled),
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled),
input[type="reset"]:active:not(:disabled) {
  transform: translateY(0) !important;
  box-shadow: var(--cz-shadow-sm) !important;
}

.btn-sm {
  min-height: var(--cz-control-height-sm) !important;
  padding: 0.45rem 0.75rem !important;
  font-size: 0.85rem !important;
}

.btn-lg {
  min-height: var(--cz-control-height-lg) !important;
  padding: 0.8rem 1.25rem !important;
  font-size: 1rem !important;
}

.btn-primary,
.btn-orange,
.btn-signin,
.btn-signup-submit,
.btn-submit,
.btn-modern,
.btn-add,
.btn-hero-primary,
.btn-dashboard,
.btn-indigo-gradient,
.footer .newsletter-form button {
  color: #fff !important;
  background: var(--cz-color-primary) !important;
  border: 1px solid var(--cz-color-primary) !important;
}

.btn-primary:hover,
.btn-orange:hover,
.btn-signin:hover,
.btn-signup-submit:hover,
.btn-submit:hover,
.btn-modern:hover,
.btn-add:hover,
.btn-hero-primary:hover,
.btn-dashboard:hover,
.btn-indigo-gradient:hover,
.footer .newsletter-form button:hover {
  color: #fff !important;
  background: var(--cz-color-primary-hover) !important;
  border-color: var(--cz-color-primary-hover) !important;
}

.btn-header-login {
  color: #fff !important;
  background: var(--cz-color-orange) !important;
  border-color: var(--cz-color-orange) !important;
}

.btn-header-login:hover,
.btn-header-login:focus-visible {
  color: #fff !important;
  background: var(--cz-color-orange-hover) !important;
  border-color: var(--cz-color-orange-hover) !important;
}

.btn-secondary { background: var(--cz-color-secondary) !important; border-color: var(--cz-color-secondary) !important; color: #fff !important; }
.btn-secondary:hover { background: var(--cz-color-secondary-hover) !important; border-color: var(--cz-color-secondary-hover) !important; color: #fff !important; }
.btn-success { background: var(--cz-color-success) !important; border-color: var(--cz-color-success) !important; color: #fff !important; }
.btn-success:hover { background: var(--cz-color-success-hover) !important; border-color: var(--cz-color-success-hover) !important; color: #fff !important; }
.btn-danger { background: var(--cz-color-danger) !important; border-color: var(--cz-color-danger) !important; color: #fff !important; }
.btn-danger:hover { background: var(--cz-color-danger-hover) !important; border-color: var(--cz-color-danger-hover) !important; color: #fff !important; }
.btn-warning { background: var(--cz-color-warning) !important; border-color: var(--cz-color-warning) !important; color: #fff !important; }
.btn-warning:hover { background: var(--cz-color-warning-hover) !important; border-color: var(--cz-color-warning-hover) !important; color: #fff !important; }

.btn-outline-primary,
.btn-outline-orange,
.btn-outline-modern,
.btn-signup-link,
.btn-signin-link {
  color: var(--cz-color-primary) !important;
  background: transparent !important;
  border: 1px solid var(--cz-color-primary) !important;
}

.btn-signin,
.btn-signup-submit,
.btn-signup-link,
.btn-signin-link {
  width: 100% !important;
}

.btn-signup-link,
.btn-signin-link {
  margin-top: 0.6rem;
}

.btn-outline-primary:hover,
.btn-outline-orange:hover,
.btn-outline-modern:hover,
.btn-signup-link:hover,
.btn-signin-link:hover {
  color: #fff !important;
  background: var(--cz-color-primary) !important;
  border-color: var(--cz-color-primary) !important;
}

.btn-link {
  color: var(--cz-color-primary) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.btn-close {
  border-radius: 50% !important;
  min-height: 32px;
  min-width: 32px;
  transition: background-color var(--cz-transition), opacity var(--cz-transition), transform var(--cz-transition) !important;
}

/* Fields, dropdown triggers, and upload controls */
.form-control,
.form-select,
.form-control-modern,
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
select,
textarea {
  color: var(--cz-color-text) !important;
  background-color: var(--cz-color-surface) !important;
  border: 1px solid var(--cz-color-border) !important;
  border-radius: var(--cz-field-radius) !important;
  box-shadow: var(--cz-shadow-sm) !important;
  font-family: var(--cz-font-sans) !important;
  font-size: var(--cz-control-font-size) !important;
  line-height: 1.4 !important;
  min-height: var(--cz-control-height) !important;
  padding: 0.65rem 0.875rem !important;
  transition: background-color var(--cz-transition), border-color var(--cz-transition),
    box-shadow var(--cz-transition) !important;
}

select,
.form-select {
  cursor: pointer;
  padding-right: 2.5rem !important;
}

textarea,
textarea.form-control {
  min-height: 120px !important;
  resize: vertical;
}

.form-control:hover,
.form-select:hover,
.form-control-modern:hover,
input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
select:hover,
textarea:hover {
  border-color: var(--cz-color-border-hover) !important;
}

.form-control:focus,
.form-select:focus,
.form-control-modern:focus,
input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  color: var(--cz-color-text) !important;
  background-color: var(--cz-color-surface) !important;
  border-color: var(--cz-color-primary) !important;
  box-shadow: 0 0 0 4px var(--cz-color-focus) !important;
  outline: 0 !important;
}

::placeholder {
  color: var(--cz-color-text-muted) !important;
  opacity: 1 !important;
}

.form-label,
label {
  color: var(--cz-color-text) ;
  font-family: var(--cz-font-sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-text,
.helptext {
  color: var(--cz-color-text-muted) !important;
  font-size: 0.82rem;
}

.form-check-input {
  min-height: 1rem !important;
  min-width: 1rem;
  padding: 0 !important;
  border-radius: 0.25rem !important;
}

.form-check-input:checked {
  background-color: var(--cz-color-primary) !important;
  border-color: var(--cz-color-primary) !important;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > input,
.input-group > select,
.input-group > button,
.input-group > .btn {
  margin: 0;
}

.input-group-text {
  color: var(--cz-color-text-muted) !important;
  background: var(--cz-color-surface-muted) !important;
  border-color: var(--cz-color-border) !important;
  border-radius: var(--cz-field-radius) !important;
}

.input-group > .input-group-text {
  width: 46px;
  flex: 0 0 46px;
  justify-content: center;
}

.input-group > .btn-toggle-pw {
  width: 46px !important;
  min-width: 46px;
  flex: 0 0 46px;
  padding: 0 !important;
  color: var(--cz-color-text-muted) !important;
  background: var(--cz-color-surface-muted) !important;
  border: 1px solid var(--cz-color-border) !important;
  border-left: 0 !important;
  border-radius: var(--cz-field-radius) !important;
  box-shadow: none !important;
}

.input-group > .btn-toggle-pw:hover,
.input-group > .btn-toggle-pw:focus-visible {
  color: var(--cz-color-text) !important;
  background: #eef2f6 !important;
  transform: none !important;
}

/* Fields are deliberately flat; buttons retain the shared control radius. */
html body .form-control,
html body .form-select,
html body .form-control-modern,
html body .input-group-text,
html body input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
html body select,
html body textarea,
html body .select2-container .select2-selection,
html body .choices__inner {
  border-radius: var(--cz-field-radius) !important;
}

/* Menus */
.dropdown-menu {
  padding: 0.5rem !important;
  color: var(--cz-color-text) !important;
  background: var(--cz-color-surface) !important;
  border: 1px solid var(--cz-color-border) !important;
  border-radius: var(--cz-control-radius) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
}

.dropdown-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem !important;
  color: var(--cz-color-text) !important;
  border-radius: 8px !important;
  font-size: 0.92rem;
  transition: background-color var(--cz-transition), color var(--cz-transition) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--cz-color-primary) !important;
  background: #f3e8ff !important;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff !important;
  background: var(--cz-color-primary) !important;
}

/* Consistent validation, disabled, and keyboard states */
.is-invalid,
.was-validated :invalid {
  border-color: var(--cz-color-danger) !important;
}

.is-valid,
.was-validated :valid {
  border-color: var(--cz-color-success) !important;
}

:disabled,
.disabled {
  cursor: not-allowed !important;
  opacity: 0.56 !important;
  transform: none !important;
  box-shadow: none !important;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--cz-color-focus) !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/*
 * ---------------------------------------------------------------------------
 * Page layout & decorative sections (merged from css/style.css)
 * ---------------------------------------------------------------------------
 */

/* Prevent horizontal scrolling */
@font-face {
    font-family: "Indie Flower";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/indie-flower-latin.9394245807cd.woff2") format("woff2");
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.store-download-badge {
    display: inline-flex;
    width: 164px;
    min-height: 50px;
    align-items: center;
    gap: .65rem;
    padding: .48rem .8rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 9px;
    color: #fff;
    background: #050505;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.store-download-badge:hover {
    color: #fff;
    background: #171717;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
}
.store-download-badge > i { width: 25px; font-size: 1.55rem; line-height: 1; text-align: center; }
.store-download-badge > span { display: flex; flex-direction: column; line-height: 1.05; }
.store-download-badge small { color: inherit; font-size: .62rem; letter-spacing: .015em; }
.store-download-badge strong { color: inherit; font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.app-badge-link { width: fit-content; text-decoration: none; }

.navbar {
    z-index: 10;
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #000;

    font-family: "Indie Flower", cursive;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 25px;
    margin-right: 2px;
    margin-top: -7px;
}

.brand-text {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.text-orange {
    color: orange;
}

.text-dark {
    color: black;
    margin-left: 0;
}

.navbar-nav .nav-link {
    font-size: 1.1rem;
    margin-left: 15px;
}

.navbar-nav .nav-link.active {
    color: #9c40c0;
}

.hero-modern {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #1e1e2f 0%, #3f3cbb 100%);
    overflow: hidden;
    padding: 4rem 1rem;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero-modern h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hero-modern h1 span {
    background: linear-gradient(to right, #facc15, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-modern .subtitle {
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d1d5db;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero-modern h1 {
        font-size: 2.2rem;
    }

    .hero-modern .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.3rem;
    }

    .hero-modern .btn {
        width: 100%;
    }
}

.services-section {
    background: linear-gradient(135deg, #f4f6fc, #e9efff);
    padding: 2rem 0;
}
.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.services-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}
.service-card {
    border: none;
    border-radius: 1.25rem;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1.5rem 2rem rgba(0, 0, 0, 0.08);
}
.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #e9f0ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
}
.service-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.feature {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    width: 100%;
    max-width: 250px;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffcc00;
}

.feature h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: bold;
}

.feature p {
    font-size: 0.9rem;
    color: #f0f0f0;
}

.img-fluid:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #16191d 0%, #1e2227 60%, #212529 100%);
    color: #cdd3da;
    padding: 64px 0 0;
    position: relative;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #ff8c00 0%, #667eea 50%, #ff8c00 100%) 1;
}

/* Brand tagline */
.footer-tagline {
    color: #7a8490;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Footer section headings */
.footer h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.footer h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff8c00, #667eea);
}

/* Footer inline links (About, Terms, etc.) */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8c96a2;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-link::before {
    content: "›";
    color: #ff8c00;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.footer-link:hover {
    color: #ff8c00;
    transform: translateX(4px);
}

/* Quick-link nav items */
.footer .nav-link {
    color: #8c96a2;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer .nav-link::before {
    content: "›";
    color: #ff8c00;
    font-size: 1.1rem;
    line-height: 1;
}

.footer .nav-link:hover {
    color: #ff8c00;
    transform: translateX(4px);
}

/* Social icon pills */
.footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer .social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cdd3da;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
    -webkit-text-fill-color: unset;
}

.footer .social-icons a:hover {
    background: linear-gradient(135deg, #ff8c00, #667eea);
    border-color: transparent;
    color: #fff;
    -webkit-text-fill-color: #fff;
    transform: translateY(-4px);
}

/* Newsletter form */
.footer .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Divider & copyright strip */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 0;
}

.footer-copyright-strip {
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem 0;
    font-size: 0.82rem;
    color: #5c6470;
}

/* Keep legacy selector working */
.footer .text-center {
    font-size: 0.9rem;
    margin-top: 0;
}

/* ================================================================
   PROFILE DASHBOARD
   Page-specific layout; interactive controls inherit this system.
   ================================================================ */
  .bg-gradient-primary {
    background: linear-gradient(135deg, var(--cz-color-primary) 0%, #7c3aed 100%);
  }
  .bg-gradient-success {
    background: linear-gradient(135deg, var(--cz-color-success) 0%, #16a34a 100%);
  }
  .bg-gradient-warning {
    background: linear-gradient(135deg, var(--cz-color-warning) 0%, var(--cz-color-orange) 100%);
  }
  .bg-gradient-info {
    background: linear-gradient(135deg, #0369a1 0%, var(--cz-color-primary) 100%);
  }
  .bg-gradient-secondary {
    background: linear-gradient(135deg, #858796 0%, #b7b9cc 100%);
  }
  .bg-gradient-dark {
    background: linear-gradient(135deg, #23272b 0%, #343a40 100%);
  }
  .card-footer .badge {
    font-size: 1rem;
    padding: 0.5em 1.2em;
    border-radius: 1em;
  }
  .legend-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: fit-content;
    max-width: 100%;
  }
  .resource-card {
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 340px;
    background: #f8fafc;
  }
  .resource-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 1.5px 6px rgba(0,0,0,0.08);
    transform: translateY(-4px) scale(1.02);
  }
  .resource-thumb {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  }

  #feedback-message {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 5px;
    display: none;
  }
  #feedback-message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
  }
  .form-section {
    transition: all 0.5s ease;
  }
  #step-indicator {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }
  .step {
    text-align: center;
    flex-grow: 1;
  }
  .step-number {
    background-color: var(--cz-color-primary);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
  }
  .step.completed .step-number {
    background-color: var(--cz-color-success);
  }
  .step-title {
    font-size: 0.85em;
    color: #6c757d;
  }
  .step.completed .step-title {
    color: var(--cz-color-success);
  }
  .step:not(:last-child) {
    position: relative;
  }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--cz-color-primary);
    z-index: -1;
  }
  @media (max-width: 768px) {
    .icon {
      top: 30px;
    }
  }

  #contact .card {
    background: #f8fafc;
    border-radius: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  #contact .card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 1.5px 6px rgba(0,0,0,0.08);
    transform: translateY(-2px) scale(1.01);
  }
  .profile-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
  .nav-tabs .nav-link.active {
    background-color: #f8f9fa;
    border-color: #dee2e6 #dee2e6 #fff;
    color: #0d6efd;
    font-weight: bold;
  }
  .nav-tabs .nav-link {
    color: #495057;
  }
  .legend-centered {
    text-align: center;
    width: fit-content;
    max-width: 100%;
    /* Remove margin auto, centering is handled by flex parent */
  }
  /* Modal Enhancements */
  .modal-content {
    border-radius: 1rem;
  }

  .modal-header {
    border-radius: 1rem 1rem 0 0;
  }

  .modal-footer {
    border-radius: 0 0 1rem 1rem;
  }

  /* Badge Styling */
  .badge {
    font-weight: 500;
    letter-spacing: 0.5px;
  }

  .referral-copy-button {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  /* Profile dashboard refresh */
  :root {
    --profile-ink: var(--cz-color-text);
    --profile-muted: var(--cz-color-text-muted);
    --profile-primary: var(--cz-color-primary);
    --profile-primary-dark: var(--cz-color-primary-hover);
    --profile-accent: var(--cz-color-orange);
    --profile-border: var(--cz-color-border);
    --profile-surface: var(--cz-color-surface);
  }
  #main-content { background: var(--cz-color-surface-muted); }
  #main-content {
    background-image:
      radial-gradient(circle at 8% 2%, rgba(109,40,217,.08), transparent 24rem),
      radial-gradient(circle at 92% 14%, rgba(249,115,22,.06), transparent 22rem);
  }
  .profile-dashboard {
    position: relative;
    max-width: 1180px;
    padding: 2rem 1.25rem 1.5rem;
  }
  .profile-dashboard::before,
  .profile-dashboard::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .1;
    pointer-events: none;
  }
  .profile-dashboard::before { top: 5rem; left: -8rem; background: var(--cz-color-primary); }
  .profile-dashboard::after { right: -8rem; bottom: 0; background: var(--cz-color-orange); }
  .profile-sidebar { position: static; width: 100%; }
  .profile-card.profile-summary {
    overflow: hidden;
    max-width: 410px;
    margin-top: 0;
    padding: 2rem !important;
    background: var(--cz-color-surface) !important;
    border: 1px solid var(--profile-border) !important;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08) !important;
  }
  .profile-summary::after {
    content: "Account overview";
    position: absolute;
    top: .72rem;
    left: 1.5rem;
    color: var(--cz-color-text-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .profile-card.profile-summary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, var(--profile-primary), var(--profile-accent));
  }
  .profile-avatar-wrap {
    width: 112px;
    height: 112px;
    margin: .4rem auto 1.1rem;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-accent));
    box-shadow: 0 10px 24px var(--cz-color-focus);
  }
  .profile-avatar-wrap .avatar { width: 100% !important; height: 100% !important; margin: 0 !important; border: 4px solid #fff !important; }
  .profile-name { color: var(--profile-ink) !important; font-size: 1.65rem !important; letter-spacing: -.025em !important; }
  .profile-status-dot { font-size: .7em; }
  .profile-handle { color: var(--profile-primary-dark) !important; background: #f3e8ff !important; }
  .profile-meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .72rem .85rem;
    margin-bottom: .55rem;
    color: var(--profile-muted);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(148,163,184,.16);
    border-radius: var(--cz-control-radius);
    text-align: left;
    overflow-wrap: anywhere;
  }
  .profile-meta i { width: 1rem; color: var(--profile-primary); text-align: center; }
  .profile-actions { border-top: 1px solid rgba(148,163,184,.18); padding-top: 1.1rem; }
  .profile-main { min-width: 0; }
  .profile-layout { display: block; }
  .profile-main { width: 100%; }
  @media (min-width: 992px) {
    .profile-card.profile-summary {
      display: grid;
      grid-template-columns: 82px minmax(170px, .8fr) minmax(280px, 1.5fr) auto;
      grid-template-rows: repeat(3, auto);
      align-items: center;
      column-gap: 1rem;
      row-gap: .18rem;
      max-width: none !important;
      padding: 1.8rem 1.5rem .9rem !important;
      text-align: left !important;
    }
    .profile-avatar-wrap {
      grid-column: 1;
      grid-row: 1 / 4;
      width: 72px;
      height: 72px;
      margin: 0;
    }
    .profile-summary .profile-name { grid-column: 2; grid-row: 1; align-self: end; margin: 0 !important; }
    .profile-summary .profile-name { font-size: 1.35rem !important; }
    .profile-summary .profile-name + div { grid-column: 2; grid-row: 2; margin: 0 !important; }
    .profile-summary .profile-handle { font-size: .78rem !important; }
    .profile-summary > .profile-meta { grid-column: 3; margin: 0; padding: .35rem .65rem; font-size: .76rem; }
    .profile-summary > .profile-meta + .mb-2,
    .profile-summary > .mb-2:has(.bg-success) { grid-column: 2; grid-row: 3; margin: 0 !important; align-self: start; }
    .profile-actions {
      grid-column: 4;
      grid-row: 1 / 4;
      flex-direction: column;
      min-width: 138px;
      margin: 0 !important;
      padding: 0 0 0 1rem;
      border-top: 0;
      border-left: 1px solid rgba(148,163,184,.18);
    }
    .profile-actions { gap: .4rem !important; }
    .profile-actions form,
    .profile-actions .btn { width: 100%; }
  }
  .profile-tabs {
    gap: .35rem;
    padding: .42rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    background: var(--cz-color-surface);
    border: 1px solid var(--profile-border) !important;
    border-radius: var(--cz-control-radius);
    box-shadow: var(--cz-shadow-sm);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    padding: .72rem .88rem;
    border: 0 !important;
    border-radius: 8px;
    color: var(--cz-color-text-muted);
    font-size: .88rem;
    font-weight: 700;
  }
  .profile-tabs .nav-link i { font-size: .85rem; opacity: .82; }
  .profile-tabs .nav-link:hover { color: var(--profile-primary); background: #f3e8ff; }
  .profile-tabs .nav-link.active {
    color: #fff;
    background: var(--cz-color-primary);
    box-shadow: var(--cz-shadow-control);
  }
  /* Hidden Bootstrap fade panels must not reserve page height. The broader
     selector also protects this legacy template when browsers normalize the
     invoice table's modal markup. */
  #profileTabContent .tab-pane:not(.active) {
    display: none !important;
  }
  #profileTabContent .tab-pane.active {
    display: block;
  }
  .invoice-modal-host { display: none; }
  .invoice-detail-modal .modal-dialog { max-width: 780px; }
  .invoice-detail-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--cz-color-border);
    border-radius: 1rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
  }
  .invoice-detail-modal .modal-header {
    padding: .85rem 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--cz-color-primary), var(--cz-color-primary-hover)) !important;
    border: 0;
  }
  .invoice-detail-modal .modal-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: auto !important;
    margin: 0;
    font-size: 1rem;
    letter-spacing: -.01em;
    text-align: left !important;
  }
  .invoice-detail-modal .modal-body { padding: 1.1rem; background: var(--cz-color-surface-muted); }
  .invoice-detail-modal .modal-body hr { margin: .75rem 0; }
  .invoice-modal-summary { display:grid; grid-template-columns:1fr auto; align-items:center; gap:1rem; margin-bottom:1rem; padding:1rem 1.1rem; color:#fff; background:linear-gradient(135deg,#172033,#334155); border-radius:.85rem; }
  .invoice-modal-identity span,.invoice-modal-identity strong,.invoice-modal-identity small,.invoice-modal-amount span,.invoice-modal-amount strong,.invoice-modal-amount small{display:block}.invoice-modal-identity span,.invoice-modal-amount span{color:#cbd5e1;font-size:.66rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.invoice-modal-identity strong{margin:.2rem 0;font-size:.95rem;letter-spacing:.025em}.invoice-modal-identity small,.invoice-modal-amount small{display:flex;align-items:center;gap:.35rem;color:#cbd5e1;font-size:.72rem}.invoice-modal-amount{text-align:right}.invoice-modal-amount strong{margin:.12rem 0;color:#fff;font-size:1.45rem;line-height:1.1}.invoice-modal-amount small{justify-content:flex-end}.invoice-modal-amount small.paid{color:#86efac}.invoice-modal-amount small.unpaid{color:#fdba74}
  .invoice-section-heading { display:flex; align-items:center; gap:.45rem; margin:.85rem 0 .55rem!important; color:var(--cz-color-text)!important; font-size:.74rem!important; font-weight:800!important; letter-spacing:.055em; text-transform:uppercase; }.invoice-section-heading i{color:var(--cz-color-primary);font-size:.9rem}
  .invoice-detail-modal .invoice-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: var(--cz-color-surface);
    border: 1px solid var(--cz-color-border);
    border-radius: .85rem;
  }
  .invoice-detail-modal .invoice-details .field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    padding: .4rem .9rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .invoice-detail-modal .invoice-details .field-full { grid-column: 1 / -1; }
  .invoice-detail-modal .invoice-details .field:last-child { border-bottom: 0; }
  .invoice-detail-modal .invoice-details dt,
  .invoice-detail-modal .invoice-details dd {
    margin: 0;
    font-size: .88rem;
  }
  .invoice-detail-modal .invoice-details dt { flex: 0 0 auto; color: var(--cz-color-text-muted); font-size: .72rem; letter-spacing: .035em; text-transform: uppercase; }
  .invoice-detail-modal .invoice-details dd { text-align: right; color: var(--cz-color-text); font-weight: 600; overflow-wrap: anywhere; }
  .invoice-detail-modal .invoice-details .field-full dd { text-align: left; }
  .invoice-detail-modal h6 { font-size: .88rem; margin-bottom: .6rem !important; }
  .invoice-detail-modal .payment-schedule-title { color: var(--cz-color-text); font-weight: 750; }
  .invoice-detail-modal .table-responsive { background: var(--cz-color-surface); border-radius: .75rem; }
  .invoice-detail-modal .table-sm td, .invoice-detail-modal .table-sm th { padding: .4rem .5rem; font-size: .85rem; }
  .invoice-detail-modal .document-row { padding: .6rem .75rem !important; margin-bottom: .5rem !important; }
  .invoice-detail-modal .document-row > div > .bi-file-earmark-pdf { font-size: 1.3rem; }
  .invoice-detail-modal .project-status-note { margin-top: .75rem !important; }
  .invoice-detail-modal .project-status-note .alert { margin: 0; padding: .6rem .85rem; border-width: 0 0 0 4px; border-radius: .6rem; font-size: .85rem; }
  .invoice-detail-modal .modal-footer { padding: .75rem 1.25rem; background: var(--cz-color-surface); border-top: 1px solid #e2e8f0; }
  @media (max-width: 575.98px) {
    .invoice-detail-modal .modal-dialog { margin: .6rem; }
    .invoice-detail-modal .modal-body { padding: 1rem; }
    .invoice-detail-modal .invoice-details { grid-template-columns: 1fr; }
    .invoice-modal-summary { grid-template-columns:1fr; }.invoice-modal-amount{text-align:left}.invoice-modal-amount small{justify-content:flex-start}
    .invoice-detail-modal .invoice-details .field { padding: .4rem .85rem; }
    .invoice-detail-modal .modal-footer { align-items: stretch; flex-direction: column; }
    .invoice-detail-modal .modal-footer .btn { width: 100%; }
  }
  #profileTabContent .card,
  #profileTabContent .profile-card {
    border: 1px solid var(--cz-color-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.07) !important;
  }
  #profileTabContent .card { overflow: hidden; }
  #profileTabContent .card-header { padding: 1.15rem 1.25rem; }
  #profileTabContent .card-body { padding: 1.35rem; }
  #profileTabContent .table-responsive { border: 1px solid rgba(148,163,184,.16); border-radius: .9rem; }
  #profileTabContent .table { margin-bottom: 0; }
  #profileTabContent .table thead th { padding: .85rem; color: var(--cz-color-text-muted); background: var(--cz-color-surface-muted); border-bottom: 0; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
  #profileTabContent .table tbody td { padding: .85rem; vertical-align: middle; border-color: rgba(148,163,184,.13); }
  #profileTabContent .badge { border-radius: 999px; }
  #profileTabContent > .tab-pane > .container { max-width: none; padding: 0; }
  #profileTabContent { position: relative; }
  #profileTabContent > .tab-pane.active { animation: profile-tab-in .22s ease-out; }
  @keyframes profile-tab-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  #services .card {
    color: var(--cz-color-text) !important;
    background: var(--cz-color-surface) !important;
    border-top: 4px solid var(--cz-color-primary) !important;
  }
  #services .col-md-4:nth-child(3n + 2) .card { border-top-color: var(--cz-color-success) !important; }
  #services .col-md-4:nth-child(3n) .card { border-top-color: var(--cz-color-orange) !important; }
  #services .card-body > i { color: var(--cz-color-primary); }
  #services .card-body > i {
    display: inline-grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    margin-bottom: 1rem !important;
    border-radius: .9rem;
    background: #f3e8ff;
  }
  #services .col-md-4:nth-child(3n + 2) .card-body > i { color: var(--cz-color-success); background: #f0fdf4; }
  #services .col-md-4:nth-child(3n) .card-body > i { color: var(--cz-color-orange); background: #fff7ed; }
  #services .card-body li { padding: .22rem 0; color: var(--cz-color-text-muted); }
  #services .card-footer .badge { color: var(--cz-color-primary) !important; background: #f3e8ff !important; }
  #projects .project-form,
  #documents .card,
  #contact .card,
  #referral .card { background: var(--cz-color-surface) !important; }
  #projects fieldset { background: var(--cz-color-surface-muted) !important; border-color: var(--cz-color-border) !important; }
  #projects .project-form { max-width: 900px; margin: 0 auto; }
  #project-details, #description, #package-selection, #file-upload { display: none; }
  .project-upload-legend { font-size: 1.1em; }
  #invoices .alert-info,
  #referral .alert-info { color: #075985; background: #f0f9ff; border-color: #bae6fd; }
  #documents > .container > .text-center,
  #invoices > .container > .text-center { padding: 1rem; }
  #contact .card-body > ul { max-width: 560px; margin-inline: auto; }
  #contact .card-body > ul > li { display: flex; align-items: center; justify-content: center; gap: .35rem; }
  #referral .bg-gradient-primary { background: linear-gradient(135deg, var(--cz-color-primary), var(--cz-color-primary-hover)) !important; }
  #profileTabContent .table-responsive {
    background: var(--cz-color-surface);
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
  }
  #profileTabContent .table-hover tbody tr { transition: background-color var(--cz-transition); }
  #profileTabContent .table-hover tbody tr:hover { background: #faf7ff; }
  .invoice-row { cursor: pointer; }
  .invoice-progress { width: 100px; height: 6px; }
  .invoice-payment-badge { margin-left: 6px; }
  .invoice-status { color: #fff; }
  .invoice-status-review { background: #64748b; }
  .invoice-status-accepted { background: #2563eb; }
  .invoice-status-progress { background: var(--cz-color-orange); }
  .invoice-status-revision { background: #7c3aed; }
  .invoice-status-finalizing { background: var(--cz-color-primary-hover); }
  .invoice-status-completed { background: var(--cz-color-success); }
  .invoice-status-canceled { background: var(--cz-color-danger); }
  .invoice-note { border-left-width: 6px; }
  .invoice-note-review { color: #475569; background: #f8fafc; border-left-color: #94a3b8; }
  .invoice-note-accepted { color: #1d4ed8; background: #eff6ff; border-left-color: #2563eb; }
  .invoice-note-progress { color: #c2410c; background: #fff7ed; border-left-color: var(--cz-color-orange); }
  .invoice-note-revision { color: #6d28d9; background: #f5f3ff; border-left-color: #7c3aed; }
  .invoice-note-finalizing { color: var(--cz-color-primary-hover); background: #faf5ff; border-left-color: var(--cz-color-primary); }
  .invoice-note-completed { color: var(--cz-color-success); background: #f0fdf4; border-left-color: var(--cz-color-success); }
  .invoice-note-canceled { color: var(--cz-color-danger); background: #fef2f2; border-left-color: var(--cz-color-danger); }
  .contact-feature-card, .contact-resource-grid { width: 100%; max-width: none; }
  #documents .text-center.py-5,
  #contact .card:first-child {
    border: 1px solid var(--cz-color-border);
    border-radius: 1rem;
    background: var(--cz-color-surface);
  }
  @media (max-width: 991.98px) {
    .profile-dashboard { padding-top: 2rem; }
    .profile-card.profile-summary { max-width: none; }
    .profile-main { margin-top: .25rem; }
  }
  @media (max-width: 575.98px) {
    .profile-dashboard { padding: 1rem .75rem; }
    .profile-card.profile-summary { padding: 1.45rem !important; border-radius: 1.25rem; }
    .profile-summary::after { display: none; }
    .profile-actions { flex-direction: column; }
    .profile-actions form, .profile-actions .btn { width: 100%; }
    #profileTabContent .card-body { padding: 1rem; }
  }

/* ================================================================
   DOCUMENT SIGNING
   ================================================================ */
.document-signing-page {
  min-height: 70vh;
  padding: 2rem 0 3rem;
  background:
    radial-gradient(circle at 8% 0, rgba(109,40,217,.08), transparent 25rem),
    var(--cz-color-surface-muted);
}

/* Documents dashboard tab */
.documents-overview {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(520px, 1.5fr);
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  padding: 1.4rem;
  background: linear-gradient(135deg, #fff 55%, #faf7ff);
  border: 1px solid var(--cz-color-border);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.documents-eyebrow {
  color: var(--cz-color-primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.documents-overview h2 { margin: .15rem 0 .3rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; }
.documents-overview p { margin: 0; color: var(--cz-color-text-muted); font-size: .88rem; }
.document-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.document-stat {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  padding: .75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
}
.document-stat-icon { display: grid; flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: .6rem; }
.document-stat-icon.stat-total { color: var(--cz-color-primary); background: #f3e8ff; }
.document-stat-icon.stat-pending { color: #b45309; background: #fffbeb; }
.document-stat-icon.stat-signed { color: var(--cz-color-success); background: #f0fdf4; }
.document-stat-icon.stat-required { color: var(--cz-color-danger); background: #fef2f2; }
.document-stat div { min-width: 0; }
.document-stat strong, .document-stat span { display: block; }
.document-stat strong { color: var(--cz-color-text); font-size: 1.05rem; line-height: 1; }
.document-stat div span { margin-top: .2rem; color: var(--cz-color-text-muted); font-size: .68rem; font-weight: 700; }
.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.document-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 310px;
  flex-direction: column;
  overflow: hidden;
  padding: 1.15rem;
  background: var(--cz-color-surface);
  border: 1px solid var(--cz-color-border);
  border-radius: 1rem;
  box-shadow: 0 8px 22px rgba(15,23,42,.055);
}
.document-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--cz-color-primary); }
.document-card-required::before { background: var(--cz-color-orange); }
.document-card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.document-type-icon { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; color: var(--cz-color-danger); background: #fef2f2; border-radius: .7rem; font-size: 1.25rem; }
.document-status { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.status-signed { color: var(--cz-color-success); background: #f0fdf4; }
.status-declined { color: var(--cz-color-danger); background: #fef2f2; }
.status-required { color: #c2410c; background: #fff7ed; }
.status-optional { color: var(--cz-color-text-muted); background: #f1f5f9; }
.document-card-content { padding: 1rem 0; }
.document-kind { color: var(--cz-color-primary); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.document-card-content h3 { margin: .3rem 0 .4rem; font-size: 1.02rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.document-project { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--cz-color-text-muted); font-size: .8rem; }
.document-card-description { margin: .75rem 0 0; color: var(--cz-color-text-muted); font-size: .83rem; line-height: 1.55; }
.document-card-meta { display: flex; flex-wrap: wrap; gap: .45rem .85rem; margin-top: auto; padding: .8rem 0; border-top: 1px solid #e2e8f0; color: var(--cz-color-text-muted); font-size: .72rem; }
.document-card-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.document-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.document-card-actions > :only-child { grid-column: 1 / -1; }
.document-file-pending { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem; color: var(--cz-color-text-muted); background: #f8fafc; border: 1px dashed var(--cz-color-border); border-radius: var(--cz-control-radius); font-size: .78rem; font-weight: 700; }
.documents-empty { padding: 4rem 1.25rem; text-align: center; background: var(--cz-color-surface); border: 1px dashed var(--cz-color-border); border-radius: 1rem; }
.documents-empty-icon { display: grid; width: 4rem; height: 4rem; margin: 0 auto 1rem; place-items: center; color: var(--cz-color-primary); background: #f3e8ff; border-radius: 1rem; font-size: 1.75rem; }
.documents-empty h2 { margin-bottom: .4rem; font-size: 1.25rem; font-weight: 800; }
.documents-empty p { max-width: 540px; margin: 0 auto 1.25rem; color: var(--cz-color-text-muted); }
@media (max-width: 991.98px) {
  .documents-overview { grid-template-columns: 1fr; gap: 1rem; }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .document-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .document-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 0; }
}

/* Referrals dashboard tab */
.referral-overview { display:grid; grid-template-columns:1fr 1.25fr; align-items:center; gap:2rem; margin-bottom:1rem; padding:1.5rem; color:#fff; background:linear-gradient(135deg,var(--cz-color-primary),var(--cz-color-primary-hover)); border-radius:1rem; box-shadow:0 14px 32px rgba(76,29,149,.18); }
.referral-eyebrow { font-size:.68rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; opacity:.75; }
.referral-overview h2 { margin:.2rem 0 .35rem; color:#fff; font-size:1.45rem; font-weight:800; letter-spacing:-.03em; }
.referral-overview p { margin:0; color:#ede9fe; font-size:.88rem; }
.referral-stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.65rem; }
.referral-stat { display:flex; align-items:center; gap:.65rem; min-width:0; padding:.8rem; background:rgba(255,255,255,.11); border:1px solid rgba(255,255,255,.16); border-radius:.75rem; }
.referral-stat > i { display:grid; flex:0 0 2.1rem; width:2.1rem; height:2.1rem; place-items:center; background:rgba(255,255,255,.13); border-radius:.55rem; }
.referral-stat strong,.referral-stat span { display:block; }
.referral-stat strong { color:#fff; font-size:1.02rem; line-height:1.1; }
.referral-stat span { margin-top:.18rem; color:#ddd6fe; font-size:.66rem; font-weight:700; }
.referral-share-layout { display:grid; grid-template-columns:1.25fr .75fr; gap:1rem; margin-bottom:1rem; }
.referral-panel,.referral-activity-card { padding:1.25rem; background:var(--cz-color-surface); border:1px solid var(--cz-color-border); border-radius:1rem; box-shadow:0 8px 24px rgba(15,23,42,.055); }
.referral-section-heading { display:flex; align-items:center; gap:.75rem; margin-bottom:1rem; }
.referral-section-heading > i { display:grid; flex:0 0 2.5rem; width:2.5rem; height:2.5rem; place-items:center; color:var(--cz-color-primary); background:#f3e8ff; border-radius:.7rem; }
.referral-section-heading h3,.referral-activity-heading h3 { margin:0; font-size:1rem; font-weight:800; }
.referral-section-heading p,.referral-activity-heading p { margin:.15rem 0 0; color:var(--cz-color-text-muted); font-size:.78rem; }
.referral-code-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:.8rem; padding:.75rem; background:var(--cz-color-surface-muted); border:1px solid #e2e8f0; border-radius:.75rem; }
.referral-code-row span,.referral-code-row strong { display:block; }
.referral-code-row span { color:var(--cz-color-text-muted); font-size:.68rem; font-weight:700; text-transform:uppercase; }
.referral-code-row strong { margin-top:.15rem; letter-spacing:.08em; }
.referral-code-row input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.referral-tip { display:flex; gap:.55rem; margin-top:.8rem; padding:.7rem; color:#854d0e; background:#fffbeb; border-radius:.65rem; font-size:.76rem; }
.referral-tip p { margin:0; }
.referral-social-grid { display:grid; grid-template-columns:1fr 1fr; gap:.65rem; }
.referral-social-button { display:flex; min-height:68px; align-items:center; justify-content:center; gap:.5rem; padding:.75rem; color:var(--cz-color-text); background:#fff; border:1px solid var(--cz-color-border); border-radius:.75rem; font-weight:700; transition:border-color var(--cz-transition),background-color var(--cz-transition); }
.referral-social-button:hover { background:var(--cz-color-surface-muted); border-color:var(--cz-color-border-hover); }
.referral-social-button i { font-size:1.15rem; }
.referral-social-button.whatsapp i { color:#15803d; }.referral-social-button.facebook i { color:#2563eb; }.referral-social-button.twitter i { color:#0f172a; }.referral-social-button.email i { color:var(--cz-color-orange); }
.referral-activity-card { margin-bottom:1rem; padding:0; overflow:hidden; }
.referral-activity-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.1rem 1.25rem; border-bottom:1px solid #e2e8f0; }
.referral-activity-heading > div { display:flex; align-items:center; gap:.7rem; }
.referral-activity-heading > div > i { display:grid; width:2.35rem; height:2.35rem; place-items:center; color:var(--cz-color-primary); background:#f3e8ff; border-radius:.65rem; }
.referral-activity-heading > span { display:grid; min-width:2rem; height:2rem; place-items:center; color:var(--cz-color-primary); background:#f3e8ff; border-radius:999px; font-size:.75rem; font-weight:800; }
.referral-table td { font-size:.84rem; }.referral-table tbody tr:last-child td { border-bottom:0; }
.referral-person { display:flex; align-items:center; gap:.6rem; }.referral-person > span { display:grid; flex:0 0 2rem; width:2rem; height:2rem; place-items:center; color:var(--cz-color-primary); background:#f3e8ff; border-radius:50%; font-size:.72rem; font-weight:800; }
.referral-person strong,.referral-person small { display:block; }.referral-person small { color:var(--cz-color-text-muted); font-size:.7rem; }
.activity-status { display:inline-flex; padding:.3rem .5rem; border-radius:999px; font-size:.68rem; font-weight:800; text-transform:capitalize; }.activity-status.active,.activity-status.commission-paid { color:var(--cz-color-success); background:#f0fdf4; }.activity-status.inactive { color:var(--cz-color-text-muted); background:#f1f5f9; }.activity-status.commission-pending { color:#b45309; background:#fffbeb; }.activity-status.commission-approved { color:#1d4ed8; background:#eff6ff; }
.referral-empty { padding:3rem 1rem; text-align:center; }.referral-empty > i { display:grid; width:3.5rem; height:3.5rem; margin:0 auto 1rem; place-items:center; color:var(--cz-color-primary); background:#f3e8ff; border-radius:1rem; font-size:1.4rem; }.referral-empty h4 { margin:0 0 .3rem; font-size:1rem; font-weight:800; }.referral-empty p { margin:0; color:var(--cz-color-text-muted); font-size:.82rem; }
@media(max-width:991.98px){.referral-overview,.referral-share-layout{grid-template-columns:1fr}.referral-stat-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:575.98px){.referral-overview{padding:1.1rem}.referral-stat-grid{grid-template-columns:1fr}.referral-social-grid{grid-template-columns:1fr}.referral-code-row{align-items:stretch;flex-direction:column}.referral-code-row .btn{width:100%}}

/* Billing and support dashboard tabs */
.billing-overview { display:flex; align-items:center; justify-content:space-between; gap:2rem; margin-bottom:1rem; padding:1.35rem 1.5rem; background:linear-gradient(135deg,#fff 55%,#faf7ff); border:1px solid var(--cz-color-border); border-radius:1rem; box-shadow:0 8px 24px rgba(15,23,42,.06); }
.billing-eyebrow,.support-eyebrow,.support-section-heading span { color:var(--cz-color-primary); font-size:.68rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.billing-overview h2,.support-hero h2 { margin:.15rem 0 .3rem; font-size:1.4rem; font-weight:800; letter-spacing:-.03em; }.billing-overview p,.support-hero p { margin:0; color:var(--cz-color-text-muted); font-size:.86rem; }
.billing-total { display:flex; flex:0 0 auto; align-items:center; gap:.7rem; min-width:145px; padding:.8rem; background:#fff; border:1px solid #e2e8f0; border-radius:.75rem; }.billing-total > i { display:grid; width:2.3rem; height:2.3rem; place-items:center; color:var(--cz-color-primary); background:#f3e8ff; border-radius:.65rem; }.billing-total strong,.billing-total span{display:block}.billing-total strong{font-size:1.1rem;line-height:1}.billing-total span{margin-top:.2rem;color:var(--cz-color-text-muted);font-size:.68rem;font-weight:700}
.billing-table-wrap { overflow:hidden; border:1px solid var(--cz-color-border)!important; border-radius:1rem!important; }.billing-table thead th{background:var(--cz-color-surface-muted)!important}.billing-table tbody th{color:var(--cz-color-primary);font-size:.78rem}.billing-table td{font-size:.82rem}
.support-hero { display:grid; grid-template-columns:1.35fr .65fr; align-items:center; gap:2rem; padding:1.75rem; color:#fff; background:linear-gradient(135deg,var(--cz-color-primary),var(--cz-color-primary-hover)); border-radius:1rem; box-shadow:0 14px 32px rgba(76,29,149,.18); }.support-hero .support-eyebrow{color:#ddd6fe}.support-hero h2{color:#fff;font-size:1.65rem}.support-hero p{max-width:620px;color:#ede9fe}.support-primary-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.1rem}.support-hero .btn-primary{color:var(--cz-color-primary)!important;background:#fff!important;border-color:#fff!important}.support-hero .btn-outline-primary{color:#fff!important;border-color:rgba(255,255,255,.65)!important}.support-hero .btn-outline-primary:hover{background:rgba(255,255,255,.12)!important}
.support-response-card { display:flex; gap:.75rem; padding:1rem; background:rgba(255,255,255,.11); border:1px solid rgba(255,255,255,.16); border-radius:.85rem; }.support-response-card > span{display:grid;flex:0 0 2.5rem;width:2.5rem;height:2.5rem;place-items:center;background:rgba(255,255,255,.14);border-radius:.65rem}.support-response-card strong{display:block;color:#fff;font-size:.88rem}.support-response-card p{margin-top:.25rem;color:#ddd6fe;font-size:.75rem;line-height:1.5}
.support-resource-section { margin-top:1rem; padding:1.35rem; background:var(--cz-color-surface); border:1px solid var(--cz-color-border); border-radius:1rem; box-shadow:0 8px 24px rgba(15,23,42,.055); }.support-section-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1rem}.support-section-heading h3{margin:.15rem 0 0;font-size:1.1rem;font-weight:800}.support-section-heading>p{margin:0;color:var(--cz-color-text-muted);font-size:.78rem}
.support-resource-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.75rem; }.support-resource-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;padding:1rem;color:var(--cz-color-text);background:var(--cz-color-surface-muted);border:1px solid #e2e8f0;border-radius:.8rem;text-decoration:none}.support-resource-card>i{display:grid;width:2.4rem;height:2.4rem;place-items:center;color:var(--cz-color-primary);background:#f3e8ff;border-radius:.65rem}.support-resource-card h4{margin:0;font-size:.88rem;font-weight:800}.support-resource-card p{margin:.2rem 0 0;color:var(--cz-color-text-muted);font-size:.74rem}.support-resource-card>.bi-arrow-right{width:auto;height:auto;background:none;color:var(--cz-color-text-muted)}.support-resource-card:hover{color:var(--cz-color-primary);border-color:#c4b5fd;background:#faf7ff}
.support-app-banner { display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem;padding:1rem 1.25rem;background:#fff;border:1px solid var(--cz-color-border);border-radius:1rem}.support-app-banner>div:first-child{display:flex;align-items:center;gap:.75rem}.support-app-banner>div:first-child>i{display:grid;width:2.5rem;height:2.5rem;place-items:center;color:var(--cz-color-orange);background:#fff7ed;border-radius:.65rem}.support-app-banner h3{margin:0;font-size:.9rem;font-weight:800}.support-app-banner p{margin:.15rem 0 0;color:var(--cz-color-text-muted);font-size:.75rem}.support-app-actions{display:flex;gap:.5rem}
@media(max-width:767.98px){.billing-overview{align-items:flex-start;flex-direction:column;gap:1rem}.billing-total{width:100%}.support-hero{grid-template-columns:1fr;padding:1.25rem}.support-resource-grid{grid-template-columns:1fr}.support-section-heading,.support-app-banner{align-items:flex-start;flex-direction:column}.support-app-actions{width:100%;flex-direction:column}.support-app-actions .btn{width:100%}}

/* Services dashboard tab */
.services-overview { display:flex; align-items:center; justify-content:space-between; gap:2rem; margin-bottom:1rem; padding:1.45rem 1.5rem; background:linear-gradient(135deg,#fff 55%,#faf7ff); border:1px solid var(--cz-color-border); border-radius:1rem; box-shadow:0 8px 24px rgba(15,23,42,.06); }
.services-eyebrow { color:var(--cz-color-primary); font-size:.68rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }.services-overview h2{margin:.15rem 0 .3rem;font-size:1.4rem;font-weight:800;letter-spacing:-.03em}.services-overview p{max-width:720px;margin:0;color:var(--cz-color-text-muted);font-size:.86rem;line-height:1.55}.services-overview>.btn{flex:0 0 auto}
.service-catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.service-card { position:relative; display:flex; min-width:0; min-height:360px; flex-direction:column; overflow:hidden; padding:1.25rem; background:var(--cz-color-surface); border:1px solid var(--cz-color-border); border-radius:1rem; box-shadow:0 8px 22px rgba(15,23,42,.055); }
.service-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--cz-color-primary)}.service-card-heading{display:flex;align-items:center;gap:.7rem}.service-card-heading>span{display:grid;width:2.75rem;height:2.75rem;place-items:center;color:var(--cz-color-primary);background:#f3e8ff;border-radius:.75rem;font-size:1.2rem}.service-card-heading small{color:var(--cz-color-text-muted);font-size:.67rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.service-card h3{margin:1rem 0 .35rem;font-size:1.05rem;font-weight:800}.service-card>p{margin:0;color:var(--cz-color-text-muted);font-size:.82rem;line-height:1.5}.service-card ul{display:grid;gap:.45rem;margin:1rem 0;padding:0;list-style:none;color:var(--cz-color-text);font-size:.78rem}.service-card li{display:flex;align-items:center;gap:.45rem}.service-card li::before{content:"";width:.35rem;height:.35rem;background:var(--cz-color-primary);border-radius:50%}
.service-card-footer{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-top:auto;padding-top:.9rem;border-top:1px solid #e2e8f0}.service-card-footer span{color:var(--cz-color-text-muted);font-size:.7rem;font-weight:700}.service-card-footer strong{color:var(--cz-color-primary);font-size:1rem}
.service-data::before{background:var(--cz-color-success)}.service-data .service-card-heading>span{color:var(--cz-color-success);background:#f0fdf4}.service-data li::before{background:var(--cz-color-success)}.service-web::before,.service-mobile::before{background:var(--cz-color-orange)}.service-web .service-card-heading>span,.service-mobile .service-card-heading>span{color:var(--cz-color-orange);background:#fff7ed}.service-web li::before,.service-mobile li::before{background:var(--cz-color-orange)}.service-cloud::before{background:#0284c7}.service-cloud .service-card-heading>span{color:#0284c7;background:#f0f9ff}.service-cloud li::before{background:#0284c7}.service-software::before{background:#475569}.service-software .service-card-heading>span{color:#475569;background:#f1f5f9}.service-software li::before{background:#475569}
.services-cta { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; margin-top:1rem; padding:1.1rem 1.25rem; background:#fff; border:1px solid var(--cz-color-border); border-radius:1rem }.services-cta>div{display:flex;align-items:center;gap:.75rem}.services-cta>div>span{display:grid;width:2.5rem;height:2.5rem;place-items:center;color:var(--cz-color-orange);background:#fff7ed;border-radius:.7rem}.services-cta h3{margin:0;font-size:.92rem;font-weight:800}.services-cta p{margin:.15rem 0 0;color:var(--cz-color-text-muted);font-size:.76rem}
@media(max-width:991.98px){.service-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.services-overview,.services-cta{align-items:flex-start;flex-direction:column}.services-overview>.btn,.services-cta>.btn{width:100%}.service-catalog{grid-template-columns:1fr}.service-card{min-height:0}}

/* Project request wizard */
.project-wizard-overview { display:flex; align-items:center; gap:1rem; width:100%; margin:0 0 1rem; padding:1.25rem 1.4rem; background:linear-gradient(135deg,#fff 55%,#faf7ff); border:1px solid var(--cz-color-border); border-radius:1rem; box-shadow:0 8px 24px rgba(15,23,42,.06); }
.project-wizard-icon { display:grid; flex:0 0 3rem; width:3rem; height:3rem; place-items:center; color:var(--cz-color-primary); background:#f3e8ff; border-radius:.8rem; font-size:1.25rem; }.project-wizard-eyebrow{color:var(--cz-color-primary);font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.project-wizard-overview h2{margin:.1rem 0 .25rem;font-size:1.2rem;font-weight:800;letter-spacing:-.025em}.project-wizard-overview p{margin:0;color:var(--cz-color-text-muted);font-size:.8rem}.project-wizard-time{display:inline-flex;flex:0 0 auto;align-items:center;gap:.35rem;margin-left:auto;padding:.45rem .65rem;color:var(--cz-color-text-muted);background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;font-size:.7rem;font-weight:700}
#projects .project-form { width:100%; max-width:none; margin:0; padding:1.4rem!important; border:1px solid var(--cz-color-border)!important; border-radius:1rem!important; box-shadow:0 10px 28px rgba(15,23,42,.07)!important; }
#step-indicator { position:relative; gap:.25rem; margin:0 0 1.4rem!important; padding:0 0 1.1rem!important; border-bottom:1px solid #e2e8f0; }
#step-indicator::before { content:""; position:absolute; top:1rem; right:8%; left:8%; height:2px; background:#e2e8f0; }
#step-indicator .step { position:relative; z-index:1; min-width:0; }
#step-indicator .step::after { display:none; }
#step-indicator .step-number { width:2rem; height:2rem; margin-bottom:.45rem; color:var(--cz-color-text-muted); background:#fff; border:2px solid #cbd5e1; font-size:.75rem; font-weight:800; }
#step-indicator .step.completed .step-number { color:#fff; background:var(--cz-color-primary); border-color:var(--cz-color-primary); box-shadow:0 0 0 4px #f3e8ff; }
#step-indicator .step-title { color:var(--cz-color-text-muted); font-size:.68rem; font-weight:700; line-height:1.25; }
#step-indicator .step.completed .step-title { color:var(--cz-color-primary); }
#projects .form-section fieldset { margin:0 0 1rem!important; padding:1.25rem!important; background:#fff!important; border:1px solid #e2e8f0!important; border-radius:.85rem!important; box-shadow:none!important; }
#projects .form-section legend { color:var(--cz-color-text); font-size:.85rem!important; font-weight:800; }
#projects .form-section .row { align-items:end; }
#projects .form-section .mb-3 { margin-bottom:.75rem!important; }
#description textarea { width:100%!important; min-height:240px!important; line-height:1.6!important; }
#description .input-group { width:100%; }
#projects .form-section > .btn.w-100 { max-width:220px; margin-left:auto; }
#projects .form-section > .d-flex { padding-top:.25rem; }
#projects .form-section > .d-flex .btn { min-width:140px; box-shadow:none!important; }
#projects .package-card,#projects [class*="package"] .card { border-color:#e2e8f0!important; box-shadow:none!important; }
#projects #feedback-message { margin-top:1rem; border-radius:.75rem; }
@media(max-width:767.98px){.project-wizard-overview{align-items:flex-start}.project-wizard-time{display:none}#projects .project-form{padding:1rem!important}#step-indicator{align-items:flex-start!important;overflow-x:auto;justify-content:flex-start!important;gap:.75rem}#step-indicator::before{display:none}#step-indicator .step{flex:0 0 72px}#step-indicator .step-title{font-size:.62rem}#projects .form-section fieldset{padding:1rem!important}#projects .form-section>.btn.w-100{max-width:none}#projects .form-section>.d-flex{gap:.5rem!important}#projects .form-section>.d-flex .btn{min-width:0}}
.signing-shell { max-width: 1180px; }
.signing-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.25rem;
  color: var(--cz-color-text-muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}
.signing-back-link:hover { color: var(--cz-color-primary); }
.signing-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.5rem;
  color: var(--cz-color-text);
  background: var(--cz-color-surface);
  border: 1px solid var(--cz-color-border);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}
.signing-header-icon,
.signing-section-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--cz-color-primary);
  background: #f3e8ff;
  border-radius: .85rem;
}
.signing-header-icon { width: 3.4rem; height: 3.4rem; font-size: 1.45rem; }
.signing-header h1 { margin: .1rem 0 .2rem; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.signing-header p { margin: 0; color: var(--cz-color-text-muted); }
.signing-eyebrow,
.signing-section-kicker {
  color: var(--cz-color-primary);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.signing-required-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  padding: .45rem .7rem;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.signing-alert { display: flex; align-items: center; gap: .65rem; }
.signing-card {
  overflow: hidden;
  padding: 1.4rem;
  background: var(--cz-color-surface);
  border: 1px solid var(--cz-color-border);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}
.signing-card-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.signing-section-icon { width: 2.65rem; height: 2.65rem; font-size: 1.05rem; }
.signing-card-heading h2 { margin: .1rem 0 0; font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.document-facts { margin: 0; border-top: 1px solid #e2e8f0; }
.document-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .78rem 0; border-bottom: 1px solid #e2e8f0; }
.document-facts dt { color: var(--cz-color-text-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.document-facts dd { margin: 0; font-size: .88rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.document-description { padding: 1rem 0; }
.document-description > span { color: var(--cz-color-text-muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.document-description p { margin: .35rem 0 0; color: var(--cz-color-text-muted); font-size: .9rem; }
.document-review-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  padding: 1rem;
  background: var(--cz-color-surface-muted);
  border: 1px solid #e2e8f0;
  border-radius: .8rem;
}
.document-review-box .btn,
.document-review-box .alert { grid-column: 1 / -1; }
.document-pdf-icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; color: var(--cz-color-danger); background: #fef2f2; border-radius: .65rem; font-size: 1.2rem; }
.document-review-box h3 { margin: .1rem 0 .15rem; font-size: .92rem; font-weight: 800; }
.document-review-box p { margin: 0; color: var(--cz-color-text-muted); font-size: .8rem; }
.signing-notice { display: flex; gap: .8rem; margin-top: 1rem; padding: 1rem; color: #854d0e; background: #fffbeb; border: 1px solid #fde68a; border-radius: .85rem; }
.signing-notice > i { font-size: 1.15rem; }
.signing-notice h2 { margin: 0 0 .35rem; font-size: .88rem; font-weight: 800; }
.signing-notice ul { margin: 0; padding-left: 1rem; font-size: .78rem; line-height: 1.6; }
.signature-workspace { padding: 1.5rem; }
.signature-method { margin-bottom: 1rem; }
.signature-method-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .45rem; }
.signature-method-toggle .btn { width: 100%; }
.signature-panel { padding: 1rem; background: var(--cz-color-surface-muted); border: 1px solid #e2e8f0; border-radius: .85rem; }
.signature-panel-label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.signature-panel-label label { font-weight: 750; }
.signature-panel-label span { color: var(--cz-color-text-muted); font-size: .78rem; }
.signature-container { overflow: hidden; background: #fff; border: 1px dashed var(--cz-color-border-hover); border-radius: .65rem; cursor: crosshair; touch-action: none; }
#signatureCanvas { display: block; width: 100%; height: 190px; background: #fff; }
.signature-tools { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .65rem; }
.signature-type-panel { display: none; }
.signature-preview { display: grid; min-height: 105px; margin-top: .75rem; place-items: center; color: var(--cz-color-primary-hover); background: #fff; border: 1px dashed var(--cz-color-border-hover); border-radius: .65rem; }
.signature-preview span { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.signer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.signing-consent { display: flex; gap: .65rem; padding: .85rem; color: var(--cz-color-text-muted); background: #f8fafc; border-radius: .7rem; font-size: .8rem; }
.signing-consent i { color: var(--cz-color-primary); }
.signing-consent p { margin: 0; }
.signing-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.signing-unavailable { padding-block: 4rem; text-align: center; }
.signing-unavailable > i { color: var(--cz-color-text-muted); font-size: 3rem; }
.signing-unavailable h2 { margin-top: 1rem; font-size: 1.3rem; font-weight: 800; }
.signing-unavailable p { color: var(--cz-color-text-muted); }
@media (max-width: 767.98px) {
  .document-signing-page { padding-top: 1rem; }
  .signing-header { align-items: flex-start; padding: 1rem; }
  .signing-required-badge { position: absolute; right: 1rem; }
  .signing-header p { padding-right: 1rem; font-size: .85rem; }
  .signature-panel-label { flex-direction: column; gap: .1rem; }
  #signatureCanvas { height: 150px; }
  .signer-fields { grid-template-columns: 1fr; }
  .signing-actions { flex-direction: column-reverse; }
  .signing-actions .btn { width: 100%; }
}
