.version-popup-modal .modal-container {
    margin-top: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

.version-popup-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version-popup-header-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.version-popup-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.version-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.version-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.version-popup-content {
    padding: 24px;
}

.version-popup-section {
    margin-bottom: 24px;
}

.version-popup-section:last-child {
    margin-bottom: 0;
}

.version-popup-category {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-brand-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.version-popup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-popup-list li {
    position: relative;
    padding: 6px 12px;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.2;
    border-left: 3px solid #e5e7eb;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.version-popup-list li:hover {
    color: #1f2937;
    background-color: #f9fafb;
    border-left: 3px solid #3b82f6;
}

.version-popup-footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #f9fafb;
}

.version-popup-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.version-popup-btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.version-popup-btn-secondary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.version-popup-btn-primary {
    background: var(--color-brand-primary);
    color: var(--color-on-primary);
    border: 1px solid var(--color-brand-primary);
}

.version-popup-btn-primary:hover {
    background: var(--color-brand-hover-bg);
    border-color: var(--color-brand-hover-bg);
    color: var(--color-button-hover-text);
}

.version-popup-copy-btn {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.version-popup-copy-btn:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

/* Accordion styles for version notes */
.version-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    margin: 8px 24px; /* align with .version-popup-content padding visually */
    overflow: hidden;
}

.version-accordion:first-child { margin-top: 16px; }
.version-accordion:last-child { margin-bottom: 0; }

.version-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.version-accordion[open] .version-accordion-summary {
    background: #ffffff;
    border-bottom-color: #f1f5f9;
}

.version-accordion-summary::-webkit-details-marker { display: none; }
.version-accordion-summary::marker { content: ''; }

.version-accordion-summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.version-accordion[open] .version-accordion-summary::after {
    transform: rotate(45deg);
}

.version-accordion-title {
    font-weight: 600;
    color: #1f2937;
}

.version-accordion-date {
    color: #6b7280;
    font-size: 12px;
}

.version-accordion-body {
    /* content already has its own padding via .version-popup-content */
}
