/* Virtual Nights – Frontend CSS */

:root {
    --vn-primary:          #e91e63;
    --vn-primary-d:        #c2185b;
    --vn-bg:               #1a1a2e;
    --vn-card-bg:          #16213e;
    --vn-surface:          #0f3460;
    --vn-text:             #e0e0e0;
    --vn-text-muted:       #9e9e9e;
    --vn-heading:          #ffffff;
    --vn-input-text:       #e0e0e0;
    --vn-btn-primary-text: #ffffff;
    --vn-border:           #2a3560;
    --vn-radius:           0px;
    --vn-shadow:           0 4px 20px rgba(0,0,0,0.3);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
.vn-box, .vn-dashboard, .vn-profile, .vn-event-list, .vn-login-form, .vn-register-form {
    font-family: inherit;
    color: var(--vn-text);
    max-width: 800px;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.vn-box {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    padding: 28px 32px;
    box-shadow: var(--vn-shadow);
    max-width: 480px;
}
.vn-form-title { margin-top: 0; color: var(--vn-heading); }

.vn-field { margin-bottom: 18px; }
.vn-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--vn-text-muted);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.vn-field input,
.vn-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 0;
    color: var(--vn-input-text);
    padding: 11px 14px;
    font-size: 0.97rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    line-height: 1.5;
}
.vn-field input:hover,
.vn-field textarea:hover {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.06);
}
.vn-field select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 0;
    color: var(--vn-input-text);
    padding: 11px 36px 11px 14px;
    font-size: 0.97rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e9e9e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.vn-field select:hover {
    border-color: rgba(255,255,255,0.22);
    background-color: rgba(255,255,255,0.06);
}
.vn-field input:focus,
.vn-field textarea:focus,
.vn-field select:focus {
    outline: none;
    border-color: var(--vn-primary);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(233,30,99,0.18);
}
.vn-field textarea { resize: vertical; min-height: 96px; }
.vn-field-check { display: flex; align-items: center; gap: 8px; }
.vn-field small, .vn-hint { font-size: 0.78rem; color: var(--vn-text-muted); display: block; margin-top: 4px; }
.vn-form-alt  { text-align: center; font-size: 0.88rem; margin-top: 16px; color: var(--vn-text-muted); }
.vn-form-alt a { color: var(--vn-primary); }

/* Notices */
.vn-notice {
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.vn-notice-success { background: #1b5e20; color: #c8e6c9; }
.vn-notice-error   { background: #b71c1c; color: #ffcdd2; }
.vn-notice-info    { background: #1a237e; color: #c5cae9; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.vn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}
.vn-btn-primary {
    background: var(--vn-primary);
    color: var(--vn-btn-primary-text);
    width: 100%;
}
.vn-btn-primary:hover { background: var(--vn-primary-d); }
.vn-btn-ghost {
    background: transparent;
    color: var(--vn-text-muted);
    border: 1px solid var(--vn-border);
}
.vn-btn-ghost:hover { border-color: var(--vn-primary); color: var(--vn-primary); }
.vn-btn-sm   { padding: 6px 14px; font-size: 0.82rem; }
.vn-badge         { display: inline-block; padding: 2px 8px; border-radius: 0; font-size: 0.75rem; background: var(--vn-surface); color: #fff; }
.vn-badge-success { background: #2e7d32; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.vn-dashboard { max-width: 860px; }
.vn-dashboard-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--vn-border);
}
.vn-dashboard-header h2 { margin: 0; color: var(--vn-heading); }

/* Avatare */
.vn-avatar, .vn-avatar-lg, .vn-avatar-sm {
    border-radius: 50%;
    object-fit: cover;
    background: var(--vn-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vn-avatar    { width: 80px;  height: 80px;  font-size: 1.8rem; }
.vn-avatar-lg { width: 120px; height: 120px; font-size: 2.5rem; }
.vn-avatar-sm { width: 50px;  height: 50px;  font-size: 1.1rem; }

/* Tabs */
.vn-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--vn-border); }
.vn-tab {
    padding: 9px 18px;
    margin: 0;
    border: 0 none;
    outline: 0 none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: var(--vn-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.vn-tab.active, .vn-tab:hover { color: var(--vn-primary); border-bottom-color: var(--vn-primary); }
.vn-tab-content { display: none; }
.vn-tab-content.active { display: block; }
.vn-tab-badge { position: relative; }

/* ── Event Grid ───────────────────────────────────────────────────────────── */
.vn-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.vn-event-card {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.vn-event-card:hover { transform: translateY(-3px); box-shadow: var(--vn-shadow); }
.vn-event-card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.vn-event-card-body { padding: 14px 16px; }
.vn-event-date   { font-size: 0.78rem; color: var(--vn-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vn-event-title  { margin: 6px 0; font-size: 1rem; color: var(--vn-heading); }
.vn-event-title a { color: var(--vn-heading); text-decoration: none; }
.vn-event-title a:hover { color: var(--vn-primary); }
.vn-event-city   { font-size: 0.82rem; color: var(--vn-text-muted); margin-bottom: 8px; }
.vn-event-desc   { font-size: 0.83rem; color: var(--vn-text-muted); margin-bottom: 10px; }
.vn-event-card-sm { background: var(--vn-surface); border: 1px solid var(--vn-border); padding: 10px 12px; font-size: 0.85rem; }
.vn-event-card-sm strong { display: block; color: var(--vn-heading); margin-bottom: 2px; }
.vn-event-card-sm span   { color: var(--vn-text-muted); font-size: 0.78rem; }

/* ── Profile ──────────────────────────────────────────────────────────────── */
.vn-profile { max-width: 800px; }
.vn-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.vn-profile-info { flex: 1; }
.vn-profile-name { margin: 0 0 4px; font-size: 1.6rem; color: var(--vn-heading); }
.vn-profile-city, .vn-profile-contacts { font-size: 0.88rem; color: var(--vn-text-muted); margin: 2px 0; }
.vn-profile-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.vn-profile-bio     { background: var(--vn-surface); border: 1px solid var(--vn-border); border-left: 3px solid var(--vn-primary); padding: 16px; margin-bottom: 24px; line-height: 1.6; }
.vn-profile-events h2 { color: var(--vn-heading); font-size: 1rem; margin-bottom: 12px; }
.vn-profile-tagged-events, .vn-profile-tagged-images { margin-top: 24px; }
.vn-profile-tagged-events h2, .vn-profile-tagged-images h2 { color: var(--vn-heading); font-size: 1rem; margin-bottom: 12px; }
.vn-tagged-image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.vn-tagged-image-card { background: var(--vn-surface); border: 1px solid var(--vn-border); overflow: hidden; }
.vn-tagged-image-thumb { display: block; background: rgba(0,0,0,.08); aspect-ratio: 4 / 3; }
.vn-tagged-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vn-tagged-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--vn-text-muted); font-size: .85rem; }
.vn-tagged-image-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.vn-tagged-image-meta a, .vn-tagged-image-meta strong { color: var(--vn-heading); text-decoration: none; }
.vn-tagged-image-meta a:hover { color: var(--vn-primary); }
.vn-tagged-image-meta span { color: var(--vn-text-muted); font-size: .78rem; }

/* ── Member Grid ──────────────────────────────────────────────────────────── */
.vn-member-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.vn-member-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--vn-surface);
    border: 1px solid var(--vn-border);
    padding: 8px 14px;
    font-size: 0.9rem;
}
.vn-member-card a { color: var(--vn-heading); text-decoration: none; }
.vn-member-card a:hover { color: var(--vn-primary); }

/* ── Contact Requests ─────────────────────────────────────────────────────── */
.vn-contact-request {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--vn-border);
}
.vn-no-results { color: var(--vn-text-muted); font-style: italic; }

/* ── Avatar Upload ────────────────────────────────────────────────────────── */
.vn-avatar-upload-trigger {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 50%;
}
.vn-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}
.vn-avatar-upload-trigger:hover .vn-avatar-overlay,
.vn-avatar-upload-trigger.vn-avatar-uploading .vn-avatar-overlay {
    opacity: 1;
}
.vn-avatar-camera-icon { font-size: 1.4rem; line-height: 1; }
.vn-avatar-uploading .vn-avatar-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--vn-primary);
    border-top-color: transparent;
    animation: vn-spin .7s linear infinite;
}
@keyframes vn-spin { to { transform: rotate(360deg); } }

.vn-avatar-msg {
    font-size: 0.78rem;
    margin-top: 5px;
    text-align: center;
    max-width: 100px;
}
.vn-avatar-msg-success { color: #4caf50; }
.vn-avatar-msg-error   { color: #f44336; }

.vn-avatar-pending-badge {
    display: inline-block;
    font-size: 0.72rem;
    background: #e65100;
    color: #fff;
    border-radius: 0;
    padding: 2px 7px;
    margin-top: 4px;
    text-align: center;
}

/* ── Crop Modal ───────────────────────────────────────────────────────────── */
.vn-crop-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 9998;
}
.vn-crop-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: var(--vn-card-bg);
    border-radius: 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    width: min(92vw, 560px);
    max-height: 90vh;
    overflow-y: auto;
}
.vn-crop-modal-inner { padding: 24px; }
.vn-crop-title {
    margin: 0 0 16px;
    color: var(--vn-heading);
    font-size: 1.1rem;
}
.vn-crop-container {
    width: 100%;
    max-height: 380px;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 12px;
}
.vn-crop-container img { display: block; max-width: 100%; }
.vn-crop-hint {
    font-size: 0.82rem;
    color: var(--vn-text-muted);
    margin: 0 0 16px;
    text-align: center;
}
.vn-crop-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.vn-crop-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--vn-text-muted);
    border-top-color: var(--vn-primary);
    border-radius: 50%;
    animation: vn-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */

