@import url('./design-tokens.css');
/**
 * user-profile.css
 * Styles for User Profile Window with Privacy/Audio Consent Settings
 *
 * WICHTIG: Kein transform: translate() verwenden - kollidiert mit makeDraggable()!
 * Stattdessen: left: calc(50% - halbeBreite) für Zentrierung
 */

/* ============================================================================
   WINDOW CONTAINER
   ============================================================================ */

#user-profile-window {
    position: fixed;
    top: 40px;
    /* Zentrierung ohne transform (kompatibel mit makeDraggable) */
    left: calc(50% - 750px);
    width: 1500px;
    max-width: 95vw;
    height: 92vh;
    max-height: 1600px;
    display: none;
    flex-direction: column;
    background: linear-gradient(180deg,
        rgba(20, 25, 40, 0.95) 0%,
        rgba(15, 20, 35, 0.98) 100%);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(var(--color-primary-rgb), 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 9500;
    overflow: hidden;
    font-family: var(--font-sans, sans-serif);
    pointer-events: auto;
}

#user-profile-window.fullscreen {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none;
    max-height: none;
    border-radius: 0;
    z-index: var(--z-dropdown);
}

/* ============================================================================
   HEADER
   ============================================================================ */

.up-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: move;
    user-select: none;
}

.up-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.up-header-icon {
    font-size: 20px;
}

.up-header-controls {
    display: flex;
    gap: 6px;
}

.up-header-controls button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--glass-bg-light);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-header-controls button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.up-header-controls button.close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    color: #fff;
}

/* ============================================================================
   PROFILE HERO SECTION
   ============================================================================ */

.up-hero {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 20px;
    background: linear-gradient(135deg,
        rgba(var(--color-secondary-rgb), 0.15) 0%,
        rgba(var(--color-primary-rgb), 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.up-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.up-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb), 0.3);
    overflow: hidden;
}

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

.up-avatar-edit {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(var(--color-secondary-rgb), 0.9);
    border: 2px solid rgba(20, 25, 35, 0.95);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.up-avatar-edit:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.up-user-info {
    flex: 1;
    min-width: 0;
}

.up-user-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.up-meta-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.up-meta-item .icon {
    font-size: 11px;
}

/* ============================================================================
   TAB NAVIGATION
   ============================================================================ */

.up-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.up-tab {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.up-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
}

.up-tab.active {
    color: #fff;
    border-bottom-color: var(--color-secondary);
    background: rgba(var(--color-secondary-rgb), 0.1);
}

.up-tab .icon {
    font-size: 14px;
}

/* ============================================================================
   TAB CONTENT
   ============================================================================ */

.up-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    pointer-events: auto;
}

.up-tab-panel {
    display: none;
    pointer-events: auto;
}

.up-tab-panel.active {
    display: block;
}

/* ============================================================================
   SECTION STYLES
   ============================================================================ */

.up-section {
    margin-bottom: 24px;
}

.up-section:last-child {
    margin-bottom: 0;
}

.up-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.up-section-title .icon {
    font-size: 16px;
    opacity: 0.8;
}

/* ============================================================================
   CONSENT TOGGLES
   ============================================================================ */

.up-consent-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.up-consent-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.up-consent-item:hover {
    background: var(--glass-bg-light);
    border-color: var(--glass-border);
}

.up-consent-item.sensitive {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.up-consent-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.up-consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.up-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.up-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.up-consent-toggle input:checked + .up-toggle-slider {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
}

.up-consent-toggle input:checked + .up-toggle-slider:before {
    transform: translateX(20px);
}

.up-consent-toggle input:focus + .up-toggle-slider {
    box-shadow: 0 0 0 3px rgba(var(--color-secondary-rgb), 0.3);
}

.up-consent-info {
    flex: 1;
    min-width: 0;
}

.up-consent-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.up-consent-label .warning-icon {
    color: #fbbf24;
    font-size: 12px;
}

.up-consent-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   INFO BOX
   ============================================================================ */

.up-info-box {
    display: flex;
    gap: var(--space-3);
    padding: 14px;
    background: rgba(var(--color-secondary-rgb), 0.1);
    border: 1px solid rgba(var(--color-secondary-rgb), 0.2);
    border-radius: 10px;
    margin-top: 16px;
}

.up-info-box .icon {
    font-size: 18px;
    flex-shrink: 0;
}

.up-info-box p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
   CONSENT META (Last Update)
   ============================================================================ */

.up-consent-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.up-consent-timestamp {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.up-consent-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.up-btn {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.up-btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #fff;
}

.up-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.up-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.up-btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.up-btn-secondary {
    background: var(--glass-bg-light);
    color: rgba(255, 255, 255, 0.8);
}

.up-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================================================
   FORM ELEMENTS (Profile Tab)
   ============================================================================ */

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

.up-form-group:last-child {
    margin-bottom: 0;
}

.up-form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.up-form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #fff;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.up-form-input:focus {
    border-color: rgba(var(--color-secondary-rgb), 0.5);
    background: var(--glass-bg-light);
    box-shadow: 0 0 0 3px rgba(var(--color-secondary-rgb), 0.15);
}

.up-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.up-form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* ============================================================================
   NOTIFICATION TOGGLES
   ============================================================================ */

.up-notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.up-notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.up-notification-item.up-sub-item {
    margin-left: 20px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

.up-notification-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* Section Description */
.up-section-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Small Select Dropdown */
.up-select-small {
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    min-width: 100px;
}

.up-select-small:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-border-light);
}

.up-select-small:focus {
    outline: none;
    border-color: var(--accent-primary, var(--color-secondary));
}

