/**
 * Public AML Tool Styles
 * Dark Gold Theme - Black background, Gold borders, White text
 *
 * @package FixedFloat_Exchanger
 * @since 4.3.53
 */

/* CSS Variables */
:root {
    --ffe-paml-bg-primary: #0a0a0a;
    --ffe-paml-bg-secondary: #1a1a1a;
    --ffe-paml-bg-tertiary: #2a2a2a;
    --ffe-paml-bg-hover: #333333;

    --ffe-paml-gold-primary: #d4af37;
    --ffe-paml-gold-secondary: #b8960c;
    --ffe-paml-gold-light: #e8d5a8;
    --ffe-paml-gold-dark: #8b7000;

    --ffe-paml-text-primary: #ffffff;
    --ffe-paml-text-secondary: #e0e0e0;
    --ffe-paml-text-muted: #a0a0a0;

    --ffe-paml-risk-low: #22c55e;
    --ffe-paml-risk-medium: #f59e0b;
    --ffe-paml-risk-high: #ef4444;
    --ffe-paml-risk-critical: #dc2626;

    --ffe-paml-success: #22c55e;
    --ffe-paml-warning: #f59e0b;
    --ffe-paml-error: #ef4444;

    --ffe-paml-radius: 12px;
    --ffe-paml-radius-sm: 8px;
    --ffe-paml-transition: 0.3s ease;
}

/* Screen reader only text (accessibility) */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Wrapper */
.ffe-public-aml-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--ffe-paml-bg-primary);
    color: var(--ffe-paml-text-primary);
    padding: 40px;
    border-radius: var(--ffe-paml-radius);
    border: 1px solid var(--ffe-paml-gold-primary);
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.1);
}

/* Header */
.ffe-paml-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ffe-paml-bg-tertiary);
}

.ffe-paml-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ffe-paml-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ffe-paml-gold-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ffe-paml-subtitle {
    font-size: 16px;
    color: var(--ffe-paml-text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.ffe-paml-remaining {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ffe-paml-text-muted);
    flex-wrap: wrap;
}

.ffe-paml-remaining-label {
    color: var(--ffe-paml-text-secondary);
}

.ffe-paml-remaining-daily,
.ffe-paml-remaining-monthly {
    background: var(--ffe-paml-bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--ffe-paml-bg-tertiary);
}

.ffe-paml-remaining-separator {
    color: var(--ffe-paml-bg-tertiary);
}

/* Sections */
.ffe-paml-section {
    background: var(--ffe-paml-bg-secondary);
    border: 1px solid var(--ffe-paml-bg-tertiary);
    border-radius: var(--ffe-paml-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.ffe-paml-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ffe-paml-gold-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ffe-paml-bg-tertiary);
}

.ffe-paml-section-icon {
    font-size: 24px;
}

/* Form Rows */
.ffe-paml-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.ffe-paml-row:last-child {
    margin-bottom: 0;
}

.ffe-paml-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ffe-paml-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .ffe-paml-row-2,
    .ffe-paml-row-3 {
        grid-template-columns: 1fr;
    }
}

/* Form Fields */
.ffe-paml-field {
    display: flex;
    flex-direction: column;
}

.ffe-paml-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ffe-paml-text-secondary);
    margin-bottom: 8px;
}

.ffe-paml-label .required {
    color: var(--ffe-paml-gold-primary);
}

.ffe-paml-input,
.ffe-paml-select,
.ffe-paml-textarea {
    background: var(--ffe-paml-bg-tertiary);
    border: 1px solid var(--ffe-paml-bg-hover);
    border-radius: var(--ffe-paml-radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--ffe-paml-text-primary);
    transition: border-color var(--ffe-paml-transition), box-shadow var(--ffe-paml-transition);
    width: 100%;
    box-sizing: border-box;
}

.ffe-paml-input:focus,
.ffe-paml-select:focus,
.ffe-paml-textarea:focus {
    outline: none;
    border-color: var(--ffe-paml-gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.ffe-paml-input::placeholder,
.ffe-paml-textarea::placeholder {
    color: var(--ffe-paml-text-muted);
}

.ffe-paml-input-mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    word-break: break-all;
}

.ffe-paml-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.ffe-paml-textarea {
    resize: vertical;
    min-height: 80px;
}

.ffe-paml-hint {
    font-size: 12px;
    color: var(--ffe-paml-text-muted);
    margin-top: 6px;
}

.ffe-paml-error {
    font-size: 12px;
    color: var(--ffe-paml-error);
    margin-top: 6px;
    min-height: 18px;
}

.ffe-paml-field.has-error .ffe-paml-input,
.ffe-paml-field.has-error .ffe-paml-select,
.ffe-paml-field.has-error .ffe-paml-textarea {
    border-color: var(--ffe-paml-error);
}

/* Check Cards */
.ffe-paml-checks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .ffe-paml-checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ffe-paml-checks-grid {
        grid-template-columns: 1fr;
    }
}

