/* ================= HOME PAGE ================= */

.home-welcome {
    text-align: center;
    margin-bottom: 36px;

    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.04em;

    color: rgba(255,255,255,0.9);
}

.home-news {
    margin-top: 28px;
    text-align: center;
    position: relative;
    height: 32px;
    overflow: hidden;
}

.news-item {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
opacity 0.6s ease,
transform 0.6s ease,
visibility 0s linear 0.6s;

    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
}

.news-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}


.welcome-brand {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-name {
    color: #93c5fd;
}


.home-hero {
    margin-top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

/* Bühne für Karten */
.card-showcase {
    position: relative;
    width: 500px;
    height: 520px;   /* 🔥 vorher 420px */
    margin-top: -100px;  /* oder -15px */

    display: flex;
    justify-content: center;
    align-items: flex-start; /* 🔥 wichtig */
}

/* Karten selbst – NUR das Bild */
.showcase-card {
    position: absolute;   /* 🔥 DAS fehlt */
    width: 250px;
    height: auto;
    max-width: none;
    margin: 0;
    display: block;
}

/* links */
/* links – etwas weiter hinten */
/* links – weiter hinten */
.card-1 {
    top: 80px;

    transform: translateX(-140px) rotate(-6deg) translateY(30px) scale(0.94);
    z-index: 1;
    opacity: 0.9;
}

/* mitte – vorne */
.card-2 {
    top: 100px;

    transform: translateX(0) rotate(0deg) scale(1);
    z-index: 3;
}

/* rechts – weiter hinten */
.card-3 {
    top: 80px;

    transform: translateX(140px) rotate(6deg) translateY(30px) scale(0.94);
    z-index: 2;
    opacity: 0.9;
}


/* Claim */
.home-tagline {
    font-size: 1rem;
    opacity: 0.65;
    text-align: center;
    max-width: 520px;
}

/* CTA */
.home-cta {
    margin-top: 14px;
    padding: 12px 30px;
    border-radius: 999px;

    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);

    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s;
}

.home-cta:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .home-welcome {
        margin-top: 8px;
        margin-bottom: 22px;
        font-size: 1.15rem;
    }

    .home-news {
        margin-top: 18px;
        height: 48px;
    }

    .home-hero {
        margin-top: 36px;
        gap: 24px;
    }

    .card-showcase {
        width: 100%;
        height: 330px;
        margin-top: -50px;
    }

    .showcase-card {
        width: min(48vw, 180px);
    }

    .card-1 {
        transform: translateX(-82px) rotate(-6deg) translateY(24px) scale(0.9);
    }

    .card-3 {
        transform: translateX(82px) rotate(6deg) translateY(24px) scale(0.9);
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .showcase-grid.free,
    .showcase-grid.public.free,
    .showcase-grid.pro,
    .showcase-grid.public.pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.settings-section {
    margin-bottom: 50px;
}

.settings-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 18px;
    margin-top: 14px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-card.danger {
    border-color: rgba(239,68,68,0.4);
    background: rgba(239,68,68,0.05);
}

.action-button.danger {
    border-color: rgba(239,68,68,0.6);
    color: #ef4444;
}


.avatar-option {
    display: inline-block;
    cursor: pointer;
}

.avatar-option input {
    display: none;
}

/* Avatar Bild */
.avatar-option img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

/* Hover */
.avatar-option:hover img {
    transform: scale(1.05);
}

/* ✅ AKTIV ausgewählter Avatar */
.avatar-option input:checked + img {
    border-color: #3b82f6;           /* blau */
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

.visibility-option input[type="radio"] {
    display: none;
}

.privacy-options {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.privacy-option {
    cursor: pointer;
}

.privacy-option input {
    display: none;
}

.privacy-option span {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s, border-color 0.2s;
}

/* Hover */
.privacy-option:hover span {
    background: rgba(255,255,255,0.14);
}

/* ✅ Aktiv */
.privacy-option input:checked + span {
    background: rgba(59,130,246,0.25);
    border-color: #3b82f6;
}

.settings-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.page-header {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.container {
    width: 100%;
}

.settings-wrapper-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    /* Das ist der Key */
    padding-top: 60px;
}

.page-header {
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 0 auto 32px auto;
}

.settings-section {
    width: 100%;
    max-width: 600px;
}

.settings-layout {
    display: flex;
    justify-content: center;
    width: 100%;
}

.settings-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Header exakt über Content */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.settings-header {
    text-align: center;
    margin: 60px auto 48px auto;
    max-width: 600px;
}


.album-link {
    position: relative;
    z-index: 1;
}

.album-menu {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
}


.album-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;

    min-width: 200px;
    max-height: 280px;
    overflow-y: auto;

    background: linear-gradient(
180deg,
rgba(15, 23, 42, 0.98),
rgba(2, 6, 23, 0.98)
    );

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;

    box-shadow: 0 20px 40px rgba(0,0,0,0.6);

    z-index: 1000;
    display: none;
    padding: 6px 0;
}


.album-item {
    padding: 10px 14px;
    font-size: 0.85rem;
    cursor: pointer;
}

.album-item:hover {
    background: rgba(255,255,255,0.08);
}

.album-item.disabled {
    opacity: 0.5;
    cursor: default;
}

.card-action {
    position: absolute;
    top: 0;
    right: 0;

    width: 26px;
    height: 26px;

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

    padding: 0;
    margin: 0;

    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);

    font-size: 16px;
    font-weight: 500;
    line-height: 1;

    color: #e5e7eb;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;

    opacity: 0;
    transition:
background 0.15s ease,
transform 0.15s ease,
opacity 0.15s ease;
}

.card:hover .card-action,
.card:focus-within .card-action {
    opacity: 1;
    pointer-events: auto;
}

.card-action:hover {
    background: rgba(255,255,255,0.16);
    transform: scale(1.1);
}

.card-action.add {
    color: #e5e7eb;
}

.card-action.remove {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;          /* 🔥 WICHTIG */
}

.card-action.remove:hover {
    background: rgba(239,68,68,0.18);
}

.album-create-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}


.album-input {
    width: 260px;
    padding: 10px 16px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);

    color: #e5e7eb;
    font-size: 0.9rem;

    outline: none;
    transition: border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.album-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.album-input:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(147,197,253,0.6);
    box-shadow: 0 0 0 3px rgba(147,197,253,0.25);
}


