/* ========== CSS Variables ========== */
:root {
    --primary: #4361ee;
    --primary-dark: #3f37c9;
    --primary-light: #5a67d8;
    --secondary: #7209b7;
    --font-body: 'Vazirmatn', 'Vazir', system-ui, -apple-system, sans-serif;
    --font-heading: 'Estedad', 'Vazirmatn', 'Vazir', system-ui, -apple-system, sans-serif;
    --font-display: 'Lalezar', 'Estedad', 'Vazirmatn', 'Vazir', system-ui, -apple-system, sans-serif;
    --tracking-tight-fa: -0.02em;
}

/* ========== Base Reset & Typography ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}
.scroll-smooth { scroll-behavior: smooth; }
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lalezar';
    src: url('../fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Thin-FD-WOL.woff2') format('woff2'),
         url('../fonts/Vazir-Thin-FD-WOL.woff') format('woff'),
         url('../fonts/Vazir-Thin-FD-WOL.ttf') format('truetype');
    font-weight: 100;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Light-FD-WOL.woff2') format('woff2'),
         url('../fonts/Vazir-Light-FD-WOL.woff') format('woff'),
         url('../fonts/Vazir-Light-FD-WOL.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-FD-WOL.woff2') format('woff2'),
         url('../fonts/Vazir-FD-WOL.woff') format('woff'),
         url('../fonts/Vazir-FD-WOL.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium-FD-WOL.woff2') format('woff2'),
         url('../fonts/Vazir-Medium-FD-WOL.woff') format('woff'),
         url('../fonts/Vazir-Medium-FD-WOL.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold-FD-WOL.woff2') format('woff2'),
         url('../fonts/Vazir-Bold-FD-WOL.woff') format('woff'),
         url('../fonts/Vazir-Bold-FD-WOL.ttf') format('truetype');
    font-weight: 700;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(to bottom right, #f8fafc, #e0e7ff, #ddd6fe);
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font-family: var(--font-body);
}

h1,
.display-title,
.hero-title,
.dashboard-welcome,
.page-title,
.empty-state-title {
    font-family: var(--font-display);
    letter-spacing: var(--tracking-tight-fa);
    line-height: 1.25;
    font-weight: 400;
}

h2,
h3,
h4,
h5,
h6,
.section-title,
.dashboard-card-title,
.modal-title,
.form-label,
.widget-title,
.table-title,
.nav-brand strong,
.page-section-title {
    font-family: var(--font-heading);
    letter-spacing: var(--tracking-tight-fa);
}

h2,
.dashboard-card-title,
.section-title {
    font-weight: 700;
}

h6,
.form-label,
.widget-title,
.table-title {
    font-weight: 600;
}

body,
p,
span,
small,
li,
a,
label,
input,
select,
textarea,
button,
.badge,
.status-badge,
.table-user-name,
.table-user-simple,
.dashboard-date {
    font-family: var(--font-body);
}

/* ========== Utility Classes ========== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-x-reverse { direction: ltr; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mt-32 { margin-top: 8rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }

.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    padding: 2rem 1rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.12) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 0 40px rgba(255,255,255,0.35);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    display: block;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    background: linear-gradient(to right, #c7d2fe, #ddd6fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 1rem;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* ========== Countdown ========== */
.countdown-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    margin: 0 auto 4rem;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.countdown-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-units {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.countdown-label {
    font-size: clamp(0.875rem, 1.5vw, 1.25rem);
    opacity: 0.85;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== Header Navigation ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

header nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header nav > div {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header nav > div > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

header nav a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== Feature Cards ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 1.5rem;
    padding: 2.5rem 1.75rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-12px);
    border-color: rgba(165, 180, 252, 0.6);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    background: rgba(255,255,255,1);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.stat-desc {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ========== Glass Card ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ========== Buttons ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    font-weight: 700;
    border-radius: 1rem;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(67, 97, 238, 0.4);
}

.coming-soon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    background: white;
    color: #4f46e5;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    text-decoration: none;
}

.coming-soon-btn:hover {
    transform: scale(1.06) translateY(-2px);
    background: #f3f4f6;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ========== Gradient Text ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Footer ========== */
footer {
    background: linear-gradient(135deg, #111827, #1a1a2e, #111827);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: white;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

/* ========== Animations ========== */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.animate-slide-down {
    animation: slideDown 0.5s ease-out forwards;
}

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

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4361ee, #7209b7);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3f37c9, #5a189a);
}

/* ========== Selection ========== */
::selection {
    background: var(--primary);
    color: white;
}

/* ========== Responsive Grid ========== */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:flex {
        display: flex;
    }
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ========== Responsive Utilities ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-subtitle {
        font-size: 1.5rem !important;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    header nav > div > div {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ========== Copyright ========== */
.copyright {
    margin-top: 5rem;
    font-size: 1.1rem;
    opacity: 0.8;
}
/* ========== Authentication Pages Styles ========== */

.auth-page-wrapper {
    min-height: calc(100vh - 5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.14), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1120px;
    width: 100%;
}

.auth-container-balanced {
    align-items: stretch;
}

.auth-container-narrow {
    max-width: 640px;
}

@media (min-width: 1024px) {
    .auth-container {
        grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
        gap: 2rem;
        align-items: center;
    }
}

.auth-side-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.93));
    color: #f8fafc;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.auth-side-panel::before,
.auth-side-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-side-panel::before {
    width: 15rem;
    height: 15rem;
    top: -7rem;
    right: -4rem;
    background: rgba(59, 130, 246, 0.22);
}

.auth-side-panel::after {
    width: 12rem;
    height: 12rem;
    bottom: -5rem;
    left: -4rem;
    background: rgba(16, 185, 129, 0.16);
}

.auth-eyebrow,
.auth-panel-title,
.auth-panel-text,
.auth-panel-points {
    position: relative;
    z-index: 1;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.auth-panel-title {
    font-size: clamp(1.85rem, 2.8vw, 2.6rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: #ffffff;
}

.auth-panel-text {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 1.5rem;
}

.auth-panel-points {
    display: grid;
    gap: 1rem;
}

.auth-panel-point {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-panel-point i {
    flex-shrink: 0;
    font-size: 1.35rem;
    color: #7dd3fc;
    margin-top: 0.1rem;
}

.auth-panel-point strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.auth-panel-point p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: rgba(248, 250, 252, 0.78);
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 2rem;
    padding: 2rem 1.35rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.auth-card-compact {
    align-self: center;
}

.auth-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-icon {
    width: 4.25rem;
    height: 4.25rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.2);
}

.auth-icon.auth-icon-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.auth-icon i {
    font-size: 2rem;
    color: white;
}

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

.auth-title {
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.auth-subtitle {
    font-size: 0.96rem;
    color: #64748b;
    line-height: 1.8;
}

.auth-toggle-group {
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    margin-bottom: 1.5rem;
    background: #e2e8f0;
    border-radius: 1rem;
    border: 1px solid #cbd5e1;
}

.auth-toggle-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: 0.85rem;
    padding: 0.8rem 1rem;
    font-weight: 800;
    color: #475569;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-toggle-pill:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.56);
}

.auth-toggle-pill.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
}

.form-label i {
    font-size: 1rem;
    color: var(--primary);
}

.form-input {
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 0.98rem;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input-error {
    border-color: #ef4444;
}

.form-input-error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-error {
    font-size: 0.82rem;
    color: #dc2626;
}

.form-hint {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.7;
    margin-top: 0.1rem;
}

.auth-error-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.95rem;
    color: #b91c1c;
    font-weight: 700;
}

.auth-error-box i {
    font-size: 1.15rem;
}

.auth-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.4rem;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.auth-btn-primary i {
    font-size: 1.15rem;
}

.auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-btn-secondary:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center;
}

.auth-footer-text {
    font-size: 0.92rem;
    color: #64748b;
    text-align: center;
}

.auth-link,
.auth-link-inline {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover,
.auth-link-inline:hover {
    color: var(--primary-dark);
}

.auth-divider {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-side-info {
    display: none;
}

.auth-benefit {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.auth-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.auth-benefit i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.auth-benefit h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.auth-benefit p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

.auth-info-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-info-item {
    display: flex;
    align-items: start;
    gap: 0.875rem;
}

.auth-info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.125rem;
}

.auth-info-item p {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 1023px) {
    .auth-page-wrapper {
        padding: 1.5rem 0.9rem 2rem;
    }

    .auth-side-panel {
        padding: 1.5rem;
        border-radius: 1.6rem;
    }

    .auth-panel-title {
        font-size: 1.65rem;
    }
}

@media (max-width: 640px) {
    .auth-container {
        gap: 1rem;
    }

    .auth-side-panel {
        padding: 1.3rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 1.5rem;
    }

    .auth-panel-title {
        font-size: 1.45rem;
    }

    .auth-panel-text,
    .auth-panel-point p,
    .auth-subtitle {
        font-size: 0.92rem;
    }

    .auth-btn-primary,
    .auth-btn-secondary {
        font-size: 0.95rem;
    }
}

/* ========== Dashboard Layout Styles ========== */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.dashboard-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    padding-top: 5rem;
}

/* ========== Dashboard Sidebar ========== */

.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo-tenant {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(99, 102, 241, 0.2));
    padding: 1rem;
    border-radius: 1rem;
}

.sidebar-logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.sidebar-logo-text h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.sidebar-logo-text p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.25rem 0 0 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-link-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.4);
}

.sidebar-link i {
    font-size: 1.25rem;
}

.sidebar-menu-group {
    margin-bottom: 0.25rem;
}

.sidebar-menu-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu-trigger-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 500;
}

.sidebar-menu-trigger-content i {
    font-size: 1.25rem;
}

.sidebar-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.1875rem 0.5rem;
    border-radius: 9999px;
    margin-left: auto;
}

.sidebar-menu-arrow {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.sidebar-submenu {
    padding: 0.5rem 0 0.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.sidebar-submenu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-submenu-link i {
    font-size: 1rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.875rem;
}

.sidebar-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.sidebar-user-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.sidebar-user-info p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.125rem 0 0 0;
}

/* ========== Dashboard Main Content ========== */

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-topbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dashboard-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-greeting {
    flex: 1;
}

.dashboard-welcome {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

.dashboard-date i {
    font-size: 1.125rem;
}

.dashboard-quick-actions {
    display: flex;
    gap: 0.75rem;
}

.quick-action-btn {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    background: #f3f4f6;
    border: none;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 1.25rem;
    color: #4b5563;
}

.quick-action-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #ef4444;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* ========== Dashboard Stats Grid ========== */

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-stats-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-stat-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.stat-card-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.stat-card-gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
}

.stat-card-gradient-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-card-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
}

.stat-card-blue .stat-card-icon,
.stat-card-green .stat-card-icon,
.stat-card-purple .stat-card-icon,
.stat-card-orange .stat-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-card-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon i {
    font-size: 2rem;
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.9;
    margin: 0 0 0.5rem 0;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    line-height: 1;
}

.stat-card-change,
.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.stat-change-up,
.stat-trend-up {
    color: #10b981;
}

.stat-change-down,
.stat-trend-down {
    color: #ef4444;
}

.stat-card-gradient-blue .stat-card-change,
.stat-card-gradient-green .stat-card-change,
.stat-card-gradient-orange .stat-card-change,
.stat-card-gradient-purple .stat-card-change {
    color: rgba(255, 255, 255, 0.9);
}

.stat-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.stat-badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #059669;
}

/* ========== Dashboard Cards ========== */

.dashboard-card {
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.dashboard-card-title i {
    font-size: 1.5rem;
    color: var(--primary);
}

.dashboard-card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dashboard-card-link:hover {
    gap: 0.75rem;
}

.dashboard-card-body {
    padding: 1.75rem;
}

.dashboard-card-quick .dashboard-card-body {
    padding: 1.25rem;
}

/* ========== Dashboard Content Grid ========== */

.dashboard-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

.dashboard-left-column,
.dashboard-right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (max-width: 1280px) {
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Task List ========== */

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.task-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.875rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: #f3f4f6;
}

.task-priority-high {
    border-left-color: #ef4444;
}

.task-priority-medium {
    border-left-color: #f59e0b;
}

.task-priority-low {
    border-left-color: #10b981;
}

.task-checkbox {
    position: relative;
}

.task-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
}

.task-completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.task-deadline,
.task-priority {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.task-priority {
    padding: 0.1875rem 0.625rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
}

.task-priority-high .task-priority {
    background: #fee2e2;
    color: #dc2626;
}

.task-priority-medium .task-priority {
    background: #fef3c7;
    color: #d97706;
}

.task-priority-low .task-priority {
    background: #d1fae5;
    color: #059669;
}

/* ========== Attendance Tracker ========== */

.attendance-tracker {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.attendance-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 1rem;
}

.attendance-status-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #10b981;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.attendance-status-text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.attendance-status-text p {
    font-size: 0.875rem;
    color: #059669;
    margin: 0;
}

.attendance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.attendance-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.attendance-btn-checkin {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.attendance-btn-checkin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.attendance-btn-checkout {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.attendance-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.attendance-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.attendance-summary-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    text-align: center;
}

.attendance-summary-label {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.attendance-summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
}

/* ========== Quick Actions Grid ========== */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: #f9fafb;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-item:hover {
    background: #f3f4f6;
    transform: translateY(-4px);
}

.quick-action-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.quick-action-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.quick-action-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.quick-action-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.quick-action-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.quick-action-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

/* ========== Ticket List ========== */

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ticket-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
}

.ticket-item:hover {
    background: #f3f4f6;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.ticket-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 1;
}

.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ticket-badge-open {
    background: #dbeafe;
    color: #1d4ed8;
}

.ticket-badge-pending {
    background: #fef3c7;
    color: #d97706;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* ========== Activity Timeline ========== */

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: start;
    gap: 1rem;
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.activity-icon-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.activity-icon-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.activity-icon-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.activity-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9375rem;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.activity-time {
    font-size: 0.8125rem;
    color: #6b7280;
}

.activity-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========== Companies Grid ========== */

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.company-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.company-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.company-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.company-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.company-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.company-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.company-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.company-card-badge {
    display: flex;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-badge-success {
    background: #d1fae5;
    color: #059669;
}

.status-badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.company-card-body {
    margin-bottom: 1.25rem;
}

.company-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.company-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.company-stat i {
    color: var(--primary);
}

.company-card-footer {
    display: flex;
    gap: 0.75rem;
}

.company-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.company-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.company-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.3);
}

.company-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.company-btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #f3f4f6;
    border: none;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.company-btn-icon:hover {
    background: #e5e7eb;
}

.company-btn-icon i {
    font-size: 1.125rem;
    color: #4b5563;
}

/* ========== Subscription Overview ========== */

.subscription-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subscription-plan {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 1.25rem;
}

.subscription-plan-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.subscription-plan-info {
    flex: 1;
}

.subscription-plan-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.subscription-plan-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.subscription-plan-price {
    text-align: left;
}

.price-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary);
}

.price-currency {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.subscription-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.subscription-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #1f2937;
}

.subscription-feature i {
    color: #10b981;
    font-size: 1.125rem;
}

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

.dashboard-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.3);
}

.dashboard-btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }

    .subscription-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-topbar {
        padding: 1rem;
    }

    .dashboard-welcome {
        font-size: 1.375rem;
    }

    .attendance-actions {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}
/* ========== Landing Page Module Cards ========== */

.feature-highlight-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.feature-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card-blue {
    border-color: #3b82f6;
}

.feature-card-blue:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.feature-card-green {
    border-color: #10b981;
}

.feature-card-green:hover {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.feature-card-purple {
    border-color: #8b5cf6;
}

.feature-card-purple:hover {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.feature-card-orange {
    border-color: #f59e0b;
}

.feature-card-orange:hover {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.feature-highlight-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card-blue .feature-highlight-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.feature-card-green .feature-highlight-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-card-purple .feature-highlight-icon {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.feature-card-orange .feature-highlight-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-highlight-card:hover .feature-highlight-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-highlight-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.feature-highlight-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ========== Module Cards ========== */

.module-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
    border: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.module-card-blue:hover {
    border-color: #3b82f6;
}

.module-card-green:hover {
    border-color: #10b981;
}

.module-card-orange:hover {
    border-color: #f59e0b;
}

.module-card-indigo:hover {
    border-color: #6366f1;
}

.module-card-purple:hover {
    border-color: #8b5cf6;
}

.module-card-red:hover {
    border-color: #ef4444;
}

.module-card-teal:hover {
    border-color: #14b8a6;
}

.module-card-pink:hover {
    border-color: #ec4899;
}

.module-card-cyan:hover {
    border-color: #06b6d4;
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.module-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.module-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.module-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.module-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.module-icon-indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.module-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.module-icon-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.module-icon-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.module-icon-pink {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.module-icon-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.module-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.module-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.module-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.module-features li i {
    color: #10b981;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ========== Pricing Cards ========== */

.pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 1.75rem;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.pricing-card-popular {
    border-color: var(--primary);
    border-width: 3px;
    transform: scale(1.05);
}

.pricing-card-popular:hover {
    transform: scale(1.08) translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    left: -2rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 2.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    transform: rotate(-45deg);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.pricing-card-header {
    text-align: center;
    padding: 2.5rem 2rem 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.pricing-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
}

.pricing-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.pricing-icon-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.pricing-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.pricing-plan-name {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.pricing-plan-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
}

.pricing-card-body {
    padding: 2.5rem 2rem;
}

.pricing-amount {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-currency {
    display: block;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
}

.pricing-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 0.5rem 0;
}

.pricing-value-custom {
    display: block;
    font-size: 1.75rem;
    font-weight: 900;
    color: #1f2937;
    padding: 2rem 0;
}

.pricing-period {
    display: block;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #1f2937;
}

.pricing-features li i {
    font-size: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
}

.pricing-feature-disabled {
    opacity: 0.4;
}

.pricing-feature-disabled i {
    color: #9ca3af;
}

.pricing-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
}

.pricing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(67, 97, 238, 0.4);
}

.pricing-btn-outline {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.pricing-btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .pricing-card-popular {
        transform: scale(1);
    }

    .pricing-card-popular:hover {
        transform: translateY(-8px);
    }

    .module-card-header {
        flex-direction: column;
        text-align: center;
    }

    .feature-highlight-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
    }

    .pricing-value {
        font-size: 2.5rem;
    }
}

/* ========== Company Management Styles ========== */

/* Filter Form */
.company-filter-form {
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.filter-label i {
    font-size: 1rem;
    color: var(--primary);
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.filter-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.3);
}

.filter-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.filter-btn-secondary:hover {
    background: #e5e7eb;
}

/* Company Card Enhancements */
.company-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.company-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.company-meta-item i {
    color: var(--primary);
}

.company-subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0369a1;
    margin-top: 1rem;
}

.company-btn-view,
.company-btn-edit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.company-btn-view {
    background: #f3f4f6;
    color: #4b5563;
}

.company-btn-view:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.company-btn-edit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.company-btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 4rem;
    color: #9ca3af;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.empty-state-desc {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-state-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(67, 97, 238, 0.4);
}

/* Form Styles */
.company-form {
    width: 100%;
}

.form-grid {
    display: grid;
    gap: 2.5rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1f2937;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #374151;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-right: 0.25rem;
}

.form-label i {
    font-size: 1.125rem;
    color: var(--primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    color: #1f2937;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.form-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.form-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(67, 97, 238, 0.4);
}

.form-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.form-btn-secondary:hover {
    background: #e5e7eb;
}

/* Company Detail Page */
.company-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

@media (max-width: 1280px) {
    .company-detail-grid {
        grid-template-columns: 1fr;
    }
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.company-info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.company-info-item:hover {
    background: #f3f4f6;
}

.company-info-item-full {
    grid-column: 1 / -1;
}

.company-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.375rem;
    flex-shrink: 0;
}

.company-info-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.company-info-icon-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.company-info-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.company-info-icon-orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.company-info-icon-cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.company-info-icon-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.company-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.company-info-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.company-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.company-info-value-small {
    font-size: 0.875rem;
}

.company-info-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.3s ease;
}

.company-info-link:hover {
    gap: 0.625rem;
}

/* Users List */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.875rem;
    transition: all 0.3s ease;
}

.user-item:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.user-email {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
}

.user-type-badge {
    padding: 0.375rem 0.875rem;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
}

.empty-state-small {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

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

/* Stats List */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item-blue {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.stat-item-green {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.stat-item-orange {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.stat-item-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-item-blue .stat-item-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.stat-item-green .stat-item-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.stat-item-orange .stat-item-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.stat-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

.stat-item-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
}

/* Subscription Info */
.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subscription-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    text-align: center;
}

.subscription-plan-starter {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.subscription-plan-professional {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4f46e5;
}

.subscription-plan-enterprise {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.subscription-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.subscription-detail:last-child {
    border-bottom: none;
}

.subscription-detail-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.subscription-detail-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.3);
}

.action-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.action-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

/* Delete Confirmation */
.delete-confirm-card {
    max-width: 42rem;
    margin: 2rem auto;
}

.delete-confirm-content {
    text-align: center;
    padding: 2rem;
}

.delete-confirm-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-confirm-icon i {
    font-size: 3rem;
    color: #dc2626;
}

.delete-confirm-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 2rem;
}

.delete-confirm-info {
    margin-bottom: 2rem;
}

.company-preview {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 1.25rem;
    text-align: right;
}

.company-preview-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.company-preview-details h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.company-preview-details p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.delete-confirm-warning {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: right;
}

.delete-confirm-warning i {
    font-size: 1.5rem;
    color: #d97706;
    flex-shrink: 0;
}

.delete-confirm-warning p {
    font-size: 0.9375rem;
    color: #92400e;
    line-height: 1.6;
    margin: 0;
}

.delete-confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.delete-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.delete-confirm-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.delete-confirm-btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.4);
}

.delete-confirm-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.delete-confirm-btn-cancel:hover {
    background: #e5e7eb;
}

/* Messages Toast */
.messages-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 24rem;
}

