/* ===== PROFILE PAGE STYLES ===== */

.profile-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    padding-top: 120px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 172, 254, 0.1);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%);
    border-bottom: 1px solid rgba(79, 172, 254, 0.1);
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark);
    overflow: hidden;
    transition: var(--transition);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.avatar-overlay i {
    font-size: 1.2rem;
    color: #fff;
}

.avatar-overlay span {
    font-size: 0.7rem;
    color: #fff;
    font-weight: 600;
}

.profile-avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.profile-avatar-wrapper:hover .profile-avatar {
    transform: scale(1.05);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-badge.admin {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

/* Profile Balance */
.profile-balance {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.15));
    border: 2px solid #ffc107;
    border-radius: 30px;
    color: #ffd54f;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3), inset 0 0 15px rgba(255, 193, 7, 0.1);
}

.profile-balance i {
    font-size: 1.3rem;
    color: #ffd54f;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

#profile-balance-amount {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffd54f;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
}

.profile-balance .balance-label {
    font-size: 0.9rem;
    color: #ffc107;
    font-weight: 500;
    opacity: 0.8;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border-radius: var(--radius-md);
    color: var(--bg-dark);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

/* ===== PROFILE TABS ===== */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid rgba(79, 172, 254, 0.1);
    background: var(--bg-card);
}

.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.profile-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.profile-tab:hover {
    color: var(--text-secondary);
}

.profile-tab.active {
    color: var(--text-primary);
}

.profile-tab.active::after {
    transform: scaleX(1);
}

.profile-tab i {
    font-size: 0.85rem;
}

/* ===== PROFILE CONTENT ===== */
.profile-content {
    display: none;
    padding: 30px;
}

.profile-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.profile-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

/* ===== PROFILE FORM ===== */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-form .form-group {
    margin-bottom: 0;
}

.profile-form .form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(79, 172, 254, 0.05);
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(79, 172, 254, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(79, 172, 254, 0.3);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.4);
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.btn-danger-outline:hover {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* ===== SETTINGS LIST ===== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 172, 254, 0.1);
}

.setting-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.setting-info h3 i {
    color: var(--primary);
    font-size: 0.9rem;
}

.setting-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== SWITCH TOGGLE ===== */
.switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 172, 254, 0.2);
    border-radius: 26px;
    transition: var(--transition);
}

.slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.switch input:checked + .slider {
    background: var(--gradient-primary);
}

.switch input:checked + .slider::before {
    transform: translateX(24px);
    background: var(--bg-dark);
}

/* ===== DANGER ZONE ===== */
.danger-zone {
    padding: 20px;
    background: rgba(255, 68, 68, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: var(--radius-md);
}

.danger-zone h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #ff4444;
    margin-bottom: 8px;
}

.danger-zone > p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.danger-zone .btn {
    width: 100%;
    margin-bottom: 10px;
}

.danger-zone .btn:last-child {
    margin-bottom: 0;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 30px;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #ff4444;
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-buttons .btn {
    flex: 1;
}

/* ===== INVENTORY ===== */
.inventory-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
}

.inventory-filter {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.inventory-filter:hover {
    background: rgba(79, 172, 254, 0.2);
    border-color: rgba(79, 172, 254, 0.4);
}

.inventory-filter.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-dark);
}

.filter-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.inventory-filter.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.inventory-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.inventory-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.inventory-empty h3 {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.inventory-empty p {
    margin-bottom: 25px;
}

/* Inventory Item Card */
.inventory-item {
    background: linear-gradient(145deg, #0d0d20 0%, #0a0a1a 100%);
    border: 1px solid rgba(79, 172, 254, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.inventory-item:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 172, 254, 0.3);
}

.inventory-item.rarity-common { border-top: 3px solid #9e9e9e; }
.inventory-item.rarity-uncommon { border-top: 3px solid #2196f3; }
.inventory-item.rarity-rare { border-top: 3px solid #9c27b0; }
.inventory-item.rarity-epic { border-top: 3px solid #e91e63; }
.inventory-item.rarity-legendary { border-top: 3px solid #ffd700; }

.inventory-item-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.inventory-item-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.inventory-item-image i {
    font-size: 3rem;
    color: var(--text-muted);
}

.inventory-item-content {
    padding: 15px;
}

.inventory-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inventory-item-rarity {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.inventory-item-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.inventory-item-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.inventory-item-status.claimable {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.inventory-item-status.claimed {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.inventory-item-status.paid {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.inventory-item-status.coins {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.btn-claim {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.btn-claim:disabled {
    background: rgba(79, 172, 254, 0.2);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

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

    .profile-tab {
        padding: 14px 10px;
        font-size: 0.8rem;
    }

    .profile-tab span {
        display: none;
    }

    .profile-content {
        padding: 20px;
    }

    .setting-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

/* ===== CLAIM SUCCESS MODAL ===== */
.modal-claim-success {
    max-width: 450px;
    width: 90%;
}

.claim-success-content {
    padding: 30px;
    text-align: center;
}

.claim-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.5s ease;
}

.claim-success-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.claim-success-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.claim-success-content > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.claim-steps {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.claim-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.claim-steps li:not(:last-child) {
    border-bottom: 1px solid rgba(88, 101, 242, 0.15);
}

.claim-steps li i {
    width: 24px;
    color: #5865F2;
    font-size: 1rem;
}

.claim-steps li strong {
    color: #5865F2;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.btn-discord i {
    font-size: 1.2rem;
}

/* Claim Modal Buttons Container */
.claim-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 25px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .claim-modal-buttons {
        flex-direction: column;
    }

    .claim-modal-buttons .btn {
        width: 100%;
    }
}

/* ===== GIFT CODE SECTION ===== */
.gift-code-section {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

.gift-code-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gift-code-section h3 i {
    color: var(--primary);
}

.giftcode-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.giftcode-input-group {
    display: flex;
    gap: 10px;
}

.giftcode-input-group input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.giftcode-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.giftcode-input-group input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
}

.giftcode-input-group .btn {
    padding: 12px 20px;
    white-space: nowrap;
}

#giftcode-message {
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

#giftcode-message.show {
    display: block;
}

#giftcode-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

#giftcode-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@media (max-width: 480px) {
    .giftcode-input-group {
        flex-direction: column;
    }

    .giftcode-input-group .btn {
        width: 100%;
    }
}
