/* XMLA Client Requirements Portal - Client Portal Styles */

:root {
    --xmla-primary-dark: #0B1320;
    --xmla-accent-blue: #2b78b8;
    --xmla-light-bg: #f4f6f9;
    --xmla-text: #555;
    --xmla-white: #ffffff;
    --xmla-border: #e5e7eb;
    --xmla-success: #10b981;
    --xmla-warning: #f59e0b;
    --xmla-error: #ef4444;
    --xmla-radius: 8px;
    --xmla-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.xmla-crp-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.xmla-crp-header {
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--xmla-shadow);
}

.xmla-crp-header h1 {
    color: var(--xmla-primary-dark);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.xmla-crp-subtitle {
    color: var(--xmla-text);
    font-size: 16px;
    margin: 0 0 30px 0;
}

.xmla-crp-progress-section {
    margin-top: 25px;
}

.xmla-crp-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--xmla-primary-dark);
}

.xmla-crp-progress-value {
    font-size: 20px;
    color: var(--xmla-accent-blue);
}

.xmla-crp-progress-bar {
    width: 100%;
    height: 16px;
    background: var(--xmla-light-bg);
    border-radius: 20px;
    overflow: hidden;
}

.xmla-crp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--xmla-accent-blue), #4a9fd8);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.xmla-crp-instructions {
    background: #eff6ff;
    border-left: 4px solid var(--xmla-accent-blue);
    padding: 25px 30px;
    border-radius: var(--xmla-radius);
    margin-bottom: 30px;
}

