/* Audimedia - Social Media Compliance Auditor Stylesheet */

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --border-color: rgba(226, 232, 240, 0.85);
    --border-color-hover: rgba(203, 213, 225, 1);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #f5f3ff;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-border: #fca5a5;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.02);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.5;
}

/* --- APP CONTAINER & HEADER --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.logo-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.brand-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.brand-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.775rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background-color: var(--text-muted);
}

/* --- REUSABLE CARDS & INPUTS --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-glass), var(--shadow-md);
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(226, 232, 240, 1);
}

.card-interactive {
    cursor: pointer;
    transition: var(--transition-fast);
}

.card-interactive:hover {
    transform: translateY(-2px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-lg);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.step-badge {
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    margin-top: -0.25rem;
}

/* Form inputs */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.875rem;
    font-family: var(--font-body);
    font-size: 0.925rem;
    color: var(--text-primary);
    background-color: white;
    resize: vertical;
    outline: none;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.keyword-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning-border);
    animation: slideUp 0.25s ease;
}

.keyword-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    background-color: var(--warning);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

/* Media Uploader */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    background-color: white;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.drop-zone-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.drop-zone:hover .drop-zone-icon {
    color: var(--primary);
    transform: scale(1.05);
}

.drop-zone-text {
    font-size: 0.825rem;
    color: var(--text-secondary);
}

.browse-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.file-hidden {
    display: none;
}

.media-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.remove-preview-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.remove-preview-btn:hover {
    background-color: rgba(239, 68, 68, 0.9);
}

.remove-preview-btn i {
    width: 1rem;
    height: 1rem;
}

/* --- MAIN GRID LAYOUT --- */
.app-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1.25fr;
    gap: 1.5rem;
    align-items: start;
    flex-grow: 1;
    margin-bottom: 2rem;
    width: 100%;
}

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

/* --- COMPACT ANALYSE ACTION CARD --- */
.analyse-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background-color: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.btn-analyse-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary); /* #4f46e5 */
    color: white;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.15), 0 2px 4px -2px rgba(79, 70, 229, 0.15);
    transition: all var(--transition-fast);
}

.btn-analyse-modern:hover {
    background-color: var(--primary-hover); /* #4338ca */
    transform: translateY(-1px);
    box-shadow: 0 8px 12px -2px rgba(79, 70, 229, 0.2), 0 3px 6px -3px rgba(79, 70, 229, 0.2);
}

.btn-analyse-modern:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1);
}

.btn-analyse-modern i {
    width: 1.2rem;
    height: 1.2rem;
}

.scan-limiter-info {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.results-diagnostics-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- LEFT PANEL SPECIAL COMPONENTS --- */
.jurisdiction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.jurisdiction-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    user-select: none;
}

