.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.policy-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.policy-header {
    background: linear-gradient(135deg, #4a69bd 0%, #1e3799 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.policy-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.policy-points {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.policy-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.policy-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.policy-content {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.policy-tree {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.policy-branch {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.policy-branch h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.policy-grid {
    display: grid;
    gap: 1rem;
}

.policy-node {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.policy-node:not(.locked):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #4a69bd;
}

.policy-node.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.policy-node.active {
    border-color: #4a69bd;
    background: #f0f4ff;
}

.policy-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.policy-node h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.policy-node p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.policy-cost {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #4a69bd;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.policy-node.locked .policy-cost {
    background: #95a5a6;
}

.policy-connector {
    position: absolute;
    background: #e9ecef;
    z-index: 1;
}

.policy-connector.active {
    background: #4a69bd;
}

/* Branch-specific colors */
.policy-branch.management .policy-node:not(.locked):hover {
    border-color: #3498db;
}

.policy-branch.financial .policy-node:not(.locked):hover {
    border-color: #2ecc71;
}

.policy-branch.hr .policy-node:not(.locked):hover {
    border-color: #e74c3c;
}

.policy-branch.operations .policy-node:not(.locked):hover {
    border-color: #f39c12;
}

.policy-branch.technology .policy-node:not(.locked):hover {
    border-color: #9b59b6;
}

.policy-branch.marketing .policy-node:not(.locked):hover {
    border-color: #e67e22;
}

.policy-branch.customer-service .policy-node:not(.locked):hover {
    border-color: #1abc9c;
}

.policy-branch.research .policy-node:not(.locked):hover {
    border-color: #f1c40f;
}

@media (max-width: 1400px) {
    .policy-tree {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .policy-tree {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .policy-tree {
        grid-template-columns: 1fr;
    }
}