/* Option Label for sub-sections */
.up-option-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

/* Checkbox Grid for multiple options */
.up-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.up-checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.up-checkbox-item:hover {
    background: var(--glass-bg-light);
    border-color: var(--glass-border);
}

.up-checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary, var(--color-secondary));
    cursor: pointer;
}

.up-checkbox-item input[type="checkbox"]:checked + span {
    color: rgba(255, 255, 255, 1);
}

/* Briefing Options Container */
.up-briefing-options,
.up-discovery-categories {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */



.up-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.up-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.up-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================================================
   AVATAR BUTTON IN TOPBAR
   ============================================================================ */

#user-profile-btn {
    position: relative;
}

#user-profile-btn .user-avatar-mini {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    overflow: hidden;
}

#user-profile-btn:hover .user-avatar-mini {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

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

/* ============================================================================
   STATS GRID
   ============================================================================ */

.up-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: 16px;
}

.up-stat-card {
    background: var(--glass-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.up-stat-card:hover {
    background: var(--glass-bg-light);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.up-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.up-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Top Categories */
.up-top-categories {
    margin-top: 8px;
}

.up-subsection-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.up-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.up-category-tag {
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.2), rgba(var(--color-primary-rgb), 0.2));
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    border-radius: var(--radius-2xl);
    padding: 6px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.up-category-tag:hover {
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.3), rgba(var(--color-primary-rgb), 0.3));
    border-color: rgba(var(--color-primary-rgb), 0.5);
}

/* ============================================================================
   ACHIEVEMENTS
   ============================================================================ */

.up-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-3);
}

.up-achievement-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: default;
    transition: all 0.2s ease;
}

.up-achievement-badge:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(245, 158, 11, 0.1));
    border-color: rgba(234, 179, 8, 0.5);
    transform: translateY(-1px);
}

.up-badge-icon {
    font-size: 20px;
}

.up-badge-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.up-empty-state {
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.5);
}

.up-empty-state .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.up-empty-state p {
    font-size: 13px;
    line-height: 1.5;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 560px) {
    #user-profile-window {
        top: 0 !important;
        left: 0 !important;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .up-hero {
        flex-direction: column;
        text-align: center;
    }

    .up-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .up-achievements-grid {
        grid-template-columns: 1fr;
    }

    .up-tabs {
        overflow-x: auto;
        padding: 0 12px;
    }

    .up-tab {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .up-plans-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================================
   MEMBERSHIP TAB STYLES
   ============================================================================ */

/* Membership Card */
.up-membership-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.15) 0%, rgba(var(--color-primary-rgb), 0.1) 100%);
    border: 1px solid rgba(var(--color-primary-rgb), 0.3);
    border-radius: var(--radius-lg);
}

.up-membership-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-2xl);
}

.up-membership-badge .up-plan-icon {
    font-size: 24px;
}

.up-membership-badge .up-plan-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.up-membership-details {
    flex: 1;
}

.up-plan-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.up-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

.up-status-dot.active {
    background: #22c55e;
}

.up-plan-renewal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Plans Grid */
.up-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.up-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--glass-blur-md));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.up-plan-card:hover {
    background: var(--glass-bg-light);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.up-plan-card.featured {
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.12) 0%, rgba(var(--color-primary-rgb), 0.08) 100%);
    border-color: rgba(var(--color-primary-rgb), 0.35);
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.15);
}

.up-plan-card .up-plan-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-lg);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.up-plan-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.up-plan-header .up-plan-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.up-plan-header h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.up-plan-price {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.up-plan-price span {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.up-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    flex: 1;
}

.up-plan-features li {
    padding: 5px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.up-plan-card .up-btn {
    width: 100%;
}

/* Payment Info */
.up-payment-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.up-payment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
    padding: 20px;
}

.up-payment-empty .icon {
    font-size: 32px;
    opacity: 0.4;
}

.up-payment-empty p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.up-payment-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.up-payment-card .card-icon {
    font-size: 24px;
}

.up-payment-card .card-details {
    flex: 1;
}

.up-payment-card .card-number {
    font-size: 14px;
    color: #fff;
    font-family: var(--font-mono, monospace);
}

.up-payment-card .card-expiry {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Billing History */
.up-billing-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.up-billing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.up-billing-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.up-billing-amount {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.up-billing-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.up-billing-status.pending {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* Manage Section (softer than danger zone) */
.up-manage-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-top: 16px;
}

.up-manage-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.up-manage-info {
    flex: 1;
}

.up-manage-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 4px 0;
}

.up-manage-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/* Subtle Button (for cancel etc.) */
.up-btn-subtle {
    background: var(--glass-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    padding: 8px 16px;
}

.up-btn-subtle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   COLLAPSIBLE SECTIONS
   ============================================================================ */

.up-section.collapsible .up-section-title {
    cursor: pointer;
    user-select: none;
    padding: 10px 12px;
    margin: 0 0 0 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.up-section.collapsible .up-section-title:hover {
    background: var(--glass-bg-light);
    border-color: rgba(255, 255, 255, 0.12);
}

.up-section.collapsible .up-section-title::after {
    content: '▼';
    margin-left: auto;
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.up-section.collapsible.collapsed .up-section-title::after {
    transform: rotate(-90deg);
}

.up-section.collapsible.collapsed .up-section-title {
    margin-bottom: 0;
}

.up-section-body {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease;
    max-height: 2000px; /* Large enough for content */
    opacity: 1;
    padding-top: 12px;
}

.up-section.collapsed .up-section-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

/* Section description when collapsible */
.up-section.collapsible .up-section-desc {
    margin-top: 8px;
}