.jurisdiction-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.j-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-sm);
    background-color: var(--bg-main);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.j-info h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.j-info p {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.jurisdiction-card.checked {
    border-color: var(--primary);
    background-color: #e0e7ff;
}

.jurisdiction-card.checked .j-icon {
    background-color: var(--primary);
    color: white;
}

/* Checklist Context Survey */
.checklist-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-question-item {
    padding: 0.875rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.survey-question-item:hover {
    border-color: var(--border-color-hover);
}

.survey-question-item input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.2rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.survey-question-item-text {
    flex-grow: 1;
}

.survey-question-item-text label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.survey-question-item-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* --- CENTER PANEL (SOCIAL MOCK PREVIEW) --- */
.preview-container {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preview-header-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.preview-dot:nth-child(1) { background-color: #ff5f56; }
.preview-dot:nth-child(2) { background-color: #ffbd2e; }
.preview-dot:nth-child(3) { background-color: #27c93f; }

.preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 0.4rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.platform-tabs {
    display: flex;
    background-color: var(--bg-main);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.platform-tab {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.platform-tab i {
    width: 0.95rem;
    height: 0.95rem;
}

.platform-tab.active {
    background-color: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Instagram Post Styling */
.mock-post-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: white;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.mock-post-header {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--bg-main);
}

.mock-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

.mock-user-info {
    display: flex;
    flex-direction: column;
    margin-left: 0.6rem;
    flex-grow: 1;
}

.mock-username {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mock-location {
    font-size: 0.675rem;
    color: var(--text-muted);
}

.mock-dots {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
}

.mock-dots i {
    width: 1.15rem;
    height: 1.15rem;
}

.mock-post-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mock-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
}

.placeholder-icon {
    width: 2.75rem;
    height: 2.75rem;
    stroke-width: 1.25;
}

.mock-media-placeholder p {
    font-size: 0.775rem;
}

.mock-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post AI Overlay Indicator badges */
.post-disclosure-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.725rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    animation: slideUp 0.3s ease;
    z-index: 10;
}

.post-disclosure-badge.ai-badge {
    background-color: rgba(79, 70, 229, 0.85);
    left: auto;
    right: 0.75rem;
}

.post-disclosure-badge i {
    width: 0.85rem;
    height: 0.85rem;
}

.mock-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.75rem 0.5rem;
}

.mock-post-actions i {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--text-primary);
    cursor: pointer;
}

.left-actions {
    display: flex;
    gap: 0.875rem;
}

.mock-post-likes {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 0.75rem;
    color: var(--text-primary);
}

.mock-post-caption-area {
    padding: 0.35rem 0.75rem;
    font-size: 0.825rem;
    line-height: 1.4;
    word-break: break-word;
}

.mock-caption-username {
    font-weight: 700;
    margin-right: 0.35rem;
}

.mock-caption-text {
    color: var(--text-primary);
    white-space: pre-line;
}

.mock-post-comments-summary {
    padding: 0.25rem 0.75rem 0.875rem;
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* Action button */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.flex-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.icon-button {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.icon-button i {
    width: 1.15rem;
    height: 1.15rem;
}

/* --- RIGHT PANEL (DIAGNOSTIC SCORE) --- */
.diagnostic-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.diagnostic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diagnostic-header h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.scan-pill {
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
}

.score-display-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.score-circle-container {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.score-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg-ring {
    fill: none;
    stroke: var(--bg-main);
    stroke-width: 8;
}

.score-fill-ring {
    fill: none;
    stroke: var(--success);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.score-inner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.score-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.score-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.risk-badge {
    align-self: flex-start;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.risk-badge.low-risk {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success-border);
}

.risk-badge.med-risk {
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.risk-badge.high-risk {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger-border);
}

.risk-description {
    font-size: 0.775rem;
    color: var(--text-secondary);
}

/* Visual scan swipe */
.scanner-sweep {
    position: relative;
    background-color: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sweep-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 70, 229, 0.2) 50%, transparent 100%);
    animation: sweep 1.5s infinite linear;
}

.sweep-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    z-index: 2;
    font-family: var(--font-heading);
}

/* Actionable Improvements List */
.improvements-card h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.improvements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.empty-improvements {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.empty-icon {
    width: 2.25rem;
    height: 2.25rem;
}

.empty-improvements p {
    font-size: 0.825rem;
}

.correction-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: white;
    padding: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.correction-item.danger-correction { border-left: 4px solid var(--danger); }
.correction-item.warning-correction { border-left: 4px solid var(--warning); }
.correction-item.tip-correction { border-left: 4px solid var(--primary); }

.correction-checkbox {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.correction-details {
    flex-grow: 1;
}

.correction-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.correction-desc {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.correction-fix-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.correction-fix-action:hover {
    background-color: var(--primary);
    color: white;
}

.correction-fix-action i {
    width: 0.75rem;
    height: 0.75rem;
}

/* Regulatory Tabs details */
.audit-tabs-card {
    padding: 1.25rem;
}

.tabs-header {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg-main);
    padding: 0.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.audit-tab {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.audit-tab.active {
    background-color: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.audit-tab-content-wrapper {
    min-height: 180px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.rule-compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--bg-main);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.rule-compliance-item:has(.failed) {
    background-color: #fff8f8;
}

.rule-compliance-item:has(.passed) {
    background-color: #f8fffe;
}

.rule-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-grow: 1;
    padding-right: 0.75rem;
}

.rule-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rule-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.rule-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.725rem;
    font-weight: 600;
}

.rule-status.passed { color: var(--success); }
.rule-status.failed { color: var(--danger); }
.rule-status.unchecked { color: var(--text-muted); }
.rule-status.pending { color: var(--warning); }

.rule-status i {
    width: 0.85rem;
    height: 0.85rem;
}

.print-action-bar {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* --- BRAND FOOTER STYLING (AUDIMEDIA) --- */
.app-footer {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    background-color: transparent;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 2.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo i {
    color: var(--primary);
    width: 1.35rem;
    height: 1.35rem;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-copyright {
    font-size: 0.725rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-link-col {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-link-col h4, .footer-safety-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link-col ul li a {
    font-size: 0.825rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.footer-link-col ul li a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-link-col ul li a i {
    width: 0.85rem;
    height: 0.85rem;
    opacity: 0.7;
}

.footer-safety-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-safety-col p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.secure-badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background-color: var(--success-light);
    border: 1px solid var(--success-border);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
}

.secure-badge i {
    width: 0.85rem;
    height: 0.85rem;
}

/* --- SETTINGS MODAL / PROMO STYLES --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-card {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--bg-main);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 i {
    color: var(--primary);
    width: 1.25rem;
    height: 1.25rem;
}

.close-modal-btn {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
}

.modal-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-main);
    padding-bottom: 0.25rem;
}

.form-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.diagnostic-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.diagnostic-feature-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.4;
}

.diagnostic-feature-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.modal-promo-box {
    background-color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-promo-box h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.modal-promo-box p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.inline-promo-btn {
    align-self: flex-start;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-top: 0.25rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--bg-main);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

/* --- SCROLLBAR DESIGN --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* --- UTILITY CLASSES --- */
.text-success { color: var(--success); }

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Button loading spinner (CSS-only, no icon dependency) */
.btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    flex-shrink: 0;
}

/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes sweep {
    0% { left: -25%; }
    100% { left: 100%; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- STEPPED WIZARD DESIGN SYSTEM --- */
.app-main-wizard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 2rem;
}

/* Progress Stepper Bar */
.wizard-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    width: 100%;
    user-select: none;
}

.step-node {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.step-node:hover {
    background-color: var(--primary-light);
}

.step-node .step-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--bg-main);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.02);
}

.step-node .step-icon i {
    width: 1.1rem;
    height: 1.1rem;
}

.step-node .step-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

/* Stepper Connection Lines */
.stepper-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 1.5rem;
    position: relative;
    border-radius: 1px;
}

/* Stepper Active States */
.step-node.active .step-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.35);
}

.step-node.active .step-label {
    color: var(--primary);
}

.step-node.completed .step-icon {
    background-color: var(--success);
    color: white;
}

.step-node.completed .step-label {
    color: var(--success);
}

/* Stepper Active Connection Line Fill */
.stepper-line.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    animation: fillLine 0.4s ease-out forwards;
}

@keyframes fillLine {
    from { width: 0; }
    to { width: 100%; }
}

/* Wizard Card Canvas */
.wizard-card-canvas {
    width: 100%;
}

/* Step Panels Visibility & Slide/Fade Transition */
.wizard-step-panel {
    display: none;
    width: 100%;
}

.wizard-step-panel.active {
    display: block;
    animation: slideInPanel 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInPanel {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Split-layout for Steps 1 and 4 */
.step-split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.step-split-layout.step-4-layout {
    grid-template-columns: 0.95fr 1.05fr;
}

.step-left-column, .step-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Centered Panels for Steps 2 and 3 */
.centered-panel-card {
    max-width: 760px;
    margin: 0 auto;
}

/* Wizard Button Layouts */
.wizard-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.wizard-footer-actions.step-4-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.wizard-btn-next, .wizard-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wizard-btn-next {
    background-color: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.15);
}

.wizard-btn-next:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(79, 70, 229, 0.2);
}

.wizard-btn-back {
    background-color: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.wizard-btn-back:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.flex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

/* Premium full screen step 4 overrides */
#step-panel-4 .diagnostic-card,
#step-panel-4 .improvements-card,
#step-panel-4 .audit-tabs-card {
    background-color: white;
    border: 1px solid var(--border-color);
}

/* Responsive Wizard Adjustments */
@media (max-width: 992px) {
    .wizard-stepper {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .step-line {
        display: none;
    }
    
    .step-split-layout, .step-split-layout.step-4-layout {
        grid-template-columns: 1fr;
    }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1200px) {
    .app-main-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .column-3 {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 1.5rem;
        align-items: start;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .footer-safety-col {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .column-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .app-main-grid {
        grid-template-columns: 1fr;
    }
    
    .column-3 {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
    }
    
    .jurisdiction-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-safety-col {
        grid-column: span 1;
    }
}

/* --- PRINT LAYOUT (HIDDEN ON SCREEN) --- */
.print-report-template {
    display: none;
}

@media print {
    body {
        background-color: white;
        color: black;
        font-size: 11pt;
    }
    
    .app-container, .modal-backdrop {
        display: none !important;
    }
    
    .print-report-template {
        display: block !important;
        padding: 2cm;
    }
    
    .print-header {
        border-bottom: 2px solid #0f172a;
        padding-bottom: 0.5cm;
        margin-bottom: 0.75cm;
    }
    
    .print-logo-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .print-logo-row h1 {
        font-family: 'Outfit', sans-serif;
        font-size: 22pt;
        font-weight: 800;
        color: #4f46e5;
    }
    
    .print-date {
        font-size: 10pt;
        color: #475569;
    }
    
    .print-sub {
        font-size: 11pt;
        color: #475569;
        margin-top: 0.1cm;
    }
    
    .print-metadata-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4cm;
        margin-bottom: 0.75cm;
        background-color: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 0.4cm;
        border-radius: 6px;
    }
    
    .meta-item {
        font-size: 10pt;
    }
    
    .meta-item strong {
        color: #0f172a;
    }
    
    .print-content-section {
        margin-bottom: 0.75cm;
        page-break-inside: avoid;
    }
    
    .print-content-section h3 {
        font-family: 'Outfit', sans-serif;
        font-size: 13pt;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 0.25cm;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 0.1cm;
    }
    
    blockquote {
        border-left: 3px solid #e2e8f0;
        padding-left: 0.4cm;
        margin: 0;
        color: #334155;
        font-style: italic;
        white-space: pre-line;
    }
    
    .print-image-frame {
        max-width: 10cm;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: 0.2cm;
        background-color: #f8fafc;
    }
    
    .print-image-frame img {
        max-width: 100%;
        max-height: 6cm;
        object-fit: contain;
    }
    
    .print-bullet-list {
        display: flex;
        flex-direction: column;
        gap: 0.2cm;
    }
    
    .print-bullet-item {
        font-size: 10pt;
        line-height: 1.4;
        display: flex;
        gap: 0.25cm;
    }
    
    .print-bullet-item::before {
        content: "•";
        color: #4f46e5;
        font-weight: bold;
    }
    
    .print-matrix {
        width: 100%;
        border-collapse: collapse;
        display: flex;
        flex-direction: column;
        gap: 0.15cm;
    }
    
    .print-matrix-row {
        display: flex;
        justify-content: space-between;
        padding: 0.15cm 0.25cm;
        border-bottom: 1px solid #f1f5f9;
        font-size: 9pt;
    }
    
    .print-matrix-row.passed {
        background-color: #f0fdf4;
    }
    
    .print-matrix-row.failed {
        background-color: #fef2f2;
    }
    
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-top: 1px solid #e2e8f0;
        padding-top: 0.25cm;
        display: flex;
        justify-content: space-between;
        font-size: 8pt;
        color: #64748b;
    }
}

/* --- RESOLVED CORRECTION STATES (GREEN REWARD) --- */
.resolved-correction {
    border: 1px solid var(--success) !important;
    border-left: 4px solid var(--success) !important;
    background-color: var(--success-light) !important;
    transition: all var(--transition-normal);
}

.strike-text {
    text-decoration: line-through;
    opacity: 0.65;
}

.resolved-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--success);
    background-color: white;
    border: 1px solid var(--success-border);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
}

.resolved-badge i {
    width: 0.85rem;
    height: 0.85rem;
}

/* --- PLATFORM-SPECIFIC FEED PREVIEWS --- */

/* LinkedIn Preview Styling */
.mock-post-card.linkedin-style {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
}

.linkedin-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
}

.linkedin-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #0a66c2;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linkedin-follow-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    background: transparent;
    border: none;
    color: #0a66c2;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.15s;
}

.linkedin-follow-btn:hover {
    background-color: rgba(10, 102, 194, 0.08);
}

.linkedin-caption-area {
    padding: 0 16px 12px;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.9);
    line-height: 1.42857;
}

.linkedin-media {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background-color: #f3f2ef;
}

.linkedin-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f3f2ef;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    cursor: pointer;
}

.linkedin-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    overflow: hidden;
}

.linkedin-cta-domain {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    font-weight: 400;
}

.linkedin-cta-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linkedin-cta-btn {
    background: transparent;
    border: 1px solid #0a66c2;
    color: #0a66c2;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-left: 12px;
}

.linkedin-cta-btn:hover {
    background-color: rgba(10, 102, 194, 0.08);
    border-width: 2px;
    padding: 5px 11px;
}

.linkedin-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #f3f2ef;
    padding: 4px 8px;
}