/* Bilder im Content: Zoom-Cursor als visueller Hinweis */
.elementor-widget-image img,
.elementor-image-gallery img,
.wp-block-image img,
.entry-content img {
    cursor: zoom-in !important;
}

/* Backdrop */
.vn-lb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10000;
    cursor: pointer;
}

/* Lightbox Container */
.vn-lb {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    max-width: min(95vw, 1100px);
    max-height: 95vh;
    width: auto;
    background: #0a0a18;
    border-radius: 0;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Schließen-Button */
.vn-lb-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    line-height: 1;
}
.vn-lb-close:hover { background: rgba(255, 255, 255, 0.25); }

/* Bild-Bereich */
.vn-lb-img-wrap {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    background: #000;
}
#vn-lb-img {
    max-width: 100%;
    max-height: calc(95vh - 60px);
    object-fit: contain;
    display: block;
    user-select: none;
    transition: opacity .2s;
}
#vn-lb-img.vn-lb-loading { opacity: 0.4; }

/* Tag-Pin-Overlay (liegt über dem Bild, gleiche Größe) */
.vn-lb-pins {
    position: absolute;
    pointer-events: none; /* Klicks gehen durch außer bei Pins selbst */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Einzelner Tag-Pin */
.vn-lb-pin {
    position: absolute;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    cursor: pointer;
}
.vn-lb-pin-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--vn-primary);
    border: 2.5px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform .15s;
    display: block;
}
.vn-lb-pin:hover .vn-lb-pin-dot { transform: scale(1.25); }
.vn-lb-pin.vn-pin-own .vn-lb-pin-dot {
    background: #fff;
    border-color: var(--vn-primary);
}
/* Tooltip mit Nickname */
.vn-lb-pin-label {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vn-lb-pin:hover .vn-lb-pin-label { opacity: 1; }

/* Crosshair-Cursor: wenn eingeloggt und noch kein eigener Tag */
.vn-lb-can-tag #vn-lb-img { cursor: crosshair; }

/* Fußzeile */
.vn-lb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
    min-height: 48px;
    flex-shrink: 0;
    gap: 10px;
    flex-wrap: wrap;
}
.vn-lb-tag-count {
    font-size: 0.82rem;
    color: var(--vn-text-muted);
}
.vn-lb-tag-hint {
    font-size: 0.82rem;
    color: var(--vn-primary);
    animation: vn-pulse 1.4s ease-in-out infinite;
}
@keyframes vn-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* Entfernen-Button auf eigenem Pin */
.vn-lb-pin-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: #f44336;
    color: #fff;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.vn-lb-pin:hover .vn-lb-pin-remove { display: flex; }
