/* Modern, Clean & Accessible CSS for Event Chat & Connect (100% Local, DSGVO-compliant) */
:root {
    --sat: env(safe-area-inset-top, 0px);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* App Header */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: bold;
    font-size: 1.1rem;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.user-badge {
    display: none !important;
}

.avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-main);
    font-size: 0.8rem;
}

.stat-pill {
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Navigation Tabs */
.nav-tabs {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.nav-tabs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.badge-count {
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 9999px;
    font-weight: bold;
}

/* Main Container */
.main-container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* Cards & Layout */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat Layout */
.chat-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.chat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fbfcfe;
}

.message-item {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.message-item.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-bubble {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.message-item.own .message-bubble {
    background: var(--primary-light);
    border-color: #bfdbfe;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.message-author {
    font-weight: 700;
    color: var(--text-main);
}

.message-time {
    color: var(--text-muted);
}

.message-status-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 600;
}

.tag-pending {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid #fde68a;
}

.tag-approved {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.tag-ai {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.tag-rejected {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.message-content {
    font-size: 0.95rem;
    word-break: break-word;
}

.rejection-reason {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--danger);
    font-style: italic;
    background: #fff1f2;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.chat-input-bar {
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-bar textarea {
    flex: 1;
    resize: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    height: 48px;
    line-height: 1.4;
    transition: border-color 0.2s;
}

.chat-input-bar textarea:focus {
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #15803d;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input {
    margin-top: 4px;
    accent-color: var(--primary);
}

/* Networking & Voting Grid */
.networking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .networking-grid {
        grid-template-columns: 1fr;
    }
}

.attendee-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    margin-bottom: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.attendee-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.attendee-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendee-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.attendee-code {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.mutual-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    text-align: left;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 2px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.leaderboard-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.rank-1 { background: #fef08a; color: #854d0e; }
.rank-2 { background: #e2e8f0; color: #475569; }
.rank-3 { background: #fed7aa; color: #9a3412; }
.rank-default { background: #f1f5f9; color: var(--text-muted); }

/* Moderator Queue Items */
.queue-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    background: #ffffff;
}

.queue-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.queue-content {
    font-size: 1rem;
    background: #f8fafc;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border-left: 4px solid var(--primary);
}

.queue-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.avatar-queue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.avatar-queue-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    background: #ffffff;
}

.avatar-preview-img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid var(--border);
}

/* Modals & Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: var(--primary-light);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-success {
    background: var(--success-light);
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid #fde68a;
    color: #b45309;
}

.timer-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* ====================================================
   QR-Code System: Large 30s Chat-Cover & Always-Visible Small Widget
   ==================================================== */

/* Chat box needs relative positioning for the cover overlay */
.chat-box {
    position: relative;
}

/* 1. Large 30s Overlay (Covering the Chat) */
.qr-large-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 24px;
    border-radius: inherit;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.qr-large-card {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    display: inline-block;
    margin: 14px 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.qr-large-card:hover {
    transform: scale(1.02);
}

.qr-large-img {
    width: 240px;
    height: 240px;
    display: block;
    border-radius: var(--radius-md);
}

.qr-overlay-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid #ef4444;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.qr-progress-bar-container {
    width: 260px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 10px;
}

.qr-progress-bar {
    height: 100%;
    background: #38bdf8;
    width: 100%;
    transition: width 1s linear;
}

/* 2. Small QR Widget (Visible ONLY when viewing chat and large overlay is off) */
.qr-small-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 80;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 10px;
    display: none; /* Strictly hidden by default - only shown in Chat view cycle */
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.qr-small-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}

.qr-small-img {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-sm);
    display: block;
    background: #ffffff;
}

.qr-small-text {
    font-size: 0.8rem;
    line-height: 1.3;
}

.qr-small-title {
    font-weight: 700;
    color: var(--text-main);
}

.qr-small-timer {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

/* QR Lock Banner in Registration */
.qr-lock-banner {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.qr-unlocked-banner {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ====================================================
   Real Camera Scanner Modal
   ==================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-main);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 18px;
}

.camera-viewport-container {
    position: relative;
    width: 100%;
    height: 260px;
    background: #0f172a;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#camera-video-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-scanner-guide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-reticle {
    width: 170px;
    height: 170px;
    border: 2px dashed rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.scanner-laser-line {
    position: absolute;
    width: 170px;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: scanLaser 2s infinite ease-in-out;
}

@keyframes scanLaser {
    0%, 100% {
        transform: translateY(-75px);
    }
    50% {
        transform: translateY(75px);
    }
}

.camera-status-text {
    margin-top: 12px;
    text-align: center;
    font-size: 0.85rem;
    min-height: 22px;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

/* ==========================================================================
   THE CONNECTION UNIVERSE (DAS AFTERWORK × THE ART OF LIFE)
   Luxury Dark Bordeaux & Champagne Gold Theme
   ========================================================================== */

:root {
    --univ-bg-gradient: radial-gradient(ellipse at 50% 40%, #342126 0%, #18121a 55%, #090a0f 100%);
    --univ-gold: #c5a270;
    --univ-gold-light: #e4c18d;
    --univ-gold-bright: #ffd899;
    --univ-gold-glow: rgba(228, 193, 141, 0.45);
    --univ-card-bg: rgba(26, 20, 27, 0.85);
    --univ-border: rgba(197, 162, 112, 0.35);
    --univ-text: #f7efe4;
    --univ-text-muted: #c4b5a2;
}

.universe-container {
    background: var(--univ-bg-gradient);
    border: 1px solid var(--univ-border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    color: var(--univ-text);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(52, 33, 38, 0.5);
    margin-bottom: 25px;
}

.universe-hud {
    position: absolute;
    top: 14px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 14, 20, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--univ-border);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.universe-title-tag {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--univ-gold-light);
    font-weight: 700;
}

.universe-stat-quote {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--univ-text);
    letter-spacing: 0.5px;
}

.universe-stat-quote strong {
    color: var(--univ-gold-bright);
    text-shadow: 0 0 10px var(--univ-gold-glow);
}

.universe-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 540px;
    cursor: grab;
}

/* Visible Board Floating Badges & Dock */
.universe-title-badge {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 10;
    pointer-events: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--univ-gold-light);
}

.universe-sub-badge {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-top: 2px;
}

.universe-live-pill {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.74rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
}

.universe-live-pill .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.universe-stats-dock {
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
    pointer-events: none;
}

.univ-stat-card {
    background: rgba(15, 18, 26, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px 18px;
    flex: 1;
    max-width: 140px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.univ-stat-card:last-child {
    margin-left: auto;
}

.univ-stat-label {
    font-size: 0.65rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 3px;
}

.univ-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.universe-action-bar {
    display: flex;
    gap: 12px;
    padding: 14px 18px 6px 18px;
    background: rgba(22, 16, 22, 0.95);
    flex-wrap: wrap;
}

.btn-universe-control {
    background: #2b1f24;
    color: #e2e8f0;
    border: 1px solid rgba(197, 162, 112, 0.35);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-universe-control:hover {
    background: #3c2932;
    border-color: var(--univ-gold);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-universe-control.highlight {
    background: #38242b;
    border-color: var(--univ-gold);
    color: var(--univ-gold-light);
    box-shadow: 0 0 12px rgba(197, 162, 112, 0.25);
}

.btn-universe-control.highlight:hover {
    background: #4a2f38;
    box-shadow: 0 0 18px rgba(197, 162, 112, 0.45);
}

.universe-caption-text {
    font-size: 0.82rem;
    color: #94a3b8;
    padding: 0 18px 12px 18px;
    background: rgba(22, 16, 22, 0.95);
}

.universe-tv-qr {
    position: absolute;
    top: 76px;
    right: 16px;
    background: rgba(26, 18, 25, 0.88);
    border: 1px solid var(--univ-border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.universe-tv-qr img {
    display: block;
    margin: 0 auto;
}

.universe-canvas-wrapper:active {
    cursor: grabbing;
}

.universe-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

.universe-bottom-bar {
    background: rgba(18, 14, 20, 0.88);
    border-top: 1px solid var(--univ-border);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 10;
}

.mission-bar-container {
    flex: 1;
    min-width: 250px;
}

.mission-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--univ-gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mission-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mission-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #b89b6a, #e4c18d, #ffd899);
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px rgba(228, 193, 141, 0.8);
}

.btn-universe-action {
    background: linear-gradient(135deg, #c5a270 0%, #8c6d41 100%);
    color: #1a1219;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(197, 162, 112, 0.3);
    transition: all 0.2s ease;
}

.btn-universe-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(228, 193, 141, 0.5);
    background: linear-gradient(135deg, #e4c18d 0%, #a3814f 100%);
}

/* Secret Match Cards */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #c5a270, #b89b6a);
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #c5a270;
}

.match-score-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.match-reasons-list {
    margin: 12px 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-reasons-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.match-reasons-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #c5a270;
    font-size: 0.8rem;
}

/* Profiling Wizard Pills */
.pill-selector-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.choice-pill {
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.choice-pill:hover {
    background: #e2e8f0;
}

.choice-pill.active {
    background: #c5a270;
    border-color: #a3814f;
    color: #1a1219;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(197, 162, 112, 0.35);
}

/* Golden Reveal Cinematic Modal */
.golden-reveal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 8, 14, 0.94);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.golden-reveal-card {
    background: radial-gradient(ellipse at center, #3d242c 0%, #17111a 70%, #0d0b10 100%);
    border: 2px solid #e4c18d;
    border-radius: 24px;
    max-width: 680px;
    width: 90%;
    padding: 36px 28px;
    text-align: center;
    color: #f7efe4;
    box-shadow: 0 0 60px rgba(228, 193, 141, 0.4), inset 0 0 40px rgba(197, 162, 112, 0.2);
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.golden-reveal-title {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e4c18d;
    font-weight: 700;
    margin-bottom: 8px;
}

.golden-reveal-headline {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #f7efe4 50%, #e4c18d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.2;
}

.golden-reveal-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
}

.golden-reveal-user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(228, 193, 141, 0.4);
    border-radius: 16px;
    padding: 18px;
    min-width: 180px;
    flex: 1;
}

.golden-reveal-user-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffd899;
    margin-top: 6px;
}

.golden-reveal-user-role {
    font-size: 0.82rem;
    color: #c4b5a2;
}

.golden-reveal-connector {
    font-size: 2rem;
    color: #e4c18d;
    text-shadow: 0 0 15px rgba(228, 193, 141, 0.8);
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 25px rgba(255, 216, 153, 1); }
}

.golden-reveal-quote {
    font-style: italic;
    font-size: 0.95rem;
    color: #e4c18d;
    margin-top: 18px;
    letter-spacing: 0.5px;
}


/* =====================================================================
   THE CONNECTION UNIVERSE · Futuristic Cosmic Luxury UI (Mobile-First)
   DAS AFTERWORK × THE ART OF LIFE
   Deep Obsidian · Velvet Bordeaux · Liquid Champagne Gold · Electric Cyan
   Self-hosted fonts (100% DSGVO-konform).
   ===================================================================== */

/* ---------- Self-hosted typefaces (SIL Open Font License, see /fonts/LICENSE) ---------- */
@font-face { font-family: "Brand Serif"; src: url("/fonts/NotoSerifDisplay-Light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Brand Serif"; src: url("/fonts/NotoSerifDisplay-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brand Serif"; src: url("/fonts/NotoSerifDisplay-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Brand Serif"; src: url("/fonts/NotoSerifDisplay-LightItalic.woff") format("woff"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Brand Sans"; src: url("/fonts/NotoSans-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Brand Sans"; src: url("/fonts/NotoSans-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Brand Sans"; src: url("/fonts/NotoSans-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Brand Sans"; src: url("/fonts/NotoSans-Bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

/* ---------- AFTERLINK Brand Palette Tokens (#0EA5FF · #8B5CF6 · #F5B547 · #0B0F1A) ---------- */
:root {
    --cosmos-bg: #02040A;
    --cosmos-deep: #010308;
    --glass-card: rgba(6, 9, 20, 0.90);
    --glass-card-elevated: rgba(8, 12, 26, 0.96);
    --glass-subtle: rgba(255, 255, 255, 0.03);
    --ink: #FFFFFF;
    --ink-soft: #94A3B8;
    --ivory: #02040A;
    --paper: rgba(7, 11, 24, 0.94);
    --line: rgba(0, 229, 255, 0.24);
    --line-strong: rgba(168, 85, 247, 0.48);
    --bordeaux: #9333EA;
    --bordeaux-deep: #3B1D8A;
    --bordeaux-glow: rgba(168, 85, 247, 0.55);
    --bordeaux-tint: rgba(168, 85, 247, 0.22);
    --gold: #00D4FF;
    --gold-light: #38BDF8;
    --gold-bright: #FF2A9D;
    --gold-tint: rgba(0, 212, 255, 0.18);
    --gold-glow: rgba(0, 212, 255, 0.60);
    --cyan-neon: #00E5FF;
    --afterlink-primary: #00D4FF;
    --afterlink-accent: #9333EA;
    --afterlink-highlight: #FF2A9D;
    --afterlink-bg: #02040A;

    /* Map legacy tokens onto the AFTERLINK dark-glass system */
    --primary: #0EA5FF;
    --primary-hover: #38BDF8;
    --primary-light: rgba(14, 165, 255, 0.16);
    --success: #34d399;
    --success-light: rgba(52, 211, 153, 0.14);
    --warning: #F5B547;
    --warning-light: rgba(245, 181, 71, 0.16);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.16);
    --bg-page: var(--cosmos-bg);
    --bg-card: var(--glass-card);
    --bg-card-subtle: rgba(255, 255, 255, 0.05);
    --border: var(--line);
    --text-main: var(--ink);
    --text-muted: var(--ink-soft);

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.42);
    --shadow-md: 0 16px 40px -12px rgba(2, 6, 23, 0.78), 0 0 1px 1px rgba(14, 165, 255, 0.14);
    --shadow-lg: 0 28px 68px -16px rgba(2, 6, 23, 0.90), 0 0 32px -8px rgba(139, 92, 246, 0.26);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --font-family: "Brand Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Brand Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-script: "Brand Serif", "Brush Script MT", "Apple Chancery", cursive;
    --font-editorial: "Brand Serif", Georgia, serif;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --header-h: 64px;
    --bottom-nav-h: 72px;
}

/* ---------- Base (Mobile First: 320px+) ---------- */
* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}
body {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.01em;
    background-color: #02040A;
    background-image:
        radial-gradient(760px 440px at 14% 0%, rgba(0, 212, 255, 0.09) 0%, transparent 62%),
        radial-gradient(680px 420px at 88% 8%, rgba(255, 30, 142, 0.09) 0%, transparent 62%),
        radial-gradient(620px 380px at 50% 100%, rgba(147, 51, 234, 0.07) 0%, transparent 65%),
        linear-gradient(180deg, #03060F 0%, #02040A 52%, #010207 100%);
    background-attachment: fixed;
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 22px);
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
::selection { background: #0EA5FF; color: #0B0F1A; }
a { color: var(--gold-light); text-decoration-color: rgba(14, 165, 255, 0.35); text-underline-offset: 3px; }
a:hover { color: #fff; text-shadow: 0 0 10px rgba(14, 165, 255, 0.45); }

h1, h2, h3, .card-title, .brand-title, .display {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.gold-accent { color: var(--gold-light); font-weight: 600; text-shadow: 0 0 8px rgba(243, 213, 155, 0.25); }

/* Cursive / Calligraphy Flourishes (The Social Affair · Das Afterwork Style) */
.brand-script, .script-accent, .landing-script {
    font-family: var(--font-script);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: #fcefd6;
    text-shadow: 0 0 14px rgba(243, 213, 155, 0.4);
    line-height: 1;
}

.brand-sep {
    color: rgba(228, 193, 141, 0.4);
    font-size: 0.75rem;
    vertical-align: middle;
}

.brand-pillars {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.16em;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gold-light);
}

.brand-pillar-icon {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 11px;
    vertical-align: middle;
}
.brand-pillar-icon span {
    display: block;
    width: 2.2px;
    background: linear-gradient(180deg, #ffe6bd 0%, #d4af72 100%);
    border-radius: 1px;
    box-shadow: 0 0 4px rgba(243, 213, 155, 0.4);
}
.brand-pillar-icon span:nth-child(1) { height: 7px; }
.brand-pillar-icon span:nth-child(2) { height: 11px; }
.brand-pillar-icon span:nth-child(3) { height: 7px; }

.script-tag {
    font-family: var(--font-script);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    color: #ffe6bd;
    margin-right: 2px;
    vertical-align: baseline;
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
    border-radius: 10px;
}

/* ---------- Futuristic Glass Header ---------- */
.app-header {
    background: rgba(11, 15, 26, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(14, 165, 255, 0.18);
    box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 0;
    z-index: 60;
}
.header-inner {
    max-width: 1280px;
    min-height: var(--header-h);
    padding: 10px 14px;
    gap: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
}
.brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 255, 0.24), rgba(11, 15, 26, 0.92));
    border: 1.5px solid rgba(14, 165, 255, 0.65);
    border-radius: 14px;
    color: var(--gold-light);
    box-shadow: 0 0 18px rgba(14, 165, 255, 0.32), 0 0 12px rgba(139, 92, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-icon svg { width: 28px; height: 20px; }
.brand-icon .brand-icon-logo-img {
    width: 32px;
    height: auto;
    max-height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(14, 165, 255, 0.65));
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.25s var(--ease);
}
.brand:hover .brand-icon .brand-icon-logo-img {
    transform: scale(1.08);
}
.brand-title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #38BDF8 55%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.60rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94A3B8;
    font-weight: 600;
    margin-top: 2px;
}

.user-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}
.user-badge {
    display: none !important;
}
.attendee-code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.78rem;
    color: var(--gold-light);
    background: rgba(212, 175, 114, 0.15);
    border: 1px solid rgba(212, 175, 114, 0.3);
    padding: 3px 9px;
    border-radius: 999px;
}
#header-user-code { display: none; }
.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--gold-light);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.header-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.38);
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
    box-sizing: border-box;
    text-decoration: none;
}
.header-logout-btn:hover,
.header-logout-btn:active {
    background: rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.65);
    color: #ffffff;
    transform: scale(1.06);
}
.header-logout-btn .header-logout-svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
    display: block;
}

/* ---------- Navigation (Mobile-First Tactile Neon Dock) ---------- */
.nav-tabs {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 900;
    background: rgba(11, 15, 26, 0.96);
    backdrop-filter: saturate(190%) blur(20px);
    -webkit-backdrop-filter: saturate(190%) blur(20px);
    border-top: 1px solid rgba(14, 165, 255, 0.22);
    border-bottom: none;
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 6px);
    box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.85);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}
.nav-tabs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4px 6px;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 3px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.tab-btn {
    flex: 1 1 0;
    min-width: 0;
    font-family: var(--font-family);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #94A3B8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 6px 2px 5px;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    white-space: nowrap;
    position: relative;
    transition: all 0.2s var(--ease);
    touch-action: manipulation;
}
.tab-btn .tab-icon { width: 22px; height: 22px; flex: none; opacity: 0.78; transition: transform 0.2s var(--ease); }
.tab-btn .tab-label-long { display: none; }
.tab-btn .tab-label-short { display: inline; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab-btn:hover { color: #fff; background: rgba(14, 165, 255, 0.08); }
.tab-btn.active {
    color: #38BDF8;
    background: linear-gradient(180deg, rgba(14, 165, 255, 0.22) 0%, rgba(139, 92, 246, 0.16) 100%);
    border: 1px solid rgba(14, 165, 255, 0.48);
    box-shadow: 0 0 18px rgba(14, 165, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.tab-btn.active .tab-icon {
    opacity: 1;
    transform: scale(1.08);
    stroke: #0EA5FF;
    filter: drop-shadow(0 0 8px rgba(14, 165, 255, 0.65));
}
.badge-count {
    background: #ef4444;
    color: #fff;
    position: absolute;
    top: 4px;
    right: 10%;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

/* ---------- Main Layout (Mobile First) ---------- */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 12px 36px;
    flex: 1;
    width: 100%;
}

.view-section.active { animation: viewEnter 0.35s var(--ease) both; }
@keyframes viewEnter {
    from { opacity: 0; transform: translateY(10px) scale(0.99); }
    to { opacity: 1; transform: none; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.eyebrow::before { content: "✦"; font-size: 0.8rem; color: var(--gold-light); }

/* ---------- Glass Cards (Futuristic & Oversized) ---------- */
.card {
    background: var(--glass-card);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 20px 18px;
    margin-bottom: 18px;
    color: var(--ink);
    transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.card-title { font-size: 1.32rem; font-weight: 500; color: #fff; letter-spacing: 0.02em; }

/* ---------- Oversized Tactile Buttons ("Klick-Modus") ---------- */
.btn {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 0.94rem;
    letter-spacing: 0.04em;
    border-radius: 16px;
    padding: 13px 22px;
    min-height: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s var(--ease);
    position: relative;
    touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; min-height: 40px; border-radius: 12px; }
.btn-xl {
    min-height: 60px;
    padding: 16px 28px;
    font-size: 1.06rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 18px;
}
.btn-primary {
    background: linear-gradient(135deg, #0EA5FF 0%, #8B5CF6 100%);
    color: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 999px;
    box-shadow: 0 8px 24px -6px rgba(14, 165, 255, 0.48), 0 0 20px rgba(139, 92, 246, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #38BDF8 0%, #7C3AED 100%);
    border-color: rgba(14, 165, 255, 0.8);
    box-shadow: 0 12px 28px -6px rgba(14, 165, 255, 0.65), 0 0 22px rgba(139, 92, 246, 0.45);
}
.btn-gold {
    background: linear-gradient(135deg, #0EA5FF 0%, #8B5CF6 100%);
    color: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.65);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 8px 26px -6px rgba(14, 165, 255, 0.50), 0 0 22px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #38BDF8 0%, #9333EA 100%);
    box-shadow: 0 12px 32px -6px rgba(14, 165, 255, 0.65), 0 0 26px rgba(139, 92, 246, 0.50), inset 0 1px 0 #ffffff;
    transform: translateY(-1px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-secondary:hover {
    background: rgba(212, 175, 114, 0.16);
    border-color: var(--gold-light);
    color: #fff;
}
.btn-success {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #061812;
    font-weight: 800;
    box-shadow: 0 8px 22px -8px rgba(52, 211, 153, 0.6);
}
.btn-danger {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
}
.btn-danger:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.btn[disabled], .btn.is-loading { opacity: 0.7; pointer-events: none; }

/* Loading spinner */
.btn.is-loading { color: transparent !important; }
.btn.is-loading::after {
    content: "";
    position: absolute; inset: 0; margin: auto;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Oversized Futuristic Inputs ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.form-control, textarea, select {
    width: 100%;
    font-family: var(--font-family);
    background: rgba(12, 9, 19, 0.78);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 16px;
    min-height: 52px;
    color: #fff;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.form-control-xl {
    min-height: 58px;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 15px 18px;
    border-radius: 18px;
}
.form-control:focus, textarea:focus, select:focus {
    outline: none;
    background: rgba(18, 13, 28, 0.95);
    border-color: var(--gold-light);
    box-shadow: 0 0 0 4px rgba(212, 175, 114, 0.22);
}
.form-control::placeholder, textarea::placeholder { color: rgba(185, 168, 155, 0.55); }
input[type="checkbox"] { accent-color: var(--gold); width: 22px; height: 22px; flex-shrink: 0; cursor: pointer; }

/* Tactile Consent Tile */
.consent-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--ink-soft);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    user-select: none;
}
.consent-tile:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 114, 0.08);
    color: var(--ink);
}

/* Interactive Avatar Orb Trigger on Check-in */
.avatar-tap-zone {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}
.avatar-orb-trigger {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(243, 213, 155, 0.22), rgba(138, 40, 66, 0.28) 60%, rgba(14, 10, 22, 0.95));
    border: 2px dashed var(--gold-light);
    box-shadow: 0 0 30px rgba(212, 175, 114, 0.28), inset 0 0 20px rgba(212, 175, 114, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.avatar-orb-trigger:hover, .avatar-orb-trigger:active {
    transform: scale(1.05);
    border-style: solid;
    border-color: #ffe4b5;
    box-shadow: 0 0 38px rgba(243, 213, 155, 0.5);
}
.avatar-orb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.orb-cam-icon { font-size: 1.85rem; line-height: 1; }
.orb-cam-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-light);
}
#avatar-preview-box {
    position: absolute;
    inset: 0;
    z-index: 2;
}
#avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ---------- Responsive Utility Grids ---------- */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.quick-connect-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quick-connect-form .btn { width: 100%; }

.subtab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(20, 15, 28, 0.75);
    padding: 6px;
    border-radius: 18px;
    border: 1px solid var(--line);
}
.subtab-bar .tab-btn {
    flex-direction: row;
    min-height: 50px;
    padding: 10px 14px;
    font-size: 0.86rem;
    border-radius: 14px;
    justify-content: center;
    white-space: normal;
    text-align: center;
}
.attendees-search-input { width: 100%; max-width: none; }

/* ---------- Alerts & QR Banners ---------- */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    font-size: 0.88rem;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.alert-info { background: rgba(212, 175, 114, 0.12); border-color: rgba(212, 175, 114, 0.35); }
.qr-lock-banner {
    background: rgba(251, 191, 36, 0.12);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.qr-banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #fde68a;
}
.qr-unlocked-banner {
    background: rgba(52, 211, 153, 0.14);
    border: 1.5px solid rgba(52, 211, 153, 0.45);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #6ee7b7;
    font-size: 0.9rem;
}

/* ---------- Interactive Click-Mode Wizard (9 Questions) ---------- */
.wizard-deck-card {
    padding: 22px 18px;
    border: 1px solid rgba(228, 193, 141, 0.3);
}
.wizard-hud {
    margin-bottom: 20px;
}
.wizard-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.wizard-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}
.wizard-power-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}
.wizard-power-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2842, #e4c18d, #38bdf8);
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(228, 193, 141, 0.6);
    transition: width 0.35s var(--ease);
}
.wizard-dots {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 6px;
}
.wiz-dot {
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    touch-action: manipulation;
}
.wiz-dot.answered {
    border-color: rgba(52, 211, 153, 0.55);
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
}
.wiz-dot.active {
    background: linear-gradient(135deg, #f3d59b, #c69a55);
    color: #130d18;
    border-color: #ffe8be;
    transform: scale(1.06);
    box-shadow: 0 0 16px rgba(228, 193, 141, 0.45);
}

.wizard-step {
    display: none;
    animation: viewEnter 0.28s var(--ease) both;
}
.wizard-step.active,
#profiling-form.show-all-steps .wizard-step {
    display: block;
    margin-bottom: 22px;
}

.wiz-question-head {
    margin-bottom: 16px;
}
.wiz-q-num {
    display: inline-block;
    font-family: ui-monospace, monospace;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold-light);
    background: rgba(212, 175, 114, 0.16);
    border: 1px solid rgba(212, 175, 114, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.wiz-question-head h3 {
    font-size: clamp(1.35rem, 4.5vw, 1.75rem);
    font-weight: 500;
    color: #fff;
    margin: 4px 0;
}
.wiz-q-hint {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

/* Big Futuristic Tap-Tiles for Profiling Questions */
.pill-selector-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 12px;
}
.choice-pill {
    border: 1.5px solid rgba(228, 193, 141, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
    padding: 14px 14px;
    min-height: 58px;
    border-radius: 16px;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    transition: all 0.2s var(--ease);
    touch-action: manipulation;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
}
.choice-pill:hover {
    border-color: var(--gold-light);
    background: rgba(212, 175, 114, 0.12);
    transform: translateY(-2px);
}
.choice-pill:active { transform: scale(0.96); }
.choice-pill.selected, .choice-pill.active {
    background: linear-gradient(135deg, #f3d59b 0%, #c69a55 100%);
    border-color: #ffe8be;
    color: #130d18;
    font-weight: 800;
    box-shadow: 0 0 24px rgba(228, 193, 141, 0.55);
    transform: translateY(-2px);
}

.optin-tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.wizard-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.wizard-nav-footer .btn { min-width: 130px; }

/* ---------- Secret Match Cards ---------- */
.matches-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 12px;
}
.match-card {
    background: var(--glass-card-elevated);
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.match-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: linear-gradient(180deg, #ffe4b5, #c69a55, #38bdf8);
}
.match-card:hover { transform: translateY(-3px); border-color: var(--gold-light); }
.match-card-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin: 0; color: #fff; }
.match-card-meta { font-size: 0.85rem; color: var(--gold-light); margin-top: 4px; font-weight: 500; }
.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}
.match-synergy-box {
    background: rgba(212, 175, 114, 0.1);
    border-left: 3px solid var(--gold-light);
    border-radius: 0 12px 12px 0;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 0.9rem;
    color: var(--ink);
    line-height: 1.5;
}

/* ---------- The Connection Universe (AFTERLINK Cosmic Stage) ---------- */
:root {
    --univ-bg-gradient: radial-gradient(ellipse 90% 70% at 50% 35%, #161F3E 0%, #0E1528 55%, #0B0F1A 100%);
    --univ-gold: #0EA5FF;
    --univ-gold-light: #38BDF8;
    --univ-gold-bright: #F5B547;
    --univ-border: rgba(14, 165, 255, 0.35);
}

.universe-container {
    background: radial-gradient(ellipse 90% 70% at 50% 35%, #141D38 0%, #0D1426 55%, #0B0F1A 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(14, 165, 255, 0.28);
    border-top: 1.5px solid rgba(139, 92, 246, 0.48);
    border-radius: 24px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    color: var(--ink);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.78), 0 0 35px rgba(139, 92, 246, 0.22);
    margin-bottom: 16px;
}

.universe-hud {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 2px 12px 2px;
    z-index: 2;
}
.universe-title-tag {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    font-weight: 500;
}
.universe-stat-quote {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.universe-stat-quote strong { color: var(--gold-light); font-weight: 800; }

.universe-hud-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.universe-live-pill {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6ee7b7;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.universe-live-pill .live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.universe-canvas-wrapper {
    position: relative;
    width: 100%;
    height: clamp(360px, 56dvh, 480px);
    background: var(--univ-bg-gradient);
    border-radius: 18px;
    border: 1px solid rgba(243, 213, 155, 0.3);
    overflow: hidden;
    cursor: grab;
    touch-action: manipulation;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.65), 0 18px 40px -16px rgba(0, 0, 0, 0.8);
}
.universe-canvas-wrapper:active { cursor: grabbing; }
.universe-canvas { width: 100%; height: 100%; display: block; }

/* Brand Watermarks: Hosted by Das Afterwork (top-left) & Sponsored by The Art of Life (top-right) */
.universe-brand-badge {
    position: absolute;
    top: 12px;
    z-index: 12;
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    opacity: 0.92;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.universe-brand-badge.brand-left {
    left: 14px;
}

.universe-brand-badge.brand-right {
    right: 14px;
}

.universe-brand-img {
    display: block;
    height: auto;
    max-height: 38px;
    width: auto;
    max-width: 96px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(228, 193, 141, 0.22));
}

@media (min-width: 480px) {
    .universe-brand-badge {
        top: 16px;
    }
    .universe-brand-badge.brand-left {
        left: 18px;
    }
    .universe-brand-badge.brand-right {
        right: 18px;
    }
    .universe-brand-img {
        max-height: 48px;
        max-width: 125px;
    }
}

@media (min-width: 768px) {
    .universe-brand-badge {
        top: 20px;
    }
    .universe-brand-badge.brand-left {
        left: 24px;
    }
    .universe-brand-badge.brand-right {
        right: 24px;
    }
    .universe-brand-img {
        max-height: 56px;
        max-width: 145px;
    }
}

/* In Fullscreen mode (TV / Presentation / Beamer) */
#view-universe:fullscreen .universe-brand-badge,
#view-universe:-webkit-full-screen .universe-brand-badge,
.universe-container:fullscreen .universe-brand-badge,
.universe-container:-webkit-full-screen .universe-brand-badge {
    top: 24px;
    opacity: 0.96;
}

#view-universe:fullscreen .universe-brand-badge.brand-left,
#view-universe:-webkit-full-screen .universe-brand-badge.brand-left,
.universe-container:fullscreen .universe-brand-badge.brand-left,
.universe-container:-webkit-full-screen .universe-brand-badge.brand-left {
    left: 28px;
}

#view-universe:fullscreen .universe-brand-badge.brand-right,
#view-universe:-webkit-full-screen .universe-brand-badge.brand-right,
.universe-container:fullscreen .universe-brand-badge.brand-right,
.universe-container:-webkit-full-screen .universe-brand-badge.brand-right {
    right: 28px;
}

#view-universe:fullscreen .universe-brand-img,
#view-universe:-webkit-full-screen .universe-brand-img,
.universe-container:fullscreen .universe-brand-img,
.universe-container:-webkit-full-screen .universe-brand-img {
    max-height: 72px;
    max-width: 180px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(228, 193, 141, 0.35));
}

/* Universe Stage Row: Standard view */
.universe-stage-row {
    position: relative;
    width: 100%;
}

/* Fullscreen Ranking: Strictly hidden in non-fullscreen views */
.universe-fullscreen-ranking {
    display: none !important;
}

/* Fullscreen Ranking Styles (used when active in fullscreen) */
.uf-ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(243, 213, 155, 0.22);
    flex-shrink: 0;
}

.uf-ranking-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.uf-ranking-icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.uf-ranking-title {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, var(--univ-gold-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.uf-ranking-subtitle {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.uf-ranking-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.35);
    color: #00e676;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.live-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: liveGlow 1.5s infinite;
}

.uf-ranking-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-right: 2px;
    min-height: 0;
}

.uf-ranking-scroll::-webkit-scrollbar {
    width: 4px;
}
.uf-ranking-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}
.uf-ranking-scroll::-webkit-scrollbar-thumb {
    background: rgba(228, 193, 141, 0.35);
    border-radius: 4px;
}

.uf-ranking-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    box-sizing: border-box;
    transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.uf-ranking-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(228, 193, 141, 0.28);
}

.uf-ranking-card.is-me {
    background: rgba(228, 193, 141, 0.13);
    border-color: rgba(228, 193, 141, 0.55);
    box-shadow: 0 0 14px rgba(228, 193, 141, 0.18);
}

.uf-ranking-rank {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.uf-ranking-rank.rank-gold {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    color: #1a0f00;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.uf-ranking-rank.rank-silver {
    background: linear-gradient(135deg, #e6e6e6, #9e9e9e);
    color: #111;
    box-shadow: 0 0 8px rgba(200, 200, 200, 0.4);
}

.uf-ranking-rank.rank-bronze {
    background: linear-gradient(135deg, #d48a37, #8c4a16);
    color: #fff;
    box-shadow: 0 0 8px rgba(212, 138, 55, 0.4);
}

.uf-ranking-rank.rank-other {
    background: rgba(255, 255, 255, 0.07);
    color: var(--univ-gold-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.uf-ranking-avatar-wrap {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uf-ranking-avatar-wrap .chat-avatar,
.uf-ranking-avatar-wrap .avatar-initials {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.7rem !important;
    border-radius: 50%;
}

.uf-ranking-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uf-ranking-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.uf-me-badge {
    font-size: 0.68rem;
    color: var(--gold);
    font-weight: 700;
}

.uf-ranking-code {
    display: none !important;
}

.uf-ranking-score {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    background: rgba(228, 193, 141, 0.12);
    border: 1px solid rgba(228, 193, 141, 0.25);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--univ-gold-light);
    flex-shrink: 0;
    white-space: nowrap;
}

.uf-ranking-empty {
    text-align: center;
    padding: 24px 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Floating Star Click-Mode Action Dock inside Universe Stage */
.star-floating-dock {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 25;
    background: rgba(16, 12, 24, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--gold-light);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(228, 193, 141, 0.3);
    animation: viewEnter 0.25s var(--ease) both;
}
.star-dock-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.star-dock-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}
.star-dock-meta {
    font-size: 0.82rem;
    color: var(--gold-light);
    margin-top: 2px;
}
.star-dock-quote {
    font-size: 0.84rem;
    color: var(--ink-soft);
    font-style: italic;
    margin: 6px 0 0;
}
.star-dock-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.star-detail-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.star-detail-actions .btn { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 0.85rem; }

/* 3 Docked Futuristic Counters */
.universe-stats-dock {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    z-index: 10;
    pointer-events: none;
}
.univ-stat-card {
    background: rgba(22, 9, 16, 0.85);
    border: 1px solid rgba(228, 193, 141, 0.22);
    border-top: 1px solid rgba(243, 213, 155, 0.38);
    border-radius: 14px;
    padding: 9px 12px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: auto;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.univ-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(243, 213, 155, 0.5);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 18px rgba(168, 27, 48, 0.3);
}
.univ-stat-label {
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #cbbba8;
    font-weight: 700;
    margin-bottom: 2px;
}
.univ-stat-num {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffe6bd;
    text-shadow: 0 0 12px rgba(228, 193, 141, 0.4);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* True 100vw × 100vh Fullscreen layout */
#view-universe:fullscreen,
#view-universe:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--cosmos-bg);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}
#view-universe:fullscreen .universe-container,
#view-universe:-webkit-full-screen .universe-container,
.universe-container:fullscreen,
.universe-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    border-radius: 0;
    border: none;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: var(--cosmos-bg);
}
/* Stage Row in Fullscreen: Side-by-side layout (5/6 Canvas + 1/6 Ranking Sidebar) */
#view-universe:fullscreen .universe-stage-row,
#view-universe:-webkit-full-screen .universe-stage-row,
#view-universe.is-fullscreen .universe-stage-row,
.universe-container:fullscreen .universe-stage-row,
.universe-container:-webkit-full-screen .universe-stage-row {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    gap: 16px !important;
    align-items: stretch !important;
}

#view-universe:fullscreen .universe-canvas-wrapper,
#view-universe:-webkit-full-screen .universe-canvas-wrapper,
#view-universe.is-fullscreen .universe-canvas-wrapper,
.universe-container:fullscreen .universe-canvas-wrapper,
.universe-container:-webkit-full-screen .universe-canvas-wrapper {
    flex: 5 1 0 !important;
    width: calc(100% * 5 / 6) !important;
    min-width: 0 !important;
    height: 100% !important;
}

#view-universe:fullscreen .universe-fullscreen-ranking,
#view-universe:-webkit-full-screen .universe-fullscreen-ranking,
#view-universe.is-fullscreen .universe-fullscreen-ranking,
.universe-container:fullscreen .universe-fullscreen-ranking,
.universe-container:-webkit-full-screen .universe-fullscreen-ranking {
    display: flex !important;
    flex: 0 0 calc(100% / 6) !important;
    width: calc(100% / 6) !important;
    min-width: 220px !important;
    max-width: 340px !important;
    height: 100% !important;
    background: rgba(14, 10, 20, 0.90) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(243, 213, 155, 0.3) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.5) !important;
    padding: 14px 12px !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    animation: fadeIn 0.35s ease both !important;
}

/* In Fullscreen mode: Hide action buttons and collective energy mission bottom bar */
#view-universe:fullscreen .universe-action-bar,
#view-universe:-webkit-full-screen .universe-action-bar,
#view-universe.is-fullscreen .universe-action-bar,
.universe-container:fullscreen .universe-action-bar,
.universe-container:-webkit-full-screen .universe-action-bar,
:fullscreen .universe-action-bar,
:-webkit-full-screen .universe-action-bar,
#view-universe:fullscreen #universe-mod-controls,
#view-universe:-webkit-full-screen #universe-mod-controls,
#view-universe.is-fullscreen #universe-mod-controls,
:fullscreen #universe-mod-controls,
:-webkit-full-screen #universe-mod-controls,
#view-universe:fullscreen .universe-caption-text,
#view-universe:-webkit-full-screen .universe-caption-text,
#view-universe.is-fullscreen .universe-caption-text,
:fullscreen .universe-caption-text,
:-webkit-full-screen .universe-caption-text,
#view-universe:fullscreen .universe-bottom-bar,
#view-universe:-webkit-full-screen .universe-bottom-bar,
#view-universe.is-fullscreen .universe-bottom-bar,
.universe-container:fullscreen .universe-bottom-bar,
.universe-container:-webkit-full-screen .universe-bottom-bar,
:fullscreen .universe-bottom-bar,
:-webkit-full-screen .universe-bottom-bar {
    display: none !important;
}

/* Center Stats Dock in Fullscreen */
#view-universe:fullscreen .universe-stats-dock,
#view-universe:-webkit-full-screen .universe-stats-dock,
#view-universe.is-fullscreen .universe-stats-dock,
.universe-container:fullscreen .universe-stats-dock,
.universe-container:-webkit-full-screen .universe-stats-dock {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    bottom: 20px !important;
    z-index: 15 !important;
}

/* ==========================================================================
   Universe Fullscreen Bottom-Left Dock: Live-Chat & QR Presentation
   STRICT RULE: Only in Fullscreen AND Only for Admin/Moderator/Presentation
   ========================================================================== */
.universe-fs-bottom-left-dock {
    display: none !important;
}

/* Shown strictly only when body has moderator/admin permission AND view is fullscreen */
body.is-admin-mod #view-universe:fullscreen .universe-fs-bottom-left-dock,
body.is-admin-mod #view-universe:-webkit-full-screen .universe-fs-bottom-left-dock,
body.is-admin-mod #view-universe.is-fullscreen .universe-fs-bottom-left-dock,
body.is-admin #view-universe:fullscreen .universe-fs-bottom-left-dock,
body.is-admin #view-universe:-webkit-full-screen .universe-fs-bottom-left-dock,
body.is-admin #view-universe.is-fullscreen .universe-fs-bottom-left-dock,
body.is-moderator #view-universe:fullscreen .universe-fs-bottom-left-dock,
body.is-moderator #view-universe:-webkit-full-screen .universe-fs-bottom-left-dock,
body.is-moderator #view-universe.is-fullscreen .universe-fs-bottom-left-dock,
body.is-presentation #view-universe:fullscreen .universe-fs-bottom-left-dock,
body.is-presentation #view-universe:-webkit-full-screen .universe-fs-bottom-left-dock,
body.is-presentation #view-universe.is-fullscreen .universe-fs-bottom-left-dock {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    bottom: 20px;
    left: 24px;
    z-index: 25;
    width: 380px;
    max-width: calc(100% - 440px);
    pointer-events: auto;
    animation: ufFadeSlideIn 0.35s ease both;
}

/* ==========================================================================
   Universe Fullscreen Large Presentation QR-Overlay (Center Stage)
   STRICT RULE: Only in Fullscreen AND Only for Admin/Moderator/Presentation
   Active during the first 20 seconds of every minute (0s-19s)
   ========================================================================== */
.universe-fs-large-qr-overlay {
    display: none !important;
}

body.is-admin-mod #view-universe:fullscreen .universe-fs-large-qr-overlay.is-active,
body.is-admin-mod #view-universe:-webkit-full-screen .universe-fs-large-qr-overlay.is-active,
body.is-admin-mod #view-universe.is-fullscreen .universe-fs-large-qr-overlay.is-active,
body.is-admin #view-universe:fullscreen .universe-fs-large-qr-overlay.is-active,
body.is-admin #view-universe:-webkit-full-screen .universe-fs-large-qr-overlay.is-active,
body.is-admin #view-universe.is-fullscreen .universe-fs-large-qr-overlay.is-active,
body.is-moderator #view-universe:fullscreen .universe-fs-large-qr-overlay.is-active,
body.is-moderator #view-universe:-webkit-full-screen .universe-fs-large-qr-overlay.is-active,
body.is-moderator #view-universe.is-fullscreen .universe-fs-large-qr-overlay.is-active,
body.is-presentation #view-universe:fullscreen .universe-fs-large-qr-overlay.is-active,
body.is-presentation #view-universe:-webkit-full-screen .universe-fs-large-qr-overlay.is-active,
body.is-presentation #view-universe.is-fullscreen .universe-fs-large-qr-overlay.is-active {
    display: flex !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 45;
    pointer-events: auto;
    animation: ufZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.uf-lqr-card,
.universe-fs-qr-card {
    background: linear-gradient(145deg, rgba(34, 10, 24, 0.96), rgba(14, 7, 18, 0.98));
    border: 2px solid rgba(243, 213, 155, 0.65);
    border-radius: 28px;
    padding: 24px 32px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(243, 213, 155, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 460px;
    width: 90vw;
    gap: 10px;
}

.uf-lqr-header,
.universe-fs-qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(243, 213, 155, 0.25);
}

.uf-lqr-badge,
.universe-fs-qr-badge {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ffe6bd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uf-lqr-timer,
.universe-fs-qr-timer {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd899;
    background: rgba(243, 213, 155, 0.22);
    border: 1px solid rgba(243, 213, 155, 0.5);
    border-radius: 12px;
    padding: 3px 12px;
    font-variant-numeric: tabular-nums;
}

.uf-lqr-title {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.uf-lqr-img-box,
.universe-fs-qr-img-wrapper {
    background: #ffffff;
    padding: 14px;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(243, 213, 155, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uf-lqr-img,
.universe-fs-qr-img-large {
    width: 290px;
    height: 290px;
    display: block;
    border-radius: 10px;
}

.universe-fs-large-qr-overlay.is-ad-mode .uf-lqr-card {
    max-width: min(94vw, 820px);
    width: min(94vw, 820px);
    padding: 24px 28px;
    border-color: rgba(56, 189, 248, 0.55);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(16, 24, 52, 0.54) 100%) !important;
    backdrop-filter: blur(34px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(34px) saturate(210%) !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), 0 0 54px rgba(14, 165, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.uf-lqr-ad-box {
    width: 100%;
    max-width: min(88vw, 760px);
    height: clamp(300px, 50vh, 520px);
    background: transparent !important;
    padding: 0 !important;
    border-radius: 18px;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.uf-lqr-ad-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border-radius: 16px;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
    display: block;
}

.uf-lqr-hint,
.universe-fs-qr-sub-large {
    font-size: 0.92rem;
    color: #e8d8c8;
    line-height: 1.4;
    font-weight: 600;
}

@keyframes ufZoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Fullscreen Live-Chat Stream Card (Compact Luxury Display) */
.universe-fs-chat-card {
    background: rgba(16, 11, 22, 0.94);
    border: 1.5px solid rgba(243, 213, 155, 0.35);
    border-radius: 20px;
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.82), 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    max-height: 310px;
}

.universe-fs-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(243, 213, 155, 0.18);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.universe-fs-chat-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.universe-fs-chat-icon {
    font-size: 1.1rem;
}

.universe-fs-chat-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffe6bd;
}

.universe-fs-chat-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #10b981;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 3px 9px;
}

.universe-fs-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 230px;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 213, 155, 0.35) transparent;
}

.universe-fs-chat-messages::-webkit-scrollbar {
    width: 6px;
}
.universe-fs-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(243, 213, 155, 0.35);
    border-radius: 6px;
}

.uf-chat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 14px;
    flex-shrink: 0;
    animation: ufFadeSlideIn 0.25s ease both;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.uf-chat-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(243, 213, 155, 0.3);
}

.uf-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(243, 213, 155, 0.4);
}

.uf-chat-avatar .avatar-img,
.uf-chat-avatar .avatar-mini {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.uf-chat-avatar .avatar-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 50%;
}

.uf-chat-bubble {
    flex: 1;
    min-width: 0;
}

.uf-chat-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.uf-chat-author {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffe6bd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uf-chat-time {
    font-size: 0.78rem;
    color: #cbbba8;
    margin-left: 8px;
    flex-shrink: 0;
}

.uf-chat-content {
    font-size: 0.98rem;
    color: #ffffff;
    line-height: 1.45;
    word-break: break-word;
}

.uf-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    color: #cbbba8;
    font-size: 0.92rem;
    text-align: center;
    gap: 8px;
}

.uf-chat-empty-icon {
    font-size: 1.6rem;
    opacity: 0.6;
}

/* Height-adaptive constraints for smaller presentation screens */
@media (max-height: 860px) {
    .universe-fs-bottom-left-dock {
        width: 340px;
        bottom: 12px;
        left: 16px;
        gap: 6px;
    }
    .uf-lqr-card,
    .universe-fs-qr-card {
        padding: 16px 20px;
        gap: 8px;
    }
    .uf-lqr-img,
    .universe-fs-qr-img-large {
        width: 220px;
        height: 220px;
    }
    .universe-fs-chat-card {
        max-height: 250px;
        padding: 10px 12px;
    }
    .universe-fs-chat-messages {
        max-height: 170px;
    }
}

@keyframes ufFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4 Big Click-Mode Action Tiles below Universe Stage */
.universe-action-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0 10px 0;
}
.universe-action-bar[hidden] { display: none !important; }
.universe-action-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}
.universe-action-left .btn-universe-control:nth-child(3) { grid-column: 1 / -1; }

.btn-universe-control {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid var(--line-strong);
    padding: 13px 16px;
    min-height: 50px;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation;
}
.btn-universe-control:hover {
    background: rgba(212, 175, 114, 0.16);
    border-color: var(--gold-light);
    transform: translateY(-2px);
}
.btn-universe-control.highlight {
    background: linear-gradient(135deg, rgba(138, 40, 66, 0.65), rgba(64, 18, 34, 0.85));
    border-color: var(--gold);
}
.btn-universe-control.highlight span { color: var(--gold-light); }

.btn-universe-action {
    background: linear-gradient(135deg, #f3d59b 0%, #c69a55 100%);
    color: #130d18;
    font-weight: 800;
    border: 1px solid #ffe8be;
    border-radius: 14px;
    padding: 14px 18px;
    min-height: 52px;
    width: 100%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.94rem;
    box-shadow: 0 10px 26px -8px rgba(212, 175, 114, 0.6);
    transition: all 0.2s var(--ease);
    touch-action: manipulation;
}
.btn-universe-action:hover { transform: translateY(-2px); filter: brightness(1.06); }

.universe-bottom-bar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
}
.mission-bar-container { width: 100%; }
.mission-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mission-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.mission-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8a2842, #f3d59b, #38bdf8);
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(243, 213, 155, 0.6);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Moderator Team Management in Regie */
.team-list-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.team-member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(243, 213, 155, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    gap: 12px;
}
.team-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.team-member-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.badge-moderator {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-admin {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.4);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---------- Landing / Check-in (Futuristic Minimal Text) ---------- */
.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-top: 4px;
    margin: 0 auto;
    max-width: 480px;
}
.landing-form { order: 1; width: 100%; max-width: 460px; margin: 0 auto; }
.landing-hero { display: none !important; }

.landing-mobile-intro {
    display: block !important;
    text-align: center;
    margin-bottom: 14px;
}
.landing-mobile-title {
    display: none !important;
}

.landing-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    line-height: 1.02;
    color: #fff;
    margin: 12px 0 14px;
}
.landing-title em { font-style: italic; color: var(--gold-light); }
.landing-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 480px; line-height: 1.5; margin-bottom: 22px; }

.hero-pills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.hero-pill-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.hero-pill-icon {
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(212, 175, 114, 0.14);
    border: 1px solid rgba(212, 175, 114, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-pill-tile strong { display: block; font-size: 1rem; color: #fff; }
.hero-pill-tile span { font-size: 0.84rem; color: var(--ink-soft); }

.checkin-glass-card {
    padding: 24px 20px;
    border: 1.5px solid rgba(243, 213, 155, 0.32);
    box-shadow: var(--shadow-lg);
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
    border-radius: 18px;
    background: rgba(10, 8, 16, 0.8);
    border: 1px solid var(--line);
    gap: 6px;
}
.segmented .btn {
    min-height: 46px;
    border-radius: 14px;
    box-shadow: none;
    font-size: 0.9rem;
}
.segmented .btn-secondary { border-color: transparent; background: transparent; }

/* ---------- Chat (Clean & Futuristic) ---------- */
.chat-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.chat-box {
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: var(--glass-card);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: clamp(380px, calc(100dvh - 230px), 560px);
}
.chat-messages {
    background: transparent;
    padding: 16px;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: auto;
    scroll-behavior: auto;
}
.message-item { max-width: 90%; }
.message-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 16px;
    color: #fff;
}
.message-item.own .message-bubble {
    background: linear-gradient(135deg, rgba(138, 40, 66, 0.75), rgba(92, 24, 43, 0.85));
    border-color: rgba(243, 213, 155, 0.4);
}
.message-author { color: var(--gold-light); font-weight: 700; }
.chat-input-bar {
    border-top: 1px solid var(--line);
    background: rgba(14, 10, 22, 0.92);
    padding: 12px;
    gap: 10px;
}
.chat-input-bar textarea {
    border-radius: 16px;
    font-size: 16px;
    height: 50px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid var(--line-strong);
}
.chat-input-bar .btn { min-width: 56px; min-height: 50px; border-radius: 16px; font-size: 1.2rem; }

/* ---------- Connect View Mobile-First Subtabs & Panels ---------- */
.voting-subtab-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--line);
}
.voting-subtab-bar .tab-btn {
    flex: 1 1 0;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    flex-direction: row;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.voting-subtab-bar .tab-btn:hover {
    color: #F8FAFC;
    border-color: rgba(14, 165, 255, 0.4);
}
.voting-subtab-bar .tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%) !important;
    border: 1.5px solid rgba(14, 165, 255, 0.75) !important;
    box-shadow: 0 0 16px rgba(14, 165, 255, 0.35), inset 0 0 12px rgba(14, 165, 255, 0.15) !important;
}

.voting-subtab-bar { display: flex; }
.voting-subtab-panel { display: none; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box !important; }
.voting-subtab-panel.active { display: block !important; }

/* ---------- Networking & Leaderboard (1-Click Connect Cards) ---------- */
.networking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.attendees-scroll-box {
    max-height: calc(100vh - 290px);
    max-height: calc(100dvh - 290px);
    min-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
}
.attendee-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 0;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: transform 0.18s var(--ease), border-color 0.18s var(--ease);
}
.attendee-card:hover { transform: translateY(-1px); border-color: var(--gold-light); }
.attendee-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.attendee-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mutual-badge {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.45);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.leaderboard-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}
.leaderboard-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.leaderboard-table th {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--line);
    padding: 8px 6px;
}
.leaderboard-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 6px;
    font-size: 0.9rem;
    color: var(--ink);
    vertical-align: middle;
}
.leaderboard-table th:nth-child(1), .leaderboard-table td:nth-child(1) {
    width: 36px;
    text-align: center;
    padding-left: 4px;
}
.leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) {
    width: auto;
    min-width: 0;
}
.leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) {
    width: 84px;
    text-align: right;
    white-space: nowrap;
    padding-right: 8px;
}
.leaderboard-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