.linkedin-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.linkedin-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.9);
}

.linkedin-action-btn i {
    width: 1.15rem;
    height: 1.15rem;
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Facebook Preview Styling */
.mock-post-card.facebook-style {
    border-radius: 8px;
    border: 1px solid #ced0d4;
    font-family: Segoe UI, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
}

.facebook-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
}

.facebook-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-header-actions {
    position: absolute;
    right: 16px;
    top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.facebook-header-actions button {
    background: transparent;
    border: none;
    color: #606770;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-header-actions button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.facebook-close-btn i {
    width: 1rem;
    height: 1rem;
}

.facebook-caption-area {
    padding: 4px 16px 12px;
    font-size: 0.9375rem;
    color: #050505;
    line-height: 1.3333;
}

.facebook-media {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background-color: #f0f2f5;
}

.facebook-cta-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f2f5;
    padding: 12px 16px;
    border-top: 1px solid #ced0d4;
    cursor: pointer;
    text-align: left;
}

.facebook-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    overflow: hidden;
    padding-right: 12px;
}

.facebook-cta-domain {
    font-size: 0.75rem;
    color: #606770;
    text-transform: uppercase;
}

.facebook-cta-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.facebook-cta-desc {
    font-size: 0.8125rem;
    color: #606770;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.facebook-cta-btn {
    background-color: #e4e6eb;
    border: none;
    color: #050505;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
    flex-shrink: 0;
}

