/* =========================================================
   TEAM QUACK HUB
   CLEAN REBUILD
========================================================= */

:root {
    --bg: #05020b;
    --bg-deep: #090312;

    --panel: rgba(19, 8, 34, 0.94);
    --panel-2: rgba(29, 12, 50, 0.94);

    --purple: #9c4dff;
    --purple-light: #d6a0ff;
    --purple-dark: #5d1fa5;

    --pink: #ff3b97;
    --gold: #ffd447;
    --blue: #42c8ff;
    --green: #4ee6a5;

    --text: #ffffff;
    --muted: #b9aacb;

    --border: rgba(178, 82, 255, 0.36);
    --border-bright: rgba(207, 125, 255, 0.7);

    --sidebar-width: 250px;
    --right-width: 385px;

    --radius: 22px;
    --small-radius: 13px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    overflow-x: hidden;

    color: var(--text);

    font-family:
        "Segoe UI",
        Inter,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 20% 5%,
            rgba(142, 46, 255, 0.24),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 5%,
            rgba(40, 80, 255, 0.15),
            transparent 32%
        ),
        linear-gradient(
            140deg,
            #040108,
            #090312 48%,
            #071020
        );
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}


/* =========================================================
   BAKGRUNDSLOGGA
========================================================= */

.background-logo {
    position: fixed;
    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;
}

.background-logo::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 48%;

    width: 1000px;
    height: 700px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(146, 60, 240, 0.22),
            transparent 70%
        );

    filter: blur(80px);
}

.background-logo img {
    position: absolute;

    left: 46%;
    top: 48%;

    width: min(1000px, 70vw);

    max-width: none;

    transform:
        translate(-50%, -50%);

    opacity: 0.19;

    object-fit: contain;

    filter:
        brightness(0.72)
        contrast(1.08)
        drop-shadow(
            0 30px 50px
            rgba(0, 0, 0, 0.8)
        )
        drop-shadow(
            0 0 80px
            rgba(145, 54, 255, 0.3)
        );
}


/* =========================================================
   HELA HUBBEN
========================================================= */

.hub-shell {
    position: relative;

    z-index: 2;

    width: 100%;
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: sticky;

    top: 0;

    width: var(--sidebar-width);
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 18px 16px;

    overflow-y: auto;
    overflow-x: hidden;

    background:
        linear-gradient(
            180deg,
            rgba(17, 7, 31, 0.985),
            rgba(6, 2, 13, 0.98)
        );

    border-right:
        1px solid
        rgba(172, 77, 255, 0.28);

    box-shadow:
        24px 0 70px
        rgba(0, 0, 0, 0.48);

    backdrop-filter:
        blur(25px);
}

.sidebar-brand {
    min-height: 120px;

    display: flex;

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

    padding:
        0 5px
        18px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);
}

.sidebar-logo {
    width: 100%;
    max-width: 205px;
    max-height: 125px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 12px 20px
            rgba(0, 0, 0, 0.65)
        );
}


/* =========================================================
   SIDEBAR NAV
========================================================= */

.sidebar-nav {
    display: grid;

    gap: 7px;

    margin-top: 18px;
}

.nav-link {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        0 14px;

    border:
        1px solid
        transparent;

    border-radius:
        12px;

    color:
        #d7cae7;

    text-decoration: none;

    font-size: 13px;
    font-weight: 750;

    transition:
        0.22s ease;
}

.nav-icon {
    width: 24px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
    color: white;

    background:
        linear-gradient(
            135deg,
            rgba(150, 60, 244, 0.34),
            rgba(83, 26, 135, 0.18)
        );

    border-color:
        rgba(210, 130, 255, 0.65);

    box-shadow:
        0 0 26px
        rgba(150, 65, 255, 0.12);

    transform:
        translateX(4px);
}


/* =========================================================
   QUACKY AI
========================================================= */

.quacky-panel {
    margin-top: auto;

    padding-top: 25px;

    text-align: center;
}

.quacky-label {
    display: flex;

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

    gap: 7px;

    margin-bottom: 8px;

    font-size: 11px;
}

.quacky-label span {
    padding:
        3px 7px;

    border:
        1px solid
        rgba(184, 91, 255, 0.4);

    border-radius:
        999px;

    color:
        var(--purple-light);

    background:
        rgba(125, 43, 190, 0.18);

    font-size: 8px;
}

.quacky-character {
    width: 105px;
    height: 105px;

    margin:
        0 auto;
}

.quacky-message {
    margin-top: 7px;

    padding: 9px;

    border:
        1px solid
        rgba(170, 80, 255, 0.25);

    border-radius:
        10px;

    color:
        #d9cae8;

    background:
        rgba(78, 25, 122, 0.18);

    font-size: 9px;
}


/* =========================================================
   MAIN
========================================================= */

.hub-main {
    position: relative;

    z-index: 2;

    width: 100%;
    min-width: 0;

    padding:
        22px 26px
        50px;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 22px;

    margin-bottom: 18px;
}

.welcome-area {
    min-width: 0;
}

.eyebrow {
    margin:
        0 0 5px;

    color:
        var(--purple-light);

    font-size: 9px;
    font-weight: 900;

    text-transform:
        uppercase;

    letter-spacing:
        0.18em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;

    font-size:
        clamp(
            29px,
            3vw,
            48px
        );

    line-height: 1;

    letter-spacing:
        -0.035em;
}

.welcome-subtitle {
    margin-bottom: 0;

    color:
        var(--muted);

    font-size: 11px;
}

.topbar-actions {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    width: 270px;
    height: 46px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        0 15px;

    border:
        1px solid
        rgba(184, 102, 255, 0.38);

    border-radius:
        999px;

    background:
        rgba(13, 6, 25, 0.88);

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

.search-box input {
    width: 100%;

    border: 0;
    outline: 0;

    color: white;

    background:
        transparent;
}

.search-box input::placeholder {
    color:
        #9587a7;
}


/* =========================================================
   TOP ICONS
========================================================= */

.icon-button,
.avatar-button {
    position: relative;

    width: 46px;
    height: 46px;

    display: grid;

    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(175, 84, 255, 0.27);

    border-radius:
        50%;

    color: white;

    background:
        rgba(29, 14, 48, 0.9);

    cursor: pointer;
}

.notification-count {
    position: absolute;

    top: -1px;
    right: -1px;

    min-width: 17px;
    height: 17px;

    display: grid;

    place-items: center;

    padding:
        0 4px;

    border-radius:
        999px;

    background:
        var(--pink);

    font-size: 8px;
}


/* =========================================================
   DASHBOARD — TRE KOLUMNER
   SIDEBAR / MITTEN / HÖGER
========================================================= */

.dashboard-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        var(--right-width);

    gap: 20px;

    align-items: start;
}

.dashboard-center {
    min-width: 0;

    display: grid;

    gap: 16px;
}

.dashboard-right {
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr);

    gap: 16px;

    align-content: start;
}


/* =========================================================
   STAT CARDS
========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 11px;
}

.stat-card {
    position: relative;

    min-width: 0;
    min-height: 82px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 14px;

    overflow: hidden;

    border:
        1px solid
        rgba(180, 85, 255, 0.32);

    border-radius:
        16px;

    background:
        linear-gradient(
            145deg,
            rgba(34, 16, 57, 0.96),
            rgba(16, 7, 29, 0.96)
        );

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.28),

        inset 0 1px 0
        rgba(255, 255, 255, 0.05);
}

.stat-icon {
    width: 47px;
    height: 47px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    border-radius:
        13px;

    background:
        rgba(255, 255, 255, 0.06);

    font-size: 23px;
}

.stat-content {
    min-width: 0;
}

.stat-label {
    display: block;

    color:
        #d8c9e7;

    font-size: 8px;
    font-weight: 900;

    text-transform:
        uppercase;

    letter-spacing:
        0.09em;
}

.stat-content strong {
    display: block;

    margin:
        3px 0;

    font-size: 20px;

    white-space: nowrap;
}

.stat-content small {
    display: block;

    overflow: hidden;

    color:
        var(--green);

    font-size: 9px;

    text-overflow:
        ellipsis;

    white-space: nowrap;
}


/* =========================================================
   GENERELLA KORT
========================================================= */

.hub-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(31, 13, 52, 0.95),
            rgba(12, 5, 23, 0.95)
        );

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.35),

        inset 0 1px 0
        rgba(255, 255, 255, 0.05);
}


/* =========================================================
   MISSIONS + SHOP
========================================================= */

.main-card-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 0.93fr);

    gap: 15px;

    align-items: stretch;
}

.missions-card,
.shop-card {
    min-height: 315px;

    padding: 19px;
}


/* =========================================================
   QUACK SHOP — DASHBOARD PORTAL
========================================================= */

.shop-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        170px;

    grid-template-rows:
        minmax(0, 1fr)
        auto;

    gap: 12px;

    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(156, 77, 255, 0.20),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(31, 13, 52, 0.96),
            rgba(12, 5, 23, 0.95)
        );
}


/* =========================================================
   SHOP TEXT
========================================================= */

.shop-copy {
    grid-column: 1;
    grid-row: 1;

    min-width: 0;

    align-self: center;
}

.shop-copy h2 {
    margin:
        5px 0 10px;

    font-size: 27px;
}

.shop-description {
    max-width: 310px;

    margin: 0;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.55;
}


/* =========================================================
   SHOP PORTAL VISUAL
========================================================= */

.shop-portal-visual {
    grid-column: 2;
    grid-row: 1;

    position: relative;

    min-width: 0;
    min-height: 190px;

    display: flex;

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

    overflow: hidden;
}


/* LILA GLOW BAKOM ANKAN */

.shop-portal-glow {
    position: absolute;

    width: 155px;
    height: 155px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(184, 92, 255, 0.42) 0%,
            rgba(126, 45, 220, 0.20) 38%,
            rgba(74, 23, 133, 0.08) 58%,
            transparent 74%
        );

    filter:
        blur(8px);

    animation:
        shopPortalPulse
        2.8s
        ease-in-out
        infinite;
}


/* ANKAN */

.shop-portal-image {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 210px;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 15px 20px
            rgba(0, 0, 0, 0.55)
        )
        drop-shadow(
            0 0 22px
            rgba(177, 82, 255, 0.30)
        );

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.shop-card:hover .shop-portal-image {
    transform:
        translateY(-5px)
        scale(1.04);

    filter:
        drop-shadow(
            0 18px 22px
            rgba(0, 0, 0, 0.60)
        )
        drop-shadow(
            0 0 30px
            rgba(185, 91, 255, 0.45)
        );
}


/* LITEN HOVER-EFFEKT */

.shop-card:hover .shop-portal-icon {
    transform:
        translateY(-4px)
        rotate(2deg)
        scale(1.05);

    filter:
        drop-shadow(
            0 18px 20px
            rgba(0, 0, 0, 0.60)
        )
        drop-shadow(
            0 0 26px
            rgba(185, 91, 255, 0.42)
        );
}


/* =========================================================
   SHOP BUTTON
========================================================= */

.shop-card .card-button {
    grid-column:
        1 / -1;

    grid-row: 2;

    margin-top: 0;
}


/* =========================================================
   PORTAL GLOW ANIMATION
========================================================= */

@keyframes shopPortalPulse {

    0%,
    100% {
        opacity: 0.65;

        transform:
            scale(0.92);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.08);
    }
}


