.package1-details-modal {
    position: fixed;
    inset: 0;
    z-index: 1150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.30);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.package1-details-modal[hidden] {
    display: none;
}

.package1-details-modal-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #ece3ff;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(91, 33, 182, 0.16);
    overflow: hidden;
}

.package1-details-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #f1ebff;
}

.package1-details-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2e1065;
    margin: 0;
}

.package1-details-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #f5f3ff;
    color: #6d28d9;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.package1-details-modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.package1-details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid #f1ebff;
    border-radius: 16px;
    background: #fcfbff;
}

.package1-details-section-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #1f2937;
}

.package1-details-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.package1-details-row strong {
    font-size: 0.9rem;
    color: #4c1d95;
}

.package1-details-row span,
.package1-details-row a {
    font-size: 0.94rem;
    color: #1f2937;
    word-break: break-word;
}

.package1-details-static-box {
    min-height: 46px;
    padding: 12px;
    border: 1px solid #e6ddff;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.package1-details-input,
.package1-details-textarea {
    width: 100%;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.package1-details-input {
    height: 44px;
    padding: 0 12px;
}

.package1-details-textarea {
    min-height: 110px;
    padding: 12px;
    resize: vertical;
    line-height: 1.5;
}

.package1-details-input:focus,
.package1-details-textarea:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.10);
}

.package1-details-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 4px;
}

.package1-details-save-btn,
.package1-details-history-btn {
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.package1-details-save-btn {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #c4b5fd;
    background: #8b5cf6;
    color: #ffffff;
    font-size: 0.94rem;
}

.package1-details-save-btn:hover {
    background: #7c3aed;
    border-color: #a78bfa;
}

.package1-details-history-btn {
    align-self: center;
    min-width: 140px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #ddd6fe;
    background: #ffffff;
    color: #6d28d9;
    font-size: 0.82rem;
}

.package1-details-history-btn:hover {
    background: #f6f0ff;
    border-color: #c4b5fd;
    color: #581c87;
}