.facebook-cta-btn:hover {
    background-color: #d8dadf;
}

.facebook-actions {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ced0d4;
    padding: 4px 0;
    margin: 0 12px;
}

.facebook-action-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #606770;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.facebook-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.facebook-action-btn i {
    width: 1.15rem;
    height: 1.15rem;
    color: #606770 !important;
}

/* --- STEP 2 SELECTION SPLIT LAYOUT & PLATFORMS GRID --- */
.selection-split-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.75rem;
    align-items: flex-start;
    width: 100%;
}

.platform-selection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin: 1.25rem 0 1.5rem 0;
}

.platform-select-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    position: relative;
    user-select: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.platform-select-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.platform-select-card.checked {
    border-color: #3b82f6;
    background-color: #f0f6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.platform-check-circle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.platform-check-circle i {
    width: 0.75rem;
    height: 0.75rem;
}

.platform-select-card.checked .platform-check-circle {
    display: flex;
}

.platform-select-icon {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.platform-select-card:hover .platform-select-icon {
    background-color: var(--primary-light);
}

.platform-select-card.checked .platform-select-icon {
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.platform-select-icon i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-secondary);
}

.platform-select-card.checked .platform-select-icon i {
    color: #3b82f6;
}

.platform-select-name {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.platform-selected-badge {
    background-color: #e2e8f0;
    color: #475569;
    font-size: 0.725rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
}

.info-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-top: 1rem;
}

