/**
 * ╔════════════════════════════════════════════════════════════════════════╗
 * ║  PF_profile.css – Profil Styles                                        ║
 * ║  Version: 1.1.8                                                        ║
 * ║  Autor: Franz PFuisi                                                   ║
 * ║  PFWS-System: 1.4.1.3.34                                               ║
 * ║  Erstellt: 2025-10-14 - 00:00 (CET)                                    ║
 * ║  Updated:  2026-07-04 - 00:00 (CET)                                   ║
 * ║                                                                        ║
 * ║  Beschreibung:                                                         ║
 * ║  Hauptstyles fuer PF_profile (Layout, Komponenten, Responsive UI).     ║
 * ╚════════════════════════════════════════════════════════════════════════╝
 */

/* ═══════════════════════════════════════════════════════════════
    CSS VARIABLES & THEME (Pink/Blue)
   ═══════════════════════════════════════════════════════════════ */
:root {
    --pf-profile-pink: #e94796;
    --pf-profile-blue: #667eea;
    --pf-profile-dark-pink: #d63384;
    --pf-profile-dark-blue: #5568d3;
    --pf-profile-light-pink: #fce4ec;
    --pf-profile-light-blue: #e3f2fd;
    --pf-profile-gradient: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    --pf-profile-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --pf-profile-shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.pf-profile-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.pf-profile-svg-icon svg {
    width: 100%;
    height: 100%;
}

.pf-profile-svg-icon-inline {
    margin-right: 0.45rem;
}

/* ═══════════════════════════════════════════════════════════════
   🏗️ CORE LAYOUT STRUCTURE
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-layout-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pf-profile-topnav-spacer {
    height: var(--pf-dashboard-topnav-height, 60px);
    margin-top: 0;
    width: 100%;
    pointer-events: none;
    flex-shrink: 0;
}

.pf-profile-box {
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.pf-profile-box.overlay-mode {
    width: 90vw;
    max-width: 1400px;
    height: 95vh;
    max-height: 95vh;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px auto;
    padding: 0;
}

.pf-profile-module {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════════
   📋 HEADER STYLES - Pink/Blue Gradient
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    background-size: 400% 400%;
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: pf-profile-gradient-shift 15s ease infinite;
    flex-shrink: 0;
}

@keyframes pf-profile-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pf-profile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.pf-profile-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pf-profile-user-bubu-box {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.pf-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    cursor: grab;
    transition: transform 0.2s;
}

.pf-drag-handle:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.pf-profile-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: inherit;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.pf-profile-icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.pf-profile-icon {
    font-size: 20px;
}

.pf-profile-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-profile-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.pf-profile-meta {
    font-size: 12px;
    opacity: 0.9;
}

.pf-profile-user {
    font-size: 14px;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pf-profile-user-separator {
    opacity: 0.65;
}

.pf-profile-user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.pf-profile-user-pill-badge {
    gap: 0;
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
}

.pf-profile-badge-svg-icon {
    display: inline-flex;
    width: 0.98rem;
    height: 0.98rem;
    flex: 0 0 auto;
}

.pf-profile-badge-svg-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pf-profile-user-pill-guest {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
}

.pf-profile-user-pill-muted {
    background: rgba(102, 126, 234, 0.12);
    color: #4457b8;
    border: 1px solid rgba(102, 126, 234, 0.18);
}

.pf-profile-user-pill-bubu {
    gap: 0.36rem;
    border: 1px solid rgba(255, 99, 132, 0.3);
    background: linear-gradient(135deg, rgba(255, 234, 241, 0.95) 0%, rgba(235, 241, 255, 0.96) 100%);
    color: #8a2d58;
    padding: 0.22rem 0.52rem;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pf-profile-user-pill-bubu:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(233, 71, 150, 0.16);
}

.pf-profile-user-pill-bubu-icon {
    font-size: 0.84rem;
    line-height: 1;
}

.pf-profile-user-pill-bubu-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.pf-profile-user-pill-verified {
    background: rgba(56, 132, 255, 0.14);
    color: #1f64d6;
    border: 1px solid rgba(56, 132, 255, 0.24);
}

.pf-profile-user-pill-customer {
    background: rgba(34, 197, 94, 0.14);
    color: #1f8f4f;
    border: 1px solid rgba(34, 197, 94, 0.24);
}

.pf-profile-user-pill-disabled {
    background: rgba(148, 163, 184, 0.16);
    color: #6b7280;
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.pf-profile-user-pill-disabled .pf-profile-badge-svg-icon {
    filter: grayscale(1) saturate(0) opacity(0.45);
}

.pf-profile-user-pill-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(31, 100, 214, 0.12);
}

.pf-profile-user-pill-customer:hover {
    box-shadow: 0 4px 10px rgba(31, 143, 79, 0.12);
}

.pf-profile-user-pill-disabled:hover {
    box-shadow: 0 4px 10px rgba(107, 114, 128, 0.12);
}

.pf-profile-user-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.pf-profile-bubu-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.36);
    background: transparent;
    color: #fff;
    border-radius: 0;
    padding: 0.22rem 0.05rem 0.22rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.pf-profile-bubu-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    border-radius: 999px;
}

.pf-profile-bubu-pill:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.pf-profile-bubu-cherry,
.pf-profile-bubu-icon {
    width: 1rem;
    height: 1rem;
    font-size: 1rem;
    line-height: 1;
}

.pf-profile-bubu-value {
    font-variant-numeric: tabular-nums;
}

.pf-profile-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pf-profile-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.pf-profile-btn-dashboard {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pf-profile-dash-link {
    gap: 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.pf-profile-dash-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.pf-profile-dash-svg {
    width: 1.05rem;
    height: 1.05rem;
}

.pf-profile-dash-logo {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
    transform-origin: center;
    animation: pfProfileDashLogoFloat 3.8s ease-in-out infinite;
}

.pf-profile-dash-label {
    line-height: 1;
}

.pf-profile-assistive-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pf-profile-btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Overlay-Modus: Dashboard-Button wird zum Schließen-Button */
.pf-profile-box.overlay-mode .pf-profile-btn-dashboard .pf-profile-dash-icon,
.pf-profile-box.overlay-mode .pf-profile-btn-dashboard .pf-profile-dash-label {
    display: none;
}
.pf-profile-box.overlay-mode .pf-profile-btn-dashboard {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    position: relative;
}
.pf-profile-box.overlay-mode .pf-profile-btn-dashboard::after {
    content: '\00D7';
    display: block;
    line-height: 1;
    font-weight: 400;
}

.pf-profile-dash-link:hover .pf-profile-dash-logo {
    animation: pfProfileDashLogoSpin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

@keyframes pfProfileDashLogoFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    50% {
        transform: translateY(-1px) scale(1.06);
        filter: drop-shadow(0 6px 10px rgba(255, 255, 255, 0.18));
    }
}

@keyframes pfProfileDashLogoSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    55% {
        transform: rotate(18deg) scale(1.12);
    }
    100% {
        transform: rotate(0deg) scale(1.04);
    }
}