.xmla-crp-instructions h3 {
    color: var(--xmla-primary-dark);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.xmla-crp-instructions p {
    color: var(--xmla-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.xmla-crp-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xmla-crp-requirement-card {
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 30px;
    box-shadow: var(--xmla-shadow);
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.xmla-crp-requirement-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.xmla-crp-requirement-card.xmla-crp-status-approved,
.xmla-crp-requirement-card.xmla-crp-status-complete {
    border-color: var(--xmla-success);
    background: #f0fdf4;
}

.xmla-crp-requirement-card.xmla-crp-status-needs-revision {
    border-color: var(--xmla-warning);
    background: #fffbeb;
}

.xmla-crp-requirement-header {
    margin-bottom: 20px;
}

.xmla-crp-requirement-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.xmla-crp-requirement-title h3 {
    color: var(--xmla-primary-dark);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.xmla-crp-required-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.xmla-crp-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.xmla-crp-status-requested {
    background: #e0e7ff;
    color: #3730a3;
}

.xmla-crp-status-submitted {
    background: #dbeafe;
    color: #1e40af;
}

.xmla-crp-status-needs-revision {
    background: #fed7aa;
    color: #92400e;
}

.xmla-crp-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.xmla-crp-status-complete {
    background: #d1fae5;
    color: #065f46;
}

.xmla-crp-requirement-description {
    color: var(--xmla-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.xmla-crp-revision-notice {
    background: #fef3c7;
    border-left: 4px solid var(--xmla-warning);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.xmla-crp-revision-notice strong {
    color: #92400e;
    display: block;
    margin-bottom: 8px;
}

.xmla-crp-revision-notice p {
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

.xmla-crp-submission-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #d1fae5;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
}

.xmla-crp-submission-info svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.xmla-crp-requirement-form {
    margin-top: 20px;
}

.xmla-crp-upload-area {
    border: 2px dashed var(--xmla-border);
    border-radius: var(--xmla-radius);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--xmla-light-bg);
    position: relative;
}

.xmla-crp-upload-area:hover {
    border-color: var(--xmla-accent-blue);
    background: #eff6ff;
}

.xmla-crp-upload-area.xmla-crp-dragover {
    border-color: var(--xmla-accent-blue);
    background: #dbeafe;
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(43, 120, 184, 0.12);
    transform: scale(1.01);
}

.xmla-crp-upload-area.xmla-crp-dragover > * {
    pointer-events: none;
}

.xmla-crp-upload-area.xmla-crp-dragover .xmla-crp-upload-icon {
    transform: translateY(-4px);
}

.xmla-crp-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.xmla-crp-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
}

.xmla-crp-upload-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 120, 184, 0.08);
    border-radius: 50%;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.xmla-crp-upload-icon svg {
    width: 28px;
    height: 28px;
    color: var(--xmla-accent-blue);
}

.xmla-crp-upload-title {
    color: var(--xmla-primary-dark);
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.xmla-crp-upload-subtitle {
    color: var(--xmla-text);
    font-size: 13px;
    font-weight: 400;
    display: block;
}

.xmla-crp-upload-label.xmla-crp-upload-label-compact {
    padding: 6px 10px;
    gap: 4px;
}

.xmla-crp-upload-label.xmla-crp-upload-label-compact .xmla-crp-upload-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
}

.xmla-crp-upload-label.xmla-crp-upload-label-compact .xmla-crp-upload-icon svg {
    width: 20px;
    height: 20px;
}

.xmla-crp-upload-label.xmla-crp-upload-label-compact .xmla-crp-upload-title {
    font-size: 14px;
}

.xmla-crp-upload-progress {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
}

.xmla-crp-upload-progress .xmla-crp-progress-bar {
    flex: 1;
}

.xmla-crp-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--xmla-accent-blue);
    min-width: 36px;
    text-align: right;
}

.xmla-crp-file-queue {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    text-align: left;
}

.xmla-crp-file-queue:empty {
    display: none;
}

.xmla-crp-file-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--xmla-white);
    border: 1px solid var(--xmla-border);
    border-radius: 6px;
    transition: all 0.2s ease;
    animation: xmlaCrpSlideIn 0.2s ease;
}

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

.xmla-crp-file-queue-item.xmla-crp-file-complete {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.xmla-crp-file-queue-item.xmla-crp-file-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.xmla-crp-file-queue-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.xmla-crp-file-cat-image {
    background: #dbeafe;
    color: #2563eb;
}

.xmla-crp-file-cat-pdf {
    background: #fee2e2;
    color: #dc2626;
}

.xmla-crp-file-cat-doc,
.xmla-crp-file-cat-sheet,
.xmla-crp-file-cat-slide {
    background: #dbeafe;
    color: #1d4ed8;
}

.xmla-crp-file-cat-video {
    background: #ede9fe;
    color: #7c3aed;
}

.xmla-crp-file-cat-audio {
    background: #fef3c7;
    color: #d97706;
}

.xmla-crp-file-cat-archive {
    background: #f3f4f6;
    color: #6b7280;
}

.xmla-crp-file-cat-design {
    background: #fce7f3;
    color: #db2777;
}

.xmla-crp-file-cat-file {
    background: #f3f4f6;
    color: #6b7280;
}

.xmla-crp-file-queue-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xmla-crp-file-queue-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--xmla-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xmla-crp-file-queue-size {
    font-size: 12px;
    color: var(--xmla-text);
}

.xmla-crp-file-error .xmla-crp-file-queue-size {
    color: #dc2626;
}

.xmla-crp-file-queue-status {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xmla-crp-file-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--xmla-border);
    border-top-color: var(--xmla-accent-blue);
    border-radius: 50%;
    animation: xmlaCrpSpin 0.7s linear infinite;
}

@keyframes xmlaCrpSpin {
    to { transform: rotate(360deg); }
}

.xmla-crp-dual-input {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.xmla-crp-input-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.xmla-crp-input-divider::before,
.xmla-crp-input-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--xmla-border);
}