/* =========================================================
   CARD HEADERS
========================================================= */

.card-heading {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 12px;

    margin-bottom: 12px;
}

.card-heading h2 {
    margin:
        4px 0 0;

    font-size: 22px;
}

.mission-count {
    flex-shrink: 0;

    padding:
        4px 8px;

    border:
        1px solid
        rgba(183, 90, 255, 0.4);

    border-radius:
        999px;

    color:
        var(--purple-light);

    background:
        rgba(119, 42, 190, 0.16);

    font-size: 8px;
}


/* =========================================================
   MISSIONS
========================================================= */

.mission-list {
    display: grid;

    gap: 7px;
}

.mission-item {
    min-width: 0;

    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        49px;

    align-items: center;

    gap: 10px;

    padding: 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);

    border-radius:
        12px;

    background:
        rgba(255, 255, 255, 0.025);
}

.mission-icon {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border-radius:
        11px;

    background:
        rgba(255, 255, 255, 0.06);

    font-size: 19px;
}

.mission-details {
    min-width: 0;
}

.mission-title-row {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 8px;

    margin-bottom: 7px;
}

.mission-title-row strong {
    overflow: hidden;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.mission-title-row span {
    flex-shrink: 0;

    color:
        var(--muted);

    font-size: 8px;
}

.xp-reward {
    min-height: 42px;

    display: grid;

    place-items: center;

    padding: 3px;

    border:
        1px solid
        rgba(69, 140, 255, 0.28);

    border-radius:
        9px;

    color:
        #8fc4ff;

    background:
        rgba(25, 59, 116, 0.17);

    text-align: center;
}

.xp-reward span {
    font-size: 7px;
}

.xp-reward strong {
    font-size: 11px;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-track {
    width: 100%;
    height: 7px;

    overflow: hidden;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 0 2px 5px
        rgba(0, 0, 0, 0.35);
}

.progress-fill {
    height: 100%;

    border-radius:
        inherit;
}

.progress-fill.pink {
    background:
        linear-gradient(
            90deg,
            #e91f7b,
            #ff56aa
        );
}

.progress-fill.gold {
    background:
        linear-gradient(
            90deg,
            #eda700,
            #ffe365
        );
}

.progress-fill.purple {
    background:
        linear-gradient(
            90deg,
            #7431d9,
            #bc59ff
        );
}


/* =========================================================
   GOLDEN DUCK MILESTONE
========================================================= */

.milestone-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px;

    grid-template-rows:
        minmax(0, 1fr)
        auto;

    gap: 12px;

    background:
        radial-gradient(
            circle at 78% 47%,
            rgba(255, 188, 30, 0.1),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(31, 13, 52, 0.96),
            rgba(12, 5, 23, 0.95)
        );
}

.milestone-copy {
    grid-column: 1;
    grid-row: 1;

    min-width: 0;

    align-self: center;
}

.milestone-copy h2 {
    margin:
        5px 0 24px;

    font-size: 28px;
}

.milestone-progress-text {
    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-bottom: 8px;
}

.milestone-progress-text strong {
    color:
        var(--gold);

    font-size: 22px;
}

.milestone-progress-text span {
    color:
        var(--muted);

    font-size: 10px;
}

.milestone-track {
    margin-bottom: 18px;
}

.milestone-reward {
    display: grid;

    gap: 4px;
}

.milestone-reward span {
    color:
        var(--muted);

    font-size: 8px;
}

.milestone-reward strong {
    color:
        #fff1b5;

    font-size: 13px;
}


/* =========================================================
   GOLDEN DUCK — TVINGAS IN I KORTET
========================================================= */

.golden-duck-display {
    grid-column: 2;
    grid-row: 1;

    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;

    width: 180px;
    min-width: 180px;
    min-height: 210px;

    display: flex;

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

    margin: 0 !important;
    padding: 0;

    overflow: hidden;
}

.golden-duck-glow {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 175px;
    height: 175px;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 203, 50, 0.34),
            rgba(255, 142, 0, 0.07) 48%,
            transparent 72%
        );

    filter:
        blur(13px);
}

.golden-duck-image {
    position: relative !important;

    z-index: 3;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    width: 145px !important;
    max-width: 145px !important;

    height: auto !important;

    margin: 0 !important;

    object-fit: contain;

    transform:
        none !important;

    animation:
        none !important;
}

.duck-pedestal {
    position: absolute;

    z-index: 2;

    left: 50%;
    bottom: 21px;

    width: 125px;
    height: 22px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        linear-gradient(
            #ffd85c,
            #a95700
        );

    box-shadow:
        0 10px 20px
        rgba(0, 0, 0, 0.5),

        0 0 25px
        rgba(255, 170, 0, 0.25);
}

.milestone-card .card-button {
    grid-column:
        1 / -1;

    grid-row: 2;

    margin-top: 0;
}


/* =========================================================
   COMMUNITY + NEWS
========================================================= */

.bottom-card-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;
}

.community-goal-card,
.news-card {
    min-width: 0;

    padding: 18px;
}

.community-progress-text {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 8px;

    margin-bottom: 8px;
}

.community-progress-text strong {
    font-size: 13px;
}

.community-progress-text span {
    color:
        var(--muted);

    font-size: 9px;
}

.community-progress-text b {
    color:
        var(--green);

    font-size: 10px;
}

.community-reward {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 10px;

    margin-top: 16px;
}

.community-reward span {
    color:
        var(--muted);

    font-size: 9px;
}

.community-reward strong {
    font-size: 12px;
}

.sticker-pack {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius:
        12px;

    background:
        linear-gradient(
            #ffe06d,
            #ff9900
        );

    font-size: 22px;
}


/* =========================================================
   NEWS
========================================================= */

.news-list {
    display: grid;

    gap: 10px;
}

.news-item {
    min-width: 0;

    display: grid;

    grid-template-columns:
        39px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 9px;
}

.news-icon {
    width: 39px;
    height: 39px;

    display: grid;

    place-items: center;

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.05);
}

.news-item > div:nth-child(2) {
    min-width: 0;
}

.news-item strong {
    display: block;

    overflow: hidden;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.news-item span {
    display: block;

    overflow: hidden;

    color:
        var(--muted);

    font-size: 8px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.news-tag {
    padding:
        4px 6px;

    border-radius:
        999px;

    background:
        var(--pink);

    font-size: 7px;
}

.news-tag.event {
    background:
        #4679ff;
}


/* =========================================================
   HÖGERKOLUMN — PROFILE
========================================================= */

.profile-card {
    position: relative;

    width: 100%;

    min-width: 0;
    min-height: 0;

    padding: 20px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 22% 10%,
            rgba(161, 75, 255, 0.14),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(33, 14, 56, 0.96),
            rgba(12, 5, 24, 0.96)
        );
}

.profile-header {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 13px;

    padding-right: 38px;
}

.profile-avatar {
    width: 74px;
    height: 74px;

    flex: 0 0 74px;

    padding: 3px;

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ffd66b,
            #ffae42,
            #a84fff,
            #ff46be
        );

    box-shadow:
        0 0 24px
        rgba(173, 75, 255, 0.32);
}

.profile-avatar img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 50%;

    background:
        #13091e;
}

.profile-identity {
    min-width: 0;
}

.profile-name-row {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 5px;
}

.profile-name-row h2 {
    max-width: 190px;

    margin: 0;

    overflow: hidden;

    font-size: 21px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.verified {
    flex-shrink: 0;

    color:
        var(--blue);
}

#profileRole {
    display: block;

    margin-top: 4px;

    color:
        #f5d76e;

    font-size: 10px;
}

.edit-profile {
    position: absolute;

    top: 12px;
    right: 12px;

    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    color: white;

    background:
        rgba(255, 255, 255, 0.06);

    cursor: pointer;
}


/* =========================================================
   LEVEL
========================================================= */

.level-row {
    margin-top: 17px;
}

.level-badge {
    display: inline-block;

    margin-bottom: 7px;

    padding:
        4px 9px;

    border:
        1px solid
        rgba(180, 90, 255, 0.32);

    border-radius:
        999px;

    background:
        rgba(155, 67, 255, 0.16);

    font-size: 9px;
}

.level-progress span {
    display: block;

    margin-top: 5px;

    color:
        var(--muted);

    font-size: 8px;
}


/* =========================================================
   PROFILE STATS
========================================================= */

.profile-stats {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 7px;

    margin-top: 16px;
}

.profile-stats div {
    min-width: 0;

    padding:
        9px 4px;

    border:
        1px solid
        rgba(255, 255, 255, 0.05);

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.035);

    text-align: center;
}

.profile-stats span {
    font-size: 14px;
}

.profile-stats strong {
    display: block;

    margin:
        4px 0 2px;

    font-size: 11px;
}

.profile-stats small {
    display: block;

    overflow: hidden;

    color:
        var(--muted);

    font-size: 7px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


/* =========================================================
   NEXT REWARD
========================================================= */

.reward-card {
    width: 100%;

    padding: 17px;
}

.reward-heading {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 10px;
}

.reward-card h2 {
    margin:
        7px 0 4px;

    font-size: 20px;
}

.reward-card > p {
    margin-bottom: 0;

    color:
        #ddd1e8;

    font-size: 9px;
}

.glow-name-preview {
    margin:
        16px 0;

    overflow: hidden;

    color: white;

    text-align: center;

    font-size: 25px;
    font-weight: 900;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    text-shadow:
        0 0 10px
        #ff4caf,

        0 0 23px
        #a54cff,

        0 0 35px
        #4dc7ff;
}

.reward-progress-text {
    margin-bottom: 7px;

    color:
        var(--pink);

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   LEADERBOARD — HÖGER
========================================================= */

.leaderboard-card {
    width: 100%;

    min-width: 0;

    padding: 17px;
}

.leaderboard-heading {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;
}

.leaderboard-heading button {
    flex-shrink: 0;

    padding: 0;

    border: 0;

    color:
        var(--purple-light);

    background:
        transparent;

    cursor: pointer;

    font-size: 8px;
}

.leaderboard-list {
    min-width: 0;

    display: grid;

    gap: 6px;
}

.leaderboard-player {
    min-width: 0;

    display: grid;

    grid-template-columns:
        24px
        34px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 7px;

    padding:
        7px 5px;

    border-radius:
        10px;

    background:
        rgba(255, 255, 255, 0.03);
}

.player-rank {
    text-align: center;

    font-size: 10px;
    font-weight: 900;
}

.leaderboard-player.first .player-rank {
    color:
        var(--gold);
}

.player-avatar {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    font-size: 18px;
}

.player-info {
    min-width: 0;
}

.player-info strong {
    display: block;

    overflow: hidden;

    font-size: 9px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.player-info span {
    display: block;

    overflow: hidden;

    font-size: 7px;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}

.leaderboard-player > b {
    flex-shrink: 0;

    font-size: 8px;
}


/* =========================================================
   KNAPPAR
========================================================= */

.card-button,
.primary-button {
    width: 100%;
    min-height: 34px;

    display: flex;

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

    gap: 6px;

    margin-top: 11px;

    padding:
        0 11px;

    border:
        1px solid
        rgba(183, 90, 255, 0.36);

    border-radius:
        9px;

    color:
        #f4e9fb;

    background:
        linear-gradient(
            145deg,
            rgba(111, 37, 179, 0.22),
            rgba(31, 12, 52, 0.5)
        );

    cursor: pointer;

    font-size: 9px;
    font-weight: 750;

    transition:
        0.2s ease;
}

.card-button:hover,
.primary-button:hover {
    border-color:
        rgba(215, 135, 255, 0.7);

    background:
        rgba(126, 43, 196, 0.34);
}


/* =========================================================
   INVITE
========================================================= */

.invite-admin-card {
    margin-top: 18px;

    padding: 18px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(30, 12, 51, 0.94),
            rgba(12, 5, 23, 0.94)
        );
}

.invite-admin-card h3 {
    margin-bottom:
        8px;
}

.invite-admin-card p {
    color:
        var(--muted);

    font-size: 10px;
}

#createInviteButton {
    min-height: 36px;

    padding:
        0 13px;

    border:
        1px solid
        rgba(190, 100, 255, 0.42);

    border-radius:
        9px;

    color: white;

    background:
        rgba(124, 40, 194, 0.28);

    cursor: pointer;

    font-size: 9px;
}

.new-invite-code {
    margin-top: 10px;

    padding: 10px;

    border-radius:
        9px;

    background:
        rgba(255, 255, 255, 0.04);

    font-size: 9px;
}


/* =========================================================
   EXTRA PAGE VIEWS
========================================================= */

.page-view {
    position: relative;

    z-index: 3;

    min-width: 0;

    padding:
        24px;
}

.page-view-header {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 18px;

    margin-bottom: 18px;
}


/* =========================================================
   PAGE TRANSITION
========================================================= */

#pageTransition {
    position: fixed;

    inset: 0;

    z-index: 99999;

    pointer-events: none;

    opacity: 0;

    background:
        #080310;

    transition:
        opacity 0.3s ease;
}

