:root {
    --cazp-burgundy: #521E25;
    --cazp-burgundy-dark: #843241;
    --cazp-cream: #F3F3F3;
    --cazp-white: #FEFEFE;
    --cazp-soft-grey: #E3E1E0;
    --cazp-sidebar-bg: #BDA8A6;
    --cazp-slate-50: #F3F3F3;
    --cazp-slate-100: #E3E1E0;
    --cazp-slate-200: #BDA8A6;
    --cazp-slate-500: #555555;
    --cazp-slate-800: #151515;
    --cazp-slate-900: #151515;
    --cazp-green: #22C55E;
    --cazp-red: #EF4444;
    --cazp-wine: #8B1D22;
    --cazp-wine-dark: #6b1117;
    --cazp-wine-light: #F6EDEE;
    --cazp-wine-soft: #AD252B;
    --cazp-moccasin: #FFE4B5 --sidebar-width: 280px;
    --header-height: 80px;
    --card-radius: 24px;
    --inner-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cazp-dashboard-body-root {
    background-color: var(--cazp-white);
    padding: 0;
    margin: 0;
    width: 100%;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--cazp-slate-900);
}

.cazp-dashboard-app {
    display: flex;
    background: var(--cazp-white);
    height: 100vh;
    width: 100%;
    position: fixed;
    /* Fix to top-level to overwrite theme boxing */
    top: 0;
    left: 0;
    z-index: 99999;
    overflow: hidden;
}



/* Sidebar Styling */
.cazp-sidebar {
    width: var(--sidebar-width);
    background: #FFF;
    border-right: 1px solid #F0F0F0;
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
    flex-shrink: 0;
    height: 100vh;
    /* Ensure full height */
    overflow: hidden;

    /* --- Record Tables & Status --- */
    .cazp-data-table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: 14px;
        color: #333;
    }



    .cazp-data-table thead tr {
        background-color: #f9f9fb;
        color: #a02040;
        text-align: left;
        border-bottom: 2px solid #f0f0f0;
    }

    .cazp-data-table th,
    .cazp-data-table td {
        padding: 16px 20px;
        border-bottom: 1px solid #f5f5f7;
    }

    .cazp-data-table tbody tr:hover {
        background-color: #fafafa;
    }

    .cazp-table-link {
        color: #a02040;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        transition: opacity 0.2s ease;
    }

    .cazp-table-link:hover {
        opacity: 0.8;
        text-decoration: underline;
    }

    .cazp-status-pill {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .status-active {
        background-color: #ecfdf5;
        color: #059669;
    }

    .status-pending {
        background-color: #fef3c7;
        color: #d97706;
    }

    .cazp-table-text-bold {
        font-weight: 700;
        color: #222;
    }

    .cazp-table-date {
        color: #666;
        font-family: 'Inter', sans-serif;
    }

    .cazp-card-header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .cazp-badge-count {
        background: #f0f0f0;
        color: #666;
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 700;
    }

    /* --- Stat Hero Display --- */
    .cazp-stat-hero {
        display: flex;
        align-items: center;
        background: var(--cazp-wine);
        padding: 30px;
        border-radius: 12px;
        color: #fff;
        margin-bottom: 40px;
        box-shadow: 0 10px 20px -5px rgba(160, 32, 64, 0.2);
    }

    .cazp-stat-number {
        font-family: 'DM Serif Text', serif;
        font-size: 48px;
        line-height: 1;
        margin-right: 20px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 20px;
    }

    .cazp-stat-label {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        opacity: 0.9;
    }

    /* --- Table Modernization --- */
    .cazp-data-table {
        border-spacing: 0 8px;
        border-collapse: separate;
    }

    .cazp-data-table thead tr {
        background-color: transparent;
        border-bottom: none;
    }

    .cazp-data-table th {
        color: #888;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 700;
        padding: 0 20px 10px;
    }

    .cazp-data-table tbody tr {
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .cazp-data-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        background-color: #fff;
    }

    .cazp-data-table td {
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
    }

    .cazp-data-table td:first-child {
        border-left: 1px solid #f0f0f0;
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .cazp-data-table td:last-child {
        border-right: 1px solid #f0f0f0;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .cazp-table-link {
        font-size: 16px;
    }

    /* --- Final Polish --- */
}

.cazp-sidebar::-webkit-scrollbar {
    display: none;
}


.cazp-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cazp-logo-area:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.cazp-logo-circle {
    width: 70px;
    height: 70px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-shadow: none;
}

.cazp-logo-circle img {
    max-width: 90%;
}

.cazp-logo-text {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4A121B;
    /* Match logo text color from screenshot */
}

.cazp-nav {
    flex-grow: 1;
    background: #F3F1F1;
    /* matches the screenshot light-grey wrapper */
    border-radius: 24px;
    padding: 14px 14px;

    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: none;
}

.cazp-nav::-webkit-scrollbar {
    display: none;
}

.cazp-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: var(--transition);
    position: relative;
}