/* ---------- Event Pass View (#view-profile) ---------- */
.pass-card {
    background: radial-gradient(circle at 100% 0%, rgba(212, 175, 114, 0.18), rgba(24, 18, 32, 0.92) 65%);
    border: 1.5px solid var(--line-strong);
}
.pass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.pass-code-pill {
    font-family: ui-monospace, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    color: #130d18;
    background: linear-gradient(135deg, #f3d59b, #c69a55);
    padding: 8px 16px;
    border-radius: 14px;
    letter-spacing: 0.08em;
}
.pass-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* ---------- Moderator Console & User Profile Notifications ---------- */
.mod-notify-card,
#prof-notify-card {
    transition: all 0.3s ease;
}
.mod-notify-card.is-active,
#prof-notify-card.is-active {
    border-color: rgba(74, 222, 128, 0.4) !important;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
}
.mod-notify-card.is-alerting,
#prof-notify-card.is-alerting {
    animation: pulseNotifyBorder 1s infinite alternate;
}
@keyframes pulseNotifyBorder {
    0% { border-color: rgba(228, 193, 141, 0.3); box-shadow: 0 0 10px rgba(228, 193, 141, 0.1); }
    100% { border-color: rgba(228, 193, 141, 0.85); box-shadow: 0 0 25px rgba(228, 193, 141, 0.35); }
}

.timer-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.mod-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.mod-tabs-bar > button {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 120px;
}
.mod-tab-has-alert {
    background: rgba(239, 68, 68, 0.24) !important;
    border-color: rgba(239, 68, 68, 0.8) !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.45) !important;
    animation: modAlertPulse 2s infinite ease-in-out;
}
@keyframes modAlertPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.88; transform: scale(1.02); }
}
#mod-reports-alert-banner {
    transition: all 0.2s ease;
}
#mod-reports-alert-banner:hover {
    background: rgba(239, 68, 68, 0.26) !important;
    border-color: rgba(239, 68, 68, 0.7) !important;
    transform: translateY(-1px);
}
.mod-users-table th {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
}
.mod-users-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    font-size: 0.88rem;
}
.mod-users-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.btn-msg-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 4px;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    margin-left: auto;
}
.btn-msg-delete:hover {
    opacity: 1;
    transform: scale(1.2);
}
.btn-msg-delete-fs {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 4px;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    margin-left: auto;
}
.btn-msg-delete-fs:hover {
    opacity: 1;
    transform: scale(1.2);
}
.queue-item, .avatar-queue-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--ink);
}
.queue-content {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border-left-color: var(--gold);
}

/* ---------- Modals & Bottom Sheets ---------- */
.modal-backdrop, .modal-overlay, .info-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000 !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(2, 6, 23, 0.82) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}
.info-dialog { display: none; z-index: 100001 !important; }
.info-dialog.open { display: flex; }

.modal-card, .info-dialog-card {
    background: #161120;
    border: 1.5px solid var(--line-strong);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.92), 0 0 36px -8px rgba(0, 212, 255, 0.28) !important;
    animation: modalIn 0.28s var(--ease) both;
    width: 100%;
    max-width: 100%;
    max-height: calc(88dvh - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto;
    color: var(--ink);
    margin: 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px));
}
.info-dialog-card { padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { color: #fff; }
.modal-body { padding: 20px; }
.modal-footer { background: rgba(0, 0, 0, 0.25); border-top: 1px solid var(--line); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Golden Reveal Modal */
.golden-reveal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 5, 14, 0.94);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.golden-reveal-card {
    background: radial-gradient(ellipse at center, #3d242c 0%, #17111a 70%, #0d0b10 100%);
    border: 2px solid #f3d59b;
    border-radius: 26px;
    max-width: 680px;
    width: 100%;
    padding: 28px 20px;
    text-align: center;
    color: #f7efe4;
    box-shadow: 0 0 70px rgba(243, 213, 155, 0.45);
}
.golden-reveal-title { font-size: 0.78rem; letter-spacing: 0.22em; color: #f3d59b; font-weight: 700; margin-bottom: 8px; }
.golden-reveal-headline { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.2rem); color: #fff; margin-bottom: 20px; }
.golden-reveal-pair { display: flex; flex-direction: column; gap: 14px; margin: 18px 0; }
.golden-reveal-user { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(243, 213, 155, 0.4); border-radius: 18px; padding: 16px; flex: 1; }
.golden-reveal-user-name { font-size: 1.15rem; font-weight: 800; color: #ffe4b5; margin-top: 8px; }
.golden-reveal-user-role { font-size: 0.85rem; color: #c4b5a2; }
.golden-reveal-connector { font-size: 1.6rem; color: #f3d59b; }
.golden-reveal-quote { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: #f3d59b; margin-top: 14px; }

/* ---------- Footer & Toasts ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(10, 8, 16, 0.6);
    margin-top: auto;
}
.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--ink-soft);
}
.site-footer .footer-brand { font-family: var(--font-display); letter-spacing: 0.14em; color: var(--gold-light); font-size: 0.82rem; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer button.link {
    background: none; border: none; padding: 4px 0; cursor: pointer;
    font: inherit; color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.7rem;
}
.site-footer button.link:hover { color: var(--gold-light); }

.toast-stack {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
    z-index: 100010;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 5px 1fr auto;
    gap: 12px;
    align-items: center;
    background: rgba(20, 15, 29, 0.96);
    border: 1px solid var(--line-strong);
    color: #fff;
    border-radius: 16px;
    padding: 14px 14px 14px 0;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.85);
    font-size: 0.9rem;
    animation: toastIn 0.3s var(--ease) both;
    overflow: hidden;
}
.toast::before { content: ""; align-self: stretch; background: var(--gold-light); }
.toast.toast-success::before { background: #34d399; }
.toast.toast-warning::before { background: #fbbf24; }
.toast.toast-danger::before { background: #f87171; }
.toast-close { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   TABLET & DESKTOP ENHANCEMENTS (min-width: 640px / 768px / 960px)
   ===================================================================== */
@media (min-width: 640px) {
    .main-container { padding: 24px 20px 44px; }
    .card { padding: 26px; }
    .pill-selector-group { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 12px; }
    .optin-tiles-grid { grid-template-columns: 1fr 1fr; }
    .form-grid-2 { grid-template-columns: 1fr 1fr; }
    .quick-connect-form { flex-direction: row; }
    .quick-connect-form .btn { width: auto; }
    .attendees-search-input { max-width: 220px; }
    .pass-actions-grid { grid-template-columns: 1fr 1fr; }

    .matches-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

    .universe-hud { flex-direction: row; justify-content: space-between; align-items: center; }
    .universe-hud-right { width: auto; gap: 12px; }
    .star-floating-dock { left: auto; right: 18px; top: 18px; width: 360px; }

    .universe-stats-dock {
        bottom: 18px; left: 20px; right: 20px;
        display: flex; justify-content: space-between; align-items: flex-end;
    }
    .univ-stat-card { min-width: 140px; padding: 12px 20px; }
    .univ-stat-num { font-size: 1.75rem; }

    .golden-reveal-pair { flex-direction: row; align-items: center; }
    .modal-backdrop, .modal-overlay, .info-dialog { align-items: center; padding: 20px; }
    .modal-card { border-radius: 24px; max-width: 460px; }
    .info-dialog-card { border-radius: 24px; max-width: 680px; padding: 32px; }
}

@media (min-width: 768px) {
    :root { --header-h: 74px; }
    body { padding-bottom: 0; background-attachment: fixed; }

    .header-inner { padding: 12px 28px; }
    .brand-icon { width: 44px; height: 44px; }
    .brand-icon .brand-icon-logo-img { width: 36px; max-height: 25px; }
    .brand-title { font-size: 1.15rem; }
    .brand-subtitle { display: block; }
    #header-user-code { display: inline-flex; }

    /* Top Dock Navigation on Desktop */
    .nav-tabs {
        position: sticky;
        top: var(--header-h);
        bottom: auto;
        z-index: 50;
        border-top: none;
        border-bottom: 1px solid var(--line);
        padding: 6px 0;
        box-shadow: none;
    }
    .nav-tabs-inner {
        display: flex;
        justify-content: center;
        padding: 0 24px;
        gap: 10px;
    }
    .tab-btn {
        flex-direction: row;
        min-height: 46px;
        padding: 10px 18px;
        font-size: 0.82rem;
        gap: 8px;
    }
    .tab-btn .tab-label-long { display: inline; }
    .tab-btn .tab-label-short { display: none; }
    .badge-count { position: static; }

    .universe-container { padding: 22px 26px; border-radius: 28px; }
    .universe-canvas-wrapper { height: 540px; border-radius: 22px; }
    .universe-action-bar { flex-direction: row; justify-content: space-between; align-items: center; }
    .universe-action-left { display: flex; width: auto; gap: 10px; }
    .btn-universe-action { width: auto; padding: 13px 22px; }

    .timer-box { flex-direction: row; justify-content: space-between; align-items: center; }
    .toast-stack { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
}

@media (min-width: 960px) {
    .landing {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px);
        gap: 48px;
        align-items: center;
        min-height: calc(85vh - 120px);
        padding-top: 28px;
        max-width: 1100px;
        margin: 0 auto;
    }
    .landing-hero {
        display: block !important;
        order: 1;
        text-align: left;
    }
    .landing-hero .hero-pills-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .landing-form {
        order: 2;
        width: 100%;
        max-width: 460px;
        margin: 0 0 0 auto;
    }
    .landing-mobile-intro { display: none !important; }
    .checkin-glass-card { padding: 36px 32px; }
    .networking-grid { grid-template-columns: 1.05fr 0.95fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}


.view-section { display: none; }
.view-section.active { display: block; animation: viewEnter 0.35s var(--ease) both; }
.avatar-mini, #header-avatar-container img, #header-avatar-container .avatar-mini {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =====================================================================
   HEADER & UNIVERSE HUD OVERLAP FIX (MOBILE + DESKTOP + FULLSCREEN)
   ===================================================================== */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}
.brand > div:not(.brand-icon) {
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}
.brand-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

@media (max-width: 680px) {
    .header-inner {
        padding: 8px 12px;
        gap: 8px;
    }
    body.has-user-session .brand > div:not(.brand-icon),
    .header-inner:has(#user-header-status[style*="flex"]) .brand > div:not(.brand-icon) {
        display: none !important;
    }
    body.has-user-session .brand,
    .header-inner:has(#user-header-status[style*="flex"]) .brand {
        flex: 0 0 auto;
    }
    .user-status-bar {
        gap: 6px;
        max-width: calc(100% - 48px);
        justify-content: flex-end;
    }
}

.universe-hud {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 2px 4px 14px 4px !important;
    margin: 0 !important;
    z-index: 5;
}
.universe-hud-left {
    min-width: 0;
}
.universe-stat-quote {
    line-height: 1.45;
    word-break: break-word;
}
.universe-hud-right {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.universe-live-pill {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    flex-shrink: 0;
    margin: 0 !important;
}

@media (max-width: 639px) {
    .univ-stat-card,
    .univ-stat-card:last-child {
        max-width: none !important;
        margin-left: 0 !important;
        width: 100%;
    }
}

@media (min-width: 640px) {
    .universe-hud {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .universe-hud-right {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}


/* ==========================================================================
   1:1 PRIVATE CHAT & BLOCK FUNCTION LUXURY STYLES (v23)
   ========================================================================== */

.btn-danger-soft {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-danger-soft:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
    border: 1px solid rgba(239, 68, 68, 0.8) !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    transition: all 0.2s ease;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    transform: translateY(-1px);
}

/* ==========================================================================
   1:1 PRIVATE CHAT MODAL (MOBILE-FIRST ARCHITECTURE)
   ========================================================================== */

/* Mobile-First: Default is 100% Edge-to-Edge Sheet, dynamically bound to Visual Viewport */
.private-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    margin: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100dvh;
    height: var(--private-chat-vv-height, 100dvh);
    top: var(--private-chat-vv-top, 0);
    left: 0;
    right: 0;
    bottom: auto;
    overflow: hidden;
    overscroll-behavior: none;
}

@media (max-width: 899px), (max-height: 599px) {
    html.private-chat-open,
    body.private-chat-open {
        overflow: hidden !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overscroll-behavior: none !important;
    }
    body.private-chat-open.keyboard-open .private-chat-input-bar {
        padding-bottom: 8px;
    }
}

.private-chat-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 5, 12, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.22s ease-out;
}

.private-chat-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    height: var(--private-chat-vv-height, 100dvh);
    max-height: none;
    background: linear-gradient(180deg, rgba(24, 18, 30, 0.98) 0%, rgba(14, 10, 18, 0.99) 100%);
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    animation: fadeIn 0.2s ease-out;
}

/* Chat Header */
.private-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px) 12px 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(243, 213, 155, 0.15);
    flex-shrink: 0;
}

.private-chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.private-chat-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.private-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #f3d59b;
    box-shadow: 0 0 10px rgba(243, 213, 155, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #140e18;
    background: radial-gradient(circle at 30% 30%, #fff7eb, #e4c18d 70%, #6e4f2a);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.private-chat-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 14px rgba(243, 213, 155, 0.55);
}

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

.private-chat-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    display: inline-block;
    flex-shrink: 0;
}
.chat-status-dot.is-offline {
    display: none !important;
}

.private-chat-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.private-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.private-chat-header-actions .btn {
    padding: 5px 8px !important;
    font-size: 0.8rem !important;
}

.private-chat-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.private-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

@media (max-width: 540px) {
    .private-chat-header {
        padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 8px) 10px 8px 10px;
        gap: 8px;
    }
    .private-chat-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    .private-chat-name {
        font-size: 0.92rem;
    }
    .private-chat-meta {
        font-size: 0.72rem;
    }
}

@media (max-width: 440px) {
    .private-chat-header-actions .chat-action-label {
        display: none !important;
    }
    .private-chat-header-actions .btn {
        padding: 5px 8px !important;
        font-size: 0.82rem !important;
    }
}

/* Privacy Security Banner */
.private-chat-security-banner {
    padding: 6px 12px;
    font-size: 0.72rem;
    color: var(--univ-gold-light);
    background: rgba(228, 193, 141, 0.07);
    border-bottom: 1px solid rgba(243, 213, 155, 0.12);
    text-align: center;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Private Chat Notification Permission Prompt Banner */
.private-chat-notify-banner {
    padding: 8px 12px;
    font-size: 0.8rem;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.12));
    border-bottom: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    animation: fadeIn 0.3s ease;
}
.btn-xs {
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Messages Scroll Container (Edge-to-edge touch scroll) */
.private-chat-messages-container {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 14px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: radial-gradient(circle at 50% 30%, rgba(228, 193, 141, 0.03) 0%, transparent 70%);
}

.private-chat-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}
.private-chat-empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--gold-light);
}

/* Chat Bubbles */
.private-chat-bubble-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 84%;
    animation: fadeIn 0.2s ease-out;
}
.private-chat-bubble-wrapper.is-mine {
    align-self: flex-end;
    align-items: flex-end;
}
.private-chat-bubble-wrapper.is-theirs {
    align-self: flex-start;
    align-items: flex-start;
}

.private-chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.45;
    word-break: break-word;
    position: relative;
}

.bubble-mine {
    background: linear-gradient(135deg, #8a1526 0%, #520914 100%);
    border: 1px solid rgba(243, 213, 155, 0.35);
    color: #fffaf0;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(138, 21, 38, 0.3);
}

.bubble-theirs {
    background: rgba(28, 13, 21, 0.85);
    border: 1px solid rgba(228, 193, 141, 0.18);
    color: #f7efe4;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.private-chat-time {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Chat Input Bar */
.private-chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom, 10px)) 12px;
    background: rgba(18, 13, 22, 0.98);
    border-top: 1px solid rgba(243, 213, 155, 0.18);
    flex-shrink: 0;
}

.private-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(243, 213, 155, 0.24);
    border-radius: 12px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 16px; /* 16px prevents iOS Safari auto-zoom on input focus */
    outline: none;
    transition: all 0.2s ease;
}
.private-chat-input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 12px rgba(243, 213, 155, 0.2);
    background: rgba(255, 255, 255, 0.09);
}

/* Desktop & Large Screen Override (>= 900px wide AND >= 600px tall) */
@media (min-width: 900px) and (min-height: 600px) {
    .private-chat-modal {
        align-items: center;
        justify-content: center;
        padding: 20px;
        height: 100vh;
        top: 0;
        bottom: 0;
    }

    .private-chat-dialog {
        max-width: 540px;
        height: 85vh;
        max-height: 720px;
        border: 1.5px solid rgba(243, 213, 155, 0.35);
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(228, 193, 141, 0.15);
        flex: none;
    }

    .private-chat-header {
        padding: 14px 18px;
    }

    .private-chat-messages-container {
        padding: 16px 16px 24px 16px;
    }

    .private-chat-input-bar {
        padding: 12px 16px;
    }
}

.btn-send {
    padding: 10px 16px !important;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Block Confirmation Dialog */
.block-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.block-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
}
.block-confirm-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, #1c141d 0%, #120b14 100%);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(239, 68, 68, 0.2);
    text-align: center;
    animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.block-confirm-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: inline-block;
}
.block-confirm-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
}
.block-confirm-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 22px;
}
.block-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Active Connections Card Deck in Matches Tab */
.active-connections-section {
    margin-bottom: 28px;
    padding: 16px;
    background: rgba(228, 193, 141, 0.04);
    border: 1px solid rgba(243, 213, 155, 0.22);
    border-radius: 16px;
}
.active-connections-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.active-connections-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.active-connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.connected-partner-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(243, 213, 155, 0.28);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}
.connected-partner-card:hover {
    border-color: rgba(243, 213, 155, 0.55);
    background: rgba(255, 255, 255, 0.06);
}
.connected-partner-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.connected-partner-unread-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: auto;
}

/* =====================================================================
   Incoming Connection Requests Section (Eingehende Vernetzungsanfragen)
   ===================================================================== */