#pageTransition.active {
    opacity: 1;
}


/* =========================================================
   1600px
========================================================= */

@media (max-width: 1600px) {

    :root {
        --sidebar-width: 225px;
        --right-width: 340px;
    }

    .hub-main {
        padding:
            20px 20px
            45px;
    }

    .search-box {
        width: 230px;
    }

    .stat-card {
        padding: 11px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;

        font-size: 19px;
    }

    .stat-content strong {
        font-size: 17px;
    }

    .milestone-card {
        grid-template-columns:
            minmax(0, 1fr)
            155px;
    }

    .golden-duck-display {
        width: 155px;
        min-width: 155px;
    }

    .golden-duck-image {
        width: 125px !important;
        max-width: 125px !important;
    }
}


/* =========================================================
   1350px
========================================================= */

@media (max-width: 1350px) {

    :root {
        --right-width: 300px;
    }

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

    .topbar {
        flex-wrap: wrap;
    }

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

    .milestone-card {
        grid-template-columns:
            minmax(0, 1fr)
            190px;
    }
}


/* =========================================================
   1100px
========================================================= */

@media (max-width: 1100px) {

    .dashboard-layout {
        grid-template-columns:
            1fr;
    }

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

    .profile-card {
        grid-column:
            1;
    }

    .reward-card {
        grid-column:
            2;
    }

    .leaderboard-card {
        grid-column:
            1 / -1;
    }
}


/* =========================================================
   850px
========================================================= */

@media (max-width: 850px) {

    .hub-shell {
        grid-template-columns:
            1fr;
    }

    .sidebar {
        position: relative;

        width: 100%;
        height: auto;

        overflow:
            visible;
    }

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

    .quacky-panel {
        display: none;
    }

    .topbar {
        flex-direction:
            column;
    }

    .topbar-actions {
        width: 100%;

        flex-wrap: wrap;
    }

    .search-box {
        width: 100%;
    }

    .bottom-card-grid,
    .dashboard-right {
        grid-template-columns:
            1fr;
    }

    .profile-card,
    .reward-card,
    .leaderboard-card {
        grid-column:
            auto;
    }

    .milestone-card {
        grid-template-columns:
            1fr;

        grid-template-rows:
            auto
            auto
            auto;
    }

    .milestone-copy {
        grid-column:
            1;

        grid-row:
            1;
    }

    .golden-duck-display {
        grid-column:
            1;

        grid-row:
            2;

        width: 100%;
        min-width: 0;
    }

    .milestone-card .card-button {
        grid-column:
            1;

        grid-row:
            3;
    }
}


/* =========================================================
   550px
========================================================= */

@media (max-width: 550px) {

    .hub-main {
        padding:
            16px 10px
            35px;
    }

    .sidebar-nav {
        grid-template-columns:
            1fr;
    }

    .stats-grid {
        grid-template-columns:
            1fr;
    }

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

    .mission-item {
        grid-template-columns:
            38px
            minmax(0, 1fr);
    }

    .xp-reward {
        display: none;
    }

    .profile-stats {
        grid-template-columns:
            1fr;
    }
}
/* ============================================================
   TEAM QUACK COLLECTION
============================================================ */

#collectionList {
    width: 100%;
}


/* ============================================================
   HUVUDLAYOUT
============================================================ */

.collection-layout {

    width: 100%;

    display: grid;

    grid-template-columns:
        330px
        minmax(500px, 1fr);

    gap: 16px;

    align-items: start;

}


/* ============================================================
   VÄNSTER - VALD ANKA
============================================================ */

.duck-preview {

    position: relative;

    height: 520px;

    min-height: 520px;

    padding:
        18px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        18px;

    background:

        radial-gradient(
            circle at 50% 55%,
            rgba(255, 201, 52, 0.16),
            transparent 42%
        ),

        linear-gradient(
            145deg,
            rgba(39, 15, 65, 0.98),
            rgba(13, 5, 27, 0.98)
        );

    box-shadow:
        0 18px 50px
        rgba(0, 0, 0, 0.35);

}


/* ============================================================
   TITEL
============================================================ */

.duck-preview-title {

    position: absolute;

    top: 16px;

    left: 18px;

    right: 18px;

    text-align: left;

    color:
        var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}


/* ============================================================
   STOR ANKA
============================================================ */

.duck-preview-image {

    width: 100%;

    height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 20px;

}


.duck-preview-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 25px
            rgba(0, 0, 0, 0.55)
        );

    transition:
        transform 0.25s ease;

}


.duck-preview-image img:hover {

    transform:
        scale(1.04);

}


.duck-preview-icon {

    font-size: 120px;

}


/* ============================================================
   NAMN
============================================================ */

.duck-preview-name {

    margin-top: 5px;

    color:
        var(--text);

    font-size: 23px;

    font-weight: 900;

}


/* ============================================================
   RARITY
============================================================ */

.duck-preview-rarity {

    margin-top: 5px;

    color:
        var(--gold);

    font-size: 11px;

    font-weight: 800;

}


/* ============================================================
   VALD STATUS
============================================================ */

.duck-preview-status {

    margin-top: 12px;

    padding:
        7px 13px;

    border-radius:
        999px;

    background:
        var(--gold);

    color:
        #211405;

    font-size: 9px;

    font-weight: 900;

}


/* ============================================================
   ANK-GRID
============================================================ */

.duck-collection-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

}


/* ============================================================
   ANK-KORT
============================================================ */

.collection-item {

    position: relative;

    min-height: 240px;

    padding:
        12px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border:
        1px solid
        var(--border);

    border-radius:
        17px;

    background:
        linear-gradient(
            145deg,
            rgba(36, 15, 60, 0.96),
            rgba(12, 5, 24, 0.96)
        );

    overflow: hidden;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;

}


/* ============================================================
   UPPLÅST
============================================================ */

.collection-item.unlocked {

    cursor: pointer;

}


.collection-item.unlocked:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(190, 100, 255, 0.75);

    box-shadow:
        0 12px 30px
        rgba(130, 50, 220, 0.25);

}


/* ============================================================
   LÅST
============================================================ */

.collection-item.locked {

    opacity: 0.42;

    filter:
        grayscale(0.85);

}


/* ============================================================
   ANKA I KORT
============================================================ */

.collection-icon {

    width: 155px;

    height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.collection-icon img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


.collection-icon:not(:has(img)) {

    font-size: 80px;

}


/* ============================================================
   NAMN
============================================================ */

.collection-item h3 {

    margin:
        5px 0 2px;

    color:
        var(--text);

    font-size: 15px;

    font-weight: 900;

}


/* ============================================================
   RARITY
============================================================ */

.collection-rarity {

    color:
        var(--purple-light);

    font-size: 9px;

    font-weight: 800;

}


/* ============================================================
   STATUS
============================================================ */

.collection-item p {

    margin:
        6px 0 0;

    color:
        var(--muted);

    font-size: 8px;

}


/* ============================================================
   VALD ANKA
============================================================ */

.collection-item.selected {

    border-color:
        var(--gold);

    box-shadow:

        0 0 22px
        rgba(255, 207, 61, 0.15),

        inset 0 0 25px
        rgba(255, 207, 61, 0.04);

}


/* ============================================================
   VALD-BADGE
============================================================ */

.selected-badge {

    position: absolute;

    top: 10px;

    right: 10px;

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        var(--gold);

    color:
        #201305;

    font-size: 7px;

    font-weight: 900;

}


/* ============================================================
   FEL
============================================================ */

.collection-error {

    padding: 30px;

    border:
        1px solid
        rgba(255, 80, 100, 0.4);

    border-radius:
        16px;

    color:
        #ff8797;

    background:
        rgba(255, 50, 80, 0.08);

}


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

@media (max-width: 1100px) {

    .collection-layout {

        grid-template-columns:
            300px
            minmax(400px, 1fr);

    }


    .duck-preview {

        height: 480px;

        min-height: 480px;

    }


    .duck-preview-image {

        height: 270px;

    }

}


@media (max-width: 850px) {

    .collection-layout {

        grid-template-columns:
            1fr;

    }


    .duck-preview {

        height: 460px;

        min-height: 460px;

    }


    .duck-preview-image {

        height: 270px;

    }

}


@media (max-width: 560px) {

    .duck-collection-grid {

        grid-template-columns:
            1fr;

    }

}
/* ============================================================
   TEAM QUACK - COLLECTION PAGE
============================================================ */

.collection-page-layout {
    width: 100%;
    margin-top: 8px;
}


/* ============================================================
   COLLECTION CONTENT
============================================================ */

.collection-content {
    width: 100%;
}


/* ============================================================
   VÄNSTER VALD ANKA + HÖGER GRID
============================================================ */

.collection-layout {

    width: 100%;

    display: grid;

    grid-template-columns:
        330px
        minmax(0, 1fr);

    gap: 16px;

    align-items: start;

}


/* ============================================================
   VALD ANKA
============================================================ */

.duck-preview {

    width: 330px;

    height: 520px;

    min-height: 520px;

    box-sizing: border-box;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 18px;

    overflow: hidden;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 18px;

    background:

        radial-gradient(
            circle at 50% 45%,
            rgba(255, 204, 60, 0.18),
            transparent 45%
        ),

        linear-gradient(
            145deg,
            rgba(38, 15, 64, 0.98),
            rgba(11, 4, 24, 0.98)
        );

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35);

}


/* ============================================================
   TITEL
============================================================ */

.duck-preview-title {

    position: absolute;

    top: 15px;

    left: 18px;

    right: 18px;

    text-align: left;

    color: var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    text-transform: uppercase;

}


/* ============================================================
   STOR ANKA
============================================================ */

.duck-preview-image {

    width: 100%;

    height: 300px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 20px;

}