/* ═══════════════════════════════════════════════════════════════
   📋 INFO SECTION (Togglable)
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-info-section {
    background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
    border-bottom: 3px solid #e94796;
    padding: 24px;
    flex-shrink: 0;
}

.pf-profile-info-details {
    max-width: 100%;
}

.pf-profile-info-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.pf-profile-info-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pf-profile-info-description label,
.pf-profile-info-description .pf-profile-info-label {
    font-weight: 600;
    color: #e94796;
    font-size: 14px;
}

.pf-profile-desc {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #e94796;
    font-size: 14px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

.pf-profile-info-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pf-profile-info-block {
    background: white;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pf-profile-info-block label,
.pf-profile-info-block .pf-profile-info-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.pf-profile-value {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* ═══════════════════════════════════════════════════════════════
   📚 BODY / CONTENT AREA - NO PADDING (Tabs+Content inside)
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f8f9fa;
}

/* ═══════════════════════════════════════════════════════════════
   🗂️ TAB NAVIGATION (Landingpagegenerator Pattern - Pink/Blue)
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-left: 4px solid var(--pf-profile-pink);
    border-right: 4px solid var(--pf-profile-blue);
    padding: 10px 20px 0 20px;
    margin-top: 0;
}

/* Border-Bottom mit Inset (nicht über seitliche Borders) */
.pf-profile-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.pf-profile-tabs::-webkit-scrollbar {
    display: none;
}

.pf-profile-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pf-profile-tab:hover {
    color: var(--pf-profile-pink);
}

.pf-profile-tab.active {
    color: var(--pf-profile-pink);
    background: #fff;
}

/* Active Tab: Border oben, links, rechts - KEIN Border unten */
.pf-profile-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    right: -1px;
    bottom: 0;
    border-top: 2px solid var(--pf-profile-pink);
    border-left: 1px solid var(--pf-profile-pink);
    border-right: 1px solid var(--pf-profile-blue);
    border-bottom: 2px solid #fff;
    z-index: -1;
}

/* Active Tab Text mit Gradient */
.pf-profile-tab.active {
    background: var(--pf-profile-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════
   📦 CONTENT WRAPPER (with Borders like Landingpagegenerator)
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    min-height: 0;
    background: #f8f9fa;
    border-left: 4px solid var(--pf-profile-pink);
    border-right: 4px solid var(--pf-profile-blue);
}

.pf-profile-tab-content::-webkit-scrollbar {
    width: 12px;
}

.pf-profile-tab-content::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.pf-profile-tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e94796, #667eea);
    border-radius: 6px;
}

.pf-profile-tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d63384, #5568d3);
}

.pf-profile-tab-pane {
    display: none;
}

.pf-profile-tab-pane.active {
    display: block;
    animation: pf-profile-fade-in 0.3s ease-in;
}