.message-toast {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-icon {
    font-size: 1.5rem;
}

.message-success .message-icon {
    color: #10b981;
}

.message-error .message-icon {
    color: #ef4444;
}

.message-warning .message-icon {
    color: #f59e0b;
}

.message-info .message-icon {
    color: #3b82f6;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
}

.message-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    transition: color 0.3s ease;
}

.message-close:hover {
    color: #6b7280;
}

/* Topbar Actions */
.dashboard-topbar-actions {
    display: flex;
    gap: 0.75rem;
}

.dashboard-btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.dashboard-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
}

.dashboard-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}


/* ========== Activation Confirmation ========== */
.activate-confirm-card {
    max-width: 42rem;
    margin: 2rem auto;
}

.activate-confirm-content {
    text-align: center;
    padding: 2rem;
}

.activate-confirm-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activate-confirm-icon i {
    font-size: 3rem;
    color: #059669;
}

.activate-confirm-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 2rem;
}

.activate-confirm-info {
    margin-bottom: 2rem;
}

.activate-confirm-warning {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: right;
}

.activate-confirm-warning i {
    font-size: 1.5rem;
    color: #1d4ed8;
    flex-shrink: 0;
}

.activate-confirm-warning p {
    font-size: 0.9375rem;
    color: #1e3a8a;
    line-height: 1.6;
    margin: 0;
}

.activate-confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.activate-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.activate-confirm-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.activate-confirm-btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
}

.activate-confirm-btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.activate-confirm-btn-cancel:hover {
    background: #e5e7eb;
}

/* Company Button Activate */
.company-btn-activate {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.company-btn-activate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

/* Inactive Company Card Style */
.company-card-inactive {
    opacity: 0.75;
    border: 2px dashed #e5e7eb;
}

.company-card-inactive:hover {
    opacity: 1;
    border-color: #f59e0b;
}

.action-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.action-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}


/* ========== Members Management Styles ========== */

/* Members Table */
.members-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.data-table th {
    padding: 1rem 1.5rem;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.data-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9375rem;
    color: #1f2937;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: #f9fafb;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.member-name {
    font-weight: 700;
    color: #1f2937;
}

.member-email {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-badge-admin {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.role-badge-manager {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e3a8a;
}

.role-badge-employee {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

.role-badge-viewer {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #374151;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-action-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.table-action-edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.table-action-edit:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.table-action-delete {
    background: #fee2e2;
    color: #dc2626;
}

.table-action-delete:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* Member Info Display */
.member-info-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 1.25rem;
    margin-bottom: 2rem;
}

.member-avatar-large {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.member-details-large {
    flex: 1;
}

.member-details-large h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.member-details-large p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

.member-meta {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Member Preview (for delete confirmation) */
.member-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 1.25rem;
    text-align: right;
}

.member-preview-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.member-preview-details {
    flex: 1;
}

.member-preview-details h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
}

.member-preview-details p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Info Steps */
.info-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-step {
    display: flex;
    align-items: start;
    gap: 1.25rem;
}

.info-step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    flex-shrink: 0;
}

.info-step-content {
    flex: 1;
    padding-top: 0.375rem;
}

.info-step-content h4 {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.info-step-content p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ========== Company Selection Page ========== */

.select-company-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.select-company-container {
    width: 100%;
    max-width: 48rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 3rem;
}

.select-company-header {
    text-align: center;
    margin-bottom: 3rem;
}

.select-company-logo {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.select-company-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.select-company-desc {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.select-company-form {
    margin-bottom: 2rem;
}

.company-selection-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.company-selection-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.company-selection-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.company-selection-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}

.company-selection-card:hover .company-selection-content {
    background: #f3f4f6;
    border-color: var(--primary);
}

.company-selection-radio:checked + .company-selection-content {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(67, 97, 238, 0.2);
}

.company-selection-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.company-selection-info {
    flex: 1;
}

.company-selection-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
}

.company-selection-email {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
}

.company-selection-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
}

.company-selection-check {
    font-size: 2rem;
    color: #e5e7eb;
    transition: all 0.3s ease;
}

.company-selection-radio:checked ~ .company-selection-content .company-selection-check {
    color: var(--primary);
}

.select-company-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-company-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(67, 97, 238, 0.4);
}

.select-company-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.select-company-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.select-company-logout:hover {
    color: #ef4444;
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
    .members-table {
        overflow-x: scroll;
    }
    
    .data-table {
        min-width: 800px;
    }
    
    .select-company-container {
        padding: 2rem 1.5rem;
    }
    
    .company-selection-content {
        flex-direction: column;
        text-align: center;
    }
}

.action-btn-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.action-btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}


/* ========== Invitation Accept Page ========== */

.invitation-accept-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.invitation-accept-container {
    width: 100%;
    max-width: 42rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    padding: 3rem;
}

.invitation-accept-header {
    text-align: center;
    margin-bottom: 2rem;
}

.invitation-accept-logo {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.invitation-accept-title {
    font-size: 2rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.invitation-accept-desc {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.invitation-accept-desc strong {
    color: var(--primary);
    font-weight: 800;
}

.invitation-info-card {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invitation-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.invitation-info-item > i {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.invitation-info-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.invitation-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.invitation-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.invitation-accept-form {
    margin-bottom: 2rem;
}

.invitation-accept-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.invitation-accept-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(67, 97, 238, 0.4);
}

.invitation-accept-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
}

.invitation-accept-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.invitation-accept-footer i {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .invitation-accept-container {
        padding: 2rem 1.5rem;
    }
    
    .invitation-info-card {
        padding: 1rem;
    }
}

.data-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    min-width: 1200px; 
}

/* ========== Compact Panel Spacing Overrides ========== */
:root {
    --panel-space-1: 0.25rem;
    --panel-space-2: 0.5rem;
    --panel-space-3: 0.75rem;
    --panel-space-4: 1rem;
    --panel-space-5: 1.25rem;
    --panel-space-6: 1.5rem;
    --panel-radius: 0.875rem;
}

.dashboard-layout {
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 250px;
}

.sidebar-header {
    padding: 1rem 1rem;
}

.sidebar-logo,
.sidebar-user,
.sidebar-menu-trigger-content,
.sidebar-link,
.sidebar-submenu-link {
    gap: 0.625rem;
}

.sidebar-logo-icon {
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.7rem;
    font-size: 1.2rem;
}

.sidebar-logo-text h3 {
    font-size: 1rem;
    line-height: 1.35;
}

.sidebar-logo-text p {
    font-size: 0.72rem;
    margin-top: 0.125rem;
}

.sidebar-nav {
    padding: 0.75rem 0.625rem;
    gap: 0.125rem;
}

.sidebar-link,
.sidebar-menu-trigger {
    min-height: 2.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    font-size: 0.88rem;
}

.sidebar-link i,
.sidebar-menu-trigger-content i {
    font-size: 1.05rem;
}

.sidebar-menu-group {
    margin-bottom: 0.0625rem;
}

.sidebar-menu-arrow {
    font-size: 1rem;
}

.sidebar-submenu {
    padding: 0.25rem 0 0.25rem 1.25rem;
    gap: 0.0625rem;
}

.sidebar-submenu-link {
    min-height: 2rem;
    padding: 0.4rem 0.7rem;
    border-radius: 0.55rem;
    font-size: 0.82rem;
}

.sidebar-submenu-link i {
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 0.75rem;
}

.sidebar-user {
    padding: 0.625rem;
    border-radius: 0.7rem;
}

.sidebar-user-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

.sidebar-user-info h4 {
    font-size: 0.85rem;
}

.sidebar-user-info p {
    font-size: 0.68rem;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-container {
    padding: 1.1rem 1.25rem;
}

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

.dashboard-title,
.page-title {
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.35;
    margin: 0 0 0.25rem;
}

.dashboard-title i,
.page-title i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-left: 0.35rem;
}

.dashboard-subtitle,
.page-subtitle {
    font-size: 0.86rem;
    color: #6b7280;
    margin: 0;
}

.dashboard-topbar {
    padding: 0.9rem 1.25rem;
}

.dashboard-stats-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.875rem !important;
    margin-bottom: 1rem !important;
}

.dashboard-stats-grid-3,
.dashboard-stats-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.dashboard-stat-card,
.stat-card {
    border-radius: 0.95rem;
    padding: 1rem !important;
    gap: 0.8rem;
}

.stat-card-icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.8rem;
}

.stat-card-icon i {
    font-size: 1.45rem;
}

.stat-card-label {
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.stat-card-value {
    font-size: 1.45rem;
    margin-bottom: 0.25rem;
}

.dashboard-content-grid,
.company-detail-grid {
    gap: 1rem;
}

.dashboard-left-column,
.dashboard-right-column {
    gap: 1rem;
}

.dashboard-card {
    border-radius: var(--panel-radius);
    margin-bottom: 1rem;
}

.dashboard-card-header {
    padding: 0.9rem 1.1rem;
}

.dashboard-card-title {
    gap: 0.5rem;
    font-size: 1.05rem;
}

.dashboard-card-title i {
    font-size: 1.25rem;
}

.dashboard-card-body,
.dashboard-card-quick .dashboard-card-body {
    padding: 1rem;
}

.form-grid {
    gap: 1.1rem !important;
}

.form-section {
    gap: 0.85rem;
}

.form-section-title {
    font-size: 1rem;
    padding-bottom: 0.5rem;
}

.form-row {
    gap: 0.875rem !important;
}

.form-group {
    gap: 0.35rem;
}

.form-label {
    font-size: 0.84rem;
    gap: 0.35rem;
}

.form-input,
.form-select,
.form-textarea,
select.form-input,
textarea.form-input {
    min-height: 2.55rem;
    padding: 0.65rem 0.85rem !important;
    border-radius: 0.65rem;
    font-size: 0.9rem;
}

.form-textarea,
textarea.form-input {
    min-height: 5.5rem;
}

.form-hint,
.form-error {
    font-size: 0.78rem;
    margin-top: 0.125rem;
}

.form-actions,
.form-actions-sticky {
    gap: 0.65rem !important;
    padding-top: 1rem !important;
    margin-top: 1rem !important;
}

.form-actions-sticky {
    padding: 0.875rem 1rem !important;
}

.form-btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.dashboard-btn-primary,
.dashboard-btn-secondary,
.action-btn-primary,
.action-btn-danger,
.action-btn-info,
.empty-state-btn {
    min-height: 2.35rem;
    padding: 0.55rem 1rem !important;
    border-radius: 0.65rem !important;
    font-size: 0.86rem !important;
    gap: 0.45rem;
}

.btn-sm,
.dashboard-btn-sm {
    min-height: 2rem;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.78rem !important;
}

.table-responsive {
    overflow-x: auto;
}

.dashboard-table,
.data-table,
.table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td,
.data-table th,
.data-table td,
.table th,
.table td {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.84rem;
    vertical-align: middle;
}

.dashboard-table th,
.data-table th,
.table th {
    font-size: 0.78rem;
    font-weight: 800;
}

.company-info-grid {
    gap: 0.875rem;
}

.company-info-item {
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 0.8rem;
}

.company-info-icon {
    width: 2.35rem;
    height: 2.35rem;
}

.empty-state {
    padding: 2rem 1rem !important;
}

.empty-state-icon,
.empty-state > i {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.empty-state-title,
.empty-state h3 {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.empty-state-desc,
.empty-state p {
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.alert,
.alert-danger,
.alert-warning,
.alert-success {
    padding: 0.75rem !important;
    border-radius: 0.7rem !important;
    margin-bottom: 1rem !important;
}

.delete-confirmation {
    padding: 1.25rem !important;
}

.delete-icon {
    width: 4rem !important;
    height: 4rem !important;
    margin-bottom: 1rem !important;
    font-size: 2rem !important;
}

.delete-title {
    font-size: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.delete-info {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        position: relative;
    }

    .sidebar-nav {
        max-height: 60vh;
    }

    .dashboard-container {
        padding: 0.875rem;
    }
}

@media (max-width: 640px) {
    .dashboard-header,
    .dashboard-card-header,
    .form-actions,
    .form-actions-sticky {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-container {
        padding: 0.75rem;
    }

    .dashboard-card-body {
        padding: 0.85rem;
    }
}

/* ========== List/Search Form Refinement ========== */
.dashboard-card-header:has(.list-search-form),
.dashboard-card-header:has(.list-toolbar),
.dashboard-card-header:has(.card-actions) {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.list-toolbar,
.card-actions,
.list-search-form,
.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem !important;
    flex-wrap: wrap;
}

.list-toolbar {
    justify-content: flex-end;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 220px;
}

.search-input-wrapper i {
    position: absolute;
    right: 0.7rem;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.search-input,
.search-form .form-input,
.search-form input[type="text"],
.search-form input[type="search"] {
    width: 100%;
    min-width: 220px;
    max-width: 300px;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.45rem 2rem 0.45rem 0.75rem !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 0.6rem !important;
    background: #f8fafc;
    font-size: 0.82rem !important;
    box-shadow: none !important;
}

.search-form > .form-input:first-child,
.search-form > input[type="text"]:first-child,
.search-form > input[type="search"]:first-child {
    padding-right: 0.75rem !important;
}

.search-input:focus,
.search-form .form-input:focus,
.search-form input[type="text"]:focus,
.search-form input[type="search"]:focus {
    background: #ffffff;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.08) !important;
}

.search-form .form-select,
.list-toolbar .form-select,
.compact-select {
    width: auto !important;
    min-width: 135px;
    max-width: 190px;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.7rem !important;
    border-width: 1px !important;
    border-radius: 0.6rem !important;
    font-size: 0.82rem !important;
    background-color: #f8fafc;
}

.filter-form-compact {
    width: 100%;
}

.filter-form-compact .filter-grid {
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(130px, 0.8fr)) auto;
    gap: 0.7rem !important;
    align-items: end;
}

.filter-form-compact .filter-item {
    gap: 0.25rem;
}

.filter-form-compact .filter-label {
    font-size: 0.74rem;
    line-height: 1.2;
    gap: 0.25rem;
    color: #64748b;
}

.filter-form-compact .filter-label i {
    font-size: 0.86rem;
}

.filter-form-compact .filter-input,
.filter-form-compact .filter-select {
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0.42rem 0.65rem !important;
    border-width: 1px !important;
    border-radius: 0.6rem !important;
    font-size: 0.82rem !important;
    background: #f8fafc;
}

.filter-form-compact .filter-input:focus,
.filter-form-compact .filter-select:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.08) !important;
}

.filter-form-compact .filter-actions {
    flex-direction: row;
    gap: 0.45rem !important;
    align-items: end;
}

.filter-form-compact .filter-btn {
    min-height: 2.25rem;
    height: 2.25rem;
    padding: 0.42rem 0.8rem !important;
    border-radius: 0.6rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
}

.form-input,
.form-select,
.form-textarea,
input.form-input,
select.form-select,
textarea.form-input {
    border-width: 1px !important;
    height: auto;
}

input.form-input,
select.form-select {
    min-height: 2.25rem;
}

.form-row,
.form-grid[style],
.form-grid {
    row-gap: 0.85rem !important;
}

.data-table-wrapper,
.table-responsive {
    border-radius: 0.75rem;
}

.data-table th,
.data-table td,
.dashboard-table th,
.dashboard-table td {
    line-height: 1.45;
}

@media (max-width: 900px) {
    .filter-form-compact .filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-form-compact .filter-actions {
        grid-column: 1 / -1;
    }

    .search-input-wrapper,
    .search-input,
    .search-form .form-input,
    .search-form input[type="text"],
    .search-form input[type="search"] {
        max-width: none;
        min-width: 180px;
    }
}

@media (max-width: 560px) {
    .filter-form-compact .filter-grid,
    .list-toolbar,
    .card-actions,
    .list-search-form,
    .search-form {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .search-input-wrapper,
    .search-input,
    .search-form .form-input,
    .search-form .form-select,
    .list-toolbar .form-select,
    .compact-select {
        width: 100% !important;
        max-width: none;
    }
}

/* ========== Landing/Home Page Refinement ========== */
.home-hero {
    min-height: calc(100vh - 4rem);
    padding: clamp(3rem, 7vw, 5.5rem) 1rem clamp(2.5rem, 6vw, 4rem);
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,0.22), transparent 26rem),
        radial-gradient(circle at 18% 70%, rgba(125, 211, 252, 0.20), transparent 24rem),
        linear-gradient(135deg, #172554 0%, #3730a3 46%, #0f766e 100%);
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
    pointer-events: none;
}

.home-hero-content {
    max-width: 1040px;
    padding: 0 1rem;
}

.home-hero .hero-title {
    font-size: clamp(2.15rem, 6vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
}

.home-hero .hero-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 2.45rem);
    margin-top: 0.65rem;
}

.home-hero .hero-description {
    max-width: 680px;
    margin-bottom: 0;
    font-size: clamp(0.98rem, 1.75vw, 1.25rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.90);
}

.home-hero-actions,
.home-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.home-cta-primary,
.home-cta-secondary,
.home-final-btn {
    min-height: 3rem;
    padding: 0.75rem 1.35rem !important;
    border-radius: 0.9rem !important;
    font-size: 0.95rem !important;
    font-weight: 850;
}

.home-cta-secondary {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    border-color: rgba(255,255,255,0.42);
    backdrop-filter: blur(12px);
}

.home-cta-secondary:hover {
    background: #ffffff;
    color: var(--primary);
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.2rem;
    color: rgba(255,255,255,0.86);
}

.home-trust-row > div {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    font-size: 0.88rem;
}

.home-trust-row i {
    font-size: 1.2rem !important;
}

.home-section {
    padding: clamp(3.25rem, 7vw, 5.5rem) 0;
    position: relative;
}

.home-features-section {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.home-modules-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(67, 97, 238, 0.10), transparent 20rem),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.home-pricing-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.home-section-heading {
    text-align: center;
    margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.home-section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem) !important;
    line-height: 1.2;
    margin-bottom: 0.65rem !important;
}

.home-section-heading p {
    font-size: clamp(0.98rem, 1.7vw, 1.2rem) !important;
    line-height: 1.8;
}

.home-feature-grid,
.home-module-grid,
.home-pricing-grid {
    display: grid;
    gap: 1rem;
}

.home-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.feature-highlight-card,
.module-card,
.pricing-card {
    border-width: 1px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.feature-highlight-card {
    padding: 1.35rem 1rem;
    border-radius: 1.1rem;
}

.feature-highlight-icon {
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    font-size: 1.8rem;
}

.feature-highlight-title {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
}

.feature-highlight-desc {
    font-size: 0.84rem;
    line-height: 1.7;
}

.module-card {
    padding: 1.25rem;
    border-radius: 1.1rem;
}

.module-card-header {
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.module-icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.85rem;
    font-size: 1.35rem;
}

.module-title {
    font-size: 1.05rem;
}

.module-desc {
    font-size: 0.84rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.module-features {
    gap: 0.45rem;
}

.module-features li {
    gap: 0.4rem;
    font-size: 0.8rem;
}

.module-features li i {
    font-size: 1rem;
}

.pricing-card {
    border-radius: 1.25rem;
}

.pricing-card-popular {
    transform: translateY(-0.5rem);
    border-width: 2px;
}

.pricing-card-popular:hover {
    transform: translateY(-0.85rem);
}

.pricing-card-header {
    padding: 1.6rem 1.25rem 1.25rem;
}

.pricing-card-body {
    padding: 1.4rem 1.25rem;
}

.pricing-icon {
    width: 3.3rem;
    height: 3.3rem;
    margin-bottom: 0.95rem;
    border-radius: 1rem;
    font-size: 1.65rem;
}

.pricing-plan-name {
    font-size: 1.35rem;
}

.pricing-plan-desc,
.pricing-currency,
.pricing-period {
    font-size: 0.84rem;
}

.pricing-amount {
    margin-bottom: 1.25rem;
}

.pricing-value {
    font-size: clamp(2rem, 3vw, 2.7rem);
    margin: 0.35rem 0;
}

.pricing-value-custom {
    font-size: 1.35rem;
    padding: 1.25rem 0;
}

.pricing-features {
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.pricing-features li {
    gap: 0.45rem;
    font-size: 0.84rem;
}

.pricing-features li i {
    font-size: 1.05rem;
}

.pricing-btn {
    min-height: 2.65rem;
    padding: 0.6rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.88rem;
}

.home-cta-section {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background:
        radial-gradient(circle at 25% 28%, rgba(255,255,255,0.20), transparent 18rem),
        linear-gradient(135deg, #1e40af 0%, #6d28d9 54%, #0f766e 100%);
}

.home-cta-section h2 {
    font-size: clamp(2rem, 4.5vw, 4rem) !important;
    line-height: 1.2;
    margin-bottom: 1rem !important;
}

.home-cta-section p {
    font-size: clamp(1rem, 2vw, 1.35rem) !important;
    margin-bottom: 0 !important;
    line-height: 1.8;
}

.home-final-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.home-final-btn-primary {
    background: #ffffff;
    color: #3730a3;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.20);
}

.home-final-btn-primary:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.home-final-btn-outline {
    border: 1px solid rgba(255,255,255,0.70);
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.home-final-btn-outline:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #3730a3;
}

body:has(.home-hero) footer {
    margin-top: 0 !important;
}

@media (max-width: 1024px) {
    .home-feature-grid,
    .home-module-grid,
    .home-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-card-popular {
        transform: none;
    }
}

@media (max-width: 640px) {
    .home-hero {
        min-height: auto;
        padding-top: 3rem;
    }

    .home-feature-grid,
    .home-module-grid,
    .home-pricing-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-actions,
    .home-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-cta-primary,
    .home-cta-secondary,
    .home-final-btn {
        width: 100%;
    }

    .home-trust-row {
        align-items: stretch;
        flex-direction: column;
    }

    .home-trust-row > div {
        justify-content: center;
    }
}

/* ========== Header/Footer Content Polish ========== */
.home-nav-links a {
    padding: 0.35rem 0.2rem;
    position: relative;
}

.home-nav-links a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.25s ease;
}

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

.site-footer {
    margin-top: 0;
}

.site-footer > .relative {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.site-footer h4 {
    margin-bottom: 1rem !important;
}

.site-footer ul {
    line-height: 1.8;
}

.site-footer .footer-link {
    font-size: 0.88rem;
}

.site-footer .space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.8rem;
}

@media (max-width: 768px) {
    .site-footer > .relative {
        padding-top: 2.25rem;
    }
}

/* ========== Support Module ========== */
.support-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: var(--badge-color);
    background: color-mix(in srgb, var(--badge-color) 12%, white);
    border: 1px solid color-mix(in srgb, var(--badge-color) 25%, white);
    font-size: 0.78rem;
    font-weight: 800;
}

.support-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1rem;
}

.support-ticket-summary {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
    margin-bottom: 1rem;
}

.support-ticket-summary h3 {
    font-size: 1.1rem;
    font-weight: 850;
    margin: 0 0 0.5rem;
}

.support-ticket-summary p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
}

.support-message-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.support-message {
    padding: 0.85rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.85rem;
}

.support-message-own {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.support-message-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    color: #64748b;
}

.support-message-meta strong {
    color: #1f2937;
}

.support-message-meta em {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-style: normal;
    font-weight: 800;
}

.support-message-body {
    line-height: 1.85;
    color: #334155;
    font-size: 0.9rem;
}

.support-reply-form,
.support-side-form,
.support-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.support-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.84rem;
    font-weight: 700;
}