.ffe-paml-check-card {
    position: relative;
    cursor: pointer;
}

.ffe-paml-check-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ffe-paml-check-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: var(--ffe-paml-bg-tertiary);
    border: 2px solid var(--ffe-paml-bg-hover);
    border-radius: var(--ffe-paml-radius-sm);
    transition: all var(--ffe-paml-transition);
}

.ffe-paml-check-card:hover .ffe-paml-check-content {
    border-color: var(--ffe-paml-gold-secondary);
    background: var(--ffe-paml-bg-hover);
}

.ffe-paml-check-card input:checked + .ffe-paml-check-content {
    border-color: var(--ffe-paml-gold-primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.ffe-paml-check-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ffe-paml-check-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ffe-paml-text-primary);
    margin-bottom: 4px;
}

.ffe-paml-check-desc {
    font-size: 11px;
    color: var(--ffe-paml-text-muted);
    line-height: 1.4;
}

/* Checkbox Grid */
.ffe-paml-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ffe-paml-checkbox-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .ffe-paml-checkbox-grid,
    .ffe-paml-checkbox-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ffe-paml-checkbox-grid,
    .ffe-paml-checkbox-grid-4 {
        grid-template-columns: 1fr;
    }
}

.ffe-paml-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ffe-paml-text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    background: var(--ffe-paml-bg-tertiary);
    border-radius: var(--ffe-paml-radius-sm);
    transition: background var(--ffe-paml-transition);
}

.ffe-paml-checkbox-item:hover {
    background: var(--ffe-paml-bg-hover);
}

.ffe-paml-checkbox-item input[type="checkbox"] {
    accent-color: var(--ffe-paml-gold-primary);
    width: 16px;
    height: 16px;
}

/* Submit Section */
.ffe-paml-submit-section {
    text-align: center;
    padding-top: 20px;
}

.ffe-paml-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--ffe-paml-gold-primary) 0%, var(--ffe-paml-gold-secondary) 100%);
    color: var(--ffe-paml-bg-primary);
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--ffe-paml-radius-sm);
    cursor: pointer;
    transition: all var(--ffe-paml-transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.ffe-paml-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.ffe-paml-submit-btn:active {
    transform: translateY(0);
}

.ffe-paml-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ffe-paml-submit-note {
    font-size: 13px;
    color: var(--ffe-paml-text-muted);
    margin-top: 16px;
}

/* Spinner */
.ffe-paml-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ffe-paml-bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: ffe-paml-spin 0.8s linear infinite;
}

@keyframes ffe-paml-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Global Error */
.ffe-paml-global-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--ffe-paml-bg-secondary);
    border: 1px solid var(--ffe-paml-error);
    border-radius: var(--ffe-paml-radius-sm);
    padding: 16px 48px 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 400px;
}

.ffe-paml-error-icon {
    font-size: 24px;
}

.ffe-paml-error-message {
    font-size: 14px;
    color: var(--ffe-paml-text-primary);
    line-height: 1.4;
}

.ffe-paml-error-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: var(--ffe-paml-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.ffe-paml-error-close:hover {
    color: var(--ffe-paml-text-primary);
}

/* Results Container */
.ffe-paml-results {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--ffe-paml-bg-tertiary);
}

/* Results Header */
.ffe-paml-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.ffe-paml-results-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ffe-paml-gold-primary);
    margin: 0 0 10px 0;
}

.ffe-paml-screening-id {
    font-size: 14px;
    color: var(--ffe-paml-text-muted);
    font-family: monospace;
}

/* Risk Gauge */
.ffe-paml-risk-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.ffe-paml-gauge-circle {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    /* Fallback for browsers without conic-gradient support */
    background: var(--ffe-paml-bg-tertiary);
    border: 8px solid var(--gauge-color, var(--ffe-paml-risk-low));
    /* Modern browsers with conic-gradient */
    background: conic-gradient(
        var(--gauge-color, var(--ffe-paml-risk-low)) 0deg,
        var(--gauge-color, var(--ffe-paml-risk-low)) var(--gauge-angle, 0deg),
        var(--ffe-paml-bg-tertiary) var(--gauge-angle, 0deg),
        var(--ffe-paml-bg-tertiary) 360deg
    );
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Feature detection for conic-gradient */
@supports (background: conic-gradient(red, blue)) {
    .ffe-paml-gauge-circle {
        border: none;
    }
}

.ffe-paml-gauge-inner {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--ffe-paml-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ffe-paml-gauge-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--gauge-color, var(--ffe-paml-text-primary));
}

.ffe-paml-gauge-label {
    font-size: 14px;
    color: var(--ffe-paml-text-muted);
}

.ffe-paml-risk-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
}