.settings-input {
    width: 100%;
    height: 42px;              /* 🔥 feste Höhe */
    padding: 0 18px;
    line-height: 42px;          /* 🔥 vertikales Padding raus */

    display: flex;
    align-items: center;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);

    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 42px;         /* 🔥 Text exakt mittig */

    outline: none;
    box-sizing: border-box;

    transition:
border-color 0.2s ease,
background 0.2s ease,
box-shadow 0.2s ease;
}


.settings-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.settings-input:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(147,197,253,0.6);
    box-shadow: 0 0 0 3px rgba(147,197,253,0.25);
}

.settings-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    justify-content: center;
    align-items: start;   /* 👈 WICHTIG */
}

/* PUBLIC PROFILE – volle Breite erlauben */
.showcase-grid.public {
    max-width: 1400px;
    margin: 0 auto 60px auto;
}

.showcase-grid.public.free {
    grid-template-columns: repeat(3, 240px);
    justify-content: center;
}

.showcase-grid.free {
    grid-template-columns: repeat(3, 240px);
    justify-content: center;
}

.showcase-grid.public.pro {
    grid-template-columns: repeat(5, 1fr);
}


.showcase-grid.pro {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1400px;
    margin: 0 auto 60px auto;
}


.showcase-slot {
    position: relative;
    width: 100%;
    max-width: 220px;

    aspect-ratio: 63 / 88;

    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);

    overflow: hidden;   /* 🔥 WICHTIG */
}


/* Wenn Slot belegt ist → gleicher Rahmen, nur solid */
.showcase-slot:has(img) {
    border-style: solid;
    border-color: rgba(255,255,255,0.35);
}
.showcase-slot:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}


.showcase-slot img {
    position: absolute;   /* 🔥 entscheidend */
    inset: 0;             /* top:0 right:0 bottom:0 left:0 */

    width: 100%;
    height: 100%;

    object-fit: cover;  /* ganze Karte sichtbar */
    display: block;       /* killt Baseline-Space */
}