.incoming-requests-section {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(158, 27, 47, 0.22) 0%, rgba(32, 13, 23, 0.65) 100%);
    border: 1.5px solid rgba(243, 213, 155, 0.4);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(168, 27, 48, 0.2);
    animation: fadeIn 0.3s ease;
}
.incoming-requests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.incoming-requests-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.incoming-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.incoming-request-card {
    background: rgba(24, 10, 18, 0.88);
    border: 1px solid rgba(243, 213, 155, 0.32);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.incoming-request-card:hover {
    border-color: var(--gold-light);
    transform: translateY(-2px);
}
.incoming-request-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.incoming-request-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 4px;
}

/* =====================================================================
   Connection Request Toast Banner (Echtzeit-Push bei Anfrage)
   ===================================================================== */
.connection-request-toast {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100005;
    width: 92%;
    max-width: 440px;
    animation: slideDownToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDownToast {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.conn-toast-inner {
    background: linear-gradient(135deg, rgba(38, 14, 26, 0.98) 0%, rgba(19, 8, 15, 0.98) 100%);
    border: 1.5px solid var(--gold-light);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(243, 213, 155, 0.35);
}
.conn-toast-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--gold-light);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 213, 155, 0.15);
    font-weight: 800;
    color: var(--gold-light);
}
.conn-toast-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.conn-toast-body {
    flex: 1;
    min-width: 0;
}
.conn-toast-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}
.conn-toast-text {
    font-size: 0.78rem;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.conn-toast-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Hard guarantee: Registrieren / Anmelden (#view-auth) is 100% hidden when user is logged in */
body.has-user-session #view-auth {
    display: none !important;
}

/* PIN Gate: Locked tabs and prominent required PIN card */
body.pin-locked #app-nav .tab-btn:not(#tab-nav-profile) {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
}

#prof-pin-card.pin-required {
    border: 1.5px solid var(--gold) !important;
    box-shadow: 0 0 25px rgba(228, 193, 141, 0.25) !important;
    animation: pinCardPulse 2.5s infinite ease-in-out;
}

@keyframes pinCardPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(228, 193, 141, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(228, 193, 141, 0.45);
        border-color: #ffd88a !important;
    }
}

body.pin-locked #app-nav .tab-btn:not(#tab-nav-profile)::after {
    content: " 🔒";
    font-size: 0.72rem;
    margin-left: 3px;
    opacity: 0.85;
}

/* Quick-Connect View Subtabs & Panels (KI-Matches, Gäste & Vernetzen, Live-Ranking) */
.voting-subtab-bar {
    display: flex !important;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--line);
    overflow-x: auto;
}
.voting-subtab-bar .tab-btn {
    flex: 1 1 0;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    flex-direction: row;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.voting-subtab-bar .tab-btn:hover {
    color: #F8FAFC;
    border-color: rgba(14, 165, 255, 0.4);
}
.voting-subtab-bar .tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%) !important;
    border: 1.5px solid rgba(14, 165, 255, 0.75) !important;
    box-shadow: 0 0 16px rgba(14, 165, 255, 0.35), inset 0 0 12px rgba(14, 165, 255, 0.15) !important;
}
.voting-subtab-panel {
    display: none;
}
.voting-subtab-panel.active {
    display: block !important;
}

/* Mobile Viewport & Active Chat Styles */
:root {
    --vvh: 100vh;
}
body.view-active-chat #view-chat {
    min-height: calc(var(--vvh, 100vh) - 120px);
    height: auto;
}
body.view-active-chat.keyboard-open .app-header {
    display: none;
}

/* ==========================================================================
   INTERACTIVE CIRCULAR AVATAR CROPPER MODAL
   ========================================================================== */
.avatar-cropper-overlay {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.avatar-cropper-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 8, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.avatar-cropper-dialog {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: linear-gradient(180deg, #181222 0%, #0d0a14 100%);
    border: 1.5px solid rgba(228, 193, 141, 0.35);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(228, 193, 141, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.avatar-cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.avatar-cropper-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-cropper-icon {
    font-size: 1.5rem;
}

.avatar-cropper-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.avatar-cropper-subtitle {
    font-size: 0.8rem;
    color: var(--gold-light, #f3d59b);
    opacity: 0.85;
    margin-top: 2px;
}

.avatar-cropper-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.avatar-cropper-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.avatar-cropper-viewport-wrap {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #060408;
    border-radius: 16px;
    border: 1px solid rgba(228, 193, 141, 0.15);
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

#avatar-cropper-canvas {
    display: block;
    max-width: 100%;
    width: 320px;
    height: 320px;
    border-radius: 12px;
    cursor: grab;
    touch-action: none;
}

#avatar-cropper-canvas.is-dragging {
    cursor: grabbing;
}

.avatar-cropper-drag-hint {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted, #9ca3af);
    display: flex;
    align-items: center;
    gap: 4px;
}

.avatar-cropper-controls {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar-cropper-zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.avatar-crop-zoom-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(228, 193, 141, 0.1);
    border: 1px solid rgba(228, 193, 141, 0.3);
    color: var(--gold-light, #f3d59b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.avatar-crop-zoom-btn:hover {
    background: rgba(228, 193, 141, 0.22);
    border-color: rgba(228, 193, 141, 0.6);
}

.avatar-crop-slider-container {
    flex: 1;
    display: flex;
    align-items: center;
}

#avatar-cropper-zoom-slider {
    width: 100%;
    accent-color: #e4c18d;
    cursor: pointer;
    height: 6px;
    border-radius: 3px;
}

.avatar-cropper-quick-tools {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.avatar-cropper-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    margin-top: 16px;
}

@media (max-width: 400px) {
    #avatar-cropper-canvas {
        width: 270px;
        height: 270px;
    }
    .avatar-cropper-dialog {
        padding: 14px;
    }
}


/* =====================================================================
   Private Chat Unread Notifications & Interactive Toasts
   ===================================================================== */
.connected-partner-card.has-unread {
    border-color: #f59e0b !important;
    background: linear-gradient(145deg, rgba(38, 20, 30, 0.9), rgba(24, 12, 20, 0.98)) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 18px rgba(245, 158, 11, 0.35) !important;
    animation: unreadCardPulse 3s infinite ease-in-out;
}

@keyframes unreadCardPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(245, 158, 11, 0.25);
        border-color: rgba(245, 158, 11, 0.75);
    }
    50% {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 158, 11, 0.55);
        border-color: #fbbf24;
    }
}

.connected-partner-unread-badge {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: auto;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.btn-has-unread {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #1a0f02 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.45) !important;
    animation: unreadBtnGlow 2.2s infinite ease-in-out !important;
}

@keyframes unreadBtnGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 22px rgba(245, 158, 11, 0.75);
        transform: translateY(-1px);
    }
}

.badge-unread-pill {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 6px;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.badge-unread-indicator {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: unreadCardPulse 3s infinite ease-in-out;
}

.subtab-unread-dot {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s infinite ease-in-out;
}

.badge-count.has-unread-pmsg {
    background: linear-gradient(135deg, #ef4444, #f59e0b) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
    animation: badgePulse 1.8s infinite ease-in-out !important;
}

/* Interactive Floating Private Message Toast Card */
.private-message-toast-card {
    position: fixed;
    top: 72px;
    right: 16px;
    max-width: 380px;
    width: calc(100vw - 32px);
    background: linear-gradient(165deg, rgba(38, 14, 25, 0.98), rgba(20, 8, 14, 0.98));
    border: 1.5px solid #f59e0b;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 158, 11, 0.35);
    z-index: 100050;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

@keyframes toastSlideDown {
    from { opacity: 0; transform: translateY(-24px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.private-message-toast-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.55);
    transform: translateY(-2px);
}

/* =====================================================================
   Progressive Web App (PWA) & Native App Haptics / Fullscreen
   ===================================================================== */
html, body {
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* App Header & Navigation Safe Area Support */
.app-header {
    padding-top: var(--sat, env(safe-area-inset-top, 0px));
}

.nav-tabs {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
}

/* Prevent accidental text selections on native interactive elements */
.nav-tabs, .tab-btn, .btn, .brand, .badge, .active-connections-header,
.incoming-requests-header, .stat-pill, .hero-pill, .pwa-install-banner {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* PWA Offline Reconnection Bar */
.pwa-offline-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: linear-gradient(90deg, #d97706, #b45309);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    animation: pwaSlideDownBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: env(safe-area-inset-top);
}

@keyframes pwaSlideDownBar {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.pwa-offline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fef3c7;
    box-shadow: 0 0 6px rgba(254, 243, 199, 0.8);
    animation: pwaPulseDot 1.4s infinite ease-in-out;
}

@keyframes pwaPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}

/* Luxury PWA Install Banner */
.pwa-install-banner {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    max-width: 460px;
    margin: 0 auto;
    z-index: 8400; /* Stays below all modals (8500 / 100000) */
    background: linear-gradient(145deg, rgba(32, 14, 25, 0.98), rgba(16, 8, 14, 0.98));
    border: 1.5px solid #f59e0b;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.85), 0 0 24px rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: pwaSlideUpBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.keyboard-open .pwa-install-banner,
body.chat-input-focused .pwa-install-banner,
body.is-presentation .pwa-install-banner {
    display: none !important;
}

@keyframes pwaSlideUpBanner {
    from { transform: translateY(60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-install-banner-inner {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
}

.pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-title {
    font-weight: 800;
    font-size: 0.92rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.pwa-install-sub {
    font-size: 0.74rem;
    color: var(--gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-dismiss {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #bbb;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.pwa-install-dismiss:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* iOS Safari PWA Guide Modal & WebKit Enhancement */
#pwa-ios-modal.modal-backdrop {
    z-index: 100000 !important;
    background: rgba(8, 4, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pwa-ios-card {
    max-width: 440px;
    width: 92%;
    background: linear-gradient(150deg, rgba(30, 14, 24, 0.98), rgba(16, 7, 14, 0.98));
    border: 1.5px solid #f59e0b;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.35);
    animation: pwaModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaModalPop {
    from { transform: scale(0.92) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.pwa-ios-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
}

.pwa-ios-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 11px 13px;
    border-radius: 14px;
}

.pwa-ios-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a0f02;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.pwa-ios-step-icon {
    width: 22px;
    height: 22px;
    stroke: #fbbf24;
    flex-shrink: 0;
}

.pwa-ios-step-text {
    font-size: 0.86rem;
    line-height: 1.4;
    color: #e5e5e5;
    flex: 1;
}

.pwa-ios-step-text strong {
    color: #fbbf24;
}

.pwa-ios-badge-add {
    display: inline-flex;
    align-items: center;
    background: #007aff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.pwa-ios-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    padding: 8px 12px;
    line-height: 1.35;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.pwa-ios-pointer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-light);
    animation: pwaBouncePointer 1.5s infinite ease-in-out;
}

@keyframes pwaBouncePointer {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.pwa-ios-pointer-arrow {
    font-size: 1.1rem;
    color: #f59e0b;
}

/* Native App Standalone Display Enhancements */
@media all and (display-mode: standalone), (display-mode: fullscreen) {
    #pwa-install-banner, #pwa-profile-install-card {
        display: none !important;
    }
}

/* ---------- Partner Profile & Synergy View (Instagram Full-Page Style) ---------- */
#partner-profile-modal.modal-backdrop,
#private-report-modal.modal-backdrop {
    z-index: 100002 !important;
}

#partner-profile-modal.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #07090e !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.partner-profile-modal-card {
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    background: #07090e !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

#partner-profile-modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 0 90px 0 !important;
    max-height: none !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#partner-profile-modal-body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Instagram-Style Profile Top Navigation Bar */
.insta-profile-top-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: auto !important;
    min-height: calc(52px + var(--sat, env(safe-area-inset-top, 0px))) !important;
    padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px) 16px 10px 16px !important;
    background: rgba(7, 9, 14, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.insta-top-back-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 8px;
    transition: opacity 0.15s ease;
}

.insta-top-back-btn:hover {
    opacity: 0.8;
}

.insta-top-username {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    flex: 1;
}

.insta-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.partner-profile-modal-card .profile-cover-hero {
    min-height: 195px;
    margin-bottom: 40px;
    position: relative;
    border-radius: 0 !important;
}

.partner-profile-modal-card .profile-cover-bg {
    border-radius: 0 !important;
    bottom: -160px;
}

.partner-profile-modal-card .profile-cover-topbar {
    display: none !important;
}

.partner-profile-modal-inner {
    padding: 0 14px 20px;
}

.partner-locked-privacy-card {
    grid-column: 1 / -1;
    padding: 24px 18px;
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(14, 165, 255, 0.24);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 6px 0 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.partner-locked-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.partner-locked-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 6px;
}

.partner-locked-desc {
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto 16px;
}

.partner-locked-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    color: #94a3b8;
    font-style: italic;
}

#partner-profile-modal-body::-webkit-scrollbar {
    width: 5px;
}

#partner-profile-modal-body::-webkit-scrollbar-thumb {
    background: rgba(243, 213, 155, 0.3);
    border-radius: 4px;
}

.connected-partner-card-header {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
    border-radius: 12px;
    padding: 6px 8px;
    margin: -6px -8px 8px -8px;
}

.connected-partner-card-header:hover,
.connected-partner-card-header:active {
    background: rgba(243, 213, 155, 0.09);
}

.partner-avatar-clickable {
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.partner-avatar-clickable:hover,
.partner-avatar-clickable:active {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(243, 213, 155, 0.6) !important;
}

/* ---------- Event Check-in Banner for Returning Users ---------- */
.event-checkin-banner-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.16) 0%, rgba(20, 20, 24, 0.96) 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.1);
    animation: fadeInCheckinBanner 0.35s ease-out;
}

@keyframes fadeInCheckinBanner {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-checkin-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.event-checkin-banner-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.event-checkin-banner-text {
    flex: 1;
    min-width: 180px;
}

.event-checkin-banner-text strong {
    color: var(--gold);
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.event-checkin-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.event-checkin-banner-head strong {
    margin-bottom: 0;
}

.event-checkin-collapse-btn {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.event-checkin-collapse-btn:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.34);
}

.event-checkin-banner-card.is-collapsed {
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.event-checkin-banner-card.is-collapsed .event-checkin-banner-content {
    gap: 8px;
    flex-wrap: nowrap;
}

.event-checkin-banner-card.is-collapsed .event-checkin-banner-icon {
    font-size: 1.15rem;
}

.event-checkin-banner-card.is-collapsed .event-checkin-banner-text {
    min-width: 0;
}

.event-checkin-banner-card.is-collapsed .event-checkin-banner-head {
    margin-bottom: 0;
}

.event-checkin-banner-card.is-collapsed .event-checkin-banner-head strong {
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-checkin-banner-card.is-collapsed .event-checkin-banner-desc,
.event-checkin-banner-card.is-collapsed .event-checkin-scan-btn {
    display: none !important;
}

.event-checkin-banner-text p {
    color: var(--text-muted);
    font-size: 0.83rem;
    margin: 0;
    line-height: 1.4;
}

/* Event Schedule Banner & Landing Display */
.landing-event-banner {
    margin: 18px 0 20px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(20, 14, 24, 0.7));
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(212, 175, 55, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-event-banner:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.2);
}

.landing-event-banner-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}

.landing-event-banner-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-event-banner-icon {
    font-size: 1.7rem;
    line-height: 1;
}

.landing-event-banner-text strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.landing-event-banner-text span {
    color: var(--gold-light);
    font-size: 0.82rem;
}

.landing-mobile-event-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    cursor: pointer;
}

/* Event Schedule & Calendar Modal */
.event-schedule-modal-card {
    max-width: 520px;
    width: 92%;
    background: rgba(18, 12, 22, 0.96);
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.event-schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.event-schedule-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.event-schedule-icon {
    font-size: 1.6rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.event-schedule-content {
    flex: 1;
    min-width: 0;
}

.event-schedule-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 2px;
}

.event-schedule-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    display: block;
}

.event-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.84rem;
    color: var(--gold);
    text-decoration: none;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    transition: background 0.2s, border-color 0.2s;
}

.event-maps-btn:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold);
}

.event-checkin-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
}

/* ==========================================================================
   INSTAGRAM-STYLE PROFILE & CONTENT GALLERY
   ========================================================================== */

.insta-profile-container {
    max-width: 580px;
    margin: 0 auto;
    padding: 8px 12px 30px;
}

.insta-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insta-top-handle {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.insta-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #0b060d;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 900;
}

.insta-gear-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--gold-light);
    transition: transform 0.2s, background 0.2s;
}

.insta-gear-btn:hover {
    transform: rotate(45deg);
    background: rgba(251, 191, 36, 0.16);
    border-color: var(--gold);
}

.insta-header-card {
    padding: 16px 4px 10px;
}

.insta-header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.insta-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.insta-avatar-ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #d97706, #f59e0b, #ec4899, #8b5cf6, #eab308);
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s;
}

.insta-avatar-ring:hover {
    transform: scale(1.04);
}

.insta-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #110715;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0b060d;
}

.insta-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-avatar-placeholder {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gold-light);
}

.insta-avatar-edit-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--gold);
    color: #0b060d;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0b060d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.insta-avatar-status-pill {
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
}

.insta-stats-row {
    display: flex;
    flex: 1;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.insta-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.insta-stat-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.insta-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.insta-stat-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}

.insta-bio-section {
    margin-top: 14px;
}

.insta-fullname-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.insta-fullname {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.insta-code-tag {
    display: none !important;
}

.insta-bio-role {
    font-size: 0.88rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-top: 3px;
}

.insta-bio-desc {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-top: 6px;
    white-space: pre-line;
}

.insta-bio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.insta-tag-chip {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3d59b;
}

.insta-action-bar {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.insta-action-btn {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.insta-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.insta-action-icon-btn {
    width: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.insta-action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Story Highlights */
.insta-highlights-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 16px 2px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.insta-highlights-strip::-webkit-scrollbar {
    display: none;
}

.insta-highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    cursor: pointer;
}

.insta-highlight-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(251, 191, 36, 0.5);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.2s, border-color 0.2s;
}

.insta-highlight-item:hover .insta-highlight-circle {
    transform: scale(1.06);
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
}

.insta-highlight-label {
    font-size: 0.69rem;
    color: #cbd5e1;
    max-width: 66px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tabs & Content Grid */
.insta-grid-nav {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.insta-grid-nav::-webkit-scrollbar {
    display: none;
}

.insta-grid-tab {
    flex: 1 0 auto;
    min-width: fit-content;
    padding: 12px 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.insta-grid-tab.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.insta-content-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 3px;
    padding-bottom: 30px;
}

.insta-grid-tile {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.insta-grid-tile:hover {
    opacity: 0.88;
}

.insta-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-tile-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(11, 6, 13, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(243, 213, 155, 0.3);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.68rem;
    color: #fff;
    pointer-events: none;
    z-index: 2;
}

.insta-folder-tile {
    background: linear-gradient(135deg, rgba(32, 18, 26, 0.95), rgba(16, 8, 14, 0.98));
    border: 1px solid rgba(243, 213, 155, 0.28);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.22s ease;
}

.insta-folder-tile:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(228, 193, 141, 0.2);
}

.insta-folder-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 6px;
    background: linear-gradient(to top, rgba(10, 6, 12, 0.95) 0%, rgba(10, 6, 12, 0.75) 75%, transparent 100%);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.insta-folder-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.insta-folder-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(11, 6, 13, 0.85);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(243, 213, 155, 0.35);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold-light);
    z-index: 2;
}

.insta-folder-empty-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    text-align: center;
    z-index: 1;
}

.insta-folder-empty-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
    color: rgba(243, 213, 155, 0.85);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.insta-folder-empty-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.insta-folder-empty-count {
    font-size: 0.65rem;
    color: var(--gold-light);
    margin-top: 3px;
    font-weight: 600;
}

.insta-add-tile {
    aspect-ratio: 1 / 1;
    border: 1px dashed rgba(243, 213, 155, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insta-add-tile:hover {
    border-color: var(--gold);
    background: rgba(228, 193, 141, 0.08);
    transform: translateY(-2px);
}

.insta-tile-card {
    width: 100%;
    height: 100%;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.insta-tile-icon {
    font-size: 1.25rem;
}

.insta-tile-type {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gold-light);
    letter-spacing: 0.05em;
}

.insta-tile-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modals for Settings & Quick Edit (Centered Floating Cards on iOS & Android) */
.insta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.84) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: max(16px, env(safe-area-inset-top, 16px)) max(14px, env(safe-area-inset-right, 14px)) max(24px, env(safe-area-inset-bottom, 24px)) max(14px, env(safe-area-inset-left, 14px)) !important;
    z-index: 100000 !important;
    animation: fadeIn 0.2s ease-out;
}

@media (min-width: 600px) {
    .insta-modal-overlay {
        align-items: center !important;
    }
}

.insta-modal-sheet {
    max-width: 480px;
    width: 100%;
    max-height: calc(88dvh - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: var(--lg-surface-elevated) !important;
    backdrop-filter: var(--lg-blur-heavy) !important;
    -webkit-backdrop-filter: var(--lg-blur-heavy) !important;
    border: 1px solid rgba(56, 189, 248, 0.42) !important;
    border-radius: 24px !important;
    padding: 20px 20px 22px !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.92), 0 0 36px -8px rgba(0, 212, 255, 0.32) !important;
    margin: auto !important;
}

@media (min-width: 600px) {
    .insta-modal-sheet {
        border-radius: 24px !important;
    }
}

.insta-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 16px;
}

.insta-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insta-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold-light);
    margin: 0;
}

.insta-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.insta-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* =====================================================================
   EVENT GALLERY & FOLDERS ARCHITECTURE (LUXURY OBSIDIAN / GOLD)
   ===================================================================== */
.gallery-section-container {
    width: 100%;
    margin-top: 6px;
    padding-bottom: 24px;
}

.gallery-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.gallery-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.gallery-folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

@media (max-width: 580px) {
    .gallery-folders-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-folder-card {
    background: linear-gradient(135deg, rgba(25, 14, 20, 0.85), rgba(12, 6, 10, 0.95));
    border: 1px solid rgba(243, 213, 155, 0.22);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.gallery-folder-card:hover {
    transform: translateY(-2px);
    border-color: rgba(243, 213, 155, 0.5);
    box-shadow: 0 8px 24px rgba(228, 193, 141, 0.15);
}

.gallery-folder-cover {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-folder-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-folder-card:hover .gallery-folder-cover-img {
    transform: scale(1.04);
}

.gallery-folder-cover-placeholder {
    font-size: 2.5rem;
    color: rgba(243, 213, 155, 0.35);
}

.gallery-folder-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(11, 6, 13, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(243, 213, 155, 0.3);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-light);
}

.gallery-folder-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-folder-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.25;
}

.gallery-folder-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-folder-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
}

/* Folder View Inside */
.gallery-folder-view-header {
    background: rgba(228, 193, 141, 0.04);
    border: 1px solid rgba(243, 213, 155, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 12px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gallery-back-btn:hover {
    background: rgba(228, 193, 141, 0.2);
    border-color: var(--gold);
    color: var(--gold-light);
}

.gallery-folder-details-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.gallery-folder-details-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.gallery-header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

@media (min-width: 768px) {
    .gallery-photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 8px;
    }
}

.gallery-photo-tile {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    cursor: pointer;
}

.gallery-photo-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.gallery-photo-tile:hover .gallery-photo-tile-img {
    transform: scale(1.05);
}

.gallery-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 6px 8px;
}

.gallery-photo-tile:hover .gallery-tile-overlay,
.gallery-photo-tile:focus-within .gallery-tile-overlay {
    opacity: 1;
}

@media (max-width: 640px) {
    .gallery-tile-overlay {
        opacity: 0.92;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 50%);
    }
}

.gallery-tile-btn {
    background: rgba(11, 6, 13, 0.82);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(243, 213, 155, 0.35);
    color: var(--gold-light);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.gallery-tile-btn:hover {
    background: var(--gold);
    color: #0b060d;
    border-color: #fff;
    transform: scale(1.1);
}

.gallery-tile-btn-danger {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.gallery-tile-btn-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.gallery-lightbox-img {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background: #000;
}

.gallery-tile-cover-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(11, 6, 13, 0.9);
    backdrop-filter: blur(6px);
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.gallery-tile-btn-star {
    color: #e2e8f0;
}

.gallery-tile-btn-star.is-cover {
    background: var(--gold) !important;
    color: #0b060d !important;
    border-color: #fff !important;
    box-shadow: 0 0 8px rgba(243, 213, 155, 0.6);
}

.gallery-tile-actions-left {
    display: flex;
    gap: 4px;
    align-items: center;
}

.gallery-tile-actions-right {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* =====================================================================
   ABOUT / INFO PAGE ("Was ist Das Afterwork?") & LOGIN LINK CARD
   ===================================================================== */
.landing-about-link-wrap {
    margin-top: 14px;
    width: 100%;
}

.landing-about-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(228, 193, 141, 0.09) 0%, rgba(158, 27, 47, 0.14) 55%, rgba(20, 9, 15, 0.85) 100%);
    border: 1px solid rgba(243, 213, 155, 0.34);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.landing-about-link:hover {
    transform: translateY(-2px);
    border-color: var(--gold-light);
    box-shadow: 0 14px 32px -10px rgba(243, 213, 155, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    text-shadow: none;
}

.landing-about-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(243, 213, 155, 0.14);
    border: 1px solid rgba(243, 213, 155, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.landing-about-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.landing-about-text strong {
    font-size: 0.94rem;
    font-weight: 700;
    color: #fff;
}

.landing-about-text span {
    font-size: 0.81rem;
    color: var(--gold-light);
    font-weight: 500;
}

/* Dedicated /was-ist-das-afterwork Page Styles */
body.about-body {
    padding-bottom: 24px;
}

.about-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.about-shell {
    max-width: 1060px;
    margin: 0 auto;
    padding: 22px 16px 48px;
    width: 100%;
    flex: 1;
}

.about-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 36px 24px 34px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(680px 320px at 50% 0%, rgba(228, 193, 141, 0.14) 0%, transparent 70%),
        radial-gradient(520px 260px at 85% 95%, rgba(158, 27, 47, 0.24) 0%, transparent 70%),
        var(--glass-card-elevated);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
}

.about-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px auto 18px;
}

.about-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.65));
}

.about-logo-sep {
    font-family: var(--font-display);
    color: var(--gold-light);
    font-size: 1.25rem;
    opacity: 0.7;
}

.about-hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    line-height: 1.12;
    color: #fff;
    margin: 10px auto 14px;
    max-width: 780px;
}

.about-hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.about-lead {
    font-size: clamp(0.98rem, 2.2vw, 1.12rem);
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 720px;
    margin: 0 auto 24px;
}

.about-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.about-pill-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.about-pill-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gold-light);
    background: rgba(212, 175, 114, 0.1);
    border: 1px solid rgba(212, 175, 114, 0.28);
    padding: 5px 12px;
    border-radius: 999px;
}

.about-section {
    margin-bottom: 34px;
}

.about-section-head {
    text-align: center;
    margin-bottom: 20px;
}

.about-section-head h2 {
    font-size: clamp(1.45rem, 3.2vw, 2.05rem);
    color: #fff;
    margin: 6px 0 8px;
}

.about-section-head p {
    color: var(--ink-soft);
    font-size: 0.94rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.55;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

.about-feature-card {
    background: var(--glass-card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-md);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.about-feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.about-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(228, 193, 141, 0.18), rgba(158, 27, 47, 0.24));
    border: 1px solid rgba(243, 213, 155, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.about-feature-card h3 {
    font-size: 1.15rem;
    color: var(--gold-bright);
    margin: 2px 0 0;
}

.about-feature-card p {
    font-size: 0.91rem;
    color: var(--ink-soft);
    line-height: 1.58;
    margin: 0;
}

.about-feature-list {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.about-feature-list li {
    font-size: 0.84rem;
    color: var(--ink);
    padding-left: 18px;
    position: relative;
    line-height: 1.45;
}

.about-feature-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-light);
    font-size: 0.72rem;
}

.about-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.about-step-card {
    background: rgba(20, 9, 15, 0.76);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px 18px;
    position: relative;
}

.about-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fcefd6, #c69a55);
    color: #160509;
    font-weight: 800;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.about-step-card h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 6px;
}

.about-step-card p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.52;
    margin: 0;
}

.about-coop-card {
    background: linear-gradient(135deg, rgba(158, 27, 47, 0.18) 0%, rgba(20, 9, 15, 0.9) 65%);
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    padding: 26px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

@media (min-width: 760px) {
    .about-coop-card {
        grid-template-columns: 1.35fr 1fr;
    }
}

.about-coop-media {
    display: flex;
    justify-content: center;
}

.about-coop-screenshot {
    max-width: 100%;
    max-height: 280px;
    border-radius: 16px;
    border: 1px solid rgba(243, 213, 155, 0.32);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75);
    object-fit: cover;
}

.about-faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 760px) {
    .about-faq-list {
        grid-template-columns: 1fr 1fr;
    }
}

.about-faq-item {
    background: var(--glass-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 18px;
}

.about-faq-item h3 {
    font-size: 1.02rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.about-faq-item p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

.about-bottom-cta {
    text-align: center;
    padding: 34px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(212, 175, 114, 0.14), rgba(20, 9, 15, 0.92));
    border: 1.5px solid rgba(243, 213, 155, 0.42);
    box-shadow: var(--shadow-lg);
}

.about-bottom-cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.15rem);
    color: #fff;
    margin-bottom: 10px;
}

.about-bottom-cta p {
    color: var(--ink-soft);
    font-size: 0.96rem;
    max-width: 560px;
    margin: 0 auto 22px;
    line-height: 1.55;
}

@media (max-width: 520px) {
    .about-hero {
        padding: 26px 16px 24px;
    }
    .about-logo-img {
        height: 36px;
    }
}

/* ============================================================================
   ETAPPE 2 / V35.41: AFTERLINK BRAND, PASSKEYS, MAGIC LINK, CAMERA SELFIE,
   LIVE-CHAT POLLS, MESSAGE REACTIONS & LOGO REVIEW BADGES
   ============================================================================ */

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.brand-app-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(228, 193, 141, 0.22), rgba(212, 175, 114, 0.08));
    border: 1px solid rgba(228, 193, 141, 0.45);
    color: var(--gold-light);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    line-height: 1.25;
}

.passkey-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 10px;
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.passkey-login-divider::before,
.passkey-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(228, 193, 141, 0.28), transparent);
}

.prof-security-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(228, 193, 141, 0.22);
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 14px;
}

.prof-security-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: #fff;
}

.prof-security-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.prof-security-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.prof-security-row .form-control {
    flex: 1 1 160px;
    min-width: 0;
}

.prof-security-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.prof-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.8rem;
}

.prof-security-item-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.prof-security-item-title {
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prof-security-item-sub {
    color: var(--text-muted);
    font-size: 0.71rem;
}

.magic-link-created-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.magic-link-created-box .form-control {
    flex: 1;
    font-size: 0.78rem;
    color: var(--gold-light);
    background: rgba(228, 193, 141, 0.08);
    border-color: rgba(228, 193, 141, 0.35);
}

.insta-selfie-chip-btn {
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(228, 193, 141, 0.4);
    background: rgba(228, 193, 141, 0.12);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.insta-selfie-chip-btn:hover {
    background: rgba(228, 193, 141, 0.24);
    transform: translateY(-1px);
}

.camera-selfie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(5, 3, 7, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.camera-selfie-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(160deg, rgba(28, 14, 24, 0.98), rgba(12, 7, 13, 0.99));
    border: 1px solid rgba(228, 193, 141, 0.35);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.camera-selfie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.camera-selfie-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #070408;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.camera-selfie-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.camera-selfie-ring {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 2px dashed rgba(228, 193, 141, 0.65);
    pointer-events: none;
    box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.32);
}

.camera-selfie-status {
    margin: 10px 0 12px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.camera-selfie-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.chat-polls-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-poll-card {
    background: linear-gradient(145deg, rgba(228, 193, 141, 0.1), rgba(19, 10, 17, 0.9));
    border: 1px solid rgba(228, 193, 141, 0.32);
    border-radius: 14px;
    padding: 12px 14px;
}

.chat-poll-question {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.chat-poll-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-poll-opt-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 0.84rem;
    transition: border-color 0.15s ease, transform 0.12s ease;
}

.chat-poll-opt-btn:hover {
    border-color: rgba(228, 193, 141, 0.55);
}

.chat-poll-opt-btn.is-voted {
    border-color: var(--gold);
    background: rgba(228, 193, 141, 0.14);
}

.chat-poll-opt-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, rgba(228, 193, 141, 0.25), rgba(228, 193, 141, 0.08));
    pointer-events: none;
    transition: width 0.25s ease;
}

.chat-poll-opt-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.chat-poll-meta {
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.msg-reactions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.msg-react-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-soft);
    font-size: 0.76rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.msg-react-btn:hover {
    border-color: rgba(228, 193, 141, 0.5);
    transform: translateY(-1px);
}

.msg-react-btn.is-active {
    background: rgba(228, 193, 141, 0.22);
    border-color: var(--gold);
    color: var(--gold-light);
    font-weight: 700;
}

.msg-react-cnt {
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-logo-review {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.55);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.mod-poll-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 8px;
    font-size: 0.84rem;
}

/* ==========================================================================
   ETAPPE 3: DEAL-RADAR, WARM-INTRO, POCKET PASS & 365-TAGE UNIVERSUM
   ========================================================================== */
.voting-subtab-panel:not(.active) {
    display: none !important;
}

@media (max-width: 520px) {
    .voting-subtab-bar .tab-btn {
        flex: 1 0 auto;
        padding: 8px 10px;
        font-size: 0.78rem;
    }
}

.universe-scope-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.universe-scope-pills {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.scope-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scope-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.scope-pill.active {
    color: #ffe6bd;
    background: linear-gradient(135deg, rgba(228, 193, 141, 0.22), rgba(168, 27, 48, 0.28));
    border-color: rgba(243, 213, 155, 0.45);
    box-shadow: 0 0 14px rgba(228, 193, 141, 0.2);
}

.universe-scope-pills .badge-count,
.universe-scope-actions .badge-count {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fbbf24;
    color: #140e18;
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 4px;
}

#btn-who-you-missed.active {
    color: #ffe6bd;
    border-color: rgba(243, 213, 155, 0.5);
    background: linear-gradient(135deg, rgba(228, 193, 141, 0.2), rgba(14, 165, 255, 0.18));
    box-shadow: 0 0 12px rgba(228, 193, 141, 0.2);
}

.universe-nudges-strip,
.universe-digest-strip {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(228, 193, 141, 0.1), rgba(19, 10, 17, 0.92));
    border: 1px solid rgba(243, 213, 155, 0.34);
}

.universe-digest-strip {
    border-color: rgba(56, 189, 248, 0.35);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.09), rgba(19, 10, 17, 0.94));
}

.nudge-strip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gold-light);
}

.nudge-cards-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.nudge-pill-card {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(10, 10, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nudge-pill-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.encounter-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(228, 193, 141, 0.14);
    border: 1px solid rgba(228, 193, 141, 0.36);
    color: var(--gold-light);
    font-size: 0.74rem;
    font-weight: 600;
}

.radar-quota-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(228, 193, 141, 0.11), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(243, 213, 155, 0.3);
}

.radar-quota-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.radar-quota-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
}

.radar-quota-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.plan-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--ink-soft);
}

.plan-tier-badge.is-pro {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(228, 193, 141, 0.22));
    border-color: rgba(245, 158, 11, 0.65);
    color: #fbbf24;
}

.radar-composer-card {
    margin-bottom: 14px;
}

.radar-kind-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.radar-kind-pill,
.radar-filter-chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.radar-kind-pill.active,
.radar-filter-chip.active {
    background: rgba(228, 193, 141, 0.22);
    border-color: var(--gold);
    color: var(--gold-light);
}

.radar-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.radar-impulses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.radar-impulse-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.radar-impulse-card.is-matched-me {
    border-color: rgba(245, 158, 11, 0.6);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.09), rgba(255, 255, 255, 0.03));
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12);
}

.radar-impulse-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.radar-impulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.radar-impulse-badge.kind-request {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.radar-impulse-badge.kind-offer {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

.radar-impulse-badge.kind-barter {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fcd34d;
}

.radar-impulse-barter-box {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    font-size: 0.8rem;
    color: var(--gold-light);
}

.synergy-latency-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 700;
}

.pocket-pass-pro-card {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.11), rgba(10, 10, 14, 0.88));
    border: 1px solid rgba(243, 213, 155, 0.35);
    border-radius: 18px;
    padding: 22px 18px;
    text-align: center;
    scroll-margin-top: 18px;
}