.cazp-nav-item svg {
    width: 20px;
    height: 20px;
    color: #333;
}

.cazp-nav-item:hover {
    background: #F8F8F8;
    color: var(--cazp-wine);
}

.cazp-nav-item.active {
    background: #FFF;
    color: #8b1d22;
}

.cazp-nav-item.active svg {
    color: #8b1d22;
}

/* Vertical active indicator - red line */
.cazp-nav-item.active::before {
    content: '';
    position: absolute;
    left: -14px;
    /* Align to the very left edge of the nav container */
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: #8b1d22;
    border-radius: 0 4px 4px 0;
}

.cazp-nav-indicator {
    width: 4px;
    height: 24px;
    background: var(--cazp-wine);
    border-radius: 2px;
    position: absolute;
    left: 0;
}

/* Logout Card */


/* Subtle gloss effect on logout card */


.cazp-logout-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.cazp-logout-session {
    font-size: 12px;
    color: #999;
    margin-bottom: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.cazp-logout-card {
    padding: 10px;

}

.cazp-sidebar {
    padding-bottom: 10px;

}

.cazp-logout-btn {
    background: #151515;
    color: #fff;
    border: none;
    width: 100%;
    height: 48px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 5;
    margin-top: 20px;
}

.cazp-logout-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: transparent;
    animation: none;
}

@keyframes cazp-shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.cazp-logout-btn:hover {
    background: #000000;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 0, 0, 0.1);
}

.cazp-logout-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Main Content Area */
.cazp-main-content {
    flex-grow: 1;
    padding: 48px;
    height: 100%;
    overflow-y: auto;
    background: var(--cazp-white);
}


.cazp-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 20px;

}

.cazp-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--cazp-slate-100);
    margin-bottom: 10px;
    padding-bottom: 20px;
}

.cazp-welcome h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--cazp-slate-900);
    letter-spacing: -0.5px;
}

.cazp-top-actions {
    display: flex;
    gap: 16px;
}

.cazp-circular-action {
    width: 48px;
    height: 48px;
    border: 1px solid var(--cazp-slate-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cazp-slate-500);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.cazp-circular-action:hover {
    background: var(--cazp-slate-50);
}

/* User Profile & Dropdown Styles */
.cazp-profile-wrapper {
    position: relative;
}

.cazp-profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--cazp-slate-100);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cazp-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cazp-dropdown-header {
    padding: 12px 16px;
}

.cazp-user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--cazp-slate-900);
    margin-bottom: 2px;
}

.cazp-user-email {
    font-size: 12px;
    color: var(--cazp-slate-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cazp-dropdown-divider {
    height: 1px;
    background: var(--cazp-slate-100);
    margin: 8px 0;
}

.cazp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--cazp-slate-800);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.cazp-dropdown-item svg {
    color: var(--cazp-slate-500);
    transition: var(--transition);
}

.cazp-dropdown-item:hover {
    background: var(--cazp-cream);
    color: var(--cazp-wine);
}

.cazp-dropdown-item:hover svg {
    color: var(--cazp-wine);
}

.cazp-dropdown-item.logout {
    color: var(--cazp-wine);
}

.cazp-dropdown-item.logout svg {
    color: var(--cazp-wine);
}

.cazp-dropdown-item.logout:hover {
    background: #FEF2F2;
    color: var(--cazp-wine-dark);
}

.cazp-dropdown-item.logout:hover svg {
    color: var(--cazp-wine-dark);
}

/* Summary Cards - Option 1: Minimalist Ribbon Design */
.cazp-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.cazp-summary-row.in-header {
    margin-bottom: 0;
}

.cazp-summary-card {
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.cazp-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.cazp-summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    opacity: 0.8;
}

/* Option 2: Subtle Background Colors with Specific Brand Shades */
.cazp-summary-card.standing {
    background: rgba(139, 29, 34, 0.05);
    /* Very light Burgundy tint */
    color: #8b1d22;
    border-color: rgba(139, 29, 34, 0.1);
}

.cazp-summary-card.standing::before {
    background: #8b1d22;
}

.cazp-summary-card.phone {
    background: rgba(2, 121, 44, 0.05);
    /* Very light Green tint */
    color: #02792c;
    border-color: rgba(2, 121, 44, 0.1);
}

.cazp-summary-card.phone::before {
    background: #02792c;
}

.cazp-summary-card.email {
    background: rgba(4, 4, 205, 0.05);
    /* Very light Blue tint */
    color: #0404CD;
    border-color: rgba(4, 4, 205, 0.1);
}

.cazp-summary-card.email::before {
    background: #0404CD;
}

.cazp-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cazp-summary-card.standing .cazp-summary-icon {
    background: rgba(139, 29, 34, 0.1);
    color: #8b1d22;
}

.cazp-summary-card.phone .cazp-summary-icon {
    background: rgba(2, 121, 44, 0.1);
    color: #02792c;
}

.cazp-summary-card.email .cazp-summary-icon {
    background: rgba(4, 4, 205, 0.1);
    color: #0404CD;
}

.cazp-summary-icon svg {
    width: 22px;
    height: 22px;
}

.cazp-summary-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cazp-summary-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 2px;
}