.showcase-empty {
    width: 100%;
    height: 100%;

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

    font-size: 0.85rem;
    opacity: 0.6;
    text-align: center;
}



.album-dropdown::-webkit-scrollbar {
    width: 6px;
}

.album-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.drag-ghost {
    opacity: 0.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.admin-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-page-header {
    display: block;
    margin: 20px auto 48px;
}

.admin-page-header .page-title {
    margin-top: 0;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--border, rgba(255,255,255,.12));
    border-radius: 16px;
    background: rgba(5, 12, 31, .7);
}

.admin-tab {
    flex: 1 0 auto;
    min-width: 130px;
    padding: 11px 16px;
    border-radius: 11px;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.admin-tab:hover,
.admin-tab.is-active {
    background: rgba(61, 139, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(91, 160, 255, .45);
}

.admin-panel {
    padding: 22px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}

.admin-panel h2 {
    margin: 26px 0 10px;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-panel h2:first-child { margin-top: 0; }

.admin-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid rgba(69, 211, 138, .45);
    border-radius: 12px;
    background: rgba(24, 139, 84, .14);
}

.admin-stat-warning {
    box-shadow: inset 0 0 0 1px rgba(246, 166, 35, .5);
}

.admin-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.admin-section-head h2 { margin: 0; }
.admin-section-head p { margin: 5px 0 0; opacity: .65; }

.admin-search {
    display: flex;
    gap: 8px;
    width: min(100%, 480px);
}

.admin-search input {
    flex: 1;
    min-width: 180px;
}

.admin-dashboard :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
) {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 12px;
    outline: none;
    background-color: rgba(15, 23, 42, .92);
    color: #eef4ff;
    font: inherit;
    line-height: 1.35;
    box-sizing: border-box;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

.admin-dashboard select {
    padding-right: 38px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8fb8ff 50%),
        linear-gradient(135deg, #8fb8ff 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.admin-dashboard select option {
    background: #111a2f;
    color: #eef4ff;
}

.admin-dashboard textarea {
    line-height: 1.45;
}

.admin-dashboard :where(input, textarea)::placeholder {
    color: rgba(220, 230, 247, .46);
}

.admin-dashboard :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
):hover {
    border-color: rgba(143, 184, 255, .48);
    background-color: rgba(22, 33, 57, .96);
}

.admin-dashboard :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    select,
    textarea
):focus {
    border-color: rgba(96, 165, 250, .82);
    background-color: rgba(22, 33, 57, 1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}

.admin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-size: .88rem;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: rgba(255,255,255,.62);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(3, 9, 24, .72);
}

.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table small { display: block; margin-top: 4px; opacity: .67; }
.admin-table code { font-size: .75rem; white-space: normal; overflow-wrap: anywhere; }

.admin-badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
}

.admin-badge.success { color: #55e69a; background: rgba(38, 183, 111, .13); }
.admin-badge.warning { color: #ffc45d; background: rgba(246, 166, 35, .13); }
.admin-danger-text { color: #ff777f; opacity: 1 !important; }

.admin-inline-form { margin-top: 9px; }
.admin-inline-form .action-button { min-height: 34px; padding: 6px 10px; }

.admin-delete-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    align-items: end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 100, 110, .25);
}

.admin-delete-form label {
    display: grid;
    gap: 4px;
    color: #ff9ca3;
    font-size: .72rem;
}

.admin-delete-form input { width: 100%; min-height: 36px; }
.admin-delete-form .action-button { min-height: 36px; }

.admin-dashboard .admin-delete-form input {
    border-color: rgba(255, 100, 110, .34);
}

.admin-dashboard .admin-delete-form input:focus {
    border-color: rgba(255, 100, 110, .8);
    box-shadow: 0 0 0 3px rgba(255, 72, 86, .14);
}

.admin-settings-form,
.admin-set-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 8px;
    min-width: 310px;
}