.ffe-paml-risk-badge.risk-low {
    background: rgba(34, 197, 94, 0.2);
    color: var(--ffe-paml-risk-low);
    border: 1px solid var(--ffe-paml-risk-low);
}

.ffe-paml-risk-badge.risk-medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--ffe-paml-risk-medium);
    border: 1px solid var(--ffe-paml-risk-medium);
}

.ffe-paml-risk-badge.risk-high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--ffe-paml-risk-high);
    border: 1px solid var(--ffe-paml-risk-high);
}

.ffe-paml-risk-badge.risk-critical {
    background: rgba(220, 38, 38, 0.2);
    color: var(--ffe-paml-risk-critical);
    border: 1px solid var(--ffe-paml-risk-critical);
    animation: ffe-paml-pulse 2s infinite;
}

@keyframes ffe-paml-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

/* Result Cards */
.ffe-paml-result-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .ffe-paml-result-cards {
        grid-template-columns: 1fr;
    }
}

.ffe-paml-result-card {
    background: var(--ffe-paml-bg-secondary);
    border: 1px solid var(--ffe-paml-bg-tertiary);
    border-radius: var(--ffe-paml-radius);
    overflow: hidden;
}

.ffe-paml-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--ffe-paml-bg-tertiary);
    cursor: pointer;
    transition: background var(--ffe-paml-transition);
}

.ffe-paml-card-header:hover {
    background: var(--ffe-paml-bg-hover);
}

.ffe-paml-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ffe-paml-text-primary);
}

.ffe-paml-card-icon {
    font-size: 20px;
}

.ffe-paml-card-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ffe-paml-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ffe-paml-status-badge.status-clear {
    background: rgba(34, 197, 94, 0.2);
    color: var(--ffe-paml-success);
}

.ffe-paml-status-badge.status-match {
    background: rgba(239, 68, 68, 0.2);
    color: var(--ffe-paml-error);
}

.ffe-paml-status-badge.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--ffe-paml-warning);
}

.ffe-paml-card-toggle {
    color: var(--ffe-paml-gold-primary);
    transition: transform var(--ffe-paml-transition);
}

.ffe-paml-result-card.expanded .ffe-paml-card-toggle {
    transform: rotate(180deg);
}

.ffe-paml-card-body {
    padding: 20px;
    display: none;
}

.ffe-paml-result-card.expanded .ffe-paml-card-body {
    display: block;
}

.ffe-paml-card-empty {
    color: var(--ffe-paml-text-muted);
    font-style: italic;
}

/* Match List */
.ffe-paml-match-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ffe-paml-match-item {
    padding: 12px;
    background: var(--ffe-paml-bg-tertiary);
    border-radius: var(--ffe-paml-radius-sm);
    margin-bottom: 10px;
}

.ffe-paml-match-item:last-child {
    margin-bottom: 0;
}

.ffe-paml-match-name {
    font-weight: 600;
    color: var(--ffe-paml-text-primary);
    margin-bottom: 4px;
}

.ffe-paml-match-details {
    font-size: 13px;
    color: var(--ffe-paml-text-muted);
}

.ffe-paml-match-source {
    display: inline-block;
    padding: 2px 8px;
    background: var(--ffe-paml-bg-primary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--ffe-paml-gold-primary);
    margin-top: 6px;
}

/* Risk Factors */
.ffe-paml-risk-factors {
    margin-top: 30px;
}

.ffe-paml-risk-factors-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ffe-paml-gold-primary);
    margin-bottom: 16px;
}

.ffe-paml-factor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ffe-paml-factor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ffe-paml-bg-secondary);
    border-radius: var(--ffe-paml-radius-sm);
    margin-bottom: 8px;
    border-left: 4px solid var(--factor-color, var(--ffe-paml-text-muted));
}

.ffe-paml-factor-item.severity-critical {
    --factor-color: var(--ffe-paml-risk-critical);
}

.ffe-paml-factor-item.severity-high {
    --factor-color: var(--ffe-paml-risk-high);
}

.ffe-paml-factor-item.severity-medium {
    --factor-color: var(--ffe-paml-warning);
}

.ffe-paml-factor-item.severity-low {
    --factor-color: var(--ffe-paml-success);
}

.ffe-paml-factor-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--factor-color);
    min-width: 40px;
}

.ffe-paml-factor-desc {
    flex: 1;
    color: var(--ffe-paml-text-secondary);
}

/* Processing Time */
.ffe-paml-processing-time {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--ffe-paml-text-muted);
}

/* New Check Button */
.ffe-paml-new-check {
    text-align: center;
    margin-top: 30px;
}

.ffe-paml-new-check-btn {
    background: transparent;
    border: 2px solid var(--ffe-paml-gold-primary);
    color: var(--ffe-paml-gold-primary);
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ffe-paml-radius-sm);
    cursor: pointer;
    transition: all var(--ffe-paml-transition);
}

