/* =========================================
   DATING OVERSIGT - FILTER SIDEBAR & LAYOUT
   ========================================= */
.dating-overview-wrapper { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    align-items: flex-start; 
    font-family: 'Montserrat', sans-serif; 
    margin: 0 auto 40px auto; 
    max-width: 1420px; 
}

.dating-filter-container { 
    width: 320px; 
    flex-shrink: 0; 
    background: #fff; 
    border: 1px solid #e5e7eb; 
    border-radius: 12px; 
    padding: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    position: sticky;
    top: 120px; /* Plads til din sticky header */
}

/* Header indeni filteret (bruges til mobil toggle) */
.dating-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dating-filter-title { 
    font-size: 18px; 
    font-weight: 700; 
    color: #1f2937; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin: 0 !important;
}

.dx-mobile-filter-toggle {
    display: none; /* Skjult på desktop */
}

.dating-filter-group { 
    margin-bottom: 15px; 
}

.dating-filter-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    color: #4b5563; 
    margin-bottom: 8px; 
}

#filter-reset-btn { 
    width: 100%; 
    background: #f3f4f6; 
    color: #4b5563; 
    border: none; 
    padding: 10px; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    margin-top: 10px;
    transition: background 0.2s; 
}

#filter-reset-btn i { margin-right: 6px; }
#filter-reset-btn:hover:not(:disabled) { background: #e5e7eb; }
#filter-reset-btn:disabled { opacity: 0.5; cursor: not-allowed; }


/* =========================================
   NY FILTER STYLING (CHIPS)
   ========================================= */
.dx-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dx-chip input[type="checkbox"] {
    display: none;
}

.dx-chip span {
    display: inline-block;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.dx-chip span:hover {
    background: var(--bg-softer);
    border-color: #d1d5db;
}

.dx-chip input[type="checkbox"]:checked + span {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 79, 103, 0.2);
}


/* =========================================
   HOVEDINDHOLD & TOP HEADER
   ========================================= */
.dx-main-content {
    flex-grow: 1;
    max-width: 1080px;
}

.dx-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: transparent; 
    padding: 0 0 10px 0; 
    border: none; 
    box-shadow: none; 
}

.dx-results-lead {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.dx-sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dx-sort-container label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
}

.dx-sort-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}


/* =========================================
   KORT DESIGN (DX-PREFIX)
   ========================================= */
:root {
    --brand-primary: #ff4f67;
    --brand-primary-hover: #e63e54;
    --brand-cta: #10b981;
    --brand-cta-hover: #059669;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-softer: #f3f4f6;
    --border-color: #e5e7eb;
    --rank-silver: #9ca3af; 
    
    --success-green: #10b981;
    --success-bg: #e6f7f1;
    
	--rating-excellent: #047857; /* NY MØRKEGRØN FARVE */
    --rating-good: #10b981;   
    --rating-medium: #f59e0b; 
    --rating-bad: #ef4444; 
}

/* Dynamiske farve-klasser til PHP integration */
.dx-color-excellent { color: var(--rating-excellent) !important; }
.dx-color-good { color: var(--rating-good) !important; }
.dx-color-medium { color: var(--rating-medium) !important; }
.dx-color-bad { color: var(--rating-bad) !important; }

.dx-bg-excellent { background-color: var(--rating-excellent) !important; }
.dx-bg-good { background-color: var(--rating-good) !important; }
.dx-bg-medium { background-color: var(--rating-medium) !important; }
.dx-bg-bad { background-color: var(--rating-bad) !important; }

.dx-card-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important; 
}

.dx-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    position: relative !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    font-family: 'Montserrat', sans-serif !important;
}