.vn-lb-pin-remove:hover { background: #d32f2f; transform: scale(1.15); }

/* Neuer Tag erscheint mit Pop-Animation */
@keyframes vn-pin-pop {
    0%   { transform: translate(-50%, -50%) scale(0); }
    70%  { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.vn-lb-pin.vn-pin-new { animation: vn-pin-pop .3s ease-out forwards; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .vn-box { padding: 20px 16px; }
    .vn-profile-header { flex-direction: column; }
    .vn-profile-actions { align-items: flex-start; }
    .vn-event-grid { grid-template-columns: 1fr; }
    .vn-tagged-image-grid { grid-template-columns: 1fr; }
}


/* ── Elementor-Lightbox Tagging ─────────────────────────────────────────── */
#vn-lb,
#vn-lb-backdrop {
    display: none !important;
}

.dialog-lightbox-widget.vn-el-tag-mode .swiper-slide-active img,
.elementor-lightbox.vn-el-tag-mode .swiper-slide-active img {
    cursor: crosshair;
}

/* ── Header Pin Toggle ──────────────────────────────────────────────────── */
.elementor-lightbox .elementor-slideshow__header .vn-el-tag-toggle {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    color: #C4D22E !important;
    padding: 0 !important;
    margin: 0 10px 0 0 !important;

    width: 20px !important;
    height: 20px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

.elementor-lightbox .elementor-slideshow__header .vn-el-tag-toggle:hover {
    color: #d6df5a !important;
}

/* Pin-Icon sichtbar machen */
.elementor-lightbox .elementor-slideshow__header .vn-el-tag-toggle svg,
.elementor-lightbox .elementor-slideshow__header .vn-el-tag-toggle .vn-el-tag-toggle__icon,
.elementor-lightbox .elementor-slideshow__header .vn-el-tag-toggle .vn-el-tag-toggle__icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    color: inherit !important;
}

/* Text "Pin aktivieren" kleiner machen */
.elementor-lightbox .elementor-slideshow__header .vn-el-tag-info {
    display: inline-flex;
    align-items: center;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: rgba(255,255,255,0.85) !important;
    margin-right: 12px;
    white-space: nowrap;
}

/* ── Pins Layer ─────────────────────────────────────────────────────────── */
.vn-el-lb-pins {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.vn-el-lb-pin {
    position: absolute;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: stretch;
}

/* ── Label ──────────────────────────────────────────────────────────────── */
.vn-el-lb-pin-label {
    display: inline-flex;
    align-items: center;

    height: 25px;
    padding: 0 9px;

    background: rgba(0,0,0,.58);
    border-radius: 0;

    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 25px;

    white-space: nowrap;
    text-decoration: none;

    transition: color .15s ease;
}

/* 🔥 HOVER FIX (greift garantiert, auch bei <a> + inneren spans) */
.elementor-lightbox .vn-el-lb-pin-label:hover,
.elementor-lightbox .vn-el-lb-pin-label:focus,
.elementor-lightbox .vn-el-lb-pin-label:hover *,
.elementor-lightbox .vn-el-lb-pin-label:focus * {
    color: rgba(255,255,255,0.85) !important;
}

/* Eigenes Label */
.vn-el-lb-pin.vn-pin-own .vn-el-lb-pin-label {
    background: rgba(0,0,0,.68);
    color: rgba(255,255,255,0.2);
}

/* ── Remove Button ──────────────────────────────────────────────────────── */
.elementor-lightbox .vn-el-lb-pin-remove {
    -webkit-appearance: none;
    appearance: none;

    display: none;
    align-items: center;
    justify-content: center;

    height: 25px;
    padding: 0 8px;

    background: rgba(0,0,0,.68) !important;
    color: rgba(255,255,255,0.2) !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    font-size: 12px;
    font-weight: 700;
    line-height: 25px;
    cursor: pointer;
}

/* Nur bei eigenem Pin sichtbar */
.vn-el-lb-pin.vn-pin-own:hover .vn-el-lb-pin-remove,
.vn-el-lb-pin.vn-pin-own:focus-within .vn-el-lb-pin-remove {
    display: inline-flex;
}

/* Hover für X */
.elementor-lightbox .vn-el-lb-pin-remove:hover,
.elementor-lightbox .vn-el-lb-pin-remove:focus,
.elementor-lightbox .vn-el-lb-pin-remove:active {
    color: rgba(255,255,255,0.85) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD – Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.vn-dash-hero {
    background: linear-gradient(135deg, var(--vn-card-bg) 0%, var(--vn-surface) 100%);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    box-shadow: var(--vn-shadow);
}
.vn-dash-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.vn-dash-hero-info { flex: 1; min-width: 160px; }
.vn-dash-greeting  { margin: 0 0 4px; font-size: 1.4rem; color: var(--vn-heading); }
.vn-dash-greeting span { color: var(--vn-primary); }
.vn-dash-city      { margin: 0 0 8px; color: var(--vn-text-muted); font-size: 0.88rem; }
.vn-dash-meta      { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vn-dash-stat      { font-size: 0.85rem; color: var(--vn-text-muted); }
.vn-dash-stat strong { color: var(--vn-heading); }
.vn-dash-sep       { color: var(--vn-border); }
.vn-dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; }
.vn-logout-btn:hover  { color: #f44336 !important; border-color: #f44336 !important; }

/* ── Tabs (override) ──────────────────────────────────────────────────────── */
.vn-tab-icon  { font-size: 0.85em; }
.vn-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vn-surface);
    color: var(--vn-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    vertical-align: middle;
}
.vn-tab.active .vn-tab-count { background: var(--vn-primary); color: #fff; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.vn-dash-card {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    padding: 22px 24px;
}
.vn-dash-card-title {
    margin: 0 0 18px;
    font-size: 1rem;
    color: var(--vn-heading);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vn-border);
}
.vn-btn-inline { width: auto; }

/* ── Empty State ──────────────────────────────────────────────────────────── */
.vn-empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--vn-text-muted);
}
.vn-empty-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.vn-empty-state p { margin: 0; }

/* ── Universal Grid ───────────────────────────────────────────────────────── */
.vn-grid {
    display: grid;
    gap: 16px;
}

/* Events im Dashboard: 2–3 Spalten */
.vn-grid-events {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* Foto-Grid: max. 3 Spalten, nie volle Breite bei Einzelbild */
.vn-grid-photos {
    grid-template-columns: repeat(3, 1fr);
}
.vn-grid-photos.vn-grid-single {
    grid-template-columns: minmax(180px, 280px);   /* einzelnes Bild: begrenzte Breite */
    justify-content: start;
}

/* Events-SM (Profil) */
.vn-grid-events-sm {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ── Event-Card (Dashboard) ───────────────────────────────────────────────── */
.vn-event-dash-card {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .2s, box-shadow .2s;
}
.vn-event-dash-card:hover { border-color: var(--vn-primary); box-shadow: 0 0 0 1px var(--vn-primary); }
.vn-event-dash-date { font-size: 0.75rem; color: var(--vn-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vn-event-dash-title { font-size: 0.92rem; font-weight: 600; color: var(--vn-heading); line-height: 1.35; }
.vn-event-dash-title a { color: inherit; text-decoration: none; }
.vn-event-dash-title a:hover { color: var(--vn-primary); }
.vn-event-dash-city { font-size: 0.78rem; color: var(--vn-text-muted); }
.vn-btn-danger {
    background: transparent;
    color: #ef5350;
    border: 1px solid #ef5350;
    margin-top: auto;
    align-self: flex-start;
}
.vn-btn-danger:hover { background: #ef5350; color: #fff; }

/* ── Photo-Card ───────────────────────────────────────────────────────────── */
.vn-photo-dash-card {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.vn-photo-dash-card:hover { transform: translateY(-3px); box-shadow: var(--vn-shadow); }
.vn-photo-thumb {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--vn-surface);
    text-decoration: none;
}
.vn-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vn-photo-dash-card:hover .vn-photo-thumb img { transform: scale(1.04); }
.vn-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: var(--vn-text-muted);
}
.vn-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}
.vn-photo-dash-card:hover .vn-photo-overlay { opacity: 1; }
.vn-photo-overlay-icon { font-size: 1.6rem; }
.vn-photo-meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.vn-photo-event { font-size: 0.82rem; font-weight: 600; color: var(--vn-heading); line-height: 1.3; }
.vn-photo-event a { color: inherit; text-decoration: none; }
.vn-photo-event a:hover { color: var(--vn-primary); }
.vn-photo-date { font-size: 0.75rem; color: var(--vn-text-muted); }

/* ── Contacts Grid ────────────────────────────────────────────────────────── */
.vn-contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vn-contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    padding: 6px 14px 6px 6px;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}
.vn-contact-card:hover { border-color: var(--vn-primary); background: var(--vn-surface); }
.vn-contact-name { font-size: 0.9rem; color: var(--vn-heading); }

/* ── Request Cards ────────────────────────────────────────────────────────── */
.vn-requests-list { display: flex; flex-direction: column; gap: 12px; }
.vn-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    padding: 12px 16px;
    flex-wrap: wrap;
}
.vn-request-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 160px; font-size: 0.9rem; color: var(--vn-text); }
.vn-request-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Avatar rejected */
.vn-avatar-rejected-badge { background: #b71c1c !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   PROFIL – Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

.vn-profile-hero {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    background: linear-gradient(135deg, var(--vn-card-bg) 0%, var(--vn-surface) 100%);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--vn-shadow);
    flex-wrap: wrap;
}
.vn-profile-avatar-wrap { flex-shrink: 0; }
.vn-profile-hero-info   { flex: 1; min-width: 200px; }
.vn-profile-name        { margin: 0 0 8px; font-size: 1.6rem; color: var(--vn-heading); }
.vn-profile-meta        { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vn-profile-meta span   { font-size: 0.85rem; color: var(--vn-text-muted); }
.vn-profile-actions     { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Bio */
.vn-profile-bio {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-left: 3px solid var(--vn-primary);
    border-radius: 0;
    padding: 16px 18px;
    margin-bottom: 24px;
    line-height: 1.65;
    color: var(--vn-text);
}

/* Section */
.vn-profile-section { margin-bottom: 32px; }
.vn-section-title   { font-size: 1rem; color: var(--vn-heading); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--vn-border); }

/* Event-SM-Card (Profil) */
.vn-event-sm-card {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border);
    border-radius: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color .2s;
}
.vn-event-sm-card:hover { border-color: var(--vn-primary); }
.vn-event-sm-date  { font-size: 0.73rem; color: var(--vn-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vn-event-sm-title { font-size: 0.88rem; font-weight: 600; color: var(--vn-heading); line-height: 1.3; }
.vn-event-sm-title a { color: inherit; text-decoration: none; }
.vn-event-sm-title a:hover { color: var(--vn-primary); }
.vn-event-sm-city, .vn-event-sm-tag-count { font-size: 0.75rem; color: var(--vn-text-muted); }


/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .vn-grid-photos         { grid-template-columns: repeat(2, 1fr); }
    .vn-grid-photos.vn-grid-single { grid-template-columns: minmax(140px, 240px); }
    .vn-dash-hero-inner     { flex-direction: column; align-items: flex-start; }
    .vn-dash-hero-actions   { width: 100%; }
    .vn-profile-hero        { flex-direction: column; }
}
@media (max-width: 480px) {
    .vn-grid-photos         { grid-template-columns: 1fr 1fr; }
    .vn-grid-events         { grid-template-columns: 1fr; }
    .vn-grid-events-sm      { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD + PROFILE – Modern Minimal Refresh v2
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --vn-primary: #c4d22e;
    --vn-primary-d: #b1bf22;
    --vn-primary-soft: rgba(196,210,46,0.14);
    --vn-bg: #0f1218;
    --vn-card-bg: #151a22;
    --vn-surface: #1b2230;
    --vn-surface-soft: rgba(255,255,255,0.03);
    --vn-text: #edf2f7;
    --vn-text-muted: #9aa4b2;
    --vn-heading: #ffffff;
    --vn-input-text: #edf2f7;
    --vn-btn-primary-text: #0f1218;
    --vn-border: rgba(255,255,255,0.08);
    --vn-border-strong: rgba(255,255,255,0.12);
    --vn-danger: #ff7b72;
    --vn-danger-soft: rgba(255,123,114,0.12);
    --vn-radius: 16px;
    --vn-radius-sm: 12px;
    --vn-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.vn-dashboard,
.vn-profile {
    max-width: 980px;
}

.vn-dash-hero,
.vn-profile-hero,
.vn-dash-card,
.vn-event-dash-card,
.vn-photo-dash-card,
.vn-contact-card,
.vn-request-card,
.vn-profile-bio,
.vn-profile-section,
.vn-event-sm-card {
    border-radius: var(--vn-radius) !important;
}

.vn-dash-hero,
.vn-profile-hero {
    background: var(--vn-card-bg);
    border: 1px solid var(--vn-border-strong);
    box-shadow: var(--vn-shadow);
}

.vn-dash-hero::before,
.vn-profile-hero::before {
    content: none;
}

.vn-dash-hero {
    padding: 24px;
}

.vn-profile-hero {
    padding: 24px;
}

.vn-dash-hero-inner,
.vn-profile-hero {
    position: relative;
    z-index: 1;
}

.vn-avatar,
.vn-avatar-lg,
.vn-avatar-sm {
    background: linear-gradient(180deg, #232b39, #1a202c);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

.vn-avatar-upload-trigger {
    box-shadow: none;
}

.vn-dash-greeting,
.vn-profile-name {
    letter-spacing: -0.02em;
}

.vn-dash-greeting {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    margin-bottom: 8px;
}

.vn-profile-name {
    font-size: clamp(1.65rem, 2.7vw, 2.15rem);
    margin-bottom: 10px;
}

.vn-dash-greeting span {
    color: var(--vn-heading);
}

.vn-dash-city,
.vn-profile-meta span,
.vn-dash-stat,
.vn-photo-date,
.vn-event-dash-city,
.vn-event-sm-city,
.vn-event-sm-tag-count,
.vn-contact-name {
    color: var(--vn-text-muted);
}

.vn-dash-meta,
.vn-profile-meta {
    gap: 10px;
}

.vn-dash-stat,
.vn-profile-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: none;
}

.vn-dash-stat strong {
    margin-right: 6px;
    color: var(--vn-heading);
}

.vn-dash-sep {
    display: none;
}

.vn-dash-hero-actions,
.vn-profile-actions {
    gap: 10px;
}

.vn-btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: none;
}

.vn-btn-primary {
    background: var(--vn-primary);
    color: var(--vn-btn-primary-text);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: none;
}

.vn-btn-primary:hover {
    background: var(--vn-primary-d);
    transform: none;
    filter: none;
}

.vn-btn-ghost {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--vn-text);
}

.vn-btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.14);
    color: var(--vn-heading);
}

.vn-tabs {
    gap: 8px;
    padding: 0;
    margin-bottom: 22px;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.vn-tabs::-webkit-scrollbar { display: none; }

.vn-tab {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08) !important;
    padding: 10px 15px;
    white-space: nowrap;
    font-weight: 600;
    color: var(--vn-text-muted);
    background: rgba(255,255,255,0.025);
}

.vn-tab:hover {
    color: var(--vn-heading);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.14) !important;
}

