.profil-container {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.profil-card {
    background: #272727;
    border-radius: 1.125rem;
    box-shadow: 0 0.5rem 2rem 0 rgba(0,0,0,0.37);
    padding: 2.5rem;
    width: 100%;
    max-width: 550px;
}

.profil-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #3a3a3a;
}

.profil-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profil-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #06C6A4;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #06C6A4;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    border: 2px solid #272727;
    transition: background 0.2s;
}

.avatar-upload-btn:hover {
    background: #06b292;
}

.profil-info h2 {
    color: #fff;
    margin: 0 0 0.3rem 0;
    font-size: 1.4rem;
    font-family: 'Roboto', Arial, sans-serif;
}

.profil-email {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 0 0.3rem 0;
}

.profil-meta {
    color: #666;
    font-size: 0.8rem;
    margin: 0;
}

.profil-badge {
    display: inline-block;
    background: #06C6A4;
    color: #000;
    padding: 0.2rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

.profil-section {
    margin-bottom: 1.5rem;
}

.profil-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    font-family: 'Roboto', Arial, sans-serif;
}

.profil-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profil-form input {
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    border: none;
    background: #494949;
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 0.08rem 0.35rem rgba(0,0,0,0.35);
    transition: background 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', Arial, sans-serif;
}

.profil-form input::placeholder {
    color: #ABABAB;
}

.profil-form input:focus {
    background: #505050;
    box-shadow: 0 0 0 0.14rem #06C6A4;
}

.profil-form button {
    padding: 0.75rem 0;
    border-radius: 0.5rem;
    border: none;
    background: #06C6A4;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Roboto', Arial, sans-serif;
}

.profil-form button:hover {
    background: #06b292;
}

/* Avatar Upload Popup */
.avatar-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(24,26,32,0.85);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-popup-content {
    background: #272727;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    max-width: 350px;
    width: 90%;
}

.avatar-popup-content h3 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-family: 'Roboto', Arial, sans-serif;
}

.avatar-popup-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #06C6A4;
    margin-bottom: 1.5rem;
}

.avatar-popup-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: #06C6A4;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-family: 'Roboto', Arial, sans-serif;
}

.avatar-popup-btn:hover {
    background: #06b292;
}

.avatar-popup-cancel {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: #494949;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Roboto', Arial, sans-serif;
}

.avatar-popup-cancel:hover {
    background: #555;
}

@media (max-width: 600px) {
    .profil-header {
        flex-direction: column;
        text-align: center;
    }
    .profil-card {
        padding: 1.5rem;
    }
}

/* === Support-Ticket-Section === */
.support-intro {
    color: #bbb;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.2rem;
}
.btn-discord {
    background: linear-gradient(135deg, #06C6A4, #05a88b);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    font-weight: 600;
    transition: transform 0.1s, box-shadow 0.1s;
    display: inline-block;
}
.btn-discord:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6,198,164,0.4);
}
.btn-link-discord {
    background: rgba(6,198,164,0.15);
    border: 1px solid rgba(6,198,164,0.4);
    color: #c4cdff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
}
.btn-link-discord:hover { background: rgba(6,198,164,0.3); }
.discord-linked {
    color: #9fd09f;
    font-size: 0.9rem;
    font-weight: 500;
}
.support-empty {
    color: #999;
    font-style: italic;
    padding: 1rem 0;
}
.tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.tickets-table th, .tickets-table td {
    padding: 0.55rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tickets-table th {
    color: #999;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tickets-table tr.ticket-status-closed td,
.tickets-table tr.ticket-status-auto_resolved td {
    opacity: 0.55;
}
.prio-badge, .status-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.prio-niedrig   { background: rgba(150,150,150,0.2); color: #bbb; }
.prio-normal    { background: rgba(88,166,255,0.2);  color: #8fb8ff; }
.prio-hoch      { background: rgba(240,165,80,0.2);  color: #f0a550; }
.prio-kritisch  { background: rgba(240,80,80,0.25);  color: #ff8080; }

.status-open          { background: rgba(6,198,164,0.25); color: #08dbb5; }
.status-in_progress   { background: rgba(88,166,255,0.2);  color: #8fb8ff; }
.status-waiting_user  { background: rgba(240,165,80,0.2);  color: #f0a550; }
.status-auto_resolved { background: rgba(130,180,130,0.2); color: #9fd09f; }
.status-closed        { background: rgba(140,140,140,0.2); color: #bbb; }