.cazp-summary-value {
    font-size: 16px;
    font-weight: 800;
    word-break: break-all;
    line-height: 1.2;
}

.cazp-summary-subtext {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.6;
    line-height: 1.4;
}

/* Dashboard Grid Layout (Center + Right Sidebar) */
.cazp-dashboard-inner-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(300px, 1fr);
    gap: 32px;
}

.cazp-dashboard-full-width {
    grid-template-columns: none;
}

.cazp-card-standard {
    background: var(--cazp-white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(82, 30, 37, 0.05);
    border: 1px solid var(--cazp-slate-100);
}

/* Info Grid & Typography for Redesign */
.cazp-info-grid {
    display: grid;
    gap: 32px;
}

.cazp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cazp-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cazp-info-section {
    margin-bottom: 32px;
}

.cazp-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 8px;
    display: block;
}

.cazp-info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--cazp-slate-900);
    line-height: 1.4;
}

.cazp-info-value-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--cazp-wine);
    line-height: 1.2;
    margin-top: 4px;
}

.cazp-divider {
    height: 1px;
    background-color: var(--cazp-slate-100);
    margin: 32px 0;
    opacity: 0.6;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .cazp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .cazp-grid-4,
    .cazp-grid-2 {
        grid-template-columns: 1fr;
    }
}

.cazp-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--cazp-slate-800);
}

/* Service Engagement Chart */
.cazp-chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--cazp-slate-200);
    margin-bottom: 10px;
    position: relative;
}

.cazp-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cazp-bar-pair {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 150px;
}

.cazp-bar {
    width: 18px;
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.cazp-bar.primary {
    background: var(--cazp-wine);
}

.cazp-bar.secondary {
    background: #F3B0A5;
}

.cazp-bar:hover {
    filter: brightness(1.1);
}

.cazp-day-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--cazp-slate-500);
}

/* Company Information Grid */
.cazp-company-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.cazp-info-item .label {
    font-size: 12px;
    color: var(--cazp-slate-500);
    margin-bottom: 4px;
}

.cazp-info-item .value {
    font-size: 14px;
    font-weight: 600;
}

.cazp-info-item.highlight .value {
    color: var(--cazp-wine);
}

/* Business Services (Right Sidebar) */
.cazp-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cazp-service-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.cazp-service-tag.active {
    background: var(--cazp-wine);
    color: white;
}

.cazp-service-tag.inactive {
    background: var(--cazp-cream);
    color: var(--cazp-slate-800);
    border-color: var(--cazp-slate-200);
}

.cazp-service-tag .icon-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.active .icon-circle {
    background: #FFF;
    color: var(--cazp-wine);
}

.inactive .icon-circle {
    background: transparent;
    border: 1px solid currentColor;
}

/* Recent Activity Table */
.cazp-recent-activity {
    margin-top: 24px;
}

.cazp-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cazp-table {
    width: 100%;
    min-width: 600px;
    /* Ensure table has room for columns */
    border-collapse: collapse;
}

.cazp-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--cazp-slate-500);
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid var(--cazp-slate-100);
}

.cazp-table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--cazp-slate-50);
}

.cazp-status-pill {
    background: var(--cazp-cream);
    color: #4A121B;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Document Links Section */
.cazp-docs-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cazp-circular-progress {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
}

.cazp-circular-progress svg {
    transform: rotate(-90deg);
}

.cazp-circle-bg {
    fill: none;
    stroke: var(--cazp-slate-100);
    stroke-width: 10;
}

.cazp-circle-val {
    fill: none;
    stroke: var(--cazp-wine);
    stroke-width: 10;
    stroke-linecap: round;
}

.cazp-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.cazp-progress-text span {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.cazp-progress-text small {
    font-size: 11px;
    color: var(--cazp-slate-500);
}

.cazp-docs-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.cazp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cazp-slate-800);
    cursor: pointer;
    transition: var(--transition);
}

.cazp-legend-item:hover {
    color: var(--cazp-wine);
}

.cazp-legend-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cazp-wine);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .cazp-sidebar {
        width: 80px;
        padding: 40px 10px;
        align-items: center;
    }

    .cazp-logo-text,
    .cazp-nav-item span,
    .cazp-logout-card {
        display: none;
    }

    .cazp-logo-area {
        padding: 0;
        margin-bottom: 40px;
    }

    .cazp-nav-item {
        padding: 18px;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .cazp-dashboard-inner-grid {
        grid-template-columns: 1fr;
    }

    .cazp-summary-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .cazp-summary-row {
        grid-template-columns: 1fr;
    }

    .cazp-main-content {
        padding: 20px;
    }

    .cazp-dashboard-app {
        border-radius: 0;
    }

    .cazp-dashboard-body-root {
        padding: 0;
    }
}