.ffe-paml-new-check-btn:hover {
    background: var(--ffe-paml-gold-primary);
    color: var(--ffe-paml-bg-primary);
}

/* Disabled State */
.ffe-public-aml-disabled {
    text-align: center;
    padding: 60px 40px;
    background: var(--ffe-paml-bg-secondary);
    border: 1px solid var(--ffe-paml-bg-tertiary);
    border-radius: var(--ffe-paml-radius);
    color: var(--ffe-paml-text-muted);
    font-size: 16px;
}

/* ==========================================================================
   v4.3.62: Professional Progress Bar - Yellow/Gold Theme
   ========================================================================== */

.ffe-paml-progress-container {
    background: var(--ffe-paml-bg-secondary);
    border: 2px solid var(--ffe-paml-gold-primary);
    border-radius: var(--ffe-paml-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ffe-paml-progress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.ffe-paml-progress-icon {
    font-size: 28px;
    animation: ffe-paml-pulse-icon 1.5s ease-in-out infinite;
}

@keyframes ffe-paml-pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.ffe-paml-progress-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ffe-paml-gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Progress Bar */
.ffe-paml-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ffe-paml-progress-bar {
    flex: 1;
    height: 24px;
    background: var(--ffe-paml-bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--ffe-paml-bg-hover);
}

.ffe-paml-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--ffe-paml-gold-dark) 0%,
        var(--ffe-paml-gold-primary) 50%,
        var(--ffe-paml-gold-light) 100%
    );
    border-radius: 12px;
    transition: width 0.5s ease-out;
    position: relative;
}

.ffe-paml-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: ffe-paml-shimmer 2s infinite;
}

@keyframes ffe-paml-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ffe-paml-progress-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: transparent;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    pointer-events: none;
    animation: ffe-paml-glow-pulse 2s ease-in-out infinite;
}

@keyframes ffe-paml-glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.ffe-paml-progress-percent {
    font-size: 22px;
    font-weight: 700;
    color: var(--ffe-paml-gold-primary);
    min-width: 60px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Status Text */
.ffe-paml-progress-status {
    text-align: center;
    font-size: 16px;
    color: var(--ffe-paml-text-secondary);
    margin-bottom: 25px;
    min-height: 24px;
    font-weight: 500;
}

/* Stages Grid */
.ffe-paml-progress-stages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ffe-paml-progress-stages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ffe-paml-progress-stages {
        grid-template-columns: 1fr;
    }
}

.ffe-paml-stage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--ffe-paml-bg-tertiary);
    border-radius: var(--ffe-paml-radius-sm);
    border: 1px solid var(--ffe-paml-bg-hover);
    transition: all 0.3s ease;
}

.ffe-paml-stage.active {
    border-color: var(--ffe-paml-gold-primary);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.ffe-paml-stage.completed {
    border-color: var(--ffe-paml-success);
    background: rgba(34, 197, 94, 0.1);
}

.ffe-paml-stage-icon {
    font-size: 20px;
}

.ffe-paml-stage-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--ffe-paml-text-secondary);
}

.ffe-paml-stage.active .ffe-paml-stage-label {
    color: var(--ffe-paml-gold-primary);
}

.ffe-paml-stage.completed .ffe-paml-stage-label {
    color: var(--ffe-paml-success);
}

.ffe-paml-stage-status {
    font-size: 16px;
}

.ffe-paml-stage-status.pending {
    opacity: 0.5;
}

.ffe-paml-stage-status.active {
    animation: ffe-paml-spin 1s linear infinite;
}

/* Sources Display */
.ffe-paml-progress-sources {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--ffe-paml-bg-tertiary);
    border-radius: var(--ffe-paml-radius-sm);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ffe-paml-sources-label {
    font-size: 13px;
    color: var(--ffe-paml-text-muted);
    font-weight: 500;
}

.ffe-paml-sources-list {
    font-size: 13px;
    color: var(--ffe-paml-gold-light);
    font-family: 'Courier New', monospace;
    word-break: break-word;
    text-align: center;
}

/* Time Display */
.ffe-paml-progress-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ffe-paml-text-muted);
}

.ffe-paml-time-elapsed {
    font-family: 'Courier New', monospace;
    color: var(--ffe-paml-gold-primary);
    font-weight: 600;
    font-size: 16px;
}

.ffe-paml-time-separator {
    color: var(--ffe-paml-bg-hover);
}

.ffe-paml-time-estimate {
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}

/* Print Styles */
@media print {
    .ffe-public-aml-wrapper {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .ffe-paml-form,
    .ffe-paml-submit-section,
    .ffe-paml-new-check,
    .ffe-paml-progress-container {
        display: none !important;
    }

    .ffe-paml-results {
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }
}
