.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup {
    position: relative;
    margin: var(--sp2);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 24px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: transparent;
    border: none;
}

.raspored-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 75px);
}

.raspored-cell {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp1);
    font-size: clamp(14px, 3vw, 16px);
}

.raspored-cell--top-row {
    border-bottom: 2px solid rgba(0, 0, 0, 0.07);
    font-weight: 600;
    font-size: clamp(16px, 3vw, 20px);
}

.raspored-cell--bottom-row {
    border-bottom: none;
}

.raspored-cell--right-column {
    border-right: none;
}