.xmla-crp-input-divider span {
    font-size: 13px;
    font-weight: 500;
    color: var(--xmla-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.xmla-crp-text-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--xmla-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--xmla-primary-dark);
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.xmla-crp-text-form textarea:focus {
    outline: none;
    border-color: var(--xmla-accent-blue);
    box-shadow: 0 0 0 3px rgba(43, 120, 184, 0.1);
}

.xmla-crp-checkbox-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xmla-crp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: var(--xmla-light-bg);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.xmla-crp-checkbox-label:hover {
    background: #e5e7eb;
}

.xmla-crp-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.xmla-crp-checkbox-label span {
    color: var(--xmla-primary-dark);
    font-size: 15px;
    font-weight: 500;
}

.xmla-crp-btn-primary {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: var(--xmla-accent-blue);
    color: var(--xmla-white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.xmla-crp-btn-primary:hover {
    background: #1e5a8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 120, 184, 0.3);
}

.xmla-crp-btn-primary:active {
    transform: translateY(0);
}

.xmla-crp-btn-primary:disabled {
    background: var(--xmla-border);
    cursor: not-allowed;
    transform: none;
}

.xmla-crp-comments {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--xmla-border);
}

.xmla-crp-comments h4 {
    color: var(--xmla-primary-dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.xmla-crp-comment {
    background: var(--xmla-light-bg);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.xmla-crp-comment-admin {
    background: #eff6ff;
    border-left: 3px solid var(--xmla-accent-blue);
}

.xmla-crp-comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.xmla-crp-comment-meta strong {
    color: var(--xmla-primary-dark);
}

.xmla-crp-comment-meta span {
    color: var(--xmla-text);
}

.xmla-crp-comment-text {
    color: var(--xmla-text);
    font-size: 14px;
    line-height: 1.6;
}

.xmla-crp-message-card,
.xmla-crp-auth-card {
    max-width: 500px;
    margin: 80px auto;
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--xmla-shadow);
}

.xmla-crp-icon-error {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--xmla-error);
}

.xmla-crp-message-card h2,
.xmla-crp-auth-card h2 {
    color: var(--xmla-primary-dark);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.xmla-crp-message-card p,
.xmla-crp-auth-card p {
    color: var(--xmla-text);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.xmla-crp-portal.xmla-crp-portal-landing {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80vh !important;
    padding: 40px 20px !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0B1320 0%, #162035 40%, #1a3050 70%, #0f2540 100%) !important;
    max-width: none !important;
    flex-direction: column !important;
}

.xmla-crp-portal.xmla-crp-portal-landing::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(43, 120, 184, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 60% 80%, rgba(43, 120, 184, 0.1) 0%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.xmla-crp-portal.xmla-crp-portal-landing::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background:
        linear-gradient(60deg, transparent 40%, rgba(43, 120, 184, 0.03) 50%, transparent 60%),
        linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.02) 40%, transparent 50%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card {
    max-width: 480px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 20px !important;
    padding: 48px 40px !important;
    text-align: center !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    z-index: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card.xmla-crp-landing-card-wide {
    max-width: 760px !important;
    text-align: left !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-icon {
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(43, 120, 184, 0.15) !important;
    border-radius: 18px !important;
    color: #5ba8e0 !important;
    border: 1px solid rgba(43, 120, 184, 0.2) !important;
    transform: rotate(-6deg) !important;
    transition: transform 0.3s ease !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card:hover .xmla-crp-landing-icon {
    transform: rotate(0deg) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-icon.xmla-crp-icon-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card h2 {
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.02em !important;
    background: none !important;
    text-shadow: none !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-subtitle {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin: 0 0 32px 0 !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-form {
    text-align: left !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-form .xmla-crp-field-group {
    margin-bottom: 20px !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-form .xmla-crp-field-group label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-form input[type="email"] {
    width: 100% !important;
    padding: 14px 18px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    transition: all 0.25s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-form input[type="email"]:focus {
    outline: none !important;
    border-color: rgba(43, 120, 184, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(43, 120, 184, 0.15), 0 0 20px rgba(43, 120, 184, 0.1) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-primary.xmla-crp-btn-full {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #2b78b8 0%, #3a8fd4 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 4px !important;
    box-shadow: 0 4px 16px rgba(43, 120, 184, 0.3), 0 0 0 1px rgba(43, 120, 184, 0.1) !important;
    letter-spacing: 0.01em !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-primary.xmla-crp-btn-full:hover {
    background: linear-gradient(135deg, #3a8fd4 0%, #4a9fe4 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(43, 120, 184, 0.4), 0 0 0 1px rgba(43, 120, 184, 0.2) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-primary.xmla-crp-btn-full:active {
    transform: translateY(0) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-primary.xmla-crp-btn-full:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-secondary.xmla-crp-btn-full {
    width: auto !important;
    display: inline-flex !important;
    padding: 12px 24px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    margin-top: 8px !important;
    justify-content: center !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-secondary.xmla-crp-btn-full:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.xmla-crp-btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.xmla-crp-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: xmla-crp-spin 0.6s linear infinite;
}

@keyframes xmla-crp-spin {
    to { transform: rotate(360deg); }
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-found-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: rgba(14, 165, 233, 0.1) !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 24px 0 !important;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-found-info svg {
    flex-shrink: 0 !important;
    color: #38bdf8 !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-orbs {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-orb {
    position: absolute !important;
    border-radius: 50% !important;
    filter: blur(80px) !important;
    opacity: 0.5 !important;
    animation: xmlaCrpFloat 20s ease-in-out infinite !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-orb-1 {
    width: 300px !important;
    height: 300px !important;
    background: rgba(43, 120, 184, 0.2) !important;
    top: -10% !important;
    right: -5% !important;
    animation-delay: 0s !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-orb-2 {
    width: 200px !important;
    height: 200px !important;
    background: rgba(16, 185, 129, 0.12) !important;
    bottom: -5% !important;
    left: -3% !important;
    animation-delay: -7s !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-orb-3 {
    width: 150px !important;
    height: 150px !important;
    background: rgba(43, 120, 184, 0.15) !important;
    top: 50% !important;
    left: 10% !important;
    animation-delay: -14s !important;
}

@keyframes xmlaCrpFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-iso-grid {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.03 !important;
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px) !important;
    background-size: 60px 60px !important;
    transform: perspective(600px) rotateX(60deg) rotateZ(45deg) scale(2) !important;
    transform-origin: center center !important;
}

.xmla-crp-create-form {
    text-align: left;
}

.xmla-crp-create-section {
    margin-bottom: 32px;
}

.xmla-crp-create-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--xmla-primary-dark);
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--xmla-light-bg);
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-section h3 {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-field-group label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form input[type="text"],
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form input[type="email"],
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form input[type="tel"],
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form input[type="url"],
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form textarea,
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form input[type="text"],
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form input[type="email"],
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form input[type="tel"],
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form input::placeholder,
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form input::placeholder,
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form input:focus,
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-structured-form textarea:focus,
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form input:focus,
.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-form textarea:focus {
    border-color: rgba(43, 120, 184, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(43, 120, 184, 0.15) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-type-category h4 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-type-option {
    color: rgba(255, 255, 255, 0.6) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-type-option:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-type-option input[type="checkbox"]:checked + span {
    color: rgba(255, 255, 255, 0.9) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-actions {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.xmla-crp-section-hint {
    font-size: 14px;
    color: var(--xmla-text);
    margin: -8px 0 16px 0;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-section-hint {
    color: rgba(255, 255, 255, 0.5) !important;
}

.xmla-crp-req {
    color: var(--xmla-error);
}

.xmla-crp-type-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.xmla-crp-type-category h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--xmla-primary-dark);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xmla-crp-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 6px;
}

.xmla-crp-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--xmla-text);
    transition: background 0.15s ease;
    border: 1px solid transparent;
}

.xmla-crp-type-option:hover {
    background: var(--xmla-light-bg);
}

.xmla-crp-type-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--xmla-accent-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.xmla-crp-type-option input[type="checkbox"]:checked + span {
    color: var(--xmla-primary-dark);
    font-weight: 500;
}

.xmla-crp-create-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--xmla-border);
}

.xmla-crp-create-actions .xmla-crp-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-actions .xmla-crp-btn-primary {
    background: linear-gradient(135deg, #2b78b8 0%, #3a8fd4 100%) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(43, 120, 184, 0.3) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-actions .xmla-crp-btn-primary:hover {
    background: linear-gradient(135deg, #3a8fd4 0%, #4a9fe4 100%) !important;
    box-shadow: 0 6px 24px rgba(43, 120, 184, 0.4) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-actions .xmla-crp-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card-wide .xmla-crp-create-actions .xmla-crp-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.xmla-crp-btn-secondary {
    padding: 12px 24px;
    background: transparent;
    color: var(--xmla-text);
    border: 1px solid var(--xmla-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.xmla-crp-btn-secondary:hover {
    background: var(--xmla-light-bg);
    border-color: #d1d5db;
    color: var(--xmla-primary-dark);
}

.xmla-crp-form {
    margin-top: 30px;
}

.xmla-crp-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.xmla-crp-form-group label {
    display: block;
    font-weight: 600;
    color: var(--xmla-primary-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.xmla-crp-form-group input[type="password"],
.xmla-crp-form-group input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--xmla-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--xmla-primary-dark);
    transition: all 0.2s ease;
}

.xmla-crp-form-group input:focus {
    outline: none;
    border-color: var(--xmla-accent-blue);
    box-shadow: 0 0 0 3px rgba(43, 120, 184, 0.1);
}

.xmla-crp-success-message,
.xmla-crp-error-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.xmla-crp-success-message {
    background: #d1fae5;
    color: #065f46;
}

.xmla-crp-error-message {
    background: #fee2e2;
    color: #991b1b;
}

.xmla-crp-structured-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xmla-crp-structured-form .xmla-crp-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xmla-crp-structured-form .xmla-crp-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--xmla-primary-dark);
}

.xmla-crp-structured-form input[type="text"],
.xmla-crp-structured-form input[type="email"],
.xmla-crp-structured-form input[type="tel"],
.xmla-crp-structured-form input[type="url"],
.xmla-crp-structured-form input[type="password"],
.xmla-crp-structured-form textarea,
.xmla-crp-structured-form select {
    width: 100%;
    border: 1px solid var(--xmla-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--xmla-primary-dark);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--xmla-white);
}

.xmla-crp-structured-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.xmla-crp-structured-form input:focus,
.xmla-crp-structured-form textarea:focus,
.xmla-crp-structured-form select:focus {
    outline: none;
    border-color: var(--xmla-accent-blue);
    box-shadow: 0 0 0 3px rgba(43, 120, 184, 0.1);
}

.xmla-crp-structured-form textarea {
    resize: vertical;
}

.xmla-crp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.xmla-crp-field-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.xmla-crp-url-field {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.xmla-crp-url-field input {
    border-radius: 6px 0 0 6px !important;
    flex: 1;
    min-width: 0;
}

.xmla-crp-url-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: var(--xmla-accent-blue);
    color: var(--xmla-white);
    border-radius: 0 6px 6px 0;
    text-decoration: none;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.xmla-crp-url-visit:hover {
    background: #1e5a8f;
}

.xmla-crp-url-visit svg {
    color: var(--xmla-white);
}

.xmla-crp-password-field {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.xmla-crp-password-field input {
    border-radius: 6px 0 0 6px !important;
    flex: 1;
    min-width: 0;
    padding-right: 14px;
}

.xmla-crp-toggle-password {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: var(--xmla-light-bg);
    border: 1px solid var(--xmla-border);
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    color: var(--xmla-text);
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.xmla-crp-toggle-password:hover {
    background: #e5e7eb;
    color: var(--xmla-primary-dark);
}

.xmla-crp-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--xmla-light-bg);
    border-radius: 6px;
}

.xmla-crp-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.xmla-crp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.xmla-crp-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.xmla-crp-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--xmla-white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.xmla-crp-switch input:checked + .xmla-crp-switch-slider {
    background: var(--xmla-accent-blue);
}

.xmla-crp-switch input:checked + .xmla-crp-switch-slider::before {
    transform: translateX(20px);
}

.xmla-crp-switch-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--xmla-primary-dark);
}

.xmla-crp-2fa-fields {
    background: #eff6ff;
    border-left: 3px solid var(--xmla-accent-blue);
    padding: 16px;
    border-radius: 0 6px 6px 0;
}

.xmla-crp-collapsible-header {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.xmla-crp-card-collapsed .xmla-crp-requirement-header {
    margin-bottom: 0;
}

.xmla-crp-title-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.xmla-crp-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--xmla-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--xmla-text);
    transition: all 0.2s ease;
    padding: 0;
}

.xmla-crp-collapse-toggle:hover {
    background: var(--xmla-light-bg);
    color: var(--xmla-primary-dark);
}

.xmla-crp-chevron {
    transition: transform 0.25s ease;
}

.xmla-crp-card-collapsed .xmla-crp-chevron {
    transform: rotate(-90deg);
}

.xmla-crp-completed-check {
    display: inline-block;
    vertical-align: middle;
    color: var(--xmla-success);
    margin-right: 6px;
    flex-shrink: 0;
}

.xmla-crp-requirement-body {
    margin-top: 20px;
}

.xmla-crp-card-collapsed .xmla-crp-requirement-card {
    padding-bottom: 20px;
}

.xmla-crp-section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--xmla-primary-dark);
    margin: 20px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--xmla-border);
}

.xmla-crp-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    background: var(--xmla-light-bg);
    padding: 16px;
    border-radius: 8px;
}

.xmla-crp-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--xmla-text);
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.xmla-crp-check-item:hover {
    background: rgba(0,0,0,0.04);
}

.xmla-crp-check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--xmla-accent-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.xmla-crp-check-item span {
    line-height: 1.3;
}

.xmla-crp-multi-entries {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xmla-crp-multi-entry {
    background: var(--xmla-light-bg);
    border: 1px solid var(--xmla-border);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.xmla-crp-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.xmla-crp-entry-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--xmla-primary-dark);
}

.xmla-crp-remove-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    color: #999;
    transition: all 0.2s ease;
    padding: 0;
}

.xmla-crp-remove-entry:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

.xmla-crp-add-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--xmla-accent-blue);
    border: 2px dashed var(--xmla-accent-blue);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 12px 0 20px 0;
    width: 100%;
    justify-content: center;
}

.xmla-crp-add-entry-btn:hover {
    background: rgba(43, 120, 184, 0.05);
    border-color: var(--xmla-primary-dark);
    color: var(--xmla-primary-dark);
}

.xmla-crp-portal-footer-actions {
    margin-top: 40px;
    padding-top: 20px;
}

.xmla-crp-footer-card {
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 30px;
    box-shadow: var(--xmla-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}


@media (max-width: 600px) {
    .xmla-crp-portal.xmla-crp-portal-landing {
        padding: 20px 16px !important;
        min-height: 70vh !important;
    }

    .xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card {
        padding: 36px 24px !important;
        border-radius: 16px !important;
    }

    .xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card.xmla-crp-landing-card-wide {
        max-width: 100% !important;
    }

    .xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-primary.xmla-crp-btn-full,
    .xmla-crp-portal.xmla-crp-portal-landing .xmla-crp-landing-card .xmla-crp-btn-secondary.xmla-crp-btn-full {
        width: 100% !important;
    }

    .xmla-crp-type-options {
        grid-template-columns: 1fr 1fr !important;
    }

    .xmla-crp-create-actions {
        flex-direction: column-reverse !important;
    }

    .xmla-crp-create-actions .xmla-crp-btn-primary,
    .xmla-crp-create-actions .xmla-crp-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .xmla-crp-checkbox-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
.xmla-crp-footer-card-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.xmla-crp-footer-card-content > svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--xmla-accent-blue);
    margin-top: 2px;
}

.xmla-crp-footer-card-content h4 {
    color: var(--xmla-primary-dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.xmla-crp-footer-card-content p {
    color: var(--xmla-text);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.xmla-crp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--xmla-white);
    color: var(--xmla-accent-blue);
    border: 2px solid var(--xmla-accent-blue);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.xmla-crp-btn-secondary:hover {
    background: var(--xmla-accent-blue);
    color: var(--xmla-white);
}

.xmla-crp-btn-secondary:hover svg {
    stroke: var(--xmla-white);
}

.xmla-crp-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.xmla-crp-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: xmlaCrpSpin 0.7s linear infinite;
}

@media (max-width: 768px) {
    .xmla-crp-portal {
        padding: 20px 15px;
    }

    .xmla-crp-header {
        padding: 30px 20px;
    }

    .xmla-crp-header h1 {
        font-size: 24px;
    }

    .xmla-crp-requirement-card {
        padding: 20px;
    }

    .xmla-crp-requirement-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .xmla-crp-requirement-title h3 {
        font-size: 18px;
    }

    .xmla-crp-message-card,
    .xmla-crp-auth-card {
        margin: 40px auto;
        padding: 40px 25px;
    }

    .xmla-crp-field-row,
    .xmla-crp-field-row-3 {
        grid-template-columns: 1fr;
    }

    .xmla-crp-footer-card {
        flex-direction: column;
        text-align: center;
    }

    .xmla-crp-footer-card-content {
        flex-direction: column;
        align-items: center;
    }

    .xmla-crp-title-right {
        margin-top: 8px;
    }
}

.xmla-crp-dashboard-nav {
    display: flex;
    gap: 4px;
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 6px;
    margin-bottom: 24px;
    box-shadow: var(--xmla-shadow);
    overflow-x: auto;
}

.xmla-crp-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--xmla-text);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.xmla-crp-nav-link:hover {
    background: var(--xmla-light-bg);
    color: var(--xmla-primary-dark);
}

.xmla-crp-nav-link.xmla-crp-nav-active {
    background: var(--xmla-accent-blue);
    color: var(--xmla-white);
}

.xmla-crp-nav-link.xmla-crp-nav-active svg {
    stroke: var(--xmla-white);
}

.xmla-crp-portal-section {
    margin-bottom: 32px;
}

.xmla-crp-section-header {
    margin-bottom: 20px;
}

.xmla-crp-section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--xmla-primary-dark);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.xmla-crp-section-desc {
    color: var(--xmla-text);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.xmla-crp-client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.xmla-crp-client-stat {
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 20px;
    box-shadow: var(--xmla-shadow);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.xmla-crp-client-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.xmla-crp-client-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xmla-crp-stat-icon-status {
    background: #dbeafe;
    color: #2563eb;
}

.xmla-crp-stat-icon-reqs {
    background: #d1fae5;
    color: #059669;
}

.xmla-crp-stat-icon-deliverables {
    background: #cffafe;
    color: #0891b2;
}

.xmla-crp-stat-icon-pending {
    background: #fef3c7;
    color: #d97706;
}

.xmla-crp-client-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.xmla-crp-client-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--xmla-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xmla-crp-client-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--xmla-primary-dark);
}

.xmla-crp-client-deliverables-progress {
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 20px;
    box-shadow: var(--xmla-shadow);
}

.xmla-crp-documents-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xmla-crp-doc-card {
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 20px 24px;
    box-shadow: var(--xmla-shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.xmla-crp-doc-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.xmla-crp-doc-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.xmla-crp-doc-card-info {
    flex: 1;
    min-width: 0;
}

.xmla-crp-doc-card-info h4 {
    color: var(--xmla-primary-dark);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.xmla-crp-doc-type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: var(--xmla-light-bg);
    color: var(--xmla-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.xmla-crp-doc-desc {
    color: var(--xmla-text);
    font-size: 14px;
    margin: 6px 0 0 0;
    line-height: 1.5;
}

.xmla-crp-doc-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: flex-start;
}

.xmla-crp-btn-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--xmla-light-bg);
    color: var(--xmla-primary-dark);
    border: 1px solid var(--xmla-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.xmla-crp-btn-doc:hover {
    background: var(--xmla-accent-blue);
    color: var(--xmla-white);
    border-color: var(--xmla-accent-blue);
}

.xmla-crp-btn-doc:hover svg {
    stroke: var(--xmla-white);
}

.xmla-crp-file-hint {
    display: none;
}

.xmla-crp-deliverables-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.xmla-crp-deliverable-item {
    background: var(--xmla-white);
    border-radius: var(--xmla-radius);
    padding: 18px 22px;
    box-shadow: var(--xmla-shadow);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform 0.15s ease;
    border-left: 3px solid transparent;
}

.xmla-crp-deliverable-item:hover {
    transform: translateX(2px);
}

.xmla-crp-deliverable-done {
    border-left-color: var(--xmla-success);
    background: #f0fdf4;
}

.xmla-crp-deliverable-overdue {
    border-left-color: var(--xmla-error);
}

.xmla-crp-deliverable-check {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.xmla-crp-deliverable-done .xmla-crp-deliverable-check {
    color: var(--xmla-success);
}

.xmla-crp-deliverable-circle {
    width: 18px;
    height: 18px;
    border: 2px solid var(--xmla-border);
    border-radius: 50%;
}

.xmla-crp-deliverable-info {
    flex: 1;
    min-width: 0;
}

.xmla-crp-deliverable-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.xmla-crp-deliverable-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--xmla-primary-dark);
}

.xmla-crp-line-through {
    text-decoration: line-through;
    opacity: 0.7;
}

.xmla-crp-deliverable-desc {
    color: var(--xmla-text);
    font-size: 14px;
    margin: 6px 0 0 0;
    line-height: 1.5;
}

.xmla-crp-deliverable-due {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--xmla-text);
    margin-top: 6px;
}

.xmla-crp-deliverable-overdue .xmla-crp-deliverable-due {
    color: var(--xmla-error);
}

.xmla-crp-priority-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.xmla-crp-priority-high {
    background: #fef3c7;
    color: #92400e;
}

.xmla-crp-priority-urgent {
    background: #fee2e2;
    color: #991b1b;
}

.xmla-crp-overdue-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #fee2e2;
    color: #991b1b;
}

.xmla-crp-doc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xmla-crp-doc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.xmla-crp-doc-modal-container {
    position: relative;
    background: var(--xmla-white);
    border-radius: 12px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.xmla-crp-doc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--xmla-border);
    flex-shrink: 0;
}

.xmla-crp-doc-modal-header h3 {
    color: var(--xmla-primary-dark);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.xmla-crp-doc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--xmla-text);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.xmla-crp-doc-modal-close:hover {
    background: var(--xmla-light-bg);
}

.xmla-crp-doc-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 768px) {
    .xmla-crp-dashboard-nav {
        gap: 2px;
        padding: 4px;
    }

    .xmla-crp-nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .xmla-crp-nav-link svg {
        display: none;
    }

    .xmla-crp-client-stats {
        grid-template-columns: 1fr;
    }

    .xmla-crp-doc-card {
        flex-direction: column;
    }

    .xmla-crp-doc-card-actions {
        width: 100%;
    }

    .xmla-crp-doc-card-actions .xmla-crp-btn-doc {
        flex: 1;
        justify-content: center;
    }

    .xmla-crp-deliverable-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .xmla-crp-doc-modal-container {
        width: 95%;
        max-height: 90vh;
    }
}

.xmla-crp-toggle-api-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--xmla-accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
}

.xmla-crp-toggle-api-fields:hover {
    color: #1e5a8f;
}

.xmla-crp-toggle-arrow {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.xmla-crp-toggle-arrow.xmla-crp-open {
    transform: rotate(90deg);
}

.xmla-crp-collapsible-section {
    margin: 8px 0;
    padding: 0;
}

.xmla-crp-collapsible-section > div {
    padding: 12px 0 0;
}

.xmla-crp-brand-colors-section {
    animation: xmlaCrpFadeIn 0.3s ease;
}

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