.banner-info-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #0d9488;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-alert-banner p {
    font-size: 0.8rem;
    font-weight: 500;
    color: #0f766e;
    line-height: 1.4;
}

/* --- REGIONS ROW LIST & COMPLIANCE BANNER --- */
.region-selection-card {
    padding: 1.5rem;
}

.region-row-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.region-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    position: relative;
    user-select: none;
    transition: all var(--transition-fast);
}

.hidden-region-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.region-row-item:hover {
    border-color: var(--border-color-hover);
    transform: translateX(2px);
}

.region-row-item.checked {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.r-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.r-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.region-row-item.checked .r-icon {
    background-color: white;
    color: var(--primary);
}

.r-icon i {
    width: 1rem;
    height: 1rem;
}

.r-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.custom-checkbox-circle {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    background-color: white;
}

.region-row-item.checked .custom-checkbox-circle {
    border-color: var(--primary);
}

.region-row-item.checked .custom-checkbox-circle::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: block;
}

/* Compliance Map Badge banner */
.compliance-badge-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border: none;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    color: white;
    margin-top: 1rem;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
}

.map-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: radial-gradient(circle, white 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
}

.banner-brand-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.secure-globe-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}

.secure-globe-icon i {
    width: 1.25rem;
    height: 1.25rem;
}

