/* ============================================
   CRC Aged Debt Report Generator
   Branded Styles
============================================ */

:root {
    /* CRC Brand Colors */
    --crc-green: #8BC53F;
    --crc-green-dark: #7AB235;
    --crc-green-light: #A8D96A;
    --crc-charcoal: #58595B;
    --crc-gray: #A7A9AC;
    --crc-gray-light: #D1D3D4;
    
    /* NHCC Brand Colors - From Logo */
    --nhcc-teal: #2B9EB3;
    --nhcc-teal-dark: #238A9C;
    --nhcc-teal-light: #3BB5C9;
    --nhcc-navy: #1D3557;
    
    /* Neutrals */
    --black: #1a1a1a;
    --gray-100: #f7f7f7;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --white: #ffffff;
    
    --card-radius: 16px;
}

/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--crc-charcoal);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   ANIMATED PUZZLE PIECES BACKGROUND
============================================ */
.puzzle-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.06;
}

.puzzle-piece {
    position: absolute;
    animation: floatPuzzle 25s ease-in-out infinite;
}

.puzzle-piece svg {
    fill: var(--crc-charcoal);
}

.puzzle-reverse {
    animation-direction: reverse;
}

.puzzle-slow {
    animation-duration: 35s;
}

.puzzle-fast {
    animation-duration: 18s;
}

@keyframes floatPuzzle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(-3deg);
    }
    75% {
        transform: translate(20px, 15px) rotate(8deg);
    }
}

.puzzle-1 { top: 5%; left: 8%; width: 80px; }
.puzzle-2 { top: 12%; right: 12%; width: 100px; animation-delay: -5s; }
.puzzle-3 { bottom: 25%; left: 5%; width: 90px; animation-delay: -10s; }
.puzzle-4 { bottom: 8%; right: 8%; width: 110px; animation-delay: -15s; }
.puzzle-5 { top: 40%; left: 3%; width: 70px; animation-delay: -8s; }
.puzzle-6 { top: 55%; right: 5%; width: 85px; animation-delay: -12s; }
.puzzle-7 { top: 75%; left: 15%; width: 65px; animation-delay: -20s; }
.puzzle-8 { top: 20%; left: 45%; width: 75px; animation-delay: -3s; }

/* Grid background */
.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(167, 169, 172, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 169, 172, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   CONTAINER
============================================ */
.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   HEADER
============================================ */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-img {
    height: 60px;
    margin-bottom: 1.5rem;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--crc-charcoal);
}

.header h1 span {
    color: var(--crc-green);
}

.header p {
    color: var(--crc-gray);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* ============================================
   USER GUIDE BUTTON
============================================ */
.btn-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--crc-charcoal);
    border-radius: 10px;
    background: var(--white);
    color: var(--crc-charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-guide svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-guide:hover {
    background: var(--crc-charcoal);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(88, 89, 91, 0.25);
    transform: translateY(-2px);
}

.btn-guide:hover svg {
    transform: rotate(-5deg);
}

/* ============================================
   CARDS
============================================ */
.card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--card-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    border-color: var(--crc-gray);
    box-shadow: 0 8px 30px rgba(88, 89, 91, 0.1);
    transform: translateY(-2px);
}

.card.complete {
    border-color: var(--crc-green);
    background: linear-gradient(135deg, rgba(139, 197, 63, 0.03) 0%, var(--white) 100%);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--crc-charcoal);
}

.step {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background: var(--crc-charcoal);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card.complete .step {
    background: var(--crc-green);
}

.step .check-icon {
    display: none;
}

.card.complete .step .step-number {
    display: none;
}

.card.complete .step .check-icon {
    display: block;
}

.card-subtitle {
    color: var(--crc-gray);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    padding-left: 60px;
}

/* ============================================
   UPLOAD ZONES
============================================ */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-100);
    position: relative;
}

.upload-zone:hover {
    border-color: var(--crc-green);
    background: rgba(139, 197, 63, 0.05);
}

.upload-zone.dragover {
    border-color: var(--crc-green);
    border-style: solid;
    background: rgba(139, 197, 63, 0.1);
}

.upload-zone.has-file {
    border-color: var(--crc-green);
    border-style: solid;
    background: rgba(139, 197, 63, 0.08);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon {
    border-color: var(--crc-green);
    box-shadow: 0 4px 15px rgba(139, 197, 63, 0.2);
}

.upload-zone.has-file .upload-icon {
    border-color: var(--crc-green);
    background: var(--crc-green);
}

.upload-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--crc-charcoal);
    transition: all 0.3s ease;
}

.upload-zone.has-file .upload-icon svg {
    stroke: var(--white);
}

.upload-zone h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--crc-charcoal);
}

.upload-zone p {
    color: var(--crc-gray);
    font-size: 0.85rem;
}