@keyframes pf-profile-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   💡 WELCOME SECTION
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-welcome,
.pf-profile-about-me {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #e94796;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.pf-profile-welcome h2,
.pf-profile-about-me h2 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 24px;
}

.pf-profile-welcome p,
.pf-profile-about-me p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   ℹ️ INFO BANNER (Gast-Hinweis)
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-info-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
    padding: 20px 24px;
    border-radius: 8px;
    border-left: 4px solid #e94796;
    margin-bottom: 24px;
    position: relative;
}

.pf-profile-info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pf-profile-info-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.pf-profile-info-roles {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.pf-profile-info-role-chip {
    padding: 6px 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.94);
}

.pf-profile-info-role-chip .pf-profile-svg-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.pf-profile-info-banner .pf-profile-user-pill-guest {
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    border: none;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.18);
}

.pf-profile-info-text strong {
    color: #e94796;
}

@media (max-width: 900px) {
    .pf-profile-info-banner {
        flex-wrap: wrap;
    }

    .pf-profile-info-roles {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

.pf-profile-welcome-support {
    margin-bottom: 18px;
}

.pf-profile-support-section {
    margin-bottom: 28px;
    padding: 22px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(233, 71, 150, 0.06) 0%, rgba(102, 126, 234, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.12);
    box-shadow: 0 10px 28px rgba(102, 126, 234, 0.08);
}

.pf-profile-support-hero {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.pf-profile-support-hero-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.pf-profile-support-hero-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #24304f;
}

.pf-profile-support-hero-copy p {
    margin: 0;
    color: #5f6b85;
    line-height: 1.5;
}

.pf-profile-support-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(102, 126, 234, 0.14);
    color: #32405f;
    font-size: 13px;
    font-weight: 600;
}

.pf-profile-support-admin-box {
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
}

.pf-profile-support-admin-box h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.pf-profile-support-admin-row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(160px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.pf-profile-support-admin-row label {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
}

.pf-profile-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pf-profile-support-card {
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.12);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pf-profile-support-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(102, 126, 234, 0.12);
}

.pf-profile-support-card.is-active {
    border-color: rgba(233, 71, 150, 0.38);
    box-shadow: 0 14px 32px rgba(233, 71, 150, 0.14);
}

.pf-profile-support-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(233, 71, 150, 0.14) 0%, rgba(102, 126, 234, 0.14) 100%);
    color: #4457b8;
}

.pf-profile-support-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2a44;
}

.pf-profile-support-card-level {
    margin-top: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7b879f;
}

.pf-profile-support-card-copy {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5f6b85;
}

.pf-profile-license-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(233, 71, 150, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.pf-profile-license-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pf-profile-license-filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.02em;
}

.pf-profile-license-result {
    margin: 0 0 10px;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.pf-profile-license-card.is-hidden {
    display: none;
}

.pf-profile-license-orphan-accordion {
    margin: 0 0 12px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    background: rgba(254, 242, 242, 0.75);
}

.pf-profile-license-orphan-accordion > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #8d1d1d;
}

.pf-profile-license-orphan-body {
    padding: 0 12px 10px;
}

.pf-profile-license-orphan-body p {
    margin: 0 0 8px;
    font-size: 12px;
    color: #7f1d1d;
}

.pf-profile-license-orphan-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.pf-profile-license-orphan-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.pf-profile-license-orphan-module {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #7f1d1d;
}

.pf-profile-license-orphan-level {
    font-size: 11px;
    font-weight: 700;
    color: #7f1d1d;
}

.pf-profile-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.pf-profile-link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   👤 ABOUT TAB: SOCIAL HERO + VIEW/EDIT
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-about-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pf-profile-about-shell-locked .pf-profile-about-hero,
.pf-profile-about-shell-locked .pf-profile-about-view {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.pf-profile-about-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.18);
    background:
        radial-gradient(circle at 88% -10%, rgba(233, 71, 150, 0.26) 0%, rgba(233, 71, 150, 0) 55%),
        radial-gradient(circle at 10% 120%, rgba(102, 126, 234, 0.22) 0%, rgba(102, 126, 234, 0) 50%),
        linear-gradient(145deg, #ffffff 0%, #f7f9ff 56%, #fdf2f8 100%);
    box-shadow: 0 16px 30px rgba(26, 39, 84, 0.08);
    margin-bottom: 14px;
}

.pf-profile-about-hero::after {
    content: '';
    position: absolute;
    right: -44px;
    top: -44px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid rgba(233, 71, 150, 0.2);
    pointer-events: none;
}

.pf-profile-about-hero-avatar {
    display: flex;
    align-items: center;
}

.pf-profile-about-hero-avatar .pf-profile-avatar-display {
    width: 126px;
    height: 126px;
    margin-bottom: 0;
}

.pf-profile-about-hero-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-profile-about-hero-headline h3 {
    margin: 0;
    color: #21293f;
    font-size: 1.62rem;
    letter-spacing: -0.02em;
}

