.profile-field-label,
.profile-page h1 {
    font-family: "JetBrains Mono ExtraBold", monospace
}

.profile-edit-btn:hover,
.profile-edit-toggle:checked~.profile-field-header .profile-edit-btn {
    background: var(--color-primary);
    color: var(--text-inverse)
}

.profile-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px
}

.profile-page h1 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center
}

.profile-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px
}

.profile-alert-success {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border: 1px solid var(--alert-success-border)
}

.profile-alert-error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border: 1px solid var(--alert-error-border)
}

.profile-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-sm);
    overflow: hidden
}

.profile-card-header {
    background: var(--gradient-profile);
    padding: 30px;
    text-align: center;
    color: var(--text-inverse)
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem
}

.profile-card-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-heading)
}

.profile-card-header .profile-status {
    margin-top: 8px;
    opacity: .9;
    font-size: .95rem
}

.profile-card-body {
    padding: 30px
}

.profile-field {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-light)
}

.profile-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0
}

.profile-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px
}

.profile-field-label {
    color: var(--color-primary);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .5px
}

.profile-field-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 10px 0;
    font-family: var(--font-body)
}

.profile-field-readonly {
    color: var(--text-tertiary);
    font-style: italic
}

.profile-field-readonly-notice {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 5px
}

.profile-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: 0 0;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 6px;
    font-size: .85rem;
    cursor: pointer;
    transition: .3s;
    font-family: "JetBrains Mono ExtraBold", monospace;
    text-decoration: none
}

.profile-input,
.profile-select {
    padding: 12px 15px;
    transition: border-color .3s;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    text-align: left;
    width: 100%;
    font-size: 1rem
}

.profile-edit-btn:hover {
    transform: translateY(-2px);
    text-decoration: none
}

.profile-edit-form {
    margin-top: 15px
}

.profile-edit-toggle {
    display: none
}

.profile-edit-content {
    display: none;
    animation: .3s slideDown
}

.profile-edit-toggle:checked~.profile-edit-content {
    display: block
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.profile-input {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background-color: var(--bg-card)
}

.profile-input:focus,
.profile-select:focus {
    outline: 0;
    border-color: var(--color-primary)
}

.profile-select {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    cursor: pointer
}

.profile-btn-cancel,
.profile-btn-save {
    padding: 12px 20px;
    font-family: "JetBrains Mono ExtraBold", monospace;
    font-size: .95rem;
    transition: .3s;
    cursor: pointer
}

.profile-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px
}

.profile-btn-save {
    flex: 1;
    background: var(--gradient-profile);
    color: var(--text-inverse);
    border: none;
    border-radius: 8px
}

.profile-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, .4)
}

.profile-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    text-align: center
}

.profile-btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: .95rem;
    transition: .3s
}

.profile-back-link:hover {
    color: var(--color-primary-hover);
    transform: translateX(-5px);
    text-decoration: none
}

.change-user h1,
.change-user-label {
    color: #667eea;
    font-family: "JetBrains Mono ExtraBold", monospace
}

::placeholder {
    text-align: left
}

.change-user form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 50%
}

.change-user {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%
}

.change-user h1 {
    font-size: 2rem;
    margin: 20px
}

.change-user-input::placeholder {
    color: #667eea;
    opacity: 50%
}

.change-user-div {
    display: flex;
    justify-content: space-around;
    margin: .5em;
    flex-direction: column;
    align-items: center;
    width: 100%
}

.change-user-input {
    margin: 10px;
    width: 17em;
    height: 3rem;
    border-color: #667eea;
    border-radius: 10px
}

.change-user-label {
    margin: 10px
}

.change-user-button {
    margin: 10px;
    background: #b523eb;
    background: linear-gradient(90deg, #b523eb 0, #5759c7 100%, #eddd53 100%);
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    min-width: 120px;
    font-size: 14px;
    font-family: "JetBrains Mono ExtraBold", monospace;
    transition: box-shadow .25s ease-in-out;
    cursor: pointer;
    border: none
}

.change-user-button:hover {
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, .6)
}

.change-user-div div {
    display: flex;
    width: 300px;
    align-items: center;
    justify-content: center
}

.change-user-div div span {
    opacity: 50%;
    font-size: 1rem
}

@media (max-width:992px) {
    .profile-page {
        margin: 30px auto
    }

    .change-user h1,
    .profile-page h1 {
        font-size: 1.8rem
    }

    .profile-card-header {
        padding: 25px
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem
    }

    .change-user form {
        width: 70%
    }

    .change-user-input {
        width: 15em
    }

    .change-user-div div {
        width: 250px
    }
}

.privacy-page h1 {
    color: var(--text-primary)
}