.pocket-pass-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    max-width: 440px;
    margin: 14px auto 0;
}


/* ==========================================================================
   AFTERLINK v35.43 – THE ART OF CONNECTING (5-Screen Brand Architecture)
   Brand Palette:
   - Primary:    #0EA5FF (Vertrauen, Tech)
   - Accent:     #8B5CF6 (Innovation)
   - Highlight:  #F5B547 (Wert, Energie)
   - Background: #0B0F1A (Eleganz, Fokus)
   ========================================================================== */

.afterlink-screen-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
}

.afterlink-screen-sub {
    font-size: 0.92rem;
    color: #94A3B8;
    margin: 4px 0 0;
    line-height: 1.45;
}

/* ---------- 1. START (Dashboard) ---------- */
.afterlink-start-shell {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.afterlink-start-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px;
}

.afterlink-bell-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 255, 0.28);
    background: rgba(15, 23, 42, 0.85);
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.afterlink-bell-btn:hover {
    transform: translateY(-1px);
    border-color: #0EA5FF;
    box-shadow: 0 0 18px rgba(14, 165, 255, 0.35);
}

.afterlink-bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #EF4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0B0F1A;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.75);
}

/* Featured Match Hero Card ("Für dich ausgewählt") */
.afterlink-featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 20px;
    background:
        radial-gradient(120% 100% at 95% 0%, rgba(139, 92, 246, 0.28) 0%, transparent 60%),
        radial-gradient(100% 90% at 10% 100%, rgba(14, 165, 255, 0.20) 0%, transparent 60%),
        linear-gradient(160deg, rgba(19, 28, 52, 0.95) 0%, rgba(12, 18, 34, 0.96) 100%);
    border: 1px solid rgba(14, 165, 255, 0.35);
    box-shadow: 0 20px 48px -12px rgba(2, 6, 23, 0.85), 0 0 28px rgba(14, 165, 255, 0.16);
}

.afterlink-featured-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.afterlink-featured-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #E2E8F0;
    letter-spacing: 0.02em;
}

.afterlink-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #38BDF8;
    background: rgba(14, 165, 255, 0.16);
    border: 1px solid rgba(14, 165, 255, 0.55);
    box-shadow: 0 0 16px rgba(14, 165, 255, 0.28);
}

.afterlink-featured-person {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 6px 0;
}

.afterlink-featured-avatar-wrap {
    width: 62px;
    height: 62px;
    min-width: 62px;
    max-width: 62px;
    min-height: 62px;
    max-height: 62px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #0EA5FF 0%, #8B5CF6 60%, #F5B547 100%);
    box-shadow: 0 0 20px rgba(14, 165, 255, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.afterlink-featured-avatar,
img.afterlink-featured-avatar {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 50% !important;
    background: #0F172A;
    color: #F8FAFC;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.afterlink-featured-avatar-placeholder {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    border-radius: 50% !important;
    background: #0F172A;
    color: #F8FAFC;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border: 1.5px solid rgba(14, 165, 255, 0.45);
}

.afterlink-featured-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.afterlink-featured-info {
    min-width: 0;
    flex: 1;
}

.afterlink-featured-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
}

.afterlink-featured-role {
    font-size: 0.88rem;
    color: #CBD5E1;
    margin-top: 2px;
}

.afterlink-featured-org {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 2px;
}

.afterlink-featured-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.afterlink-featured-reason {
    font-size: 0.85rem;
    color: #CBD5E1;
    line-height: 1.45;
    flex: 1;
}

.afterlink-circle-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.55);
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.25), rgba(139, 92, 246, 0.35));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.32);
}

.afterlink-circle-arrow-btn:hover {
    transform: scale(1.06);
    border-color: #0EA5FF;
    box-shadow: 0 0 18px rgba(14, 165, 255, 0.55);
}

.afterlink-circle-arrow-sm {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

/* 2x2 Bento Grid on Start Screen */
.afterlink-start-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.afterlink-bento-tile {
    position: relative;
    text-align: left;
    padding: 18px 16px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(18, 26, 46, 0.90) 0%, rgba(12, 17, 31, 0.92) 100%);
    border: 1px solid rgba(14, 165, 255, 0.20);
    color: #F8FAFC;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 136px;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.afterlink-bento-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 255, 0.55);
    box-shadow: 0 16px 34px -10px rgba(14, 165, 255, 0.25);
}

.afterlink-bento-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.afterlink-bento-icon.icon-cyan {
    background: rgba(14, 165, 255, 0.15);
    border: 1px solid rgba(14, 165, 255, 0.38);
    color: #0EA5FF;
}

.afterlink-bento-icon.icon-violet {
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(139, 92, 246, 0.42);
    color: #A78BFA;
}

.afterlink-bento-icon.icon-gold {
    background: rgba(245, 181, 71, 0.15);
    border: 1px solid rgba(245, 181, 71, 0.42);
    color: #F5B547;
}

.afterlink-bento-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #FFFFFF;
}

.afterlink-bento-sub {
    font-size: 0.78rem;
    color: #94A3B8;
    line-height: 1.35;
}

.afterlink-bento-badge {
    margin-top: auto;
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38BDF8;
    background: rgba(14, 165, 255, 0.12);
    border: 1px solid rgba(14, 165, 255, 0.28);
}

/* ---------- 2. ENTDECKEN (Directory, Search & Filter Pills) ---------- */
.afterlink-discover-box {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(15, 22, 38, 0.88);
    border: 1px solid rgba(14, 165, 255, 0.22);
    box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.75);
}

.afterlink-discover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.afterlink-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.afterlink-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    pointer-events: none;
}

.afterlink-search-input {
    padding-left: 42px !important;
    border-radius: 16px !important;
    background: rgba(11, 15, 26, 0.9) !important;
    border: 1px solid rgba(14, 165, 255, 0.28) !important;
}

.afterlink-search-input:focus {
    border-color: #0EA5FF !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 255, 0.2) !important;
}

.afterlink-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.afterlink-filter-pills::-webkit-scrollbar {
    display: none;
}

.discover-pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #CBD5E1;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
}

.discover-pill:hover {
    border-color: rgba(14, 165, 255, 0.5);
    color: #fff;
}

.discover-pill.active {
    background: linear-gradient(135deg, #0EA5FF 0%, #2563EB 100%);
    border-color: #38BDF8;
    color: #FFFFFF;
    box-shadow: 0 0 16px rgba(14, 165, 255, 0.45);
}

.afterlink-subfilter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.discover-subchip {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.10);
    color: #DDD6FE;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.discover-subchip.active,
.discover-subchip:hover {
    background: rgba(139, 92, 246, 0.32);
    border-color: #8B5CF6;
    color: #fff;
}

.afterlink-discover-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afterlink-person-card,
.afterlink-discover-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(19, 28, 49, 0.92), rgba(13, 19, 35, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.afterlink-person-card:hover,
.afterlink-discover-card:hover {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 255, 0.42);
    box-shadow: 0 10px 24px -8px rgba(14, 165, 255, 0.22);
}

.afterlink-person-avatar,
.afterlink-discover-avatar-wrap,
.afterlink-discover-avatar-placeholder {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.25), rgba(139, 92, 246, 0.25));
    border: 1.5px solid rgba(14, 165, 255, 0.45);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    cursor: pointer;
    box-sizing: border-box !important;
}

.afterlink-discover-avatar,
img.afterlink-discover-avatar,
img.afterlink-person-avatar,
.afterlink-person-avatar img,
.afterlink-discover-avatar-wrap img {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
    border: 1.5px solid rgba(14, 165, 255, 0.45) !important;
    box-shadow: 0 0 12px rgba(14, 165, 255, 0.25) !important;
    box-sizing: border-box !important;
}

/* Global Afterlink Avatar safety bounds */
.afterlink-discover-card img,
.afterlink-person-card img,
.afterlink-featured-person-row img {
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.afterlink-person-info,
.afterlink-discover-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.afterlink-person-name,
.afterlink-discover-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #F8FAFC;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.afterlink-person-role,
.afterlink-discover-role {
    font-size: 0.82rem;
    color: #CBD5E1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afterlink-person-industry,
.afterlink-discover-industry {
    font-size: 0.76rem;
    color: #38BDF8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afterlink-plus-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(14, 165, 255, 0.55);
    background: rgba(14, 165, 255, 0.12);
    color: #38BDF8;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.afterlink-plus-btn:hover {
    background: linear-gradient(135deg, #0EA5FF, #8B5CF6);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 14px rgba(14, 165, 255, 0.55);
}

.afterlink-plus-btn.is-connected {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.6);
    color: #34D399;
}

/* ---------- 3. THE UNIVERSE Header & Info Button ---------- */
.afterlink-universe-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.afterlink-info-circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.75);
    color: #E2E8F0;
    font-family: Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.afterlink-info-circle-btn:hover {
    border-color: #0EA5FF;
    color: #38BDF8;
    box-shadow: 0 0 12px rgba(14, 165, 255, 0.4);
}

/* ---------- 4. EVENTS Hub & Toggle Pills ---------- */
.afterlink-events-shell {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.afterlink-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.afterlink-events-toggle,
.afterlink-inbox-toggle {
    display: inline-flex;
    width: 100%;
    max-width: 340px;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(12, 18, 34, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.10);
    align-self: flex-start;
}

.afterlink-pill-tab {
    flex: 1;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #94A3B8;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.afterlink-pill-tab.active {
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.28) 0%, rgba(139, 92, 246, 0.44) 100%);
    border-color: rgba(139, 92, 246, 0.72);
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.afterlink-events-grid,
.afterlink-events-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.afterlink-event-card {
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 18, 36, 0.96) 0%, rgba(6, 10, 20, 0.98) 100%);
    border: 1px solid rgba(139, 92, 246, 0.26);
    box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.86);
    padding: 0;
}

.afterlink-event-hero,
.afterlink-event-cover-wrap,
.afterlink-event-banner {
    position: relative;
    height: 205px;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(85% 95% at 22% 18%, rgba(14, 165, 255, 0.42), transparent 60%),
        radial-gradient(85% 95% at 80% 25%, rgba(139, 92, 246, 0.48), transparent 65%),
        radial-gradient(60% 70% at 50% 85%, rgba(245, 181, 71, 0.25), transparent 65%),
        linear-gradient(180deg, #161c3a 0%, #090e1c 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px 18px;
}

.afterlink-event-hero::after,
.afterlink-event-cover-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 20, 0.04) 38%, rgba(8, 13, 28, 0.88) 92%, rgba(8, 13, 28, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.afterlink-event-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 0;
}

.ev-cover-preview-placeholder {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.afterlink-event-eyebrow,
.afterlink-event-eyebrow-pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(14, 20, 40, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #F1F5F9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.afterlink-event-edit-pill {
    position: relative;
    z-index: 3;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(10, 15, 30, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #F8FAFC;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.afterlink-event-body {
    padding: 12px 20px 22px;
}

.afterlink-event-series {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #38BDF8;
    margin-bottom: 4px;
}

.afterlink-event-title {
    font-size: 1.32rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 10px;
    line-height: 1.25;
}

.afterlink-event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.86rem;
    color: #CBD5E1;
    margin-bottom: 14px;
}

.afterlink-event-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.90rem;
    color: #CBD5E1;
    font-weight: 500;
    margin-bottom: 6px;
}

.afterlink-event-meta-icon {
    width: 16px;
    height: 16px;
    stroke: #94A3B8;
    flex-shrink: 0;
}

.afterlink-facepile-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 12px 0 18px;
}

.afterlink-facepile-avatars {
    display: flex;
    align-items: center;
}

.afterlink-facepile-avatar,
.afterlink-facepile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #090e1c;
    background: linear-gradient(135deg, #0EA5FF, #8B5CF6);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -9px;
    overflow: hidden;
    object-fit: cover;
}

.afterlink-facepile-avatar:first-child,
.afterlink-facepile-placeholder:first-child {
    margin-left: 0;
}

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

.afterlink-facepile-count,
.afterlink-facepile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.80rem;
    font-weight: 700;
    color: #E2E8F0;
}

.afterlink-event-cta-btn {
    width: 100%;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(90deg, #00C6FF 0%, #2563EB 45%, #8B5CF6 100%);
    border: 1px solid rgba(165, 243, 252, 0.35);
    box-shadow: 0 8px 26px rgba(14, 165, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.afterlink-event-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(14, 165, 255, 0.56);
}

.afterlink-event-cta-active {
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.38);
}

.afterlink-event-cta-past {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

/* ---------- 4b. INBOX Direct Messages & Requests (Mobile First) ---------- */
.chat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    box-sizing: border-box;
}

.afterlink-inbox-header {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.afterlink-inbox-toggle {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    padding: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    border: none !important;
    align-self: stretch !important;
}

.afterlink-inbox-toggle .afterlink-pill-tab {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 8px 4px !important;
    font-size: clamp(0.68rem, 2.4vw, 0.78rem) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.afterlink-inbox-direct-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    margin-bottom: 24px;
    padding-bottom: calc(var(--bottom-nav-h, 72px) + env(safe-area-inset-bottom, 0px) + 50px);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    body.has-user-session .main-container {
        padding-bottom: calc(var(--bottom-nav-h, 72px) + env(safe-area-inset-bottom, 0px) + 50px) !important;
    }
    body.has-user-session .site-footer {
        display: none !important;
    }
}

@media (max-width: 680px) {
    .chat-box {
        height: clamp(340px, calc(100dvh - 170px - env(safe-area-inset-bottom, 0px)), 560px) !important;
    }
}

/* ---------- 5. PROFIL Completeness Bar & Menu List ---------- */
.afterlink-profile-location {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.afterlink-completeness-card {
    margin: 8px auto 6px;
    max-width: 440px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(14, 165, 255, 0.18);
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.afterlink-completeness-header,
.afterlink-completeness-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 5px;
}

.afterlink-completeness-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #E2E8F0;
    letter-spacing: -0.01em;
}

.afterlink-completeness-pct {
    color: #38BDF8;
    font-weight: 700;
    font-size: 0.78rem;
}

.afterlink-completeness-track {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.afterlink-completeness-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0EA5FF 0%, #8B5CF6 75%, #F5B547 100%);
    box-shadow: 0 0 8px rgba(14, 165, 255, 0.45);
    transition: width 0.35s ease;
}

.afterlink-completeness-hint {
    display: none !important;
}

.afterlink-profile-menu-card {
    max-width: 440px;
    margin: 16px auto;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.afterlink-menu-row {
    width: 100%;
    padding: 14px 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #F8FAFC;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-radius: 12px;
}

.afterlink-menu-row:last-child {
    border-bottom: none;
}

.afterlink-menu-row:hover {
    background: rgba(14, 165, 255, 0.08);
    color: #38BDF8;
}

.afterlink-menu-row-danger {
    color: #FCA5A5;
}

.afterlink-menu-row-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
}

.afterlink-menu-left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.afterlink-menu-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex-shrink: 0;
}

.afterlink-menu-chev,
.afterlink-menu-chevron {
    font-size: 1.25rem;
    color: #64748B;
    transition: transform 0.15s ease, color 0.15s ease;
}

.afterlink-menu-row:hover .afterlink-menu-chev,
.afterlink-menu-row:hover .afterlink-menu-chevron {
    color: #38BDF8;
    transform: translateX(2px);
}


/* ==========================================================================
   AFTERLINK AUTHENTICATION & REGISTRATION SCREEN (V35.54)
   ========================================================================== */

/* Hide top navbar and duplicate site footer on unauthenticated views (welcome & auth) */
body:not(.has-user-session) .app-header,
body:not(.has-user-session) .site-footer {
    display: none !important;
}

body:not(.has-user-session) {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #050814 !important;
    background-image: none !important;
}

body:not(.has-user-session) .main-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

html:has(body.view-active-auth),
body.view-active-auth {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.afterlink-auth-view {
    position: fixed;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    min-height: 0;
    background-color: #030614;
    background-image:
        radial-gradient(ellipse 46% 38% at 0% 34%, rgba(0, 220, 255, 0.24) 0%, transparent 72%),
        radial-gradient(ellipse 42% 34% at 4% 52%, rgba(139, 92, 246, 0.20) 0%, transparent 72%),
        radial-gradient(ellipse 56% 42% at 94% 16%, rgba(192, 38, 211, 0.28) 0%, transparent 72%),
        radial-gradient(ellipse 44% 34% at 92% 70%, rgba(236, 72, 153, 0.14) 0%, transparent 70%),
        linear-gradient(180deg, #020512 0%, #05091B 48%, #070518 100%);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + clamp(8px, 1.4vh, 14px)) 16px calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 2vh, 20px));
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.view-active-auth:not(.has-user-session) #view-auth.view-section.active.afterlink-auth-view {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.afterlink-auth-view .welcome-bg-canvas {
    position: fixed;
    inset: 0;
}

.afterlink-auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 410px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Header & Seamless Brand Lockup */
.afterlink-auth-header {
    width: 100%;
    margin-bottom: clamp(8px, 1.4dvh, 14px);
}

.afterlink-auth-seamless-header {
    width: clamp(165px, 28vh, 252px);
    max-width: 78%;
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: normal;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.34)) drop-shadow(0 0 24px rgba(236, 72, 153, 0.24));
}

.afterlink-auth-rings-logo {
    width: 130px;
    height: auto;
    mix-blend-mode: normal;
    display: block;
    margin: 0 auto;
}

.afterlink-auth-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Space Grotesk', 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    font-size: 2.1rem;
    letter-spacing: 0.16em;
    margin: 0 0 6px 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.afterlink-brand-after {
    color: #0EA5FF;
    text-shadow: 0 0 20px rgba(14, 165, 255, 0.7);
}

.afterlink-brand-link {
    color: #FFFFFF;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
}

.afterlink-auth-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(220, 235, 255, 0.85);
    margin: 0 0 16px 0;
}

.afterlink-auth-divider-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 12px;
    margin: 0 auto;
    position: relative;
}

.afterlink-auth-divider-dot::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 255, 0.6), transparent);
}

.afterlink-auth-divider-dot::after {
    content: '';
    position: relative;
    z-index: 1;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0EA5FF;
    box-shadow: 0 0 8px #0EA5FF, 0 0 16px #0EA5FF;
}

/* 4 Feature Badges row */
.afterlink-auth-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(10px, 1.8dvh, 16px);
    width: 100%;
}

.afterlink-auth-feature-pill {
    width: clamp(40px, 5.8dvh, 46px);
    height: clamp(40px, 5.8dvh, 46px);
    border-radius: 13px;
    background: rgba(8, 20, 44, 0.65);
    border: 1.5px solid rgba(14, 165, 255, 0.38);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 0 14px rgba(14, 165, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(220, 240, 255, 0.95);
    cursor: pointer;
    transition: all 0.2s ease;
}

.afterlink-auth-feature-pill:hover,
.afterlink-auth-feature-pill:active {
    border-color: rgba(14, 165, 255, 0.75);
    box-shadow: 0 0 20px rgba(14, 165, 255, 0.5), inset 0 0 14px rgba(14, 165, 255, 0.25);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.afterlink-auth-feat-icon {
    width: clamp(18px, 2.6dvh, 21px);
    height: clamp(18px, 2.6dvh, 21px);
}

/* Forms */
.afterlink-auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.afterlink-auth-form > * {
    margin-bottom: clamp(8px, 1.3dvh, 11px);
}

.afterlink-auth-form > *:last-child {
    margin-bottom: 0;
}

/* Glass Inputs */
.afterlink-auth-input-group {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(8, 20, 44, 0.68);
    border: 1.5px solid rgba(14, 165, 255, 0.38);
    border-radius: 16px;
    height: clamp(42px, 6.2dvh, 48px);
    padding: 0 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(14, 165, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.afterlink-auth-input-group:focus-within {
    border-color: #0EA5FF;
    box-shadow: 0 0 20px rgba(14, 165, 255, 0.5), inset 0 2px 8px rgba(0, 0, 0, 0.25);
}

.afterlink-auth-input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    color: rgba(160, 200, 240, 0.75);
    flex-shrink: 0;
}

.afterlink-auth-input-icon svg {
    width: 20px;
    height: 20px;
}

.afterlink-auth-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0;
    width: 100%;
}

.afterlink-auth-input::placeholder {
    color: rgba(145, 180, 220, 0.65);
    font-weight: 400;
}

/* Checkbox Row */
.afterlink-auth-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    margin: 2px 4px 6px;
    user-select: none;
}

.afterlink-auth-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid #0EA5FF;
    background: rgba(10, 20, 42, 0.8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.afterlink-auth-checkbox:checked {
    background: #0EA5FF;
    box-shadow: 0 0 12px rgba(14, 165, 255, 0.7);
}

.afterlink-auth-checkbox:checked::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 2px;
}

.afterlink-auth-checkbox-label {
    font-size: 0.88rem;
    color: rgba(225, 238, 255, 0.9);
    line-height: 1.35;
}

/* Primary Action Button */
.afterlink-auth-btn-primary {
    width: 100%;
    height: clamp(42px, 6.2dvh, 48px);
    border-radius: 24px;
    border: none;
    cursor: pointer;
    background: linear-gradient(90deg, #00A3FF 0%, #2563EB 42%, #8B5CF6 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 28px rgba(0, 163, 255, 0.75), 0 0 10px rgba(139, 92, 246, 0.4), 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

#login-passkey-wrap {
    margin-top: 0 !important;
}

.afterlink-auth-btn-primary:hover,
.afterlink-auth-btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(0, 163, 255, 0.9), 0 0 14px rgba(139, 92, 246, 0.6), 0 6px 18px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, #38BDF8 0%, #3B82F6 42%, #A78BFA 100%);
}

.afterlink-btn-sparkle {
    font-size: 1.05rem;
    line-height: 1;
}

/* Divider: — oder — */
.afterlink-auth-divider-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 2px 0 clamp(8px, 1.2dvh, 10px) 0;
    gap: 14px;
}

.afterlink-auth-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 255, 0.35), transparent);
}

.afterlink-auth-divider-text {
    font-size: 0.85rem;
    color: rgba(160, 195, 235, 0.7);
    letter-spacing: 0.08em;
}

/* Secondary Button: QR CODE SCANNEN */
.afterlink-auth-btn-secondary {
    width: 100%;
    height: clamp(40px, 5.8dvh, 46px);
    border-radius: 23px;
    border: 1.5px solid #00A3FF;
    background: rgba(8, 20, 44, 0.3);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 18px rgba(0, 163, 255, 0.35), inset 0 0 10px rgba(0, 163, 255, 0.06);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.afterlink-auth-btn-secondary:hover,
.afterlink-auth-btn-secondary:active {
    background: rgba(14, 165, 255, 0.14);
    border-color: #38BDF8;
    box-shadow: 0 0 26px rgba(0, 163, 255, 0.55);
    transform: translateY(-1px);
}

.afterlink-btn-icon {
    width: 20px;
    height: 20px;
}

/* Switcher Link (Bereits Mitglied? Anmelden / Neu hier? Registrieren) */
.afterlink-auth-switch-wrap {
    margin-top: 4px;
    font-size: 0.88rem;
    color: rgba(200, 225, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.afterlink-auth-switch-btn {
    background: transparent;
    border: none;
    color: #00A3FF;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.afterlink-auth-switch-btn:hover {
    color: #38BDF8;
}

/* Ref Banner Card */
.afterlink-auth-ref-card {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: rgba(14, 25, 48, 0.75);
    border: 1.5px solid rgba(14, 165, 255, 0.4);
    border-radius: 16px;
    text-align: left;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.afterlink-auth-ref-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5FF, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.1rem;
    overflow: hidden;
    border: 2px solid #0EA5FF;
    flex-shrink: 0;
}

.afterlink-auth-ref-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0EA5FF;
    font-weight: 700;
}

.afterlink-auth-ref-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afterlink-auth-ref-subtitle {
    font-size: 0.8rem;
    color: rgba(220, 235, 255, 0.7);
    margin-top: 2px;
}

/* Footer & Compliance links */
.afterlink-auth-footer {
    margin-top: clamp(8px, 1.4vh, 14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.afterlink-auth-about-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.80rem;
    color: rgba(190, 220, 255, 0.7);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(14, 25, 48, 0.45);
    border: 1px solid rgba(14, 165, 255, 0.18);
    transition: all 0.2s ease;
}

.afterlink-auth-about-link:hover {
    color: #FFFFFF;
    border-color: rgba(14, 165, 255, 0.4);
    background: rgba(14, 25, 48, 0.75);
}

.afterlink-auth-legal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    white-space: nowrap;
}

.afterlink-auth-legal-sep {
    color: rgba(160, 195, 235, 0.35);
    font-size: 0.74rem;
    user-select: none;
}

.afterlink-auth-legal-link {
    font-size: 0.76rem;
    color: rgba(186, 214, 245, 0.65);
    text-decoration: none;
    transition: color 0.18s ease;
}

.afterlink-auth-legal-link:hover {
    color: #38BDF8;
    text-decoration: underline;
}

.afterlink-qr-unlocked-banner {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 8px 12px;
    color: #34D399;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

/* =====================================================================
   CIRCLE PRO BUSINESS VOUCHERS & MYSTERY START CARDS (v35.72)
   ===================================================================== */
.start-mystery-vouchers-section {
    margin: 14px 0 18px;
}

.start-mystery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.start-mystery-eyebrow {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f3d59b;
}

.start-mystery-vouchers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.mystery-voucher-card {
    position: relative;
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(16, 24, 42, 0.94), rgba(11, 15, 26, 0.98));
    border: 1px solid rgba(245, 181, 71, 0.34);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mystery-voucher-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 181, 71, 0.62);
    box-shadow: 0 16px 34px rgba(245, 181, 71, 0.14);
}

.mystery-voucher-card.is-pro-locked {
    border-color: rgba(139, 92, 246, 0.42);
    background: linear-gradient(145deg, rgba(28, 20, 48, 0.92), rgba(11, 15, 26, 0.98));
}

.mystery-voucher-card.is-revealed {
    cursor: default;
    border-color: rgba(14, 165, 255, 0.5);
    animation: mysteryCardReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mysteryCardReveal {
    0% {
        transform: scale(0.96) rotateX(14deg);
        opacity: 0.72;
    }
    60% {
        transform: scale(1.02) rotateX(-3deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
    }
}

.mystery-seal-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 8px 4px;
    flex: 1;
}

.mystery-seal-emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: radial-gradient(circle, rgba(245, 181, 71, 0.28), rgba(139, 92, 246, 0.16));
    border: 1px solid rgba(245, 181, 71, 0.52);
    box-shadow: 0 0 20px rgba(245, 181, 71, 0.24);
}

.mystery-seal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: rgba(245, 181, 71, 0.16);
    color: #fcd34d;
    border: 1px solid rgba(245, 181, 71, 0.42);
}

.mystery-voucher-card.is-pro-locked .mystery-seal-badge {
    background: rgba(139, 92, 246, 0.22);
    color: #ddd6fe;
    border-color: rgba(139, 92, 246, 0.48);
}

.mystery-revealed-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.voucher-discount-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5b547, #fde68a);
    color: #111827;
    font-size: 0.74rem;
    font-weight: 800;
}

.voucher-barcode-builder {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.voucher-photo-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.voucher-live-preview-wrap {
    margin-top: 12px;
    text-align: center;
}

.voucher-live-preview-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.voucher-live-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.16);
}

.voucher-live-preview-box svg,
.voucher-pos-barcode-wrap svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.voucher-pos-barcode-wrap {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 4px auto 10px;
}

.voucher-pos-code-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #f3d59b;
}

.my-vouchers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-voucher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 680px) {
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   2-PAKET-SYSTEM: GOLD PASS & CIRCLE-PRO SHOWCASE (v35.73)
   ===================================================================== */
.packages-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

@media (max-width: 720px) {
    .packages-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.package-tier-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(17, 24, 39, 0.94), rgba(11, 15, 26, 0.98));
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.package-tier-gold {
    border-color: rgba(245, 181, 71, 0.42);
    background: linear-gradient(155deg, rgba(46, 33, 12, 0.45), rgba(11, 15, 26, 0.98));
}

.package-tier-pro {
    border-color: rgba(14, 165, 255, 0.42);
    background: linear-gradient(155deg, rgba(12, 34, 62, 0.55), rgba(11, 15, 26, 0.98));
}

.package-tier-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.package-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.package-tier-badge.gold {
    background: linear-gradient(135deg, #f5b547, #fde68a);
    color: #111827;
}

.package-tier-badge.pro {
    background: linear-gradient(135deg, #0ea5ff, #8b5cf6);
    color: #ffffff;
}

.package-tier-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.package-tier-audience {
    font-size: 0.8rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.package-tier-features {
    margin: 2px 0 8px;
    padding-left: 18px;
    font-size: 0.79rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.package-tier-actions {
    margin-top: auto;
}

.pkg-modal-summary {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    font-size: 0.84rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

/* Fullscreen Universe Ad Slots & Logo Gallery (v35.74) */
.ad-slots-circlepro-hint {
    margin-bottom: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(14, 165, 255, 0.12);
    border: 1px solid rgba(14, 165, 255, 0.32);
    font-size: 0.8rem;
    color: #bae6fd;
}

.ad-slots-price-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-slot-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.ad-slot-row.status-free {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.05);
}

.ad-slot-row.status-pending {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.05);
}

.ad-slot-thumb-box {
    width: 82px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ad-slot-thumb-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ad-slot-thumb-fallback {
    background: rgba(243, 213, 155, 0.14);
    border: 1px dashed rgba(243, 213, 155, 0.45);
    color: #f3d59b;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.ad-slot-info-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
}

.ad-slot-info-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.ad-slot-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.ad-slot-price {
    font-size: 0.96rem;
    font-weight: 800;
    color: #f3d59b;
}

.ad-slot-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.ad-slot-status-pill.free {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.ad-slot-status-pill.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.ad-slot-status-pill.booked {
    background: rgba(14, 165, 255, 0.22);
    color: #7dd3fc;
}

.ad-logo-preview-frame {
    width: 100%;
    min-height: 120px;
    max-height: 240px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-logo-preview-frame img {
    max-width: 100%;
    max-height: 215px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.mod-ad-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
}

.mod-ad-gallery-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mod-ad-gallery-thumb {
    width: 100%;
    height: 104px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mod-ad-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mod-ad-slots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mod-ad-slot-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 560px) {
    .ad-slot-row {
        grid-template-columns: 1fr;
    }
    .ad-slot-right {
        align-items: flex-start;
    }
}

/* ==========================================================================
   AFTERLINK v35.81 – START NO-SCROLL REDESIGN & FRAMELESS GLOBE UNIVERSE
   ========================================================================== */

/* Hide top app-header & anchor desktop dock cleanly on Start, Entdecken & Universe views */
body.view-active-start .app-header,
body.view-active-voting .app-header,
body.view-active-universe .app-header {
    display: none !important;
}

@media (min-width: 768px) {
    body.view-active-start .nav-tabs,
    body.view-active-voting .nav-tabs,
    body.view-active-universe .nav-tabs {
        top: 0;
    }
}

body.view-active-voting .main-container {
    padding: 0 12px calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) {
    body.view-active-voting .main-container {
        padding: 0 20px 44px !important;
    }
}

/* ---------- START VIEW: 1-SCREEN NO-SCROLL LAYOUT ---------- */
body.view-active-start {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    body.view-active-start {
        padding-bottom: 12px;
    }
}

body.view-active-start .main-container {
    padding: 0 12px max(6px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

body.view-active-start #view-start.view-section.active {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

body.view-active-start .afterlink-start-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    gap: clamp(8px, 1.4dvh, 14px);
}

.afterlink-start-topbar,
.afterlink-entdecken-topbar,
.afterlink-universe-topbar,
.afterlink-inbox-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px) 4px 6px !important;
    width: 100%;
    position: relative;
    flex-shrink: 0 !important;
}

.afterlink-start-topbar > *,
.afterlink-entdecken-topbar > *,
.afterlink-universe-topbar > *,
.afterlink-inbox-topbar > * {
    grid-row: 1 / 2 !important;
    grid-column: 1 / 2 !important;
}

.afterlink-start-topbar > .afterlink-start-avatar-btn,
.afterlink-entdecken-topbar > .afterlink-start-avatar-btn,
.afterlink-universe-topbar > .afterlink-start-avatar-btn,
.afterlink-inbox-topbar > .afterlink-start-avatar-btn {
    justify-self: start !important;
    align-self: start !important;
    z-index: 3;
}

.afterlink-start-topbar > .afterlink-start-brand-center,
.afterlink-entdecken-topbar > .afterlink-start-brand-center,
.afterlink-universe-topbar > .afterlink-start-brand-center,
.afterlink-inbox-topbar > .afterlink-start-brand-center {
    justify-self: center !important;
    align-self: start !important;
    width: max-content !important;
    max-width: 100%;
    margin: 0 auto !important;
    text-align: center !important;
    z-index: 2;
}

@media (min-width: 768px) {
    .afterlink-start-topbar,
    .afterlink-entdecken-topbar,
    .afterlink-universe-topbar,
    .afterlink-inbox-topbar {
        padding: 10px 4px 6px !important;
    }
}

.afterlink-topbar-actions {
    grid-row: 1 / 2 !important;
    grid-column: 1 / 2 !important;
    justify-self: end !important;
    align-self: start !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    z-index: 3;
}

.afterlink-start-avatar-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 2px;
    border: none;
    background: linear-gradient(135deg, #38BDF8 0%, #8B5CF6 55%, #EC4899 100%);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.afterlink-start-avatar-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.6);
}

.afterlink-start-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0B1120;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afterlink-start-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.afterlink-start-avatar-initial,
.afterlink-start-avatar-fallback {
    font-size: 1.05rem;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1;
}

.afterlink-start-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

.afterlink-start-brand-rings {
    height: clamp(32px, 4.6dvh, 44px);
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 16px rgba(14, 165, 255, 0.55));
}

.afterlink-start-brand-wordmark {
    margin-top: 4px;
    font-size: clamp(1.12rem, 4.5vw, 1.38rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    color: #F8FAFC;
    white-space: nowrap !important;
}

.afterlink-start-brand-wordmark span {
    color: #38BDF8;
}

.afterlink-start-brand-tagline {
    margin-top: 3px;
    font-size: clamp(0.54rem, 1.9vw, 0.64rem);
    font-weight: 600;
    letter-spacing: 0.32em;
    color: rgba(203, 213, 225, 0.8);
    text-transform: uppercase;
    white-space: nowrap !important;
}

.afterlink-start-header {
    padding: 0 2px;
    flex-shrink: 0;
}

.afterlink-start-greeting-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.afterlink-greeting-title {
    margin: 0;
    font-size: clamp(1.16rem, 4.8vw, 1.48rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.afterlink-greeting-sub {
    margin: 0;
    font-size: clamp(0.78rem, 3.1vw, 0.88rem);
    color: #94A3B8;
    line-height: 1.25;
}

.afterlink-greeting-highlight {
    color: #F8FAFC;
    font-weight: 600;
}

/* Cosmic Hero Card: "Dein Netzwerk-Universum" */
.afterlink-universe-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(12px, 2dvh, 20px) 16px;
    flex: 1 1 auto;
    min-height: clamp(138px, 22dvh, 204px);
    max-height: 235px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(85% 95% at 50% 42%, rgba(168, 85, 247, 0.24) 0%, rgba(14, 165, 255, 0.12) 52%, rgba(9, 13, 28, 0.42) 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(34px) saturate(215%) brightness(1.08);
    -webkit-backdrop-filter: blur(34px) saturate(215%) brightness(1.08);
    box-shadow:
        0 18px 44px -10px rgba(2, 6, 23, 0.65),
        0 0 28px rgba(139, 92, 246, 0.22),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
        inset 1px 0 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.afterlink-universe-hero-card:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow:
        0 20px 46px -12px rgba(2, 6, 23, 0.95),
        0 0 34px rgba(14, 165, 255, 0.34);
}

.afterlink-universe-hero-planet {
    position: absolute;
    right: -24%;
    top: -12%;
    width: 72%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle at 28% 35%, rgba(56, 189, 248, 0.34) 0%, rgba(30, 58, 138, 0.55) 36%, rgba(11, 15, 32, 0.92) 72%, rgba(7, 10, 22, 0.98) 100%);
    box-shadow:
        inset 14px 10px 38px rgba(125, 211, 252, 0.35),
        -12px -4px 40px rgba(56, 189, 248, 0.24);
    opacity: 0.92;
}

.afterlink-universe-hero-glow {
    position: absolute;
    left: -18%;
    bottom: -36%;
    width: 68%;
    height: 85%;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.34) 0%, rgba(139, 92, 246, 0.14) 48%, transparent 72%);
}

.afterlink-universe-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.afterlink-universe-hero-rings {
    height: clamp(46px, 7.2dvh, 70px);
    width: auto;
    object-fit: contain;
    margin-bottom: clamp(4px, 0.9dvh, 8px);
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6));
}

.afterlink-universe-hero-title {
    margin: 0;
    font-size: clamp(1.06rem, 4.3vw, 1.30rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.18;
    text-shadow: 0 2px 14px rgba(2, 6, 23, 0.85);
}

.afterlink-universe-hero-sub {
    margin: 2px 0 clamp(8px, 1.4dvh, 13px);
    font-size: clamp(0.70rem, 2.8vw, 0.80rem);
    color: #CBD5E1;
    letter-spacing: 0.02em;
}

.afterlink-universe-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(7px, 1.15dvh, 10px) 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(90deg, #0EA5FF 0%, #6366F1 55%, #A855F7 100%);
    color: #FFFFFF;
    font-size: clamp(0.80rem, 3.1vw, 0.88rem);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(14, 165, 255, 0.42), 0 0 20px rgba(168, 85, 247, 0.36);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.afterlink-universe-hero-cta:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 28px rgba(14, 165, 255, 0.55), 0 0 26px rgba(168, 85, 247, 0.48);
}

/* 4-Column Compact Quick-Access Row */
.afterlink-quick-grid.afterlink-start-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 1.7vw, 11px);
    flex-shrink: 0;
}

.afterlink-quick-tile.afterlink-bento-tile {
    min-height: 0;
    padding: clamp(8px, 1.25dvh, 13px) 4px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    background: linear-gradient(160deg, rgba(20, 29, 54, 0.92) 0%, rgba(12, 18, 35, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.26);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: visible;
}

.afterlink-quick-tile .afterlink-bento-icon {
    width: 34px;
    height: 34px;
    border-radius: 0;
    margin-bottom: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.afterlink-quick-tile .afterlink-bento-icon svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 8px rgba(14, 165, 255, 0.28));
}

.afterlink-quick-tile .afterlink-bento-icon.icon-primary {
    background: transparent !important;
    border: none !important;
    color: #F1F5F9;
}

.afterlink-quick-tile .afterlink-bento-icon.icon-accent {
    background: transparent !important;
    border: none !important;
    color: #F1F5F9;
}

.afterlink-quick-tile .afterlink-bento-icon.icon-highlight {
    background: transparent !important;
    border: none !important;
    color: #FACC15;
}

.afterlink-quick-tile .afterlink-bento-icon.icon-highlight svg {
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.45));
}