.pf-profile-about-hero-summary {
    margin: 0;
    color: #3c4663;
    line-height: 1.65;
    max-width: 80ch;
}

.pf-profile-about-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pf-profile-about-view .pf-profile-card p {
    margin: 0 0 0.6rem;
    color: #364156;
    line-height: 1.5;
}

.pf-profile-about-view .pf-profile-card p:last-child {
    margin-bottom: 0;
}

.pf-profile-about-bio-copy {
    color: #364156;
    line-height: 1.7;
    font-size: 0.98rem;
}

.pf-profile-about-edit-note {
    margin: 0 0 10px;
    color: #4a5878;
    font-size: 0.92rem;
}

.pf-profile-about-edit[hidden],
.pf-profile-about-view[hidden] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   🃏 CARD SYSTEM (Flex Grid)
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.pf-profile-content-grid-about {
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
}

.pf-profile-content-grid-about .pf-profile-card-personal {
    grid-column: 1;
    grid-row: 1;
}

.pf-profile-content-grid-about .pf-profile-card-about {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.pf-profile-content-grid-about .pf-profile-card-social {
    grid-column: 1;
    grid-row: 2;
}

.pf-profile-content-grid-about .pf-profile-card-contact-compact {
    grid-column: 1;
    grid-row: 3;
}

.pf-profile-content-grid-about .pf-profile-card-contact-private {
    grid-column: 1;
    grid-row: 4;
}

.pf-profile-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    /* Premium Gradient Border wie Landingpagegenerator */
    background-image: 
        linear-gradient(white, white),
        linear-gradient(135deg, rgba(233, 71, 150, 0.3) 0%, rgba(102, 126, 234, 0.3) 50%, rgba(233, 71, 150, 0.3) 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pf-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pf-profile-pink) 0%, var(--pf-profile-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pf-profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(233, 71, 150, 0.2);
}

.pf-profile-card:hover::before {
    opacity: 1;
}

.pf-profile-card h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.pf-profile-card-wide {
    grid-column: 1 / -1;
}

.pf-profile-card-about {
    min-width: 0;
}

.pf-profile-card-compact {
    padding: 14px 16px;
}

.pf-profile-card-compact h3,
.pf-profile-card-social h3,
.pf-profile-card-contact-compact h3,
.pf-profile-card-contact-private h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.pf-profile-compact-list {
    display: grid;
    gap: 8px;
}

.pf-profile-compact-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(233, 71, 150, 0.04) 100%);
}

.pf-profile-compact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #2f3e62;
    font-size: 0.78rem;
    font-weight: 700;
}

.pf-profile-compact-label .pf-profile-svg-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.pf-profile-compact-value {
    min-width: 0;
    color: #364156;
    font-size: 0.86rem;
    line-height: 1.4;
    word-break: break-word;
}

.pf-profile-compact-value.is-empty {
    color: #8b95ab;
    font-style: italic;
}

.pf-profile-compact-link {
    color: #3c59c6;
    text-decoration: none;
    font-weight: 600;
}

.pf-profile-compact-link:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   👤 AVATAR SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pf-profile-avatar-display {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #e94796 0%, #667eea 100%) border-box;
    box-shadow: 0 4px 20px rgba(233, 71, 150, 0.2);
    transition: all 0.3s ease;
}

.pf-profile-avatar-display:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(233, 71, 150, 0.3);
}

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

/* 🎨 2025 Social Media Style: Moderne Initialen */
.pf-profile-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    color: white;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   📝 FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-form-group {
    margin-bottom: 16px;
}

.pf-profile-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-size: 13px;
    font-weight: 600;
}

.pf-profile-input,
.pf-profile-textarea,
.pf-profile-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.pf-profile-input:focus,
.pf-profile-textarea:focus,
.pf-profile-select:focus {
    outline: none;
    border-color: #e94796;
    box-shadow: 0 0 0 3px rgba(233, 71, 150, 0.1);
}

.pf-profile-input:read-only,
.pf-profile-textarea:read-only,
.pf-profile-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.pf-profile-textarea {
    resize: vertical;
    min-height: 350px;
}

.pf-profile-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.pf-profile-form-row-compact {
    gap: 10px;
    margin-bottom: 10px;
}

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

.pf-profile-form-row-compact .pf-profile-input,
.pf-profile-form-row-compact .pf-profile-textarea {
    padding: 7px 9px;
    font-size: 0.85rem;
}

.pf-profile-form-group-full {
    grid-column: 1 / -1;
}

.pf-profile-textarea.pf-profile-textarea-compact {
    min-height: 74px;
}

@media (max-width: 820px) {
    .pf-profile-about-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pf-profile-about-hero-avatar {
        justify-content: center;
    }

    .pf-profile-about-hero-main {
        align-items: center;
        text-align: center;
    }

    .pf-profile-about-hero-main .pf-profile-user-pills,
    .pf-profile-about-hero-actions {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   🎨 BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-btn-primary {
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    color: white;
}

.pf-profile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 71, 150, 0.3);
}