.duck-preview-image img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 25px
            rgba(0, 0, 0, 0.55)
        );

    transition:
        transform 0.2s ease;

}


.duck-preview-image img:hover {

    transform: scale(1.04);

}


.duck-preview-icon {

    font-size: 120px;

}


/* ============================================================
   NAMN
============================================================ */

.duck-preview-name {

    margin-top: 4px;

    color: var(--text);

    font-size: 22px;

    font-weight: 900;

}


/* ============================================================
   RARITY
============================================================ */

.duck-preview-rarity {

    margin-top: 5px;

    color: var(--gold);

    font-size: 10px;

    font-weight: 800;

}


/* ============================================================
   VALD
============================================================ */

.duck-preview-status {

    margin-top: 12px;

    padding: 7px 13px;

    border-radius: 999px;

    background: var(--gold);

    color: #211405;

    font-size: 8px;

    font-weight: 900;

}


/* ============================================================
   ANK-GRID
============================================================ */

.duck-collection-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

}


/* ============================================================
   ANK-KORT
============================================================ */

.collection-item {

    position: relative;

    min-height: 245px;

    box-sizing: border-box;

    padding: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            rgba(36, 15, 60, 0.96),
            rgba(12, 5, 24, 0.96)
        );

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;

}


/* ============================================================
   UPPLÅST
============================================================ */

.collection-item.unlocked {

    cursor: pointer;

}


.collection-item.unlocked:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(190, 100, 255, 0.75);

    box-shadow:
        0 12px 30px
        rgba(130, 50, 220, 0.25);

}


/* ============================================================
   LÅST
============================================================ */

.collection-item.locked {

    opacity: 0.42;

    filter: grayscale(0.85);

}


/* ============================================================
   ANKA I KORT
============================================================ */

.collection-icon {

    width: 150px;

    height: 145px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.collection-icon img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


/* ============================================================
   KORTTEXT
============================================================ */

.collection-item h3 {

    margin:
        5px 0 2px;

    color: var(--text);

    font-size: 15px;

    font-weight: 900;

}


.collection-rarity {

    color: var(--purple-light);

    font-size: 9px;

    font-weight: 800;

}


.collection-item p {

    margin:
        6px 0 0;

    color: var(--muted);

    font-size: 8px;

}


/* ============================================================
   VALD ANKA
============================================================ */

.collection-item.selected {

    border-color:
        var(--gold);

    box-shadow:

        0 0 22px
        rgba(255, 207, 61, 0.18),

        inset 0 0 25px
        rgba(255, 207, 61, 0.05);

}


/* ============================================================
   VALD-BADGE
============================================================ */

.selected-badge {

    position: absolute;

    top: 9px;

    right: 9px;

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        var(--gold);

    color:
        #211405;

    font-size: 7px;

    font-weight: 900;

}


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

@media (max-width: 1250px) {

    .collection-layout {

        grid-template-columns:
            300px
            minmax(0, 1fr);

    }

    .duck-preview {

        width: 300px;

    }

    .duck-collection-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 850px) {

    .collection-layout {

        grid-template-columns: 1fr;

    }

    .duck-preview {

        width: 100%;

        height: 450px;

        min-height: 450px;

    }

    .duck-collection-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 550px) {

    .duck-collection-grid {

        grid-template-columns: 1fr;

    }

}
/* ============================================================
   LÅSTA ANKOR
============================================================ */

.duck-card.locked {
    filter: none;
    opacity: 0.65;
}


/* Gör själva ankan mörk när den är låst */

.duck-card.locked .duck-image {
    filter:
        grayscale(100%)
        brightness(0.45)
        contrast(0.85);

    opacity: 0.7;
}


/* Låsta kort ska inte få upplåst-glow */

.duck-card.locked {
    border-color:
        rgba(130, 70, 180, 0.35);

    box-shadow: none;
}


/* Upplåsta ankor får tillbaka färgen */

.duck-card.unlocked .duck-image {
    filter: none;
    opacity: 1;
}
/* =====================================================
   MISSIONS - TYDLIGARE KORT
===================================================== */

.missions-page {
    position: relative;
    z-index: 5;
}


/* Varje mission */

.mission-item {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 72px;

    padding: 12px 14px;

    margin-bottom: 10px;

    background:
        linear-gradient(
            90deg,
            rgba(31, 12, 55, 0.96),
            rgba(16, 12, 40, 0.96)
        );

    border: 1px solid
        rgba(164, 75, 255, 0.35);

    border-radius: 12px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(8px);

    color: #fff;
}


/* Hover */

.mission-item:hover {

    border-color:
        rgba(210, 100, 255, 0.75);

    background:
        linear-gradient(
            90deg,
            rgba(48, 18, 78, 0.98),
            rgba(20, 15, 48, 0.98)
        );

    transform:
        translateY(-1px);

    transition:
        0.15s ease;
}


/* Ikonen */

.mission-icon {

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;

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

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.08);

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

    font-size: 20px;

    box-shadow:
        inset 0 0 15px
        rgba(255, 255, 255, 0.04);
}


/* Mission-info */

.mission-details {

    flex: 1;

    min-width: 0;
}


/* Titelrad */

.mission-title-row {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 8px;

    color: #fff;
}


/* Missionnamn */

.mission-title-row strong {

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    text-shadow:
        0 1px 4px
        rgba(0, 0, 0, 0.8);
}


/* Progress-text */

.mission-title-row span {

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 11px;

    white-space: nowrap;
}


/* =====================================================
   PROGRESSBAR
===================================================== */

.progress-track {

    width: 100%;

    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(0, 0, 0, 0.55);

    border: 1px solid
        rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 0 2px 5px
        rgba(0, 0, 0, 0.5);
}


.progress-fill {

    height: 100%;

    min-width: 0;

    border-radius: 999px;

    transition:
        width 0.4s ease;

    box-shadow:
        0 0 10px
        rgba(255, 255, 255, 0.25);
}


/* =====================================================
   XP
===================================================== */

.xp-reward {

    flex: 0 0 55px;

    display: flex;

    flex-direction: column;

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

    min-height: 42px;

    border-radius: 9px;

    background:
        rgba(12, 7, 30, 0.8);

    border: 1px solid
        rgba(95, 130, 255, 0.45);

    box-shadow:
        0 0 12px
        rgba(90, 80, 255, 0.12);
}


.xp-reward span {

    font-size: 8px;

    color:
        rgba(255, 255, 255, 0.55);

    font-weight: 700;
}


.xp-reward strong {

    font-size: 12px;

    color: #fff;
}


/* =====================================================
   KLAR MISSION
===================================================== */

.mission-item.completed {

    border-color:
        rgba(255, 200, 60, 0.65);

    background:
        linear-gradient(
            90deg,
            rgba(58, 35, 20, 0.96),
            rgba(28, 16, 40, 0.96)
        );
}


.mission-item.completed
.progress-fill {

    box-shadow:
        0 0 15px
        rgba(255, 190, 50, 0.6);
}


/* =====================================================
   BAKGRUNDSLOGGAN
   Ska ligga bakom allt innehåll
===================================================== */

.background-logo {

    z-index: 0 !important;

    pointer-events: none;

}


.background-logo img {

    opacity: 0.12 !important;

}


/* Innehållet ovanför loggan */

.hub-shell,
.hub-main,
.sidebar,
.topbar {

    position: relative;

    z-index: 2;

}
/* =====================================================
   COLLECTION - DUCK CARDS
===================================================== */

.collection-content {
    position: relative;
    z-index: 2;
}


/* Grid */

#collectionList {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
}


/* Kort */

.collection-duck-card {

    position: relative;

    min-height: 210px;

    padding: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(29, 13, 51, 0.95),
            rgba(12, 9, 28, 0.96)
        );

    border: 1px solid
        rgba(150, 70, 230, 0.25);

    text-align: center;

    overflow: hidden;

    transition:
        0.25s ease;
}


/* =====================================================
   ANKAN
===================================================== */

.collection-duck-image-wrap {

    height: 125px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.collection-duck-image {

    width: 150px;

    height: 120px;

    object-fit: contain;

    transition:
        0.3s ease;
}


/* =====================================================
   LÅST ANKA
===================================================== */

.collection-duck-card.locked
.collection-duck-image {

    filter:
        grayscale(100%)
        brightness(48%)
        saturate(15%);

    opacity: 0.60;
}


/* Låst kort */

.collection-duck-card.locked {

    opacity: 0.72;

    border-color:
        rgba(120, 90, 150, 0.18);

}


/* =====================================================
   UPPLÅST ANKA
===================================================== */

.collection-duck-card.unlocked {

    border-color:
        rgba(255, 196, 45, 0.65);

    box-shadow:
        0 0 25px
        rgba(255, 190, 40, 0.12);
}


.collection-duck-card.unlocked
.collection-duck-image {

    filter: none;

    opacity: 1;

}


/* =====================================================
   TEXT
===================================================== */

.collection-duck-card h2 {

    margin:
        5px 0 3px;

    color: #fff;

    font-size: 17px;
}


.collection-rarity {

    font-size: 11px;

    font-weight: 700;

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


.collection-duck-card p {

    margin:
        8px 0;

    font-size: 11px;

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


/* =====================================================
   STATUS
===================================================== */

.collection-status {

    display: inline-block;

    padding:
        5px 10px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 800;

    background:
        rgba(0,0,0,0.35);
}


/* Upplåst */

.collection-duck-card.unlocked
.collection-status {

    color: #ffd84a;

    border:
        1px solid
        rgba(255,200,50,0.45);
}


/* Låst */

.collection-duck-card.locked
.collection-status {

    color:
        rgba(255,255,255,0.45);

    border:
        1px solid
        rgba(255,255,255,0.1);
}
/* =====================================================
   COLLECTION - KORT
===================================================== */

.collection-duck-card {
    background:
        linear-gradient(
            145deg,
            rgba(25, 10, 45, 0.97),
            rgba(8, 7, 22, 0.98)
        );
}

.collection-duck-card.locked {
    background:
        linear-gradient(
            145deg,
            rgba(20, 12, 35, 0.94),
            rgba(8, 8, 20, 0.97)
        );
}
/* =====================================================
   LEADERBOARD
===================================================== */

.leaderboard-page {
    position: relative;
    z-index: 2;
}


/* PODIUM */

.leaderboard-podium {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;

    margin-bottom: 18px;
}


.leaderboard-podium-player {
    min-height: 190px;

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

    gap: 7px;

    padding: 20px;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(30, 12, 52, 0.97),
            rgba(10, 8, 25, 0.98)
        );

    border: 1px solid
        rgba(150, 70, 230, 0.35);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.3);
}


.leaderboard-podium-player.rank-1 {
    border-color:
        rgba(255, 200, 50, 0.75);

    box-shadow:
        0 0 30px
        rgba(255, 190, 40, 0.12);
}


.podium-rank {
    font-size: 28px;
}


.podium-avatar {
    width: 58px;
    height: 58px;

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

    border-radius: 50%;

    background:
        rgba(255,255,255,0.07);

    font-size: 28px;
}


.leaderboard-podium-player strong {
    color: #fff;
    font-size: 17px;
}


.leaderboard-podium-player span {
    color:
        rgba(255,255,255,0.6);

    font-size: 11px;
}


.leaderboard-podium-player b {
    color: #ffd84a;
}


/* LISTA */

.leaderboard-card {
    padding: 18px;

    border-radius: 16px;

    background:
        rgba(20, 10, 38, 0.95);

    border: 1px solid
        rgba(150, 70, 230, 0.3);
}


.leaderboard-card-header {
    margin-bottom: 12px;
}


.leaderboard-card-header strong {
    display: block;

    color: #fff;

    font-size: 18px;
}


.leaderboard-card-header span {
    color:
        rgba(255,255,255,0.5);

    font-size: 11px;
}


/* SPELARE */

.leaderboard-player {
    display: flex;
    align-items: center;

    gap: 14px;

    min-height: 62px;

    padding: 10px 14px;

    margin-bottom: 8px;

    border-radius: 10px;

    background:
        rgba(255,255,255,0.035);

    border: 1px solid
        rgba(255,255,255,0.04);
}


.leaderboard-player.first {
    border-color:
        rgba(255,200,50,0.35);
}


.player-rank {
    width: 35px;

    text-align: center;

    color: #fff;

    font-weight: 800;
}


.player-avatar {
    width: 40px;
    height: 40px;

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

    border-radius: 50%;

    background:
        rgba(255,255,255,0.06);

    font-size: 20px;
}


.player-info {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.player-info strong {
    color: #fff;
}


.player-info span {
    color:
        rgba(255,255,255,0.5);

    font-size: 10px;
}


.leaderboard-player > b {
    color: #ffd84a;

    font-size: 15px;
}
/* =========================================================
   PROFILE XP BAR
========================================================= */

#profileXPBar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100%;
    transition: width 0.3s ease;
}
/* =========================================================
   PROFILE XP BAR
========================================================= */

.profile-xp-bar {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.profile-xp-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #8f45ff,
            #d66bff
        );

    transition:
        width 0.35s ease;
}