.file-input {
    display: none;
}

.file-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--crc-green-dark);
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 197, 63, 0.15);
    border: 1px solid var(--crc-green);
    border-radius: 6px;
    display: inline-block;
}

/* ============================================
   DATE INPUT
============================================ */
.date-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    background: var(--white);
    color: var(--crc-charcoal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: var(--crc-green);
    box-shadow: 0 0 0 4px rgba(139, 197, 63, 0.15);
}

.date-hint {
    color: var(--crc-gray);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-hint svg {
    width: 14px;
    height: 14px;
    stroke: var(--crc-gray);
}

/* ============================================
   CHECKBOX
============================================ */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-color: var(--crc-green);
}

.custom-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.custom-checkbox .checkmark {
    position: absolute;
    inset: 0;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkmark {
    background: var(--crc-green);
    border-color: var(--crc-green);
}

.custom-checkbox .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

.custom-checkbox input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--crc-charcoal);
}

.checkbox-label p {
    font-size: 0.8rem;
    color: var(--crc-gray);
    line-height: 1.5;
}

.checkbox-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.checkbox-status.enabled {
    background: var(--crc-green);
    color: var(--white);
}

.checkbox-status.disabled {
    background: var(--gray-200);
    color: var(--crc-gray);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: var(--crc-green);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--crc-green-dark);
    box-shadow: 0 8px 25px rgba(139, 197, 63, 0.35);
    transform: translateY(-2px);
}

.btn-primary:hover:not(:disabled) svg {
    transform: rotate(-10deg);
}

.btn-primary:disabled {
    background: var(--gray-300);
    color: var(--crc-gray);
    cursor: not-allowed;
}

.download-btn {
    background: var(--crc-charcoal);
    color: var(--white);
}

.download-btn:hover {
    background: var(--black);
    box-shadow: 0 8px 25px rgba(88, 89, 91, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   PROGRESS
============================================ */
.progress-section {
    display: none;
    margin-top: 2rem;
}

.progress-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.progress-bar-container {
    background: var(--gray-200);
    border-radius: 100px;
    height: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--crc-green) 0%, var(--crc-green-light) 100%);
    border-radius: 100px;
    transition: width 0.4s ease;
    width: 0%;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    color: var(--crc-gray);
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-status {
    text-align: center;
    color: var(--crc-green);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.25rem;
}

.progress-terminal {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    max-height: 120px;
    overflow-y: auto;
}

.terminal-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-line .timestamp {
    color: var(--crc-gray);
}

.terminal-line .status {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.terminal-line .status.info {
    background: var(--gray-200);
    color: var(--crc-charcoal);
}

.terminal-line .status.success {
    background: var(--crc-green);
    color: var(--white);
}

.terminal-line .status.processing {
    background: rgba(139, 197, 63, 0.2);
    color: var(--crc-green-dark);
}

.terminal-line .message {
    color: var(--crc-charcoal);
}

/* ============================================
   RESULTS
============================================ */
.results-section {
    display: none;
    margin-top: 2rem;
}

.results-section.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--crc-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 197, 63, 0.15);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--crc-green);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--crc-gray);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ============================================
   TOAST NOTIFICATIONS
============================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--crc-green);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--crc-green);
}

.toast-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--white);
}

.toast-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--crc-charcoal);
}

.toast-message {
    font-size: 0.75rem;
    color: var(--crc-gray);
}

/* ============================================
   CONFETTI
============================================ */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    opacity: 0;
}

.confetti.active {
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100%) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* ============================================
   INFO SECTION
============================================ */
.info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
    animation: slideUp 0.6s ease-out backwards;
    animation-delay: 0.5s;
}

.info-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: var(--crc-gray);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-title::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--crc-green);
    border-radius: 3px;
    transform: rotate(45deg);
}

.info-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--crc-green), transparent);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--crc-green);
    background: var(--white);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid var(--crc-green);
    border-radius: 10px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--crc-green);
}

.info-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--crc-charcoal);
}

.info-item p {
    font-size: 0.8rem;
    color: var(--crc-gray);
    line-height: 1.5;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.footer p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--crc-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-separator {
    width: 6px;
    height: 6px;
    background: var(--crc-green);
    border-radius: 50%;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-subtitle {
        padding-left: 0;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .results-grid {
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}
/* ============================================
   BACK LINK (for company sub-pages)
============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--crc-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--crc-charcoal);
    background: var(--gray-100);
}

.back-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* ============================================
   HOMEPAGE - COMPANY SELECTION
============================================ */

/* Company Selection Grid */
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Company Card Base */
.company-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--card-radius);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out backwards;
    overflow: hidden;
}

.company-card:nth-child(1) { animation-delay: 0.1s; }
.company-card:nth-child(2) { animation-delay: 0.2s; }

.company-card:not(.company-card-disabled):hover {
    border-color: var(--crc-green);
    box-shadow: 0 12px 40px rgba(139, 197, 63, 0.2);
    transform: translateY(-4px);
}

.company-card:not(.company-card-disabled):hover .company-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Disabled Card State */
.company-card-disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.company-card-disabled:hover {
    border-color: var(--gray-300);
    box-shadow: none;
    transform: none;
}

/* Company Logo */
.company-logo {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.company-logo img {
    max-height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.company-logo-fallback {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--crc-green);
    letter-spacing: -0.02em;
}

/* Company Info */
.company-info {
    flex: 1;
}

.company-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--crc-charcoal);
    margin-bottom: 0.25rem;
}