.pf-profile-btn-success {
    background: #2ecc71;
    color: white;
}

.pf-profile-btn-success:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.pf-profile-btn-secondary {
    background: #eef2ff;
    color: #4457b8;
    border: 1px solid rgba(102, 126, 234, 0.24);
}

.pf-profile-btn-secondary:hover {
    background: #e2e8ff;
    transform: translateY(-2px);
}

.pf-profile-btn-danger {
    background: #fff1f2;
    color: #c0395f;
    border: 1px solid rgba(233, 71, 150, 0.22);
}

.pf-profile-btn-danger:hover {
    background: #ffe1e8;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   ⚙️ PREFERENCES PANEL
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-pref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.pf-profile-pref-item,
.pf-profile-pref-toggle {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.06);
}

.pf-profile-pref-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #2d3e73;
}

.pf-profile-pref-description {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.pf-profile-pref-toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    cursor: pointer;
}

.pf-profile-pref-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pf-profile-pref-toggle-slider {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #d7def7;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.14);
}

.pf-profile-pref-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.pf-profile-pref-checkbox:checked + .pf-profile-pref-toggle-slider {
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
}

.pf-profile-pref-checkbox:checked + .pf-profile-pref-toggle-slider::before {
    transform: translateX(20px);
}

.pf-profile-pref-toggle-copy strong {
    display: block;
    font-size: 14px;
    color: #1f2a44;
}

.pf-profile-pref-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.pf-profile-pref-dirtyhint,
.pf-profile-pref-status {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.pf-profile-pref-dirtyhint {
    background: #f8fafc;
    color: #475467;
}

.pf-profile-pref-dirtyhint.is-warning {
    background: #fff7ed;
    color: #b45309;
}

.pf-profile-pref-dirtyhint.is-error,
.pf-profile-pref-status.is-error {
    background: #fff1f2;
    color: #be123c;
}

.pf-profile-pref-dirtyhint.is-success,
.pf-profile-pref-status.is-success {
    background: #ecfdf3;
    color: #027a48;
}

#pf-profile-iot-token,
#pf-profile-iot-device-id,
#pf-profile-iot-linked-display-token {
    font-family: Consolas, 'Courier New', monospace;
    letter-spacing: 0.01em;
}

#pf-profile-iot-display-shortcuts {
    min-height: 42px;
}

