/* @author GustavoChaconDeveloper - github.com/GustavoChaconDeveloper */
/* ===== CHALLENGES PAGE STYLES ===== */

/* Reduce top spacing for challenges page */

.challenges-page {
    padding: 40px 40px 100px 40px !important;
    align-items: flex-start !important;
}

/* Quick-start Guide */
.quick-start-guide {
    background: rgba(10, 31, 94, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.quick-start-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.quick-start-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.btn-continue-guide {
    padding: 10px 30px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue-guide:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.quick-start-steps {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.quick-start-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(to right, 
        #4ade80 0%, 
        #4ade80 33%, 
        rgba(102, 126, 234, 0.3) 33%, 
        rgba(102, 126, 234, 0.3) 66%, 
        rgba(255, 255, 255, 0.2) 66%);
    z-index: 0;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.step-item.completed .step-icon {
    background: #4ade80;
    border-color: #4ade80;
    color: #ffffff;
}

.step-item.completed .step-icon .fa-check {
    display: block;
}

.step-item.completed .step-number {
    display: none;
}

.step-item.active .step-icon {
    background: #538CFF;
    border-color: #538CFF;
    color: #FFFFFF;
    box-shadow: 0px 0px 24px rgba(36, 160, 237, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 29px;
}

.step-item.active .step-icon i {
    display: none;
}

.step-item.active .step-number {
    display: block;
}

.step-number {
    display: block;
}

.step-icon i {
    display: none;
}

.step-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.step-item.completed .step-label,
.step-item.active .step-label {
    color: #ffffff;
}

/* Challenge Section */
.challenge-section-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
    background: #003399;
}

.challenge-card-text {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.challenge-card-title {
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 30px 0;
    line-height: 1.2;
}

.challenge-card-description {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 40px 0;
    line-height: 1.5;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-value {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 72px;
    line-height: 1;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
}

.countdown-separator {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 72px;
    line-height: 1;
    color: #FFFFFF;
    margin: 0 5px;
    padding-bottom: 26px;
}

.btn-register-challenge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 24px;
    gap: 6px;
    width: 224px;
    height: 56px;
    background: #FFFFFF;
    border: none;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #152a85;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.btn-register-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.challenge-banner-image {
    overflow: hidden;
    display: flex;
    align-items: center;
}

.tournament-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.challenge-card-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.challenge-card-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.btn-register-challenge {
    padding: 14px 40px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    color: #152a85;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-register-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Leaderboard Preview */
.leaderboard-preview {
    background: rgba(10, 31, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-tabs {
    display: flex;
    gap: 10px;
}

.leaderboard-tab {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaderboard-tab.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
}

.leaderboard-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-tier {
    padding: 6px 15px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
}

.points {
    color: #4ade80;
    font-size: 18px;
    font-weight: 700;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table td {
    padding: 18px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
}

.level-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.level-expert {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}

.level-advanced {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.level-intermediate {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.level-beginner {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.status-inactive {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Leaderboard Footer */
.leaderboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 18px;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.user-level {
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #ffd700;
    font-size: 13px;
    font-weight: 600;
}

.btn-register-leaderboard {
    padding: 10px 30px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register-leaderboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

/* My Account Section */
.my-account-section {
    background: rgba(10, 31, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 50px;
    backdrop-filter: blur(10px);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.membership-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 18px 24px;
    background: rgba(10, 31, 94, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.membership-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.membership-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.membership-type {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.membership-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-upgrade {
    padding: 10px 28px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-upgrade:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Account Tabs */
.account-tabs {
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 4px;
    margin-bottom: 30px;
    background: rgba(0, 17, 52, 0.6);
    box-shadow: inset 0px 0px 4px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    width: fit-content;
}

.account-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.account-tab.active {
    background: #0F285B;
    color: #ffffff;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

.account-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.account-tab.active:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* Botão Upgrade Plan no Header */
.btn-upgrade-plan {
    padding: 10px 28px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-upgrade-plan:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Committee Review Section */
.committee-review-section {
    background: rgba(0, 17, 52, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 30px;
}

.committee-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.committee-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.committee-description {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.btn-apply-committee {
    padding: 12px 32px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #0F285B;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-apply-committee:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Challenge History */
.challenge-history {
    margin-top: 30px;
    width: 100%;
    overflow: hidden;
}

.history-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 25px 0;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Settings Tab Styles */
.settings-section {
    background: rgba(0, 17, 52, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
}

.settings-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
}

/* Personal Information */
.personal-info-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.profile-avatar-section {
    flex-shrink: 0;
}

.avatar-frame {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    width: 132px;
    height: 132px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    position: relative;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.avatar-background {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(82.04deg, #DB8833 2.54%, #FFE784 26.25%, #FFE784 69.24%, #DB8833 105.31%, #DB8833 105.31%);
    z-index: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}

.edit-avatar-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    left: 0px;
    bottom: 68px;
    border-radius: 50px;
    background: #FFFFFF;
    border: none;
    color: #003399;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: -4px 0px 12px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.edit-avatar-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.edit-avatar-btn i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-badge {
    position: absolute;
    width: 32px;
    height: 32px;
    right: 0px;
    bottom: 0px;
    background: #192950;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    z-index: 3;
}

.badge-icon {
    width: 22.63px;
    height: 24.06px;
    object-fit: contain;
}

.info-fields-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(15, 40, 91, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
}

.info-field.full-width {
    grid-column: 1 / -1;
}

.field-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    gap: 4px;
    height: 24px;
}

.field-label {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    color: #FFFFFF;
    margin: 0;
}

.field-value {
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.edit-field-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.edit-field-btn:hover {
    color: #667eea;
    transform: scale(1.1);
}

.edit-field-btn i {
    font-size: 16px;
}

.btn-contact-edit {
    padding: 4px 12px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-contact-edit:hover {
    color: #667eea;
}

/* Subscription Section */
.subscription-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.subscription-info-box {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.subscription-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.subscription-details {
    flex: 1;
}

.subscription-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.subscription-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 4px 0;
}

.subscription-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.subscription-actions {
    display: flex;
    gap: 12px;
}

.btn-cancel-subscription {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.6);
    border-radius: 8px;
    color: rgba(239, 68, 68, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cancel-subscription:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.8);
}

.btn-upgrade-subscription {
    padding: 10px 24px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #0F285B;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-upgrade-subscription:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Payment Methods */
.payment-methods-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.payment-card-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.card-brand {
    font-size: 32px;
    color: #1a1f71;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-number {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.card-expiry {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.payment-methods-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-change-payment {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-change-payment:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Delete Account Button */
.btn-delete-account {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: rgba(239, 68, 68, 0.9);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-delete-account:hover {
    color: rgba(239, 68, 68, 1);
}

/* ===== LANGUAGE SELECTOR (GT-LINK) ===== */

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: rgba(10, 20, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-top: 8px;
    padding: 8px;
    min-width: 180px;
    max-width: 220px;
    z-index: 4000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.language-dropdown.active {
    display: block;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

#languageDropdown,
#languageDropdownMobile {
    display: none;
    flex-direction: column;
}

#languageDropdown.active,
#languageDropdownMobile.active {
    display: flex;
}

#languageDropdown a.glink,
#languageDropdown a[data-gt-lang],
#languageDropdownMobile a.glink,
#languageDropdownMobile a[data-gt-lang] {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

#languageDropdown a.glink:hover,
#languageDropdown a[data-gt-lang]:hover,
#languageDropdownMobile a.glink:hover,
#languageDropdownMobile a[data-gt-lang]:hover {
    background: rgba(255, 255, 255, 0.12);
}

#languageDropdown a.glink.gt-current-lang,
#languageDropdown a[data-gt-lang].gt-current-lang,
#languageDropdownMobile a.glink.gt-current-lang,
#languageDropdownMobile a[data-gt-lang].gt-current-lang {
    background: rgba(65, 105, 225, 0.25) !important;
    font-weight: 700;
}

#languageDropdown a.glink img,
#languageDropdown a[data-gt-lang] img,
#languageDropdownMobile a.glink img,
#languageDropdownMobile a[data-gt-lang] img {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

#languageDropdown .gt_selector,
#languageDropdown #google_translate_element2,
#languageDropdownMobile .gt_selector,
#languageDropdownMobile #google_translate_element2,
#languageDropdownNav .gt_selector,
#languageDropdownNav #google_translate_element2,
li.menu-item-gtranslate {
    display: none !important;
}

.mobile-language-section {
    display: none;
    padding: 16px 0 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    position: relative;
    width: 100%;
}

.mobile-language-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: 100%;
    transition: color 0.2s;
}

.mobile-language-trigger .flag-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-language-trigger #navLangChevron {
    font-size: 11px;
    margin-left: auto;
    transition: transform 0.3s;
}

.mobile-language-trigger.open #navLangChevron {
    transform: rotate(180deg);
}

.mobile-language-dropdown {
    display: none;
    flex-direction: column;
    background: rgba(0, 17, 52, 0.92);
    border-radius: 10px;
    padding: 6px;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.mobile-language-dropdown.active {
    display: flex;
}

.mobile-language-dropdown a.glink,
.mobile-language-dropdown a[data-gt-lang] {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.mobile-language-dropdown a.glink:hover,
.mobile-language-dropdown a[data-gt-lang]:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mobile-language-dropdown a.glink.gt-current-lang,
.mobile-language-dropdown a[data-gt-lang].gt-current-lang {
    background: rgba(65, 105, 225, 0.25) !important;
    font-weight: 700;
}

.mobile-language-dropdown a.glink img,
.mobile-language-dropdown a[data-gt-lang] img {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .mobile-language-section { display: block !important; }
}

@media (min-width: 993px) {
    .mobile-language-section { display: none !important; }
}

/* Questionnaire Banner (between account-header and tabs) */
.questionnaire-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 24px;
    background: rgba(10, 31, 94, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.questionnaire-banner-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Questionnaire Section */
.questionnaire-section .questionnaire-status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.questionnaire-status-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.questionnaire-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.questionnaire-status-icon i {
    font-size: 20px;
    color: #00d4ff;
}

.questionnaire-done-icon {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.questionnaire-done-icon i {
    color: #4CAF50;
}

.questionnaire-status-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.questionnaire-status-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

.btn-open-questionnaire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-open-questionnaire:hover {
    background: linear-gradient(135deg, #00bfee, #0088bb);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-icon i {
    font-size: 36px;
    color: rgba(102, 126, 234, 0.6);
}

.empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.empty-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 30px 0;
    max-width: 450px;
}

.btn-take-me-there {
    padding: 12px 36px;
    background: transparent;
    border: 2px solid #ffffff;
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-take-me-there:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.history-item:hover {
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.history-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    min-width: 120px;
}

.history-description {
    flex: 1;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.btn-go {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-go:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
}

.page-dots {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    padding: 0 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .challenge-section-cards {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    /* Fix page padding for mobile */
    .challenges-page {
        padding: 20px 15px 80px 15px !important;
    }
    
    /* Body padding for fixed header */
    body {
        padding-top: 80px;
    }
    
    /* Challenge Section Cards - Full width */
    .challenge-section-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .challenge-card-text {
        padding: 25px 20px;
    }
    
    .challenge-card-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    /* Countdown Timer - Smaller */
    .countdown-timer {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .countdown-value {
        font-size: 48px;
    }
    
    .countdown-label {
        font-size: 14px;
    }
    
    .countdown-separator {
        font-size: 48px;
        padding-bottom: 18px;
    }
    
    .btn-register-challenge {
        width: 100%;
        max-width: 280px;
    }
    
    /* Banner Image - Show but adjust for mobile */
    .challenge-banner-image {
        border-radius: 12px;
        overflow: hidden;
        max-height: 200px;
    }
    
    .tournament-banner {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* My Account Section */
    .my-account-section {
        padding: 20px;
        border-radius: 16px;
    }
    
    .account-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .account-title {
        font-size: 24px;
    }
    
    .membership-info {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .btn-upgrade {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Account Tabs - Scrollable */
    .account-tabs {
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }
    
    .account-tab {
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Challenge History */
    .challenge-history {
        overflow-x: hidden;
        padding: 0;
    }
    
    .history-list {
        max-height: 500px;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .history-date {
        font-size: 12px;
        font-weight: 600;
        width: 100%;
    }
    
    .history-description {
        font-size: 13px;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .btn-go {
        align-self: flex-end;
        margin-top: 5px;
        flex-shrink: 0;
    }
    
    /* Pagination */
    .pagination {
        gap: 8px;
    }
    
    .page-btn {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .quick-start-guide {
        padding: 20px;
    }
    
    .quick-start-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .quick-start-steps {
        flex-direction: column;
        gap: 25px;
    }
    
    .quick-start-steps::before {
        display: none;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .challenge-card-text {
        padding: 30px 25px;
    }
    
    .challenge-card-title {
        font-size: 24px;
    }
    
    /* Banner adjustments for 768px */
    .challenge-banner-image {
        max-height: 180px;
        margin-top: 15px;
    }
    
    .leaderboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .leaderboard-table {
        display: block;
        overflow-x: auto;
    }
    
    .leaderboard-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .account-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .membership-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .account-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* Settings responsivo */
    .personal-info-content {
        flex-direction: column;
        align-items: center;
    }
    
    .avatar-frame {
        width: 160px;
        height: 160px;
    }
    
    .profile-avatar-large {
        width: 120px;
        height: 120px;
    }
    
    .info-fields-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }
    
    .subscription-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subscription-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-cancel-subscription,
    .btn-upgrade-subscription {
        width: 100%;
    }
    
    .payment-methods-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .payment-methods-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .history-description {
        padding: 0;
    }
    
    .btn-go {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .challenges-page {
        padding: 15px 10px 60px 10px !important;
    }
    
    .my-account-section {
        padding: 15px;
        border-radius: 12px;
    }
    
    .account-title {
        font-size: 20px;
    }
    
    /* Challenge Card */
    .challenge-card-text {
        padding: 20px 15px;
    }
    
    .challenge-card-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    /* Countdown - Extra small */
    .countdown-timer {
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 36px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .countdown-separator {
        font-size: 36px;
        padding-bottom: 12px;
        margin: 0 2px;
    }
    
    .btn-register-challenge {
        width: 100%;
        height: 48px;
        font-size: 13px;
        padding: 0 20px;
    }
    
    /* Banner for extra small devices */
    .challenge-banner-image {
        max-height: 150px;
        border-radius: 10px;
    }
    
    /* Membership Info */
    .membership-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .membership-icon {
        width: 40px;
        height: 40px;
    }
    
    .membership-type {
        font-size: 14px;
    }
    
    .membership-date {
        font-size: 11px;
    }
    
    /* Account Tabs - Better mobile scroll */
    .account-tabs {
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .account-tab {
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Challenge History - Better mobile layout */
    .challenge-history {
        padding: 20px 15px;
    }
    
    .history-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .history-list {
        gap: 10px;
    }
    
    /* History Items - More compact */
    .challenge-history {
        padding: 0;
        margin: 20px 0;
    }
    
    .history-list {
        max-height: 400px;
    }
    
    .history-item {
        padding: 10px 8px;
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .history-date {
        font-size: 11px;
        font-weight: 600;
        width: 100%;
    }
    
    .history-description {
        font-size: 12px;
        line-height: 1.4;
        width: 100%;
        word-wrap: break-word;
    }
    
    .btn-go {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .page-dots {
        font-size: 12px;
    }
    
    /* Settings mobile */
    .settings-section {
        padding: 15px 20px;
    }
    
    .settings-title {
        font-size: 18px;
    }
    
    .questionnaire-section .questionnaire-status-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-open-questionnaire {
        width: 100%;
        justify-content: center;
    }
    
    .avatar-frame {
        width: 140px;
        height: 140px;
        padding: 12px;
    }
    
    .profile-avatar-large {
        width: 100px;
        height: 100px;
    }
    
    .edit-avatar-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .avatar-badge {
        width: 48px;
        height: 48px;
    }
    
    .field-label {
        font-size: 13px;
    }
    
    .field-value {
        font-size: 13px;
    }
    
    .btn-contact-edit {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .subscription-info-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .card-brand {
        font-size: 24px;
    }
}

/* ===== AVATAR MODAL STYLES ===== */
/* Overlay com fundo escuro */
.avatar-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none; /* Oculto por padrão */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Container do modal com efeito VIDRO (glassmorphism) */
.avatar-modal .modal-content {
    width: 642px;
    max-width: 90%;
    padding: 32px 36px;
    border-radius: 8px;
    
    /* Cor original + transparência */
    background: rgba(0, 17, 52, 0.55);
    
    /* Efeito vidro */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    /* Profundidade e brilho */
    box-shadow:
        0 0 40px rgba(0, 51, 153, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    
    /* Acabamento */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar-modal-content {
    padding: 0;
}

.avatar-modal .modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0;
}

.avatar-modal .modal-logo {
    height: 20px;
    width: auto;
}

.avatar-modal .modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.avatar-modal .modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.avatar-modal .modal-header {
    text-align: center;
    padding: 0 0 20px 0;
}

.avatar-modal .modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.avatar-modal .modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 0;
    background: rgba(10, 31, 94, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 -36px;
    padding: 30px 36px;
}

.avatar-option {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(10, 31, 94, 0.8), rgba(25, 52, 131, 0.6));
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-option:hover {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
}

.avatar-option.selected {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.avatar-option.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #667eea;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    border: 2px solid #0a1f5e;
}

.avatar-modal-actions {
    display: flex;
    gap: 15px;
    padding: 30px 0 0 0;
    justify-content: center;
}

.btn-close-modal {
    padding: 14px 50px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-save-avatar {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 50px;
    gap: 4px;
    
    /* Grey/White */
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    
    /* Text */
    color: #001134;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    
    /* Inside auto layout */
    flex: none;
    order: 1;
    flex-grow: 0;
    
    transition: all 0.3s ease;
}

.btn-save-avatar:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Avatar Modal Responsive */
@media (max-width: 768px) {
    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .avatar-modal .modal-header {
        padding: 0 20px 15px 20px;
    }
    
    .avatar-modal-actions {
        padding: 20px;
        flex-direction: column;
    }
    
    .btn-close-modal,
    .btn-save-avatar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .avatar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .avatar-modal .modal-title {
        font-size: 22px;
    }
}

/* ===== NICKNAME MODAL STYLES ===== */
/* Overlay com fundo escuro */
.nickname-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none; /* Oculto por padrão */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Container do modal com efeito VIDRO (glassmorphism) */
.nickname-modal .modal-content {
    width: 480px;
    max-width: 90%;
    padding: 32px 36px;
    border-radius: 8px;
    
    /* Cor original + transparência */
    background: rgba(0, 17, 52, 0.55);
    
    /* Efeito vidro */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    /* Profundidade e brilho */
    box-shadow:
        0 0 40px rgba(0, 51, 153, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    
    /* Acabamento */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nickname-modal-content {
    padding: 0;
}

.nickname-modal .modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0;
}

.nickname-modal .modal-logo {
    height: 20px;
    width: auto;
}

.nickname-modal .modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nickname-modal .modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.nickname-modal .modal-header {
    text-align: center;
    padding: 0 0 30px 0;
}

.nickname-modal .modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.nickname-modal .modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.nickname-input-container {
    margin-bottom: 30px;
}

.nickname-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(10, 31, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.nickname-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.nickname-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(10, 31, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.nickname-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-save-nickname {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 50px;
    gap: 4px;
    
    /* Grey/White */
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    
    /* Text */
    color: #001134;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    
    /* Inside auto layout */
    flex: none;
    order: 1;
    flex-grow: 0;
    
    transition: all 0.3s ease;
}

.btn-save-nickname:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Nickname Modal Responsive */
@media (max-width: 768px) {
    .nickname-modal .modal-content {
        width: 90%;
        padding: 25px 20px;
    }
    
    .nickname-modal .modal-header {
        padding: 0 0 20px 0;
    }
    
    .nickname-modal-actions {
        flex-direction: column;
    }
    
    .btn-close-modal,
    .btn-save-nickname {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nickname-modal .modal-title {
        font-size: 22px;
    }
    
    .nickname-input {
        font-size: 14px;
        padding: 14px 16px;
    }
}

/* ===== PHONE MODAL STYLES ===== */
/* Overlay com fundo escuro */
.phone-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none; /* Oculto por padrão */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Container do modal com efeito VIDRO (glassmorphism) */
.phone-modal .modal-content {
    width: 530px;
    max-width: 90%;
    padding: 32px 36px;
    border-radius: 8px;
    
    /* Cor original + transparência */
    background: rgba(0, 17, 52, 0.55);
    
    /* Efeito vidro */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    /* Profundidade e brilho */
    box-shadow:
        0 0 40px rgba(0, 51, 153, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    
    /* Acabamento */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-modal-content {
    padding: 0;
}

.phone-modal .modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0;
}

.phone-modal .modal-logo {
    height: 20px;
    width: auto;
}

.phone-modal .modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.phone-modal .modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.phone-progress-bar {
    position: relative;
    margin-bottom: 25px;
}

.progress-line {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: #ffffff;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.progress-line.full::after {
    width: 100%;
}

.progress-step {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.phone-modal .modal-header {
    text-align: center;
    padding: 0 0 30px 0;
}

.phone-modal .modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.modal-subtitle-phone {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.phone-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.phone-country-select {
    width: 100px;
    padding: 16px 12px;
    background: rgba(10, 31, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-country-select:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(10, 31, 94, 0.6);
}

.phone-country-select option {
    background: #001134;
    color: #ffffff;
}

.phone-input-modal {
    flex: 1;
    padding: 16px 20px;
    background: rgba(10, 31, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.phone-input-modal::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.phone-input-modal:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(10, 31, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.phone-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-continue-phone {
    /* Auto layout */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 50px;
    gap: 4px;
    
    /* Grey/White */
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    
    /* Text */
    color: #001134;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    
    /* Inside auto layout */
    flex: none;
    order: 1;
    flex-grow: 0;
    
    transition: all 0.3s ease;
}

.btn-continue-phone:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Phone Step Container */
.phone-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Verification Phone Display */
.verification-phone-display {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 8px 0 16px 0;
}

.verification-instruction {
    margin-top: 12px !important;
}

/* Verification Code Input */
.verification-code-container {
    margin-bottom: 30px;
}

.verification-code-input {
    width: 100%;
    padding: 20px;
    background: rgba(10, 31, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.verification-code-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 12px;
}

.verification-code-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(10, 31, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Verification Actions */
.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-change-phone {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn-change-phone:hover {
    color: #ffffff;
}

.btn-resend-code {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.btn-resend-code:not(:disabled) {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    text-decoration: underline;
}

.btn-resend-code:not(:disabled):hover {
    color: #ffffff;
}

/* Phone Modal Responsive */
@media (max-width: 768px) {
    .phone-modal .modal-content {
        width: 90%;
        padding: 25px 20px;
    }
    
    .phone-modal .modal-header {
        padding: 0 0 20px 0;
    }
    
    .phone-modal-actions {
        flex-direction: column;
    }
    
    .btn-close-modal,
    .btn-continue-phone {
        width: 100%;
    }
    
    .phone-input-group {
        flex-direction: column;
    }
    
    .phone-country-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .phone-modal .modal-title {
        font-size: 22px;
    }
    
    .phone-input-modal,
    .phone-country-select {
        font-size: 14px;
        padding: 14px 16px;
    }
    
    .verification-code-input {
        font-size: 24px;
        letter-spacing: 6px;
        padding: 16px;
    }
    
    .modal-subtitle-phone {
        font-size: 13px;
    }
}

/* ===== CONTACT MODAL STYLES ===== */
/* Overlay com fundo escuro */
.contact-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none; /* Oculto por padrão */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Container do modal com efeito VIDRO (glassmorphism) */
.contact-modal .modal-content {
    width: 480px;
    max-width: 90%;
    padding: 32px 36px;
    border-radius: 8px;
    
    /* Cor original + transparência */
    background: rgba(0, 17, 52, 0.55);
    
    /* Efeito vidro */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    
    /* Profundidade e brilho */
    box-shadow:
        0 0 40px rgba(0, 51, 153, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    
    /* Acabamento */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-modal-content {
    padding: 0;
}

.contact-modal .modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0;
}

.contact-modal .modal-logo {
    height: 20px;
    width: auto;
}

.contact-modal .modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.contact-modal .modal-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.contact-modal .modal-header {
    text-align: center;
    padding: 0 0 30px 0;
}

.contact-modal .modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.contact-modal .modal-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.modal-subtitle-contact {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.contact-form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-current-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-current-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.contact-current-value {
    margin: 0;
    font-size: 14px;
    color: #ffffff;
}

.message-input-wrapper {
    position: relative;
}

.contact-message-input {
    width: 100%;
    padding: 16px 20px;
    padding-bottom: 45px;
    background: rgba(10, 31, 94, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-message-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-message-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(10, 31, 94, 0.6);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.message-actions {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-send-message {
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.8);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-send-message:hover {
    background: rgba(102, 126, 234, 1);
    transform: translateY(-2px);
}

.char-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.contact-divider {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    position: relative;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.contact-divider::before {
    left: 0;
}

.contact-divider::after {
    right: 0;
}

.contact-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(10, 31, 94, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social-btn:hover {
    background: rgba(10, 31, 94, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.contact-social-btn.discord:hover {
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.contact-social-btn.telegram:hover {
    box-shadow: 0 4px 12px rgba(34, 139, 230, 0.4);
}

.contact-social-btn.whatsapp:hover {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Contact Modal Responsive */
@media (max-width: 768px) {
    .contact-modal .modal-content {
        width: 90%;
        padding: 25px 20px;
    }
    
    .contact-modal .modal-header {
        padding: 0 0 20px 0;
    }
    
    .contact-social-icons {
        gap: 15px;
    }
    
    .contact-social-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .contact-modal .modal-title {
        font-size: 22px;
    }
    
    .contact-message-input {
        font-size: 14px;
        padding: 14px 16px;
        padding-bottom: 45px;
        min-height: 100px;
    }
    
    .modal-subtitle-contact {
        font-size: 13px;
    }
}



/* ===== NOT LOGGED MODAL STYLES ===== */
.not-logged-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 40px;
}

.not-logged-modal .modal-top-bar {
    justify-content: center;
    margin-bottom: 20px;
}

.not-logged-modal .modal-header {
    margin-bottom: 30px;
}

.not-logged-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    animation: pulse-icon 2s ease-in-out infinite;
}

.not-logged-icon i {
    font-size: 36px;
    color: #ff6b6b;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(255, 107, 107, 0.1);
    }
}

.not-logged-modal .modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.not-logged-modal .modal-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto;
}

.not-logged-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-login-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-login-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    background: linear-gradient(135deg, #5b52f0, #8b47ff);
}

.btn-login-now:active {
    transform: translateY(-1px);
}

.btn-login-now i {
    font-size: 18px;
}

.not-logged-signup-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.not-logged-signup-text a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.not-logged-signup-text a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Responsive styles for not logged modal */
@media (max-width: 480px) {
    .not-logged-modal .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .not-logged-icon {
        width: 70px;
        height: 70px;
    }
    
    .not-logged-icon i {
        font-size: 30px;
    }
    
    .not-logged-modal .modal-title {
        font-size: 22px;
    }
    
    .not-logged-modal .modal-subtitle {
        font-size: 14px;
    }
    
    .btn-login-now {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* parei aqui */


/* ===== HEADER USER AVATAR STYLES (quando logado) ===== */
.header-actions .ticket-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-actions .ticket-counter:hover {
    background: rgba(255, 255, 255, 0.15);
}

.header-actions .ticket-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.header-actions .ticket-count {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.user-avatar-dropdown {
    position: relative;
}

.header-actions .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.header-actions .user-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-actions .user-avatar .card-icon {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7B3FF2;
    border: 2px solid #0A1628;
    border-radius: 50%;
    padding: 5px;
    z-index: 3;
    transition: all 0.3s ease;
}

.header-actions .user-avatar .card-icon:hover {
    background: #8E52FF;
    transform: scale(1.1);
}

.header-actions .user-avatar .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-actions .user-avatar:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

/* User Avatar Dropdown Menu */
.user-avatar-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 22, 40, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.user-avatar-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-avatar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(123, 63, 242, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-header .menu-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(123, 63, 242, 0.5);
}

.menu-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.menu-user-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.user-avatar-menu-items {
    padding: 10px 0;
}

.user-avatar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-avatar-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.user-avatar-menu-item i {
    width: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.user-avatar-menu-item:hover i {
    color: #7B3FF2;
}

.user-avatar-menu-items .menu-divider {
    margin: 8px 20px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-menu-item.logout-item {
    color: #ff6b6b;
}

.user-avatar-menu-item.logout-item:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff8585;
}

.user-avatar-menu-item.logout-item i {
    color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-actions .ticket-counter {
        padding: 6px 12px;
    }
    
    .header-actions .ticket-icon-img {
        width: 20px;
        height: 20px;
    }
    
    .header-actions .ticket-count {
        font-size: 14px;
    }
    
    .header-actions .user-avatar {
        width: 42px;
        height: 42px;
    }
    
    .header-actions .user-avatar .card-icon {
        width: 24px;
        height: 24px;
        bottom: -6px;
        right: -6px;
    }
    
    .user-avatar-menu {
        width: 260px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .header-actions .ticket-counter {
        display: none;
    }
    
    .header-actions .user-avatar {
        width: 38px;
        height: 38px;
    }
    
    .header-actions .user-avatar .card-icon {
        width: 20px;
        height: 20px;
        bottom: -4px;
        right: -4px;
    }
}
/* ============================================================================
   SISTEMA DE NOTIFICAÇÕES TOAST
   ============================================================================ */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: rgba(10, 31, 94, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #4169E1;
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification i {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-message {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

/* Toast Success */
.toast-notification.toast-success {
    border-left-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(10, 31, 94, 0.95) 100%);
}

.toast-notification.toast-success i {
    color: #10B981;
}

/* Toast Error */
.toast-notification.toast-error {
    border-left-color: #EF4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(10, 31, 94, 0.95) 100%);
}

.toast-notification.toast-error i {
    color: #EF4444;
}

/* Toast Warning */
.toast-notification.toast-warning {
    border-left-color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(10, 31, 94, 0.95) 100%);
}

.toast-notification.toast-warning i {
    color: #F59E0B;
}

/* Toast Info */
.toast-notification.toast-info {
    border-left-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(10, 31, 94, 0.95) 100%);
}

.toast-notification.toast-info i {
    color: #3B82F6;
}

/* Responsivo para Toast */
@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: calc(100% - 20px);
    }
}
/* ===================================================================
   DELETE ACCOUNT MODAL STYLES
   =================================================================== */

.delete-account-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.delete-account-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.2) 0%, rgba(255, 51, 102, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.delete-account-icon i {
    font-size: 40px;
    color: #ff3366;
}

.delete-account-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 14px;
    color: #ffd166;
    line-height: 1.6;
}

.delete-account-form {
    margin-top: 30px;
}

.delete-account-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.delete-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.reason-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reason-checkbox:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.reason-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #ff3366;
}

.reason-text {
    font-size: 14px;
    color: #e0e0e0;
    flex: 1;
}

.delete-additional-feedback {
    margin-bottom: 25px;
    position: relative;
}

.delete-feedback-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
}

.delete-feedback-input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.08);
}

.delete-feedback-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.char-count-delete {
    position: absolute;
    bottom: -22px;
    right: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.delete-confirmation-checkbox {
    margin: 25px 0;
    padding: 15px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 8px;
}

.confirm-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.confirm-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #ff3366;
    flex-shrink: 0;
}

.confirm-text {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.5;
}

.delete-account-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-cancel-delete,
.btn-confirm-delete {
    flex: 1;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-delete {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel-delete:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-confirm-delete {
    background: linear-gradient(135deg, #ff3366 0%, #ff1744 100%);
    color: #ffffff;
}

.btn-confirm-delete:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff1744 0%, #e60030 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.4);
}

.btn-confirm-delete:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Delete Success Modal */
.delete-success-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: #4caf50;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.success-message {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.success-info p {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 10px;
    line-height: 1.6;
}

.success-info p:last-child {
    margin-bottom: 0;
}

.success-info strong {
    color: #00d4ff;
    font-weight: 600;
}

.btn-close-success {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #00133D;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-success:hover {
    background: linear-gradient(135deg, #0099cc 0%, #007ba7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* Message Toast */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.message-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.message-toast.message-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%);
    color: #ffffff;
}

.message-toast.message-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.9) 0%, rgba(229, 57, 53, 0.9) 100%);
    color: #ffffff;
}

.message-toast.message-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.9) 0%, rgba(25, 118, 210, 0.9) 100%);
    color: #ffffff;
}

.message-toast i {
    font-size: 18px;
}

/* Responsive Delete Account Modal */
@media (max-width: 768px) {
    .delete-account-modal .modal-content {
        max-width: 95%;
        padding: 30px 20px;
    }
    
    .delete-account-actions {
        flex-direction: column;
    }
    
    .btn-cancel-delete,
    .btn-confirm-delete {
        width: 100%;
    }
    
    .message-toast {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}