.admin-set-form { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
.admin-settings-form label,
.admin-set-form label { display: grid; gap: 4px; font-size: .72rem; opacity: .78; }
.admin-settings-form select,
.admin-set-form select,
.admin-set-form input { width: 100%; min-height: 36px; }
.admin-settings-form .action-button,
.admin-set-form .action-button { align-self: end; min-height: 36px; }

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.admin-pagination a {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
}

.admin-announcement-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.admin-announcement-card {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(4, 10, 26, .45);
}

.admin-announcement-form {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(220px, 1.5fr) 100px 120px auto;
    align-items: end;
    gap: 10px;
}

.admin-panel > .admin-announcement-form {
    padding: 18px;
    border: 1px solid rgba(91, 160, 255, .2);
    border-radius: 16px;
    background: rgba(21, 36, 65, .32);
}

.admin-announcement-form label {
    display: grid;
    gap: 5px;
    font-size: .75rem;
    color: rgba(255,255,255,.68);
}

.admin-announcement-form textarea {
    min-height: 42px;
    max-height: 120px;
    resize: vertical;
}

.admin-announcement-form input,
.admin-announcement-form select,
.admin-announcement-form textarea { width: 100%; }
.admin-announcement-form .action-button { min-height: 42px; }
.admin-announcement-delete { display: flex; justify-content: flex-end; margin-top: 10px; }

.admin-variant-link {
    display: inline-flex;
    margin-top: 10px;
    padding: 7px 11px;
    border: 1px solid rgba(91, 160, 255, .35);
    border-radius: 999px;
    color: #a9caff;
    text-decoration: none;
}

.admin-variant-link.needs-review {
    border-color: rgba(246, 166, 35, .42);
    color: #ffc45d;
}

.admin-variant-page {
    display: grid;
    gap: 20px;
}

.admin-variant-page .admin-page-header {
    margin-bottom: 12px;
}

.admin-variant-rules,
.admin-variant-card-list {
    display: grid;
    gap: 12px;
}

.admin-variant-rule {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(190px, 1fr) minmax(200px, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: rgba(4, 10, 26, .4);
}

.admin-variant-rule > label:not(.admin-check-row),
.admin-card-variant-form label {
    display: grid;
    gap: 5px;
    color: rgba(255,255,255,.68);
    font-size: .75rem;
}

.admin-check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.admin-dashboard .admin-check-row input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: #4f9cff;
}

.admin-variant-save {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 6px;
}

.admin-variant-card {
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(220px, 1fr) minmax(430px, 1.6fr);
    align-items: center;
    gap: 16px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    background: rgba(4, 10, 26, .4);
}

.admin-variant-card-name small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.58);
}

.admin-variant-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-variant-chip-form {
    margin: 0;
}

.admin-variant-chip {
    padding: 6px 10px;
    border: 1px solid rgba(91, 160, 255, .35);
    border-radius: 999px;
    background: rgba(61, 139, 255, .12);
    color: #c9ddff;
    cursor: pointer;
}

.admin-variant-chip:hover {
    border-color: rgba(255, 100, 110, .55);
    color: #ff9ca3;
}

.admin-card-variant-form {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(130px, 1fr) 80px auto;
    align-items: end;
    gap: 8px;
}

@media (max-width: 1100px) {
    .admin-announcement-form {
        grid-template-columns: minmax(240px, 2fr) minmax(210px, 1.4fr) 90px;
    }

    .admin-announcement-form .action-button {
        width: 100%;
    }

    .admin-variant-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-dashboard { width: 100%; }
    .admin-page-header { margin-bottom: 24px; }
    .admin-tabs { margin-inline: -4px; }
    .admin-tab { min-width: 120px; }
    .admin-panel { padding: 14px; border-radius: 14px; }
    .admin-section-head { align-items: stretch; flex-direction: column; }
    .admin-search { width: 100%; flex-wrap: wrap; }
    .admin-search input { min-width: 0; }
    .admin-search .action-button { flex: 1 0 100%; }
    .admin-table { min-width: 680px; }
    .admin-users-table { min-width: 920px; }
    .admin-catalog-table { min-width: 850px; }
    .admin-pagination { justify-content: space-between; }
    .admin-announcement-form { grid-template-columns: 1fr; }
    .admin-panel > .admin-announcement-form,
    .admin-announcement-card { padding: 14px; }
    .admin-announcement-delete .action-button { width: 100%; }
    .admin-variant-rule,
    .admin-card-variant-form { grid-template-columns: 1fr; }
    .admin-variant-save { align-items: stretch; flex-direction: column; }
}