.afterlink-quick-tile .afterlink-bento-title {
    font-size: clamp(0.66rem, 2.5vw, 0.78rem);
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.15;
}

.afterlink-quick-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    color: #FFFFFF;
    font-size: 0.64rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0B0F1A;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.65);
    z-index: 2;
}

.afterlink-pulse-live-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F43F5E;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.95);
    animation: pulse-dot 1.8s infinite;
}

/* Match des Tages Card */
body.view-active-start .afterlink-featured-card {
    padding: clamp(10px, 1.55dvh, 16px) 14px;
    border-radius: 22px;
    flex-shrink: 0;
    background:
        radial-gradient(110% 100% at 95% 0%, rgba(168, 85, 247, 0.28) 0%, transparent 62%),
        radial-gradient(90% 90% at 10% 100%, rgba(14, 165, 255, 0.22) 0%, transparent 62%),
        linear-gradient(160deg, rgba(20, 29, 56, 0.94) 0%, rgba(11, 17, 34, 0.97) 100%);
    border: 1px solid rgba(139, 92, 246, 0.46);
    box-shadow: 0 16px 38px -12px rgba(2, 6, 23, 0.9), 0 0 24px rgba(14, 165, 255, 0.18);
}

body.view-active-start .afterlink-featured-top {
    margin-bottom: clamp(6px, 1dvh, 10px);
}

.afterlink-featured-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.afterlink-featured-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

body.view-active-start .afterlink-featured-label {
    font-size: clamp(0.95rem, 3.8vw, 1.06rem);
    font-weight: 800;
    color: #FFFFFF;
}

.afterlink-featured-person-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.afterlink-featured-meta {
    min-width: 0;
    flex: 1;
}

.afterlink-featured-meta .afterlink-featured-name {
    margin: 0;
    font-size: clamp(0.98rem, 3.9vw, 1.10rem);
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afterlink-featured-meta .afterlink-featured-role,
.afterlink-featured-meta .afterlink-featured-industry {
    font-size: clamp(0.74rem, 2.9vw, 0.82rem);
    color: #CBD5E1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.afterlink-featured-meta .afterlink-featured-industry {
    color: #94A3B8;
}

.afterlink-featured-reason-row {
    margin-top: clamp(6px, 1dvh, 10px);
    padding-top: clamp(6px, 0.9dvh, 9px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.afterlink-featured-reason-box {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.afterlink-reason-handshake {
    font-size: 1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.afterlink-featured-reason-text {
    font-size: clamp(0.75rem, 2.95vw, 0.82rem);
    color: #CBD5E1;
    line-height: 1.34;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- UNIVERSE VIEW: FRAMELESS FULL-BACKGROUND & FLOATING UI ---------- */
@keyframes universeEnterFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.view-active-universe {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    body.view-active-universe {
        padding-bottom: 12px;
    }
}

body.view-active-universe .main-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.view-active-universe #view-universe.view-section.active:not(.is-fullscreen) {
    animation: universeEnterFade 0.28s ease both;
    flex: 1;
    display: flex !important;
    flex-direction: column;
}

#view-universe:not(.is-fullscreen) .afterlink-universe-frameless {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 14px max(10px, env(safe-area-inset-bottom, 10px)) !important;
    margin: 0 !important;
    min-height: calc(100dvh - 68px - env(safe-area-inset-bottom, 0px));
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible !important;
    pointer-events: none;
}

#view-universe:not(.is-fullscreen) .universe-stage-row {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto;
}

#view-universe:not(.is-fullscreen) .universe-canvas-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: default;
    touch-action: none !important;
}

#view-universe:not(.is-fullscreen) .universe-brand-badge {
    display: none !important;
}

.afterlink-universe-overlay-top,
.afterlink-universe-overlay-bottom {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.afterlink-universe-overlay-top button,
.afterlink-universe-overlay-top .afterlink-start-brand-center,
.afterlink-universe-overlay-top .afterlink-universe-drawer,
.afterlink-universe-overlay-top .event-checkin-banner-card,
.afterlink-universe-overlay-top .alert,
.afterlink-universe-overlay-top .universe-nudges-strip,
.afterlink-universe-overlay-top .universe-digest-strip,
.afterlink-universe-overlay-bottom .star-floating-dock,
.afterlink-universe-overlay-bottom .afterlink-universe-stats-glass,
.afterlink-universe-overlay-bottom .afterlink-universe-expand-btn {
    pointer-events: auto;
}

.afterlink-info-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #F8FAFC;
    font-family: Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: all 0.18s ease;
    justify-self: end;
}

.afterlink-info-circle-btn:hover,
.afterlink-info-circle-btn.active {
    border-color: #38BDF8;
    background: rgba(14, 165, 255, 0.24);
    box-shadow: 0 0 16px rgba(14, 165, 255, 0.45);
}

.afterlink-universe-heading-block {
    text-align: center;
    padding: 0 6px;
    pointer-events: none;
}

.afterlink-universe-hero-heading {
    margin: 0 !important;
    font-size: clamp(1.22rem, 4.8vw, 1.56rem) !important;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(14, 165, 255, 0.38), 0 2px 10px rgba(0, 0, 0, 0.85);
}

.afterlink-universe-hero-subheading {
    margin: 2px 0 0 !important;
    font-size: clamp(0.76rem, 3vw, 0.86rem);
    color: rgba(226, 232, 240, 0.85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.afterlink-universe-drawer {
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(11, 16, 34, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.82);
}

.afterlink-universe-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.86rem;
    font-weight: 700;
    color: #E2E8F0;
}

/* Unified 3-column translucent frosted glass stats card */
#view-universe:not(.is-fullscreen) .universe-stats-dock.afterlink-universe-stats-glass {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 9px 4px;
    border-radius: 18px;
    background: rgba(11, 16, 36, 0.56);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.42);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    width: 100%;
    margin: 0;
}

#view-universe:not(.is-fullscreen) .afterlink-universe-stats-glass .univ-stat-card {
    background: transparent !important;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2px 6px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
}

#view-universe:not(.is-fullscreen) .afterlink-universe-stats-glass .univ-stat-card:last-child {
    border-right: none !important;
}

.univ-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
}

.univ-stat-icon.icon-cyan { color: #38BDF8; }
.univ-stat-icon.icon-gold { color: #F5B547; }
.univ-stat-icon.icon-violet { color: #C084FC; }

#view-universe:not(.is-fullscreen) .afterlink-universe-stats-glass .univ-stat-num {
    font-size: clamp(1.02rem, 4vw, 1.24rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
}

#view-universe:not(.is-fullscreen) .afterlink-universe-stats-glass .univ-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #CBD5E1;
    letter-spacing: 0.02em;
    text-transform: none;
}

.afterlink-universe-expand-btn {
    width: 100%;
    padding: clamp(11px, 1.5dvh, 14px) 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(90deg, #0EA5FF 0%, #6366F1 52%, #C026D3 100%);
    color: #FFFFFF;
    font-size: 0.96rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(14, 165, 255, 0.40), 0 0 26px rgba(192, 38, 211, 0.34);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.afterlink-universe-expand-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(14, 165, 255, 0.52), 0 0 32px rgba(192, 38, 211, 0.45);
}

/* Keep Selected Star Card clean over the glass stats dock */
#view-universe:not(.is-fullscreen) .star-floating-dock {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-bottom: 4px;
    background: rgba(11, 16, 36, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 20px;
    width: 100%;
}

/* ---------- UNIVERSE FULLSCREEN OVERLAY CLEANUP: NUR KONTAKTE · GEMEINSAMKEITEN · OFFEN OHNE HINTERGRUND ---------- */
#view-universe:fullscreen .afterlink-universe-overlay-top,
#view-universe:-webkit-full-screen .afterlink-universe-overlay-top,
#view-universe.is-fullscreen .afterlink-universe-overlay-top,
.universe-container:fullscreen .afterlink-universe-overlay-top,
.universe-container:-webkit-full-screen .afterlink-universe-overlay-top,
#view-universe:fullscreen #universe-expand-network-btn,
#view-universe:-webkit-full-screen #universe-expand-network-btn,
#view-universe.is-fullscreen #universe-expand-network-btn,
.universe-container:fullscreen #universe-expand-network-btn,
.universe-container:-webkit-full-screen #universe-expand-network-btn {
    display: none !important;
}

body:has(#view-universe.is-fullscreen) .nav-tabs,
body:has(#view-universe:fullscreen) .nav-tabs {
    display: none !important;
}

#view-universe:fullscreen .afterlink-universe-overlay-bottom,
#view-universe:-webkit-full-screen .afterlink-universe-overlay-bottom,
#view-universe.is-fullscreen .afterlink-universe-overlay-bottom,
.universe-container:fullscreen .afterlink-universe-overlay-bottom,
.universe-container:-webkit-full-screen .afterlink-universe-overlay-bottom {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: calc(100vw - 48px) !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 22 !important;
    pointer-events: none !important;
}

#view-universe:fullscreen .universe-stats-dock.afterlink-universe-stats-glass,
#view-universe:-webkit-full-screen .universe-stats-dock.afterlink-universe-stats-glass,
#view-universe.is-fullscreen .universe-stats-dock.afterlink-universe-stats-glass,
.universe-container:fullscreen .universe-stats-dock.afterlink-universe-stats-glass,
.universe-container:-webkit-full-screen .universe-stats-dock.afterlink-universe-stats-glass {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#view-universe:fullscreen .afterlink-universe-stats-glass .univ-stat-card,
#view-universe:-webkit-full-screen .afterlink-universe-stats-glass .univ-stat-card,
#view-universe.is-fullscreen .afterlink-universe-stats-glass .univ-stat-card,
.universe-container:fullscreen .afterlink-universe-stats-glass .univ-stat-card,
.universe-container:-webkit-full-screen .afterlink-universe-stats-glass .univ-stat-card {
    background: transparent !important;
    border: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 2px 6px !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 2px !important;
}

#view-universe:fullscreen .afterlink-universe-stats-glass .univ-stat-card:hover,
#view-universe:-webkit-full-screen .afterlink-universe-stats-glass .univ-stat-card:hover,
#view-universe.is-fullscreen .afterlink-universe-stats-glass .univ-stat-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

#view-universe:fullscreen .afterlink-universe-stats-glass .univ-stat-num,
#view-universe:-webkit-full-screen .afterlink-universe-stats-glass .univ-stat-num,
#view-universe.is-fullscreen .afterlink-universe-stats-glass .univ-stat-num {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 14px rgba(14, 165, 255, 0.32) !important;
}

#view-universe:fullscreen .afterlink-universe-stats-glass .univ-stat-label,
#view-universe:-webkit-full-screen .afterlink-universe-stats-glass .univ-stat-label,
#view-universe.is-fullscreen .afterlink-universe-stats-glass .univ-stat-label {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    color: rgba(226, 232, 240, 0.92) !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95) !important;
}

/* Translucent bottom navigation over full-background Universe */
body.view-active-universe .nav-tabs {
    background: rgba(9, 13, 26, 0.90);
    backdrop-filter: saturate(190%) blur(18px);
    -webkit-backdrop-filter: saturate(190%) blur(18px);
}

/* Disable costly real-time backdrop blur and infinite dot animations over animated Universe canvas */
body.view-active-universe .nav-tabs,
body.view-active-universe #view-universe .universe-stats-dock,
body.view-active-universe #view-universe .afterlink-info-circle-btn,
body.view-active-universe #view-universe .afterlink-universe-drawer,
body.view-active-universe #view-universe .star-floating-dock,
body.view-active-universe #view-universe .universe-live-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.view-active-universe #view-universe .live-dot {
    animation: none !important;
}

/* Match des Tages: horizontales Wischen & kompakte Swipe-Indikatoren */
#start-featured-match-card {
    touch-action: pan-y;
    user-select: none;
    overflow: hidden;
    cursor: grab;
}

#start-featured-match-card:active {
    cursor: grabbing;
}

#start-featured-match-body {
    transition: transform 0.16s ease, opacity 0.16s ease;
    will-change: transform, opacity;
}

@keyframes matchSwipeInNext {
    from { opacity: 0.25; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes matchSwipeInPrev {
    from { opacity: 0.25; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

#start-featured-match-body.swipe-in-next {
    animation: matchSwipeInNext 0.22s var(--ease) both;
}

#start-featured-match-body.swipe-in-prev {
    animation: matchSwipeInPrev 0.22s var(--ease) both;
}

.afterlink-featured-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: clamp(5px, 0.8dvh, 8px);
}

.afterlink-featured-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.afterlink-featured-dot.active {
    width: 18px;
    background: linear-gradient(90deg, #0EA5FF 0%, #A855F7 100%);
    box-shadow: 0 0 8px rgba(14, 165, 255, 0.55);
}

.afterlink-featured-swipe-hint {
    margin-left: 4px;
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.72);
    letter-spacing: 0.03em;
}

/* ==========================================================================
   AFTERLINK v35.84 – ENTDECKEN REDESIGN (3 FILTER · TOP MATCH HERO · BENTO)
   ========================================================================== */
.afterlink-entdecken-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 2px 12px;
    overflow: visible;
}

.afterlink-entdecken-planet {
    position: absolute;
    right: -18px;
    top: -18px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 28% 35%, rgba(56, 189, 248, 0.38) 0%, rgba(30, 58, 138, 0.55) 38%, rgba(11, 15, 28, 0) 74%);
    box-shadow: inset 10px 8px 26px rgba(125, 211, 252, 0.34);
    opacity: 0.85;
    z-index: 0;
}

.afterlink-entdecken-head-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.afterlink-entdecken-top-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.afterlink-top-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #E2E8F0;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.afterlink-top-chip-btn:hover,
.afterlink-top-chip-btn.active {
    border-color: #38BDF8;
    background: rgba(14, 165, 255, 0.22);
    color: #FFFFFF;
}

.afterlink-entdecken-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    z-index: 2;
}

.afterlink-entdecken-search-wrap .afterlink-search-input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(56, 189, 248, 0.26);
    color: #F8FAFC;
    font-size: 0.90rem;
}

.afterlink-search-clear-btn {
    position: absolute;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.22);
    color: #F8FAFC;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Strictly 3 Clean Main Pills: Für dich · Impulse · Deals */
#voting-subtab-bar.afterlink-entdecken-3pills {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

#voting-subtab-bar.afterlink-entdecken-3pills .discover-legacy-subtab-hook {
    display: none !important;
}

#voting-subtab-bar.afterlink-entdecken-3pills .tab-btn {
    flex-direction: row !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    font-size: clamp(0.80rem, 3.2vw, 0.88rem) !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    gap: 6px !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.2s ease !important;
}

#voting-subtab-bar.afterlink-entdecken-3pills .tab-btn:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

#voting-subtab-bar.afterlink-entdecken-3pills .tab-btn.active {
    background: linear-gradient(135deg, #00d2ff 0%, #a855f7 50%, #ff1493 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.72) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.48), 0 0 16px rgba(0, 210, 255, 0.38) !important;
}

/* 3 Sub-Filter Pills: Personen · Angebote · Gesuche */
.afterlink-entdecken-subpills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.afterlink-entdecken-subpills-row::-webkit-scrollbar {
    display: none;
}

.entdecken-subpill {
    flex: 1;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.entdecken-subpill:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.entdecken-subpill.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(56, 189, 248, 0.45);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

/* Hero Card: ⚡ 15s-Impuls */
.afterlink-hero-15s-card {
    position: relative;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(26, 16, 48, 0.82) 0%, rgba(13, 19, 39, 0.88) 100%);
    border: 1px solid rgba(168, 85, 247, 0.32);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 18px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-15s-left {
    flex: 1;
    min-width: 0;
    z-index: 2;
}

.hero-15s-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.hero-15s-bolt {
    color: #facc15;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.6));
}

.hero-15s-sub {
    font-size: 0.80rem;
    color: #cbd5e1;
    line-height: 1.35;
    margin-bottom: 14px;
    max-width: 220px;
}

.hero-15s-cta-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #a855f7 50%, #ff1493 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 18px rgba(255, 20, 147, 0.35), 0 0 12px rgba(0, 210, 255, 0.3) !important;
    cursor: pointer !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.hero-15s-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 20, 147, 0.45), 0 0 16px rgba(0, 210, 255, 0.4) !important;
}

.hero-15s-right {
    width: 95px;
    height: 95px;
    max-width: 28%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-15s-rocket-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(244, 114, 182, 0.3));
}

/* Curated Feed Cards */
.entdecken-curated-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.entdecken-feed-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.entdecken-feed-card:hover {
    background: rgba(20, 30, 55, 0.82);
    border-color: rgba(56, 189, 248, 0.32);
    transform: translateY(-1px);
}

.entdecken-feed-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}

.entdecken-feed-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.45);
    display: block;
}

.entdecken-feed-avatar-ph {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 2px solid rgba(56, 189, 248, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.entdecken-feed-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0b0f19;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.entdecken-feed-squircle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    flex-shrink: 0;
}

.squircle-purple {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.55), rgba(126, 34, 206, 0.4));
    border: 1px solid rgba(192, 132, 252, 0.35);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.squircle-amber {
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.55), rgba(180, 83, 9, 0.4));
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.entdecken-feed-info {
    flex: 1;
    min-width: 0;
}

.entdecken-feed-eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 2px;
}

.eyebrow-cyan {
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.eyebrow-magenta {
    color: #f472b6;
    text-shadow: 0 0 10px rgba(244, 114, 182, 0.4);
}

.eyebrow-amber {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.entdecken-feed-title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.entdecken-feed-sub {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.entdecken-feed-chevron-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.entdecken-feed-chevron-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.06);
}

/* Header brand icon only on Entdecken & unified centered container */
body.view-active-voting .app-header .brand > div:last-child {
    display: none !important;
}

.afterlink-entdecken-planet {
    display: none !important;
}

#view-voting {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

#view-voting .networking-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
}

/* Sub-navigation bar inside Chancen */
.chancen-subswitch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.chancen-sub-pill {
    flex: 1 1 auto;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #CBD5E1;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: all 0.18s ease;
}

.chancen-sub-pill.active {
    background: rgba(139, 92, 246, 0.24);
    border-color: rgba(168, 85, 247, 0.65);
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.28);
}

/* Top Match heute Hero Card */
.entdecken-top-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background:
        radial-gradient(95% 95% at 88% 88%, rgba(168, 85, 247, 0.34) 0%, transparent 62%),
        radial-gradient(80% 80% at 15% 15%, rgba(14, 165, 255, 0.20) 0%, transparent 60%),
        linear-gradient(155deg, rgba(20, 30, 58, 0.94) 0%, rgba(11, 17, 34, 0.97) 100%);
    border: 1px solid rgba(139, 92, 246, 0.48);
    box-shadow: 0 14px 36px -12px rgba(2, 6, 23, 0.9), 0 0 24px rgba(139, 92, 246, 0.24);
}

.entdecken-top-hero-eyebrow {
    font-size: 0.84rem;
    font-weight: 800;
    color: #38BDF8;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.entdecken-top-hero-row {
    display: flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
}

.entdecken-top-hero-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(125, 211, 252, 0.78);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}

.entdecken-top-hero-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0EA5FF, #7C3AED);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.35rem;
}

.entdecken-top-hero-info {
    min-width: 0;
    flex: 1;
}

.entdecken-top-hero-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.entdecken-top-hero-name {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entdecken-top-score-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #34D399;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.48);
    flex-shrink: 0;
}

.entdecken-top-hero-role {
    font-size: 0.80rem;
    color: #CBD5E1;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entdecken-top-hero-reason {
    font-size: 0.80rem;
    color: #E2E8F0;
    margin-top: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.entdecken-top-hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.entdecken-top-hero-actions .btn-top-hero-action {
    flex: 1 1 120px;
    min-width: 0;
    height: 38px;
    border-radius: 999px;
    font-size: clamp(0.76rem, 2.8vw, 0.84rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entdecken-top-hero-actions .btn-top-hero-primary {
    background: linear-gradient(135deg, #0EA5FF 0%, #6366F1 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(14, 165, 255, 0.3);
}

.entdecken-top-hero-actions .btn-top-hero-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #E2E8F0;
}

.entdecken-top-hero-actions .btn-top-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

.entdecken-top-hero-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    justify-content: flex-end;
}

.btn-match-feedback {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-match-feedback:hover {
    background: rgba(14, 165, 255, 0.15);
    color: #E2E8F0;
    border-color: rgba(14, 165, 255, 0.35);
}

.btn-match-feedback.active {
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.28), rgba(99, 102, 241, 0.28));
    border-color: rgba(56, 189, 248, 0.6);
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(14, 165, 255, 0.3);
}

.provisional-match-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.70rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(245, 181, 71, 0.12);
    border: 1px solid rgba(245, 181, 71, 0.32);
    color: #FDE68A;
    font-weight: 600;
}

/* 2-Column Bento Cards (Neue Kontakte & Business Chancen) */
.entdecken-bento-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.entdecken-bento-card {
    position: relative;
    text-align: left;
    padding: 13px 12px;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(20, 29, 54, 0.92) 0%, rgba(11, 16, 34, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.78);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.entdecken-bento-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.65);
}

.entdecken-bento-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.entdecken-bento-icon.icon-cyan {
    color: #38BDF8;
    background: rgba(14, 165, 255, 0.14);
}

.entdecken-bento-icon.icon-violet {
    color: #C084FC;
    background: rgba(168, 85, 247, 0.16);
}

.entdecken-bento-title {
    font-size: 0.90rem;
    font-weight: 800;
    color: #FFFFFF;
}

.entdecken-bento-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.entdecken-bento-sub {
    font-size: 0.72rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entdecken-bento-arrow {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Match & Profile Action Buttons (👤 Profil · 🔗 Vernetzen) */
.entdecken-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.btn-entdecken-profile {
    flex: 1 1 0;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.80);
    color: #E2E8F0;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-entdecken-profile:hover {
    border-color: rgba(56, 189, 248, 0.55);
    color: #FFFFFF;
}

.btn-entdecken-connect {
    flex: 1.25 1 0;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(90deg, #0EA5FF 0%, #6366F1 54%, #A855F7 100%);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(14, 165, 255, 0.34);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-entdecken-connect:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(14, 165, 255, 0.48);
}

.entdecken-person-v2-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 20px !important;
}

.entdecken-person-v2-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Global Cross-Tab Search Results */
.discover-global-search-results {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(11, 16, 34, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.32);
}

.discover-search-group-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #38BDF8;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.discover-search-group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discover-opp-hit-card {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(20, 29, 54, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.28);
    cursor: pointer;
}

.discover-opp-hit-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #C084FC;
    margin-bottom: 2px;
}

.discover-opp-hit-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
}

.discover-opp-hit-sub {
    font-size: 0.74rem;
    color: #94A3B8;
    margin-top: 2px;
}

/* ==========================================================================
   V35.85: INBOX REDESIGN (Chats · Event-Chats · Anfragen)
   ========================================================================== */
body.view-active-chat:not(.is-presentation) .app-header {
    display: none !important;
}

@media (min-width: 768px) {
    body.view-active-chat:not(.is-presentation) .nav-tabs {
        top: 0;
    }
}

body.is-presentation .afterlink-inbox-topbar {
    display: none !important;
}

.afterlink-inbox-shell {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 12px calc(80px + env(safe-area-inset-bottom, 0px));
}

.afterlink-entdecken-topbar,
.afterlink-inbox-topbar {
    margin-bottom: 10px !important;
}

.afterlink-inbox-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    justify-self: end;
}

.afterlink-inbox-circle-btn:hover,
.afterlink-inbox-circle-btn.active {
    border-color: rgba(168, 85, 247, 0.65);
    background: rgba(30, 41, 74, 0.9);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.afterlink-inbox-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 12px;
}

.afterlink-inbox-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.afterlink-inbox-heading-wrap {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.afterlink-inbox-heading {
    margin: 0;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.1;
}

.afterlink-inbox-title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.95);
    display: inline-block;
    flex-shrink: 0;
}

.afterlink-inbox-search-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: rgba(12, 18, 38, 0.86);
    border: 1px solid rgba(139, 92, 246, 0.36);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.afterlink-inbox-toggle.afterlink-inbox-3tabs,
.afterlink-inbox-3tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 14px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.afterlink-inbox-toggle.afterlink-inbox-3tabs .afterlink-pill-tab,
.afterlink-inbox-3tabs .afterlink-pill-tab {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 62px !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 8px 4px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(160deg, rgba(16, 24, 48, 0.85), rgba(10, 14, 30, 0.92));
    color: #cbd5e1;
    font-size: clamp(0.68rem, 2.4vw, 0.78rem) !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: all 0.2s ease;
    overflow: visible;
    box-sizing: border-box !important;
}

.afterlink-inbox-3tabs .afterlink-pill-tab .inbox-tab-svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #7dd3fc;
    opacity: 0.9;
    transition: transform 0.2s ease, color 0.2s ease;
}

.afterlink-inbox-3tabs .afterlink-pill-tab .inbox-tab-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.afterlink-inbox-3tabs .afterlink-pill-tab.active {
    background: linear-gradient(155deg, rgba(56, 189, 248, 0.26), rgba(139, 92, 246, 0.34));
    border-color: rgba(168, 85, 247, 0.78);
    color: #ffffff;
    box-shadow:
        0 0 22px rgba(99, 102, 241, 0.35),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.afterlink-inbox-3tabs .afterlink-pill-tab.active .inbox-tab-svg {
    color: #ffffff;
    transform: scale(1.06);
}

.inbox-card-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff !important;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #090d1e;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.6);
}

.inbox-event-room-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(22, 30, 58, 0.92), rgba(15, 20, 42, 0.92));
    border: 1px solid rgba(99, 102, 241, 0.32);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.inbox-event-room-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.55), rgba(37, 99, 235, 0.4));
    border: 1px solid rgba(192, 132, 252, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.inbox-event-room-meta {
    flex: 1;
    min-width: 0;
}

.inbox-event-room-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-event-room-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
}

.inbox-thread-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(16, 24, 48, 0.88), rgba(10, 15, 32, 0.94)) !important;
    border: 1px solid rgba(125, 211, 252, 0.16) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.inbox-thread-card:hover {
    border-color: rgba(168, 85, 247, 0.45) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.22) !important;
}

.inbox-thread-card.has-unread {
    border-color: rgba(168, 85, 247, 0.42) !important;
    background: linear-gradient(145deg, rgba(24, 30, 62, 0.94), rgba(14, 18, 40, 0.96)) !important;
}

.inbox-thread-avatar-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    min-width: 50px;
    flex-shrink: 0;
}

.inbox-thread-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.16);
}

.inbox-thread-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.08rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(168, 85, 247, 0.45));
}

.inbox-thread-online-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0b1124;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.inbox-thread-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.inbox-thread-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.inbox-thread-name-group {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.inbox-thread-name {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-verified-tick {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inbox-thread-time {
    font-size: 0.74rem;
    color: #94a3b8;
    flex-shrink: 0;
    font-weight: 600;
}

.inbox-thread-time.is-unread {
    color: #c4b5fd;
    font-weight: 700;
}

.inbox-thread-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.inbox-thread-preview {
    font-size: 0.82rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.inbox-thread-preview.is-placeholder {
    color: #94a3b8;
}

.inbox-thread-status-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.inbox-muted-icon {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1;
}

.inbox-unread-dot-pill {
    min-width: 11px;
    height: 11px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c084fc, #a855f7);
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.85);
}

.inbox-compose-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.16s ease;
}

.inbox-compose-row:hover {
    background: rgba(56, 189, 248, 0.1);
}

.inbox-compose-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.inbox-compose-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(168, 85, 247, 0.45));
}

/* Inbox Compose Bottom Sheet on Mobile: Stays anchored at the bottom edge */
#inbox-compose-modal.modal-backdrop {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
}

#inbox-compose-modal .modal-card {
    border-radius: 24px 24px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    max-height: calc(85dvh - env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px)) !important;
}

@media (min-width: 520px) {
    #inbox-compose-modal.modal-backdrop {
        align-items: center !important;
        padding: 20px !important;
    }
    #inbox-compose-modal .modal-card {
        border-radius: 24px !important;
        max-width: 440px !important;
        margin: auto !important;
        padding-bottom: 16px !important;
    }
}

/* 15s-Impuls, Warm-Intro & Report Bottom-Sheets on Mobile */
#radar-impulse-modal.modal-backdrop,
#warm-intro-optin-modal.modal-backdrop,
#radar-report-modal.modal-backdrop,
.radar-bottom-sheet-backdrop,
.warm-intro-bottom-sheet-backdrop {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
}

#radar-impulse-modal .modal-card,
#warm-intro-optin-modal .modal-card,
#radar-report-modal .modal-card,
.radar-bottom-sheet-card,
.warm-intro-bottom-sheet-card {
    border-radius: 24px 24px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    max-height: calc(88dvh - env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px)) !important;
}

@media (min-width: 520px) {
    #radar-impulse-modal.modal-backdrop,
    #warm-intro-optin-modal.modal-backdrop,
    #radar-report-modal.modal-backdrop,
    .radar-bottom-sheet-backdrop,
    .warm-intro-bottom-sheet-backdrop {
        align-items: center !important;
        padding: 20px !important;
    }
    #radar-impulse-modal .modal-card {
        border-radius: 24px !important;
        max-width: 520px !important;
        margin: auto !important;
        padding-bottom: 20px !important;
    }
    #warm-intro-optin-modal .modal-card,
    #radar-report-modal .modal-card {
        border-radius: 24px !important;
        max-width: 480px !important;
        margin: auto !important;
        padding-bottom: 20px !important;
    }
}

/* ==========================================================================
   V35.86: PROFIL REDESIGN (Flowing Cover · Business/Gold Pass · 4 Stats · 3 Biz Rows)
   ========================================================================== */
body.view-active-profile .app-header {
    display: none !important;
}

@media (min-width: 768px) {
    body.view-active-profile .nav-tabs {
        top: 0;
    }
}

body.view-active-profile .main-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.afterlink-profile-v2,
body.view-active-profile .insta-profile-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 calc(110px + env(safe-area-inset-bottom, 0px)) 0 !important;
    overflow-x: hidden;
}

.afterlink-profile-v2 .insta-profile-container > :not(.profile-cover-hero) {
    max-width: 560px;
    width: calc(100% - 28px);
    margin-left: auto;
    margin-right: auto;
}

.profile-cover-hero {
    position: relative;
    width: 100%;
    min-height: 250px;
    margin-bottom: 44px;
    border-radius: 0 !important;
    overflow: visible;
}

.profile-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -230px;
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 0 !important;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, 0.45) 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 66%, rgba(0, 0, 0, 0.45) 84%, transparent 100%);
    background:
        radial-gradient(ellipse 85% 75% at 14% 48%, rgba(255, 20, 147, 0.62), transparent 62%),
        radial-gradient(ellipse 80% 70% at 86% 36%, rgba(0, 212, 255, 0.56), transparent 62%),
        radial-gradient(ellipse 70% 60% at 50% 56%, rgba(147, 51, 234, 0.44), transparent 68%),
        linear-gradient(175deg, #020309 0%, #050714 58%, #020309 100%);
}

.profile-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    z-index: 1;
}

.profile-cover-aurora {
    position: absolute;
    inset: -20% -10%;
    background:
        conic-gradient(from 195deg at 50% 55%,
            rgba(255, 30, 142, 0.42),
            rgba(147, 51, 234, 0.46),
            rgba(0, 229, 255, 0.36),
            rgba(2, 4, 10, 0.05),
            rgba(255, 30, 142, 0.42));
    filter: blur(22px);
    opacity: 0.92;
    pointer-events: none;
    z-index: 0;
}

.profile-cover-waves-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 18px rgba(255, 30, 142, 0.92)) drop-shadow(0 0 26px rgba(0, 229, 255, 0.72));
}

.profile-cover-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(2, 4, 10, 0.16) 0%,
        rgba(2, 4, 10, 0.02) 32%,
        rgba(2, 4, 10, 0.18) 60%,
        rgba(2, 4, 10, 0.65) 82%,
        rgba(2, 4, 10, 0.94) 94%,
        #02040a 100%);
    z-index: 2;
    pointer-events: none;
}

.profile-cover-topbar .afterlink-start-brand-rings {
    height: clamp(28px, 4.2dvh, 38px);
    width: auto;
}

.profile-cover-topbar .afterlink-start-brand-wordmark,
.profile-hero-avatar-anchor .afterlink-start-brand-wordmark,
body.view-active-profile .profile-cover-brand .afterlink-start-brand-wordmark {
    display: none !important;
}

.profile-cover-topbar .insta-gear-btn {
    color: #f8fafc;
}

.profile-cover-topbar {
    position: relative;
    z-index: 6;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px) 16px 6px !important;
    max-width: 600px;
    margin: 0 auto;
    gap: 8px;
}

.profile-avatar-top-logo {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.profile-avatar-top-logo:hover {
    transform: translateX(-50%) scale(1.08);
}

.profile-avatar-top-logo:active {
    transform: translateX(-50%) scale(0.95);
}

.profile-avatar-logo-img {
    height: clamp(32px, 4.4dvh, 40px);
    width: auto;
    object-fit: contain;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 10px rgba(14, 165, 233, 0.55)) drop-shadow(0 4px 18px rgba(139, 92, 246, 0.45));
    pointer-events: auto;
}