/* =========================================================
   TEAM QUACK — LEADERBOARD NY DESIGN
   DEL 1
   Lägg längst ner i style.css
========================================================= */


/* =========================================================
   LEADERBOARD PAGE
========================================================= */

.leaderboard-page {
    position: relative;
    z-index: 2;

    width: 100%;
}


/* =========================================================
   PODIUM — 2 / 1 / 3
========================================================= */

.leaderboard-podium {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.15fr)
        minmax(0, 0.95fr);

    align-items: end;

    gap: 22px;

    margin:
        32px 0
        38px;

    padding:
        48px 10px
        10px;

    box-sizing: border-box;
}


/* =========================================================
   ALLA TRE PODIUM-KORT
========================================================= */

.podium-player {
    position: relative;

    min-width: 0;
    min-height: 245px;

    display: flex;

    flex-direction: column;

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

    padding:
        35px 20px
        26px;

    box-sizing: border-box;

    border:
        2px solid
        rgba(150, 70, 255, 0.45);

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(155, 70, 255, 0.18),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(37, 17, 62, 0.98),
            rgba(12, 6, 27, 0.98)
        );

    box-shadow:
        0 22px 55px
        rgba(0, 0, 0, 0.42),

        inset 0 1px 0
        rgba(255, 255, 255, 0.06);

    text-align: center;

    overflow: visible;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   #2 — VÄNSTER
========================================================= */

.podium-position-2 {
    border-color:
        rgba(190, 200, 255, 0.65);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(170, 175, 255, 0.16),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(37, 26, 65, 0.98),
            rgba(13, 7, 29, 0.98)
        );

    box-shadow:
        0 0 28px
        rgba(164, 174, 255, 0.10),

        0 22px 55px
        rgba(0, 0, 0, 0.42);
}


/* =========================================================
   #1 — MITTEN / VINNAREN
========================================================= */

.podium-position-1 {
    min-height: 305px;

    transform:
        translateY(-20px);

    border:
        3px solid
        rgba(255, 207, 55, 0.95);

    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(255, 205, 48, 0.26),
            transparent 42%
        ),
        radial-gradient(
            circle at 50% 90%,
            rgba(139, 62, 255, 0.12),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            rgba(69, 42, 14, 0.98),
            rgba(34, 17, 48, 0.98) 58%,
            rgba(12, 6, 27, 0.98)
        );

    box-shadow:
        0 0 40px
        rgba(255, 205, 45, 0.25),

        0 26px 65px
        rgba(0, 0, 0, 0.52),

        inset 0 0 35px
        rgba(255, 210, 60, 0.07);
}


/* =========================================================
   #3 — HÖGER
========================================================= */

.podium-position-3 {
    border-color:
        rgba(226, 133, 69, 0.70);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(220, 112, 48, 0.16),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(57, 27, 35, 0.98),
            rgba(13, 7, 29, 0.98)
        );

    box-shadow:
        0 0 28px
        rgba(220, 112, 48, 0.10),

        0 22px 55px
        rgba(0, 0, 0, 0.42);
}


/* =========================================================
   MEDALJ / KRONA
========================================================= */

.podium-medal {
    position: absolute;

    top: -30px;
    left: 50%;

    transform:
        translateX(-50%);

    z-index: 3;

    font-size: 50px;
    line-height: 1;

    filter:
        drop-shadow(
            0 8px 12px
            rgba(0, 0, 0, 0.5)
        );
}


/* Stor krona på vinnaren */

.podium-position-1
.podium-medal {
    top: -48px;

    font-size: 72px;

    filter:
        drop-shadow(
            0 0 16px
            rgba(255, 205, 55, 0.65)
        )
        drop-shadow(
            0 10px 12px
            rgba(0, 0, 0, 0.5)
        );

    animation:
        leaderboard-crown-float
        2.2s
        ease-in-out
        infinite;
}


/* =========================================================
   PLATSNUMMER
========================================================= */

.podium-number {
    position: absolute;

    top: 18px;
    left: 18px;

    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

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

    font-size: 14px;
    font-weight: 1000;
}


/* Guldnummer på #1 */

.podium-position-1
.podium-number {
    color:
        #211300;

    background:
        linear-gradient(
            145deg,
            #fff39a,
            #ffc52e
        );

    border-color:
        rgba(255, 235, 130, 0.9);

    box-shadow:
        0 0 20px
        rgba(255, 200, 40, 0.40);
}


/* =========================================================
   AVATAR-RING
========================================================= */

.podium-avatar-wrap {
    position: relative;

    width: 102px;
    height: 102px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    margin:
        10px 0
        18px;

    padding: 4px;

    box-sizing: border-box;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #b55cff,
            #6330ca
        );

    box-shadow:
        0 0 28px
        rgba(157, 70, 255, 0.30);
}


/* #2 silver */

.podium-position-2
.podium-avatar-wrap {
    background:
        linear-gradient(
            145deg,
            #f0f1ff,
            #9ca4ca
        );

    box-shadow:
        0 0 28px
        rgba(186, 197, 255, 0.22);
}


/* #1 guld */

.podium-position-1
.podium-avatar-wrap {
    width: 132px;
    height: 132px;

    margin-top: 18px;

    padding: 5px;

    background:
        linear-gradient(
            145deg,
            #fff49b,
            #ffb91f,
            #ffe25e
        );

    box-shadow:
        0 0 30px
        rgba(255, 198, 36, 0.55),

        0 0 65px
        rgba(255, 198, 36, 0.14);
}


/* #3 brons */

.podium-position-3
.podium-avatar-wrap {
    background:
        linear-gradient(
            145deg,
            #f2a15e,
            #a94c1c
        );

    box-shadow:
        0 0 28px
        rgba(220, 111, 45, 0.22);
}


/* =========================================================
   SJÄLVA AVATAREN
========================================================= */

.podium-avatar {
    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    overflow: hidden;

    box-sizing: border-box;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #211037,
            #090411
        );

    border:
        3px solid
        rgba(8, 4, 16, 0.85);

    font-size: 48px;
    line-height: 1;
}


.podium-position-1
.podium-avatar {
    font-size: 62px;
}


/* Om avatar senare blir en riktig bild */

.podium-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}
/* =========================================================
   TEAM QUACK — LEADERBOARD NY DESIGN
   DEL 2
========================================================= */


/* =========================================================
   SPELARNAMN I PODIUM
========================================================= */

.podium-name {
    width: 100%;

    margin-top: 2px;

    overflow: hidden;

    color: #ffffff;

    font-size:
        clamp(
            18px,
            1.8vw,
            27px
        );

    font-weight: 1000;

    text-align: center;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.podium-position-1
.podium-name {
    font-size:
        clamp(
            22px,
            2.2vw,
            32px
        );
}


/* =========================================================
   PODIUM POÄNG
========================================================= */

.podium-points {
    margin-top: 10px;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 14px;
    font-weight: 850;

    letter-spacing: 0.01em;
}


.podium-position-1
.podium-points {
    color: #ffd84d;

    font-size: 18px;

    text-shadow:
        0 0 14px
        rgba(255, 211, 70, 0.25);
}


.podium-position-2
.podium-points {
    color: #d6d9ff;
}


.podium-position-3
.podium-points {
    color: #f2aa73;
}


/* =========================================================
   HOVER PÅ PODIUM
========================================================= */

.podium-position-2:hover,
.podium-position-3:hover {
    transform:
        translateY(-6px);
}


.podium-position-1:hover {
    transform:
        translateY(-27px)
        scale(1.015);
}


/* =========================================================
   ALLA SPELARE — KORT
========================================================= */

.leaderboard-card {
    width: 100%;

    margin-top: 12px;

    padding: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(166, 77, 255, 0.34);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(27, 12, 48, 0.96),
            rgba(10, 5, 22, 0.97)
        );

    box-shadow:
        0 22px 55px
        rgba(0, 0, 0, 0.36),

        inset 0 1px 0
        rgba(255, 255, 255, 0.04);
}


/* =========================================================
   HEADER — ALLA SPELARE
========================================================= */

.leaderboard-card-header {
    min-height: 68px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        16px 20px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);

    background:
        linear-gradient(
            90deg,
            rgba(125, 43, 205, 0.08),
            transparent
        );
}


.leaderboard-card-header > div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.leaderboard-card-header strong {
    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
}


.leaderboard-card-header span {
    color: var(--muted);

    font-size: 9px;
}


/* =========================================================
   LISTAN
========================================================= */

.leaderboard-list {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 9px;

    padding: 14px;

    box-sizing: border-box;
}


/* =========================================================
   SPELARRAD
========================================================= */

.leaderboard-player {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 72px;

    display: grid;

    grid-template-columns:
        58px
        54px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    padding:
        9px 18px;

    box-sizing: border-box;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.045);

    border-radius: 15px;

    background:
        linear-gradient(
            90deg,
            rgba(48, 27, 76, 0.86),
            rgba(27, 14, 49, 0.92)
        );

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

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


.leaderboard-player::before {
    content: "";

    position: absolute;

    left: 0;
    top: 12px;
    bottom: 12px;

    width: 3px;

    border-radius:
        0 5px 5px 0;

    background:
        linear-gradient(
            #b45cff,
            #6b2dcb
        );

    opacity: 0.55;
}


.leaderboard-player:hover {
    transform:
        translateX(5px);

    border-color:
        rgba(178, 90, 255, 0.30);

    background:
        linear-gradient(
            90deg,
            rgba(61, 33, 96, 0.96),
            rgba(31, 16, 56, 0.96)
        );

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.22),

        inset 0 1px 0
        rgba(255, 255, 255, 0.04);
}