.company-full-name {
    font-size: 0.85rem;
    color: var(--crc-gray);
    margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.company-description {
    font-size: 0.95rem;
    color: var(--crc-charcoal);
    line-height: 1.5;
}

/* Company Status Badge */
.company-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    width: fit-content;
}

.company-status svg {
    width: 14px;
    height: 14px;
}

.company-status-active {
    background: rgba(139, 197, 63, 0.15);
    color: var(--crc-green-dark);
    border: 1px solid var(--crc-green);
}

.company-status-pending {
    background: var(--gray-200);
    color: var(--crc-gray);
    border: 1px solid var(--gray-300);
}

/* Company Arrow */
.company-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.company-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--crc-charcoal);
}

.company-card:not(.company-card-disabled):hover .company-arrow {
    background: var(--crc-green);
}

.company-card:not(.company-card-disabled):hover .company-arrow svg {
    stroke: var(--white);
}

.company-card-disabled .company-arrow {
    display: none;
}

/* Responsive Adjustments for Homepage */
@media (max-width: 768px) {
    .company-grid {
        grid-template-columns: 1fr;
    }
    
    .company-card {
        padding: 1.5rem;
    }
    
    .company-arrow {
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* Configuration Status Badge (amber/orange theme) */
.company-status-config {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
    border: 1px solid #F59E0B;
}

/* ============================================
   NHCC CARD STYLING - Blue Theme
============================================ */

/* NHCC Logo Text Color - Teal */
.company-logo-nhcc {
    color: var(--nhcc-teal) !important;
}

/* NHCC Card Hover State - Blue glow */
.company-card-nhcc:hover {
    border-color: var(--nhcc-teal) !important;
    box-shadow: 0 12px 40px rgba(43, 158, 179, 0.25) !important;
}

/* NHCC Card Arrow - Blue background only on hover (same behavior as CRC) */
.company-card-nhcc:hover .company-arrow {
    background: var(--nhcc-teal) !important;
    opacity: 1 !important;
}

.company-card-nhcc:hover .company-arrow svg {
    stroke: var(--white) !important;
}

/* NHCC Active Status Badge - Blue theme */
.company-card-nhcc .company-status-active {
    background: rgba(43, 158, 179, 0.15) !important;
    color: var(--nhcc-teal-dark) !important;
    border: 1px solid var(--nhcc-teal) !important;
}

/* NHCC Active Status Checkmark - Blue */
.company-card-nhcc .company-status-active svg {
    stroke: var(--nhcc-teal) !important;
}

/* ============================================
   MAGICMAN CARD STYLING - Navy Blue Theme
   Add this to the end of styles.css after the NHCC card styling
============================================ */

/* Magicman Brand Colors (from logo) */
:root {
    --magicman-navy: #1E3A5F;
    --magicman-navy-dark: #152942;
    --magicman-navy-light: #2D4A6F;
    --magicman-accent: #8BC53F;
    --magicman-accent-dark: #6BA32D;
}

/* Magicman Logo Text Color - Navy */
.company-logo-magicman {
    color: var(--magicman-navy) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

/* Magicman Card Hover State - Navy glow */
.company-card-magicman:hover {
    border-color: var(--magicman-navy) !important;
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.25) !important;
}

/* Magicman Card Arrow - Navy background only on hover */
.company-card-magicman:hover .company-arrow {
    background: var(--magicman-navy) !important;
    opacity: 1 !important;
}

.company-card-magicman:hover .company-arrow svg {
    stroke: var(--white) !important;
}

/* Magicman Active Status Badge - Navy theme with green accent */
.company-card-magicman .company-status-active {
    background: rgba(30, 58, 95, 0.1) !important;
    color: var(--magicman-navy) !important;
    border: 1px solid var(--magicman-navy) !important;
}

/* Magicman Active Status Checkmark - Green accent */
.company-card-magicman .company-status-active svg {
    stroke: var(--magicman-accent) !important;
}

/* Animation delay for third card */
.company-card:nth-child(3) { 
    animation-delay: 0.3s; 
}