/* ═══════════════════════════════════════════════════════════════
   🖼️ AVATAR MODAL
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pf-profile-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pf-profile-modal-header {
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pf-profile-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.pf-profile-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pf-profile-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.pf-profile-modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: #7b8de7 #edf1ff;
}

.pf-profile-modal-body::-webkit-scrollbar {
    width: 10px;
}

.pf-profile-modal-body::-webkit-scrollbar-track {
    background: #edf1ff;
    border-radius: 999px;
}

.pf-profile-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e94796 0%, #667eea 100%);
    border-radius: 999px;
    border: 2px solid #edf1ff;
}

.pf-profile-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d63384 0%, #5568d3 100%);
}

.pf-profile-bubu-modal-content {
    max-width: 640px;
}

.pf-profile-style-modal-content {
    max-width: 720px;
}

.pf-profile-style-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.85rem;
}

.pf-profile-style-control {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid #e7ebf6;
    border-radius: 12px;
    background: #fbfcff;
    color: #27324a;
    font-weight: 600;
}

.pf-profile-style-control input[type="color"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7def4;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.pf-profile-style-range-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pf-profile-style-range-row input[type="range"] {
    width: 100%;
}

.pf-profile-style-range-row output {
    min-width: 46px;
    text-align: right;
    font-size: 0.82rem;
    color: #5b6684;
    font-weight: 700;
}

.pf-profile-style-editor-note {
    margin: 0.9rem 0;
    padding: 0.75rem;
    border-radius: 10px;
    background: #f6f8ff;
    border: 1px solid #e1e7ff;
    color: #445173;
    font-size: 0.88rem;
}

.pf-profile-style-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.pf-profile-about-shell {
    --pf-profile-about-accent: #667eea;
    --pf-profile-about-card-bg: #ffffff;
    --pf-profile-about-hero-bg: #ffffff;
    --pf-profile-about-radius: 14px;
}

.pf-profile-about-shell .pf-profile-about-hero {
    background: var(--pf-profile-about-hero-bg);
    border: 1px solid var(--pf-profile-about-accent);
    border-radius: var(--pf-profile-about-radius);
}

.pf-profile-about-shell .pf-profile-card {
    background: var(--pf-profile-about-card-bg);
    border-radius: var(--pf-profile-about-radius);
}

.pf-profile-about-shell .pf-profile-card h3,
.pf-profile-about-shell .pf-profile-about-hero h3 {
    color: var(--pf-profile-about-accent);
}

.pf-profile-about-shell .pf-profile-btn-primary {
    background: var(--pf-profile-about-accent);
}

.pf-profile-bubu-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.pf-profile-bubu-total {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e94796;
    line-height: 1;
}

.pf-profile-bubu-caption {
    color: #56627a;
    font-size: 0.9rem;
}

.pf-profile-bubu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pf-profile-bubu-stat {
    border: 1px solid #e8eaf1;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    background: #fafbff;
}

.pf-profile-bubu-stat-label {
    font-size: 0.76rem;
    color: #62708b;
    margin-bottom: 0.2rem;
}

.pf-profile-bubu-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #27324a;
    font-variant-numeric: tabular-nums;
}

.pf-profile-bubu-next {
    background: linear-gradient(135deg, #fef2f8 0%, #eef2ff 100%);
    border: 1px solid #e3e7fb;
    border-radius: 12px;
    padding: 0.8rem;
}

.pf-profile-bubu-next-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.45rem;
    font-size: 0.86rem;
    color: #4a5570;
}

.pf-profile-bubu-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

.pf-profile-bubu-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e94796 0%, #667eea 100%);
    transition: width 0.25s ease;
}

.pf-profile-bubu-breakdown {
    margin-top: 1rem;
}

.pf-profile-bubu-breakdown h4,
.pf-profile-bubu-breakdown h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #27324a;
}

.pf-profile-bubu-table-wrap {
    border: 1px solid #e7ebf6;
    border-radius: 10px;
    overflow: auto;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #8ca0ef #eef2ff;
}

.pf-profile-bubu-table-wrap::-webkit-scrollbar {
    height: 9px;
    width: 9px;
}

.pf-profile-bubu-table-wrap::-webkit-scrollbar-track {
    background: #eef2ff;
}

.pf-profile-bubu-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e08fca 0%, #7b8de7 100%);
    border-radius: 999px;
}

.pf-profile-bubu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    background: #ffffff;
}

.pf-profile-bubu-table thead th {
    text-align: left;
    padding: 0.54rem 0.62rem;
    color: #4a5875;
    background: #edf2ff;
    border-bottom: 1px solid #d7def3;
    border-right: 1px solid #dfe5f5;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.pf-profile-bubu-table thead th:last-child {
    border-right: none;
}

.pf-profile-bubu-table tbody tr {
    background: #ffffff;
}

.pf-profile-bubu-table tbody tr:nth-child(even) {
    background: #f8faff;
}

.pf-profile-bubu-table tbody tr:hover {
    background: #eef2ff;
}

.pf-profile-bubu-table tbody td {
    padding: 0.5rem 0.62rem;
    border-bottom: 1px solid #e7ecf9;
    border-right: 1px solid #edf1fb;
    color: #2a3550;
    background: transparent;
    vertical-align: top;
}

.pf-profile-bubu-table tbody td:last-child {
    border-right: none;
}

.pf-profile-bubu-table tbody tr:last-child td {
    border-bottom: none;
}

.pf-profile-bubu-recent ul,
#pf-profile-bubu-recent-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#pf-profile-bubu-recent-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid #eceff8;
    border-radius: 9px;
    background: #fdfdff;
    font-size: 0.82rem;
}

.pf-profile-bubu-recent-main {
    color: #28314b;
}

.pf-profile-bubu-recent-side {
    color: #5e6982;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pf-profile-bubu-admin-panel {
    margin-top: 1.2rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #d4dcf2;
}

.pf-profile-bubu-admin-filters {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
    gap: 0.55rem;
    align-items: end;
    margin-bottom: 0.8rem;
}

.pf-profile-bubu-admin-filter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: #586685;
    font-weight: 600;
}

.pf-profile-bubu-admin-filter select {
    border: 1px solid #d9e0f4;
    border-radius: 10px;
    background: #ffffff;
    color: #27324a;
    font-size: 0.84rem;
    padding: 0.45rem 0.55rem;
}

.pf-profile-bubu-admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.8rem;
}

.pf-profile-admin-bubu-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pf-profile-admin-bubu-note {
    margin: 0;
    color: #4d5a75;
    font-size: 0.88rem;
}

.pf-profile-admin-bubu-filters {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto auto;
    gap: 0.65rem;
    align-items: end;
}

.pf-profile-admin-bubu-filter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.79rem;
    color: #5c6884;
    font-weight: 600;
}

.pf-profile-admin-bubu-filter .pf-profile-select {
    margin-top: 0;
}

.pf-profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.pf-profile-avatar-option {
    aspect-ratio: 1;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
}

.pf-profile-avatar-option:hover {
    border-color: #e94796;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(233, 71, 150, 0.2);
}

.pf-profile-avatar-option img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

.pf-profile-avatar-option span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.pf-profile-avatar-upload {
    background: linear-gradient(135deg, #fce4ec 0%, #e3f2fd 100%);
    border-style: dashed;
}

.pf-profile-avatar-upload span:first-child {
    font-size: 32px;
}

/* ═══════════════════════════════════════════════════════════════
   🦶 FOOTER
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: linear-gradient(135deg, #e94796 0%, #667eea 100%);
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.pf-profile-footer-left,
.pf-profile-footer-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pf-profile-shimmer-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.pf-profile-shimmer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════
   🎫 LICENSES TAB
   ═══════════════════════════════════════════════════════════════ */