@media (min-width: 768px) {
    body.view-active-profile .profile-cover-hero {
        min-height: 290px;
        padding-top: 62px;
    }
    .profile-cover-bg {
        bottom: -250px;
    }
}

.profile-tier-pass-pill {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff7ed;
    border: 1px solid rgba(251, 191, 36, 0.55);
    background: linear-gradient(125deg, rgba(245, 158, 11, 0.34), rgba(139, 92, 246, 0.42), rgba(59, 130, 246, 0.38));
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.16s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.profile-tier-pass-pill.is-pro {
    border-color: rgba(56, 189, 248, 0.65);
    background: linear-gradient(125deg, rgba(14, 165, 233, 0.45), rgba(168, 85, 247, 0.55));
}

.profile-tier-pass-pill.is-gold {
    border-color: rgba(251, 191, 36, 0.8);
    background: linear-gradient(125deg, rgba(245, 158, 11, 0.55), rgba(168, 85, 247, 0.48));
}

.profile-tier-pass-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.55);
}

.profile-cover-brand {
    justify-self: center;
}

.profile-cover-action-cluster {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    z-index: 6;
}

.profile-cover-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   GLOBAL CIRCLE ACTION BUTTONS (Logout, Teilen, Settings, Info, Bell, etc.)
   Strikte Kreisform (50% Radius & Aspect-Ratio 1:1) in edlem Obsidian-Glas
   ========================================================================== */
.app-circle-action-btn,
.profile-cover-circle-btn,
.afterlink-topbar-circle-btn,
.header-logout-btn,
.header-share-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    border-radius: 9999px !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    background: linear-gradient(155deg, rgba(14, 20, 38, 0.94) 0%, rgba(6, 10, 22, 0.98) 100%) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    color: #f8fafc !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    text-decoration: none !important;
    outline: none !important;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.app-circle-action-btn:hover,
.profile-cover-circle-btn:not(.profile-logout-btn):hover,
.afterlink-topbar-circle-btn:not(.afterlink-logout-btn):hover,
.header-share-btn:hover {
    background: linear-gradient(155deg, rgba(22, 32, 60, 0.96) 0%, rgba(12, 18, 36, 0.98) 100%) !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 14px rgba(0, 229, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) scale(1.06) !important;
    color: #ffffff !important;
}

.app-circle-action-btn:active,
.profile-cover-circle-btn:active,
.afterlink-topbar-circle-btn:active,
.header-logout-btn:active,
.header-share-btn:active {
    transform: translateY(0) scale(0.94) !important;
}

.app-circle-action-btn svg,
.profile-cover-circle-btn:not(.profile-logout-btn) svg,
.afterlink-topbar-circle-btn:not(.afterlink-logout-btn) svg,
.header-share-btn svg {
    color: #f8fafc !important;
    stroke: #f8fafc !important;
    transition: transform 0.18s ease, stroke 0.18s ease !important;
}

.app-circle-action-btn:hover svg,
.profile-cover-circle-btn:not(.profile-logout-btn):hover svg,
.afterlink-topbar-circle-btn:not(.afterlink-logout-btn):hover svg,
.header-share-btn:hover svg {
    color: #38bdf8 !important;
    stroke: #38bdf8 !important;
}

/* --------------------------------------------------------------------------
   ROTER LOGOUT-BUTTON (Dezent rubinrot, rote Kontur, klares Signalrot-Icon)
   -------------------------------------------------------------------------- */
.profile-logout-btn,
.afterlink-logout-btn,
.header-logout-btn {
    background: linear-gradient(155deg, rgba(34, 10, 18, 0.92) 0%, rgba(18, 6, 12, 0.96) 100%) !important;
    border: 1px solid rgba(244, 63, 94, 0.45) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 12px rgba(244, 63, 94, 0.2), inset 0 1px 0 rgba(254, 205, 211, 0.16) !important;
    color: #f43f5e !important;
}

.profile-logout-btn svg,
.profile-logout-btn .header-logout-svg,
.afterlink-logout-btn svg,
.header-logout-btn svg,
.header-logout-btn .header-logout-svg {
    color: #f43f5e !important;
    stroke: #f43f5e !important;
    stroke-width: 2.2 !important;
}

.profile-logout-btn:hover,
.afterlink-logout-btn:hover,
.header-logout-btn:hover {
    background: linear-gradient(155deg, rgba(52, 14, 26, 0.96) 0%, rgba(28, 8, 16, 0.98) 100%) !important;
    border-color: rgba(239, 68, 68, 0.85) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 18px rgba(244, 63, 94, 0.45), inset 0 1px 0 rgba(254, 205, 211, 0.28) !important;
    transform: translateY(-1px) scale(1.08) !important;
}

.profile-logout-btn:hover svg,
.profile-logout-btn:hover .header-logout-svg,
.afterlink-logout-btn:hover svg,
.header-logout-btn:hover svg,
.header-logout-btn:hover .header-logout-svg {
    color: #ff3366 !important;
    stroke: #ff3366 !important;
}

.profile-hero-avatar-anchor {
    position: absolute;
    left: 50%;
    bottom: -36px;
    transform: translateX(-50%);
    z-index: 5;
}

.profile-hero-avatar-ring {
    width: 112px !important;
    height: 112px !important;
    padding: 3px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #c084fc, #ec4899) !important;
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.5), 0 10px 24px rgba(0, 0, 0, 0.55) !important;
    position: relative;
    cursor: pointer;
}

.profile-hero-avatar-ring .insta-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0a0f22;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-hero-avatar-ring .insta-avatar-img,
.profile-hero-avatar-ring .insta-avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-cam-badge {
    position: absolute;
    right: -2px;
    bottom: 2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.92);
    border: 1.5px solid rgba(192, 132, 252, 0.65);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.profile-identity-center {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-hero-name {
    font-size: 1.48rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: #ffffff !important;
    margin: 0 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.85);
}

.profile-hero-role {
    font-size: 0.88rem;
    font-weight: 700;
    color: #38bdf8;
    margin-top: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92);
}

.profile-hero-location {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-top: 2px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.92);
}

.profile-hero-tags-line {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 6px auto 2px;
    max-width: 100%;
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 12px;
    box-sizing: border-box;
}

.profile-hero-tags-line::-webkit-scrollbar {
    display: none;
}

@supports (justify-content: safe center) {
    .profile-hero-tags-line {
        justify-content: safe center;
    }
}

.profile-hero-tags-line .insta-tag-chip {
    flex: 0 0 auto;
    font-size: 0.70rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(11, 16, 34, 0.78);
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    max-width: min(200px, 55vw);
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

.profile-stats-pill-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px 6px;
    margin: 0 2px 14px;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(16, 24, 48, 0.86), rgba(10, 14, 32, 0.92));
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    position: relative;
    padding: 2px 4px;
}

.profile-stat-cell:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(148, 163, 184, 0.18);
}

.profile-stat-icon {
    font-size: 0.9rem;
    opacity: 0.85;
}

.profile-stat-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
}

.profile-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.profile-biz-info-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}

.profile-biz-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.26);
    background: linear-gradient(145deg, rgba(16, 24, 48, 0.86), rgba(10, 15, 32, 0.94));
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.16s ease;
}

.profile-biz-row:hover {
    border-color: rgba(168, 85, 247, 0.55);
    transform: translateY(-1px);
}

.profile-biz-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-biz-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-biz-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
}

.profile-biz-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-biz-value.is-empty {
    color: #94a3b8;
    font-weight: 500;
}

.profile-biz-chev {
    font-size: 1.2rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.profile-compact-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.profile-handle-pill {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.78rem;
    cursor: pointer;
}

.profile-pocketpass-mini-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.profile-compact-bio-line {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 10px;
    padding: 0 4px;
}

.profile-compact-completeness {
    margin-bottom: 8px !important;
}

.profile-gallery-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 6px 2px 10px;
    flex-wrap: wrap;
}

.profile-gallery-head-left {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #ffffff;
}

.profile-gallery-head-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.profile-compact-tabs {
    margin: 0 !important;
    padding: 2px !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    display: inline-flex !important;
    gap: 2px;
}

.profile-compact-tabs .insta-grid-tab {
    padding: 4px 10px !important;
    font-size: 0.74rem !important;
    border-radius: 999px !important;
    border-top: none !important;
}

.profile-compact-tabs .insta-grid-tab.active {
    background: rgba(99, 102, 241, 0.34) !important;
    color: #ffffff !important;
}

.profile-gallery-all-link {
    background: none;
    border: none;
    padding: 0;
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.insta-content-gallery.is-compact-preview {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.insta-content-gallery.is-compact-preview > .insta-grid-tile:nth-child(n + 4) {
    display: none !important;
}

.insta-content-gallery.is-compact-preview .insta-grid-tile {
    border-radius: 14px;
    overflow: hidden;
}

.profile-gallery-cta-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.profile-btn-add-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 16px;
    border-radius: 999px;
    border: 1px solid rgba(192, 132, 252, 0.55);
    background: linear-gradient(125deg, #38bdf8, #6366f1 45%, #a855f7 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.45);
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.profile-btn-add-photo:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.65);
}

.profile-btn-folder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(16, 24, 48, 0.88);
    color: #f8fafc;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.16s ease;
}

.profile-btn-folder:hover {
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-1px);
}

/* ==========================================================================
   V35.87: GLOBAL AFTERLINK LIQUID GLASS SYSTEM (Alle Views · Floating Dock · Modals · Info)
   ========================================================================== */
:root {
    --lg-surface:
        radial-gradient(75% 85% at 92% 90%, rgba(0, 212, 255, 0.08) 0%, transparent 62%),
        radial-gradient(70% 80% at 15% 92%, rgba(255, 30, 142, 0.07) 0%, transparent 62%),
        linear-gradient(155deg, rgba(6, 10, 22, 0.90) 0%, rgba(3, 6, 14, 0.95) 100%);
    --lg-surface-elevated:
        radial-gradient(80% 85% at 12% 10%, rgba(0, 212, 255, 0.09) 0%, transparent 58%),
        radial-gradient(75% 85% at 90% 90%, rgba(168, 85, 247, 0.11) 0%, transparent 70%),
        rgba(4, 7, 16, 0.96);
    --lg-surface-interactive:
        linear-gradient(145deg, rgba(10, 16, 36, 0.92) 0%, rgba(5, 9, 22, 0.96) 100%);
    --lg-blur: blur(22px) saturate(175%) brightness(0.96);
    --lg-blur-heavy: blur(28px) saturate(185%) brightness(0.96);
    --lg-border: rgba(56, 189, 248, 0.34);
    --lg-border-accent: rgba(0, 229, 255, 0.85);
    --lg-specular:
        inset 0 1px 0 rgba(186, 230, 253, 0.22),
        inset 1px 0 0 rgba(168, 85, 247, 0.14),
        inset 0 -1px 0 rgba(255, 30, 142, 0.16);
    --lg-shadow:
        0 20px 52px -10px rgba(0, 0, 0, 0.88),
        0 0 28px -6px rgba(0, 212, 255, 0.22),
        0 0 22px -6px rgba(168, 85, 247, 0.22);
    --glass-card: rgba(6, 9, 20, 0.90);
    --glass-card-elevated: rgba(8, 12, 26, 0.96);
}

@keyframes liquidAuroraDrift {
    0% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
    50% {
        transform: translate3d(2%, 2%, 0) scale(1.06);
    }
    100% {
        transform: translate3d(-2%, -1%, 0) scale(1);
    }
}

/* Deep obsidian backdrop mit dezenten, gesättigten Neon-Akzenten */
body::before {
    content: "";
    position: fixed;
    inset: -12vh -12vw;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(46vw 36vh at 18% 24%, rgba(0, 212, 255, 0.18) 0%, transparent 62%),
        radial-gradient(48vw 38vh at 84% 22%, rgba(255, 30, 142, 0.18) 0%, transparent 62%),
        radial-gradient(44vw 34vh at 74% 82%, rgba(147, 51, 234, 0.16) 0%, transparent 64%),
        radial-gradient(46vw 36vh at 24% 80%, rgba(14, 165, 255, 0.14) 0%, transparent 64%);
    filter: blur(34px);
    opacity: 0.72;
    animation: liquidAuroraDrift 20s ease-in-out infinite;
    will-change: transform;
}

.main-container,
.site-footer {
    position: relative;
    z-index: 1;
}

/* Start-Layout & Pager-Entzerrung */
body.view-active-start .afterlink-start-shell {
    justify-content: flex-start !important;
    gap: clamp(8px, 1.4dvh, 14px) !important;
    padding-top: 0 !important;
}

.afterlink-featured-top-actions {
    gap: 10px !important;
}

.afterlink-featured-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(5, 8, 20, 0.90);
    border: 1px solid rgba(56, 189, 248, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.afterlink-mini-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(155deg, rgba(12, 17, 32, 0.92) 0%, rgba(5, 8, 18, 0.96) 100%);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.afterlink-mini-icon-btn:hover {
    background: rgba(20, 28, 52, 0.98);
    border-color: #00e5ff;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

/* Global Header & Footer in Deep Obsidian Glass */
.app-header {
    background: linear-gradient(180deg, rgba(4, 7, 16, 0.94), rgba(2, 4, 10, 0.90)) !important;
    backdrop-filter: var(--lg-blur-heavy) !important;
    -webkit-backdrop-filter: var(--lg-blur-heavy) !important;
    border-bottom: 1px solid var(--lg-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.82), inset 0 -1px 0 rgba(0, 212, 255, 0.16) !important;
}

.site-footer {
    background: linear-gradient(180deg, rgba(4, 7, 16, 0.90), rgba(2, 4, 10, 0.96)) !important;
    backdrop-filter: var(--lg-blur) !important;
    -webkit-backdrop-filter: var(--lg-blur) !important;
    border-top: 1px solid var(--lg-border) !important;
    box-shadow: var(--lg-specular) !important;
}

/* Schwebende Liquid-Glass-Kapsel Navigation (Dark Obsidian Dock + Luminous Active Lens) */
.nav-tabs {
    left: max(10px, env(safe-area-inset-left, 10px)) !important;
    right: max(10px, env(safe-area-inset-right, 10px)) !important;
    bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    width: auto !important;
    max-width: 560px !important;
    margin: 0 auto !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, rgba(6, 10, 24, 0.92) 0%, rgba(3, 5, 14, 0.96) 100%) !important;
    backdrop-filter: var(--lg-blur-heavy) !important;
    -webkit-backdrop-filter: var(--lg-blur-heavy) !important;
    border: 1px solid rgba(56, 189, 248, 0.48) !important;
    padding: 4px 6px !important;
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.88),
        0 0 28px rgba(0, 212, 255, 0.24),
        0 0 24px rgba(168, 85, 247, 0.22),
        inset 0 1px 0 rgba(186, 230, 253, 0.35),
        inset 0 -1px 0 rgba(255, 30, 142, 0.20) !important;
}

.nav-tabs .tab-btn {
    border-radius: 22px !important;
    color: #cbd5e1 !important;
    transition: transform 0.18s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.18s ease !important;
}

.nav-tabs .tab-btn.active {
    background: linear-gradient(135deg, #22e1ff 0%, #6366f1 50%, #ff2a9d 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 26px rgba(0, 229, 255, 0.72),
        0 0 18px rgba(255, 42, 157, 0.55),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85) !important;
}

@media (min-width: 768px) {
    .nav-tabs {
        top: calc(var(--header-h) + 10px) !important;
        bottom: auto !important;
        max-width: 720px !important;
        margin: 10px auto 14px !important;
        border-radius: 999px !important;
        padding: 5px 10px !important;
    }

    body.view-active-start .nav-tabs,
    body.view-active-voting .nav-tabs,
    body.view-active-universe .nav-tabs,
    body.view-active-chat:not(.is-presentation) .nav-tabs,
    body.view-active-profile .nav-tabs {
        top: 10px !important;
    }

    .nav-tabs .tab-btn {
        border-radius: 999px !important;
    }
}

/* Hide Floating Capsule Dock when any modal dialog is open */
body:has(.insta-modal-overlay:not([style*="display: none"])) .nav-tabs,
body:has(.modal-backdrop:not([style*="display: none"])) .nav-tabs,
body:has(.modal-overlay:not([style*="display: none"])) .nav-tabs {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

/* Generische Karten, Regie-Panels, Matches, Entdecken & Info-Seiten im tiefen Obsidian Glass */
.card,
.match-card,
.afterlink-discover-card,
.afterlink-person-card,
.afterlink-discover-section-card,
.entdecken-top-match-hero,
.entdecken-top-hero-card,
.entdecken-bento-card,
.afterlink-universe-hero-card,
.afterlink-shortcut-tile,
.afterlink-quick-tile,
.afterlink-bento-tile,
.afterlink-featured-card,
.afterlink-event-card,
.mystery-voucher-card,
.package-tier-top,
.inbox-event-room-header,
.inbox-thread-card,
.profile-stats-pill-card,
.profile-biz-row,
.afterlink-completeness-card,
.package-card,
.voucher-card,
.ad-slot-row,
.mod-card,
.mod-notify-card,
.mod-poll-item,
.mod-ad-gallery-card,
.mod-ad-slot-card,
.about-hero,
.about-feature-card,
.about-coop-card,
.about-step-card,
.star-detail-card,
#view-chat .chat-box,
.chat-poll-card {
    background: var(--lg-surface) !important;
    backdrop-filter: var(--lg-blur) !important;
    -webkit-backdrop-filter: var(--lg-blur) !important;
    border-color: var(--lg-border) !important;
    box-shadow: var(--lg-shadow), var(--lg-specular) !important;
}

.afterlink-universe-hero-card:hover,
.afterlink-shortcut-tile:hover,
.afterlink-quick-tile:hover,
.afterlink-bento-tile:hover,
.afterlink-featured-card:hover,
.afterlink-event-card:hover,
.mystery-voucher-card:hover,
.entdecken-bento-card:hover,
.inbox-thread-card:hover,
.profile-biz-row:hover,
.about-feature-card:hover {
    background: var(--lg-surface-interactive) !important;
    border-color: var(--lg-border-accent) !important;
}

/* Modals, Bottom-Sheets, Dialoge & Toasts im tiefen Elevated Glass */
.modal-card,
.insta-modal-sheet,
.info-dialog-card,
.partner-profile-modal-card,
.event-schedule-modal-card,
.toast,
.afterlink-universe-drawer {
    background: var(--lg-surface-elevated) !important;
    backdrop-filter: var(--lg-blur-heavy) !important;
    -webkit-backdrop-filter: var(--lg-blur-heavy) !important;
    border: 1px solid rgba(56, 189, 248, 0.36) !important;
    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.92),
        0 0 36px -8px rgba(0, 212, 255, 0.28),
        inset 0 1px 0 rgba(186, 230, 253, 0.24) !important;
}

/* Sekundäre Buttons, Filter-Pills & Kreis-Buttons in edlem Schwarz-Glas (Obsidian) */
.btn-secondary,
.afterlink-start-bell-btn,
.afterlink-bell-btn,
.afterlink-featured-arrow,
.afterlink-circle-arrow-btn,
.afterlink-universe-info-btn,
.afterlink-info-circle-btn,
.afterlink-inbox-circle-btn,
.profile-cover-camera-btn,
.profile-cover-topbar .insta-gear-btn,
.profile-avatar-cam-badge,
.profile-handle-pill,
.profile-pocketpass-mini-btn,
.profile-btn-folder,
.afterlink-top-chip-btn,
.afterlink-entdecken-pill:not(.active),
.afterlink-inbox-3tabs .afterlink-pill-tab:not(.active),
.chancen-sub-nav button:not(.active),
.chancen-sub-pill:not(.active),
.afterlink-auth-btn-secondary,
.afterlink-about-pill,
.stat-pill,
.user-badge {
    background: linear-gradient(155deg, rgba(12, 17, 32, 0.92) 0%, rgba(5, 8, 18, 0.96) 100%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(18px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

.btn-secondary:hover,
.afterlink-start-bell-btn:hover,
.afterlink-bell-btn:hover,
.afterlink-featured-arrow:hover,
.afterlink-circle-arrow-btn:hover,
.afterlink-universe-info-btn:hover,
.afterlink-info-circle-btn:hover,
.afterlink-inbox-circle-btn:hover,
.profile-cover-camera-btn:hover,
.profile-cover-topbar .insta-gear-btn:hover,
.profile-handle-pill:hover,
.profile-pocketpass-mini-btn:hover,
.profile-btn-folder:hover,
.afterlink-top-chip-btn:hover,
.afterlink-entdecken-pill:not(.active):hover,
.afterlink-inbox-3tabs .afterlink-pill-tab:not(.active):hover,
.chancen-sub-nav button:not(.active):hover,
.chancen-sub-pill:not(.active):hover,
.afterlink-auth-btn-secondary:hover,
.afterlink-about-pill:hover {
    background: linear-gradient(155deg, rgba(20, 28, 52, 0.96) 0%, rgba(10, 15, 30, 0.98) 100%) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.65),
        0 0 16px rgba(0, 229, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    transform: translateY(-1px);
}

.afterlink-inbox-3tabs .afterlink-pill-tab:not(.active) .inbox-tab-svg,
.profile-cover-camera-btn svg,
.profile-cover-topbar .insta-gear-btn svg,
.afterlink-start-bell-btn svg,
.afterlink-bell-btn svg,
.afterlink-inbox-circle-btn svg,
.afterlink-universe-info-btn svg,
.afterlink-featured-arrow svg,
.afterlink-auth-btn-secondary svg {
    color: #f8fafc !important;
    stroke: #f8fafc !important;
    opacity: 1 !important;
}

/* Primäre & Aktive Buttons in maximaler Leuchtkraft */
.btn-primary,
.btn-gold,
.afterlink-auth-btn-primary,
.afterlink-universe-hero-cta,
.profile-btn-add-photo,
.profile-tier-pass-pill,
.profile-tier-pass-pill.is-pro,
.profile-tier-pass-pill.is-gold,
.afterlink-entdecken-pill.active,
.afterlink-inbox-3tabs .afterlink-pill-tab.active,
.chancen-sub-nav button.active,
.chancen-sub-pill.active,
#voting-subtab-bar.afterlink-entdecken-3pills .tab-btn.active,
.profile-compact-tabs .insta-grid-tab.active {
    background: linear-gradient(125deg, #22e1ff 0%, #6366f1 48%, #ff2a9d 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.82) !important;
    color: #ffffff !important;
    box-shadow:
        0 8px 26px rgba(0, 229, 255, 0.55),
        0 0 24px rgba(255, 42, 157, 0.45),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover,
.btn-gold:hover,
.afterlink-auth-btn-primary:hover,
.afterlink-universe-hero-cta:hover,
.profile-btn-add-photo:hover,
.profile-tier-pass-pill:hover {
    background: linear-gradient(125deg, #67e8f9 0%, #8b5cf6 50%, #ff4da6 100%) !important;
    box-shadow:
        0 10px 32px rgba(0, 229, 255, 0.78),
        0 0 30px rgba(255, 42, 157, 0.65),
        inset 0 1.5px 0 #ffffff !important;
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ff477e 0%, #fb7185 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 228, 230, 0.85) !important;
    box-shadow: 0 0 20px rgba(255, 71, 126, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b98 0%, #fda4af 100%) !important;
    box-shadow: 0 0 28px rgba(255, 71, 126, 0.80) !important;
}

.btn-success {
    background: linear-gradient(135deg, #34d399 0%, #22e1ff 100%) !important;
    color: #031510 !important;
    border: 1.5px solid rgba(236, 253, 245, 0.90) !important;
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.62) !important;
}

/* Inputs, Suchleisten & Auth-Felder in dunklem Obsidian */
.form-control,
select.form-control,
textarea.form-control,
.afterlink-search-bar,
.afterlink-inbox-search-panel,
.afterlink-auth-input-group,
.afterlink-entdecken-search-wrap .afterlink-search-input {
    background: linear-gradient(160deg, rgba(6, 10, 24, 0.92), rgba(3, 5, 14, 0.96)) !important;
    backdrop-filter: blur(20px) saturate(165%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(165%) !important;
    border-color: rgba(56, 189, 248, 0.34) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.14), 0 6px 18px rgba(0, 0, 0, 0.65) !important;
}

select,
select.form-control {
    background-color: #070b18 !important;
    color: #ffffff !important;
    color-scheme: dark !important;
}

select option,
select.form-control option,
select optgroup {
    background-color: #0b1124 !important;
    color: #f8fafc !important;
}

.form-control:focus,
.afterlink-search-bar:focus-within,
.afterlink-inbox-search-panel:focus-within,
.afterlink-auth-input-group:focus-within,
.afterlink-entdecken-search-wrap .afterlink-search-input:focus {
    border-color: #00e5ff !important;
    box-shadow:
        0 0 22px rgba(0, 229, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Universe Stats Dock im Standardmodus vs Vollbild (Vollbild bleibt strikt rahmenlos!) */
body:not(:has(#view-universe.is-fullscreen)):not(:has(#view-universe:fullscreen)) .universe-stats-dock.afterlink-universe-stats-glass {
    background: var(--lg-surface) !important;
    backdrop-filter: var(--lg-blur) !important;
    -webkit-backdrop-filter: var(--lg-blur) !important;
    border: 1px solid rgba(56, 189, 248, 0.38) !important;
    box-shadow: var(--lg-shadow), var(--lg-specular) !important;
}

/* ==========================================================================
   V35.98: RADIANT IRIDESCENT LIQUID GLASS BLOOM (Start, Avatar, Hero, Tiles & Dock)
   ========================================================================== */
.afterlink-start-avatar-btn,
.profile-hero-avatar-ring,
.afterlink-featured-avatar-wrap {
    background: linear-gradient(135deg, #00e5ff 0%, #9333ea 48%, #ff1e8a 100%) !important;
    box-shadow:
        0 0 26px rgba(0, 229, 255, 0.65),
        0 0 32px rgba(255, 30, 142, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.55) !important;
}

.afterlink-start-bell-btn {
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.50),
        0 0 22px rgba(0, 229, 255, 0.50),
        inset 0 1.5px 0 #ffffff !important;
}

body.view-active-start .afterlink-universe-hero-card {
    background:
        radial-gradient(62% 70% at 12% 92%, rgba(255, 30, 142, 0.22) 0%, transparent 65%),
        radial-gradient(58% 68% at 90% 14%, rgba(0, 212, 255, 0.20) 0%, transparent 65%),
        linear-gradient(155deg, rgba(6, 10, 24, 0.92) 0%, rgba(3, 5, 14, 0.96) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.50) !important;
    backdrop-filter: blur(24px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(185%) !important;
    box-shadow:
        0 20px 52px -10px rgba(0, 0, 0, 0.88),
        0 0 32px rgba(147, 51, 234, 0.32),
        0 0 22px rgba(0, 212, 255, 0.26),
        var(--lg-specular) !important;
}

.afterlink-universe-hero-planet {
    background:
        radial-gradient(circle at 26% 34%, rgba(0, 229, 255, 0.56) 0%, rgba(37, 99, 235, 0.42) 38%, rgba(6, 10, 24, 0.85) 78%, rgba(2, 4, 10, 0.96) 100%) !important;
    box-shadow:
        inset 14px 10px 36px rgba(103, 232, 249, 0.45),
        -12px -4px 42px rgba(0, 212, 255, 0.36) !important;
    opacity: 0.96 !important;
}

.afterlink-universe-hero-glow {
    background: radial-gradient(circle, rgba(255, 30, 142, 0.48) 0%, rgba(147, 51, 234, 0.22) 48%, transparent 74%) !important;
}

.afterlink-universe-hero-rings {
    filter:
        drop-shadow(0 0 24px rgba(0, 229, 255, 0.96))
        drop-shadow(0 0 42px rgba(255, 30, 142, 0.78))
        brightness(1.16) !important;
}

.afterlink-universe-hero-cta {
    border: 1.5px solid rgba(255, 255, 255, 0.78) !important;
    background: linear-gradient(90deg, #00e5ff 0%, #6366f1 50%, #ff2a9d 100%) !important;
    box-shadow:
        0 8px 30px rgba(0, 229, 255, 0.65),
        0 0 28px rgba(255, 42, 157, 0.58),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85) !important;
}

body.view-active-start .afterlink-quick-tile.afterlink-bento-tile {
    background:
        radial-gradient(85% 75% at 50% 100%, rgba(0, 212, 255, 0.14) 0%, transparent 66%),
        linear-gradient(155deg, rgba(7, 11, 26, 0.92) 0%, rgba(3, 6, 15, 0.96) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
    box-shadow:
        0 14px 32px -10px rgba(0, 0, 0, 0.85),
        0 0 20px -4px rgba(0, 212, 255, 0.24),
        var(--lg-specular) !important;
}

body.view-active-start #start-tile-events.afterlink-quick-tile {
    background:
        radial-gradient(90% 80% at 50% 100%, rgba(0, 212, 255, 0.22) 0%, transparent 66%),
        linear-gradient(155deg, rgba(7, 11, 26, 0.92) 0%, rgba(3, 6, 15, 0.96) 100%) !important;
    border-color: rgba(0, 229, 255, 0.75) !important;
    box-shadow:
        0 14px 34px -8px rgba(0, 0, 0, 0.85),
        0 0 26px rgba(0, 229, 255, 0.36),
        var(--lg-specular) !important;
}

.afterlink-quick-tile > * {
    pointer-events: none;
}

body.view-active-start #start-tile-questions.afterlink-quick-tile,
body.view-active-start #start-tile-pulse.afterlink-quick-tile {
    background:
        radial-gradient(90% 80% at 50% 100%, rgba(168, 85, 247, 0.20) 0%, rgba(255, 30, 142, 0.12) 48%, transparent 72%),
        linear-gradient(155deg, rgba(7, 11, 26, 0.92) 0%, rgba(3, 6, 15, 0.96) 100%) !important;
}

.afterlink-quick-badge.badge-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.afterlink-quick-badge.badge-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* ---------- 9-FRAGEN KLICK-DECK TOP BAR & VIEW SCROLL ---------- */
.wizard-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wizard-top-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-light);
    background: rgba(245, 181, 71, 0.12);
    border: 1px solid rgba(245, 181, 71, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
}

.wizard-top-tag.is-event-day {
    color: #fde68a;
    background: linear-gradient(135deg, rgba(245, 181, 71, 0.22), rgba(6, 182, 212, 0.14));
    border-color: rgba(245, 181, 71, 0.55);
    box-shadow: 0 0 12px rgba(245, 181, 71, 0.22);
}

.wizard-top-tag.is-everyday {
    color: #67e8f9;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(139, 92, 246, 0.16));
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.16);
}

body.view-active-matches {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    max-height: none !important;
}

body.view-active-matches .main-container {
    padding-top: 12px !important;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
}

body.view-active-start .afterlink-featured-card {
    background:
        radial-gradient(68% 72% at 14% 92%, rgba(255, 30, 142, 0.18) 0%, transparent 68%),
        radial-gradient(68% 72% at 90% 88%, rgba(0, 212, 255, 0.18) 0%, transparent 68%),
        linear-gradient(155deg, rgba(7, 11, 26, 0.92) 0%, rgba(3, 6, 15, 0.96) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.55) !important;
    backdrop-filter: blur(22px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(185%) !important;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.88),
        0 0 28px rgba(168, 85, 247, 0.28),
        0 0 20px rgba(0, 212, 255, 0.22),
        var(--lg-specular) !important;
}

.nav-tabs {
    border-color: rgba(56, 189, 248, 0.48) !important;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.88),
        0 0 32px rgba(147, 51, 234, 0.28),
        0 0 22px rgba(0, 212, 255, 0.24),
        inset 0 1px 0 rgba(186, 230, 253, 0.35),
        inset 0 -1px 0 rgba(255, 30, 142, 0.22) !important;
}

body.view-active-start .afterlink-match-badge {
    background: linear-gradient(135deg, #22e1ff 0%, #6366f1 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
    color: #ffffff !important;
}

body.view-active-start .afterlink-featured-arrow {
    background: linear-gradient(155deg, rgba(12, 17, 32, 0.92) 0%, rgba(5, 8, 18, 0.96) 100%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55) !important;
}

/* ==========================================================================
   V35.100: DEEP OBSIDIAN CONTRAST, GLOWING ACCENTS & BRIGHT COMPACT CONTROLS
   ========================================================================== */
.profile-hero-role {
    color: #00e5ff !important;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}

.profile-biz-icon {
    background: rgba(0, 212, 255, 0.14) !important;
    border-color: rgba(0, 229, 255, 0.48) !important;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}

.profile-gallery-all-link {
    color: #00e5ff !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.profile-compact-tabs {
    background: rgba(4, 7, 16, 0.92) !important;
    border-color: rgba(56, 189, 248, 0.36) !important;
}

.profile-compact-tabs .insta-grid-tab:not(.active) {
    color: #e2e8f0 !important;
}

.afterlink-search-clear-btn,
.profile-avatar-cam-badge {
    background: linear-gradient(155deg, rgba(12, 17, 32, 0.92) 0%, rgba(5, 8, 18, 0.96) 100%) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55) !important;
}

/* ==========================================================================
   V35.100b: START PWA NO-SCROLL LOCK & FUTURISTIC DEEP-SPACE UNIVERSE HERO
   ========================================================================== */
html:has(body.view-active-start) {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.view-active-start {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: pan-x !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) {
    body.view-active-start {
        padding-bottom: 14px !important;
    }
}

body.view-active-start .site-footer {
    display: none !important;
}

body.view-active-start .main-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 0 0 max(6px, env(safe-area-inset-bottom, 0px)) !important;
}

body.view-active-start #view-start.view-section.active {
    height: 100%;
    width: 100%;
    overflow: visible !important;
    perspective: none !important;
}

body.view-active-start .afterlink-start-shell {
    height: 100%;
    width: 100%;
    max-width: 544px;
    margin: 0 auto;
    padding: 0 12px !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    gap: clamp(8px, 1.4dvh, 14px) !important;
}

/* Deep Space Starfield & Futuristic Horizon Glow behind Start */
body.view-active-start::before {
    background:
        radial-gradient(1.5px 1.5px at 12% 16%, rgba(255, 255, 255, 0.92), transparent 60%),
        radial-gradient(1.2px 1.2px at 28% 8%, rgba(186, 230, 253, 0.85), transparent 60%),
        radial-gradient(1.6px 1.6px at 78% 12%, rgba(255, 255, 255, 0.90), transparent 60%),
        radial-gradient(1.2px 1.2px at 88% 28%, rgba(244, 114, 182, 0.82), transparent 60%),
        radial-gradient(1.4px 1.4px at 18% 58%, rgba(125, 211, 252, 0.80), transparent 60%),
        radial-gradient(1.2px 1.2px at 84% 66%, rgba(255, 255, 255, 0.78), transparent 60%),
        radial-gradient(1.5px 1.5px at 42% 86%, rgba(196, 181, 253, 0.85), transparent 60%),
        radial-gradient(50vw 36vh at 16% 26%, rgba(0, 212, 255, 0.14) 0%, transparent 64%),
        radial-gradient(48vw 36vh at 86% 24%, rgba(255, 30, 142, 0.14) 0%, transparent 64%),
        radial-gradient(52vw 34vh at 50% 78%, rgba(147, 51, 234, 0.12) 0%, transparent 66%) !important;
    filter: none !important;
    opacity: 0.95 !important;
}

/* Holographic Cosmic Planets & Starfield Hero on Start */
body.view-active-start .afterlink-universe-hero-card {
    background:
        radial-gradient(1.5px 1.5px at 14% 20%, rgba(255, 255, 255, 0.95), transparent 60%),
        radial-gradient(1.1px 1.1px at 26% 36%, rgba(186, 230, 253, 0.88), transparent 60%),
        radial-gradient(1.3px 1.3px at 34% 16%, rgba(255, 255, 255, 0.82), transparent 60%),
        radial-gradient(1px 1px at 56% 18%, rgba(196, 181, 253, 0.85), transparent 60%),
        radial-gradient(1.4px 1.4px at 72% 28%, rgba(255, 255, 255, 0.92), transparent 60%),
        radial-gradient(1.2px 1.2px at 19% 68%, rgba(249, 168, 212, 0.85), transparent 60%),
        radial-gradient(1px 1px at 44% 82%, rgba(186, 230, 253, 0.80), transparent 60%),
        radial-gradient(1.3px 1.3px at 66% 74%, rgba(255, 255, 255, 0.84), transparent 60%),
        radial-gradient(1.1px 1.1px at 88% 66%, rgba(125, 211, 252, 0.85), transparent 60%),
        radial-gradient(45% 40% at 14% 100%, rgba(255, 42, 157, 0.34) 0%, transparent 65%),
        radial-gradient(50% 45% at 88% 8%, rgba(0, 212, 255, 0.20) 0%, transparent 65%),
        linear-gradient(160deg, rgba(2, 4, 12, 0.97) 0%, rgba(4, 7, 19, 0.99) 100%) !important;
    border: 1px solid rgba(125, 211, 252, 0.52) !important;
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.94),
        0 0 34px rgba(0, 212, 255, 0.24),
        0 0 28px rgba(236, 72, 153, 0.22),
        inset 0 1px 0 rgba(186, 230, 253, 0.42),
        inset 0 -1px 0 rgba(255, 30, 142, 0.32) !important;
}

body.view-active-start .afterlink-universe-hero-card::before,
body.view-active-start .afterlink-universe-hero-card::after {
    content: none !important;
    display: none !important;
}

body.view-active-start .afterlink-universe-hero-planet {
    right: -20% !important;
    top: -16% !important;
    width: 64% !important;
    aspect-ratio: 1 / 1 !important;
    border-left: 1.5px solid rgba(186, 230, 253, 0.85) !important;
    background:
        radial-gradient(1px 1px at 34% 38%, rgba(255, 255, 255, 0.60), transparent 60%),
        radial-gradient(1.5px 1.5px at 48% 54%, rgba(125, 211, 252, 0.50), transparent 60%),
        radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.42) 0%, rgba(14, 165, 255, 0.24) 24%, rgba(15, 23, 62, 0.72) 52%, rgba(2, 4, 12, 0.98) 82%) !important;
    box-shadow:
        inset 12px 8px 26px rgba(56, 189, 248, 0.78),
        inset 4px 2px 8px rgba(224, 242, 254, 0.70),
        -10px -2px 34px rgba(0, 212, 255, 0.40) !important;
    opacity: 0.98 !important;
    z-index: 1;
}

body.view-active-start .afterlink-universe-hero-glow {
    left: -30% !important;
    bottom: -24% !important;
    width: 58% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    border-right: 1.5px solid rgba(251, 207, 232, 0.78) !important;
    background:
        radial-gradient(circle at 80% 28%, rgba(236, 72, 153, 0.46) 0%, rgba(147, 51, 234, 0.28) 28%, rgba(24, 12, 54, 0.74) 56%, rgba(2, 3, 10, 0.98) 84%) !important;
    box-shadow:
        inset -10px 6px 24px rgba(244, 114, 182, 0.78),
        inset -3px 2px 8px rgba(255, 255, 255, 0.60),
        10px -4px 32px rgba(236, 72, 153, 0.36) !important;
    opacity: 0.96 !important;
    z-index: 1;
}

.afterlink-universe-hero-rings {
    mix-blend-mode: normal;
    filter:
        drop-shadow(0 0 18px rgba(0, 229, 255, 0.95))
        drop-shadow(0 0 32px rgba(255, 30, 142, 0.75)) !important;
}

.afterlink-start-brand-rings {
    mix-blend-mode: normal;
}

/* ==========================================================================
   V35.112: 9-Fragen Essential Notice & Circle Pro / Gold Pass Preview
   ========================================================================== */
.wizard-essential-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(228, 193, 141, 0.12) 100%);
    border: 1px solid rgba(228, 193, 141, 0.45);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}
.wizard-essential-notice .wen-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.wizard-essential-notice .wen-body {
    flex: 1;
}
.wizard-essential-notice .wen-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}
.wizard-essential-notice .wen-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
}
.wizard-essential-notice .wen-desc strong {
    color: var(--gold-light, #fcd34d);
}

.prof-account-type-preview {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.prof-account-type-preview .patp-badge {
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}
.prof-account-type-preview .patp-badge.is-pro {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.6);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.prof-account-type-preview .patp-badge.is-gold {
    background: rgba(228, 193, 141, 0.2);
    border-color: rgba(228, 193, 141, 0.55);
    color: #fef08a;
    box-shadow: 0 0 12px rgba(228, 193, 141, 0.25);
}
.prof-account-type-preview .patp-text {
    font-size: 0.77rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* ==========================================================================
   V35.100b: START PWA NO-SCROLL LOCK & FUTURISTIC DEEP-SPACE UNIVERSE HERO
   ========================================================================== */
html:has(body.view-active-start) {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.view-active-start {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: pan-x !important;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 768px) {
    body.view-active-start {
        padding-bottom: 14px !important;
    }
}

body.view-active-start .site-footer {
    display: none !important;
}

body.view-active-start .main-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 0 0 max(6px, env(safe-area-inset-bottom, 0px)) !important;
}

body.view-active-start #view-start.view-section.active {
    height: 100%;
    width: 100%;
    overflow: visible !important;
    perspective: none !important;
}

body.view-active-start .afterlink-start-shell {
    height: 100%;
    width: 100%;
    max-width: 544px;
    margin: 0 auto;
    padding: 0 12px !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    gap: clamp(8px, 1.4dvh, 14px) !important;
}

/* Deep Space Starfield & Futuristic Horizon Glow behind Start */
body.view-active-start::before {
    background:
        radial-gradient(1.5px 1.5px at 12% 16%, rgba(255, 255, 255, 0.92), transparent 60%),
        radial-gradient(1.2px 1.2px at 28% 8%, rgba(186, 230, 253, 0.85), transparent 60%),
        radial-gradient(1.6px 1.6px at 78% 12%, rgba(255, 255, 255, 0.90), transparent 60%),
        radial-gradient(1.2px 1.2px at 88% 28%, rgba(244, 114, 182, 0.82), transparent 60%),
        radial-gradient(1.4px 1.4px at 18% 58%, rgba(125, 211, 252, 0.80), transparent 60%),
        radial-gradient(1.2px 1.2px at 84% 66%, rgba(255, 255, 255, 0.78), transparent 60%),
        radial-gradient(1.5px 1.5px at 42% 86%, rgba(196, 181, 253, 0.85), transparent 60%),
        radial-gradient(50vw 36vh at 16% 26%, rgba(0, 212, 255, 0.14) 0%, transparent 64%),
        radial-gradient(48vw 36vh at 86% 24%, rgba(255, 30, 142, 0.14) 0%, transparent 64%),
        radial-gradient(52vw 34vh at 50% 78%, rgba(147, 51, 234, 0.12) 0%, transparent 66%) !important;
    filter: none !important;
    opacity: 0.95 !important;
}

/* Holographic Cosmic Planets & Starfield Hero on Start */
body.view-active-start .afterlink-universe-hero-card {
    background:
        radial-gradient(1.5px 1.5px at 14% 20%, rgba(255, 255, 255, 0.95), transparent 60%),
        radial-gradient(1.1px 1.1px at 26% 36%, rgba(186, 230, 253, 0.88), transparent 60%),
        radial-gradient(1.3px 1.3px at 34% 16%, rgba(255, 255, 255, 0.82), transparent 60%),
        radial-gradient(1px 1px at 56% 18%, rgba(196, 181, 253, 0.85), transparent 60%),
        radial-gradient(1.4px 1.4px at 72% 28%, rgba(255, 255, 255, 0.92), transparent 60%),
        radial-gradient(1.2px 1.2px at 19% 68%, rgba(249, 168, 212, 0.85), transparent 60%),
        radial-gradient(1px 1px at 44% 82%, rgba(186, 230, 253, 0.80), transparent 60%),
        radial-gradient(1.3px 1.3px at 66% 74%, rgba(255, 255, 255, 0.84), transparent 60%),
        radial-gradient(1.1px 1.1px at 88% 66%, rgba(125, 211, 252, 0.85), transparent 60%),
        radial-gradient(45% 40% at 14% 100%, rgba(255, 42, 157, 0.34) 0%, transparent 65%),
        radial-gradient(50% 45% at 88% 8%, rgba(0, 212, 255, 0.20) 0%, transparent 65%),
        linear-gradient(160deg, rgba(2, 4, 12, 0.97) 0%, rgba(4, 7, 19, 0.99) 100%) !important;
    border: 1px solid rgba(125, 211, 252, 0.52) !important;
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.94),
        0 0 34px rgba(0, 212, 255, 0.24),
        0 0 28px rgba(236, 72, 153, 0.22),
        inset 0 1px 0 rgba(186, 230, 253, 0.42),
        inset 0 -1px 0 rgba(255, 30, 142, 0.32) !important;
}

body.view-active-start .afterlink-universe-hero-card::before,
body.view-active-start .afterlink-universe-hero-card::after {
    content: none !important;
    display: none !important;
}

body.view-active-start .afterlink-universe-hero-planet {
    right: -20% !important;
    top: -16% !important;
    width: 64% !important;
    aspect-ratio: 1 / 1 !important;
    border-left: 1.5px solid rgba(186, 230, 253, 0.85) !important;
    background:
        radial-gradient(1px 1px at 34% 38%, rgba(255, 255, 255, 0.60), transparent 60%),
        radial-gradient(1.5px 1.5px at 48% 54%, rgba(125, 211, 252, 0.50), transparent 60%),
        radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.42) 0%, rgba(14, 165, 255, 0.24) 24%, rgba(15, 23, 62, 0.72) 52%, rgba(2, 4, 12, 0.98) 82%) !important;
    box-shadow:
        inset 12px 8px 26px rgba(56, 189, 248, 0.78),
        inset 4px 2px 8px rgba(224, 242, 254, 0.70),
        -10px -2px 34px rgba(0, 212, 255, 0.40) !important;
    opacity: 0.98 !important;
    z-index: 1;
}