.vn-tab.active {
    color: #0f1218;
    background: var(--vn-primary);
    border-color: rgba(0,0,0,0.04) !important;
}

.vn-tab-count,
.vn-badge,
.vn-avatar-pending-badge {
    border-radius: 999px;
}

.vn-tab-count {
    background: rgba(255,255,255,0.08);
    color: inherit;
}

.vn-tab.active .vn-tab-count {
    background: rgba(15,18,24,0.14);
    color: #0f1218;
}

.vn-badge {
    background: var(--vn-primary-soft);
    color: var(--vn-primary);
}

.vn-dash-card,
.vn-profile-bio,
.vn-profile-section {
    background: var(--vn-card-bg);
}

.vn-dash-card,
.vn-profile-bio,
.vn-profile-section {
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--vn-shadow);
}

.vn-dash-card-title,
.vn-section-title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-bottom-color: rgba(255,255,255,0.08);
}

.vn-field label {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.vn-field input,
.vn-field textarea,
.vn-field select {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 13px 15px;
}

.vn-field input:hover,
.vn-field textarea:hover,
.vn-field select:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}

.vn-field input:focus,
.vn-field textarea:focus,
.vn-field select:focus {
    border-color: rgba(196,210,46,0.55);
    box-shadow: 0 0 0 3px rgba(196,210,46,0.12);
    background: rgba(255,255,255,0.04);
}

.vn-field select,
.vn-field select option {
    background-color: #171d27;
    color: var(--vn-input-text);
}

.vn-grid {
    gap: 18px;
}

.vn-event-dash-card,
.vn-event-sm-card,
.vn-contact-card,
.vn-request-card,
.vn-photo-dash-card {
    background: #171d27;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: none;
}

.vn-event-dash-card:hover,
.vn-event-sm-card:hover,
.vn-contact-card:hover,
.vn-photo-dash-card:hover {
    transform: none;
    border-color: rgba(196,210,46,0.32);
    box-shadow: 0 0 0 1px rgba(196,210,46,0.12);
}

.vn-event-dash-date,
.vn-event-sm-date,
.vn-photo-event a:hover,
.vn-event-dash-title a:hover,
.vn-event-sm-title a:hover,
.vn-contact-card:hover .vn-contact-name {
    color: var(--vn-primary);
}

.vn-event-dash-title,
.vn-event-sm-title,
.vn-photo-event,
.vn-request-info strong {
    color: #fff;
}

.vn-btn-danger {
    border-radius: 999px;
    background: transparent;
    border-color: rgba(255,123,114,0.4);
    color: var(--vn-danger);
}

.vn-btn-danger:hover {
    background: var(--vn-danger-soft);
    color: #fff;
    border-color: rgba(255,123,114,0.55);
}

.vn-photo-thumb {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.vn-photo-overlay {
    background: rgba(15,18,24,0.42);
}

.vn-profile-bio {
    border-left: 0;
}

.vn-empty-state {
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: var(--vn-radius);
    background: rgba(255,255,255,0.02);
}

.vn-avatar-pending-badge {
    background: rgba(196,210,46,0.14);
    color: var(--vn-primary);
    border: 1px solid rgba(196,210,46,0.18);
}

.vn-avatar-rejected-badge {
    background: rgba(255,123,114,0.14) !important;
    color: var(--vn-danger) !important;
    border: 1px solid rgba(255,123,114,0.18);
}

.vn-avatar-msg-success { color: var(--vn-primary); }
.vn-avatar-msg-error   { color: var(--vn-danger); }
.vn-logout-btn:hover   { color: var(--vn-danger) !important; border-color: rgba(255,123,114,0.45) !important; }

@media (max-width: 720px) {
    .vn-dash-hero,
    .vn-profile-hero,
    .vn-dash-card,
    .vn-profile-section,
    .vn-profile-bio {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* ── Elementor / Design-System Overrides ────────────────────────────────── */
.vn-dashboard-block,
.vn-profile-block,
.vn-box,
.vn-event-card,
.vn-event-sm-card,
.vn-contact-card,
.vn-request-card,
.vn-photo-dash-card,
.vn-tagged-image-card,
.vn-member-card,
.vn-profile-bio,
.vn-dash-hero,
.vn-profile-header-card {
    background: var(--vn-card-bg);
    border-color: var(--vn-border);
    color: var(--vn-text);
    box-shadow: var(--vn-shadow);
}

.vn-profile-bio,
.vn-event-card-sm,
.vn-tagged-image-card,
.vn-member-card,
.vn-contact-card:hover,
.vn-request-card:hover,
.vn-photo-dash-card:hover,
.vn-event-sm-card:hover {
    background: var(--vn-surface);
}

.vn-section-title,
.vn-profile-name,
.vn-event-title,
.vn-event-sm-title,
.vn-photo-event,
.vn-contact-name,
.vn-dash-greeting,
.vn-form-title {
    color: var(--vn-heading);
}

.vn-field input,
.vn-field textarea,
.vn-field select,
.vn-dashboard-block .vn-field input,
.vn-dashboard-block .vn-field textarea,
.vn-dashboard-block .vn-field select {
    color: var(--vn-input-text);
    background: color-mix(in srgb, var(--vn-card-bg) 82%, white 3%);
    border-color: color-mix(in srgb, var(--vn-border) 88%, white 8%);
}

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

.vn-btn-primary:hover,
.vn-btn-primary:focus {
    background: var(--vn-primary-d);
}

.vn-btn-ghost,
.vn-tab,
.vn-tab-count {
    border-color: var(--vn-border);
    color: var(--vn-text-muted);
}

.vn-tab.active,
.vn-tab:hover,
.vn-btn-ghost:hover,
.vn-btn-ghost:focus,
.vn-event-date,
.vn-event-title a:hover,
.vn-tagged-image-meta a:hover,
.vn-form-alt a {
    color: var(--vn-primary);
}

.vn-tab.active,
.vn-tab:hover {
    border-color: var(--vn-primary);
}

.vn-tab.active .vn-tab-count {
    background: var(--vn-primary);
    color: var(--vn-btn-primary-text);
}

/* Optional: Variablen direkt auf Elementor-Container setzen */
[class*="elementor"] .vn-dashboard-block,
[class*="elementor"] .vn-profile-block,
[class*="elementor"] .vn-box {
    border-radius: var(--vn-radius, 0px);
}


/* ── Cleanup: einheitliche Profilbilder + keine Rahmen an Boxen ─────────── */
.vn-profile-tagged-images-block .vn-grid-photos {
    align-items: stretch;
}

.vn-profile-tagged-images-block .vn-photo-dash-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vn-profile-tagged-images-block .vn-photo-thumb {
    aspect-ratio: 3 / 2;
    min-height: 0;
}

.vn-profile-tagged-images-block .vn-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.vn-profile-tagged-images-block .vn-photo-event {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vn-dashboard-block,
.vn-profile-block,
.vn-box,
.vn-dash-card,
.vn-event-card,
.vn-event-card-sm,
.vn-event-dash-card,
.vn-event-sm-card,
.vn-contact-card,
.vn-request-card,
.vn-photo-dash-card,
.vn-tagged-image-card,
.vn-member-card,
.vn-profile-bio,
.vn-profile-section,
.vn-dash-hero,
.vn-profile-header-card,
.vn-empty-state {
    border: 0 !important;
    box-shadow: none !important;
}

.vn-event-dash-card:hover,
.vn-event-sm-card:hover,
.vn-contact-card:hover,
.vn-request-card:hover,
.vn-photo-dash-card:hover,
.vn-tagged-image-card:hover,
.vn-member-card:hover,
.vn-profile-bio:hover,
.vn-profile-section:hover,
.vn-empty-state:hover {
    border: 0 !important;
    box-shadow: none !important;
}

.vn-profile-bio {
    border-left: 0 !important;
}

/* Formulare behalten ihren Rahmen */
.vn-field input,
.vn-field textarea,
.vn-field select,
.vn-dashboard-block .vn-field input,
.vn-dashboard-block .vn-field textarea,
.vn-dashboard-block .vn-field select {
    border-style: solid;
}

/* ── Final cleanup: markierte Bilder immer gleich groß + keine Abrundungen ── */
.vn-dashboard-photos-block .vn-grid-photos,
.vn-profile-tagged-images-block .vn-grid-photos,
.vn-profile-block .vn-grid-photos {
    align-items: start;
}

.vn-dashboard-photos-block .vn-grid-photos > *,
.vn-profile-tagged-images-block .vn-grid-photos > *,
.vn-profile-block .vn-grid-photos > * {
    min-width: 0;
}

.vn-dashboard-photos-block .vn-photo-dash-card,
.vn-profile-tagged-images-block .vn-photo-dash-card,
.vn-profile-block .vn-photo-dash-card,
.vn-dashboard-photos-block .vn-tagged-image-card,
.vn-profile-tagged-images-block .vn-tagged-image-card,
.vn-profile-block .vn-tagged-image-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0 !important;
    overflow: hidden;
}

.vn-dashboard-photos-block .vn-photo-thumb,
.vn-profile-tagged-images-block .vn-photo-thumb,
.vn-profile-block .vn-photo-thumb {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 0 !important;
    overflow: hidden;
    border-bottom: 0 !important;
}

.vn-dashboard-photos-block .vn-photo-thumb img,
.vn-profile-tagged-images-block .vn-photo-thumb img,
.vn-profile-block .vn-photo-thumb img {
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 0 !important;
}

.vn-dashboard-photos-block .vn-photo-overlay,
.vn-profile-tagged-images-block .vn-photo-overlay,
.vn-profile-block .vn-photo-overlay,
.vn-dashboard-photos-block .vn-photo-meta,
.vn-profile-tagged-images-block .vn-photo-meta,
.vn-profile-block .vn-photo-meta {
    border-radius: 0 !important;
}



/* ── Square photo grid + lokale, ruhige Darstellung ───────────────────── */
.vn-photo-dash-card,
.vn-tagged-image-card,
.vn-photo-thumb,
.vn-photo-thumb img,
.vn-photo-meta,
.vn-photo-overlay {
    border-radius: 0 !important;
}


/* ── Kontakte: minimal, Avatar/Foto only ───────────────────────────────── */
.vn-contacts-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.vn-contact-card-minimal {
    position: relative;
    display: block;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

.vn-contact-card-minimal::after {
    content: attr(data-name);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.78) 100%);
    color: #fff;
    font-size: 0.86rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.vn-contact-card-minimal:hover::after,
.vn-contact-card-minimal:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.vn-contact-card-minimal:hover,
.vn-contact-card-minimal:focus-visible {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none;
}

.vn-contact-card-minimal .vn-avatar-sm,
.vn-contact-card-minimal img.vn-avatar-sm {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: center top;
    border: 0 !important;
    box-shadow: none !important;
}

.vn-contact-card-minimal .vn-avatar-placeholder {
    background: color-mix(in srgb, var(--vn-surface) 86%, black 14%);
    color: var(--vn-heading);
    font-size: 2rem;
    font-weight: 700;
}

.vn-contact-card-minimal .vn-contact-name,
.vn-contact-card-minimal .vn-contact-city,
.vn-contact-card-minimal .vn-btn,
.vn-contact-card-minimal .vn-contact-main {
    display: none !important;
}

@media (hover: none) {
    .vn-contact-card-minimal::after {
        opacity: 1;
        transform: none;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}


/* === v1.0.7 fixes: dashboard avatar fallback + neutral event card bg === */
.vn-contact-card-minimal .vn-avatar-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 0 !important;
    line-height: 1;
    text-align: center;
}

.vn-contact-card-minimal .vn-avatar-sm,
.vn-contact-card-minimal img.vn-avatar-sm,
.vn-contact-card-minimal .vn-avatar-placeholder {
    border-radius: 0 !important;
}

.vn-event-dash-card,
.vn-event-sm-card,
.vn-contact-card,
.vn-request-card,
.vn-photo-dash-card {
    background: var(--vn-card-bg) !important;
}

.vn-event-dash-card:hover,
.vn-event-sm-card:hover,
.vn-contact-card:hover,
.vn-photo-dash-card:hover {
    background: var(--vn-card-bg) !important;
}

/* ── Dashboard Profil / Kontaktdaten ─────────────────────────────────────── */
.vn-dash-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.vn-profile-form-locked input[disabled],
.vn-profile-form-locked textarea[disabled] {
    opacity: 1;
    cursor: default;
    background: var(--vn-surface);
}
.vn-profile-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.vn-field-help,
.vn-muted {
    display: block;
    font-size: .82rem;
    color: var(--vn-text-muted);
    margin-top: 6px;
}
.vn-subsection-title {
    margin: 24px 0 10px;
    color: var(--vn-heading);
    font-size: 1rem;
}
.vn-phone-share-panel .vn-request-card,
.vn-dashboard-requests-block .vn-request-card {
    margin-bottom: 10px;
}
.vn-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}


/* ── Upload/Cropper immer ganz vorne ───────────────────────────────────── */
#vn-crop-backdrop,
.vn-crop-backdrop {
    z-index: 2147483000 !important;
}
#vn-crop-modal,
.vn-crop-modal {
    z-index: 2147483001 !important;
}
.vn-avatar-upload-trigger,
#vn-avatar-trigger {
    position: relative;
    z-index: 5;
}

/* ── Dashboard Foto-Aktionen ────────────────────────────────────────────── */
.vn-photo-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
}
.vn-delete-tagged-image {
    cursor: pointer;
}