.banner-footer-text h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: white;
    line-height: 1.2;
}

.banner-footer-text p {
    font-size: 0.775rem;
    color: #94a3b8;
    font-weight: 500;
}

/* --- HUMAN SENTIMENT CARD DIAGNOSTIC PANELS --- */
.sentiment-insights-card {
    margin-top: 1rem;
}

.icon-sentiment-header {
    width: 1.25rem;
    height: 1.25rem;
    color: #ec4899;
}

.sentiment-metrics-container {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 0.5rem;
}

.sentiment-metric-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sentiment-metric-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sentiment-metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sentiment-metric-value {
    font-size: 0.825rem;
    color: var(--text-primary);
}

.sentiment-progress-track {
    width: 100%;
    height: 8px;
    background-color: #f1f5f9;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.sentiment-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, #f43f5e 100%);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sentiment-progress-bar.dignity-bar {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.sentiment-footer-notes {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-left: 0.25rem;
}

/* Platform-specific warnings checklist styles */
.platform-compliance-alerts {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.platform-alert-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.platform-alert-header i {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--warning);
}

.platform-alert-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.platform-alert-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
}

.platform-alert-item.danger-alert {
    background-color: #fef2f2;
    border-color: #fee2e2;
}

.platform-alert-item i {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--warning);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.platform-alert-item.danger-alert i {
    color: var(--danger);
}

.platform-alert-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #b45309;
    line-height: 1.4;
}

.platform-alert-item.danger-alert .platform-alert-text {
    color: #b91c1c;
}

/* --- X FEED MOCKUP STYLINGS --- */
.x-style {
    background-color: white;
    border: 1px solid var(--border-color);
    color: #0f172a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.x-header {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: none;
    position: relative;
}

.x-avatar {
    background-color: #0f172a;
    color: white;
    border-radius: 50%;
    font-size: 0.775rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.x-user-info {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}

.x-user-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.x-display-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
}

.x-handle {
    color: #536471;
    font-size: 0.875rem;
    font-weight: 400;
}

.x-caption-area {
    padding: 0 16px 12px 68px;
    margin-top: -8px;
}

.x-caption-area .mock-caption-text {
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.x-media {
    margin: 0 16px 12px 68px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 280px;
}

.x-actions {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px 8px 68px;
    border-top: 1px solid #eff3f4;
    max-width: 420px;
}

.x-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #536471;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.x-action-btn:hover {
    color: #1d9bf0;
}

.x-action-btn i {
    width: 1.05rem;
    height: 1.05rem;
    color: currentColor !important;
}