body.view-active-start .afterlink-universe-hero-glow {
    left: -30% !important;
    bottom: -24% !important;
    width: 58% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    border-right: 1.5px solid rgba(251, 207, 232, 0.78) !important;
    background:
        radial-gradient(circle at 80% 28%, rgba(236, 72, 153, 0.46) 0%, rgba(147, 51, 234, 0.28) 28%, rgba(24, 12, 54, 0.74) 56%, rgba(2, 3, 10, 0.98) 84%) !important;
    box-shadow:
        inset -10px 6px 24px rgba(244, 114, 182, 0.78),
        inset -3px 2px 8px rgba(255, 255, 255, 0.60),
        10px -4px 32px rgba(236, 72, 153, 0.36) !important;
    opacity: 0.96 !important;
    z-index: 1;
}

.afterlink-universe-hero-rings {
    mix-blend-mode: normal;
    filter:
        drop-shadow(0 0 18px rgba(0, 229, 255, 0.95))
        drop-shadow(0 0 32px rgba(255, 30, 142, 0.75)) !important;
}

.afterlink-start-brand-rings {
    mix-blend-mode: normal;
}

/* ==========================================================================
   V35.112: 9-Fragen Essential Notice & Circle Pro / Gold Pass Preview
   ========================================================================== */
.wizard-essential-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(228, 193, 141, 0.12) 100%);
    border: 1px solid rgba(228, 193, 141, 0.45);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}
.wizard-essential-notice .wen-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.wizard-essential-notice .wen-body {
    flex: 1;
}
.wizard-essential-notice .wen-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}
.wizard-essential-notice .wen-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
}
.wizard-essential-notice .wen-desc strong {
    color: var(--gold-light, #fcd34d);
}

.prof-account-type-preview {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.prof-account-type-preview .patp-badge {
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}
.prof-account-type-preview .patp-badge.is-pro {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.6);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.prof-account-type-preview .patp-badge.is-gold {
    background: rgba(228, 193, 141, 0.2);
    border-color: rgba(228, 193, 141, 0.55);
    color: #fef08a;
    box-shadow: 0 0 12px rgba(228, 193, 141, 0.25);
}
.prof-account-type-preview .patp-text {
    font-size: 0.77rem;
    color: #94a3b8;
    line-height: 1.35;
}


/* ==========================================================================
   VCARD SHARING & NFC BEAM (v35.113)
   ========================================================================== */

.profile-vcard-share-btn {
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(245, 181, 71, 0.45);
    background: linear-gradient(135deg, rgba(245, 181, 71, 0.18), rgba(56, 189, 248, 0.12));
    color: #fef08a;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(245, 181, 71, 0.15);
}

.profile-vcard-share-btn:hover {
    border-color: rgba(245, 181, 71, 0.75);
    background: linear-gradient(135deg, rgba(245, 181, 71, 0.28), rgba(56, 189, 248, 0.2));
    box-shadow: 0 0 16px rgba(245, 181, 71, 0.35);
    transform: translateY(-1px);
}

.vcard-share-intro {
    font-size: 0.84rem;
    color: #cbd5e1;
    margin: 0 0 14px;
    line-height: 1.45;
}

.vcard-nfc-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(168, 85, 247, 0.12), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    margin-bottom: 14px;
}

@media (max-width: 480px) {
    .vcard-nfc-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

.vcard-nfc-radar-stage {
    position: relative;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vcard-nfc-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.6);
    opacity: 0;
}

.vcard-nfc-card.is-beaming .vcard-nfc-pulse-ring.ring-1 {
    animation: nfcRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.vcard-nfc-card.is-beaming .vcard-nfc-pulse-ring.ring-2 {
    animation: nfcRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.8s;
}

.vcard-nfc-card.is-beaming .vcard-nfc-pulse-ring.ring-3 {
    animation: nfcRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 1.6s;
}

@keyframes nfcRadarPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
        border-color: rgba(56, 189, 248, 0.8);
    }
    70% {
        transform: scale(1.6);
        opacity: 0.3;
        border-color: rgba(168, 85, 247, 0.4);
    }
    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

.vcard-nfc-icon-core {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
    z-index: 2;
    transition: transform 0.3s ease;
}

.vcard-nfc-card.is-beaming .vcard-nfc-icon-core {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.85);
}

.vcard-nfc-emoji {
    font-size: 1.45rem;
}

.vcard-nfc-content {
    flex: 1;
    min-width: 0;
}

.vcard-nfc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.vcard-nfc-badge {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}

.vcard-nfc-badge.active-beam {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    color: #6ee7b7;
}

.vcard-nfc-code-pill {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.vcard-nfc-status {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 10px;
}

.vcard-nfc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .vcard-nfc-head,
    .vcard-nfc-actions {
        justify-content: center;
    }
}

.vcard-nfc-ios-note {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.77rem;
    color: #fef08a;
    margin-top: 8px;
    line-height: 1.35;
    text-align: left;
}

.vcard-qr-box {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.vcard-qr-tabs {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.vcard-qr-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px 12px;
    color: #94a3b8;
    font-size: 0.76rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vcard-qr-tab.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.6);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.vcard-qr-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vcard-qr-frame {
    width: 196px;
    height: 196px;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcard-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.vcard-qr-label {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 10px;
    max-width: 380px;
    line-height: 1.4;
}

.vcard-preview-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 12px;
    text-align: left;
}

.vcard-preview-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.vcard-preview-name {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.88rem;
}

.vcard-preview-role {
    font-size: 0.74rem;
    color: #38bdf8;
    font-weight: 600;
}

.vcard-preview-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.35;
}

.vcard-quick-actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

/* ==========================================================================
   IMMUTABLE ACTION BUTTON STYLES (Strict Circular & True Red Logout)
   Höchste Spezifität - schützt gegen alle Kaskaden & Überschreibungen
   ========================================================================== */
button.app-circle-action-btn,
button.profile-cover-circle-btn,
button.afterlink-topbar-circle-btn,
button.header-logout-btn,
button.header-share-btn,
#header-logout-btn,
#header-share-btn,
#start-logout-btn,
#start-share-btn,
#discover-logout-btn,
#discover-share-btn,
#universe-logout-btn,
#universe-share-btn,
#inbox-logout-btn,
#inbox-share-btn,
#profile-cover-share-btn,
#profile-cover-gear-btn,
#profile-cover-camera-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    border-radius: 9999px !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

#start-notification-bell,
#discover-notification-bell,
#inbox-notification-bell {
    overflow: visible !important;
}

@media (max-width: 480px) {
    .afterlink-topbar-actions {
        gap: 5px !important;
        margin-top: 2px !important;
    }
    .afterlink-topbar-actions button.afterlink-topbar-circle-btn,
    .afterlink-topbar-actions #start-notification-bell,
    .afterlink-topbar-actions #start-share-btn,
    .afterlink-topbar-actions #start-logout-btn,
    .afterlink-topbar-actions #discover-notification-bell,
    .afterlink-topbar-actions #discover-share-btn,
    .afterlink-topbar-actions #discover-logout-btn,
    .afterlink-topbar-actions #universe-info-btn,
    .afterlink-topbar-actions #universe-share-btn,
    .afterlink-topbar-actions #universe-logout-btn,
    .afterlink-topbar-actions #inbox-notification-bell,
    .afterlink-topbar-actions #inbox-share-btn,
    .afterlink-topbar-actions #inbox-logout-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
    }
}

button.profile-logout-btn,
button.afterlink-logout-btn,
button.header-logout-btn,
#header-logout-btn,
#start-logout-btn,
#discover-logout-btn,
#universe-logout-btn,
#inbox-logout-btn {
    background: linear-gradient(155deg, rgba(34, 10, 18, 0.94) 0%, rgba(18, 6, 12, 0.98) 100%) !important;
    border: 1.5px solid rgba(244, 63, 94, 0.55) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(244, 63, 94, 0.25), inset 0 1px 0 rgba(254, 205, 211, 0.2) !important;
    color: #f43f5e !important;
}

button.profile-logout-btn svg,
button.afterlink-logout-btn svg,
button.header-logout-btn svg,
#header-logout-btn svg,
#start-logout-btn svg,
#discover-logout-btn svg,
#universe-logout-btn svg,
#inbox-logout-btn svg,
#profile-cover-logout-btn svg,
.header-logout-svg {
    color: #f43f5e !important;
    stroke: #f43f5e !important;
    stroke-width: 2.3 !important;
    display: block !important;
}

button.profile-logout-btn:hover,
button.afterlink-logout-btn:hover,
button.header-logout-btn:hover,
#header-logout-btn:hover,
#start-logout-btn:hover,
#discover-logout-btn:hover,
#universe-logout-btn:hover,
#inbox-logout-btn:hover,
#profile-cover-logout-btn:hover {
    background: linear-gradient(155deg, rgba(54, 14, 26, 0.96) 0%, rgba(28, 8, 16, 0.98) 100%) !important;
    border-color: rgba(239, 68, 68, 0.85) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 18px rgba(244, 63, 94, 0.45), inset 0 1px 0 rgba(254, 205, 211, 0.28) !important;
    transform: translateY(-1px) scale(1.08) !important;
}

button.profile-logout-btn:hover svg,
button.afterlink-logout-btn:hover svg,
button.header-logout-btn:hover svg,
#header-logout-btn:hover svg,
#start-logout-btn:hover svg,
#discover-logout-btn:hover svg,
#universe-logout-btn:hover svg,
#inbox-logout-btn:hover svg,
#profile-cover-logout-btn:hover svg {
    color: #ff3366 !important;
    stroke: #ff3366 !important;
}

/* ==========================================================================
   REGIE NUTZUNGS- & AKTIVITÄTS-STATISTIK (Zero-Mock Analytics Card)
   ========================================================================== */
.mod-analytics-card {
    background: linear-gradient(165deg, rgba(16, 24, 46, 0.88) 0%, rgba(8, 12, 26, 0.94) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
}

.mod-analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mod-analytics-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mod-analytics-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mod-analytics-badge-real {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.mod-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.mod-analytics-box {
    background: rgba(10, 16, 32, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.mod-analytics-box:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

.mod-analytics-box-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mod-analytics-box-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mod-analytics-hero-number {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f8fafc;
}

.mod-analytics-hero-number.text-emerald {
    color: #34d399;
    text-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.mod-analytics-hero-number.text-sky {
    color: #38bdf8;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.mod-analytics-hero-number.text-amber {
    color: #fbbf24;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}

.mod-analytics-hero-number.text-rose {
    color: #f43f5e;
    text-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
}

.mod-analytics-sublist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mod-analytics-subrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #cbd5e1;
}

.mod-analytics-subrow-val {
    font-weight: 700;
    color: #f8fafc;
}

.mod-analytics-deletions-detail {
    margin-top: 14px;
    padding: 12px;
    background: rgba(6, 10, 20, 0.75);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 12px;
    font-size: 0.78rem;
}

.mod-analytics-deletions-title {
    font-weight: 700;
    color: #fda4af;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mod-analytics-deletions-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #94a3b8;
}

.mod-analytics-deletions-item:last-child {
    border-bottom: none;
}

/* ==========================================================================
   V35.133: UNIFIED SINGLE-LAYER SAFE AREA & HEADER CLEARANCE (iOS & ANDROID)
   Jede Seite nutzt exakt EINE Safe-Area-Schicht am obersten Header-Element.
   Keine doppelten Top-Paddings mehr zwischen Container & Topbar und kein
   erzwungenes 48px/58px-Gap auf Android oder im normalen Browser-Tab.
   Legacy v35.130 reference replaced by unified --sat single-layer system:
   padding-top: max(58px, calc(env(safe-area-inset-top, 0px) + 16px)) !important;
   padding-top: max(48px, calc(env(safe-area-inset-top, 0px) + 8px)) !important;
   ========================================================================== */
@supports (-webkit-touch-callout: none) {
    @media (display-mode: standalone) {
        :root {
            --sat: max(50px, env(safe-area-inset-top, 50px));
        }
    }
}

.afterlink-start-topbar,
.afterlink-entdecken-topbar,
.afterlink-universe-topbar,
.afterlink-inbox-topbar,
.profile-cover-topbar,
.insta-profile-top-navbar,
.private-chat-header {
    padding-top: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px) !important;
}

.insta-profile-top-navbar {
    height: auto !important;
    min-height: calc(52px + var(--sat, env(safe-area-inset-top, 0px))) !important;
    padding-bottom: 10px !important;
}

.app-header {
    padding-top: var(--sat, env(safe-area-inset-top, 0px)) !important;
}

.app-header .header-inner {
    padding: 10px 14px !important;
    min-height: 52px !important;
}

body.view-active-chat:not(.is-presentation) .main-container {
    padding: 0 !important;
}

body.view-active-events .main-container,
body.view-active-matches .main-container,
body.view-active-moderation .main-container {
    padding-top: 12px !important;
}

.afterlink-auth-view {
    padding-top: calc(var(--sat, env(safe-area-inset-top, 0px)) + clamp(8px, 1.4vh, 14px)) !important;
}

@media (min-width: 768px) {
    .afterlink-start-topbar,
    .afterlink-entdecken-topbar,
    .afterlink-universe-topbar,
    .afterlink-inbox-topbar,
    .profile-cover-topbar,
    .insta-profile-top-navbar {
        padding-top: 10px !important;
    }
    .insta-profile-top-navbar {
        min-height: 52px !important;
        padding-bottom: 10px !important;
    }
    .private-chat-header {
        padding: 14px 18px !important;
    }
    .app-header {
        padding-top: 0 !important;
    }
    .app-header .header-inner {
        padding: 12px 28px !important;
        min-height: var(--header-h) !important;
    }
}

/* ============================================================
   WCAG 2.1 AA / BaFG Skip-To-Main Accessibility Link
   ============================================================ */
.skip-to-main-link {
    position: fixed;
    top: -120px;
    left: 16px;
    z-index: 99999;
    padding: 10px 16px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    border: 2px solid #38bdf8;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: top 0.15s ease;
}

.skip-to-main-link:focus,
.skip-to-main-link:focus-visible {
    top: calc(var(--sat, env(safe-area-inset-top, 0px)) + 12px);
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}

/* ============================================================
   Profil-Linkliste (Backlinks) & Mehr-Button mit Hochzahl
   ============================================================ */
.profile-backlinks-wrap {
    width: 100%;
    max-width: 440px;
    margin: 4px auto 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.profile-backlinks-wrap:empty {
    display: none;
}

.profile-backlinks-inline-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
}

.profile-backlink-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.13);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #e0f2fe;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    max-width: min(240px, 64vw);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.profile-backlink-primary:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: rgba(125, 211, 252, 0.72);
    color: #ffffff;
    transform: translateY(-1px);
}

.profile-backlink-primary-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-backlink-icon,
.profile-backlink-ext {
    flex-shrink: 0;
    font-size: 0.76rem;
}

.profile-backlink-ext {
    opacity: 0.78;
}

.profile-backlink-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(245, 181, 71, 0.14);
    border: 1px solid rgba(245, 181, 71, 0.42);
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1.25;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.profile-backlink-more-btn:hover,
.profile-backlink-more-btn.is-open {
    background: rgba(245, 181, 71, 0.25);
    border-color: rgba(251, 191, 36, 0.78);
    color: #ffffff;
}

.profile-backlink-sup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: super;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    margin-left: 3px;
    transform: translateY(-4px);
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #0b1120;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.42);
}

.profile-backlink-add-pill,
.profile-backlink-edit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.profile-backlink-add-pill:hover,
.profile-backlink-edit-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.34);
    color: #ffffff;
}

.profile-backlinks-all-list {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    margin-top: 2px;
    border-radius: 14px;
    background: rgba(11, 16, 34, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.52);
    text-align: left;
}

.profile-backlink-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: #f1f5f9;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.profile-backlink-list-item:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.42);
    color: #ffffff;
}

.profile-backlink-item-num {
    font-size: 0.74rem;
    font-weight: 800;
    color: #fbbf24;
    min-width: 18px;
    flex-shrink: 0;
}

.profile-backlink-item-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-backlink-item-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-backlink-item-url {
    font-size: 0.7rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-links-editor-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-links-editor-row {
    display: grid;
    grid-template-columns: 1fr 1.35fr auto;
    gap: 8px;
    align-items: center;
}

.profile-link-del-btn {
    padding: 8px 10px !important;
    min-width: 34px;
}

@media (max-width: 480px) {
    .profile-links-editor-row {
        grid-template-columns: 1fr auto;
    }
    .profile-links-editor-row .profile-link-title-inp {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   V35.150: ZERO-VRAM 3D SPATIAL DEPTH ACROSS ALL VIEWS (START, ENTDECKEN,
   UNIVERSE, INBOX, PROFIL) + LOW-VRAM COMPOSITOR OPTIMIZATION
   ========================================================================== */
#view-start,
#view-voting,
#view-universe,
#view-chat,
#view-profile {
    perspective: 1200px;
}

.afterlink-bento-card,
.afterlink-discover-card,
.entdecken-person-v2-card,
.afterlink-impulse-hero-card,
.afterlink-radar-card,
.afterlink-inbox-card,
.insta-profile-card,
.profile-section-card,
.star-detail-card,
.afterlink-dock-card {
    box-shadow:
        0 18px 38px -10px rgba(2, 4, 12, 0.82),
        0 6px 14px -3px rgba(0, 0, 0, 0.65),
        inset 0 1.5px 0 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 0 rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease !important;
}

@media (hover: hover) {
    .afterlink-bento-card:hover,
    .afterlink-discover-card:hover,
    .entdecken-person-v2-card:hover,
    .afterlink-inbox-card:hover,
    .afterlink-dock-card:hover {
        transform: translate3d(0, -3px, 10px);
        box-shadow:
            0 24px 48px -10px rgba(2, 6, 20, 0.90),
            0 8px 20px -4px rgba(14, 165, 255, 0.16),
            inset 0 1.5px 0 0 rgba(255, 255, 255, 0.26),
            inset 0 -2px 0 0 rgba(0, 0, 0, 0.62) !important;
    }
}

/* ==========================================================================
   V35.158: PRIVATE USER TOP-15 SPEECH-BUBBLE POPOVER (#star-detail-card)
   Strictly active ONLY when .personal-popover-mode is applied (never Admin/Mod)
   ========================================================================== */
#view-universe:not(.is-fullscreen) #star-detail-card.star-floating-dock.personal-popover-mode {
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 248px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 12px 13px !important;
    border-radius: 18px !important;
    background: linear-gradient(155deg, rgba(24, 19, 52, 0.96) 0%, rgba(11, 15, 34, 0.97) 100%) !important;
    border: 1.5px solid rgba(216, 180, 254, 0.72) !important;
    box-shadow:
        0 16px 38px rgba(2, 4, 18, 0.90),
        0 0 24px rgba(192, 132, 252, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    z-index: 45 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

#star-detail-card.personal-popover-mode .star-dock-main,
#star-detail-card.personal-popover-mode .star-detail-actions {
    display: none !important;
}

#star-detail-card.personal-popover-mode #star-detail-personal-popover {
    display: block !important;
}

#star-detail-card.personal-popover-mode::after {
    content: "";
    position: absolute;
    left: var(--pointer-x, 50%);
    bottom: -9px;
    width: 16px;
    height: 16px;
    background: rgba(13, 16, 36, 0.97);
    border-right: 1.5px solid rgba(216, 180, 254, 0.72);
    border-bottom: 1.5px solid rgba(216, 180, 254, 0.72);
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
}

#star-detail-card.personal-popover-mode.popover-below::after {
    bottom: auto;
    top: -9px;
    background: rgba(23, 18, 50, 0.97);
    border-right: none;
    border-bottom: none;
    border-left: 1.5px solid rgba(216, 180, 254, 0.72);
    border-top: 1.5px solid rgba(216, 180, 254, 0.72);
}

.personal-popover-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 11px;
    cursor: pointer;
}

.personal-popover-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.personal-popover-title-wrap {
    flex: 1;
    min-width: 0;
}

.personal-popover-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.personal-popover-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.personal-popover-chevron {
    font-size: 1.15rem;
    line-height: 1;
    color: rgba(226, 232, 240, 0.78);
    flex-shrink: 0;
}

.personal-popover-commons {
    font-size: 0.78rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-top: 2px;
}

.personal-popover-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.personal-popover-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.36);
    background: rgba(15, 23, 46, 0.82);
    color: #f1f5f9;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
    line-height: 1.1;
}

.personal-popover-action-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.72);
    background: rgba(24, 38, 72, 0.92);
}

.personal-popover-action-btn:disabled {
    opacity: 0.68;
    cursor: default;
}

.personal-popover-action-btn.personal-popover-action-primary {
    border-color: rgba(216, 180, 254, 0.56);
    background: linear-gradient(155deg, rgba(126, 34, 206, 0.42) 0%, rgba(79, 70, 229, 0.34) 100%);
    color: #fdf4ff;
}

.personal-popover-action-btn.personal-popover-action-primary:hover:not(:disabled) {
    border-color: rgba(240, 171, 252, 0.85);
    background: linear-gradient(155deg, rgba(147, 51, 234, 0.56) 0%, rgba(99, 102, 241, 0.44) 100%);
}

/* ==========================================================================
   V35.159: PROFILE REDESIGN (#view-profile) 1:1 NACH REFERENZFOTO
   ========================================================================== */
.afterlink-profile-v2 .profile-cover-hero {
    min-height: calc(206px + var(--sat, env(safe-area-inset-top, 0px)));
    margin-bottom: 50px;
}

.afterlink-profile-v2 .profile-cover-topbar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px) 14px 6px !important;
}

.afterlink-profile-v2 .profile-tier-pass-pill {
    justify-self: start;
    background: linear-gradient(95deg, rgba(6, 182, 212, 0.92) 0%, rgba(139, 92, 246, 0.92) 52%, rgba(236, 72, 153, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.48) !important;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.46), 0 0 14px rgba(34, 211, 238, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    font-size: 0.78rem;
    padding: 7px 12px;
}

.profile-topbar-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1.08;
}

.profile-topbar-brand-center .profile-avatar-logo-img {
    height: clamp(28px, 3.8dvh, 34px);
    width: auto;
    margin-bottom: 2px;
}

.profile-brand-wordmark {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    padding-left: 0.24em;
}

.profile-brand-wordmark span {
    color: #38bdf8;
}

.profile-brand-tagline {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    color: rgba(226, 232, 240, 0.78);
    text-transform: uppercase;
    margin-top: 2px;
    padding-left: 0.24em;
}

.afterlink-profile-v2 .profile-cover-action-cluster {
    position: relative;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 30;
}

body.view-active-profile #view-profile {
    perspective: none !important;
}

.app-circle-action-btn svg {
    pointer-events: none;
}

.profile-gear-menu-popover {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.profile-gear-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.35);
    z-index: 99990;
}

.profile-gear-menu-sheet {
    position: fixed;
    top: calc(var(--sat, env(safe-area-inset-top, 0px)) + 56px);
    right: max(14px, calc((100vw - 600px) / 2 + 14px));
    min-width: 230px;
    padding: 7px;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(16, 20, 44, 0.98) 0%, rgba(7, 10, 24, 0.99) 100%);
    border: 1.5px solid rgba(192, 132, 252, 0.55);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.88), 0 0 24px rgba(139, 92, 246, 0.32);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 99995;
}

.profile-gear-menu-sheet .profile-gear-menu-item,
.profile-gear-menu-sheet #profile-cover-logout-btn {
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 12px !important;
    aspect-ratio: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 11px 14px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #f8fafc !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    cursor: pointer !important;
    box-shadow: none !important;
    overflow: visible !important;
    transition: background 0.14s ease, color 0.14s ease;
}

.profile-gear-menu-sheet .profile-gear-menu-item:hover,
.profile-gear-menu-sheet #profile-cover-logout-btn:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #ffffff !important;
}

.profile-gear-menu-sheet #profile-cover-logout-btn,
.profile-gear-menu-sheet .profile-gear-menu-item.is-logout {
    color: #fda4af !important;
}

.profile-gear-menu-sheet #profile-cover-logout-btn:hover,
.profile-gear-menu-sheet .profile-gear-menu-item.is-logout:hover {
    background: rgba(244, 63, 94, 0.22) !important;
    color: #fecdd3 !important;
}

.profile-cover-edit-pencil-btn {
    position: absolute !important;
    left: clamp(20px, 11vw, 72px);
    bottom: 36px;
    z-index: 6;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
}

.afterlink-profile-v2 .profile-hero-avatar-anchor {
    bottom: -44px;
}

@keyframes profileEmblemFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-4px);
    }
}

.afterlink-profile-v2 .profile-avatar-top-logo {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    padding: 0;
}

.afterlink-profile-v2 .profile-avatar-top-logo .profile-avatar-logo-img,
.partner-profile-modal-card .profile-avatar-top-logo .profile-avatar-logo-img {
    height: clamp(38px, 5dvh, 46px);
    width: auto;
    display: block;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.50)) drop-shadow(0 4px 18px rgba(192, 38, 211, 0.42));
    animation: profileEmblemFloat 3.6s ease-in-out infinite;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .afterlink-profile-v2 .profile-avatar-top-logo .profile-avatar-logo-img,
    .partner-profile-modal-card .profile-avatar-top-logo .profile-avatar-logo-img {
        animation: none;
    }
}

.afterlink-profile-v2 .profile-hero-avatar-ring {
    width: 106px !important;
    height: 106px !important;
    padding: 3.5px !important;
}

.afterlink-profile-v2 .profile-identity-center {
    margin-bottom: 12px;
}

.afterlink-profile-v2 .profile-hero-name {
    font-size: 1.58rem !important;
}

/* V35.182: Highlighted 9-Klick Q1 Role Capsule Pill (Mein Profil & Partner-Profil) */
.afterlink-profile-v2 .profile-hero-role-pill,
.partner-profile-modal-card .profile-hero-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 7px auto 5px;
    padding: 6px 18px;
    max-width: min(350px, calc(100% - 8px));
    min-height: 34px;
    border-radius: 999px;
    background: linear-gradient(95deg, #06b6d4 0%, #2563eb 32%, #8b5cf6 65%, #ec4899 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        -10px 0 24px rgba(0, 229, 255, 0.40),
        10px 0 24px rgba(236, 72, 153, 0.42),
        0 4px 16px rgba(99, 102, 241, 0.34),
        inset 0 1px 1px rgba(255, 255, 255, 0.52);
    box-sizing: border-box;
}

.afterlink-profile-v2 .profile-hero-role-icon,
.partner-profile-modal-card .profile-hero-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e0f7ff;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
}

.afterlink-profile-v2 .profile-hero-role-pill .profile-hero-role,
.partner-profile-modal-card .profile-hero-role-pill .profile-hero-role {
    color: #ffffff !important;
    font-size: clamp(0.84rem, 3.65vw, 0.96rem) !important;
    font-weight: 700 !important;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 !important;
    text-shadow: 0 1px 6px rgba(2, 6, 23, 0.45) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afterlink-profile-v2 .profile-hero-location-row,
.partner-profile-modal-card .profile-hero-location-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 2px;
    color: #e2e8f0;
}