.pf-profile-license-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.pf-profile-license-stat {
    background: linear-gradient(135deg, rgba(233, 71, 150, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pf-profile-license-stat::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--pf-profile-pink) 0%, var(--pf-profile-blue) 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.pf-profile-license-stat-value {
    font-size: 28px;
    font-weight: 700;
    background: var(--pf-profile-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.pf-profile-license-stat-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-profile-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.pf-profile-license-card {
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pf-profile-license-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pf-profile-pink) 0%, var(--pf-profile-blue) 100%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.pf-profile-license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.pf-profile-license-card:hover::before {
    opacity: 1;
}

/* License Level Colors */
.pf-profile-license-card.license-registered {
    opacity: 0.75;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
}

.pf-profile-license-card.license-registered::before {
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.pf-profile-license-card.license-read::before {
    background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}

.pf-profile-license-card.license-edit::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.pf-profile-license-card.license-power::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.pf-profile-license-card.license-pro::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.pf-profile-license-card.license-admin::before {
    background: linear-gradient(90deg, var(--pf-profile-pink) 0%, var(--pf-profile-blue) 100%);
}

.pf-profile-license-header {
    padding: 10px 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.pf-profile-license-icon {
    font-size: 20px;
    line-height: 1;
    filter: none;
}

.pf-profile-license-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    line-height: 1.3;
}

.pf-profile-license-body {
    padding: 8px 10px;
    flex: 1;
}

.pf-profile-license-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-registered .pf-profile-license-badge {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    border: 1px dashed #cbd5e1;
}

.license-read .pf-profile-license-badge {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.license-edit .pf-profile-license-badge {
    background: linear-gradient(135deg, #ddd6fe 0%, #c4b5fd 100%);
    color: #5b21b6;
}

.license-power .pf-profile-license-badge {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #6b21a8;
}

.license-pro .pf-profile-license-badge {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #92400e;
}

.license-admin .pf-profile-license-badge {
    background: linear-gradient(135deg, rgba(233, 71, 150, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
    color: var(--pf-profile-pink);
    border: 2px solid var(--pf-profile-pink);
}

.pf-profile-license-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pf-profile-license-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #f5f5f5;
}

.pf-profile-license-detail:last-child {
    border-bottom: none;
}

.pf-profile-license-detail-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.pf-profile-license-detail-value {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 600;
}

.pf-profile-license-footer {
    padding: 8px 10px;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
}

.pf-profile-license-btn {
    display: block;
    width: 100%;
    padding: 7px 10px;
    background: linear-gradient(135deg, var(--pf-profile-pink) 0%, var(--pf-profile-blue) 100%);
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 71, 150, 0.2);
}

.pf-profile-license-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(233, 71, 150, 0.26);
    text-decoration: none;
    color: white;
}

.pf-profile-license-slug {
    display: block;
    font-size: 11px;
    color: #999;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.pf-profile-license-footer-locked {
    background: linear-gradient(to bottom, #fef2f2 0%, #fee2e2 100%);
}

.pf-profile-license-info {
    display: block;
    font-size: 11px;
    color: #991b1b;
    text-align: center;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .pf-profile-info-layout {
        grid-template-columns: 1fr;
    }
    
    .pf-profile-info-meta {
        grid-template-columns: 1fr;
    }
    
    .pf-profile-header {
        padding: 12px 14px;
        gap: 12px;
    }

    .pf-profile-header-left,
    .pf-profile-header-right {
        gap: 8px;
    }

    .pf-profile-user-name,
    .pf-profile-user-separator,
    .pf-profile-user-license,
    .pf-profile-dash-label,
    .pf-profile-header .pf-profile-user-pill {
        display: none;
    }

    .pf-profile-dash-link,
    .pf-profile-user {
        gap: 0;
    }

    .pf-profile-bubu-pill {
        padding: 0.3rem 0.5rem;
    }

    .pf-profile-bubu-value {
        min-width: 2ch;
        text-align: right;
    }

    .pf-profile-dash-link {
        padding-inline: 10px;
        min-width: 40px;
    }

    .pf-profile-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        padding: 8px 10px 0 10px;
    }

    .pf-profile-tab {
        min-width: 44px;
        justify-content: center;
        padding: 10px 12px;
    }

    .pf-profile-tabs .pf-profile-tab > span:last-child {
        display: none;
    }

    .pf-profile-tab .pf-profile-svg-icon-inline {
        margin-right: 0;
    }
    
    .pf-profile-content-grid {
        grid-template-columns: 1fr;
    }

    .pf-profile-content-grid-about {
        grid-template-columns: 1fr;
    }

    .pf-profile-content-grid-about .pf-profile-card-about,
    .pf-profile-content-grid-about .pf-profile-card-social,
    .pf-profile-content-grid-about .pf-profile-card-contact-compact,
    .pf-profile-content-grid-about .pf-profile-card-contact-private,
    .pf-profile-content-grid-about .pf-profile-card-personal {
        grid-column: auto;
        grid-row: auto;
    }

    .pf-profile-compact-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .pf-profile-license-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pf-profile-support-admin-row {
        grid-template-columns: 1fr;
    }

    .pf-profile-licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .pf-profile-form-row {
        grid-template-columns: 1fr;
    }
    
    .pf-profile-avatar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-profile-bubu-grid {
        grid-template-columns: 1fr;
    }

    .pf-profile-style-editor-grid {
        grid-template-columns: 1fr;
    }

    .pf-profile-bubu-admin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pf-profile-bubu-admin-filters {
        grid-template-columns: 1fr 1fr;
    }

    .pf-profile-bubu-admin-filters [data-pf-profile-action="refresh-bubu-admin"] {
        grid-column: 1 / -1;
    }

    .pf-profile-admin-bubu-filters {
        grid-template-columns: 1fr 1fr;
    }

    .pf-profile-admin-bubu-filters [data-pf-profile-action="refresh-admin-bubu-analytics"],
    .pf-profile-admin-bubu-filters [data-pf-profile-action="open-bubu-modal"] {
        grid-column: span 1;
    }

    .pf-profile-bubu-next-head {
        flex-direction: column;
        align-items: flex-start;
    }

    #pf-profile-bubu-recent-list li {
        flex-direction: column;
    }

    .pf-profile-bubu-recent-side {
        white-space: normal;
    }

    .pf-profile-bubu-admin-grid {
        grid-template-columns: 1fr;
    }

    .pf-profile-bubu-admin-filters {
        grid-template-columns: 1fr;
    }

    .pf-profile-admin-bubu-filters {
        grid-template-columns: 1fr;
    }
    
    .pf-profile-licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .pf-profile-license-stats {
        grid-template-columns: 1fr;
    }
    
    .pf-profile-license-icon {
        font-size: 36px;
    }
    
    .pf-profile-license-title {
        font-size: 16px;
    }
}

/* ── Embedded mode (loaded via iframe inside another module's sub-overlay) ── */
.pf-profile-embedded .pf-profile-body,
.pf-profile-embedded .pf-profile-tab-content,
.pf-profile-flat-embed.pf-profile-box,
.pf-profile-flat-embed .pf-profile-module,
.pf-profile-flat-embed .pf-profile-body,
.pf-profile-flat-embed .pf-profile-tab-content {
    min-height: 0 !important;
}

.pf-profile-layout-wrapper {
    height: 100%;
}

.pf-profile-embedded .pf-profile-body,
.pf-profile-embedded .pf-profile-tab-content {
    flex: 1 1 auto;
}

.pf-profile-flat-embed.pf-profile-box,
.pf-profile-flat-embed .pf-profile-module {
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.pf-profile-flat-embed .pf-profile-body {
    flex: 1 1 auto;
    height: 100%;
}

.pf-profile-flat-embed .pf-profile-tab-content {
    flex: 1 1 auto;
}

.pf-profile-flat-embed .pf-profile-header,
.pf-profile-flat-embed .pf-profile-header::before {
    border-radius: 0 !important;
}

.pf-profile-flat-embed .pf-profile-footer,
.pf-profile-flat-embed .pf-profile-footer-bar,
.pf-profile-flat-embed .pf-profile-footer::before {
    border-radius: 0 !important;
}

/* Rename the dashboard button label to "Schließen" visually */
.pf-profile-dash-embedded-close .pf-profile-dash-label {
    display: none;
}

.pf-profile-dash-embedded-close .pf-profile-dash-icon {
    display: none;
}

.pf-profile-dash-embedded-close::after {
    content: '×';
    font-size: 1.3em;
    line-height: 1;
    font-weight: 400;
}

/* Embedded in module: back-arrow icon only, no label, no × pseudo-element */
.pf-profile-dash-back-only {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    gap: 0;
}

.pf-profile-dash-back-only .pf-profile-dash-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.pf-profile-dash-back-only .pf-profile-dash-icon svg {
    width: 22px;
    height: 22px;
}

.pf-profile-dash-back-only::after {
    content: none;
}

/* Embedded return button tooltip */
.pf-profile-tooltip-anchor {
    position: relative;
}

.pf-profile-tooltip-anchor::after {
    content: attr(data-pf-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%) translateX(6px);
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 20;
}

.pf-profile-tooltip-anchor::before {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(100% + 4px);
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    z-index: 19;
}

.pf-profile-tooltip-anchor:hover::after,
.pf-profile-tooltip-anchor:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.pf-profile-tooltip-anchor:hover::before,
.pf-profile-tooltip-anchor:focus-visible::before {
    opacity: 1;
}