.support-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: #475569;
}

.support-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.support-inline-form {
    margin-bottom: 1rem;
}

.support-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-top: 1px solid #eef2f7;
    font-size: 0.86rem;
}

.support-setting-item span {
    color: #64748b;
}

.support-color-input {
    width: 100%;
    min-height: 2.25rem;
    border: 1px solid #dbe3ef;
    border-radius: 0.6rem;
    padding: 0.2rem;
    background: #f8fafc;
}

@media (max-width: 1100px) {
    .support-detail-grid,
    .support-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Files/Reports Utilities ========== */
.inline-form {
    display: inline-flex;
    margin: 0 0.25rem;
}

.support-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.support-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

/* ========== HR Module ========== */
.hr-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.hr-quick-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: #1f2937;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hr-quick-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: #ffffff;
}

.hr-quick-card i {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.hr-status {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hr-status-pending { background: #fef3c7; color: #92400e; }
.hr-status-approved { background: #dcfce7; color: #166534; }
.hr-status-rejected { background: #fee2e2; color: #991b1b; }

/* ========== Sidebar Active/Open State ========== */
[x-cloak] { display: none !important; }

.sidebar-menu-trigger-active {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.sidebar-submenu-link-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 800;
}

.sidebar-submenu-link-active i {
    color: #a5b4fc;
}

/* ========== Dynamic Page Help ========== */
[x-cloak] {
    display: none !important;
}

.page-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #ecfeff, #ffffff 58%, #f0fdfa);
    color: #0f766e;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.12);
    transition: all 0.25s ease;
}

.page-help-button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
}

.page-help-button i {
    font-size: 1rem;
}

.page-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.page-help-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(8px) saturate(0.85);
    -webkit-backdrop-filter: blur(8px) saturate(0.85);
}

.page-help-panel {
    position: relative;
    z-index: 1;
    width: min(42rem, calc(100vw - 2rem));
    max-height: min(82vh, 44rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.45rem;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 36%),
        linear-gradient(160deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.32);
}

.page-help-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem 0.9rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.page-help-eyebrow {
    display: inline-flex;
    margin-bottom: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 900;
}

.page-help-header h2 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.55;
}

.page-help-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    cursor: pointer;
    transition: all 0.25s ease;
}

.page-help-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.page-help-summary {
    margin: 1rem 1.25rem 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(20, 184, 166, 0.16);
    border-radius: 0.95rem;
    background: rgba(240, 253, 250, 0.82);
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.9;
}

.page-help-body {
    overflow-y: auto;
    padding: 1rem 1.25rem 0.5rem;
    color: #374151;
    font-size: 0.84rem;
    line-height: 1.95;
}

.page-help-body p {
    margin: 0 0 0.7rem;
}

.page-help-rating {
    margin-top: auto;
    padding: 0.65rem 1.25rem 0.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.82);
    background: rgba(248, 250, 252, 0.68);
}

.page-help-rating-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
}

.page-help-rating-title i {
    color: #0f766e;
    font-size: 0.86rem;
}

.page-help-rating-options {
    display: flex;
    justify-content: center;
    gap: 0.32rem;
    flex-wrap: wrap;
}

.page-help-rating-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.page-help-rating-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.45;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.page-help-rating-option span:hover,
.page-help-rating-option input:checked + span {
    border-color: #0f766e;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(15, 118, 110, 0.18);
}