/* --- Bootstrap-Style Modern Modal --- */
.cazp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 6, 8, 0.5);
    /* Slightly darker for better contrast */
    backdrop-filter: blur(0px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Bootstrap-style hiding */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Smooth overlay Fade */
    transition:
        opacity 0.25s ease-out,
        visibility 0.25s ease-out,
        backdrop-filter 0.4s ease-out;
}

.cazp-modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
}

.cazp-modal-content {
    background: #fff;
    width: 92%;
    max-width: 440px;
    padding: 48px 40px;
    border-radius: 36px;
    box-shadow:
        0 25px 60px -10px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    text-align: center;

    /* Initial scale-down + slight drop-down */
    transform: scale(0.8) translateY(-20px);
    opacity: 0;

    /* Performance-optimized transition */
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease-out;
    will-change: transform, opacity;
}

.cazp-modal-overlay.show .cazp-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cazp-modal-icon {
    width: 64px;
    height: 64px;
    background: #FEF2F2;
    color: #DC2626;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.cazp-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a0608;
    margin-bottom: 12px;
}

.cazp-modal-message {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cazp-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cazp-modal-btn {
    height: 52px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cazp-modal-btn.secondary {
    background: #F1F5F9;
    color: #475569;
}

.cazp-modal-btn.secondary:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.cazp-modal-btn.primary {
    background: #8b1d22;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 29, 34, 0.2);
}

.cazp-modal-btn.primary:hover {
    background: #6b1117;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 29, 34, 0.3);
}

.cazp-modal-btn:active {
    transform: scale(0.96);
}

.cazp-services-page {
    animation: cazp-fade-in 0.5s ease-out;
}

.cazp-card-header {
    margin-bottom: 32px;
}

.cazp-card-subtitle {
    font-size: 14px;
    color: var(--cazp-slate-500);
    margin-top: 4px;
}

.cazp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cazp-service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--cazp-slate-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cazp-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: var(--cazp-wine-soft);
}

.cazp-service-card.active {
    border-left: 4px solid var(--cazp-wine);
}

.cazp-service-card.inactive {
    opacity: 0.7;
    background: var(--cazp-slate-50);
}

.cazp-service-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.active .cazp-service-status-icon {
    background: #FEF2F2;
    color: var(--cazp-wine);
}

.inactive .cazp-service-status-icon {
    background: white;
    color: var(--cazp-slate-200);
    border: 1px solid var(--cazp-slate-100);
}

.cazp-service-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--cazp-slate-900);
}

.cazp-service-status-text {
    font-size: 12px;
    color: var(--cazp-slate-500);
    margin: 0;
    font-weight: 500;
}

.cazp-service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #DCFCE7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes cazp-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cazp-services-grid {
        grid-template-columns: 1fr;
    }
}

.cazp-documents-page {
    animation: cazp-fade-in 0.5s ease-out;
}

.cazp-doc-stats {
    display: flex;
    gap: 40px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--cazp-slate-100);
}

.cazp-stat-item {
    display: flex;
    flex-direction: column;
}

.cazp-stat-label {
    font-size: 12px;
    color: var(--cazp-slate-500);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cazp-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--cazp-slate-900);
}

.cazp-documents-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cazp-document-item {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-radius: 16px;
    background: var(--cazp-slate-50);
    border: 1px solid var(--cazp-slate-100);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cazp-document-item.enabled:hover {
    background: white;
    border-color: var(--cazp-wine-soft);
    box-shadow: 0 4px 12px rgba(82, 30, 37, 0.05);
}

.cazp-document-item.disabled {
    opacity: 0.6;
}

.cazp-document-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cazp-wine);
    margin-right: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.cazp-document-info {
    flex-grow: 1;
}

.cazp-document-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: var(--cazp-slate-900);
}

.cazp-document-description {
    font-size: 13px;
    color: var(--cazp-slate-500);
    margin: 0;
}

.cazp-doc-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--cazp-wine);
    color: white;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cazp-doc-btn:hover {
    background: var(--cazp-wine-dark);
    transform: translateX(4px);
}

.cazp-doc-btn.inactive-btn {
    background: var(--cazp-slate-200);
    color: var(--cazp-slate-500);
    cursor: default;
    pointer-events: none;
}

.cazp-doc-status {
    color: var(--cazp-slate-400);
    font-size: 13px;
    font-weight: 600;
    padding-right: 18px;
}