/* =========================================================
   RANK #4+
========================================================= */

.leaderboard-player
.player-rank {
    width: 100%;

    color:
        rgba(255, 255, 255, 0.86);

    text-align: center;

    font-size: 16px;
    font-weight: 1000;

    letter-spacing:
        -0.02em;
}


/* =========================================================
   AVATAR #4+
========================================================= */

.leaderboard-player
.player-avatar {
    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border:
        2px solid
        rgba(151, 74, 255, 0.72);

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(76, 33, 122, 0.85),
            rgba(23, 11, 42, 0.92)
        );

    box-shadow:
        0 0 17px
        rgba(147, 70, 255, 0.12);

    font-size: 24px;
}


.leaderboard-player
.player-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


/* =========================================================
   SPELARINFO
========================================================= */

.leaderboard-player
.player-info {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.leaderboard-player
.player-info strong {
    display: block;

    overflow: hidden;

    color: #ffffff;

    font-size: 15px;
    font-weight: 900;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   QUACKS + LIKES
========================================================= */

.leaderboard-player
.player-stats {
    display: block;

    overflow: hidden;

    color:
        rgba(225, 212, 239, 0.62);

    font-size: 10px;
    font-weight: 650;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.stats-divider {
    margin:
        0 5px;

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


/* =========================================================
   POÄNG HÖGER
========================================================= */

.leaderboard-player
.player-points {
    flex-shrink: 0;

    padding:
        6px 9px;

    border:
        1px solid
        rgba(255, 211, 70, 0.10);

    border-radius: 10px;

    color: #ffd84d;

    background:
        rgba(255, 205, 55, 0.035);

    font-size: 16px;
    font-weight: 1000;

    white-space: nowrap;

    text-shadow:
        0 0 12px
        rgba(255, 211, 70, 0.12);
}


/* =========================================================
   TOM LISTA / FELMEDDELANDEN
========================================================= */

.leaderboard-page
.empty {
    width: 100%;

    padding:
        32px 20px;

    color:
        rgba(255, 255, 255, 0.60);

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   KRONAN SVÄVAR
========================================================= */

@keyframes leaderboard-crown-float {

    0%,
    100% {
        transform:
            translateX(-50%)
            translateY(0)
            rotate(-2deg);
    }

    50% {
        transform:
            translateX(-50%)
            translateY(-6px)
            rotate(2deg);
    }
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .leaderboard-podium {
        gap: 12px;

        padding-left: 0;
        padding-right: 0;
    }


    .podium-player {
        min-height: 220px;

        padding-left: 12px;
        padding-right: 12px;
    }


    .podium-position-1 {
        min-height: 270px;
    }


    .podium-avatar-wrap {
        width: 86px;
        height: 86px;
    }


    .podium-position-1
    .podium-avatar-wrap {
        width: 108px;
        height: 108px;
    }
}


/* =========================================================
   RESPONSIVE — MOBIL
========================================================= */

@media (max-width: 750px) {

    .leaderboard-podium {
        grid-template-columns:
            1fr;

        align-items: stretch;

        gap: 52px;

        padding-top: 55px;
    }


    .podium-position-1 {
        order: 1;

        min-height: 270px;

        transform: none;
    }


    .podium-position-2 {
        order: 2;
    }


    .podium-position-3 {
        order: 3;
    }


    .podium-position-1:hover,
    .podium-position-2:hover,
    .podium-position-3:hover {
        transform:
            translateY(-4px);
    }


    .leaderboard-player {
        grid-template-columns:
            42px
            46px
            minmax(0, 1fr)
            auto;

        gap: 8px;

        padding:
            9px 10px;
    }


    .leaderboard-player
    .player-rank {
        font-size: 13px;
    }


    .leaderboard-player
    .player-avatar {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }


    .leaderboard-player
    .player-info strong {
        font-size: 13px;
    }


    .leaderboard-player
    .player-stats {
        font-size: 8px;
    }


    .leaderboard-player
    .player-points {
        padding:
            5px 6px;

        font-size: 12px;
    }
}


/* =========================================================
   MYCKET SMÅ SKÄRMAR
========================================================= */

@media (max-width: 480px) {

    .leaderboard-player {
        grid-template-columns:
            36px
            40px
            minmax(0, 1fr);
    }


    .leaderboard-player
    .player-points {
        grid-column:
            2 / -1;

        justify-self: end;

        margin-top: -3px;
    }
}
/* =========================================================
   TEAM QUACK — PROFILE SHOWCASE
   CSS DEL 1
========================================================= */


/* =========================================================
   PROFILE PAGE
========================================================= */

.profile-page {
    width: min(1450px, 100%);

    margin: 0 auto;

    padding:
        24px 10px
        60px;
}


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

.profile-page-header {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-end;

    gap: 22px;

    margin-bottom: 26px;
}


.profile-page-header h1 {
    margin:
        5px 0
        8px;

    font-size:
        clamp(
            38px,
            5vw,
            66px
        );

    line-height: 0.95;
}


.profile-page-subtitle {
    max-width: 720px;

    margin: 0;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.6;
}


.profile-back-button {
    width: auto;

    min-width: 150px;

    margin-top: 0;
}


/* =========================================================
   SHOWCASE
========================================================= */

.profile-showcase {
    position: relative;

    width: 100%;

    margin-bottom: 28px;
}


/* =========================================================
   BANNER
========================================================= */

.profile-banner {
    position: relative;

    width: 100%;

    min-height: 430px;

    overflow: hidden;

    border:
        1px solid
        rgba(190, 105, 255, 0.46);

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(255, 193, 43, 0.12),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            rgba(48, 20, 80, 0.97),
            rgba(10, 7, 27, 0.98)
        );

    box-shadow:
        0 28px 75px
        rgba(0, 0, 0, 0.42),

        inset 0 1px 0
        rgba(255, 255, 255, 0.05);
}


/* =========================================================
   BANNER IMAGE
========================================================= */

.profile-banner-image {
    position: absolute;

    inset: 0;

    z-index: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    pointer-events: none;
}


/* När vi senare väljer en riktig banner */

.profile-banner.has-banner
.profile-banner-image {
    opacity: 1;
}


/* =========================================================
   OVERLAY
========================================================= */

.profile-banner-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(8, 3, 18, 0.90) 0%,
            rgba(14, 6, 28, 0.68) 42%,
            rgba(8, 3, 18, 0.34) 100%
        );
}


/* =========================================================
   EFFECT LAYER
========================================================= */

.profile-banner-effects {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.profile-showcase-content {
    position: relative;

    z-index: 3;

    min-height: 285px;

    display: flex;

    align-items: center;

    gap: 28px;

    padding:
        42px 42px
        22px;
}


/* =========================================================
   AVATAR WRAP
========================================================= */

.profile-showcase-avatar-wrap {
    position: relative;

    width: 165px;
    height: 165px;

    flex:
        0 0 165px;

    display: grid;

    place-items: center;

    padding: 5px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ffe887,
            #ffbb27,
            #b950ff
        );

    box-shadow:
        0 0 36px
        rgba(255, 199, 46, 0.24),

        0 18px 45px
        rgba(0, 0, 0, 0.42);
}


/* =========================================================
   AVATAR
========================================================= */

.profile-showcase-avatar {
    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    overflow: hidden;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(173, 78, 255, 0.22),
            rgba(19, 8, 34, 0.98)
        );

    border:
        4px solid
        rgba(10, 4, 18, 0.90);
}


.profile-showcase-avatar img {
    width: 88%;
    height: 88%;

    max-width: 88%;

    object-fit: contain;

    border-radius: 50%;
}


/* =========================================================
   IDENTITET
========================================================= */

.profile-showcase-identity {
    min-width: 0;

    max-width: 700px;
}


.profile-showcase-name-row {
    display: flex;

    align-items: center;

    gap: 10px;
}


.profile-showcase-name {
    margin: 0;

    overflow: hidden;

    color: #ffffff;

    font-size:
        clamp(
            34px,
            4vw,
            56px
        );

    font-weight: 1000;

    letter-spacing:
        -0.04em;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   VERIFIED
========================================================= */

.profile-verified {
    width: 27px;
    height: 27px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            #ab56ff,
            #6330d0
        );

    box-shadow:
        0 0 18px
        rgba(150, 70, 255, 0.32);

    font-size: 11px;
}


/* =========================================================
   TITLE
========================================================= */

.profile-showcase-title {
    display: inline-flex;

    align-items: center;

    margin-top: 8px;

    padding:
        6px 11px;

    border:
        1px solid
        rgba(255, 210, 70, 0.28);

    border-radius: 999px;

    color: #ffd84d;

    background:
        rgba(255, 208, 58, 0.07);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* =========================================================
   BIO
========================================================= */

.profile-showcase-bio {
    max-width: 650px;

    margin:
        15px 0
        0;

    color:
        rgba(235, 225, 244, 0.72);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   SHOWCASE STATS
========================================================= */

.profile-showcase-stats {
    position: relative;

    z-index: 3;

    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 10px;

    margin:
        0 28px
        20px;

    padding-top: 18px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);
}


.profile-showcase-stat {
    min-width: 0;

    padding:
        14px 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.035);

    text-align: center;
}


.profile-showcase-stat span {
    display: block;

    color:
        rgba(220, 205, 235, 0.58);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 0.12em;
}


.profile-showcase-stat strong {
    display: block;

    margin-top: 5px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 1000;
}


/* =========================================================
   XP
========================================================= */

.profile-showcase-xp {
    position: relative;

    z-index: 3;

    margin:
        0 28px
        28px;

    padding:
        16px 18px;

    border:
        1px solid
        rgba(175, 82, 255, 0.22);

    border-radius: 16px;

    background:
        rgba(18, 8, 32, 0.66);
}


.profile-showcase-xp-top {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 15px;

    margin-bottom: 9px;
}


.profile-showcase-xp-top span {
    color:
        rgba(225, 214, 235, 0.64);

    font-size: 10px;
    font-weight: 800;
}


.profile-showcase-xp-top strong {
    color: #ffffff;

    font-size: 11px;
}


/* =========================================================
   XP BAR
========================================================= */

.profile-xp-bar {
    width: 100%;
    height: 10px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.08);

    box-shadow:
        inset 0 2px 6px
        rgba(0, 0, 0, 0.38);
}


.profile-xp-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #7e32df,
            #c35aff,
            #ffd54a
        );

    box-shadow:
        0 0 18px
        rgba(174, 75, 255, 0.32);

    transition:
        width 0.6s ease;
}


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

@media (max-width: 900px) {

    .profile-showcase-content {
        flex-direction: column;

        align-items: flex-start;

        padding:
            34px 24px
            20px;
    }


    .profile-showcase-stats {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .profile-showcase-stat:last-child {
        grid-column:
            1 / -1;
    }
}


@media (max-width: 620px) {

    .profile-page-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .profile-showcase-avatar-wrap {
        width: 130px;
        height: 130px;

        flex-basis: 130px;
    }


    .profile-showcase-stats {
        grid-template-columns:
            1fr;
    }


    .profile-showcase-stat:last-child {
        grid-column: auto;
    }


    .profile-showcase-xp {
        margin-left: 16px;
        margin-right: 16px;
    }
}
/* =========================================================
   TEAM QUACK — PROFILE CUSTOMIZER
   CSS DEL 2
========================================================= */


/* =========================================================
   CUSTOMIZER
========================================================= */

.profile-customizer {
    margin-top: 30px;

    padding: 28px;

    border: 1px solid
        rgba(172, 82, 255, 0.22);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(27, 12, 47, 0.82),
            rgba(12, 7, 27, 0.88)
        );

    box-shadow:
        0 22px 55px
        rgba(0, 0, 0, 0.25);
}


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