/* v1.2.3 avatar uploader click fix */
.vn-avatar-wrap,
.vn-avatar-upload-trigger,
#vn-avatar-trigger,
#vn-avatar-display,
.vn-avatar-overlay {
  position: relative;
}
.vn-avatar-upload-trigger,
#vn-avatar-trigger,
.vn-avatar-overlay,
#vn-avatar-display {
  z-index: 10020;
}
.vn-avatar-upload-trigger {
  cursor: pointer;
}


/* === v1.2.3.2 Elementor-compatible layout cleanup === */
:root {
    --vn-card-bg: #ffffff;
    --vn-surface: #f6f7f8;
    --vn-text: inherit;
    --vn-heading: inherit;
    --vn-text-muted: #6b7280;
    --vn-border: rgba(17, 24, 39, 0.10);
    --vn-shadow: none;
}

.vn-dashboard,
.vn-profile,
.vn-event-list,
.vn-login-form,
.vn-register-form,
.vn-dashboard-shortcodes,
.vn-profile-shortcodes,
.vn-dashboard-block,
.vn-profile-block {
    max-width: none !important;
    width: 100%;
}

.vn-dashboard-shortcodes,
.vn-profile-shortcodes {
    display: grid;
    gap: 28px;
}

.vn-profile-block,
.vn-dashboard-block {
    margin: 0;
}

.vn-dash-hero,
.vn-dash-card,
.vn-event-sm-card,
.vn-event-dash-card,
.vn-request-card,
.vn-photo-dash-card {
    background: var(--vn-card-bg) !important;
    border: 1px solid var(--vn-border) !important;
    box-shadow: none !important;
}