@keyframes cazp-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cazp-doc-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cazp-document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cazp-document-action {
        width: 100%;
    }

    .cazp-doc-btn {
        justify-content: center;
        width: 100%;
    }
}

/* --- State Disclosure & Stat Hero Styles --- */
.cazp-stat-hero {
    display: flex !important;
    align-items: center !important;
    background: var(--cazp-wine) !important;
    padding: 30px !important;
    border-radius: 12px !important;
    color: #fff !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 20px -5px rgba(160, 32, 64, 0.2) !important;
    max-width: 400px;
}

.cazp-stat-number {
    font-family: 'DM Serif Text', serif !important;
    font-size: 48px !important;
    line-height: 1 !important;
    margin-right: 20px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-right: 20px !important;
    color: #fff !important;
}

.cazp-stat-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    opacity: 0.9 !important;
    line-height: 1.4 !important;
}

.cazp-data-table {
    width: 100%;
    border-spacing: 0 8px !important;
    border-collapse: separate !important;
}

.cazp-data-table tbody tr {
    background-color: #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cazp-data-table tbody tr:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.cazp-data-table td {
    padding: 16px 20px !important;
    background: #fff !important;
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.cazp-data-table td:first-child {
    border-left: 1px solid #f0f0f0 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.cazp-data-table td:last-child {
    border-right: 1px solid #f0f0f0 !important;
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.cazp-table-link {
    color: var(--cazp-wine) !important;
    /* Burgundy color instead of blue */
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.cazp-table-link:hover {
    text-decoration: underline !important;
}

.tbl-state {
    border: none !important;
}


.tbl-state th {
    padding: .857em 1.587em !important;
}

/* --- Dynamic Documents & Circular Progress --- */
.cazp-docs-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-top: 20px;
}

.cazp-circular-progress {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cazp-circle-bg {
    fill: none;
    stroke: #F3F1F1;
    stroke-width: 10;
}

.cazp-circle-val {
    fill: none;
    stroke: #8b1d22;
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 377;
    transition: stroke-dashoffset 1s ease-out;
}

.cazp-progress-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cazp-progress-text span {
    font-size: 32px;
    font-weight: 800;
    color: #1a0608;
    line-height: 1;
}

.cazp-progress-text small {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-top: 4px;
}

.cazp-docs-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cazp-legend-item.dynamic-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    transition: var(--transition);
}

.cazp-legend-item.dynamic-doc-item:hover {
    background: #FFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.cazp-legend-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.doc-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.doc-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-download-link {
    color: #8b1d22;
    background: rgba(139, 29, 34, 0.08);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.doc-download-link:hover {
    background: #8b1d22;
    color: #FFF;
}

.cazp-no-docs {
    text-align: center;
    padding: 24px;
    color: #888;
    font-style: italic;
    background: #F9F9F9;
    border-radius: 12px;
    border: 1px dashed #DDD;
}


/* --- Business Services Overview - Premium Styles --- */
.cazp-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cazp-service-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: cazp-service-entry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cazp-service-entry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cazp-service-tag.active {
    background: #8b1d22;
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 29, 34, 0.15);
}

.cazp-service-tag.active .icon-circle {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.cazp-service-tag.inactive {
    background: #FAFAFA;
    border-color: #F0F0F0;
    color: #333;
}

.cazp-service-tag.inactive .icon-circle {
    background: #EBEBEB;
    color: #888;
}

/* Hover Effects */
.cazp-service-card.info {
    border-color: #F0F0F0;
    background: #FFF;
    border-left: 4px solid #0404CD;
}

.cazp-service-card.info .cazp-service-status-icon {
    background: #F0F7FF;
    color: #0404CD;
}

.cazp-service-value-text {
    font-size: 15px;
    font-weight: 700;
    color: #151515;
    margin: 0;
    line-height: 1.4;
}

.cazp-service-card.info-side:hover {
    border-color: #0404CD;
    box-shadow: 0 10px 25px rgba(4, 4, 205, 0.08);
    opacity: 1;
}

.cazp-service-tag:hover {
    transform: translateX(6px) scale(1.02) !important;
}

.cazp-service-tag.active:hover {
    background: #6b1117;
    box-shadow: 0 8px 20px rgba(139, 29, 34, 0.25);
}

.cazp-service-tag.inactive:hover {
    background: #FFF;
    border-color: #DDD;
}

.cazp-service-tag .icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cazp-service-tag:hover .icon-circle {
    transform: rotate(15deg) scale(1.1);
}

/* Staggered Entry Delays - Up to 12 items */
.cazp-service-tag:nth-child(1) {
    animation-delay: 0.1s;
}

.cazp-service-tag:nth-child(2) {
    animation-delay: 0.15s;
}

.cazp-service-tag:nth-child(3) {
    animation-delay: 0.2s;
}

.cazp-service-tag:nth-child(4) {
    animation-delay: 0.25s;
}

.cazp-service-tag:nth-child(5) {
    animation-delay: 0.3s;
}

.cazp-service-tag:nth-child(6) {
    animation-delay: 0.35s;
}

.cazp-service-tag:nth-child(7) {
    animation-delay: 0.4s;
}

.cazp-service-tag:nth-child(8) {
    animation-delay: 0.45s;
}

.cazp-service-tag:nth-child(9) {
    animation-delay: 0.5s;
}

.cazp-service-tag:nth-child(10) {
    animation-delay: 0.55s;
}

.cazp-service-tag:nth-child(11) {
    animation-delay: 0.6s;
}

.cazp-service-tag:nth-child(12) {
    animation-delay: 0.65s;
}


/* --- Dashboard Legend Refinements --- */
.cazp-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.cazp-legend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cazp-legend-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 200px;
}

.cazp-legend-link:hover {
    color: #8b1d22;
    text-decoration: underline;
    transform: translateX(2px);
}


/* --- Modern Dashboard Document Overview --- */
.cazp-modern-docs-card {
    padding: 32px !important;
    overflow: visible;
}

.cazp-docs-container {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}

.cazp-docs-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding-right: 24px;
    border-right: 1px solid #F0F0F0;
}

.cazp-docs-integrity {
    text-align: center;
}

.cazp-docs-integrity .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cazp-docs-integrity .value {
    font-size: 20px;
    font-weight: 800;
    color: #10B981;
}

.cazp-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    flex-grow: 1;
    min-width: 0;
}