.profile-customizer-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;

    margin-bottom: 22px;
}


.profile-customizer-heading h2 {
    margin: 4px 0 6px;

    font-size: 25px;
}


.profile-customizer-heading p:not(.eyebrow) {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   SAVE STATUS
========================================================= */

.profile-save-status {
    display: inline-flex;

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

    min-width: 90px;

    padding: 8px 13px;

    border: 1px solid
        rgba(99, 255, 170, 0.20);

    border-radius: 999px;

    color: #8fffc1;

    background:
        rgba(49, 200, 116, 0.07);

    font-size: 10px;
    font-weight: 900;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.profile-save-status.saved {
    transform: scale(1.06);

    box-shadow:
        0 0 20px
        rgba(80, 255, 160, 0.18);
}


/* =========================================================
   TABS
========================================================= */

.profile-customizer-tabs {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 10px;

    margin-bottom: 28px;

    padding: 6px;

    border: 1px solid
        rgba(255, 255, 255, 0.05);

    border-radius: 18px;

    background:
        rgba(0, 0, 0, 0.18);
}


.profile-customizer-tab {
    appearance: none;

    min-height: 48px;

    display: flex;

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

    gap: 8px;

    border: 1px solid transparent;

    border-radius: 13px;

    color:
        rgba(231, 219, 241, 0.65);

    background: transparent;

    font-family: inherit;

    font-size: 11px;
    font-weight: 900;

    cursor: pointer;

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


.profile-customizer-tab span {
    font-size: 16px;
}


.profile-customizer-tab:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.045);

    transform:
        translateY(-1px);
}


.profile-customizer-tab.active {
    color: #ffffff;

    border-color:
        rgba(187, 91, 255, 0.55);

    background:
        linear-gradient(
            145deg,
            rgba(126, 46, 207, 0.30),
            rgba(84, 29, 144, 0.18)
        );

    box-shadow:
        0 0 22px
        rgba(166, 73, 255, 0.10);
}


/* =========================================================
   PANELS
========================================================= */

.profile-customizer-panel {
    display: none;
}


.profile-customizer-panel.active {
    display: block;

    animation:
        profile-panel-in
        0.25s ease;
}


@keyframes profile-panel-in {

    from {
        opacity: 0;

        transform:
            translateY(7px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   SECTION HEADING
========================================================= */

.profile-section-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 18px;

    margin-bottom: 18px;
}


.profile-section-heading h2,
.profile-section-heading h3 {
    margin: 4px 0 0;
}


.profile-section-heading h3 {
    font-size: 18px;
}


.profile-section-heading p:not(.eyebrow) {
    margin:
        6px 0
        0;

    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   UNLOCK COUNTER
========================================================= */

.profile-unlock-counter {
    flex-shrink: 0;

    padding: 7px 11px;

    border: 1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 999px;

    color:
        rgba(230, 219, 239, 0.58);

    background:
        rgba(255, 255, 255, 0.025);

    font-size: 9px;
    font-weight: 800;
}


.profile-unlock-counter strong {
    color: #ffd84c;

    font-size: 11px;
}


/* =========================================================
   COSMETIC GRID
========================================================= */

.profile-cosmetic-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;
}


/* =========================================================
   GENERIC COSMETIC CARD
========================================================= */

.profile-cosmetic-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(38, 20, 58, 0.78),
            rgba(18, 10, 32, 0.88)
        );

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


.profile-cosmetic-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(187, 89, 255, 0.32);

    box-shadow:
        0 16px 30px
        rgba(0, 0, 0, 0.22);
}


.profile-cosmetic-card.selected {
    border-color:
        rgba(255, 213, 65, 0.65);

    box-shadow:
        0 0 0 1px
        rgba(255, 213, 65, 0.12),

        0 0 24px
        rgba(255, 204, 44, 0.10);
}


.profile-cosmetic-card.locked {
    opacity: 0.55;
}


.profile-cosmetic-card.locked:hover {
    transform: none;

    border-color:
        rgba(255, 255, 255, 0.07);

    box-shadow: none;
}


/* =========================================================
   COSMETIC PREVIEW
========================================================= */

.profile-cosmetic-preview {
    position: relative;

    height: 150px;

    display: grid;

    place-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(138, 56, 207, 0.17),
            rgba(11, 6, 22, 0.72)
        );
}


.profile-cosmetic-preview img {
    width: 82%;
    height: 82%;

    object-fit: contain;
}


/* =========================================================
   BANNER CARD PREVIEW
========================================================= */

.profile-banner-card
.profile-cosmetic-preview {
    height: 110px;
}


.profile-banner-card
.profile-cosmetic-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.profile-cosmetic-content {
    padding: 13px;
}


.profile-cosmetic-name {
    display: block;

    overflow: hidden;

    color: #ffffff;

    font-size: 11px;
    font-weight: 900;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.profile-cosmetic-rarity {
    display: block;

    margin-top: 4px;

    color:
        rgba(221, 209, 232, 0.52);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* =========================================================
   SELECT BUTTON
========================================================= */

.profile-cosmetic-button {
    width: 100%;

    margin-top: 11px;

    padding: 8px 10px;

    border:
        1px solid
        rgba(180, 82, 255, 0.25);

    border-radius: 10px;

    color: #ffffff;

    background:
        rgba(141, 51, 216, 0.12);

    font-family: inherit;

    font-size: 9px;
    font-weight: 900;

    cursor: pointer;

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


.profile-cosmetic-button:hover {
    border-color:
        rgba(194, 101, 255, 0.60);

    background:
        rgba(154, 61, 226, 0.24);

    transform:
        translateY(-1px);
}


.profile-cosmetic-card.selected
.profile-cosmetic-button {
    color: #1b1200;

    border-color: #ffd84c;

    background:
        linear-gradient(
            135deg,
            #ffe778,
            #ffbe32
        );
}


.profile-cosmetic-card.locked
.profile-cosmetic-button {
    color:
        rgba(255, 255, 255, 0.45);

    border-color:
        rgba(255, 255, 255, 0.06);

    background:
        rgba(255, 255, 255, 0.035);

    cursor: not-allowed;
}


/* =========================================================
   LOCK BADGE
========================================================= */

.profile-cosmetic-lock {
    position: absolute;

    top: 10px;
    right: 10px;

    z-index: 2;

    display: grid;

    place-items: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background:
        rgba(5, 3, 10, 0.78);

    backdrop-filter:
        blur(7px);

    font-size: 12px;
}


/* =========================================================
   SELECTED BADGE
========================================================= */

.profile-cosmetic-selected {
    position: absolute;

    top: 10px;
    left: 10px;

    z-index: 2;

    padding: 5px 8px;

    border-radius: 999px;

    color: #1c1300;

    background: #ffd84c;

    font-size: 7px;
    font-weight: 1000;

    letter-spacing: 0.05em;
}


/* =========================================================
   LOADING
========================================================= */

.profile-cosmetic-loading {
    grid-column:
        1 / -1;

    min-height: 140px;

    display: grid;

    place-items: center;

    border:
        1px dashed
        rgba(255, 255, 255, 0.09);

    border-radius: 16px;

    color:
        rgba(226, 215, 236, 0.52);

    background:
        rgba(255, 255, 255, 0.018);

    font-size: 11px;
}


/* =========================================================
   TITLE GRID
========================================================= */

.profile-title-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.profile-title-card {
    position: relative;

    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.025);

    cursor: pointer;

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


.profile-title-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(186, 91, 255, 0.35);

    background:
        rgba(152, 57, 223, 0.07);
}


.profile-title-card.selected {
    border-color:
        rgba(255, 213, 66, 0.60);

    background:
        rgba(255, 209, 59, 0.055);
}


.profile-title-card.locked {
    opacity: 0.5;

    cursor: not-allowed;
}


/* =========================================================
   EFFECT GRID
========================================================= */

.profile-effect-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.profile-effect-card {
    position: relative;

    min-height: 120px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 16px;

    background:
        radial-gradient(
            circle at top right,
            rgba(177, 75, 255, 0.10),
            transparent 45%
        ),
        rgba(255, 255, 255, 0.025);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}


.profile-effect-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(185, 87, 255, 0.35);
}


.profile-effect-card.selected {
    border-color:
        rgba(255, 211, 61, 0.55);
}


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

@media (max-width: 1100px) {

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


@media (max-width: 800px) {

    .profile-customizer {
        padding: 20px;
    }


    .profile-customizer-tabs {
        grid-template-columns:
            repeat(2, 1fr);
    }


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


    .profile-title-grid,
    .profile-effect-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


@media (max-width: 520px) {

    .profile-customizer-heading,
    .profile-section-heading {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .profile-cosmetic-grid,
    .profile-title-grid,
    .profile-effect-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   TEAM QUACK — PROFILE EXTRA
   CSS DEL 3
========================================================= */


/* =========================================================
   BOTTOM GRID
========================================================= */

.profile-bottom-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-top: 24px;
}


/* =========================================================
   INFO CARDS
========================================================= */

.profile-info-card {
    min-width: 0;

    padding: 24px;

    border:
        1px solid
        rgba(172, 82, 255, 0.25);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(30, 13, 51, 0.90),
            rgba(11, 6, 25, 0.94)
        );

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.24),

        inset 0 1px 0
        rgba(255, 255, 255, 0.035);
}


.profile-info-card h2 {
    margin:
        5px 0
        20px;

    font-size: 22px;
}


/* =========================================================
   PROFILE INFO LIST
========================================================= */

.profile-info-list {
    display: flex;

    flex-direction: column;
}


.profile-info-row {
    min-height: 49px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding:
        9px 2px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.055);
}


.profile-info-row:last-child {
    border-bottom: 0;
}


.profile-info-row > span {
    color:
        rgba(220, 207, 231, 0.60);

    font-size: 10px;
    font-weight: 700;
}


.profile-info-row > strong {
    color: #ffffff;

    font-size: 12px;
    font-weight: 900;

    text-align: right;
}


/* =========================================================
   CURRENT LOADOUT
========================================================= */

.profile-loadout-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.profile-loadout-item {
    min-width: 0;
    min-height: 76px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.028);
}


.profile-loadout-icon {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(154, 67, 236, 0.18),
            rgba(90, 35, 146, 0.12)
        );

    font-size: 20px;
}


.profile-loadout-item > div:last-child {
    min-width: 0;
}


.profile-loadout-item span {
    display: block;

    color:
        rgba(221, 209, 232, 0.52);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.profile-loadout-item strong {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: #ffffff;

    font-size: 11px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   LIVE CARD
========================================================= */

.profile-live-card {
    position: relative;

    display: grid;

    grid-template-columns:
        68px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 18px;

    margin-top: 24px;

    padding: 22px 24px;

    overflow: hidden;

    border:
        1px solid
        rgba(88, 225, 255, 0.24);

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 10% 50%,
            rgba(64, 206, 255, 0.12),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            rgba(22, 18, 55, 0.94),
            rgba(10, 7, 28, 0.96)
        );

    box-shadow:
        0 18px 45px
        rgba(0, 0, 0, 0.24);
}


.profile-live-card::after {
    content: "";

    position: absolute;

    inset:
        auto
        -120px
        -150px
        auto;

    width: 330px;
    height: 330px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(70, 215, 255, 0.08),
            transparent 68%
        );

    pointer-events: none;
}