@media (max-width: 640px) {
    .dashboard-topbar-content-help {
        align-items: flex-start;
        gap: 0.75rem;
        flex-direction: column;
    }

    .page-help-button {
        width: 100%;
    }

    .page-help-panel {
        width: 100%;
        max-height: 86vh;
        border-radius: 1.1rem;
    }

    .page-help-rating-options {
        justify-content: flex-start;
    }

    .page-help-rating-option span {
        white-space: normal;
    }

    .page-help-header,
    .page-help-summary,
    .page-help-body,
    .page-help-rating {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.page-help-global {
    position: relative;
    z-index: 100;
}

.page-help-launcher {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 70;
}

.page-help-launcher {
    overflow: hidden;
}

.page-help-launcher::after {
    content: '';
    position: absolute;
    top: -45%;
    bottom: -45%;
    width: 1.15rem;
    right: -2.2rem;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
    transform: rotate(22deg);
    animation: pageHelpLightSweep 4.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pageHelpLightSweep {
    0%, 64% {
        right: -2.2rem;
        opacity: 0;
    }
    70% {
        opacity: 1;
    }
    86% {
        right: calc(100% + 2.2rem);
        opacity: 0;
    }
    100% {
        right: calc(100% + 2.2rem);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .page-help-launcher {
        left: 0.85rem;
        bottom: 0.85rem;
        width: auto;
        min-width: 6.5rem;
    }
}

/* ========== Workflow Builder ========== */
.workflow-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.workflow-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.workflow-card-top,
.workflow-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.workflow-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.workflow-card p {
    min-height: 3.2rem;
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.8;
}

.workflow-entity-badge,
.workflow-template-badge,
.workflow-status {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
}

.workflow-entity-badge { background: #ecfeff; color: #0f766e; }
.workflow-template-badge { background: #fef3c7; color: #92400e; }
.workflow-status-draft { background: #f1f5f9; color: #475569; }
.workflow-status-active { background: #dcfce7; color: #166534; }
.workflow-status-archived { background: #fee2e2; color: #991b1b; }

.workflow-card-meta {
    color: #64748b;
    font-size: 0.78rem;
    justify-content: flex-start;
}

.workflow-builder-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    min-height: 650px;
}

.workflow-builder-side {
    position: sticky;
    top: 5rem;
    align-self: start;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.workflow-builder-side h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 900;
}

.workflow-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 0.82rem;
}

.workflow-info-row strong {
    color: #0f172a;
}

.workflow-save-btn {
    width: 100%;
    margin-top: 1rem;
}

.workflow-save-note {
    min-height: 1.5rem;
    margin: 0.65rem 0 0;
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.workflow-canvas-wrap {
    overflow: auto;
    border: 1px solid #dbe3ef;
    border-radius: 1.1rem;
    background: radial-gradient(circle at 1px 1px, #cbd5e1 1px, transparent 0) 0 0 / 24px 24px, linear-gradient(135deg, #f8fafc, #eef2ff);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.workflow-canvas {
    position: relative;
    width: 1500px;
    height: 620px;
}

.workflow-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.workflow-node {
    position: absolute;
    width: 150px;
    min-height: 82px;
    padding: 0.75rem;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 1rem;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.workflow-node:active,
.workflow-node-dragging {
    cursor: grabbing;
    border-color: #0f766e;
    box-shadow: 0 18px 42px rgba(15, 118, 110, 0.2);
    z-index: 5;
}

.workflow-node strong,
.workflow-node span {
    display: block;
}

.workflow-node strong {
    margin: 0.35rem 0 0.2rem;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
}

.workflow-node span {
    color: #64748b;
    font-size: 0.72rem;
    direction: ltr;
    text-align: left;
}

.workflow-node-type {
    display: inline-flex;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 900;
}

.workflow-node-start .workflow-node-type { background: #dbeafe; color: #1d4ed8; }
.workflow-node-end .workflow-node-type { background: #fee2e2; color: #b91c1c; }
.workflow-node-approval .workflow-node-type { background: #fef3c7; color: #92400e; }
.workflow-node-condition .workflow-node-type { background: #ede9fe; color: #6d28d9; }
.workflow-node-assignment .workflow-node-type { background: #e0f2fe; color: #0369a1; }

@media (max-width: 1024px) {
    .workflow-builder-shell {
        grid-template-columns: 1fr;
    }

    .workflow-builder-side {
        position: relative;
        top: auto;
    }
}

.workflow-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.workflow-card-actions form {
    margin: 0;
}

/* ========== Workflow Runtime ========== */
.workflow-runtime-card {
    border: 1px solid rgba(15, 118, 110, 0.16);
}

.workflow-runtime-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 1rem;
}

.workflow-runtime-desc {
    margin: 0 0 0.8rem;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.9;
}

.workflow-transition-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.workflow-transition-actions form {
    margin: 0;
}

.workflow-runtime-history {
    padding: 0.85rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.workflow-runtime-history h3 {
    margin: 0 0 0.65rem;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
}

.workflow-history-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.workflow-history-item:last-child {
    border-bottom: none;
}

.workflow-history-item span {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 850;
}

.workflow-history-item small {
    color: #64748b;
    font-size: 0.72rem;
}

@media (max-width: 900px) {
    .workflow-runtime-grid {
        grid-template-columns: 1fr;
    }
}

.workflow-builder-tools {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.workflow-builder-tools details {
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
    padding: 0.65rem;
}

.workflow-builder-tools summary {
    cursor: pointer;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 900;
    list-style: none;
}

.workflow-tool-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.workflow-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
}

.workflow-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.workflow-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workflow-admin-row,
.workflow-edge-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.workflow-row-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.workflow-row-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.workflow-row-title strong {
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.5;
}

.workflow-row-title span {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.7;
}

.workflow-row-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.workflow-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
}

.workflow-row-badge-start {
    background: #dcfce7;
    color: #166534;
}

.workflow-row-badge-end {
    background: #fee2e2;
    color: #b91c1c;
}

.workflow-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem 1rem;
    min-width: 0;
    align-items: start;
}

.workflow-node-form-grid,
.workflow-edge-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.workflow-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.workflow-field-group > span {
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.5;
}

.workflow-field-wide {
    grid-column: span 2;
}

.workflow-tool-form .form-input,
.workflow-tool-form .form-select,
.workflow-admin-row .form-input,
.workflow-admin-row .form-select,
.workflow-edge-row .form-input,
.workflow-edge-row .form-select,
.workflow-edge-row .workflow-custom-value-slot,
.workflow-edge-row .workflow-custom-value-slot .form-input,
.workflow-edge-row .workflow-custom-value-slot .form-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.workflow-tool-form .form-input,
.workflow-tool-form .form-select,
.workflow-admin-row .form-input,
.workflow-admin-row .form-select,
.workflow-edge-row .form-input,
.workflow-edge-row .form-select,
.workflow-edge-row .workflow-custom-value-slot .form-input,
.workflow-edge-row .workflow-custom-value-slot .form-select {
    min-height: 2.85rem;
    padding: 0.6rem 0.85rem;
    border-radius: 0.85rem;
    font-size: 0.86rem;
    line-height: 1.6;
    background: #fff;
}

.workflow-edge-row .workflow-custom-value-slot {
    display: flex;
    align-items: center;
    min-height: 2.85rem;
}

.workflow-admin-row textarea.form-input,
.workflow-edge-row textarea.form-input {
    min-height: 5rem;
    height: auto;
}

.workflow-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
}

.workflow-check input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.workflow-check-box {
    align-self: center;
    min-height: auto;
    padding-top: 1.9rem;
}

.workflow-edge-row-header {
    align-items: flex-start;
}

.workflow-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
    border-top: 1px dashed #e2e8f0;
}

.workflow-admin-row .btn-sm,
.workflow-edge-row .btn-sm,
.workflow-tool-form .btn-sm {
    border-radius: 0.85rem;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.workflow-action-btn {
    width: auto !important;
    min-width: 8.75rem !important;
    min-height: 2.85rem !important;
    padding: 0.65rem 1rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.82rem !important;
    font-weight: 900;
}

.workflow-admin-row .btn-secondary,
.workflow-edge-row .btn-secondary {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.workflow-admin-row .btn-secondary:hover,
.workflow-edge-row .btn-secondary:hover {
    background: #bae6fd;
    color: #075985;
}

.workflow-admin-row .btn-danger,
.workflow-edge-row .btn-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.workflow-admin-row .btn-danger:hover,
.workflow-edge-row .btn-danger:hover {
    background: #fecaca;
    color: #991b1b;
}

.workflow-edge-row small {
    color: #64748b;
    font-size: 0.75rem;
}

.workflow-edge-row form {
    margin: 0;
}

.workflow-canvas-wrap {
    overflow: auto;
    min-height: 460px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1400px) {
    .workflow-editor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .workflow-editor-grid {
        grid-template-columns: 1fr;
    }

    .workflow-node-form-grid,
    .workflow-edge-form-grid {
        grid-template-columns: 1fr;
    }

    .workflow-row-header,
    .workflow-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .workflow-field-wide {
        grid-column: auto;
    }

    .workflow-check-box {
        padding-top: 0;
    }

    .workflow-action-btn,
    .workflow-admin-row .btn-sm,
    .workflow-edge-row .btn-sm {
        width: 100% !important;
    }

    .workflow-canvas-wrap {
        min-height: 380px;
    }
}

.workflow-json-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.74rem !important;
    line-height: 1.6;
}

.workflow-form-lock {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 0.75rem;
    background: #f0fdfa;
    color: #0f766e;
}

.workflow-form-lock i {
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

.workflow-form-lock strong,
.workflow-form-lock span {
    display: block;
}

.workflow-form-lock strong {
    font-size: 0.84rem;
    font-weight: 900;
}

.workflow-form-lock span {
    margin-top: 0.2rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.7;
}

.workflow-json-help {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.7rem;
    border: 1px dashed rgba(15, 118, 110, 0.35);
    border-radius: 0.8rem;
    background: #f0fdfa;
}

.workflow-json-help strong {
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 900;
}

.workflow-json-help code {
    direction: ltr;
    display: block;
    white-space: normal;
    word-break: break-word;
    color: #334155;
    font-size: 0.68rem;
    line-height: 1.6;
}

.workflow-validation-box {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.9));
    color: #92400e;
}

.workflow-validation-box strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #78350f;
}

.workflow-validation-box span {
    font-size: 0.86rem;
}

.workflow-builder-lock {
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* ========== Company Command Center Dashboard ========== */
.company-command-center {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 28rem),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.12), transparent 26rem),
        #f6f8fb;
}

.command-topbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
}

.command-topbar-content {
    gap: 1.5rem;
}

.command-eyebrow,
.section-kicker,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #0f766e;
    margin-bottom: 0.45rem;
}

.command-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.command-action,
.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid #dbe4ee;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.command-action:hover,
.mini-link:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.command-action-primary {
    background: linear-gradient(135deg, #0f766e, #0891b2);
    border-color: transparent;
    color: #fff;
}

.command-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 1.25rem;
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9)),
        linear-gradient(45deg, #0f766e, #f59e0b);
    color: white;
    border-radius: 1.75rem;
    padding: 1.75rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.command-hero::after {
    content: "";
    position: absolute;
    inset: auto -4rem -6rem auto;
    width: 18rem;
    height: 18rem;
    background: rgba(20, 184, 166, 0.24);
    border-radius: 999px;
    filter: blur(4px);
}

.command-hero-copy,
.hero-health-card {
    position: relative;
    z-index: 1;
}

.hero-badge {
    color: #99f6e4;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.command-hero h2 {
    max-width: 760px;
    margin: 0.4rem 0 0.75rem;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1.45;
    font-weight: 950;
}

.command-hero p,
.hero-health-card p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.hero-health-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.35rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.hero-health-card span {
    color: #ccfbf1;
    font-weight: 800;
    font-size: 0.85rem;
}

.hero-health-card strong {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 950;
}

.health-meter,
.stage-meter {
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    height: 0.55rem;
}

.health-meter span,
.stage-meter em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #facc15, #2dd4bf);
}

.command-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.command-kpi {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 148px;
    padding: 1.25rem;
    border-radius: 1.35rem;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.command-kpi::after {
    content: "";
    position: absolute;
    top: -2.5rem;
    left: -2.5rem;
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    opacity: 0.15;
}

.command-kpi div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.command-kpi span,
.command-kpi small {
    color: #64748b;
    font-weight: 800;
}

.command-kpi strong {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 950;
}

.command-kpi i {
    font-size: 2rem;
    margin-inline-start: auto;
}

.kpi-blue::after { background: #2563eb; }
.kpi-blue i { color: #2563eb; }
.kpi-emerald::after { background: #059669; }
.kpi-emerald i { color: #059669; }
.kpi-amber::after { background: #d97706; }
.kpi-amber i { color: #d97706; }
.kpi-rose::after { background: #e11d48; }
.kpi-rose i { color: #e11d48; }

.command-main-grid,
.command-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
}

.command-primary-column,
.command-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.command-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 1.5rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.command-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid #edf2f7;
}

.command-card-header.compact {
    padding: 1rem 1.15rem;
}

.command-card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 950;
}

.command-card-header h2 i {
    color: #0f766e;
    font-size: 1.25rem;
}

.pipeline-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sync-state {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 900;
}

.sync-state[data-mode="saving"] { background: #fef3c7; color: #92400e; }
.sync-state[data-mode="success"] { background: #dcfce7; color: #166534; }
.sync-state[data-mode="error"] { background: #fee2e2; color: #991b1b; }

.mini-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.78rem;
}

.pipeline-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding: 1.15rem;
    min-height: 420px;
}

.pipeline-column {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    overflow: hidden;
}

.pipeline-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-top: 4px solid #94a3b8;
    background: #fff;
}

.pipeline-column-head div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pipeline-column-head strong {
    color: #0f172a;
    font-weight: 950;
}

.pipeline-column-head span,
.pipeline-column-head em {
    color: #64748b;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 800;
}

.pipeline-accent-blue .pipeline-column-head { border-top-color: #2563eb; }
.pipeline-accent-emerald .pipeline-column-head { border-top-color: #059669; }
.pipeline-accent-amber .pipeline-column-head { border-top-color: #d97706; }
.pipeline-accent-rose .pipeline-column-head { border-top-color: #e11d48; }
.pipeline-accent-violet .pipeline-column-head { border-top-color: #7c3aed; }
.pipeline-accent-cyan .pipeline-column-head { border-top-color: #0891b2; }
.pipeline-accent-slate .pipeline-column-head { border-top-color: #64748b; }

.pipeline-dropzone {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.9rem;
    min-height: 330px;
    transition: background 0.2s ease, outline 0.2s ease;
}

.pipeline-dropzone.is-over {
    background: rgba(20, 184, 166, 0.1);
    outline: 2px dashed rgba(15, 118, 110, 0.35);
    outline-offset: -0.45rem;
}

.pipeline-card-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.95rem;
    cursor: grab;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.pipeline-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.pipeline-card-item.is-dragging {
    opacity: 0.45;
    transform: rotate(-1deg) scale(0.98);
}

.lead-card-top,
.lead-card-meta,
.lead-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.lead-card-top span {
    background: #ecfeff;
    color: #0e7490;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.73rem;
    font-weight: 950;
}

.lead-card-top i {
    color: #94a3b8;
}

.pipeline-card-item h3 {
    margin: 0.75rem 0 0.25rem;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 950;
}

.pipeline-card-item p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
}

.lead-card-meta {
    margin-top: 0.85rem;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
}

.lead-card-footer {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.lead-card-footer small {
    color: #64748b;
    font-weight: 800;
}

.lead-card-footer a {
    color: #0f766e;
    font-weight: 950;
    text-decoration: none;
}

.pipeline-empty,
.empty-command {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 90px;
    text-align: center;
    color: #94a3b8;
    font-weight: 800;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1rem;
}

.empty-command {
    border: 0;
    min-height: 96px;
}

.empty-command i {
    font-size: 1.7rem;
    color: #cbd5e1;
}

.empty-command p {
    margin: 0;
    color: #64748b;
}

.command-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.focus-list,
.action-stack,
.activity-feed,
.stage-bars {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
}

.focus-row,
.action-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: 1rem;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    border: 1px solid #eef2f7;
}

.focus-row strong,
.action-item strong {
    display: block;
    color: #0f172a;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.focus-row small,
.action-item small {
    color: #64748b;
    font-weight: 750;
}

.focus-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: #fef3c7;
    color: #b45309;
}

.focus-icon.risk,
.action-item.overdue i {
    background: #fee2e2;
    color: #be123c;
}

.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.45rem;
    padding: 1rem 1rem 0;
}

.calendar-day {
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.12rem;
    color: #334155;
}

.calendar-day span,
.calendar-day em {
    font-size: 0.7rem;
    font-style: normal;
    color: #64748b;
    font-weight: 800;
}

.calendar-day strong {
    font-size: 1.12rem;
    font-weight: 950;
}

.calendar-day em {
    background: #e2e8f0;
    border-radius: 999px;
    padding: 0.06rem 0.42rem;
}

.calendar-day.is-today {
    background: linear-gradient(135deg, #0f766e, #0891b2);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.calendar-day.is-selected {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 2px;
}

.calendar-day.is-today span,
.calendar-day.is-today em {
    color: rgba(255, 255, 255, 0.82);
}

.calendar-day.is-today em {
    background: rgba(255, 255, 255, 0.18);
}

.today-agenda {
    padding: 1rem;
}

.agenda-panel.is-hidden {
    display: none;
}

.agenda-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #0f172a;
    font-weight: 950;
    margin-bottom: 0.75rem;
}

.agenda-title strong {
    background: #ecfeff;
    color: #0e7490;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

.agenda-item,
.feed-item,
.stage-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.agenda-item:last-child,
.feed-item:last-child,
.stage-row:last-child {
    border-bottom: 0;
}

.agenda-item i {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4338ca;
}

.agenda-item strong,
.feed-item strong {
    display: block;
    color: #0f172a;
    font-weight: 950;
}

.agenda-item small,
.feed-item small {
    color: #64748b;
    font-weight: 750;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.quick-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 88px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 1rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 950;
}

.quick-grid i {
    color: #0f766e;
    font-size: 1.45rem;
}

.stage-row {
    display: block;
}

.stage-row div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #0f172a;
    font-weight: 950;
    margin-bottom: 0.5rem;
}

.stage-meter {
    background: #e2e8f0;
    height: 0.55rem;
}

.stage-meter em {
    background: linear-gradient(90deg, #0f766e, #38bdf8);
}

.feed-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #0f766e;
    box-shadow: 0 0 0 0.35rem rgba(15, 118, 110, 0.12);
    flex: 0 0 auto;
}

@media (max-width: 1280px) {
    .command-main-grid,
    .command-bottom-grid,
    .command-hero {
        grid-template-columns: 1fr;
    }

    .command-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .command-container {
        padding: 1rem;
    }

    .command-topbar-content,
    .command-card-header,
    .command-insight-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .command-actions,
    .pipeline-tools {
        align-items: stretch;
    }

    .command-action {
        flex: 1 1 auto;
    }

    .command-kpi-grid {
        grid-template-columns: 1fr;
    }

    .command-hero {
        padding: 1.2rem;
        border-radius: 1.25rem;
    }

    .pipeline-board {
        grid-auto-columns: minmax(240px, 86vw);
    }

    .week-calendar {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== Company Panel Navigation & Mobile Sidebar ========== */
.company-sidebar-toggle { position: fixed; opacity: 0; pointer-events: none; }
.company-horizontal-nav { position: fixed; top: 0; right: 84px; left: 0; height: 68px; z-index: 45; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(226,232,240,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 12px 34px rgba(15,23,42,.07); transition: right .24s ease; }
.company-horizontal-nav-inner { height: 100%; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; min-width: 0; }
.company-mobile-menu-btn,.company-sidebar-close,.company-nav-action,.company-sidebar-pin-btn { width: 40px; height: 40px; border: 1px solid #e2e8f0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #0f172a; background: #fff; cursor: pointer; text-decoration: none; transition: all .2s ease; }
.company-mobile-menu-btn:hover,.company-sidebar-close:hover,.company-nav-action:hover,.company-sidebar-pin-btn:hover { border-color: #93c5fd; color: var(--primary); box-shadow: 0 8px 18px rgba(37,99,235,.12); }
.company-mobile-menu-btn { display:none; font-size:1.35rem; }
.company-sidebar-close { display:none; color:#fff; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16); }
.company-nav-brand { display:inline-flex; align-items:center; gap:.65rem; color:#0f172a; text-decoration:none; min-width:190px; }
.company-nav-brand-icon { width:42px; height:42px; display:inline-grid; place-items:center; border-radius:14px; color:#fff; background:linear-gradient(135deg,#0f766e,#2563eb); box-shadow:0 10px 22px rgba(15,118,110,.18); }
.company-nav-brand strong,.company-nav-brand small { display:block; line-height:1.35; }
.company-nav-brand strong { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.95rem; }
.company-nav-brand small { color:#64748b; font-size:.72rem; }
.company-nav-links { display:flex; align-items:center; gap:.35rem; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
.company-nav-links::-webkit-scrollbar { display:none; }
.company-nav-links a,.company-nav-profile { display:inline-flex; align-items:center; gap:.45rem; min-height:40px; padding:.55rem .8rem; border-radius:999px; color:#334155; text-decoration:none; font-size:.86rem; font-weight:700; white-space:nowrap; transition:all .2s ease; }
.company-nav-links a:hover,.company-nav-links a.is-active,.company-nav-profile:hover { color:#0f766e; background:#ecfdf5; }
.company-nav-links a.is-active { box-shadow: inset 0 0 0 1px #99f6e4; }
.company-nav-actions { display:inline-flex; align-items:center; gap:.5rem; flex:0 0 auto; }
.company-nav-profile { background:#f8fafc; border:1px solid #e2e8f0; max-width:190px; }
.company-nav-profile span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.company-sidebar-overlay { display:none; }
.dashboard-layout .dashboard-sidebar.company-dashboard-sidebar { width:84px; position:fixed; top:0; right:0; height:100vh; z-index:50; background:linear-gradient(180deg,#0f172a 0%,#111827 100%); border-left:1px solid rgba(255,255,255,.08); box-shadow:-10px 0 30px rgba(15,23,42,.12); overflow-x:hidden; overflow-y:auto; transition:width .24s ease; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned { width:300px; }
body.company-sidebar-pinned .company-horizontal-nav { right:300px; }
body.company-sidebar-pinned .company-horizontal-nav ~ .dashboard-main { margin-right:300px; width:calc(100% - 300px); }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-header { padding:12px 10px; border-bottom:1px solid rgba(148,163,184,.14); display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:64px; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-logo { display:flex; align-items:center; gap:10px; min-width:0; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-logo.is-hidden { display:none; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-logo-icon { width:40px; height:40px; border-radius:12px; flex:0 0 auto; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-logo-text,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-arrow { display:none; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-link-text { display:block; font-size:11px; line-height:1.1; text-align:center; color:rgba(255,255,255,.78); max-width:68px; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-logo-text,.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-link-text,.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-menu-arrow { display:block; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-link-text { font-size:inherit; line-height:inherit; text-align:right; max-width:none; color:inherit; }
.company-sidebar-pin-btn { width:40px; height:40px; min-width:40px; min-height:40px; border-radius:12px; border-color:rgba(148,163,184,.24); background:rgba(255,255,255,.08); color:#e2e8f0; display:inline-flex; align-items:center; justify-content:center; margin:0 auto; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .company-sidebar-pin-btn { background:rgba(37,99,235,.18); border-color:rgba(125,211,252,.28); color:#bfdbfe; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-nav { padding:10px 8px 14px; gap:6px; overflow:visible; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-link,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger { min-height:52px; padding:4px 6px; border-radius:0; border:none; background:transparent; display:flex; align-items:center; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-link { justify-content:center; flex-direction:column; gap:4px; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger { justify-content:center; width:100%; flex-direction:column; gap:4px; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-link,.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-menu-trigger { justify-content:flex-start; flex-direction:row; gap:10px; padding:6px 8px; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-menu-trigger{ width:100%; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-menu-trigger .sidebar-menu-trigger-content{ flex:1 1 auto; min-width:0; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-menu-trigger .sidebar-menu-arrow{ margin-right:auto; flex:0 0 auto; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-link{ width:100%; }
.dashboard-sidebar.company-dashboard-sidebar.is-pinned .sidebar-link .sidebar-link-text{ margin-left:auto; }
.sidebar-submenu-trigger{ position:relative; }
.sidebar-submenu-trigger > span{ flex:1 1 auto; min-width:0; }
.sidebar-submenu-trigger > i:last-child{ margin-right:auto; flex:0 0 auto; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger-content { display:flex; align-items:center; gap:10px; min-width:0; }
.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-menu-trigger-content { flex-direction:column; justify-content:center; gap:4px; width:100%; }
.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-menu-trigger-content .sidebar-link-text { display:block; width:100%; max-width:68px; text-align:center; white-space:normal; }
.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-menu-trigger .sidebar-menu-arrow { display:none; }
.sidebar-link-icon-wrap { width:36px; height:36px; min-width:36px; min-height:36px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; background:rgba(51,65,85,.9); flex:0 0 auto; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-link i,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger-content i { font-size:1.25rem; color:#f8fafc; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-link:hover,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger:hover,.dashboard-sidebar.company-dashboard-sidebar .sidebar-link-active,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger-active,.sidebar-submenu-trigger:hover { background:transparent; border-color:transparent; }
.sidebar-link-active .sidebar-link-icon-wrap,.sidebar-menu-trigger-active .sidebar-link-icon-wrap,.dashboard-sidebar.company-dashboard-sidebar .sidebar-link:hover .sidebar-link-icon-wrap,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger:hover .sidebar-link-icon-wrap,.sidebar-submenu-trigger:hover i:first-child { background:linear-gradient(135deg,#2563eb,#14b8a6); }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-group { margin:0; border-radius:0; overflow:visible; background:transparent; border:none; transition:none; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu { margin-top:0; padding:0; position:static; width:100%; background:transparent; border:none; border-radius:0; box-shadow:none; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu { display:flex; flex-direction:column; gap:2px; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link,.sidebar-submenu-trigger { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; min-height:36px; margin-top:0; padding:6px 8px; border-radius:0; color:rgba(255,255,255,.82); background:transparent; text-decoration:none; font-size:.86rem; line-height:1.45; border:none; }
.sidebar-submenu-trigger > span { display:flex; align-items:center; gap:10px; flex:1 1 auto; min-width:0; }
.sidebar-submenu-trigger > span > span { flex:1 1 auto; min-width:0; }
.sidebar-submenu-trigger > i:last-child { margin-right:auto; flex:0 0 auto; }
.sidebar-submenu-group { margin-top:0; display:flex; flex-direction:column; gap:2px; }
.sidebar-submenu-nested { margin-top:2px; margin-right:12px; padding:1px 0 2px; border-right:none; background:transparent; border-radius:0; box-shadow:none; display:flex; flex-direction:column; gap:2px; }
.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-submenu, .dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-submenu-nested { display:none !important; }
.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-submenu-link span,.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-submenu-trigger span span,.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-submenu-trigger > i:last-child { display:none; }
.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-submenu-link,.dashboard-sidebar.company-dashboard-sidebar:not(.is-pinned) .sidebar-submenu-trigger { justify-content:center; padding:6px; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link:hover,.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link-active,.sidebar-submenu-trigger.is-open { background:transparent; color:#fff; }
.sidebar-submenu-trigger{ box-shadow:none; }
.sidebar-submenu-trigger.is-open{ background:transparent; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu .sidebar-submenu-link{ background:transparent; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-group:has(.sidebar-menu-trigger.is-open){ background:transparent; border-color:transparent; box-shadow:none; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-group{ margin-top:0; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-group:first-child{ margin-top:0; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested .sidebar-submenu-link{ background:transparent; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested .sidebar-submenu-link:hover,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested .sidebar-submenu-link-active{ background:transparent; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link i,.sidebar-submenu-trigger i { font-size:1rem; min-width:20px; text-align:center; }
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link span,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-trigger > span > span {
    text-align:right;
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-trigger > span {
    justify-content:flex-start;
}
.company-horizontal-nav ~ .dashboard-main { padding-top:68px; margin-right:84px; width:calc(100% - 84px); transition:margin-right .24s ease, width .24s ease; }
.company-horizontal-nav ~ .dashboard-main .dashboard-topbar { top:0; }
@media (max-width:1024px){ .company-horizontal-nav{ right:0; height:62px; } .company-mobile-menu-btn,.company-sidebar-close{ display:inline-flex; } .company-sidebar-pin-btn{ display:none; } .dashboard-layout .dashboard-sidebar.company-dashboard-sidebar{ position:fixed; top:0; right:0; width:min(86vw,330px); height:100dvh; z-index:70; transform:translateX(110%); transition:transform .28s ease; border-radius:24px 0 0 24px; box-shadow:-22px 0 50px rgba(15,23,42,.28); } .dashboard-sidebar.company-dashboard-sidebar,.dashboard-sidebar.company-dashboard-sidebar.is-pinned{ width:min(86vw,330px); } .dashboard-sidebar.company-dashboard-sidebar .sidebar-logo,.dashboard-sidebar.company-dashboard-sidebar .sidebar-logo.is-hidden{ display:flex; } .dashboard-sidebar.company-dashboard-sidebar .sidebar-logo-text,.dashboard-sidebar.company-dashboard-sidebar .sidebar-link-text,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-arrow,.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link span,.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-trigger span span,.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-trigger > i:last-child{ display:block; } .dashboard-sidebar.company-dashboard-sidebar .sidebar-link,.dashboard-sidebar.company-dashboard-sidebar .sidebar-menu-trigger{ justify-content:flex-start; padding:8px 10px; } .dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-link,.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-trigger{ justify-content:flex-start; padding:6px 10px 6px 8px; } .company-sidebar-toggle:checked ~ .dashboard-sidebar.company-dashboard-sidebar{ transform:translateX(0); } .company-sidebar-overlay{ display:block; position:fixed; inset:0; z-index:65; background:rgba(15,23,42,.52); opacity:0; pointer-events:none; transition:opacity .22s ease; } .company-sidebar-toggle:checked ~ .company-sidebar-overlay{ opacity:1; pointer-events:auto; } .company-horizontal-nav ~ .dashboard-main{ width:100%; margin-right:0; padding-top:114px; } .company-horizontal-nav ~ .dashboard-main .dashboard-topbar{ top:114px; } }

.sidebar-menu-arrow, .submenu-arrow { transition: transform .2s ease; }
.rotate-180 { transform: rotate(180deg); }

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-link,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-group > .sidebar-submenu-trigger {
    padding-right: 10px;
    font-size:.88rem;
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-link > i,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-group > .sidebar-submenu-trigger > span > i {
    margin-right: 18px;
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-group > .sidebar-submenu-trigger {
    font-weight:600;
    color:rgba(255,255,255,.9);
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-link,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-group > .sidebar-submenu-trigger {
    padding-right: 10px;
    font-size:.82rem;
    color:rgba(255,255,255,.74);
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-link > i,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-group > .sidebar-submenu-trigger > span > i {
    margin-right: 38px;
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-group > .sidebar-submenu-trigger,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-link {
    min-height:34px;
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-group > .sidebar-submenu-trigger > span {
    font-weight: 600;
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested .sidebar-submenu-link .sidebar-notif-badge,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu .sidebar-notif-badge {
    margin-right:auto;
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-link span,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu-nested > .sidebar-submenu-group > .sidebar-submenu-trigger > span > span {
    color: rgba(255,255,255,.9);
}

.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-group + .sidebar-submenu-link,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-link + .sidebar-submenu-group,
.dashboard-sidebar.company-dashboard-sidebar .sidebar-submenu > .sidebar-submenu-group + .sidebar-submenu-group {
    margin-top: 2px;
}
.nav-notif-badge,
.sidebar-notif-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.sidebar-link .sidebar-notif-badge {
    margin-right: auto;
}

/* ========== Marketing Refresh ========== */

[x-cloak] { display:none !important; }
body.menu-open { overflow:hidden; }
.mobile-menu-toggle {
    display:none;
    width:3rem;
    height:3rem;
    border-radius:1rem;
    border:1px solid rgba(148,163,184,.2);
    background:rgba(255,255,255,.92);
    color:#0f172a;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 24px rgba(15,23,42,.08);
}
.mobile-menu-toggle-box { width:1.2rem; height:1rem; position:relative; display:block; }
.mobile-menu-toggle-box span {
    position:absolute;
    right:0;
    width:100%;
    height:2px;
    border-radius:999px;
    background:#0f172a;
    transition:transform .25s ease, opacity .2s ease, top .25s ease;
}
.mobile-menu-toggle-box span:nth-child(1) { top:0; }
.mobile-menu-toggle-box span:nth-child(2) { top:.42rem; }
.mobile-menu-toggle-box span:nth-child(3) { top:.84rem; }
.mobile-menu-toggle-box span:nth-child(1).is-open { top:.42rem; transform:rotate(45deg); }
.mobile-menu-toggle-box span:nth-child(2).is-open { opacity:0; }
.mobile-menu-toggle-box span:nth-child(3).is-open { top:.42rem; transform:rotate(-45deg); }
.mobile-menu-panel {
    display:none;
    border-top:1px solid rgba(148,163,184,.14);
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(18px);
    box-shadow:0 20px 50px rgba(15,23,42,.08);
}
.mobile-menu-shell { padding-top:1rem; padding-bottom:1rem; }
.mobile-menu-links, .mobile-menu-actions { display:grid; gap:.65rem; }
.mobile-menu-links a {
    display:flex;
    align-items:center;
    min-height:3rem;
    padding:.85rem 1rem;
    border-radius:1rem;
    color:#0f172a;
    font-weight:800;
    background:linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.96));
    border:1px solid rgba(226,232,240,.9);
}
.mobile-menu-actions { margin-top:1rem; }
.mobile-menu-actions .btn-primary, .mobile-menu-actions .btn-secondary { width:100%; justify-content:center; }
.mobile-menu-text-btn {
    width:100%;
    min-height:3rem;
    border:0;
    border-radius:1rem;
    background:#eff6ff;
    color:#1d4ed8;
    font-weight:800;
    text-align:center;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:.85rem 1rem;
    cursor:pointer;
}

body.site-body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: #1f2937;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 48%, #f8fafc 100%);
    min-height: 100vh;
}

body.site-body h1,
body.site-body .hero-title,
body.site-body .section-hero-title,
body.site-body .inner-page-title {
    font-family: var(--font-display);
}

body.site-body h2,
body.site-body h6,
body.site-body .nav-brand strong,
body.site-body .site-section-title,
body.site-body .feature-card h3,
body.site-body .pricing-card-title {
    font-family: var(--font-heading);
}
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; }
.header-topbar {
    background: linear-gradient(135deg, #0f172a, #0b3b72);
    color: #e2e8f0;
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-topbar-inner, .nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.header-topbar-inner { min-height: 2.6rem; }
.header-topbar-note, .header-topbar-links { display: flex; align-items: center; gap: 1rem; }
.header-topbar-note i { color: #fbbf24; }
.header-topbar-links a { color: #dbeafe; }
.site-nav {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148,163,184,0.15);
    box-shadow: 0 10px 25px rgba(15,23,42,0.06);
}
.nav-inner { min-height: 5.1rem; }
.nav-brand-wrap { display:flex; align-items:center; }
.nav-brand { display:flex; align-items:center; gap:.85rem; color:var(--ink); }
.nav-brand-badge {
    width:3rem; height:3rem; border-radius:1rem; display:inline-flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); color:#fff; box-shadow:0 18px 28px rgba(29,78,216,.22);
}
.nav-brand strong { display:block; font-size:1.1rem; font-weight:900; }
.nav-brand small { display:block; font-size:.75rem; color:#64748b; }
.nav-links { display:flex; align-items:center; gap:1.2rem; }
.nav-links a, .nav-text-link { color:#334155; font-weight:700; font-size:.93rem; }
.nav-links a:hover, .nav-text-link:hover { color:var(--primary); }
.nav-actions { display:flex; align-items:center; gap:.75rem; }
.nav-button-plain { background:none; border:0; cursor:pointer; }
.nav-cta-primary { padding:.85rem 1.35rem; font-size:.92rem; }
.nav-cta-secondary { padding:.8rem 1.2rem; font-size:.9rem; }
.header-spacer { height: 7.7rem; }
.message-banner.info { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color:#fff; }
.message-banner.success { background: linear-gradient(135deg, #10b981, #047857); color:#fff; }
.message-banner.error { background: linear-gradient(135deg, #ef4444, #b91c1c); color:#fff; }
.marketing-home, .inner-page-shell {
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.12), transparent 26%),
        radial-gradient(circle at left 15%, rgba(20,184,166,0.08), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 45%, #f8fafc 100%);
}
.landing-hero-v2, .inner-page-hero { position: relative; padding: 4.5rem 0 3rem; }
.landing-hero-v2 {
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 18% 22%, rgba(56,189,248,0.2), transparent 22%),
        radial-gradient(circle at 84% 18%, rgba(251,191,36,0.16), transparent 20%),
        radial-gradient(circle at 50% 78%, rgba(59,130,246,0.12), transparent 26%),
        linear-gradient(135deg, #fdfefe 0%, #edf4ff 34%, #d8e7ff 58%, #f8fbff 100%);
}
.landing-hero-v2::before {
    content: "";
    position: absolute;
    inset: 1.5rem 2rem auto auto;
    width: 28rem;
    height: 28rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 72%);
    filter: blur(18px);
    opacity: .8;
    z-index: -1;
}
.landing-hero-v2::after {
    content: "";
    position: absolute;
    inset: auto auto 1rem -4rem;
    width: 24rem;
    height: 24rem;
    background: linear-gradient(135deg, rgba(15,23,42,0.06), rgba(37,99,235,0.14));
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 4rem;
    transform: rotate(-18deg);
    box-shadow: 0 50px 120px rgba(30,64,175,0.12);
    z-index: -1;
}
.hero-v2-grid {
    display:grid; grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr); gap:2rem; align-items:center; position:relative; z-index:1;
}
.hero-kicker, .section-kicker {
    display:inline-flex; align-items:center; gap:.55rem; padding:.55rem 1rem; border-radius:999px;
    background: rgba(29,78,216,0.08); color:#1d4ed8; border:1px solid rgba(29,78,216,0.12); font-weight:800; font-size:.88rem;
}
.hero-kicker { margin-bottom:1.4rem; }
.hero-v2-copy h1, .inner-page-hero h1 {
    color:#0f172a; font-size:clamp(1.95rem,3.1vw,3.05rem); line-height:1.22; font-weight:900; letter-spacing:-.02em; margin-bottom:.9rem;
}
.hero-v2-copy h1 span, .inner-page-hero h1 span { color:#1d4ed8; }
.hero-v2-copy p, .inner-page-hero p {
    color:#475569; font-size:1rem; line-height:1.95; max-width:40rem; margin-bottom:1.45rem;
}
.hero-actions-row, .section-actions-center { display:flex; gap:1rem; flex-wrap:wrap; align-items:center; }
.hero-proof-band {
    margin-top:1.35rem; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.9rem;
}
.hero-proof-band div, .marketing-band-grid article, .value-card, .module-card-v2, .detail-panel,
.flow-grid-four article, .pricing-card, .info-card, .content-panel, .faq-list-v2 article {
    background: rgba(255,255,255,0.92); border:1px solid rgba(226,232,240,0.95); border-radius:1.4rem; box-shadow:0 18px 45px rgba(15,23,42,0.06);
}
.hero-proof-band div { padding:.9rem; }
.hero-proof-band strong { display:block; color:#0f172a; margin-bottom:.3rem; }
.hero-proof-band span { color:#64748b; font-size:.9rem; }
.hero-v2-stage { position:relative; min-height:32rem; display:flex; align-items:center; justify-content:center; overflow:visible; }
.stage-main-card {
    width:min(100%,31rem); background:linear-gradient(180deg,#fff,#eef4ff); padding:1.3rem; border-radius:1.7rem; border:1px solid rgba(148,163,184,.15);
    box-shadow:0 30px 70px rgba(15,23,42,.16); animation:floatingPanel 7s ease-in-out infinite;
}
.stage-main-head, .detail-head, .footer-hero-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.status-pill, .pricing-trial {
    display:inline-flex; padding:.38rem .8rem; border-radius:999px; background:linear-gradient(135deg,#0f766e,#14b8a6); color:#fff; font-size:.8rem; font-weight:800;
}
.stage-main-list { display:grid; gap:.9rem; margin-top:1rem; }
.stage-main-list article { display:flex; gap:.8rem; background:#fff; border:1px solid rgba(226,232,240,0.9); padding:.9rem; border-radius:1rem; }
.stage-main-list i, .value-card i, .module-icon-v2, .detail-head i, .info-card i {
    width:3rem; height:3rem; border-radius:1rem; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
}
.stage-main-list i { background:rgba(29,78,216,.1); color:#1d4ed8; }
.stage-main-list strong { display:block; color:#0f172a; margin-bottom:.2rem; }
.stage-main-list span { color:#64748b; font-size:.9rem; line-height:1.8; }
.stage-mini-card {
    position:absolute; width:14.5rem; display:flex; gap:.75rem; background:rgba(15,23,42,.92); color:#fff; padding:.9rem 1rem; border-radius:1.1rem;
    border:1px solid rgba(255,255,255,.08); box-shadow:0 18px 40px rgba(15,23,42,.18);
}
.stage-mini-card i { color:#fbbf24; font-size:1.3rem; }
.stage-mini-card strong { display:block; margin-bottom:.25rem; }
.stage-mini-card span { color:rgba(255,255,255,.75); font-size:.84rem; }
.mini-top { top:.4rem; left:.2rem; }
.mini-bottom { right:.2rem; bottom:.7rem; }
.marketing-band { margin-top:-1rem; position:relative; z-index:2; }
.marketing-band-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.marketing-band-grid article { padding:1.2rem; }
.marketing-band-grid strong { display:block; font-size:1.45rem; color:#0f172a; margin-bottom:.3rem; }
.marketing-band-grid span { color:#64748b; font-size:.92rem; }
.marketing-section, .inner-page-content { padding:5.5rem 0; }
.section-soft { background:linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.86)); }
.section-heading-center { max-width:56rem; text-align:center; margin:0 auto 3rem; }
.section-heading-center h2 { font-size:clamp(1.55rem,2.6vw,2.45rem); line-height:1.22; font-weight:900; color:#0f172a; margin:.9rem 0; }
.section-heading-center p { color:#475569; font-size:1.03rem; line-height:2; }
.value-grid-four, .detail-grid-three, .pricing-grid-three, .cards-grid-3, .content-split-grid { display:grid; gap:1.15rem; }
.pricing-grid-three { align-items:stretch; padding-top:.6rem; margin-bottom:2rem; }
.value-grid-four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.cards-grid-3, .detail-grid-three, .pricing-grid-three, .content-split-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.value-card, .module-card-v2, .detail-panel, .flow-grid-four article, .pricing-card, .info-card, .content-panel, .faq-list-v2 article { padding:1.45rem; }
.pricing-card { display:flex; flex-direction:column; min-height:100%; overflow:visible; }
.pricing-card ul { margin-top:1rem; }
.pricing-card p { flex-grow:1; }
.value-card i, .info-card i { background:rgba(29,78,216,.1); color:#1d4ed8; margin-bottom:1rem; }
.value-card h3, .module-card-v2 h3, .detail-panel h3, .flow-grid-four h3, .pricing-card h3, .info-card h3, .content-panel h3, .faq-list-v2 h3 { color:#0f172a; font-size:1.08rem; font-weight:800; margin-bottom:.65rem; }
.value-card p, .module-card-v2 p, .detail-panel p, .flow-grid-four p, .pricing-card p, .info-card p, .content-panel p, .faq-list-v2 p { color:#475569; line-height:1.95; font-size:.95rem; }
.module-grid-fifteen { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1rem; }
.module-page-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.module-card-v2 { transition:transform .3s ease, box-shadow .3s ease; }
.module-card-v2:hover, .value-card:hover, .detail-panel:hover, .flow-grid-four article:hover, .pricing-card:hover, .info-card:hover, .content-panel:hover, .faq-list-v2 article:hover { transform:translateY(-8px); box-shadow:0 30px 60px rgba(15,23,42,.11); }
.module-icon-v2 { margin-bottom:1rem; color:#fff; box-shadow:0 15px 28px rgba(37,99,235,.18); }
.g1{background:linear-gradient(135deg,#334155,#64748b)} .g2{background:linear-gradient(135deg,#1d4ed8,#38bdf8)} .g3{background:linear-gradient(135deg,#059669,#22c55e)}
.g4{background:linear-gradient(135deg,#db2777,#fb7185)} .g5{background:linear-gradient(135deg,#ea580c,#f59e0b)} .g6{background:linear-gradient(135deg,#0891b2,#67e8f9)}
.g7{background:linear-gradient(135deg,#7c3aed,#a78bfa)} .g8{background:linear-gradient(135deg,#4338ca,#818cf8)} .g9{background:linear-gradient(135deg,#0f766e,#2dd4bf)}
.g10{background:linear-gradient(135deg,#dc2626,#fb7185)} .g11{background:linear-gradient(135deg,#0ea5e9,#2563eb)} .g12{background:linear-gradient(135deg,#047857,#10b981)}
.g13{background:linear-gradient(135deg,#475569,#94a3b8)} .g14{background:linear-gradient(135deg,#b45309,#facc15)} .g15{background:linear-gradient(135deg,#0f172a,#1e3a8a)}
.detail-head { justify-content:flex-start; margin-bottom:1rem; }
.detail-head i, .info-card i { background:linear-gradient(135deg,#1d4ed8,#14b8a6); color:#fff; }
.detail-list-v2, .detail-panel ul, .pricing-card ul, .faq-list-v2 { list-style:none; display:grid; gap:.6rem; }
.detail-list-v2 li, .detail-panel li, .pricing-card li {
    position:relative; padding-right:1rem; color:#334155; font-size:.94rem; line-height:1.9;
}
.detail-list-v2 li::before, .detail-panel li::before, .pricing-card li::before {
    content:''; position:absolute; right:0; top:.8rem; width:.42rem; height:.42rem; border-radius:999px; background:linear-gradient(135deg,#1d4ed8,#7c3aed);
}
.flow-grid-four { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.flow-grid-four article span {
    display:inline-flex; width:2.8rem; height:2.8rem; align-items:center; justify-content:center; border-radius:.9rem; background:linear-gradient(135deg,#0f172a,#1d4ed8); color:#fff; font-weight:900; margin-bottom:1rem;
}
.pricing-card.featured { background:linear-gradient(180deg,#0f172a 0%, #133a79 100%); color:#fff; transform:translateY(-.35rem); box-shadow:0 30px 70px rgba(15,23,42,.2); }
.pricing-card.featured h3, .pricing-card.featured p, .pricing-card.featured li { color:#fff; }
.pricing-card.featured li::before { background:linear-gradient(135deg,#fbbf24,#fde68a); }
.pricing-badge {
    position:static;
    top:auto;
    left:auto;
    right:auto;
    transform:none;
    box-shadow:none;
    display:inline-flex;
    align-self:flex-end;
    margin-bottom:1rem;
    padding:.4rem .85rem;
    border-radius:999px;
    background:rgba(29,78,216,.08);
    color:#1d4ed8;
    font-size:.8rem;
    font-weight:800;
}
.pricing-card.featured .pricing-badge { background:rgba(255,255,255,.12); color:#fde68a; }
.pricing-trial { margin-bottom:1rem; align-self:flex-start; }
.section-actions-center { justify-content:center; margin-top:2rem; }
.pricing-preview-action { margin-top:2.6rem; }
.pricing-summary-panel { margin-top:2rem; }
.cta-section-final { padding-top:1rem; }
.cta-panel-final, .footer-shell {
    background: linear-gradient(135deg,#0f172a 0%, #163b78 100%);
    border-radius:2rem; color:#fff; box-shadow:0 30px 70px rgba(15,23,42,.18);
}
.cta-panel-final { padding:2.1rem; display:grid; grid-template-columns:minmax(0,1.2fr) auto; gap:1.5rem; align-items:center; }
.cta-panel-final h2 { font-size:clamp(1.8rem,3.8vw,3rem); line-height:1.2; margin:1rem 0 .9rem; font-weight:900; }
.cta-panel-final p { color:rgba(255,255,255,.88); }
.section-kicker-invert { color:#dbeafe; background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.14); }
.inner-page-hero { background:linear-gradient(135deg, rgba(255,255,255,.72), rgba(219,234,254,.88)); border-bottom:1px solid rgba(148,163,184,.12); }
.inner-page-content { padding-top:3rem; }
.content-panel.wide { grid-column:1 / -1; }
.faq-list-v2 { display:grid; gap:1rem; }
.site-footer-v2 {
    margin-top:4rem;
    padding:0;
    width:100%;
    background:
        radial-gradient(circle at 12% 18%, rgba(59,130,246,0.2), transparent 20%),
        radial-gradient(circle at 88% 20%, rgba(20,184,166,0.16), transparent 18%),
        linear-gradient(135deg, #08111f 0%, #0e2746 48%, #0b1324 100%);
    position:relative;
    overflow:hidden;
}
.site-footer-v2::before {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size:32px 32px;
    opacity:.2;
    pointer-events:none;
}
.footer-shell { width:100%; padding:4rem 0 2rem; border-radius:0; background:transparent; box-shadow:none; position:relative; z-index:1; }
.footer-hero-row, .footer-grid-v2, .footer-bottom-v2 { width:min(1280px, calc(100% - 2rem)); margin-left:auto; margin-right:auto; }
.footer-brand-block { display:flex; align-items:center; gap:1rem; }
.footer-brand-icon {
    width:4rem; height:4rem; border-radius:1.2rem; background:linear-gradient(135deg,#1d4ed8,#14b8a6); display:inline-flex; align-items:center; justify-content:center; font-size:1.6rem; color:#fff;
}
.footer-brand-block h3 { font-size:1.45rem; font-weight:900; margin-bottom:.3rem; }
.footer-brand-block p { color:rgba(255,255,255,.74); max-width:38rem; }
.footer-cta-row { display:flex; gap:1rem; flex-wrap:wrap; }
.footer-grid-v2 { display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:2rem; margin:2rem auto; }
.footer-grid-v2 h4 { font-size:1rem; font-weight:800; margin-bottom:1rem; }
.footer-grid-v2 ul { list-style:none; display:grid; gap:.7rem; }
.footer-grid-v2 a, .footer-grid-v2 li { color:rgba(255,255,255,.74); line-height:1.85; }
.footer-grid-v2 a:hover { color:#fff; }
.footer-bottom-v2 { border-top:1px solid rgba(255,255,255,.08); padding-top:1.2rem; display:flex; justify-content:space-between; gap:1rem; align-items:center; color:rgba(255,255,255,.66); }
.footer-bottom-links { display:flex; gap:1rem; flex-wrap:wrap; }
@keyframes floatingPanel { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-12px); } }
@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 1200px) {
    .module-grid-fifteen { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .value-grid-four { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .footer-grid-v2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1024px) {
    .desktop-only { display:none !important; }
    .mobile-menu-toggle { display:inline-flex; }
    .mobile-menu-panel { display:block; }
    .nav-inner { min-height:4.8rem; }
    .nav-brand strong { font-size:1rem; }
    .nav-brand small { font-size:.7rem; }
    .hero-v2-grid, .cta-panel-final, .cards-grid-3, .detail-grid-three, .pricing-grid-three, .content-split-grid { grid-template-columns:1fr; }
    .hero-proof-band, .marketing-band-grid, .flow-grid-four { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .stage-mini-card { position:relative; width:100%; top:auto; bottom:auto; left:auto; right:auto; margin-top:1rem; }
}
@media (max-width: 768px) {
    .footer-hero-row, .footer-bottom-v2 { flex-direction:column; align-items:flex-start; }
    .header-topbar-inner {
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        gap:.6rem;
        flex-wrap:nowrap;
        min-height:2.55rem;
    }
    .header-topbar-note, .header-topbar-links {
        gap:.55rem;
        white-space:nowrap;
        flex-wrap:nowrap;
    }
    .header-topbar-note { font-size:.76rem; }
    .header-topbar-links { width:auto; justify-content:flex-end; }
    .header-topbar-links a { font-size:.75rem; }
    .nav-inner { flex-direction:row; align-items:center; }
    .nav-brand { gap:.7rem; }
    .nav-brand-badge { width:2.7rem; height:2.7rem; }
    .header-spacer { height:8.2rem; }
    .landing-hero-v2, .inner-page-hero { padding:3.3rem 0 2.2rem; }
    .landing-hero-v2::before, .landing-hero-v2::after { display:none; }
    .hero-v2-grid { grid-template-columns:1fr; gap:1rem; }
    .hero-v2-copy { order:1; }
    .hero-v2-stage { display:none; }
    .hero-v2-copy h1, .inner-page-hero h1 { font-size:1.72rem; line-height:1.32; }
    .hero-v2-copy p, .inner-page-hero p { font-size:.92rem; line-height:1.9; max-width:none; }
    .hero-kicker, .section-kicker { font-size:.8rem; padding:.5rem .85rem; }
    .hero-proof-band { grid-template-columns:1fr; gap:.65rem; }
    .hero-proof-band div { padding:.85rem .9rem; }
    .stage-main-card { width:100%; padding:1rem; border-radius:1.25rem; }
    .stage-main-list article { padding:.75rem; align-items:flex-start; }
    .stage-main-list i { width:2.3rem; height:2.3rem; min-width:2.3rem; }
    .stage-main-head { align-items:flex-start; }
    .stage-mini-card { padding:.8rem .9rem; border-radius:.95rem; width:100%; }
    .marketing-band { margin-top:0; }
    .hero-proof-band, .marketing-band-grid, .value-grid-four, .module-grid-fifteen, .module-page-grid, .detail-grid-three, .flow-grid-four, .pricing-grid-three, .cards-grid-3, .content-split-grid, .footer-grid-v2 { grid-template-columns:1fr; }
    .hero-actions-row, .section-actions-center, .footer-cta-row { flex-direction:column; align-items:stretch; }
    .hero-actions-row a, .section-actions-center a, .footer-cta-row a { width:100%; }
    .footer-shell { padding:3rem 0 1.5rem; }
    .cta-panel-final { padding:1.5rem; }
    .footer-hero-row, .footer-grid-v2, .footer-bottom-v2 { width:calc(100% - 1.5rem); }
}


.modules-page-shell .inner-page-content { padding-top: 3.4rem; }
.modules-hero { overflow:hidden; }
.modules-hero::before {
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 12% 20%, rgba(29,78,216,.12), transparent 22%),
        radial-gradient(circle at 88% 18%, rgba(20,184,166,.14), transparent 18%);
    pointer-events:none;
}
.modules-hero-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(18rem,.8fr); gap:1.4rem; align-items:start; }
.modules-hero-actions { margin-top:1.5rem; }
.modules-hero-panel {
    background:rgba(255,255,255,.78);
    border:1px solid rgba(148,163,184,.18);
    border-radius:1.7rem;
    padding:1.2rem;
    box-shadow:0 24px 60px rgba(15,23,42,.08);
    backdrop-filter:blur(10px);
    display:grid;
    gap:.9rem;
}
.modules-hero-stat {
    padding:.95rem 1rem;
    border-radius:1.15rem;
    background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(239,246,255,.95));
    border:1px solid rgba(191,219,254,.5);
}
.modules-hero-stat strong { display:block; color:#0f172a; font-size:1rem; margin-bottom:.25rem; }
.modules-hero-stat span { color:#475569; font-size:.9rem; line-height:1.8; }
.modules-page-intro { margin-bottom:2.2rem; }
.modules-overview-grid { margin-bottom:2rem; }
.modules-overview-card i {
    width:3rem;
    height:3rem;
    border-radius:1rem;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:1rem;
    background:linear-gradient(135deg,#1d4ed8,#14b8a6);
    color:#fff;
    box-shadow:0 16px 30px rgba(37,99,235,.18);
}
.modules-map-panel { margin: .6rem 0 2.5rem; }
.modules-map-head {
    display:grid;
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    gap:1.25rem;
    align-items:end;
    margin-bottom:1.6rem;
}
.modules-map-head p { color:#475569; line-height:2; }
.modules-cluster-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.modules-cluster-grid article {
    background:linear-gradient(180deg,#fff,#f8fbff);
    border:1px solid rgba(226,232,240,.9);
    border-radius:1.35rem;
    padding:1.3rem;
    box-shadow:0 16px 35px rgba(15,23,42,.06);
}
.modules-cluster-grid h3 { color:#0f172a; font-size:1.05rem; font-weight:850; margin-bottom:.8rem; }
.modules-detail-heading { margin-bottom:2rem; }
.modules-rich-grid { margin-bottom:2.1rem; }
.modules-rich-card {
    background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
    border:1px solid rgba(226,232,240,.92);
    box-shadow:0 18px 40px rgba(15,23,42,.07);
}
.modules-rich-card .detail-list-v2 { margin-top:1rem; }
.modules-why-grid { margin-bottom:2rem; }
.modules-cta-panel { margin-top:.5rem; }
@media (max-width: 1200px) {
    .modules-hero-grid, .modules-map-head { grid-template-columns:1fr; }
}
@media (max-width: 1024px) {
    .modules-cluster-grid { grid-template-columns:1fr; }
}


.modules-guidance-section {
    margin: 0 0 2.2rem;
    padding: 2rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at 10% 12%, rgba(29,78,216,.09), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(20,184,166,.09), transparent 22%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
    border: 1px solid rgba(191,219,254,.5);
    box-shadow: 0 24px 60px rgba(15,23,42,.08);
}
.modules-guidance-heading { margin-bottom: 1.8rem; }
.modules-guidance-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.15rem; align-items:stretch; width:100%; }
.modules-guidance-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(226,232,240,.92);
    border-radius: 1.5rem;
    box-shadow: 0 18px 42px rgba(15,23,42,.07);
}
.modules-guidance-card h3 { font-size: 1.18rem; margin-bottom: .85rem; }
.modules-guidance-card .detail-list-v2 { margin-top: .9rem; }
@media (max-width: 1024px) {
    .modules-guidance-grid { grid-template-columns:1fr; }
}
@media (max-width: 768px) {
    .modules-guidance-section { padding: 1.25rem; border-radius: 1.5rem; }
}

@media (max-width: 768px) {
    .hero-v2-copy, .hero-v2-stage { min-width:0; }
    .hero-v2-copy > *, .stage-main-card, .stage-main-list article, .stage-mini-card { overflow-wrap:anywhere; }
    .stage-main-list span, .stage-mini-card span { font-size:.82rem; line-height:1.7; }
    .stage-main-list strong, .stage-mini-card strong { font-size:.88rem; }
}


.sidebar-logout-wrap {
    padding: 0 1rem 1rem;
}

.sidebar-logout-form {
    width: 100%;
}

.sidebar-logout-btn {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    color: #be123c;
    cursor: pointer;
}

.sidebar-logout-btn:hover {
    background: linear-gradient(135deg, #ffe4e6, #fecdd3);
    color: #9f1239;
}

.owner-trial-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: min(92vw, 420px);
    max-width: 92vw;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.owner-trial-banner-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.owner-trial-banner-icon i {
    font-size: 1.1rem;
}

.owner-trial-banner-text {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}


@media (max-width: 640px) {
    .owner-trial-banner {
        bottom: 0.75rem;
        min-width: calc(100vw - 1rem);
        border-radius: 1.1rem;
        padding: 0.8rem 1rem;
    }

    .owner-trial-banner-text {
        font-size: 0.88rem;
    }
}

.owner-profile-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.14);
    color: #dc2626 !important;
    font-weight: 900;
    border: 1px solid rgba(220, 38, 38, 0.28);
    animation: owner-warning-pulse 1.1s ease-in-out infinite;
}

.owner-profile-warning i {
    color: #dc2626 !important;
    font-size: 1rem;
}

@keyframes owner-warning-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.18);
        transform: translateY(0);
    }
    50% {
        opacity: 0.72;
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
        transform: translateY(-1px);
    }
}




/* ========== Owner Area Phase 1 & 2 ========== */
.owner-area {
    background: radial-gradient(circle at top right, rgba(99,102,241,.12), transparent 22%), radial-gradient(circle at top left, rgba(16,185,129,.08), transparent 20%), #f8fafc;
}
.owner-topbar-shell { position: sticky; top: 0; z-index: 70; background: rgba(255,255,255,.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(226,232,240,.95); box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.owner-topbar-inner, .owner-subnav-inner { max-width: 1440px; margin: 0 auto; padding-right: 1.35rem; padding-left: 1.35rem; }
.owner-topbar-inner { min-height: 74px; display:flex; align-items:center; gap:1rem; }
.owner-brand { min-width: 230px; display:inline-flex; align-items:center; gap:.75rem; text-decoration:none; color:#0f172a; }
.owner-brand-icon { width:46px; height:46px; border-radius:16px; display:inline-grid; place-items:center; color:#fff; background:linear-gradient(135deg,#7c3aed,#2563eb); box-shadow:0 14px 26px rgba(99,102,241,.24); }
.owner-brand strong,.owner-brand small{display:block;line-height:1.3}.owner-brand strong{font-size:.98rem}.owner-brand small{font-size:.74rem;color:#64748b}
.owner-primary-nav,.owner-subnav-inner { flex:1; min-width:0; display:flex; align-items:center; gap:.42rem; overflow-x:auto; scrollbar-width:none; }
.owner-primary-nav::-webkit-scrollbar,.owner-subnav-inner::-webkit-scrollbar{display:none}
.owner-primary-nav a,.owner-profile-chip,.owner-action-btn,.owner-subnav-inner a,.owner-subnav-muted{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:42px;padding:.58rem .9rem;border-radius:999px;border:1px solid transparent;text-decoration:none;background:transparent;color:#334155;font-size:.86rem;font-weight:700;white-space:nowrap;transition:all .2s ease}
.owner-primary-nav a:hover,.owner-primary-nav a.is-active,.owner-profile-chip:hover,.owner-action-btn:hover,.owner-subnav-inner a:hover,.owner-subnav-inner a.is-active{background:#eef2ff;color:#312e81;border-color:#c7d2fe}
.owner-primary-nav a.is-active,.owner-subnav-inner a.is-active{box-shadow: inset 0 0 0 1px #a5b4fc}
.owner-subnav-shell{border-top:1px solid #f1f5f9;background:rgba(248,250,252,.95)}
.owner-subnav-inner{padding-top:.55rem;padding-bottom:.55rem}
.owner-subnav-muted{background:#fff;border-color:#e2e8f0;color:#94a3b8;cursor:default}.owner-subnav-muted small{font-size:.7rem}
.owner-topbar-actions{flex:0 0 auto;display:inline-flex;align-items:center;gap:.5rem}.owner-action-primary{background:linear-gradient(135deg,#4f46e5,#2563eb);color:#fff;border-color:transparent;box-shadow:0 14px 26px rgba(79,70,229,.2)}.owner-action-primary:hover{color:#fff;background:linear-gradient(135deg,#4338ca,#1d4ed8)}.owner-action-btn.is-disabled{opacity:.55;cursor:not-allowed}.owner-profile-chip{background:#fff;border-color:#e2e8f0;max-width:210px}.owner-profile-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.owner-inline-form{display:inline}.owner-logout-btn{width:42px;padding:0;border-color:#e2e8f0;background:#fff}
.owner-layout{display:block;min-height:100vh}.owner-layout .dashboard-main{width:100%;min-width:0}.owner-layout .dashboard-topbar{position:static;background:transparent;border:0;padding:1.7rem 2rem .5rem}.owner-layout .dashboard-container{padding:0 2rem 2rem}.owner-layout .dashboard-welcome{font-size:1.95rem}
.owner-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#111827,#1e1b4b 58%,#1d4ed8);color:#fff;border-radius:30px;padding:2rem;margin-bottom:1.25rem;box-shadow:0 24px 48px rgba(15,23,42,.18)}.owner-hero:before,.owner-hero:after{content:"";position:absolute;border-radius:999px;background:rgba(255,255,255,.08)}.owner-hero:before{width:260px;height:260px;top:-90px;left:-60px}.owner-hero:after{width:180px;height:180px;bottom:-50px;right:-40px}.owner-hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.9fr);gap:1rem;align-items:stretch}.owner-hero h1{color:#fff;margin-bottom:.7rem}.owner-hero p{color:rgba(255,255,255,.88);margin:0}.owner-hero a{text-decoration:none}.owner-inline-link{color:#fff;text-decoration:underline;text-underline-offset:4px;font-weight:800}.owner-inline-link-dark{color:#3730a3;text-decoration:none;font-weight:800;border-bottom:1px dashed currentColor}
.owner-status-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .8rem;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;margin-bottom:1rem;font-size:.82rem;font-weight:700}.owner-hero-actions,.owner-inline-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.35rem}.owner-btn-ghost,.owner-btn-primary,.owner-btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.72rem 1rem;border-radius:14px;text-decoration:none;font-weight:800;border:1px solid transparent}.owner-btn-primary{background:#fff;color:#111827}.owner-btn-secondary{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.18)}.owner-btn-ghost{background:#fff;color:#312e81;border-color:#c7d2fe}.owner-btn-primary:hover,.owner-btn-secondary:hover,.owner-btn-ghost:hover{opacity:.95}
.owner-panel{position:relative;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:24px;padding:1.25rem;backdrop-filter:blur(10px)}.owner-panel h3{color:#fff;margin:0 0 .7rem 0;font-size:1.05rem}.owner-panel p{color:rgba(255,255,255,.86);font-size:.88rem}.owner-checklist{display:grid;gap:.7rem;margin-top:1rem}.owner-check-item{display:flex;align-items:flex-start;gap:.65rem;padding:.8rem;border-radius:16px;background:rgba(255,255,255,.08)}.owner-check-item i{font-size:1.15rem;margin-top:.12rem}.owner-check-item strong{display:block;color:#fff;font-size:.9rem}.owner-check-item span{display:block;color:rgba(255,255,255,.75);font-size:.79rem}.owner-check-item.is-done{background:rgba(16,185,129,.16)}.owner-check-item.is-current{background:rgba(251,191,36,.18)}
.owner-section-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.9fr);gap:1rem;margin-bottom:1rem}.owner-card-soft{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e2e8f0;border-radius:24px;padding:1.1rem}.owner-card-soft h3{margin:0 0 .35rem 0;color:#0f172a;font-size:1rem}.owner-card-soft p{margin:0;color:#64748b;font-size:.86rem}.owner-card-soft .dashboard-stat-card{margin-bottom:0}.owner-highlight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.8rem}.owner-highlight-item,.owner-summary-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:1rem}.owner-highlight-item strong,.owner-summary-card strong{display:block;color:#0f172a;margin-bottom:.25rem}.owner-highlight-item span,.owner-summary-card span{color:#64748b;font-size:.84rem}.owner-stage-list,.owner-mini-list{display:grid;gap:.75rem}.owner-stage-item{display:flex;align-items:flex-start;gap:.75rem;padding:.9rem;border-radius:18px;background:#fff;border:1px solid #e5e7eb}.owner-stage-icon{width:42px;height:42px;border-radius:14px;display:inline-grid;place-items:center;background:#eef2ff;color:#4338ca;flex:0 0 auto}.owner-stage-copy strong{display:block;color:#0f172a;margin-bottom:.2rem}.owner-stage-copy span{color:#64748b;font-size:.84rem}.owner-mini-item{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.85rem .95rem;border-radius:18px;background:#fff;border:1px solid #e2e8f0}.owner-mini-item-label{color:#64748b;font-size:.82rem}.owner-mini-item-value{color:#0f172a;font-size:.95rem;font-weight:800}.owner-empty-note{padding:1rem 1.1rem;border-radius:18px;background:#eef2ff;color:#3730a3;font-size:.86rem}.owner-company-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.owner-company-card{border-radius:22px;border:1px solid #e2e8f0;background:linear-gradient(180deg,#fff,#f8fafc);padding:1rem;box-shadow:0 10px 24px rgba(15,23,42,.04)}.owner-company-card-header,.owner-row-between{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.owner-company-card-title{font-size:1.02rem;margin:.8rem 0 .45rem 0;color:#0f172a}.owner-company-meta,.owner-inline-meta{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;color:#64748b;font-size:.82rem}.owner-progress-strip{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:.9rem 0 .45rem}.owner-progress-strip span{display:block;height:100%;background:linear-gradient(90deg,#8b5cf6,#2563eb);border-radius:999px}.owner-page-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-radius:22px;background:#fff;border:1px solid #e2e8f0;margin-bottom:1rem}.owner-page-banner-copy strong{display:block;color:#0f172a;margin-bottom:.35rem}.owner-page-banner-copy p{color:#64748b;font-size:.86rem;margin:0}.owner-page-banner-icon{width:46px;height:46px;border-radius:16px;background:#eef2ff;color:#4338ca;display:grid;place-items:center;flex:0 0 auto}.owner-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.9rem;margin-bottom:1rem}.owner-page-shell .dashboard-card,.owner-page-shell .company-card,.owner-page-shell .notif-card{border-radius:24px}.owner-page-shell .dashboard-card-header{padding:1rem 1.2rem}.owner-page-shell .dashboard-card-body{padding:1.2rem}
.owner-glance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.owner-glance-card{padding:1rem;border-radius:22px;background:#fff;border:1px solid #e2e8f0}.owner-glance-card h4{margin:0 0 .35rem 0;color:#0f172a}.owner-glance-card p{margin:0;color:#64748b;font-size:.84rem}.owner-kpi-band{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}.owner-kpi{padding:1rem;border-radius:22px;background:#fff;border:1px solid #e2e8f0}.owner-kpi span{display:block;color:#64748b;font-size:.82rem;margin-bottom:.35rem}.owner-kpi strong{font-size:1.05rem;color:#0f172a}
@media (max-width:1180px){.owner-topbar-inner{flex-wrap:wrap}.owner-brand{min-width:unset}.owner-primary-nav{order:3;flex:1 0 100%;padding-bottom:.15rem}.owner-hero-grid,.owner-section-grid{grid-template-columns:1fr}}
@media (max-width:768px){.owner-layout .dashboard-topbar{padding:1.25rem 1rem .35rem}.owner-layout .dashboard-container{padding:0 1rem 1rem}.owner-topbar-inner,.owner-subnav-inner{padding-right:.9rem;padding-left:.9rem}.owner-primary-nav a span,.owner-profile-chip span{display:none}.owner-primary-nav a,.owner-profile-chip{width:40px;padding:0}.owner-action-primary{width:auto;padding:.58rem .85rem}.owner-action-primary span{display:inline}.owner-hero{padding:1.25rem;border-radius:24px}.owner-page-banner{flex-direction:column}.owner-subnav-inner a span,.owner-subnav-muted span{font-size:.78rem}}

.owner-activation-float{display:flex;align-items:center;gap:12px;max-width:min(860px,calc(100vw - 32px));padding:12px 14px;border-radius:22px}.owner-trial-banner-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.owner-trial-banner-body strong{color:#f8fafc;font-size:.88rem;line-height:1.5}.owner-activation-float .owner-trial-banner-text{margin:0;line-height:1.65;text-align:right;font-size:.82rem;font-weight:600;color:rgba(255,255,255,.84)}.owner-trial-banner-cta{position:relative;overflow:hidden;display:inline-flex;align-items:center;gap:.38rem;justify-content:center;white-space:normal;flex:0 0 auto;min-width:148px;padding:.68rem .92rem;border-radius:13px;background:linear-gradient(135deg,#14b8a6,#0f766e);color:#fff;font-size:.81rem;font-weight:800;line-height:1.45;text-align:center;text-decoration:none;box-shadow:0 10px 22px rgba(15,118,110,.22)}.owner-trial-banner-cta span{display:block}.owner-trial-banner-cta::after{content:"";position:absolute;top:0;bottom:0;left:-42%;width:34%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transform:skewX(-24deg);animation:ownerCtaSweep 4.8s ease-in-out infinite}.owner-trial-banner-cta:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(15,118,110,.28);color:#fff}.owner-activation-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:1rem;margin-bottom:1rem}.owner-activation-copy{padding:1.4rem 1.5rem;border-radius:28px;background:radial-gradient(circle at top right,rgba(45,212,191,.16),transparent 34%),linear-gradient(135deg,#f8fffe,#ecfeff 55%,#f8fafc);border:1px solid rgba(20,184,166,.18)}.owner-activation-copy h2{margin:.75rem 0 .55rem;color:#0f172a;font-size:1.65rem}.owner-activation-copy p{margin:0;color:#475569;line-height:2}.owner-activation-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;border-radius:999px;background:#ccfbf1;color:#0f766e;font-size:.82rem;font-weight:800}.owner-btn-glow{position:relative;overflow:hidden}.owner-btn-glow::after{content:"";position:absolute;top:0;bottom:0;left:-38%;width:32%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);transform:skewX(-22deg);animation:ownerCtaSweep 5.4s ease-in-out infinite}.owner-activation-side{padding:1.25rem}@keyframes ownerCtaSweep{0%,58%,100%{left:-42%}74%{left:118%}}@media (max-width:768px){.owner-activation-float{align-items:flex-start;flex-wrap:wrap;padding:12px 12px 11px}.owner-trial-banner-cta{width:100%;padding:.78rem .9rem}.owner-trial-banner-cta span{max-width:none}.owner-activation-hero{grid-template-columns:1fr}.owner-activation-copy h2{font-size:1.2rem}}

.recommendation-card {
    border-color: rgba(125, 211, 252, 0.18);
    background: rgba(255, 255, 255, 0.94);
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.recommendation-row {
    background: linear-gradient(135deg, rgba(15,118,110,0.07), rgba(37,99,235,0.06));
    border: 1px solid rgba(125,211,252,0.22);
}

.no-access-card {
    background: linear-gradient(135deg, rgba(248,250,252,0.96), rgba(239,246,255,0.92));
}

.command-kpi {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.command-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.10);
    border-color: rgba(125, 211, 252, 0.34);
}

.hero-health-card strong {
    color: #ffffff;
}

.command-card-header h2 i,
.quick-grid i,
.feed-dot {
    color: #0f766e;
}

.focus-row:hover,
.action-item:hover,
.quick-grid a:hover {
    border-color: rgba(45, 212, 191, 0.24);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.08);
}

@media (max-width: 1280px) {
    .recommendation-list {
        grid-template-columns: 1fr;
    }
}


.leads-command-page .leads-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.leads-command-page .leads-main-column,
.leads-command-page .leads-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.leads-command-page .leads-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(37, 99, 235, 0.88));
}

.leads-command-page .lead-search-box {
    grid-column: span 2;
}

.leads-command-page .leads-filter-card,
.leads-command-page .leads-table-card,
.leads-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.leads-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.leads-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(37,99,235,0.05));
    border: 1px solid rgba(125, 211, 252, 0.2);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.leads-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.leads-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.leads-command-page .single-column {
    grid-template-columns: 1fr;
}

.leads-command-page .static-row {
    cursor: default;
}

.leads-command-page .static-row:hover {
    transform: none;
}

.leads-command-page .enhanced-empty-state {
    padding: 2rem 1rem;
}

.leads-command-page .empty-state-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.leads-command-page .lead-enhanced-table td,
.leads-command-page .lead-enhanced-table th {
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .leads-command-page .leads-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leads-command-page .lead-search-box {
        grid-column: span 1;
    }
}

.disabled-feature-btn {
    width: 100%;
    border: 0;
    text-align: inherit;
    font: inherit;
    cursor: pointer;
}

.disabled-feature-btn:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.24);
    outline-offset: 2px;
}


.customers-command-page .customers-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.customers-command-page .customers-main-column,
.customers-command-page .customers-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.customers-command-page .customers-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(124, 58, 237, 0.84));
}

.customers-command-page .customer-search-box {
    grid-column: span 2;
}

.customers-command-page .customers-filter-card,
.customers-command-page .customers-table-card,
.customers-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.customers-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.customers-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(124,58,237,0.06));
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.customers-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.customers-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.customers-command-page .customer-enhanced-table td,
.customers-command-page .customer-enhanced-table th {
    white-space: nowrap;
}

.customers-command-page .customer-avatar {
    background: linear-gradient(135deg, #7c3aed, #0f766e);
}

.customers-command-page .customer-health-card {
    border-color: rgba(167, 139, 250, 0.24);
}

.customers-command-page .single-column {
    grid-template-columns: 1fr;
}

.customers-command-page .static-row {
    cursor: default;
}

.customers-command-page .static-row:hover {
    transform: none;
}

.customers-command-page .enhanced-empty-state {
    padding: 2rem 1rem;
}

.customers-command-page .empty-state-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1180px) {
    .customers-command-page .customers-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .customers-command-page .customer-search-box {
        grid-column: span 1;
    }
}


.lead-create-command-page .lead-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.lead-create-command-page .lead-create-main-column,
.lead-create-command-page .lead-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-create-command-page .lead-create-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(37, 99, 235, 0.88));
}

.lead-create-command-page .lead-create-form-card,
.lead-create-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.lead-create-command-page .lead-create-health-card {
    border-color: rgba(59, 130, 246, 0.26);
}

.lead-create-command-page .lead-create-lock {
    margin-bottom: 1rem;
}

.lead-create-command-page .form-intro-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.lead-create-command-page .form-intro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(125, 211, 252, 0.24);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.86rem;
}

.lead-create-command-page .form-intro-chip i {
    color: #0f766e;
    font-size: 1rem;
}

.lead-create-command-page .lead-create-form-grid {
    gap: 1.25rem;
}

.lead-create-command-page .dynamic-form-section {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem;
}

.lead-create-command-page .dynamic-form-section + .dynamic-form-section {
    margin-top: 1rem;
}

.lead-create-command-page .dynamic-form-section-head {
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.lead-create-command-page .dynamic-form-section .form-section-title {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.lead-create-command-page .dynamic-form-grid {
    gap: 1rem;
}

.lead-create-command-page .form-group {
    margin-bottom: 0;
}

.lead-create-command-page .form-input,
.lead-create-command-page .form-select,
.lead-create-command-page textarea.form-input {
    min-height: 48px;
    border-radius: 0.95rem;
    border: 1px solid #dbe4f0;
    background: #fff;
}

.lead-create-command-page textarea.form-input {
    min-height: 120px;
}

.lead-create-command-page .form-input:focus,
.lead-create-command-page .form-select:focus,
.lead-create-command-page textarea.form-input:focus {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.lead-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.lead-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(37,99,235,0.05));
    border: 1px solid rgba(125, 211, 252, 0.2);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.lead-create-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.lead-create-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.lead-create-command-page .single-column {
    grid-template-columns: 1fr;
}

.lead-create-command-page .static-row {
    cursor: default;
}

.lead-create-command-page .static-row:hover {
    transform: none;
}

.lead-create-command-page .lead-create-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 1180px) {
    .lead-create-command-page .lead-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lead-create-command-page .form-intro-strip {
        flex-direction: column;
    }

    .lead-create-command-page .dynamic-form-grid {
        grid-template-columns: 1fr;
    }
}


.customer-create-command-page .customer-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.customer-create-command-page .customer-create-main-column,
.customer-create-command-page .customer-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.customer-create-command-page .customer-create-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(124, 58, 237, 0.84));
}

.customer-create-command-page .customer-create-form-card,
.customer-create-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.customer-create-command-page .customer-create-health-card {
    border-color: rgba(167, 139, 250, 0.24);
}

.customer-create-command-page .form-intro-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.customer-create-command-page .form-intro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.86rem;
}

.customer-create-command-page .form-intro-chip i {
    color: #0f766e;
    font-size: 1rem;
}

.customer-create-command-page .customer-create-form-grid {
    gap: 1.25rem;
}

.customer-create-command-page .dynamic-form-section {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem;
}

.customer-create-command-page .dynamic-form-section + .dynamic-form-section {
    margin-top: 1rem;
}

.customer-create-command-page .dynamic-form-section-head {
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.customer-create-command-page .dynamic-form-section .form-section-title {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.customer-create-command-page .dynamic-form-grid {
    gap: 1rem;
}

.customer-create-command-page .form-group {
    margin-bottom: 0;
}

.customer-create-command-page .form-input,
.customer-create-command-page .form-select,
.customer-create-command-page textarea.form-input {
    min-height: 48px;
    border-radius: 0.95rem;
    border: 1px solid #dbe4f0;
    background: #fff;
}

.customer-create-command-page textarea.form-input {
    min-height: 120px;
}

.customer-create-command-page .form-input:focus,
.customer-create-command-page .form-select:focus,
.customer-create-command-page textarea.form-input:focus {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.customer-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.customer-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(124,58,237,0.06));
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.customer-create-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.customer-create-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.customer-create-command-page .single-column {
    grid-template-columns: 1fr;
}

.customer-create-command-page .static-row {
    cursor: default;
}

.customer-create-command-page .static-row:hover {
    transform: none;
}

.customer-create-command-page .customer-create-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 1180px) {
    .customer-create-command-page .customer-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .customer-create-command-page .form-intro-strip {
        flex-direction: column;
    }

    .customer-create-command-page .dynamic-form-grid {
        grid-template-columns: 1fr;
    }
}


.activities-command-page .activities-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.activities-command-page .activities-main-column,
.activities-command-page .activities-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activities-command-page .activities-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(16, 185, 129, 0.82));
}

.activities-command-page .activities-filter-card,
.activities-command-page .activities-table-card,
.activities-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.activities-command-page .activities-health-card {
    border-color: rgba(16, 185, 129, 0.22);
}

.activities-command-page .activities-filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.activities-command-page .activities-filter-form .form-group {
    min-width: 220px;
    margin-bottom: 0;
}

.activities-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.activities-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(16,185,129,0.06));
    border: 1px solid rgba(110, 231, 183, 0.2);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.activities-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.activities-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.activities-command-page .single-column {
    grid-template-columns: 1fr;
}

.activities-command-page .static-row {
    cursor: default;
}

.activities-command-page .static-row:hover {
    transform: none;
}

.activities-command-page .enhanced-empty-state {
    padding: 2rem 1rem;
}

.activities-command-page .empty-state-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.activities-command-page .activity-enhanced-table td,
.activities-command-page .activity-enhanced-table th {
    white-space: nowrap;
}

.activities-command-page .activity-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
}

.activities-command-page .activity-related-link i {
    color: #0f766e;
}

.activities-command-page .inline-action-form {
    display: inline;
}

.activities-command-page .activity-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.activities-command-page .activity-type-call { background: #dbeafe; color: #1e40af; }
.activities-command-page .activity-type-email { background: #fef3c7; color: #92400e; }
.activities-command-page .activity-type-meeting { background: #ede9fe; color: #6d28d9; }
.activities-command-page .activity-type-note { background: #d1fae5; color: #065f46; }
.activities-command-page .activity-type-task { background: #ffedd5; color: #9a3412; }

@media (max-width: 1180px) {
    .activities-command-page .activities-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .activities-command-page .activities-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .activities-command-page .activities-filter-form .form-group {
        min-width: 100%;
    }
}


.activity-create-command-page .activity-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.activity-create-command-page .activity-create-main-column,
.activity-create-command-page .activity-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-create-command-page .activity-create-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(16, 185, 129, 0.82));
}

.activity-create-command-page .activity-create-form-card,
.activity-create-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.activity-create-command-page .activity-create-health-card {
    border-color: rgba(16, 185, 129, 0.22);
}

.activity-create-command-page .form-intro-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.activity-create-command-page .form-intro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(110, 231, 183, 0.22);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.86rem;
}

.activity-create-command-page .form-intro-chip i {
    color: #0f766e;
    font-size: 1rem;
}

.activity-create-command-page .activity-create-form-grid {
    gap: 1.25rem;
}

.activity-create-command-page .activity-create-section {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem;
}

.activity-create-command-page .activity-create-section + .activity-create-section {
    margin-top: 1rem;
}

.activity-create-command-page .activity-create-section-head {
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.activity-create-command-page .activity-create-section .form-section-title {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.activity-create-command-page .activity-create-form-rows {
    display: grid;
    gap: 1rem;
}

.activity-create-command-page .activity-create-form-rows.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-create-command-page .form-group {
    margin-bottom: 0;
}

.activity-create-command-page .form-input,
.activity-create-command-page .form-select,
.activity-create-command-page textarea.form-input {
    min-height: 48px;
    border-radius: 0.95rem;
    border: 1px solid #dbe4f0;
    background: #fff;
}

.activity-create-command-page textarea.form-input {
    min-height: 120px;
}

.activity-create-command-page .form-input:focus,
.activity-create-command-page .form-select:focus,
.activity-create-command-page textarea.form-input:focus {
    border-color: rgba(16, 185, 129, 0.34);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.activity-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.activity-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(16,185,129,0.06));
    border: 1px solid rgba(110, 231, 183, 0.2);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.activity-create-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.activity-create-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.activity-create-command-page .single-column {
    grid-template-columns: 1fr;
}

.activity-create-command-page .static-row {
    cursor: default;
}

.activity-create-command-page .static-row:hover {
    transform: none;
}

.activity-create-command-page .activity-create-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 1180px) {
    .activity-create-command-page .activity-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .activity-create-command-page .form-intro-strip {
        flex-direction: column;
    }

    .activity-create-command-page .activity-create-form-rows.two-columns {
        grid-template-columns: 1fr;
    }
}


.lead-source-command-page .lead-source-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.lead-source-command-page .lead-source-main-column,
.lead-source-command-page .lead-source-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lead-source-command-page .lead-source-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(59, 130, 246, 0.86));
}

.lead-source-command-page .lead-source-table-card,
.lead-source-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.lead-source-command-page .lead-source-health-card {
    border-color: rgba(59, 130, 246, 0.24);
}

.lead-source-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.lead-source-command-page .quick-panel-link,
.lead-source-command-page .quick-panel-link-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(15,118,110,0.05));
    border: 1px solid rgba(125, 211, 252, 0.2);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.lead-source-command-page .quick-panel-link-button,
.lead-source-command-page .mini-link-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.lead-source-command-page .quick-panel-link i,
.lead-source-command-page .quick-panel-link-button i {
    color: #0f766e;
    font-size: 1.2rem;
}

.lead-source-command-page .quick-panel-link:hover,
.lead-source-command-page .quick-panel-link-button:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.lead-source-command-page .single-column {
    grid-template-columns: 1fr;
}

.lead-source-command-page .static-row {
    cursor: default;
}

.lead-source-command-page .static-row:hover {
    transform: none;
}

.lead-source-command-page .enhanced-empty-state {
    padding: 2rem 1rem;
}

.lead-source-command-page .empty-state-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.lead-source-command-page .lead-source-enhanced-table td,
.lead-source-command-page .lead-source-enhanced-table th {
    white-space: nowrap;
}

.lead-source-command-page .lead-source-avatar {
    background: linear-gradient(135deg, #2563eb, #0f766e);
}

.lead-source-command-page .inline-action-form {
    display: inline;
}

.lead-source-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lead-source-modal-content {
    width: min(100%, 540px);
    background: #fff;
    border-radius: 1.4rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.lead-source-modal-header,
.lead-source-modal-footer {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.lead-source-modal-header {
    border-bottom: 1px solid #eef2f7;
}

.lead-source-modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #0f172a;
}

.lead-source-modal-close {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    border: 0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}

.lead-source-modal-body {
    padding: 1.2rem;
}

.lead-source-modal-footer {
    border-top: 1px solid #eef2f7;
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .lead-source-command-page .lead-source-layout-grid {
        grid-template-columns: 1fr;
    }
}


.products-command-page .products-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.products-command-page .products-main-column,
.products-command-page .products-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.products-command-page .products-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(124, 58, 237, 0.84));
}

.products-command-page .products-filter-card,
.products-command-page .products-table-card,
.products-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.products-command-page .products-health-card {
    border-color: rgba(167, 139, 250, 0.24);
}

.products-command-page .product-search-box {
    grid-column: span 2;
}

.products-command-page .products-filter-tip {
    margin-top: 1rem;
}

.products-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.products-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(124,58,237,0.06));
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.products-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.products-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.products-command-page .single-column {
    grid-template-columns: 1fr;
}

.products-command-page .static-row {
    cursor: default;
}

.products-command-page .static-row:hover {
    transform: none;
}

.products-command-page .enhanced-empty-state {
    padding: 2rem 1rem;
}

.products-command-page .empty-state-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.products-command-page .product-enhanced-table td,
.products-command-page .product-enhanced-table th {
    white-space: nowrap;
}

.products-command-page .product-table-image {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
}

.products-command-page .product-table-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 0.9rem;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.products-command-page .status-badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.products-command-page .status-badge-info {
    background: #ede9fe;
    color: #6d28d9;
}

@media (max-width: 1180px) {
    .products-command-page .products-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-command-page .product-search-box {
        grid-column: span 1;
    }
}


.product-create-command-page .product-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.product-create-command-page .product-create-main-column,
.product-create-command-page .product-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-create-command-page .product-create-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(124, 58, 237, 0.84));
}

.product-create-command-page .product-create-form-card,
.product-create-command-page .quick-panel-card {
    background: rgba(255, 255, 255, 0.96);
}

.product-create-command-page .product-create-health-card {
    border-color: rgba(167, 139, 250, 0.24);
}

.product-create-command-page .form-intro-strip {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.product-create-command-page .form-intro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.86rem;
}

.product-create-command-page .form-intro-chip i {
    color: #0f766e;
    font-size: 1rem;
}

.product-create-command-page .product-create-form-grid {
    gap: 1.25rem;
}

.product-create-command-page .product-create-section,
.product-create-command-page .dynamic-form-section {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1rem;
}

.product-create-command-page .product-create-section + .dynamic-form-section,
.product-create-command-page .dynamic-form-section + .dynamic-form-section {
    margin-top: 1rem;
}

.product-create-command-page .product-create-section-head,
.product-create-command-page .dynamic-form-section-head {
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

.product-create-command-page .product-create-section .form-section-title,
.product-create-command-page .dynamic-form-section .form-section-title {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.product-create-command-page .dynamic-form-grid {
    gap: 1rem;
}

.product-create-command-page .form-group {
    margin-bottom: 0;
}

.product-create-command-page .form-input,
.product-create-command-page .form-select,
.product-create-command-page textarea.form-input {
    min-height: 48px;
    border-radius: 0.95rem;
    border: 1px solid #dbe4f0;
    background: #fff;
}

.product-create-command-page textarea.form-input {
    min-height: 120px;
}

.product-create-command-page .form-input:focus,
.product-create-command-page .form-select:focus,
.product-create-command-page textarea.form-input:focus {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.product-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.product-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15,118,110,0.05), rgba(124,58,237,0.06));
    border: 1px solid rgba(167, 139, 250, 0.18);
    color: #0f172a;
    text-decoration: none;
    font-weight: 850;
}

.product-create-command-page .quick-panel-link i {
    color: #0f766e;
    font-size: 1.2rem;
}

.product-create-command-page .quick-panel-link:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.08);
}

.product-create-command-page .single-column {
    grid-template-columns: 1fr;
}

.product-create-command-page .static-row {
    cursor: default;
}

.product-create-command-page .static-row:hover {
    transform: none;
}

.product-create-command-page .product-create-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 1180px) {
    .product-create-command-page .product-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-create-command-page .form-intro-strip {
        flex-direction: column;
    }

    .product-create-command-page .dynamic-form-grid {
        grid-template-columns: 1fr;
    }
}

.suppliers-command-page .suppliers-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.suppliers-command-page .suppliers-main-column,
.suppliers-command-page .suppliers-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.suppliers-command-page .suppliers-hero {
    margin-bottom: 24px;
}

.suppliers-command-page .suppliers-filter-card,
.suppliers-command-page .suppliers-table-card,
.suppliers-command-page .quick-panel-card {
    height: 100%;
}

.suppliers-command-page .supplier-search-box {
    min-width: min(100%, 360px);
}

.suppliers-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suppliers-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.suppliers-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.suppliers-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.suppliers-command-page .supplier-enhanced-table td,
.suppliers-command-page .supplier-enhanced-table th {
    vertical-align: middle;
}

.suppliers-command-page .supplier-avatar {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
}

.suppliers-command-page .supplier-contact-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.suppliers-command-page .supplier-contact-stack span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.suppliers-command-page .supplier-summary-list .focus-row {
    cursor: default;
}

.suppliers-command-page .single-column {
    grid-template-columns: 1fr;
}

.suppliers-command-page .static-row:hover {
    transform: none;
}

.suppliers-command-page .enhanced-empty-state {
    padding: 42px 24px;
}

.suppliers-command-page .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .suppliers-command-page .suppliers-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .suppliers-command-page .supplier-search-box {
        min-width: 100%;
    }
}

.purchase-orders-command-page .purchase-orders-layout-grid,
.purchase-order-create-command-page .purchase-order-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.purchase-orders-command-page .purchase-orders-main-column,
.purchase-orders-command-page .purchase-orders-side-column,
.purchase-order-create-command-page .purchase-order-create-main-column,
.purchase-order-create-command-page .purchase-order-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.purchase-orders-command-page .purchase-orders-hero,
.purchase-order-create-command-page .purchase-order-create-hero {
    margin-bottom: 24px;
}

.purchase-orders-command-page .purchase-orders-filter-card,
.purchase-orders-command-page .purchase-orders-table-card,
.purchase-orders-command-page .quick-panel-card,
.purchase-order-create-command-page .quick-panel-card,
.purchase-order-create-command-page .purchase-order-form-card,
.purchase-order-create-command-page .purchase-order-items-card,
.purchase-order-create-command-page .purchase-order-totals-card,
.purchase-order-create-command-page .purchase-order-create-setup-card {
    height: 100%;
}

.purchase-orders-command-page .purchase-order-search-box {
    min-width: min(100%, 360px);
}

.purchase-orders-command-page .quick-panel-stack,
.purchase-order-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-orders-command-page .quick-panel-link,
.purchase-order-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.purchase-orders-command-page .quick-panel-link i,
.purchase-order-create-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.purchase-orders-command-page .quick-panel-link:hover,
.purchase-order-create-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.purchase-orders-command-page .purchase-order-enhanced-table td,
.purchase-orders-command-page .purchase-order-enhanced-table th,
.purchase-order-create-command-page .purchase-item-table td,
.purchase-order-create-command-page .purchase-item-table th {
    vertical-align: middle;
}

.purchase-orders-command-page .order-avatar {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
}

.purchase-orders-command-page .order-summary-list .focus-row,
.purchase-order-create-command-page .order-create-summary-list .focus-row,
.purchase-order-create-command-page .static-row:hover,
.purchase-orders-command-page .static-row:hover {
    cursor: default;
    transform: none;
}

.purchase-orders-command-page .single-column,
.purchase-order-create-command-page .single-column {
    grid-template-columns: 1fr;
}

.purchase-orders-command-page .enhanced-empty-state,
.purchase-order-create-command-page .enhanced-empty-state {
    padding: 42px 24px;
}

.purchase-orders-command-page .empty-state-actions,
.purchase-order-create-command-page .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.purchase-order-create-command-page .purchase-workflow-notice {
    margin-bottom: 0;
}

.purchase-order-create-command-page .form-intro-strip {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239,246,255,0.92), rgba(237,233,254,0.7));
    color: #1f2937;
}

.purchase-order-create-command-page .form-intro-strip strong {
    display: block;
    margin-bottom: 4px;
}

.purchase-order-create-command-page .dynamic-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.purchase-order-create-command-page .form-group-full {
    grid-column: 1 / -1;
}

.purchase-order-create-command-page .items-empty-state {
    padding: 36px 24px;
}

.purchase-order-create-command-page .totals-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.purchase-order-create-command-page .summary-tile {
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.purchase-order-create-command-page .summary-tile span {
    color: #64748b;
    font-size: .9rem;
}

.purchase-order-create-command-page .summary-tile strong {
    color: #0f172a;
    font-size: 1.1rem;
}

.purchase-order-create-command-page .summary-tile-accent {
    background: linear-gradient(135deg, rgba(219,234,254,0.95), rgba(224,231,255,0.95));
    border-color: rgba(59,130,246,0.22);
}

.purchase-order-create-command-page .form-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    display: flex;
    gap: 12px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.purchase-order-create-command-page .is-disabled {
    opacity: .72;
}

.purchase-order-create-command-page .is-disabled select,
.purchase-order-create-command-page .is-disabled input,
.purchase-order-create-command-page .is-disabled textarea,
.purchase-order-create-command-page .is-disabled button {
    pointer-events: none;
}

@media (max-width: 1100px) {
    .purchase-orders-command-page .purchase-orders-layout-grid,
    .purchase-order-create-command-page .purchase-order-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .purchase-orders-command-page .purchase-order-search-box {
        min-width: 100%;
    }

    .purchase-order-create-command-page .form-actions-sticky {
        flex-direction: column;
    }

    .purchase-order-create-command-page .form-intro-strip {
        flex-direction: column;
    }
}

.receipts-command-page .receipts-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.receipts-command-page .receipts-main-column,
.receipts-command-page .receipts-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.receipts-command-page .receipts-hero {
    margin-bottom: 24px;
}

.receipts-command-page .receipts-filter-card,
.receipts-command-page .receipts-table-card,
.receipts-command-page .quick-panel-card {
    height: 100%;
}

.receipts-command-page .receipt-search-box {
    min-width: min(100%, 360px);
}

.receipts-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipts-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.receipts-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.receipts-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.receipts-command-page .receipt-enhanced-table td,
.receipts-command-page .receipt-enhanced-table th {
    vertical-align: middle;
}

.receipts-command-page .receipt-avatar {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
}

.receipts-command-page .receipt-summary-list .focus-row {
    cursor: default;
}

.receipts-command-page .single-column {
    grid-template-columns: 1fr;
}

.receipts-command-page .static-row:hover {
    transform: none;
}

.receipts-command-page .enhanced-empty-state {
    padding: 42px 24px;
}

.receipts-command-page .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .receipts-command-page .receipts-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .receipts-command-page .receipt-search-box {
        min-width: 100%;
    }
}

.receipt-create-command-page .receipt-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.receipt-create-command-page .receipt-create-main-column,
.receipt-create-command-page .receipt-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.receipt-create-command-page .receipt-create-hero {
    margin-bottom: 24px;
}

.receipt-create-command-page .receipt-create-form-card,
.receipt-create-command-page .receipt-create-items-card,
.receipt-create-command-page .receipt-create-summary-card,
.receipt-create-command-page .receipt-create-setup-card,
.receipt-create-command-page .quick-panel-card {
    height: 100%;
}

.receipt-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.receipt-create-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.receipt-create-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.receipt-create-command-page .form-intro-strip {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239,246,255,0.92), rgba(237,233,254,0.7));
    color: #1f2937;
}

.receipt-create-command-page .form-intro-strip strong {
    display: block;
    margin-bottom: 4px;
}

.receipt-create-command-page .dynamic-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.receipt-create-command-page .form-group-full {
    grid-column: 1 / -1;
}

.receipt-create-command-page .inline-loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    padding: 10px 0;
}

.receipt-create-command-page .receipt-item-table td,
.receipt-create-command-page .receipt-item-table th {
    vertical-align: middle;
}

.receipt-create-command-page .receipt-item-avatar {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
}

.receipt-create-command-page .items-empty-state {
    padding: 36px 24px;
}

.receipt-create-command-page .totals-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.receipt-create-command-page .summary-tile {
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-create-command-page .summary-tile span {
    color: #64748b;
    font-size: .9rem;
}

.receipt-create-command-page .summary-tile strong {
    color: #0f172a;
    font-size: 1.1rem;
}

.receipt-create-command-page .summary-tile-accent {
    background: linear-gradient(135deg, rgba(219,234,254,0.95), rgba(224,231,255,0.95));
    border-color: rgba(59,130,246,0.22);
}

.receipt-create-command-page .form-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    display: flex;
    gap: 12px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.receipt-create-command-page .is-disabled {
    opacity: .72;
}

.receipt-create-command-page .is-disabled select,
.receipt-create-command-page .is-disabled input,
.receipt-create-command-page .is-disabled textarea,
.receipt-create-command-page .is-disabled button {
    pointer-events: none;
}

.receipt-create-command-page .receipt-create-summary-list .focus-row,
.receipt-create-command-page .static-row:hover {
    cursor: default;
    transform: none;
}

.receipt-create-command-page .single-column {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .receipt-create-command-page .receipt-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .receipt-create-command-page .form-actions-sticky,
    .receipt-create-command-page .form-intro-strip {
        flex-direction: column;
    }
}

.warehouses-command-page .warehouses-layout-grid,
.warehouse-create-command-page .warehouse-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.warehouses-command-page .warehouses-main-column,
.warehouses-command-page .warehouses-side-column,
.warehouse-create-command-page .warehouse-create-main-column,
.warehouse-create-command-page .warehouse-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.warehouses-command-page .warehouses-hero,
.warehouse-create-command-page .warehouse-create-hero {
    margin-bottom: 24px;
}

.warehouses-command-page .warehouses-filter-card,
.warehouses-command-page .warehouses-table-card,
.warehouses-command-page .quick-panel-card,
.warehouse-create-command-page .warehouse-create-form-card,
.warehouse-create-command-page .quick-panel-card {
    height: 100%;
}

.warehouses-command-page .warehouse-search-box {
    min-width: min(100%, 360px);
}

.warehouses-command-page .quick-panel-stack,
.warehouse-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warehouses-command-page .quick-panel-link,
.warehouse-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.warehouses-command-page .quick-panel-link i,
.warehouse-create-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.warehouses-command-page .quick-panel-link:hover,
.warehouse-create-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.warehouses-command-page .warehouse-enhanced-table td,
.warehouses-command-page .warehouse-enhanced-table th {
    vertical-align: middle;
}

.warehouses-command-page .warehouse-avatar {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1d4ed8;
}

.warehouses-command-page .warehouse-summary-list .focus-row,
.warehouse-create-command-page .static-row:hover {
    cursor: default;
    transform: none;
}

.warehouses-command-page .single-column,
.warehouse-create-command-page .single-column {
    grid-template-columns: 1fr;
}

.warehouses-command-page .enhanced-empty-state {
    padding: 42px 24px;
}

.warehouses-command-page .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.warehouse-create-command-page .form-intro-strip {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239,246,255,0.92), rgba(237,233,254,0.7));
    color: #1f2937;
}

.warehouse-create-command-page .form-intro-strip strong {
    display: block;
    margin-bottom: 4px;
}

.warehouse-create-command-page .dynamic-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.warehouse-create-command-page .form-group-full {
    grid-column: 1 / -1;
}

.warehouse-create-command-page .card-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    cursor: pointer;
}

.warehouse-create-command-page .card-checkbox input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 2px;
}

.warehouse-create-command-page .card-checkbox strong,
.warehouse-create-command-page .card-checkbox small {
    display: block;
}

.warehouse-create-command-page .card-checkbox small {
    color: #64748b;
    margin-top: 4px;
}

.warehouse-create-command-page .form-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    display: flex;
    gap: 12px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1100px) {
    .warehouses-command-page .warehouses-layout-grid,
    .warehouse-create-command-page .warehouse-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .warehouses-command-page .warehouse-search-box {
        min-width: 100%;
    }

    .warehouse-create-command-page .form-actions-sticky,
    .warehouse-create-command-page .form-intro-strip {
        flex-direction: column;
    }
}

.movements-command-page .movements-layout-grid,
.stock-report-command-page .stock-report-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.movements-command-page .movements-main-column,
.movements-command-page .movements-side-column,
.stock-report-command-page .stock-report-main-column,
.stock-report-command-page .stock-report-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.movements-command-page .movements-hero,
.stock-report-command-page .stock-report-hero {
    margin-bottom: 24px;
}

.movements-command-page .movements-filter-card,
.movements-command-page .movements-table-card,
.movements-command-page .quick-panel-card,
.stock-report-command-page .stock-report-filter-card,
.stock-report-command-page .stock-report-table-card,
.stock-report-command-page .quick-panel-card {
    height: 100%;
}

.movements-command-page .movement-search-box,
.stock-report-command-page .stock-search-box {
    min-width: min(100%, 360px);
}

.movements-command-page .quick-panel-stack,
.stock-report-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.movements-command-page .quick-panel-link,
.stock-report-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.movements-command-page .quick-panel-link i,
.stock-report-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.movements-command-page .quick-panel-link:hover,
.stock-report-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.movements-command-page .movement-enhanced-table td,
.movements-command-page .movement-enhanced-table th,
.stock-report-command-page .stock-report-enhanced-table td,
.stock-report-command-page .stock-report-enhanced-table th {
    vertical-align: middle;
}

.movements-command-page .movement-summary-list .focus-row,
.stock-report-command-page .stock-summary-list .focus-row {
    cursor: default;
}

.movements-command-page .single-column,
.stock-report-command-page .single-column {
    grid-template-columns: 1fr;
}

.movements-command-page .enhanced-empty-state,
.stock-report-command-page .enhanced-empty-state {
    padding: 42px 24px;
}

.movements-command-page .empty-state-actions,
.stock-report-command-page .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .movements-command-page .movements-layout-grid,
    .stock-report-command-page .stock-report-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .movements-command-page .movement-search-box,
    .stock-report-command-page .stock-search-box {
        min-width: 100%;
    }
}

.stock-in-command-page .inventory-form-layout-grid,
.stock-out-command-page .inventory-form-layout-grid,
.stock-transfer-command-page .inventory-form-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.stock-in-command-page .inventory-form-main-column,
.stock-in-command-page .inventory-form-side-column,
.stock-out-command-page .inventory-form-main-column,
.stock-out-command-page .inventory-form-side-column,
.stock-transfer-command-page .inventory-form-main-column,
.stock-transfer-command-page .inventory-form-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stock-in-command-page .inventory-form-hero,
.stock-out-command-page .inventory-form-hero,
.stock-transfer-command-page .inventory-form-hero {
    margin-bottom: 24px;
}

.stock-in-command-page .inventory-form-card,
.stock-in-command-page .quick-panel-card,
.stock-out-command-page .inventory-form-card,
.stock-out-command-page .quick-panel-card,
.stock-transfer-command-page .inventory-form-card,
.stock-transfer-command-page .quick-panel-card {
    height: 100%;
}

.stock-in-command-page .form-intro-strip,
.stock-out-command-page .form-intro-strip,
.stock-transfer-command-page .form-intro-strip {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239,246,255,0.92), rgba(237,233,254,0.72));
    color: #1f2937;
}

.stock-out-command-page .warning-tone {
    background: linear-gradient(135deg, rgba(255,247,237,0.96), rgba(254,242,242,0.78));
}

.stock-transfer-command-page .info-tone {
    background: linear-gradient(135deg, rgba(239,246,255,0.96), rgba(236,253,245,0.76));
}

.stock-in-command-page .dynamic-form-grid,
.stock-out-command-page .dynamic-form-grid,
.stock-transfer-command-page .dynamic-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stock-in-command-page .form-group-full,
.stock-out-command-page .form-group-full,
.stock-transfer-command-page .form-group-full {
    grid-column: 1 / -1;
}

.stock-in-command-page .form-actions-sticky,
.stock-out-command-page .form-actions-sticky,
.stock-transfer-command-page .form-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    display: flex;
    gap: 12px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.stock-in-command-page .quick-panel-stack,
.stock-out-command-page .quick-panel-stack,
.stock-transfer-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stock-in-command-page .quick-panel-link,
.stock-out-command-page .quick-panel-link,
.stock-transfer-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stock-in-command-page .quick-panel-link i,
.stock-out-command-page .quick-panel-link i,
.stock-transfer-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.stock-in-command-page .quick-panel-link:hover,
.stock-out-command-page .quick-panel-link:hover,
.stock-transfer-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.stock-in-command-page .inventory-tip-list .focus-row,
.stock-out-command-page .inventory-tip-list .focus-row,
.stock-transfer-command-page .inventory-tip-list .focus-row {
    cursor: default;
}

.stock-in-command-page .single-column,
.stock-out-command-page .single-column,
.stock-transfer-command-page .single-column {
    grid-template-columns: 1fr;
}

.stock-in-command-page .enhanced-empty-state,
.stock-out-command-page .enhanced-empty-state,
.stock-transfer-command-page .enhanced-empty-state {
    padding: 42px 24px;
}

.stock-in-command-page .empty-state-actions,
.stock-out-command-page .empty-state-actions,
.stock-transfer-command-page .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .stock-in-command-page .inventory-form-layout-grid,
    .stock-out-command-page .inventory-form-layout-grid,
    .stock-transfer-command-page .inventory-form-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stock-in-command-page .form-actions-sticky,
    .stock-out-command-page .form-actions-sticky,
    .stock-transfer-command-page .form-actions-sticky,
    .stock-in-command-page .form-intro-strip,
    .stock-out-command-page .form-intro-strip,
    .stock-transfer-command-page .form-intro-strip {
        flex-direction: column;
    }
}

.adjustments-command-page .adjustments-layout-grid,
.adjustment-create-command-page .adjustment-create-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.adjustments-command-page .adjustments-main-column,
.adjustments-command-page .adjustments-side-column,
.adjustment-create-command-page .adjustment-create-main-column,
.adjustment-create-command-page .adjustment-create-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.adjustments-command-page .adjustments-hero,
.adjustment-create-command-page .adjustment-create-hero {
    margin-bottom: 24px;
}

.adjustments-command-page .adjustments-filter-card,
.adjustments-command-page .adjustments-table-card,
.adjustments-command-page .quick-panel-card,
.adjustment-create-command-page .adjustment-create-form-card,
.adjustment-create-command-page .adjustment-items-card,
.adjustment-create-command-page .quick-panel-card {
    height: 100%;
}

.adjustments-command-page .adjustment-search-box {
    min-width: min(100%, 360px);
}

.adjustments-command-page .quick-panel-stack,
.adjustment-create-command-page .quick-panel-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adjustments-command-page .quick-panel-link,
.adjustment-create-command-page .quick-panel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(243,248,255,0.96));
    color: #1f2937;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.adjustments-command-page .quick-panel-link i,
.adjustment-create-command-page .quick-panel-link i {
    font-size: 1.2rem;
    color: #2563eb;
}

.adjustments-command-page .quick-panel-link:hover,
.adjustment-create-command-page .quick-panel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.22);
}

.adjustments-command-page .adjustment-enhanced-table td,
.adjustments-command-page .adjustment-enhanced-table th,
.adjustment-create-command-page .adjustment-items-table td,
.adjustment-create-command-page .adjustment-items-table th {
    vertical-align: middle;
}

.adjustments-command-page .adjustment-summary-list .focus-row,
.adjustment-create-command-page .adjustment-tip-list .focus-row {
    cursor: default;
}

.adjustments-command-page .single-column,
.adjustment-create-command-page .single-column {
    grid-template-columns: 1fr;
}

.adjustments-command-page .enhanced-empty-state,
.adjustment-create-command-page .enhanced-empty-state {
    padding: 42px 24px;
}

.adjustments-command-page .empty-state-actions,
.adjustment-create-command-page .empty-state-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.adjustment-create-command-page .form-intro-strip {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239,246,255,0.96), rgba(236,253,245,0.76));
    color: #1f2937;
}

.adjustment-create-command-page .dynamic-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.adjustment-create-command-page .form-group-full {
    grid-column: 1 / -1;
}

.adjustment-create-command-page .items-table {
    overflow-x: auto;
}

.adjustment-create-command-page .compact-empty-state {
    padding: 32px 20px;
}

.adjustment-create-command-page .form-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    display: flex;
    gap: 12px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1100px) {
    .adjustments-command-page .adjustments-layout-grid,
    .adjustment-create-command-page .adjustment-create-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .adjustments-command-page .adjustment-search-box {
        min-width: 100%;
    }

    .adjustment-create-command-page .form-actions-sticky,
    .adjustment-create-command-page .form-intro-strip {
        flex-direction: column;
    }
}