.vn-section-title,
.vn-dash-card-title {
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.vn-profile-hero,
.vn-dash-hero-inner {
    display: grid !important;
    grid-template-columns: 110px minmax(0,1fr);
    gap: 24px;
    align-items: start;
}

.vn-profile-hero-info,
.vn-dash-hero-info {
    min-width: 0;
}

.vn-profile-name,
.vn-dash-greeting {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.vn-profile-meta,
.vn-dash-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 12px;
    color: var(--vn-text-muted);
    font-size: .98rem;
}

.vn-dash-sep {
    display: none;
}

.vn-profile-actions,
.vn-dash-hero-actions,
.vn-request-btns,
.vn-profile-form-actions,
.vn-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.vn-profile-actions .vn-btn,
.vn-dash-hero-actions .vn-btn,
.vn-request-btns .vn-btn,
.vn-profile-form-actions .vn-btn,
.vn-photo-actions .vn-btn,
.vn-event-dash-card .vn-btn,
.vn-event-sm-card .vn-btn {
    width: auto !important;
    min-width: 0;
    border-radius: 999px;
    padding: 12px 18px;
}

.vn-btn {
    border-radius: 999px;
}

.vn-btn-primary {
    width: auto;
}

.vn-btn-ghost {
    color: inherit;
}

.vn-profile-actions {
    margin-top: 20px;
}

.vn-grid-events,
.vn-grid-events-sm,
.vn-grid-photos,
.vn-contacts-grid {
    display: grid;
    gap: 20px;
}

.vn-grid-events,
.vn-grid-events-sm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vn-grid-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vn-contacts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vn-event-sm-card,
.vn-event-dash-card,
.vn-photo-dash-card,
.vn-request-card {
    padding: 20px;
    border-radius: 16px !important;
    transition: transform .18s ease, border-color .18s ease;
}

.vn-event-sm-card:hover,
.vn-event-dash-card:hover,
.vn-photo-dash-card:hover,
.vn-request-card:hover,
.vn-contact-card-minimal:hover {
    transform: translateY(-2px);
    border-color: rgba(17,24,39,.16) !important;
}

.vn-event-sm-title,
.vn-event-dash-title,
.vn-photo-event {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-top: 8px;
}

.vn-event-sm-title a,
.vn-event-dash-title a,
.vn-photo-event a {
    color: inherit;
    text-decoration: none;
}

.vn-event-sm-date,
.vn-event-dash-date,
.vn-photo-date {
    color: var(--vn-text-muted);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.vn-event-sm-city,
.vn-event-dash-city {
    margin-top: 6px;
    color: var(--vn-text-muted);
    font-size: .94rem;
}

.vn-event-sm-tag-count {
    margin-top: 12px;
    color: var(--vn-text-muted);
    font-size: .92rem;
}

.vn-dashboard-photos-block .vn-grid-photos,
.vn-profile-tagged-images-block .vn-grid-photos,
.vn-profile-block .vn-grid-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.vn-photo-dash-card,
.vn-profile-tagged-images-block .vn-photo-dash-card,
.vn-dashboard-photos-block .vn-photo-dash-card {
    padding: 0;
    overflow: hidden;
}

.vn-photo-thumb {
    display: block;
    aspect-ratio: 3 / 2;
    background: #eceef1;
}

.vn-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.vn-photo-meta {
    padding: 14px 16px 16px;
}

.vn-contact-card-minimal {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--vn-border) !important;
    border-radius: 16px !important;
    background: var(--vn-card-bg) !important;
    text-decoration: none;
}

.vn-contact-card-minimal::after {
    content: attr(data-name);
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(17,24,39,.72);
    color: #fff;
    font-size: .86rem;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.vn-contact-card-minimal:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.vn-empty-state {
    padding: 24px;
    border: 1px dashed var(--vn-border);
    border-radius: 16px;
    color: var(--vn-text-muted);
    background: rgba(0,0,0,.01);
}

.vn-empty-state p { margin: 8px 0 0; }

.vn-form-messages,
.vn-notice {
    border-radius: 12px;
}

.vn-field input,
.vn-field textarea,
.vn-field select {
    background: #fff;
    color: inherit;
    border-color: rgba(17,24,39,.16);
    border-radius: 12px;
}

.vn-profile-header-block .vn-avatar-lg,
.vn-dashboard-header-block .vn-avatar,
.vn-dashboard-header-block .vn-avatar-placeholder {
    border-radius: 24px !important;
}

@media (max-width: 1024px) {
    .vn-grid-events,
    .vn-grid-events-sm,
    .vn-grid-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vn-contacts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .vn-profile-hero,
    .vn-dash-hero-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .vn-grid-events,
    .vn-grid-events-sm,
    .vn-grid-photos,
    .vn-contacts-grid { grid-template-columns: 1fr; }

    .vn-profile-name,
    .vn-dash-greeting { font-size: 2.2rem; }
}


/* === v1.2.3.5 header/action alignment fixes === */
@media (min-width: 768px) {
  .vn-dash-hero-inner,
  .vn-profile-hero {
    display: grid !important;
    grid-template-columns: 110px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 24px !important;
  }

  .vn-avatar-wrap,
  .vn-profile-avatar-wrap {
    grid-column: 1;
    align-self: start;
  }

  .vn-dash-hero-info,
  .vn-profile-hero-info {
    grid-column: 2;
    align-self: center;
  }

  .vn-dash-hero-actions,
  .vn-profile-actions {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    width: auto;
    max-width: 100%;
  }

  .vn-profile-actions .vn-btn,
  .vn-dash-hero-actions .vn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .vn-dash-hero-actions,
  .vn-profile-actions {
    justify-content: flex-start;
  }
}


/* ── v1.2.3.6 buttons square + uploader z-index hardening ───────────────── */

/* Alle echten Buttons eckig */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.vn-btn,
.vn-btn-primary,
.vn-btn-secondary,
.vn-btn-danger,
.vn-btn-outline,
.vn-dashboard .button,
.vn-profile .button,
a.vn-btn,
a[class*="vn-btn"],
.elementor-widget-shortcode .vn-btn {
    border-radius: 0 !important;
}

/* Aktionsleisten im Profil/Dashboard sauber horizontal */
.vn-profile-actions,
.vn-dash-hero-actions,
.vn-dashboard-header-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.vn-profile-actions .vn-btn,
.vn-dash-hero-actions .vn-btn,
.vn-dashboard-header-actions .vn-btn {
    width: auto;
    min-width: 0;
}

/* Crop-/Upload-Modal vor Elementor/Theme-Containern */
#vn-crop-backdrop,
.vn-crop-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
}

#vn-crop-modal,
.vn-crop-modal {
    position: fixed !important;
    z-index: 2147483001 !important;
}

#vn-crop-modal .cropper-container,
#vn-crop-modal .cropper-wrap-box,
#vn-crop-modal .cropper-canvas,
#vn-crop-modal .cropper-drag-box,
.vn-crop-modal .cropper-container,
.vn-crop-modal .cropper-wrap-box,
.vn-crop-modal .cropper-canvas,
.vn-crop-modal .cropper-drag-box {
    z-index: 2147483002 !important;
}

body.vn-modal-open,
html.vn-modal-open {
    overflow: hidden !important;
}


/* ── v1.2.3.7 profile/dashboard action buttons same size ───────────────── */
.vn-profile-actions,
.vn-dash-hero-actions,
.vn-dashboard-header-actions {
    align-items: center;
}

.vn-profile-actions .vn-btn,
.vn-dash-hero-actions .vn-btn,
.vn-dashboard-header-actions .vn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    width: 120px;
    min-height: 44px;
    padding: 10px 16px;
    text-align: center;
    white-space: nowrap;
}

.vn-profile-actions .vn-btn-sm,
.vn-dash-hero-actions .vn-btn-sm,
.vn-dashboard-header-actions .vn-btn-sm {
    min-width: 120px;
    width: 120px;
    min-height: 44px;
    padding: 10px 16px;
    font-size: inherit;
}

@media (max-width: 767px) {
    .vn-profile-actions .vn-btn,
    .vn-dash-hero-actions .vn-btn,
    .vn-dashboard-header-actions .vn-btn,
    .vn-profile-actions .vn-btn-sm,
    .vn-dash-hero-actions .vn-btn-sm,
    .vn-dashboard-header-actions .vn-btn-sm {
        width: 100%;
        min-width: 0;
    }
}