/* =========================================================
   LIVE ICON
========================================================= */

.profile-live-card-icon {
    width: 62px;
    height: 62px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(83, 217, 255, 0.18);

    border-radius: 18px;

    background:
        rgba(67, 205, 255, 0.07);

    font-size: 30px;

    box-shadow:
        0 0 24px
        rgba(57, 209, 255, 0.08);
}


/* =========================================================
   LIVE COPY
========================================================= */

.profile-live-card-copy {
    min-width: 0;
}


.profile-live-card-copy h2 {
    margin:
        4px 0
        5px;

    font-size: 19px;
}


.profile-live-card-copy p:last-child {
    max-width: 700px;

    margin: 0;

    color:
        rgba(222, 212, 234, 0.58);

    font-size: 10px;

    line-height: 1.55;
}


/* =========================================================
   LIVE STATUS
========================================================= */

.profile-live-status {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        8px 12px;

    border:
        1px solid
        rgba(81, 255, 164, 0.24);

    border-radius: 999px;

    color: #92ffc3;

    background:
        rgba(48, 199, 112, 0.06);

    font-size: 9px;
    font-weight: 1000;

    white-space: nowrap;

    letter-spacing: 0.05em;
}


.profile-live-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #52f39b;

    box-shadow:
        0 0 10px
        rgba(82, 243, 155, 0.70);

    animation:
        profile-live-pulse
        1.5s ease-in-out
        infinite;
}


@keyframes profile-live-pulse {

    0%,
    100% {
        opacity: 0.45;

        transform:
            scale(0.9);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.2);
    }
}


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

.profile-achievements {
    margin-top: 24px;

    padding: 24px;

    border:
        1px solid
        rgba(173, 81, 255, 0.20);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(26, 12, 45, 0.78),
            rgba(10, 6, 23, 0.88)
        );
}


/* =========================================================
   LINK
========================================================= */

.profile-section-link {
    flex-shrink: 0;

    color:
        var(--purple-light);

    text-decoration: none;

    font-size: 9px;
    font-weight: 800;
}


.profile-section-link:hover {
    color: #ffffff;
}


/* =========================================================
   ACHIEVEMENT GRID
========================================================= */

.profile-achievement-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;
}


/* =========================================================
   ACHIEVEMENT
========================================================= */

.profile-achievement-card {
    min-width: 0;
    min-height: 85px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.055);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.028);

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


.profile-achievement-card:not(.locked):hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(255, 207, 59, 0.18);

    background:
        rgba(255, 207, 59, 0.035);
}


.profile-achievement-card.locked {
    opacity: 0.45;

    filter:
        grayscale(0.5);
}


/* =========================================================
   ACHIEVEMENT ICON
========================================================= */

.profile-achievement-icon {
    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border:
        1px solid
        rgba(255, 206, 58, 0.10);

    border-radius: 13px;

    background:
        rgba(255, 204, 50, 0.05);

    font-size: 22px;
}


.profile-achievement-card > div:last-child {
    min-width: 0;
}


.profile-achievement-card strong {
    display: block;

    overflow: hidden;

    color: #ffffff;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.profile-achievement-card span {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color:
        rgba(221, 209, 232, 0.50);

    font-size: 8px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   TOAST
========================================================= */

.profile-toast {
    position: fixed;

    z-index: 999999;

    left: 50%;
    bottom: 35px;

    min-width: 220px;

    padding:
        12px 18px;

    border:
        1px solid
        rgba(87, 255, 165, 0.25);

    border-radius: 999px;

    color: #a1ffcb;

    background:
        rgba(9, 22, 18, 0.94);

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.42),

        0 0 25px
        rgba(67, 255, 153, 0.07);

    text-align: center;

    font-size: 10px;
    font-weight: 900;

    opacity: 0;

    pointer-events: none;

    transform:
        translate(-50%, 25px)
        scale(0.94);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.profile-toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0)
        scale(1);
}


/* =========================================================
   INFERNO EFFECT — FÖRBEREDD 🔥
========================================================= */

.profile-showcase.effect-inferno
.profile-showcase-avatar-wrap {
    animation:
        profile-inferno-glow
        1.2s ease-in-out
        infinite alternate;
}


@keyframes profile-inferno-glow {

    from {
        box-shadow:
            0 0 25px
            rgba(255, 105, 25, 0.35),

            0 0 50px
            rgba(255, 45, 0, 0.12);
    }

    to {
        box-shadow:
            0 0 40px
            rgba(255, 190, 40, 0.60),

            0 0 80px
            rgba(255, 55, 0, 0.25);
    }
}


/* =========================================================
   NEON EFFECT — FÖRBEREDD ⚡
========================================================= */

.profile-showcase.effect-neon
.profile-showcase-avatar-wrap {
    animation:
        profile-neon-glow
        1.5s ease-in-out
        infinite alternate;
}


@keyframes profile-neon-glow {

    from {
        box-shadow:
            0 0 25px
            rgba(187, 74, 255, 0.35),

            0 0 45px
            rgba(48, 193, 255, 0.12);
    }

    to {
        box-shadow:
            0 0 38px
            rgba(67, 209, 255, 0.55),

            0 0 75px
            rgba(181, 71, 255, 0.24);
    }
}


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

@media (max-width: 1050px) {

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


@media (max-width: 850px) {

    .profile-bottom-grid {
        grid-template-columns:
            1fr;
    }


    .profile-live-card {
        grid-template-columns:
            58px
            minmax(0, 1fr);
    }


    .profile-live-card-icon {
        width: 52px;
        height: 52px;

        font-size: 25px;
    }


    .profile-live-status {
        grid-column:
            1 / -1;

        justify-self:
            flex-start;
    }
}


@media (max-width: 600px) {

    .profile-loadout-list {
        grid-template-columns:
            1fr;
    }


    .profile-achievement-grid {
        grid-template-columns:
            1fr;
    }


    .profile-info-card,
    .profile-achievements {
        padding: 18px;
    }


    .profile-live-card {
        grid-template-columns:
            1fr;

        padding: 18px;
    }
}

/* =========================================================
   DUCK PREVIEW — VISA HELA ANKAN
========================================================= */

.profile-duck-grid .profile-cosmetic-preview {
    height: 190px;

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

    overflow: visible;

    padding: 8px 10px 0;

    box-sizing: border-box;
}


.profile-duck-grid .profile-cosmetic-preview img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    object-position: center bottom;

    display: block;
}


/* Behåll själva kortet snyggt */
.profile-duck-grid .profile-cosmetic-card {
    overflow: hidden;
}


/* Lite mer plats för väldigt höga kronor */
.profile-duck-grid .profile-cosmetic-card
.profile-cosmetic-preview {
    min-height: 190px;
}
/* =========================================================
   BANNER PREVIEW — EXAKT 4:1
========================================================= */

.profile-banner-card .profile-cosmetic-preview {
    width: 100%;

    aspect-ratio: 4 / 1;

    height: auto;

    padding: 0;

    overflow: hidden;

    display: block;
}


.profile-banner-card .profile-cosmetic-preview img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}
/* =========================================================
   TEAM QUACK — TITLE CARDS
========================================================= */

.profile-title-card {
    position: relative;

    min-height: 135px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 18px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(160, 75, 255, 0.10),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            rgba(36, 18, 57, 0.88),
            rgba(14, 8, 28, 0.95)
        );

    cursor: pointer;

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


.profile-title-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(185, 86, 255, 0.38);
}


.profile-title-card.selected {
    border-color:
        rgba(255, 211, 65, 0.75);

    box-shadow:
        0 0 24px
        rgba(255, 208, 55, 0.13);
}


.profile-title-card.locked {
    opacity: 0.48;

    cursor: not-allowed;
}


.profile-title-card.locked:hover {
    transform: none;
}


/* =========================================================
   TITLE PREVIEW
========================================================= */

.profile-title-preview {
    min-height: 72px;

    display: flex;

    flex-direction: column;

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

    gap: 9px;

    text-align: center;
}


.profile-title-crown {
    font-size: 25px;
}


.profile-title-label {
    color: #ffffff;

    font-size: 14px;
    font-weight: 1000;

    line-height: 1.2;

    text-align: center;
}


/* =========================================================
   META
========================================================= */

.profile-title-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-top: 11px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.055);
}


.profile-title-rarity,
.profile-title-status {
    font-size: 8px;

    font-weight: 900;

    letter-spacing: 0.07em;
}


.profile-title-status {
    color:
        rgba(255, 255, 255, 0.48);
}


/* =========================================================
   RARITIES
========================================================= */

.profile-title-card.rarity-common
.profile-title-rarity {
    color: #c8c8c8;
}


.profile-title-card.rarity-rare
.profile-title-rarity {
    color: #58b9ff;
}


.profile-title-card.rarity-epic
.profile-title-rarity {
    color: #bd70ff;
}


.profile-title-card.rarity-legendary
.profile-title-rarity {
    color: #ffd84d;
}


.profile-title-card.rarity-mythic
.profile-title-rarity {
    color: #ff66e7;
}


.profile-title-card.rarity-exclusive
.profile-title-rarity {
    color: #61ffd1;
}


/* Legendary glow */

.profile-title-card.rarity-legendary:not(.locked) {
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(255, 206, 51, 0.13),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            rgba(48, 29, 13, 0.93),
            rgba(19, 10, 29, 0.96)
        );
}


/* Mythic glow */

.profile-title-card.rarity-mythic:not(.locked) {
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(205, 68, 255, 0.15),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            rgba(42, 17, 58, 0.93),
            rgba(13, 7, 27, 0.96)
        );
}
/* =========================================================
   TITLE CARDS — FLYTTA UPP INNEHÅLLET
========================================================= */

.profile-title-card {
    justify-content: flex-start;
}


.profile-title-preview {
    min-height: 54px;

    justify-content: flex-start;

    padding-top: 6px;

    gap: 6px;
}


.profile-title-crown {
    font-size: 20px;
}


.profile-title-label {
    font-size: 13px;
}


.profile-title-meta {
    margin-top: auto;
}
/* =========================================================
   MILESTONE — DUCK + BANNER PREVIEW
========================================================= */

.milestone-set-preview {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;

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

    background-size: cover;
    background-position: center;

    border-radius: 16px;

    isolation: isolate;
}


.milestone-set-overlay {
    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            to top,
            rgba(12, 5, 25, 0.88) 0%,
            rgba(12, 5, 25, 0.30) 55%,
            rgba(12, 5, 25, 0.10) 100%
        );
}


.milestone-set-duck {
    position: relative;
    z-index: 1;

    width: 78%;
    height: 90%;

    object-fit: contain;
    object-position: center bottom;

    filter:
        drop-shadow(
            0 12px 18px
            rgba(0, 0, 0, 0.45)
        );
}


.duck-card.locked
.milestone-set-preview {
    filter:
        grayscale(0.65)
        brightness(0.48);
}


.duck-card.unlocked
.milestone-set-preview {
    filter: none;
}
.profile-customizer-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.profile-customizer-tab {
    width: 100%;
}