/* Document Pill Styling */
.cazp-doc-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    background: #FFF;
    opacity: 0;
    transform: translateY(10px);
    animation: cazp-pill-entry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--delay);
    min-width: 0;
}

@keyframes cazp-pill-entry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cazp-doc-pill.active {
    background: #FAFAFA;
    border-color: #F0F0F0;
}

.cazp-doc-pill.active:hover {
    background: #FFF;
    border-color: var(--cazp-wine-soft);
    box-shadow: 0 4px 12px rgba(139, 29, 34, 0.08);
    transform: translateY(-2px);
}

.cazp-doc-pill.inactive {
    opacity: 0.5;
    background: #F9F9F9;
    border-style: dashed;
    border-color: #DDD;
}

.cazp-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.active .cazp-pill-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.cazp-pill-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none !important;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    flex-grow: 1;
    min-width: 0;
}

.label-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.external-icon {
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all 0.2s ease;
    color: var(--cazp-wine);
}

.cazp-pill-link:hover .external-icon {
    opacity: 1;
    transform: translate(0, 0);
}

.cazp-pill-text {
    font-size: 12px;
    font-weight: 500;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cazp-docs-container {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .cazp-docs-visual {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #F0F0F0;
        padding-bottom: 24px;
    }
}

@media (max-width: 640px) {
    .cazp-docs-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Vertical Centered Document Layout --- */
.cazp-vertical-docs-card {
    padding: 40px !important;
}

.cazp-docs-visual-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #F0F0F0;
}

.cazp-docs-integrity-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F8F9FA;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E9ECEF;
}

.cazp-docs-integrity-inline .label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
}

.cazp-docs-integrity-inline .value {
    font-size: 14px;
    font-weight: 800;
    color: #10B981;
}

.cazp-docs-grid-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cazp-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cazp-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cazp-doc-link {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.cazp-doc-link:hover {
    color: var(--cazp-wine);
    text-decoration: underline;
    transform: translateX(2px);
}

.cazp-doc-text {
    font-size: 14px;
    font-weight: 500;
    color: #999;
}

/* Responsiveness */
@media (max-width: 768px) {
    .cazp-docs-grid-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* --- Modern Section Headers --- */
.cazp-section-header {
    background: var(--cazp-wine-light);
    border-left: 6px solid var(--cazp-wine);
    padding: 18px 24px;
    border-radius: 4px 24px 24px 4px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(82, 30, 37, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cazp-section-header:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(82, 30, 37, 0.08);
}

.cazp-section-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cazp-wine);
}

.cazp-section-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cazp-section-description {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
}

.cazp-section-title-modern {
    font-size: 24px;
    font-weight: 800;
    color: var(--cazp-wine);
    font-family: 'DM Serif Text', serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: normal;
    text-transform: none;
}

.cazp-section-title-modern svg {
    width: 28px;
    height: 28px;
    color: var(--cazp-wine);
    opacity: 0.9;
}

/* --- Important Links Section --- */
.cazp-important-links-section {
    margin-top: 40px;
    margin-bottom: 24px;
}

.cazp-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.cazp-link-card {
    background: #FFF;
    border: 1px solid #E3E1E0;
    border-top: 6px solid var(--accent-color, var(--cazp-wine));
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(82, 30, 37, 0.03);
    min-height: 250px;
}

.cazp-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(82, 30, 37, 0.08);
    border-color: rgba(82, 30, 37, 0.2);
}