/* ── v1.2.3.8 exact equal action buttons ───────────────── */
.vn-profile-actions,
.vn-dashboard-header-actions,
.vn-dash-hero-actions {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.vn-profile-actions > a,
.vn-profile-actions > button,
.vn-dashboard-header-actions > a,
.vn-dashboard-header-actions > button,
.vn-dash-hero-actions > a,
.vn-dash-hero-actions > button,
.vn-profile-actions .vn-btn,
.vn-profile-actions .vn-btn-sm,
.vn-dashboard-header-actions .vn-btn,
.vn-dashboard-header-actions .vn-btn-sm,
.vn-dash-hero-actions .vn-btn,
.vn-dash-hero-actions .vn-btn-sm {
    width: 126px !important;
    min-width: 126px !important;
    max-width: 126px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

@media (max-width: 767px) {
    .vn-profile-actions,
    .vn-dashboard-header-actions,
    .vn-dash-hero-actions {
        flex-wrap: wrap;
    }

    .vn-profile-actions > a,
    .vn-profile-actions > button,
    .vn-dashboard-header-actions > a,
    .vn-dashboard-header-actions > button,
    .vn-dash-hero-actions > a,
    .vn-dash-hero-actions > button,
    .vn-profile-actions .vn-btn,
    .vn-profile-actions .vn-btn-sm,
    .vn-dashboard-header-actions .vn-btn,
    .vn-dashboard-header-actions .vn-btn-sm,
    .vn-dash-hero-actions .vn-btn,
    .vn-dash-hero-actions .vn-btn-sm {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}



/* ── v1.2.3.9 unified image card borders + no hover movement ───────────────── */
.vn-card,
.vn-gallery-item,
.vn-profile-images .vn-item,
.vn-tagged-images .vn-item,
.vn-image-card,
.vn-photo-card,
.vn-marked-image-card,
.vn-grid-card {
    border: 1px solid var(--vn-border) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color .15s ease, background-color .15s ease, opacity .15s ease !important;
}

.vn-card:hover,
.vn-gallery-item:hover,
.vn-profile-images .vn-item:hover,
.vn-tagged-images .vn-item:hover,
.vn-image-card:hover,
.vn-photo-card:hover,
.vn-marked-image-card:hover,
.vn-grid-card:hover,
.vn-card:focus,
.vn-gallery-item:focus,
.vn-profile-images .vn-item:focus,
.vn-tagged-images .vn-item:focus,
.vn-image-card:focus,
.vn-photo-card:focus,
.vn-marked-image-card:focus,
.vn-grid-card:focus {
    border-color: var(--vn-border) !important;
    box-shadow: none !important;
    transform: none !important;
    translate: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* neutralize hover movement on linked cards and images */
.vn-card a:hover,
.vn-gallery-item a:hover,
.vn-profile-images .vn-item a:hover,
.vn-tagged-images .vn-item a:hover,
.vn-image-card a:hover,
.vn-photo-card a:hover,
.vn-marked-image-card a:hover,
.vn-grid-card a:hover,
.vn-card img:hover,
.vn-gallery-item img:hover,
.vn-profile-images .vn-item img:hover,
.vn-tagged-images .vn-item img:hover,
.vn-image-card img:hover,
.vn-photo-card img:hover,
.vn-marked-image-card img:hover,
.vn-grid-card img:hover {
    transform: none !important;
    translate: none !important;
    box-shadow: none !important;
}

/* common generic card classes in addon */
[class*="vn-"][class*="card"]:hover,
[class*="vn-"][class*="item"]:hover {
    transform: none !important;
    translate: none !important;
    box-shadow: none !important;
}



/* ── v1.2.4.0 hard border color fix for image/cards ───────────────── */
.vn-card,
.vn-gallery-item,
.vn-profile-images .vn-item,
.vn-tagged-images .vn-item,
.vn-image-card,
.vn-photo-card,
.vn-marked-image-card,
.vn-grid-card,
[class*="vn-"][class*="card"],
[class*="vn-"][class*="item"] {
    border: 1px solid var(--vn-border) !important;
    border-color: var(--vn-border) !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.vn-card:hover,
.vn-gallery-item:hover,
.vn-profile-images .vn-item:hover,
.vn-tagged-images .vn-item:hover,
.vn-image-card:hover,
.vn-photo-card:hover,
.vn-marked-image-card:hover,
.vn-grid-card:hover,
.vn-card:focus,
.vn-gallery-item:focus,
.vn-profile-images .vn-item:focus,
.vn-tagged-images .vn-item:focus,
.vn-image-card:focus,
.vn-photo-card:focus,
.vn-marked-image-card:focus,
.vn-grid-card:focus,
[class*="vn-"][class*="card"]:hover,
[class*="vn-"][class*="item"]:hover,
[class*="vn-"][class*="card"]:focus,
[class*="vn-"][class*="item"]:focus {
    border: 1px solid var(--vn-border) !important;
    border-color: var(--vn-border) !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    translate: none !important;
}

/* if the hover is actually on a link wrapping the card, keep the parent border too */
.vn-card:hover a,
.vn-gallery-item:hover a,
.vn-profile-images .vn-item:hover a,
.vn-tagged-images .vn-item:hover a,
.vn-image-card:hover a,
.vn-photo-card:hover a,
.vn-marked-image-card:hover a,
.vn-grid-card:hover a {
    border-color: inherit !important;
}

/* prevent pseudo-elements or overlays from masking the border on hover */
.vn-card::before,
.vn-card::after,
.vn-gallery-item::before,
.vn-gallery-item::after,
.vn-profile-images .vn-item::before,
.vn-profile-images .vn-item::after,
.vn-tagged-images .vn-item::before,
.vn-tagged-images .vn-item::after,
.vn-image-card::before,
.vn-image-card::after,
.vn-photo-card::before,
.vn-photo-card::after,
.vn-marked-image-card::before,
.vn-marked-image-card::after,
.vn-grid-card::before,
.vn-grid-card::after {
    border-color: transparent !important;
    box-shadow: none !important;
}



/* ── v1.2.4.1 use configured border color everywhere ───────────────────── */
.vn-card,
.vn-gallery-item,
.vn-profile-images .vn-item,
.vn-tagged-images .vn-item,
.vn-image-card,
.vn-photo-card,
.vn-marked-image-card,
.vn-grid-card,
[class*="vn-"][class*="card"],
[class*="vn-"][class*="item"],
.vn-card:hover,
.vn-gallery-item:hover,
.vn-profile-images .vn-item:hover,
.vn-tagged-images .vn-item:hover,
.vn-image-card:hover,
.vn-photo-card:hover,
.vn-marked-image-card:hover,
.vn-grid-card:hover,
[class*="vn-"][class*="card"]:hover,
[class*="vn-"][class*="item"]:hover,
.vn-card:focus,
.vn-gallery-item:focus,
.vn-profile-images .vn-item:focus,
.vn-tagged-images .vn-item:focus,
.vn-image-card:focus,
.vn-photo-card:focus,
.vn-marked-image-card:focus,
.vn-grid-card:focus,
[class*="vn-"][class*="card"]:focus,
[class*="vn-"][class*="item"]:focus {
    border-color: var(--vn-border) !important;
}



/* ── v1.2.4.2 square all boxes/cards ───────────────── */
.vn-card,
.vn-gallery-item,
.vn-profile-images .vn-item,
.vn-tagged-images .vn-item,
.vn-image-card,
.vn-photo-card,
.vn-marked-image-card,
.vn-grid-card,
.vn-event-card,
.vn-box,
[class*="vn-"][class*="card"],
[class*="vn-"][class*="item"],
[class*="vn-"][class*="box"] {
    border-radius: 0 !important;
}

/* ensure hover doesn't reintroduce rounding */
.vn-card:hover,
.vn-gallery-item:hover,
.vn-profile-images .vn-item:hover,
.vn-tagged-images .vn-item:hover,
.vn-image-card:hover,
.vn-photo-card:hover,
.vn-marked-image-card:hover,
.vn-grid-card:hover,
.vn-event-card:hover,
.vn-box:hover,
[class*="vn-"][class*="card"]:hover,
[class*="vn-"][class*="item"]:hover,
[class*="vn-"][class*="box"]:hover {
    border-radius: 0 !important;
}



/* ── v1.2.4.3 actual contact title + dashboard action button fix ────────── */

/* Kontakt section title must not have any decorative border or box */
.vn-dash-card-head,
.vn-dash-card-head .vn-dash-card-title,
.vn-dashboard-profile-form-block .vn-dash-card-title,
.vn-dashboard-profile-form-block h3.vn-dash-card-title {
    border: 0 !important;
    border-bottom: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* keep header layout clean */
.vn-dash-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
}

/* Dashboard header action buttons should be natural-width, same height, not cramped */
.vn-dash-hero-actions,
.vn-dashboard-header-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
}

.vn-dash-hero-actions .vn-btn,
.vn-dash-hero-actions a.vn-btn,
.vn-dashboard-header-actions .vn-btn,
.vn-dashboard-header-actions a.vn-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* remove old pill rounding from generic button block rules */
.vn-request-btns .vn-btn,
.vn-profile-form-actions .vn-btn,
.vn-photo-actions .vn-btn,
.vn-event-dash-card .vn-btn,
.vn-event-sm-card .vn-btn,
.vn-btn {
    border-radius: 0 !important;
}

/* only the public profile action buttons stay equal-sized; dashboard buttons should not */
.vn-dash-hero-actions > a,
.vn-dash-hero-actions > button,
.vn-dash-hero-actions .vn-btn,
.vn-dash-hero-actions .vn-btn-sm,
.vn-dashboard-header-actions > a,
.vn-dashboard-header-actions > button,
.vn-dashboard-header-actions .vn-btn,
.vn-dashboard-header-actions .vn-btn-sm {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* mobile */
@media (max-width: 767px) {
    .vn-dash-hero-actions .vn-btn,
    .vn-dash-hero-actions a.vn-btn,
    .vn-dashboard-header-actions .vn-btn,
    .vn-dashboard-header-actions a.vn-btn {
        width: 100% !important;
    }
}



/* ── v1.2.4.4 dashboard actions hover + invisible vn-dash-card-head border ── */

/* kill any visible border/line on the contact card head and its pseudo elements */
.vn-dash-card-head,
.vn-dash-card-head::before,
.vn-dash-card-head::after,
.vn-dash-card-head .vn-dash-card-title,
.vn-dashboard-profile-form-block .vn-dash-card-title,
.vn-dashboard-profile-form-block h3.vn-dash-card-title {
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* dashboard top action buttons should share the same hover effect */
.vn-dash-hero-actions .vn-btn,
.vn-dash-hero-actions a.vn-btn,
.vn-dashboard-header-actions .vn-btn,
.vn-dashboard-header-actions a.vn-btn {
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease !important;
}

.vn-dash-hero-actions .vn-btn:hover,
.vn-dash-hero-actions a.vn-btn:hover,
.vn-dashboard-header-actions .vn-btn:hover,
.vn-dashboard-header-actions a.vn-btn:hover,
.vn-dash-hero-actions .vn-btn:focus,
.vn-dash-hero-actions a.vn-btn:focus,
.vn-dashboard-header-actions .vn-btn:focus,
.vn-dashboard-header-actions a.vn-btn:focus {
    background: #f5f6f7 !important;
    border-color: var(--vn-border) !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}



/* ── v1.2.4.5 remove border from contact card container completely ── */

/* remove border from entire contact card block */
.vn-dashboard-profile-form-block,
.vn-dashboard-profile-form-block .vn-dash-card,
.vn-dashboard-profile-form-block .vn-dash-card-head,
.vn-dashboard-profile-form-block .vn-dash-card-body {
    border: none !important;
    box-shadow: none !important;
}

/* also remove generic border rule that might be applied */
.vn-dashboard-profile-form-block {
    border: 0 !important;
}



/* v1.2.4.6 remove hover border on contact block */
.vn-dashboard-profile-form-block:hover,
.vn-dashboard-profile-form-block .vn-dash-card:hover,
.vn-dashboard-profile-form-block .vn-dash-card-head:hover,
.vn-dashboard-profile-form-block .vn-dash-card-body:hover {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}


/* v1.2.4.7 restore outer contact card border, remove only header hover border */
.vn-dashboard-profile-form-block,
.vn-dashboard-profile-form-block .vn-dash-card,
.vn-dashboard-profile-form-block .vn-dash-card-body {
    border: 1px solid var(--vn-border) !important;
    box-shadow: none !important;
}

/* header itself must stay visually borderless */
.vn-dashboard-profile-form-block .vn-dash-card-head,
.vn-dashboard-profile-form-block .vn-dash-card-head:hover,
.vn-dashboard-profile-form-block .vn-dash-card-head:focus,
.vn-dashboard-profile-form-block .vn-dash-card-head::before,
.vn-dashboard-profile-form-block .vn-dash-card-head::after,
.vn-dashboard-profile-form-block .vn-dash-card-title,
.vn-dashboard-profile-form-block .vn-dash-card-title:hover,
.vn-dashboard-profile-form-block .vn-dash-card-title:focus {
    border: 0 !important;
    border-color: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    background: transparent !important;
}

/* if the border is applied on the card only during hover, keep the card border but never on the header row */
.vn-dashboard-profile-form-block:hover,
.vn-dashboard-profile-form-block .vn-dash-card:hover,
.vn-dashboard-profile-form-block .vn-dash-card-body:hover {
    border: 1px solid var(--vn-border) !important;
    box-shadow: none !important;
}

/* prevent hover border from appearing on links/buttons inside the header row */
.vn-dashboard-profile-form-block .vn-dash-card-head a:hover,
.vn-dashboard-profile-form-block .vn-dash-card-head button:hover,
.vn-dashboard-profile-form-block .vn-dash-card-head .vn-btn:hover {
    box-shadow: none !important;
}



/* v1.2.5.0 keep borders on login/register form fields */
.vn-auth-form input[type="text"],
.vn-auth-form input[type="email"],
.vn-auth-form input[type="password"],
.vn-register-form input[type="text"],
.vn-register-form input[type="email"],
.vn-register-form input[type="password"],
.vn-login-form input[type="text"],
.vn-login-form input[type="email"],
.vn-login-form input[type="password"],
.vn-auth-form textarea,
.vn-register-form textarea,
.vn-login-form textarea,
.vn-auth-form select,
.vn-register-form select,
.vn-login-form select {
    border: 1px solid var(--vn-border) !important;
    box-shadow: none !important;
    outline: 0 !important;
    background-clip: padding-box !important;
}

.vn-auth-form input[type="text"]:hover,
.vn-auth-form input[type="email"]:hover,
.vn-auth-form input[type="password"]:hover,
.vn-register-form input[type="text"]:hover,
.vn-register-form input[type="email"]:hover,
.vn-register-form input[type="password"]:hover,
.vn-login-form input[type="text"]:hover,
.vn-login-form input[type="email"]:hover,
.vn-login-form input[type="password"]:hover,
.vn-auth-form textarea:hover,
.vn-register-form textarea:hover,
.vn-login-form textarea:hover,
.vn-auth-form select:hover,
.vn-register-form select:hover,
.vn-login-form select:hover,
.vn-auth-form input[type="text"]:focus,
.vn-auth-form input[type="email"]:focus,
.vn-auth-form input[type="password"]:focus,
.vn-register-form input[type="text"]:focus,
.vn-register-form input[type="email"]:focus,
.vn-register-form input[type="password"]:focus,
.vn-login-form input[type="text"]:focus,
.vn-login-form input[type="email"]:focus,
.vn-login-form input[type="password"]:focus,
.vn-auth-form textarea:focus,
.vn-register-form textarea:focus,
.vn-login-form textarea:focus,
.vn-auth-form select:focus,
.vn-register-form select:focus,
.vn-login-form select:focus {
    border: 1px solid var(--vn-border) !important;
    border-color: var(--vn-border) !important;
    box-shadow: none !important;
    outline: 0 !important;
}



/* v1.2.5.1 checkbox alignment fix (inline with label) */
.vn-auth-form .vn-checkbox,
.vn-login-form .vn-checkbox,
.vn-register-form .vn-checkbox,
.vn-auth-form label[for*="remember"],
.vn-login-form label[for*="remember"],
.vn-register-form label[for*="remember"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ensure checkbox comes before text and is aligned */
.vn-auth-form input[type="checkbox"],
.vn-login-form input[type="checkbox"],
.vn-register-form input[type="checkbox"] {
    margin: 0 !important;
    margin-right: 6px !important;
    position: relative !important;
    top: 0 !important;
}

/* prevent label text wrapping under checkbox */
.vn-auth-form label,
.vn-login-form label,
.vn-register-form label {
    display: inline-flex !important;
    align-items: center !important;
}



/* v1.2.5.2 login/register checkbox + helper link alignment */
.vn-auth-form .vn-remember,
.vn-login-form .vn-remember,
.vn-register-form .vn-remember,
.vn-auth-form .rememberme,
.vn-login-form .rememberme,
.vn-register-form .rememberme {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 14px 0 18px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.vn-auth-form .vn-remember label,
.vn-login-form .vn-remember label,
.vn-register-form .vn-remember label,
.vn-auth-form .rememberme label,
.vn-login-form .rememberme label,
.vn-register-form .rememberme label,
.vn-auth-form label[for*="remember"],
.vn-login-form label[for*="remember"],
.vn-register-form label[for*="remember"] {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: none !important;
    text-transform: uppercase;
}

.vn-auth-form input[type="checkbox"],
.vn-login-form input[type="checkbox"],
.vn-register-form input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin: 0 !important;
    margin-right: 0 !important;
    top: 0 !important;
    vertical-align: middle !important;
}

.vn-auth-form .vn-remember + *,
.vn-login-form .vn-remember + *,
.vn-register-form .vn-remember + * {
    margin-top: 0 !important;
}

/* keep auth helper/footer links aligned with fields */
.vn-auth-form .vn-auth-footer,
.vn-login-form .vn-auth-footer,
.vn-register-form .vn-auth-footer,
.vn-auth-form .vn-auth-links,
.vn-login-form .vn-auth-links,
.vn-register-form .vn-auth-links,
.vn-auth-form .vn-register-link,
.vn-login-form .vn-register-link,
.vn-register-form .vn-register-link,
.vn-auth-form .vn-login-link,
.vn-login-form .vn-login-link,
.vn-register-form .vn-login-link {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
}

.vn-auth-form .vn-auth-footer a,
.vn-login-form .vn-auth-footer a,
.vn-register-form .vn-auth-footer a,
.vn-auth-form .vn-auth-links a,
.vn-login-form .vn-auth-links a,
.vn-register-form .vn-auth-links a {
    white-space: nowrap !important;
}



/* v1.2.5.3 precise login/register checkbox + alt link alignment */
.vn-field.vn-field-check {
    display: block !important;
    margin-bottom: 18px !important;
}

.vn-field.vn-field-check label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    text-transform: uppercase !important;
    width: auto !important;
    max-width: none !important;
}

.vn-field.vn-field-check input[type="checkbox"] {
    display: inline-block !important;
    width: 14px !important;
    min-width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    position: static !important;
    transform: none !important;
    flex: 0 0 14px !important;
}

.vn-form-alt {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.vn-form-alt a,
.vn-form-alt {
    white-space: nowrap !important;
}



/* ── v1.2.6.2 event admin metabox spacing + remove visual crowding ───────── */
.postbox .hndle,
.postbox h2.hndle,
.vn-admin-wrap .postbox .hndle,
.vn-admin-wrap .postbox h2.hndle {
    padding: 16px 18px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

.postbox .inside,
.vn-admin-wrap .postbox .inside {
    padding: 18px !important;
}

.vn-admin-wrap .submitbox .inside {
    padding: 18px !important;
}

/* event form should not reserve layout for removed city field */
#vn_city,
label[for="vn_city"] {
    display: none !important;
}



/* v1.2.7.1 event posters in dashboard + public profile */
.vn-event-sm-image,
.vn-event-dash-image {
    display: block;
    margin: 0 0 12px 0;
    overflow: hidden;
    border-radius: 0 !important;
}
.vn-event-sm-image img,
.vn-event-dash-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
}
.vn-event-sm-image a,
.vn-event-dash-image a {
    display: block;
}



/* v1.2.7.2 event posters without distortion */
.vn-event-card-image,
.vn-event-sm-image,
.vn-event-dash-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--vn-surface, #f5f6f7);
    border-radius: 0 !important;
}

.vn-event-card-image img,
.vn-event-sm-image img,
.vn-event-dash-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 0 !important;
}

/* links inside image wrappers should fill the whole frame */
.vn-event-card-image > a,
.vn-event-sm-image > a,
.vn-event-dash-image > a {
    display: block;
    width: 100%;
    height: 100%;
}


/* Unified Loop Cards moved to assets/css/vn-loop-cards.css */

