.dk-premium-profile-footer-spacer {
    height: 76px;
}

.dk-premium-profile-footer-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 999997;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    box-sizing: border-box;
    padding: 0 18px;
}

.dk-premium-profile-footer,
.dk-premium-profile-footer:visited,
.dk-premium-profile-footer:hover,
.dk-premium-profile-footer:focus,
.dk-premium-profile-footer .dk-premium-profile-text,
.dk-premium-profile-footer:visited .dk-premium-profile-text,
.dk-premium-profile-footer:hover .dk-premium-profile-text,
.dk-premium-profile-footer:focus .dk-premium-profile-text {
    color: #64748B !important;
    text-decoration: none !important;
}

.dk-premium-profile-footer {
    width: min(500px, calc(100vw - 56px));
    min-height: 48px;
    padding: 8px 18px;
    box-sizing: border-box;
    border-radius: 999px;

    background: rgba(248, 250, 252, 0.68);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font: 500 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;

    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);

    overflow: hidden;
    transition:
        transform .18s ease,
        opacity .18s ease,
        width .18s ease,
        min-height .18s ease,
        padding .18s ease,
        background .18s ease,
        color .18s ease,
        border .18s ease,
        box-shadow .18s ease;
}

.dk-premium-profile-footer:hover {
    opacity: 0.96;
}

.dk-premium-profile-footer:active {
    transform: scale(0.985);
}

.dk-premium-profile-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.dk-premium-profile-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #64748B;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.45));
    transition:
        width .18s ease,
        height .18s ease,
        stroke .18s ease,
        filter .18s ease;
}

.dk-premium-profile-text {
    color: #64748B !important;
    letter-spacing: .01em;
    white-space: nowrap;
}

/* Desktop/tablet shrink state while scrolling */
body.dk-profile-footer-scrolled .dk-premium-profile-footer {
    width: min(360px, calc(100vw - 96px));
    min-height: 42px;
    opacity: 0.82;
    font-size: 13px;
    background: rgba(248, 250, 252, 0.62);
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.54);
    transform: translateY(2px);
}

body.dk-profile-footer-scrolled .dk-premium-profile-footer:active {
    transform: translateY(2px) scale(0.985);
}

body.dk-profile-footer-scrolled .dk-premium-profile-icon svg {
    width: 21px;
    height: 21px;
    stroke: #64748B;
}

@media (max-width: 767px) {
    .dk-premium-profile-footer-spacer {
        height: 76px;
    }

    .dk-premium-profile-footer-wrap {
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        padding: 0 20px;
    }

    .dk-premium-profile-footer {
        width: calc(100vw - 150px);
        min-height: 46px;
        padding: 8px 16px;
        font-size: 14px;
        gap: 10px;
    }

    .dk-premium-profile-icon {
        width: 25px;
        height: 25px;
    }

    .dk-premium-profile-icon svg {
        width: 23px;
        height: 23px;
    }

    /* Mobile reading mode: lighter, smaller, less distracting */
    body.dk-profile-footer-scrolled .dk-premium-profile-footer {
        width: calc(100vw - 210px);
        min-height: 36px;
        padding: 6px 14px;
        font-size: 13px;
        opacity: 0.70;
        background: rgba(248, 250, 252, 0.58);
        color: #64748B !important;
        border: 1px solid rgba(15, 23, 42, 0.12);
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.10);
    }

    body.dk-profile-footer-scrolled .dk-premium-profile-footer,
    body.dk-profile-footer-scrolled .dk-premium-profile-footer:visited,
    body.dk-profile-footer-scrolled .dk-premium-profile-footer:hover,
    body.dk-profile-footer-scrolled .dk-premium-profile-footer:focus,
    body.dk-profile-footer-scrolled .dk-premium-profile-footer .dk-premium-profile-text {
        color: #64748B !important;
        text-decoration: none !important;
    }

    body.dk-profile-footer-scrolled .dk-premium-profile-icon svg {
        width: 19px;
        height: 19px;
        stroke: #64748B;
        filter: drop-shadow(0 1px 1px rgba(255,255,255,.35));
    }
}