/* Color Variants for Important Links */
.cazp-link-card.green {
    --accent-color: #02792c;
}

.cazp-link-card.red {
    --accent-color: #8b1d22;
}

.cazp-link-card.blue {
    --accent-color: #0404CD;
}

.cazp-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    /* Removing the left border from before */
    background: var(--accent-color, var(--cazp-wine));
    opacity: 0;
    transition: all 0.3s ease;
}

.cazp-link-card:hover::before {
    opacity: 1;
}

.cazp-link-icon {
    width: 52px;
    height: 52px;
    background: #F3F3F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color, var(--cazp-wine));
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.cazp-link-card:hover .cazp-link-icon {
    background: var(--accent-color, var(--cazp-wine));
    color: #FFF;
    transform: rotate(-5deg) scale(1.1);
}

.cazp-link-title {
    font-size: 18px;
    font-weight: 700;
    color: #151515;
    margin-bottom: 12px;
    line-height: 1.4;
}

.cazp-link-description {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 28px;
    flex-grow: 1;
}

.cazp-link-description strong {
    color: var(--accent-color, var(--cazp-wine));
}

.cazp-link-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--accent-color, var(--cazp-wine));
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
}

.cazp-link-card:hover .cazp-link-action {
    background: var(--accent-color, var(--cazp-wine));
    filter: brightness(1.1);
    color: white;
}

.cazp-link-action svg {
    transition: transform 0.3s ease;
}

.cazp-link-card:hover .cazp-link-action svg {
    transform: translateX(4px);
}

/* Animations */
.cazp-link-card {
    animation: cazp-fade-in-up 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes cazp-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cazp-link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.cazp-link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.cazp-link-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Grid Adjustments */
@media (max-width: 1400px) {
    .cazp-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .cazp-links-grid {
        grid-template-columns: 1fr;
    }

    .cazp-important-links-section {
        margin-top: 32px;
    }
}

/* --- E-books Page Styles --- */
.cazp-ebooks-page {
    animation: cazp-fade-in 0.5s ease-out;
}

.cazp-ebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.cazp-ebook-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--cazp-slate-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cazp-ebook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--cazp-wine-soft);
}

.cazp-ebook-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #ffffff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--cazp-slate-100);
}

.cazp-ebook-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cazp-ebook-card:hover .cazp-ebook-cover img {
    transform: scale(1.05);
}

.cazp-ebook-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 29, 34, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cazp-ebook-card:hover .cazp-ebook-overlay {
    opacity: 1;
}

.cazp-ebook-btn {
    background: white;
    color: var(--cazp-wine);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cazp-ebook-card:hover .cazp-ebook-btn {
    transform: translateY(0);
}

/* --- Premium E-books Header --- */
.cazp-ebooks-header {
    background: var(--cazp-wine-light);
    border-left: 6px solid var(--cazp-wine);
    padding: 16px 20px;
    border-radius: 4px 24px 24px 4px;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(82, 30, 37, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cazp-ebooks-header:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(82, 30, 37, 0.08);
}

.cazp-ebooks-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 29, 34, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.cazp-ebooks-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--cazp-wine);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'DM Serif Text', serif;
}

.cazp-ebooks-title svg {
    width: 32px;
    height: 32px;
    color: var(--cazp-wine);
}

.cazp-ebooks-subtitle {
    font-size: 16px;
    color: var(--cazp-slate-500);
    max-width: 650px;
    line-height: 1.6;
    margin: 0;
}


.cazp-ebook-btn:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.cazp-ebook-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cazp-ebook-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--cazp-slate-900);
    line-height: 1.3;
}

.cazp-ebook-desc {
    font-size: 14px;
    color: var(--cazp-slate-500);
    line-height: 1.5;
    margin: 0;
}

/* --- Premium Company Information Styles --- */
.cazp-company-hero {
    background: var(--cazp-wine-light);
    border-left: 6px solid var(--cazp-wine);
    padding: 32px 40px;
    border-radius: 4px 24px 24px 4px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cazp-company-hero-name {
    font-size: 36px;
    font-weight: 800;
    color: var(--cazp-wine);
    font-family: 'DM Serif Text', serif;
    line-height: 1.2;
}

.cazp-info-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.cazp-info-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cazp-info-group-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cazp-slate-800);
    padding-bottom: 12px;

    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cazp-info-item-modern {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cazp-info-icon-box {
    width: 40px;
    height: 40px;
    background: var(--cazp-cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cazp-wine);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cazp-info-item-modern:hover .cazp-info-icon-box {
    background: var(--cazp-wine);
    color: #fff;
    transform: translateY(-2px);
}

.cazp-info-content-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cazp-info-label-modern {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.cazp-info-value-modern {
    font-size: 15px;
    font-weight: 700;
    color: var(--cazp-slate-900);
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 768px) {
    .cazp-info-grid-modern {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Premium User Profile Styles --- */
.cazp-profile-page {
    animation: cazp-fade-in 0.5s ease-out;
}

.cazp-profile-hero {
    background: var(--cazp-wine-light);
    border-left: 6px solid var(--cazp-wine);
    padding: 40px;
    border-radius: 4px 32px 32px 4px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 10px 30px rgba(82, 30, 37, 0.05);
}

.cazp-profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--cazp-wine);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    font-family: 'DM Serif Text', serif;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(139, 29, 34, 0.2);
}

.cazp-profile-hero-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cazp-profile-hero-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cazp-wine);
    opacity: 0.8;
}

.cazp-profile-hero-name {
    font-size: 36px;
    font-weight: 800;
    color: var(--cazp-wine);
    font-family: 'DM Serif Text', serif;
    line-height: 1.1;
    margin: 0;
}

.cazp-profile-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.cazp-profile-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--cazp-slate-100);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cazp-profile-info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
}