.dx-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.dx-card-main {
    display: flex !important;
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.dx-badge-wrap {
    position: absolute !important;
    top: -1px !important; 
    left: -1px !important;
    display: flex !important;
    background: #fff5f6 !important;
    border-bottom-right-radius: 16px !important;
    border-top-left-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #ffe6e9 !important;
    border-top: none !important;
    border-left: none !important;
    z-index: 10 !important;
}

.dx-badge-wrap.dx-badge-silver {
    background: var(--bg-light) !important;
    border-color: var(--border-color) !important;
}

.dx-rank {
    background: var(--brand-primary) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 13px !important; 
    padding: 5px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.dx-rank.dx-rank-silver {
    background: var(--rank-silver) !important;
}

.dx-favorit {
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
    font-size: 10px !important; 
    padding: 5px 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1 !important;
}

.dx-col-left {
    flex: 0 0 200px !important; 
    padding: 30px 16px 24px 16px !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; 
    border-right: 1px solid var(--border-color) !important;
}

.dx-logo-wrap {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.dx-logo-wrap img {
    max-width: 165px !important; 
    width: 100% !important;
    height: auto !important;
    margin-bottom: 4px !important; 
    display: block !important;
}

.dx-rating-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
}

.dx-rating-score {
    font-weight: 900 !important;
    font-size: 32px !important; 
    line-height: 1 !important;
}

.dx-rating-divider {
    width: 1px !important;
    height: 32px !important;
    background-color: #e1e5ee !important;
}

.dx-rating-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; 
}

.dx-rating-stars {
    font-size: 13px !important; 
    margin-bottom: 4px !important; 
}

.dx-rating-text {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    margin: 0 !important; 
}

.dx-review-btn {
    font-size: 11px !important; 
    color: var(--brand-primary) !important;
    background: #ffffff !important;
    border: 1px solid var(--brand-primary) !important; 
    padding: 8px 12px !important;
    border-radius: 99px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.dx-review-btn:hover {
    background: #fff5f6 !important;
    color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
}

.dx-col-middle {
    flex: 1 !important; 
    padding: 24px 20px !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: #fff !important;
}

.dx-best-for {
    font-size: 20px !important; 
    font-weight: 800 !important;
    margin: 0 0 6px 0 !important; 
    color: var(--text-dark) !important;
    line-height: 1.3 !important;
}

.dx-support-line {
    font-size: 15px !important; 
    color: var(--text-medium) !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important; 
}

.dx-lists-wrap {
    display: block !important; 
}

.dx-facts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important; 
    margin-bottom: 16px !important; 
}

.dx-fact-chip {
    background: var(--bg-softer) !important;
    padding: 6px 16px !important; 
    border-radius: 8px !important;
    font-size: 13px !important; 
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1 !important;
    white-space: nowrap !important; 
}

.dx-fact-chip > i {
    color: var(--brand-primary) !important;
    opacity: 0.9 !important;
    font-size: 14px !important; 
}

.dx-gender-icon-pink { color: #ff4f67 !important; font-size: 13px !important; }
.dx-gender-icon-blue { color: #3b82f6 !important; font-size: 13px !important; }
.dx-gender-split { display: inline-flex; align-items: center; gap: 4px; }
.dx-gender-divider { color: var(--text-light); font-weight: 400; margin: 0 2px; }

.dx-pros {
    display: flex !important;
    flex-wrap: wrap !important; 
    gap: 10px !important; 
    margin-bottom: 0 !important; 
}

.dx-pro-item {
    font-size: 13px !important; 
    color: var(--text-dark) !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important; 
    white-space: nowrap !important; 
}

.dx-pro-item > i {
    color: var(--success-green) !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important; 
}

.dx-col-right {
    flex: 0 0 240px !important; 
    background: var(--bg-light) !important;
    padding: 30px 20px 56px 20px !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important; 
}

.dx-price-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 18px !important;
}

.dx-price-label {
    font-size: 11px !important;
    color: var(--text-medium) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}

.dx-price-value {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: var(--text-dark) !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 4px !important;
}

.dx-price-period {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-light) !important;
}

.dx-btn-primary {
    background: var(--brand-cta) !important;
    color: #fff !important;
    text-decoration: none !important;
    width: 100% !important;
    padding: 16px 10px !important; 
    border-radius: 12px !important; 
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important; 
    margin-bottom: 0 !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.dx-btn-primary:hover {
    background: var(--brand-cta-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important; 
}

.dx-btn-text-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-weight: 800 !important; 
    font-size: 18px !important; 
    white-space: nowrap !important;
}

.dx-toggle-btn {
    background: none !important;
    border: none !important;
    color: var(--text-medium) !important;
    font-size: 13px !important; 
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: color 0.2s ease !important;
    position: absolute !important;
    bottom: 16px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
}

.dx-toggle-btn:hover {
    color: var(--brand-primary) !important;
}

.dx-toggle-btn i {
    font-size: 11px !important;
    transition: transform 0.2s ease !important;
}

/* =========================================
   DETALJER (HARMONIKA) & REVIEWS
   ========================================= */
.dx-details-wrapper {
    border-top: 1px solid var(--border-color) !important;
    background: #ffffff !important;
    padding: 30px !important; 
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    animation: dxFadeIn 0.3s ease-out !important;
    display: none; 
}

@keyframes dxFadeIn { 
    from { opacity: 0; transform: translateY(-5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.dx-details-intro-text {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text-medium) !important;
    margin: 40px 0 24px 0 !important;
}

.dx-details-intro-text p {
    margin-bottom: 15px !important;
}

.dx-details-caveat {
    background: #fff5f6 !important;
    border-left: 3px solid var(--brand-primary) !important;
    padding: 12px 16px !important;
    border-radius: 0 6px 6px 0 !important;
    margin-bottom: 24px !important; 
}

.dx-details-caveat strong {
    color: var(--brand-primary) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
    font-size: 13px !important;
}

.dx-review-section-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    margin: 0 0 16px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dx-review-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 20px !important;
}

.dx-review-item {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
}

.dx-review-item-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.dx-review-item-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dx-review-item-title i {
    color: var(--text-light) !important;
    width: 16px !important; 
    text-align: center !important;
}

.dx-review-item-score {
    font-size: 13px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #fff !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-color) !important;
}

.dx-review-bar-bg {
    width: 100% !important;
    height: 6px !important;
    background: #e5e7eb !important;
    border-radius: 99px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

.dx-review-bar-fill {
    height: 100% !important;
    border-radius: 99px !important;
}

.dx-review-item-text {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--text-medium) !important;
    margin: 0 !important;
}

/* =========================================
   INLINE BILLEDER OG VIDEO I TEKST
   ========================================= */
.dx-inline-img {
    display: block !important;
    width: 100% !important;
    max-width: 550px !important; 
    height: auto !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
    margin: 30px auto !important; 
}

.dx-lazy-video, 
.dx-responsive-video {
    position: relative !important;
    width: 100% !important;
    max-width: 800px !important; 
    margin: 40px auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    background: #000 !important;
    aspect-ratio: 16 / 9 !important; 
}

.dx-lazy-video {
    cursor: pointer !important;
}

.dx-lazy-video img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.85 !important;
    transition: opacity 0.3s ease !important;
}

.dx-lazy-video:hover img {
    opacity: 1 !important;
}

.dx-play-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 70px !important;
    height: 70px !important;
    background: rgba(255, 79, 103, 0.9) !important; 
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 24px !important;
    padding-left: 4px !important; 
    transition: all 0.3s ease !important;
    z-index: 2 !important;
}

.dx-lazy-video:hover .dx-play-btn {
    transform: translate(-50%, -50%) scale(1.1) !important;
    background: var(--brand-primary) !important;
}

.dx-responsive-video iframe, 
.dx-responsive-video object, 
.dx-responsive-video embed {
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important;
    width: 100% !important; 
    height: 100% !important;
    border-radius: 12px !important;
}

/* =========================================
   MOBIL RESPONSIVITET (< 900px)
   ========================================= */
@media (max-width: 900px) {
    .dating-overview-wrapper { 
        flex-direction: column; 
    } 
    
    /* --- MOBIL FILTER TOGGLE (OPDATERET APP-STIL) --- */
    .dating-filter-container { 
        width: 100%; 
        position: relative; 
        top: 0;
        margin-bottom: 20px; 
        box-sizing: border-box;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    } 

    .dating-filter-title {
        display: none !important;
    }

    .dating-filter-header {
        margin-bottom: 0; 
        transition: margin 0.3s ease;
    }
    
    .dating-filter-header.is-open {
        margin-bottom: 20px;
    }

    .dx-mobile-filter-toggle {
        display: flex;
        align-items: center;
        width: 100% !important; 
        background: #ffffff !important; 
        border: 1px solid var(--border-color) !important;
        padding: 14px 20px !important;
        border-radius: 12px !important;
        font-family: 'Montserrat', sans-serif;
        font-size: 15px !important;
        font-weight: 600 !important;
        color: var(--text-dark) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
        cursor: pointer;
    }

    /* Skjul indholdet på mobil som standard, tilføj boksdesign når det er åbent */
    .dating-filter-content {
        display: none;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }

    /* Vises når knappen klikkes */
    .dating-filter-content.is-open {
        display: block;
        animation: dxFadeIn 0.3s ease-out;
    }
    
    .dx-content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0;
    }
    
    .dx-sort-container {
        width: 100%;
        justify-content: space-between;
    }

    .dx-card-main {
        flex-direction: column !important;
    }

    .dx-col-left {
        flex: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 40px 16px 16px 16px !important; 
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .dx-logo-wrap {
        justify-content: flex-start !important;
    }

    .dx-logo-wrap img {
        max-width: 130px !important; 
        margin-bottom: 0 !important;
    }

    .dx-rating-block {
        margin-bottom: 0 !important;
        width: auto !important;
        gap: 8px !important;
    }

    .dx-rating-score {
        font-size: 24px !important; 
    }

    .dx-rating-divider {
        height: 24px !important;
    }

    .dx-rating-text {
        font-size: 10px !important; 
    }

    .dx-rating-stars {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    .dx-col-middle {
        padding: 16px !important; 
    }

    .dx-best-for {
        font-size: 17px !important;
        margin-bottom: 6px !important;
    }

    .dx-support-line {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }

    .dx-lists-wrap {
        display: grid !important;
        grid-template-columns: 42% 58% !important; 
        gap: 8px !important; 
        margin-bottom: 12px !important;
    }

    .dx-facts, .dx-pros {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important; 
        margin-bottom: 0 !important; 
    }

    .dx-fact-chip, .dx-pro-item {
        background: transparent !important; 
        padding: 0 !important; 
        font-size: 13px !important; 
        font-weight: 500 !important;
        color: var(--text-dark) !important;
        display: flex !important;
        align-items: flex-start !important; 
        justify-content: flex-start !important;
        white-space: normal !important; 
        line-height: 1.4 !important; 
        gap: 8px !important; 
    }

    .dx-fact-chip > i, .dx-pro-item > i {
        margin-top: 3px !important;
        flex-shrink: 0 !important; 
        width: 16px !important; 
        text-align: center !important;
    }

    .dx-fact-chip > i:not(.dx-gender-icon-pink):not(.dx-gender-icon-blue) {
        color: var(--brand-primary) !important; 
        opacity: 1 !important; 
    }
  
    .dx-gender-split {
        display: flex !important;
        align-items: center !important;
    }

    .dx-col-right {
        flex: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding: 16px 16px 60px 16px !important; 
    }

    .dx-price-box {
        flex-direction: row !important; 
        align-items: baseline !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .dx-price-label {
        margin-bottom: 0 !important;
    }

    .dx-price-value {
        font-size: 20px !important;
    }

    .dx-btn-primary {
        padding: 14px 10px !important;
    }

    .dx-btn-text-row {
        font-size: 16px !important; 
    }

    .dx-details-wrapper {
        padding: 20px 16px !important;
    }

    .dx-review-grid {
        grid-template-columns: 1fr !important; 
    }
}

/* =========================================
   FASTLÅS FILTER-PILLER (Forhindrer hop)
   ========================================= */
.dx-chip-group {
    gap: 6px !important; /* Reducerer afstanden mellem pillerne fra 8px til 6px */
}

.dx-chip span {
    padding: 6px 10px !important; /* Gør selve pillerne en anelse mere kompakte */
}

/* =========================================
   TOP MATCH HIGHLIGHT (Kun aktiv efter wizard)
   ========================================= */
/* Ramme og skygge aktiveres kun, når .dx-match-found er til stede */
.dx-match-found .dx-card.dx-card-top-match {
    border: 2px solid var(--brand-primary) !important;
    box-shadow: 0 15px 40px rgba(255, 79, 103, 0.15) !important;
    transform: translateY(-2px) !important;
    margin-top: 15px !important; /* Gør plads til badget i toppen */
}

/* Det forklarende badge i toppen af vinder-kortet */
.dx-match-found .dx-card.dx-card-top-match::before {
    content: '🔥 Dein Top-Match basierend auf deinen Antworten';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-primary);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(255, 79, 103, 0.3);
}

/* Farve-flip på selve rank-badget (#1) for at matche */
.dx-match-found .dx-card.dx-card-top-match .dx-badge-wrap {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
.dx-match-found .dx-card.dx-card-top-match .dx-rank {
    background: #ffffff !important;
    color: var(--brand-primary) !important;
}
.dx-match-found .dx-card.dx-card-top-match .dx-favorit {
    color: #ffffff !important;
}