.afterlink-profile-v2 .profile-hero-location-icon,
.partner-profile-modal-card .profile-hero-location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.94;
    flex-shrink: 0;
}

.afterlink-profile-v2 .profile-hero-location,
.partner-profile-modal-card .profile-hero-location {
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 500;
    margin: 0 !important;
    line-height: 1.3;
}

.afterlink-profile-v2 .profile-compact-bio-line {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
    max-width: 340px;
    margin: 6px auto 2px;
    padding: 0 4px;
    text-align: center;
}

/* V35.184: Direct 1-Click Editable Profile Bio / Tagline */
.afterlink-profile-v2 .profile-bio-edit-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: min(360px, calc(100% - 8px));
    margin: 6px auto 2px;
    padding: 5px 10px 5px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.30);
    color: #cbd5e1;
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.afterlink-profile-v2 .profile-bio-edit-trigger:hover,
.afterlink-profile-v2 .profile-bio-edit-trigger:focus-visible {
    border-color: rgba(56, 189, 248, 0.52);
    background: rgba(14, 165, 255, 0.12);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
    outline: none;
}

.afterlink-profile-v2 .profile-bio-edit-trigger:active {
    transform: scale(0.985);
}

.afterlink-profile-v2 .profile-bio-edit-trigger .profile-compact-bio-line {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none;
    text-align: center;
    word-break: break-word;
}

.afterlink-profile-v2 .profile-bio-edit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    flex-shrink: 0;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.38);
    color: #7dd3fc;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.afterlink-profile-v2 .profile-bio-edit-trigger:hover .profile-bio-edit-badge,
.afterlink-profile-v2 .profile-bio-edit-trigger:focus-visible .profile-bio-edit-badge {
    background: rgba(56, 189, 248, 0.26);
    border-color: rgba(125, 211, 252, 0.72);
    color: #ffffff;
}

/* V35.182: Ultra-Compact Single-Row Stats Pill Card (Kontakte · Beiträge · Projekte · Rang / Match %) */
.afterlink-profile-v2 .profile-stats-pill-card,
.partner-profile-modal-card .profile-stats-pill-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 9px 6px !important;
    margin: 0 auto 10px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(56, 189, 248, 0.40) !important;
    border-color: rgba(56, 189, 248, 0.40) !important;
    background: linear-gradient(155deg, rgba(11, 18, 38, 0.90), rgba(6, 10, 24, 0.96)) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42), 0 0 14px rgba(56, 189, 248, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.afterlink-profile-v2 .profile-stats-pill-card .profile-stat-cell,
.partner-profile-modal-card .profile-stats-pill-card .profile-stat-cell {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 2px 4px;
    min-height: 26px;
    min-width: 0;
}

.afterlink-profile-v2 .profile-stats-pill-card .profile-stat-cell:not(:last-child)::after,
.partner-profile-modal-card .profile-stats-pill-card .profile-stat-cell:not(:last-child)::after {
    top: 16%;
    bottom: 16%;
    background: rgba(148, 163, 184, 0.24);
}

.afterlink-profile-v2 .profile-stats-pill-card .profile-stat-icon,
.partner-profile-modal-card .profile-stats-pill-card .profile-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.96;
    flex-shrink: 0;
}

.afterlink-profile-v2 .profile-stats-pill-card .profile-stat-num,
.partner-profile-modal-card .profile-stats-pill-card .profile-stat-num {
    font-size: clamp(0.90rem, 3.7vw, 1.02rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.afterlink-profile-v2 .profile-stats-pill-card .profile-stat-label,
.partner-profile-modal-card .profile-stats-pill-card .profile-stat-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 375px) {
    .afterlink-profile-v2 .profile-stats-pill-card .profile-stat-cell,
    .partner-profile-modal-card .profile-stats-pill-card .profile-stat-cell {
        gap: 4px;
        padding: 2px 2px;
    }

    .afterlink-profile-v2 .profile-hero-role-pill,
    .partner-profile-modal-card .profile-hero-role-pill {
        padding: 6px 14px;
        gap: 6px;
    }
}

.profile-stat-icon-cyan {
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-stat-icon-light {
    color: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.afterlink-profile-v2 .profile-biz-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
}

.afterlink-profile-v2 .profile-biz-row {
    padding: 8px 9px;
    gap: 7px;
    border-radius: 13px;
    min-width: 0;
    min-height: 46px;
    border: 1px solid rgba(96, 165, 250, 0.32);
    background: linear-gradient(155deg, rgba(14, 21, 42, 0.90) 0%, rgba(8, 12, 26, 0.96) 100%);
}

.afterlink-profile-v2 .profile-biz-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.84rem;
}

.afterlink-profile-v2 .profile-biz-text {
    gap: 1px;
}

.afterlink-profile-v2 .profile-biz-label {
    font-size: clamp(0.70rem, 3.05vw, 0.78rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afterlink-profile-v2 .profile-biz-value,
.afterlink-profile-v2 .profile-biz-value.is-empty {
    font-size: 0.69rem;
    font-weight: 500;
    line-height: 1.2;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.afterlink-profile-v2 .profile-biz-chev {
    display: none;
}

.afterlink-profile-v2 .profile-gallery-head-row {
    margin: 8px 2px 10px;
}

.afterlink-profile-v2 .insta-content-gallery.is-compact-preview {
    gap: 8px !important;
}

.afterlink-profile-v2 .insta-content-gallery.is-compact-preview .insta-grid-tile {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.afterlink-profile-v2 .profile-gallery-cta-row {
    grid-template-columns: 1.85fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.afterlink-profile-v2 .profile-btn-add-photo {
    background: linear-gradient(95deg, #22d3ee 0%, #6366f1 48%, #ec4899 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.45), 0 0 14px rgba(34, 211, 238, 0.32) !important;
}

.afterlink-profile-v2 .profile-btn-folder {
    border: 1px solid rgba(148, 163, 184, 0.36);
    background: linear-gradient(155deg, rgba(15, 22, 42, 0.92), rgba(8, 12, 24, 0.96));
}

.profile-pocketpass-bottom-row {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.profile-pocketpass-vcard-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    background: linear-gradient(155deg, rgba(15, 22, 44, 0.92) 0%, rgba(8, 12, 26, 0.96) 100%);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.profile-pocketpass-vcard-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55), 0 0 16px rgba(56, 189, 248, 0.24);
}

.profile-pocketpass-vcard-pill .pp-pill-export-icon {
    display: inline-flex;
    align-items: center;
    color: rgba(226, 232, 240, 0.85);
}

/* Art. 22 DSGVO & DSA: Age buffer zone badge & casual visual consent modals */
.badge-age-review {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(251, 191, 36, 0.65);
    color: #fde68a;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.casual-consent-card {
    border: 1px solid rgba(228, 193, 141, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.92), 0 0 28px rgba(168, 85, 247, 0.18) !important;
}

.casual-consent-list {
    margin: 0 0 14px 0;
    padding-left: 18px;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.casual-consent-list li + li {
    margin-top: 6px;
}

.casual-consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(228, 193, 141, 0.28);
    cursor: pointer;
    font-size: 0.83rem;
    color: #f8fafc;
    line-height: 1.45;
}

.casual-consent-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #e4c18d;
    cursor: pointer;
}

#casual-visual-consent-submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

/* Regie Push-Broadcast Center */
.mod-push-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.mod-push-kpi-card {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mod-push-kpi-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mod-push-kpi-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
}

.mod-push-preset-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mod-push-preview-card {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(11, 17, 32, 0.72);
    border: 1px solid rgba(228, 193, 141, 0.28);
}

.mod-push-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mod-push-preview-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mod-push-preview-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
}

.mod-push-preview-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    word-break: break-word;
}

.mod-push-preview-body {
    font-size: 0.81rem;
    color: #e2e8f0;
    margin-top: 2px;
    line-height: 1.4;
    word-break: break-word;
}

.mod-push-preview-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.mod-push-result-banner {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.mod-push-result-banner.is-success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #a7f3d0;
}

.mod-push-result-banner.is-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
}

.mod-push-history-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   AFTERLINK PRE-LOGIN COSMIC WELCOME HERO (V35.169)
   ========================================================================== */

.welcome-bg-canvas {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

body.view-active-welcome .app-header,
body.view-active-welcome #app-nav,
body.view-active-welcome .site-footer {
    display: none !important;
}

html:has(body.view-active-welcome),
body.view-active-welcome {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #040714 !important;
    background-image: none !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.view-active-welcome .main-container,
body:not(.has-user-session) .main-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#view-welcome.view-section.active,
#view-auth.view-section.active {
    animation: afterlinkFadeOnly 0.25s ease-out both;
}

@keyframes afterlinkFadeOnly {
    from { opacity: 0; }
    to { opacity: 1; }
}

.afterlink-welcome-view {
    position: fixed;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background-color: #030614;
    background-image:
        radial-gradient(ellipse 46% 38% at 0% 34%, rgba(0, 220, 255, 0.24) 0%, transparent 72%),
        radial-gradient(ellipse 42% 34% at 4% 52%, rgba(139, 92, 246, 0.20) 0%, transparent 72%),
        radial-gradient(ellipse 56% 42% at 94% 16%, rgba(192, 38, 211, 0.28) 0%, transparent 72%),
        radial-gradient(ellipse 44% 34% at 92% 70%, rgba(236, 72, 153, 0.14) 0%, transparent 70%),
        linear-gradient(180deg, #020512 0%, #05091B 48%, #070518 100%);
}

.welcome-cosmic-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    background-image:
        radial-gradient(1.3px 1.3px at 14% 19%, rgba(255, 255, 255, 0.85) 50%, transparent 100%),
        radial-gradient(1.1px 1.1px at 28% 8%, rgba(186, 230, 253, 0.8) 50%, transparent 100%),
        radial-gradient(1.4px 1.4px at 72% 28%, rgba(245, 208, 254, 0.8) 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 88% 46%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1.2px 1.2px at 11% 62%, rgba(125, 211, 252, 0.75) 50%, transparent 100%),
        radial-gradient(1.3px 1.3px at 82% 78%, rgba(244, 114, 182, 0.75) 50%, transparent 100%),
        radial-gradient(1px 1px at 41% 42%, rgba(255, 255, 255, 0.45) 50%, transparent 100%),
        radial-gradient(1px 1px at 64% 66%, rgba(196, 181, 253, 0.55) 50%, transparent 100%);
}

.welcome-planet-tr {
    --tr-size: clamp(310px, 74vw, 430px);
    position: absolute;
    top: calc(var(--tr-size) * -0.52);
    right: calc(var(--tr-size) * -0.60);
    width: var(--tr-size);
    height: var(--tr-size);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    border: 2.5px solid transparent;
    background:
        radial-gradient(circle at 12% 55%, rgba(0, 240, 255, 0.42) 0%, transparent 38%) padding-box,
        radial-gradient(circle at 48% 92%, rgba(255, 56, 174, 0.48) 0%, transparent 40%) padding-box,
        radial-gradient(circle closest-side at 50% 50%, #030818 0%, #050D24 58%, #101A44 82%, #2B246C 95%, #5B3BA8 100%) padding-box,
        linear-gradient(145deg, #52F6FF 0%, #60A5FA 28%, #A855F7 58%, #FF3EB5 100%) border-box;
    box-shadow:
        -10px 14px 48px rgba(192, 38, 211, 0.42),
        -4px 8px 20px rgba(255, 62, 181, 0.48),
        -14px -2px 32px rgba(0, 229, 255, 0.24),
        inset 10px -10px 26px rgba(168, 85, 247, 0.32),
        inset 14px 4px 22px rgba(0, 240, 255, 0.22);
}

.welcome-planet-bl {
    --bl-size: clamp(640px, 148vw, 860px);
    position: absolute;
    bottom: calc(var(--bl-size) * -0.876);
    left: calc(var(--bl-size) * -0.44);
    width: var(--bl-size);
    height: var(--bl-size);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    border: 2.5px solid transparent;
    background:
        radial-gradient(circle at 45% 4%, rgba(56, 224, 255, 0.52) 0%, transparent 26%) padding-box,
        radial-gradient(circle at 68% 12%, rgba(255, 56, 174, 0.56) 0%, transparent 28%) padding-box,
        radial-gradient(circle closest-side at 50% 50%, #04071A 0%, #070D2A 72%, #171D58 88%, #3B2882 96%, #7C44C4 100%) padding-box,
        linear-gradient(90deg, #5CEEFF 0%, #60A5FA 34%, #B855FF 58%, #FF3BB8 84%, #FF5EC8 100%) border-box;
    box-shadow:
        0 -12px 44px rgba(168, 85, 247, 0.45),
        -22px -10px 36px rgba(0, 229, 255, 0.30),
        24px -8px 40px rgba(255, 56, 174, 0.42),
        inset 0 12px 28px rgba(168, 85, 247, 0.36),
        inset 22px 6px 26px rgba(0, 229, 255, 0.28);
}

.afterlink-welcome-view > .welcome-cosmic-stars {
    z-index: -2;
}

.afterlink-welcome-view > .welcome-planet-tr,
.afterlink-welcome-view > .welcome-planet-bl {
    z-index: -1;
}

.afterlink-welcome-stage {
    position: relative;
    z-index: auto;
    width: 100%;
    max-width: 460px;
    height: 100%;
    min-height: 0;
    overflow: visible;
    margin: 0 auto;
    padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + clamp(10px, 2vh, 22px)) 20px calc(env(safe-area-inset-bottom, 0px) + clamp(42px, 6.5vh, 72px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.welcome-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(10px, 2.2dvh, 20px);
}

.welcome-brand-lockup-img {
    width: clamp(190px, min(66vw, 37dvh), 320px);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    mix-blend-mode: normal;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.34)) drop-shadow(0 0 24px rgba(236, 72, 153, 0.24));
}

.welcome-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.welcome-rings-img {
    width: clamp(132px, 34vw, 168px);
    height: auto;
    display: block;
    margin: 0 auto 10px;
    mix-blend-mode: normal;
    pointer-events: none;
    user-select: none;
    filter: saturate(1.3) brightness(1.12) drop-shadow(0 0 22px rgba(0, 229, 255, 0.45)) drop-shadow(0 0 28px rgba(236, 72, 153, 0.35));
}

.welcome-wordmark {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.50rem, 5.9vw, 1.92rem);
    font-weight: 800;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
    line-height: 1.15;
    text-transform: uppercase;
}

.welcome-wordmark-after {
    background: linear-gradient(90deg, #1BE7FF 0%, #38BDF8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-wordmark-link {
    color: #FFFFFF;
}

.welcome-subbrand {
    margin-top: 8px;
    font-size: clamp(0.68rem, 2.4vw, 0.82rem);
    font-weight: 500;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    color: rgba(241, 245, 249, 0.88);
    text-transform: uppercase;
}

.welcome-hero-headline {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.07;
}

.welcome-headline-top {
    font-size: clamp(1.90rem, min(10.2vw, 6.0dvh), 3.40rem);
    color: #FFFFFF;
    text-shadow: 0 4px 28px rgba(15, 23, 42, 0.55);
}

.welcome-headline-gradient {
    font-size: clamp(2.00rem, min(10.8vw, 6.3dvh), 3.55rem);
    background: linear-gradient(90deg, #00F5FF 0%, #38BDF8 24%, #8E84FF 52%, #E052E0 78%, #FF47A3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(0, 245, 255, 0.34)) drop-shadow(0 0 28px rgba(255, 71, 163, 0.32));
}

.welcome-accent-bar {
    width: 108px;
    height: 4px;
    margin: clamp(10px, 1.9dvh, 18px) auto clamp(10px, 2.1dvh, 20px);
    border-radius: 999px;
    background: linear-gradient(90deg, #00F5FF 0%, #7DD3FC 28%, #FFFFFF 52%, #F472B6 76%, #FF2E97 100%);
    box-shadow:
        0 0 12px rgba(0, 245, 255, 0.88),
        0 0 24px rgba(168, 85, 247, 0.65),
        0 0 28px rgba(255, 46, 151, 0.72);
}

.welcome-lead-copy {
    margin: 0;
    font-size: clamp(1.04rem, min(4.9vw, 2.9dvh), 1.52rem);
    font-weight: 400;
    line-height: 1.34;
    color: rgba(248, 250, 252, 0.96);
    letter-spacing: -0.01em;
}

.welcome-lead-copy strong {
    font-weight: 800;
    color: #FFFFFF;
}

.welcome-pillars-copy {
    margin: clamp(10px, 1.8dvh, 16px) 0 clamp(12px, 2.4dvh, 24px);
    font-size: clamp(0.86rem, min(3.8vw, 2.2dvh), 1.14rem);
    font-weight: 400;
    letter-spacing: 0.015em;
    color: rgba(241, 245, 249, 0.9);
}

.welcome-cta-wrap {
    position: relative;
    width: 100%;
    max-width: 392px;
    display: flex;
    justify-content: center;
}

.welcome-cta-wrap::before {
    content: "";
    position: absolute;
    inset: -110px -180px;
    background:
        radial-gradient(ellipse 26% 32% at 34% 50%,
            rgba(0, 232, 255, 0.44) 0%,
            rgba(14, 165, 255, 0.22) 28%,
            rgba(14, 165, 255, 0.08) 55%,
            rgba(14, 165, 255, 0.02) 78%,
            rgba(14, 165, 255, 0) 100%),
        radial-gradient(ellipse 26% 32% at 66% 50%,
            rgba(255, 46, 151, 0.46) 0%,
            rgba(168, 85, 247, 0.22) 28%,
            rgba(168, 85, 247, 0.08) 55%,
            rgba(168, 85, 247, 0.02) 78%,
            rgba(168, 85, 247, 0) 100%),
        radial-gradient(ellipse 34% 28% at 50% 50%,
            rgba(139, 92, 246, 0.22) 0%,
            rgba(59, 130, 246, 0.09) 42%,
            rgba(59, 130, 246, 0.02) 74%,
            rgba(59, 130, 246, 0) 100%);
    mix-blend-mode: screen;
    opacity: 0.90;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.welcome-cta-wrap:hover::before {
    opacity: 1;
    transform: scale(1.04);
}

.welcome-cta-pill {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(11px, 1.8dvh, 15px) clamp(18px, 4.8vw, 26px);
    border-radius: 999px;
    border: 2px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background:
        radial-gradient(ellipse 46% 120% at 8% 50%, rgba(0, 212, 255, 0.24) 0%, rgba(0, 212, 255, 0) 72%) padding-box,
        radial-gradient(ellipse 48% 120% at 92% 50%, rgba(255, 46, 151, 0.28) 0%, rgba(255, 46, 151, 0) 72%) padding-box,
        linear-gradient(90deg, rgba(7, 29, 70, 0.78) 0%, rgba(20, 25, 74, 0.76) 48%, rgba(79, 18, 84, 0.78) 100%) padding-box,
        linear-gradient(90deg, #24F6FF 0%, #3B82F6 30%, #B44CFF 64%, #FF33A1 100%) border-box;
    box-shadow:
        -6px 0 22px rgba(0, 240, 255, 0.24),
        6px 0 22px rgba(255, 51, 161, 0.26),
        0 0 18px rgba(139, 92, 246, 0.14),
        inset 18px 0 28px rgba(0, 240, 255, 0.20),
        inset -18px 0 28px rgba(255, 51, 161, 0.24),
        inset 0 1px 2px rgba(255, 255, 255, 0.42);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 3.4vw, 18px);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-cta-pill:hover {
    transform: translateY(-2px);
    box-shadow:
        -8px 2px 28px rgba(0, 240, 255, 0.36),
        8px 2px 28px rgba(255, 51, 161, 0.38),
        0 4px 24px rgba(139, 92, 246, 0.22),
        inset 20px 0 32px rgba(0, 240, 255, 0.24),
        inset -20px 0 32px rgba(255, 51, 161, 0.28),
        inset 0 1px 2px rgba(255, 255, 255, 0.48);
}

.welcome-cta-pill:active {
    transform: translateY(0) scale(0.99);
}

.welcome-cta-pill:focus-visible {
    outline: 2px solid #00F0FF;
    outline-offset: 4px;
}

.welcome-cta-icon {
    width: clamp(34px, 5.0dvh, 44px);
    height: clamp(30px, 4.4dvh, 38px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
}

.welcome-cta-icon svg {
    width: 100%;
    height: 100%;
}

.welcome-cta-divider {
    width: 1px;
    height: clamp(34px, 5.4dvh, 48px);
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(186, 230, 253, 0.08) 0%, rgba(186, 230, 253, 0.52) 50%, rgba(186, 230, 253, 0.08) 100%);
}

.welcome-cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #FFFFFF;
}

.welcome-cta-text-top {
    font-size: clamp(0.90rem, min(4.1vw, 2.3dvh), 1.24rem);
    font-weight: 400;
    color: rgba(248, 250, 252, 0.96);
}

.welcome-cta-text-bold {
    font-size: clamp(1.10rem, min(5.0vw, 2.9dvh), 1.50rem);
    font-weight: 800;
    line-height: 1.18;
    color: #FFFFFF;
}

.welcome-more-row {
    width: 100%;
    max-width: 392px;
    margin-top: clamp(12px, 2.4dvh, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.welcome-more-line {
    flex: 1;
    max-width: 82px;
    height: 2px;
    border-radius: 999px;
}

.welcome-more-line-left {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0) 0%, #38E8FF 62%, rgba(56, 232, 255, 0.18) 100%);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.72);
}

.welcome-more-line-right {
    background: linear-gradient(90deg, rgba(56, 232, 255, 0.18) 0%, #38E8FF 38%, rgba(0, 229, 255, 0) 100%);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.72);
}

.welcome-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: clamp(1.02rem, 4.1vw, 1.18rem);
    font-weight: 400;
    color: #F8FAFC;
    white-space: nowrap;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.welcome-more-link:hover {
    opacity: 0.92;
    transform: translateX(2px);
}

.welcome-more-arrow {
    width: 22px;
    height: 22px;
    color: #FF4DB8;
    filter: drop-shadow(0 0 10px rgba(255, 77, 184, 0.88));
}

.welcome-legal-footer {
    position: relative;
    z-index: 3;
    margin-top: clamp(14px, 2.4vh, 24px);
    display: flex;
    justify-content: center;
    opacity: 0.78;
    transition: opacity 0.18s ease;
}

.welcome-legal-footer:hover,
.welcome-legal-footer:focus-within {
    opacity: 0.95;
}

.welcome-legal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.welcome-legal-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(2, 6, 23, 0.85);
    transition: color 0.18s ease;
}

.welcome-legal-link:hover {
    color: #38BDF8;
    text-decoration: underline;
}

.welcome-legal-sep {
    color: rgba(226, 232, 240, 0.42);
    font-size: 0.72rem;
    user-select: none;
}

@media (max-height: 700px) {
    .afterlink-welcome-stage {
        padding-top: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
    }

    .welcome-brand-lockup {
        margin-bottom: 10px;
    }

    .welcome-brand-lockup-img {
        width: clamp(185px, 33dvh, 224px);
    }

    .welcome-rings-img {
        width: 96px;
        margin-bottom: 6px;
    }

    .welcome-accent-bar {
        margin: 10px auto 12px;
    }

    .welcome-pillars-copy {
        margin: 10px 0 14px;
    }

    .welcome-more-row {
        margin-top: 12px;
    }

    .welcome-legal-footer {
        margin-top: 10px;
    }
}

/* ==========================================================================
   V35.176: TOPBAR NOTIFICATION BELL ON/OFF TOGGLE STATE
   ========================================================================== */
.afterlink-bell-btn .bell-off-slash {
    display: none;
}

.afterlink-bell-btn.is-notifications-on {
    border-color: rgba(14, 165, 255, 0.58) !important;
    color: #E0F2FE !important;
    box-shadow: 0 0 14px rgba(14, 165, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.afterlink-bell-btn.is-notifications-on svg {
    color: #E0F2FE !important;
}

.afterlink-bell-btn.is-notifications-off {
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: rgba(148, 163, 184, 0.68) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.afterlink-bell-btn.is-notifications-off svg {
    color: rgba(148, 163, 184, 0.72) !important;
}

.afterlink-bell-btn.is-notifications-off .bell-off-slash {
    display: block;
    stroke: #F87171;
    stroke-width: 2.3;
}

/* ==========================================================================
   V35.186: PROFILE SETTINGS HUB (COSMIC DARK-GLASS VIEW + BACK BUTTON)
   ========================================================================== */
.insta-modal-overlay.settings-hub-overlay {
    background:
        radial-gradient(circle at 14% 12%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 88% 22%, rgba(168, 85, 247, 0.18) 0%, transparent 48%),
        rgba(3, 7, 18, 0.94) !important;
    backdrop-filter: blur(22px) !important;
    -webkit-backdrop-filter: blur(22px) !important;
}

.settings-hub-overlay .settings-hub-sheet {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    max-height: min(94dvh, 860px);
    padding: 0 !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 8%, rgba(168, 85, 247, 0.14) 0%, transparent 46%),
        radial-gradient(circle at 12% 30%, rgba(14, 165, 255, 0.10) 0%, transparent 42%),
        linear-gradient(175deg, rgba(10, 16, 36, 0.98), rgba(5, 8, 20, 0.99)) !important;
    border: 1px solid rgba(139, 92, 246, 0.36) !important;
    border-radius: 28px !important;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.85),
        0 0 38px rgba(56, 189, 248, 0.14),
        0 0 64px rgba(168, 85, 247, 0.14) !important;
}

@media (max-width: 599px) {
    .insta-modal-overlay.settings-hub-overlay {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .settings-hub-overlay .settings-hub-sheet {
        max-width: 100%;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
}

.settings-hub-header {
    flex-shrink: 0;
    padding: max(14px, env(safe-area-inset-top, 14px)) 18px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background: linear-gradient(180deg, rgba(11, 18, 38, 0.72), rgba(11, 18, 38, 0.15));
}

.settings-hub-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.settings-hub-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #f1f5f9;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.settings-hub-back-btn:hover,
.settings-hub-back-btn:focus-visible {
    border-color: rgba(56, 189, 248, 0.65);
    background: rgba(14, 165, 255, 0.14);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
    outline: none;
}

.settings-hub-back-btn:active {
    transform: scale(0.97);
}

.settings-hub-title-row {
    display: flex;
    align-items: center;
    gap: 13px;
}

.settings-hub-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.14);
}

.settings-hub-title-text {
    min-width: 0;
}

.settings-hub-title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
}

.settings-hub-subtitle {
    margin: 3px 0 0;
    font-size: 0.86rem;
    color: #94a3b8;
    font-weight: 500;
}

.settings-hub-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 18px max(22px, env(safe-area-inset-bottom, 22px));
}

.settings-hub-cat-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.settings-hub-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 13px 15px;
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    background: linear-gradient(145deg, rgba(13, 22, 46, 0.90), rgba(7, 12, 28, 0.96));
    color: #f8fafc;
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.settings-hub-cat-card:hover,
.settings-hub-cat-card:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.settings-hub-cat-card:active {
    transform: scale(0.99);
}

.settings-hub-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 255, 0.10);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.20), inset 0 0 10px rgba(56, 189, 248, 0.12);
}

/* Neon accent palette matching AFTERLINK design */
.settings-hub-cat-card.is-cyan {
    border-color: rgba(56, 189, 248, 0.36);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.36), 0 0 16px rgba(56, 189, 248, 0.10);
}
.settings-hub-cat-card.is-cyan:hover {
    border-color: rgba(56, 189, 248, 0.72);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(56, 189, 248, 0.24);
}
.settings-hub-cat-card.is-cyan .settings-hub-icon-circle {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(14, 165, 255, 0.14);
    color: #38bdf8;
}

.settings-hub-cat-card.is-magenta {
    border-color: rgba(217, 70, 239, 0.36);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.36), 0 0 16px rgba(217, 70, 239, 0.10);
}
.settings-hub-cat-card.is-magenta:hover {
    border-color: rgba(232, 121, 249, 0.74);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(217, 70, 239, 0.25);
}
.settings-hub-cat-card.is-magenta .settings-hub-icon-circle {
    border-color: rgba(232, 121, 249, 0.55);
    background: rgba(192, 38, 211, 0.15);
    color: #f472b6;
    box-shadow: 0 0 16px rgba(217, 70, 239, 0.22), inset 0 0 10px rgba(217, 70, 239, 0.12);
}

.settings-hub-cat-card.is-blue {
    border-color: rgba(96, 165, 250, 0.36);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.36), 0 0 16px rgba(59, 130, 246, 0.10);
}
.settings-hub-cat-card.is-blue:hover {
    border-color: rgba(96, 165, 250, 0.74);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(59, 130, 246, 0.24);
}
.settings-hub-cat-card.is-blue .settings-hub-icon-circle {
    border-color: rgba(96, 165, 250, 0.55);
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.22), inset 0 0 10px rgba(59, 130, 246, 0.12);
}

.settings-hub-cat-card.is-teal {
    border-color: rgba(45, 212, 191, 0.36);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.36), 0 0 16px rgba(45, 212, 191, 0.10);
}
.settings-hub-cat-card.is-teal:hover {
    border-color: rgba(45, 212, 191, 0.74);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(45, 212, 191, 0.24);
}
.settings-hub-cat-card.is-teal .settings-hub-icon-circle {
    border-color: rgba(45, 212, 191, 0.55);
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.22), inset 0 0 10px rgba(45, 212, 191, 0.12);
}

.settings-hub-cat-card.is-violet {
    border-color: rgba(192, 132, 252, 0.36);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.36), 0 0 16px rgba(168, 85, 247, 0.10);
}
.settings-hub-cat-card.is-violet:hover {
    border-color: rgba(232, 121, 249, 0.72);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(168, 85, 247, 0.24);
}
.settings-hub-cat-card.is-violet .settings-hub-icon-circle {
    border-color: rgba(244, 114, 182, 0.52);
    background: rgba(168, 85, 247, 0.16);
    color: #f9a8d4;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.22), inset 0 0 10px rgba(168, 85, 247, 0.12);
}

.settings-hub-cat-card.is-gold {
    border-color: rgba(245, 181, 71, 0.40);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.36), 0 0 16px rgba(245, 181, 71, 0.12);
}
.settings-hub-cat-card.is-gold:hover {
    border-color: rgba(251, 191, 36, 0.78);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 181, 71, 0.26);
}
.settings-hub-cat-card.is-gold .settings-hub-icon-circle {
    border-color: rgba(245, 181, 71, 0.58);
    background: rgba(245, 181, 71, 0.15);
    color: #fbbf24;
    box-shadow: 0 0 16px rgba(245, 181, 71, 0.24), inset 0 0 10px rgba(245, 181, 71, 0.12);
}

.settings-hub-cat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.settings-hub-cat-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.settings-hub-cat-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.settings-hub-chev {
    font-size: 1.35rem;
    line-height: 1;
    color: rgba(203, 213, 225, 0.72);
    flex-shrink: 0;
    padding-left: 4px;
}

.settings-hub-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.settings-hub-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(9, 14, 30, 0.94));
    color: #e2e8f0;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.settings-hub-pill-btn:hover,
.settings-hub-pill-btn:focus-visible {
    border-color: rgba(125, 211, 252, 0.58);
    background: rgba(30, 41, 59, 0.85);
    outline: none;
}

.settings-hub-logout-btn {
    margin-top: 12px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(244, 63, 94, 0.54);
    background: linear-gradient(135deg, rgba(88, 16, 36, 0.56), rgba(44, 10, 22, 0.78));
    color: #fb7185;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 18px rgba(244, 63, 94, 0.12);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.settings-hub-logout-btn:hover,
.settings-hub-logout-btn:focus-visible {
    border-color: rgba(251, 113, 133, 0.88);
    background: linear-gradient(135deg, rgba(114, 22, 46, 0.72), rgba(62, 13, 29, 0.88));
    color: #ffe4e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(244, 63, 94, 0.24);
    outline: none;
}

.settings-subpage-action-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.settings-subpage-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 15px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font: inherit;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.settings-subpage-row:hover,
.settings-subpage-row:focus-visible {
    border-color: rgba(56, 189, 248, 0.56);
    background: rgba(14, 165, 255, 0.10);
    outline: none;
}

.settings-subpage-row-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.settings-subpage-row-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.settings-subpage-row-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.settings-subpage-row-sub {
    font-size: 0.77rem;
    color: #94a3b8;
}

@media (min-width: 600px) {
    .settings-hub-header {
        padding: 12px 18px 10px;
    }
    .settings-hub-nav-row {
        margin-bottom: 8px;
    }
    .settings-hub-body {
        padding: 10px 18px 16px;
    }
    .settings-hub-cat-list {
        gap: 8px;
    }
    .settings-hub-cat-card {
        padding: 9px 14px;
    }
    .settings-hub-secondary-row,
    .settings-hub-logout-btn {
        margin-top: 9px;
    }
}

/* ==========================================================================
   V35.195: KARRIERE-TRESOR MULTI-TAB LAYOUT
   ========================================================================== */
.vault-shell-card {
    max-width: 780px;
    margin: 18px auto;
    padding: 20px;
    background: rgba(11, 16, 28, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
}

.vault-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.vault-shell-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #38bdf8;
    font-weight: 700;
}

.vault-shell-heading {
    margin: 4px 0 0 0;
    font-size: 1.35rem;
    color: #f8fafc;
}

.vault-role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    margin-bottom: 12px;
}

.vault-role-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 12px;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.vault-role-btn:hover {
    color: #f8fafc;
}

.vault-role-btn.is-active {
    background: linear-gradient(135deg, rgba(245, 181, 71, 0.20), rgba(14, 165, 255, 0.14));
    border-color: rgba(245, 181, 71, 0.52);
    color: #fde68a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.vault-status-strip {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.18);
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-bottom: 14px;
}

.vault-section-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

@media (max-width: 559px) {
    .vault-shell-card {
        padding: 14px;
        margin: 10px auto;
    }
    .vault-section-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.vault-section-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.68);
    color: #cbd5e1;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.vault-section-tab:hover {
    border-color: rgba(56, 189, 248, 0.45);
    color: #ffffff;
}

.vault-section-tab.is-active {
    border-color: rgba(56, 189, 248, 0.68);
    background: linear-gradient(145deg, rgba(14, 165, 255, 0.18), rgba(15, 23, 42, 0.92));
    color: #f8fafc;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.vault-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
}

.vault-panel-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 16px;
}

.vault-panel-card.is-cyan {
    border-color: rgba(56, 189, 248, 0.24);
}

.vault-panel-card.is-emerald {
    border-color: rgba(16, 185, 129, 0.26);
}

.vault-panel-card.is-purple {
    border-color: rgba(168, 85, 247, 0.26);
}

.vault-form-group-box {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(148, 163, 184, 0.14);
    margin-bottom: 12px;
}

.vault-group-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7dd3fc;
    margin-bottom: 10px;
}

.vault-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(245, 181, 71, 0.1);
    border: 1px solid rgba(245, 181, 71, 0.36);
    color: #f8fafc;
    font-size: 0.84rem;
    margin-bottom: 14px;
}

/* ==========================================================================
   V35.196: KARRIERE-TRESOR ZERO-TYPO CHIP PICKER
   ========================================================================== */
.vault-chip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.vault-chip-counter {
    font-size: 0.72rem;
    font-weight: 700;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.14);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.vault-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vault-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font: inherit;
    font-size: 0.77rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.vault-chip:hover {
    border-color: rgba(56, 189, 248, 0.55);
    color: #f8fafc;
}

.vault-chip.is-selected {
    border-color: rgba(245, 181, 71, 0.78);
    background: linear-gradient(135deg, rgba(245, 181, 71, 0.24), rgba(14, 165, 255, 0.16));
    color: #fde68a;
    box-shadow: 0 0 12px rgba(245, 181, 71, 0.18);
}

.vault-chip-group {
    width: 100%;
    margin-top: 6px;
}

.vault-chip-group:first-child {
    margin-top: 0;
}

.vault-chip-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 5px;
}

.vault-chip-empty-hint {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.45);
    color: #94a3b8;
    font-size: 0.79rem;
    width: 100%;
}

.vault-custom-add-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    align-items: center;
}