.stat-card {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: bold;
}

.stat-label {
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 4px;
}


/* ================= FAVORITE SET DROPDOWN FIX ================= */

/* ===== Favorite Set – FINAL, CLEAN ===== */

.favorite-set-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.favorite-set-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.favorite-set-box {
    width: 100%;
    max-width: 420px;
}

.favorite-set-input {
    width: 100%;
    height: 44px;

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

    text-align: center;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);

    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.favorite-set-card {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
}

.favorite-set-menu {
    position: relative !important;
    top: auto;
    right: auto;
}

.favorite-set-menu .settings-input {
    text-align: center;
}

.favorite-set-menu .album-dropdown {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 100%;
    max-width: 420px;
}




/* Friends */

.friends-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.friend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}

.friend-name {
    font-weight: 600;
}

.status-online {
    color: #22c55e;
    font-weight: 500;
}

.status-offline {
    opacity: 0.6;
    font-size: 0.85rem;
}


.friends-header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    text-align: center;
}


.friends-input {
    width: 100%;
    box-sizing: border-box;
}

.friend-requests-card {
    margin-top: -35px; /* oder 0, je nach Geschmack */
}


#wishlist-grid .card:hover {
    transform: none !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
#wishlist-grid .card {
    transition: box-shadow 0.2s;
}

