.past-month-lock-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.btn.has-past-month-lock {
    position: relative;
    padding-right: 18px;
}

.past-month-lock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(2px);
    z-index: 10050;
}

.past-month-lock-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10051;
    width: min(440px, calc(100vw - 32px));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
    border: 1px solid rgba(234, 88, 12, 0.45);
    border-radius: 16px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(148, 163, 184, 0.08) inset;
    padding: 24px 24px 20px;
    font-family: inherit;
}

.past-month-lock-form {
    margin: 0;
}

.past-month-lock-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.past-month-lock-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(234, 88, 12, 0.14);
    border: 1px solid rgba(234, 88, 12, 0.35);
    color: #fdba74;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    flex-shrink: 0;
}

.past-month-lock-dialog h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.past-month-lock-message {
    margin: 0 0 16px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.65;
}

.past-month-lock-field-wrap {
    position: relative;
}

.past-month-lock-password-input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    -webkit-text-security: disc;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.past-month-lock-password-input::placeholder {
    color: #64748b;
}

.past-month-lock-password-input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.past-month-lock-decoy {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@keyframes pastMonthLockAutofillCancel {
    to {
        background: transparent;
    }
}

.past-month-lock-password-input:-webkit-autofill,
.past-month-lock-password-input:-webkit-autofill:hover,
.past-month-lock-password-input:-webkit-autofill:focus {
    animation-name: pastMonthLockAutofillCancel;
    animation-fill-mode: both;
    animation-duration: 0.001s;
    -webkit-text-fill-color: #f1f5f9;
    caret-color: #f1f5f9;
    box-shadow: 0 0 0 1000px #0f172a inset;
}

.past-month-lock-error {
    min-height: 20px;
    margin-top: 10px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.4;
}

.past-month-lock-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.past-month-lock-btn {
    min-width: 104px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.past-month-lock-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.past-month-lock-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.past-month-lock-btn-cancel {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}

.past-month-lock-btn-cancel:hover:not(:disabled) {
    background: #3f4f66;
    border-color: #64748b;
}

.past-month-lock-btn-confirm {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.25), 0 2px 4px -1px rgba(234, 88, 12, 0.15);
}

.past-month-lock-btn-confirm:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 8px 16px -4px rgba(234, 88, 12, 0.35);
}

.btn.btn-edit-mode {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.25), 0 2px 4px -1px rgba(234, 88, 12, 0.15);
}

.btn.btn-edit-mode:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn.btn-edit-mode:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