.cazp-profile-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.cazp-profile-info-card.email::before {
    background: #0404CD;
}

.cazp-profile-info-card.phone::before {
    background: #02792c;
}

.cazp-profile-info-card.email {
    background: rgba(4, 4, 205, 0.02);
}

.cazp-profile-info-card.phone {
    background: rgba(2, 121, 44, 0.02);
}

.cazp-profile-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email .cazp-profile-card-icon {
    background: rgba(4, 4, 205, 0.08);
    color: #0404CD;
}

.phone .cazp-profile-card-icon {
    background: rgba(2, 121, 44, 0.08);
    color: #02792c;
}

.cazp-profile-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cazp-profile-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.cazp-profile-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--cazp-slate-900);
    word-break: break-all;
}

.cazp-security-section {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--cazp-slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cazp-security-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cazp-security-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--cazp-slate-900);
    margin: 0;
}

.cazp-security-desc {
    font-size: 14px;
    color: var(--cazp-slate-500);
    margin: 0;
}

.cazp-security-btn {
    background: var(--cazp-wine);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(139, 29, 34, 0.2);
}

.cazp-security-btn:hover {
    background: var(--cazp-wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 29, 34, 0.3);
}

@media (max-width: 768px) {
    .cazp-profile-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 20px;
    }

    .cazp-profile-card-grid {
        grid-template-columns: 1fr;
    }

    .cazp-security-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .cazp-security-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Update Password Modal Styles - Enhanced Premium Version */
.cazp-modal-content {
    max-width: 480px;
    padding: 60px 48px;
    border-radius: 40px;
}

.cazp-modal-icon.password {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #2563EB;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.15);
}

.cazp-modal-form {
    text-align: left;
    margin-top: 10px;
}

.cazp-form-group {
    margin-bottom: 24px;
}

.cazp-form-label {
    display: block;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cazp-input-wrapper {
    position: relative;
}

.cazp-input-wrapper.with-toggle input {
    padding-right: 52px;
}

.cazp-input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F1F5F9;
    color: #1E293B;
}

.cazp-input-wrapper input:focus {
    outline: none;
    border-color: #3B82F6;
    background: #FFF;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1), 0 8px 10px -6px rgba(59, 130, 246, 0.1);
}

.cazp-input-wrapper input::placeholder {
    color: #94A3B8;
    opacity: 0.7;
}

/* Visibility Toggle */
.cazp-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cazp-password-toggle:hover {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.05);
}

.cazp-password-toggle:active {
    transform: translateY(-50%) scale(0.9);
}

.cazp-form-status {
    margin: -10px 0 20px;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    display: none;
    animation: cazp-shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes cazp-shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.cazp-form-status.error {
    display: block;
    background: #FFF1F2;
    color: #E11D48;
    border: 1px solid #FFE4E6;
}

.cazp-form-status.success {
    display: block;
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #DCFCE7;
    animation: cazp-bounce-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cazp-bounce-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cazp-spinner {
    animation: cazp-spin 0.8s linear infinite;
    width: 20px;
    height: 20px;
}

@keyframes cazp-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

#cazp-password-submit {
    background: #8B1D22;
    /* Brand Burgundy */
    color: white;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(139, 29, 34, 0.3), 0 4px 6px -2px rgba(139, 29, 34, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cazp-password-submit:hover:not(:disabled) {
    background: #6b1117;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(139, 29, 34, 0.4), 0 10px 10px -5px rgba(139, 29, 34, 0.2);
}

#cazp-password-submit:active:not(:disabled) {
    transform: translateY(0);
}

#cazp-password-cancel {
    background: #F8FAFC;
    color: #64748B;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

#cazp-password-cancel:hover {
    background: #F1F5F9;
    color: #1E293B;
    border-color: #CBD5E1;
}

#cazp-password-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.pw-label {
    text-align: left !important;
}