.inline-message {
    margin: 12px auto;
    max-width: 600px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.inline-message.error {
    background: #3a1f1f;
    color: #ffb3b3;
}

.inline-confirm {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.inline-confirm-box {
    background: #111;
    border-radius: 12px;
    padding: 20px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.inline-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.hidden {
    display: none;
}
.set-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 28px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.set-toolbar-row {
    display: contents;
}

.set-toolbar .card-filters {
    justify-content: flex-start;
    margin: 0;
}

.set-toolbar .card-filters,
.set-action-group,
.set-number-group,
.set-export-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.set-toolbar-label {
    flex: 0 0 100%;
    color: rgba(148, 163, 184, 0.72);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.set-header {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(240px, 1.3fr) minmax(300px, 1fr);
    align-items: center;
    gap: 28px;
    margin: 14px 0 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(15, 23, 42, 0.16));
}

.set-header-left {
    justify-self: start;
}

.set-header-center {
    min-width: 0;
    gap: 8px;
}

.set-header-center .set-logo.large {
    width: min(100%, 260px);
    height: 140px;
    margin: 0;
}

.set-header-right {
    display: grid;
    width: 100%;
    gap: 14px;
    text-align: left;
}

.set-detail-progress {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.2);
}

.set-detail-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.78rem;
}

.set-detail-progress-copy strong {
    color: #e5e7eb;
    font-weight: 500;
}

.set-detail-progress-copy b {
    font-weight: 700;
}

.set-detail-progress.main .set-detail-progress-copy span { color: #4ade80; }
.set-detail-progress.complete .set-detail-progress-copy span { color: #93c5fd; }
.set-detail-progress.master .set-detail-progress-copy span { color: #fbbf24; }

.set-progress-row.master .set-progress-copy span {
    color: #fbbf24;
}

.set-progress-row.master progress {
    accent-color: #f59e0b;
}

.set-detail-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
}

.set-detail-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.set-detail-progress.main .set-detail-progress-track span {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.set-detail-progress.complete .set-detail-progress-track span {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.set-detail-progress.master .set-detail-progress-track span {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.set-number-input {
    width: 220px;
    max-width: 220px;
}

.set-number-button {
    min-width: 140px;
    white-space: nowrap;
}

@media (min-width: 1301px) {
    .set-export-group,
    .set-number-group {
        justify-content: flex-end;
    }

    .set-export-group .set-toolbar-label,
    .set-number-group .set-toolbar-label {
        text-align: right;
    }
}

@media (max-width: 1300px) {
    .set-header {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }

    .set-header-left,
    .set-header-center,
    .set-header-right {
        width: 100%;
    }

    .set-header-right {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .set-toolbar {
        grid-template-columns: 1fr;
    }

    .set-toolbar-row {
        display: contents;
    }

    .set-toolbar .card-filters,
    .set-action-group,
    .set-number-group,
    .set-export-group {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .set-number-input {
        box-sizing: border-box;
        flex: 1 1 180px;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .set-header {
        gap: 14px;
        margin: 6px 0 18px;
        padding: 14px;
        border-radius: 16px;
    }

    .set-header-center .set-logo.large {
        height: 92px;
    }

    .set-header-right {
        gap: 8px;
    }

    .set-detail-progress {
        min-width: 0;
        padding: 10px;
    }

    .set-detail-progress-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        font-size: 0.68rem;
    }

    .set-toolbar {
        gap: 12px;
        margin-top: 18px;
        padding: 12px;
        border-radius: 16px;
    }

    .set-toolbar .card-filters,
    .set-action-group,
    .set-export-group,
    .set-number-group {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .set-toolbar .card-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .set-toolbar-label {
        grid-column: 1 / -1;
    }

    .set-toolbar .filter-button,
    .set-toolbar .action-button {
        width: 100%;
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 0.72rem;
        white-space: normal;
    }

    .set-number-input {
        width: 100%;
        max-width: none;
        grid-column: 1 / -1;
    }

    .set-number-button {
        grid-column: 1 / -1;
    }
}

/* Mobile collection layout must follow the desktop collection rules above. */
@media (max-width: 600px) {
    .stats-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        min-width: 0;
        padding: 14px 8px;
    }

    .stat-label {
        overflow-wrap: anywhere;
    }

    .favorite-set-wrapper,
    .favorite-set-box,
    .favorite-set-menu,
    .favorite-set-input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .showcase-grid.free,
    .showcase-grid.public.free,
    .showcase-grid.pro,
    .showcase-grid.public.pro {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .showcase-slot {
        min-width: 0;
    }
}

/* ================= DISCOVERY AREAS ================= */
.discovery-search {
    max-width: 620px;
    margin: 0 auto 36px;
    display: flex;
    gap: 10px;
}

.discovery-search .settings-input {
    min-width: 0;
    flex: 1;
}

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

.discovery-card {
    position: relative;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.discovery-card-link {
    display: block;
    text-align: center;
}

.discovery-card-image {
    width: auto;
    height: 220px;
    max-width: 100%;
    margin: 0 auto 14px;
    object-fit: contain;
}

.discovery-card h2 {
    min-height: 2.4em;
    margin: 0 32px 10px;
    font-size: 1rem;
}

.discovery-counts {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.8rem;
}

.pokemon-number {
    margin: -3px 0 9px;
    color: #93c5fd;
    font-size: 0.78rem;
    text-align: center;
}

.detail-pokemon-number {
    color: #93c5fd;
    font-size: 0.6em;
    font-weight: 600;
}

.pokemon-empty {
    margin-top: 48px;
}

.set-favorite-row {
    display: flex;
    justify-content: center;
    margin: -20px 0 24px;
}

.favorites-section {
    margin-bottom: 56px;
}

.favorites-section .section-title {
    margin-top: 36px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 260px));
    justify-content: center;
    gap: 20px;
}

.favorite-card {
    position: relative;
}

.favorite-card-meta {
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.76rem;
    text-align: center;
}

.favorite-set-preview {
    display: grid;
    place-items: center;
    height: 240px;
    padding: 18px;
}

.favorite-set-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 600px) {
    .favorites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .favorite-set-preview {
        height: auto;
        aspect-ratio: 2.5 / 3.5;
    }
}

.favorite-toggle {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: rgba(226, 232, 240, 0.55);
    cursor: pointer;
}

.discovery-card > .favorite-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
}

.favorite-toggle.is-favorite {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.14);
    color: #fde047;
}

.discovery-detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.discovery-detail-header .page-title,
.discovery-detail-header .page-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.discovery-filters {
    position: relative;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 30px;
}

.discovery-filters .settings-input,
.discovery-filters .action-button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.discovery-filters select.settings-input {
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    padding-right: 42px;
    cursor: pointer;
    background-color: #182033;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.discovery-filters select.settings-input:hover {
    border-color: rgba(147, 197, 253, 0.48);
    background-color: #202a40;
}

.discovery-filters select.settings-input:focus {
    background-color: #202a40;
}

.discovery-filters select.settings-input option {
    color: #e5e7eb;
    background: #111827;
}

.discovery-filters select.settings-input option:checked {
    color: #ffffff;
    background: #1d4ed8;
}

.custom-select {
    position: relative;
    min-width: 0;
}

.custom-select.is-open {
    z-index: 110;
}

.custom-select .native-select-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-select-trigger {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: #182033;
    color: #e5e7eb;
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    top: 17px;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #93c5fd;
    border-bottom: 2px solid #93c5fd;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.custom-select.is-open .custom-select-trigger,
.custom-select-trigger:hover {
    border-color: rgba(147, 197, 253, 0.55);
    background: #202a40;
}

.custom-select.is-open .custom-select-trigger::after {
    top: 20px;
    transform: rotate(225deg);
}

.custom-select-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    max-height: 260px;
    padding: 6px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 16px;
    background: #111827;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
    transform: translateY(-5px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.custom-select.is-open .custom-select-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.custom-select-option {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #e5e7eb;
    font: inherit;
    font-size: 0.86rem;
    text-align: left;
    cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
    outline: none;
    background: rgba(96, 165, 250, 0.16);
}

.custom-select-option.is-selected {
    background: #2563eb;
    color: #ffffff;
}

.custom-select-option.is-selected::after {
    content: "✓";
    float: right;
    margin-left: 8px;
}

.active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    margin: -16px 0 28px;
}

.filter-chip {
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.13);
    color: #dbeafe;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.filter-chip span {
    margin-left: 5px;
    color: #93c5fd;
    font-size: 1rem;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    border-color: rgba(147, 197, 253, 0.8);
    background: rgba(37, 99, 235, 0.25);
}

.clear-filter-chip {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.8);
}

/* ================= SERIES & SET OVERVIEWS ================= */
.series-overview-grid,
.set-overview-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    align-items: stretch;
}

.series-overview-card,
.set-overview-card {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.series-overview-card a,
.set-overview-card a {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.series-overview-card img {
    width: 100%;
    height: 92px;
    object-fit: contain;
}

.series-overview-card h3,
.set-overview-card h3 {
    margin: 8px 0 4px;
    overflow-wrap: anywhere;
}

.set-overview-card .main-image {
    width: 100%;
    height: 92px;
    margin: 26px auto 8px;
}

.set-progress {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.set-progress-row {
    min-width: 0;
}

.set-progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.68rem;
}

.set-progress-copy strong {
    color: #e5e7eb;
    font-weight: 600;
}

.set-progress-track {
    display: block;
    width: 100%;
    height: 7px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
}

.set-progress-track::-webkit-progress-bar {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
}

.set-progress-track::-webkit-progress-value,
.set-progress-track::-moz-progress-bar {
    border-radius: 999px;
}

.set-progress-row.main .set-progress-copy span {
    color: #4ade80;
}

.set-progress-row.main .set-progress-track::-webkit-progress-value {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.set-progress-row.main .set-progress-track::-moz-progress-bar {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.set-progress-row.total .set-progress-copy span {
    color: #93c5fd;
}

.set-progress-row.total .set-progress-track::-webkit-progress-value {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.set-progress-row.total .set-progress-track::-moz-progress-bar {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

@media (max-width: 600px) {
    .series-overview-grid,
    .set-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .series-overview-card,
    .set-overview-card {
        padding: 12px;
    }

    .series-overview-card img,
    .set-overview-card .main-image {
        height: 72px;
    }

    .set-progress-copy {
        font-size: 0.62rem;
    }
}

.card-set-name {
    margin-top: 6px;
    color: rgba(226, 232, 240, 0.48);
    font-size: 0.7rem;
    text-align: center;
}

@media (max-width: 600px) {
    .discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .discovery-card {
        padding: 10px;
    }

    .discovery-card-image {
        height: auto;
        aspect-ratio: 2.5 / 3.5;
    }

    .discovery-card h2 {
        margin: 0 24px 8px;
        font-size: 0.9rem;
    }

    .discovery-counts {
        flex-direction: column;
        gap: 2px;
    }

    .discovery-detail-header {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }

    .discovery-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