.privacy-header {
    background: linear-gradient(135deg, #764ba2 0, #667eea 100%)
}

.privacy-blocked-header {
    background: linear-gradient(135deg, #dc3545 0, #c82333 100%)
}

.privacy-blocked-message {
    text-align: center;
    padding: 30px
}

.privacy-blocked-message i {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px
}

.privacy-blocked-message p {
    font-size: 1.1rem;
    color: #333;
    margin: 10px 0
}

.privacy-blocked-time {
    color: #dc3545;
    font-size: 1.2rem;
    margin-top: 20px
}

.privacy-current-value {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: .95rem
}

.privacy-current-value span {
    color: #6c757d
}

.privacy-current-value strong {
    color: #333
}

.privacy-password-confirm {
    margin-top: 20px
}

.privacy-label {
    display: block;
    font-family: "JetBrains Mono ExtraBold", monospace;
    color: #667eea;
    font-size: .9rem;
    margin-bottom: 10px
}

.privacy-label i {
    margin-right: 5px
}

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin: 15px 0;
    font-size: .9rem;
    color: #856404
}

.privacy-notice i {
    margin-top: 2px;
    flex-shrink: 0
}

.privacy-notice-info {
    background: #e7f3ff;
    border-left-color: #3182ce;
    color: #2c5282
}

.privacy-code-section {
    margin-bottom: 25px
}

.privacy-code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700
}

.privacy-password-section {
    margin-bottom: 20px
}

.privacy-password-requirements {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px
}

.privacy-password-requirements p {
    margin: 0 0 10px;
    font-size: .9rem;
    color: #333
}

.privacy-password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.privacy-password-requirements li {
    font-size: .85rem;
    color: #6c757d;
    padding: 5px 0
}

.privacy-password-requirements li i {
    color: #28a745;
    margin-right: 8px
}

.privacy-password-requirements li i.fa-exclamation-circle,
.privacy-resend-disabled i.fa-ban {
    color: #dc3545
}

.privacy-password-masked {
    font-family: 'Courier New', monospace;
    letter-spacing: 3px
}

.privacy-resend-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    text-align: center
}

.privacy-resend-section>p {
    color: #6c757d;
    font-size: .9rem;
    margin-bottom: 15px
}

.privacy-resend-form {
    display: inline-block
}

.privacy-resend-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0, #20c997 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    cursor: pointer;
    transition: .3s;
    font-family: "JetBrains Mono ExtraBold", monospace
}

.privacy-resend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, .4)
}

.privacy-resend-btn i {
    font-size: .9rem
}

.privacy-resend-count {
    margin-top: 10px;
    font-size: .85rem;
    color: #6c757d
}

.privacy-resend-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: .9rem
}

.privacy-resend-disabled i {
    color: #ffc107
}

.privacy-resend-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0, #5a6268 100%);
    cursor: not-allowed;
    opacity: .8
}

.privacy-resend-btn:disabled:hover {
    transform: none;
    box-shadow: none
}

.privacy-resend-btn-ready {
    animation: .5s ease-out pulse-ready
}

@keyframes pulse-ready {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, .7)
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0)
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0)
    }
}

@media (max-width:768px) {

    .profile-field-header,
    .profile-form-actions {
        flex-direction: column
    }

    .profile-page {
        margin: 20px auto;
        padding: 0 15px
    }

    .profile-page h1 {
        font-size: 1.6rem;
        margin-bottom: 20px
    }

    .profile-card-body,
    .profile-card-header {
        padding: 20px
    }

    .profile-card-header h2 {
        font-size: 1.3rem
    }

    .profile-field-header {
        align-items: flex-start;
        gap: 10px
    }

    .privacy-resend-btn,
    .profile-edit-btn {
        width: 100%;
        justify-content: center
    }

    .profile-btn-cancel {
        order: 2
    }

    .change-user form {
        width: 90%;
        max-width: 500px
    }

    .change-user h1 {
        font-size: 1.6rem;
        margin: 15px
    }

    .change-user-input {
        width: 100%;
        max-width: 300px;
        font-size: 16px
    }

    .change-user-div {
        margin: .3em
    }

    .change-user-div div {
        width: 100%;
        max-width: 300px;
        flex-direction: column;
        gap: 5px
    }

    .change-user-div div span {
        font-size: .9rem;
        text-align: center
    }

    .change-user-button {
        width: 100%;
        max-width: 300px;
        padding: 8px;
        font-size: .95rem
    }

    .privacy-code-input {
        font-size: 1.2rem;
        letter-spacing: 5px
    }

    .privacy-password-requirements {
        padding: 12px
    }

    .privacy-password-requirements li {
        font-size: .8rem
    }
}

@media (max-width:480px) {
    .profile-page {
        padding: 0 10px
    }

    .profile-page h1 {
        font-size: 1.4rem
    }

    .profile-card-body,
    .profile-card-header {
        padding: 15px
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem
    }

    .change-user-button,
    .change-user-input {
        width: 100%;
        margin: 8px 5px;
        max-width: 100%
    }

    .profile-card-header h2 {
        font-size: 1.2rem
    }

    .privacy-blocked-message p,
    .profile-field-value {
        font-size: 1rem
    }

    .profile-input,
    .profile-select {
        font-size: 16px
    }

    .change-user form {
        width: 95%
    }

    .change-user h1 {
        font-size: 1.4rem;
        margin: 10px
    }

    .change-user-input {
        height: 2.5rem
    }

    .change-user-label {
        font-size: .95rem;
        margin: 8px 5px
    }

    .change-user-button {
        padding: 10px
    }

    .change-user-div div {
        max-width: 100%;
        padding: 0 5px
    }

    .privacy-blocked-message i {
        font-size: 3rem
    }

    .privacy-code-input {
        font-size: 1rem;
        letter-spacing: 3px
    }
}
