/* FDMD UNIFIED APPEARANCE V1 */
/* FDMD 4DOWNLOAD SIGNATURE THEME V8.1 */
/* FDMD CANONICAL NATIVE V7 */
/* FDMD CANONICAL NATIVE V5 */

/* Profile-only canonical stylesheet. */

/* Original V4 stylesheet order preserved. */

/* ========================================
   1. CUSTOM PROFILE COVER
   ======================================== */
/* FDMD CUSTOM COVER V1 */
.us--page .us__one .fdmd-cover-change{position:absolute;right:14px;top:14px;z-index:6;display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid rgba(255,255,255,.4);border-radius:10px;background:rgba(15,28,46,.6);color:#fff;font-size:12px;font-weight:800;cursor:pointer;backdrop-filter:blur(5px)}
.us--page .us__one .fdmd-cover-change:hover{background:rgba(15,28,46,.85)}
.fdmd-cover-modal[hidden]{display:none!important}
.fdmd-cover-modal{position:fixed;inset:0;z-index:100500;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,19,34,.76);backdrop-filter:blur(7px);box-sizing:border-box}
.fdmd-cover-dialog {
    width:min(100%,650px);
    max-height:calc(100dvh - 36px);
    overflow:auto;
    box-sizing:border-box;
    padding:24px;
    border:1px solid var(--ui-bdc);
    border-top:3px solid var(--fd-theme-brand,#2669b3);
    border-radius:10px;
    background:var(--ui-bg);
    color:var(--tt);
    box-shadow:0 24px 80px rgba(0,0,0,.4);
}
.fdmd-cover-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.fdmd-cover-eyebrow {
    color:var(--blue);
    font-size:10px;
    font-weight:800;
    letter-spacing:1.1px;
}
.fdmd-cover-heading h2{margin:5px 0;font-size:23px;font-weight:800;color:var(--tt)}
.fdmd-cover-heading p,.fdmd-cover-help{margin:6px 0;color:var(--ui-tt-fade);font-size:12px;line-height:1.55}
.fdmd-cover-close{flex-shrink:0;width:38px;height:38px;border:1px solid var(--ui-bdc);border-radius:10px;background:var(--ui-bg-darker);color:var(--tt);font-size:25px;cursor:pointer}
.fdmd-cover-preview{width:100%;height:175px;border:1px solid var(--ui-bdc);border-radius:12px;background-color:var(--ui-bg-darker);background-position:center;background-size:cover;background-repeat:no-repeat}
.fdmd-cover-file-label{display:block;margin:18px 0 7px;font-size:13px;font-weight:800}
#fdmd-cover-file{display:block;box-sizing:border-box;max-width:100%;width:100%;padding:11px;border:1px dashed var(--ui-bdc);border-radius:9px;background:var(--ui-bg-darker);color:var(--tt)}
.fdmd-cover-status{min-height:19px;margin:12px 0;color:var(--ui-tt-fade);font-size:12px}
.fdmd-cover-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;border-top:1px solid var(--ui-bdc);padding-top:16px}
.fdmd-cover-actions button{padding:11px 17px;border-radius:9px;font-weight:800;cursor:pointer}
.fdmd-cover-reset{border:1px solid var(--ui-bdc);color:var(--tt);background:var(--ui-bg-darker)}
.fdmd-cover-save {
    border:0;
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95));
    color:#fff;
}
.fdmd-cover-actions button:disabled{opacity:.55;cursor:wait}
.fdmd-cover-change:focus-visible,.fdmd-cover-modal button:focus-visible,#fdmd-cover-file:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
@media(max-width:760px){.us--page .us__one .fdmd-cover-change{right:9px;top:9px;padding:8px}.us--page .us__one .fdmd-cover-change span{display:none}.fdmd-cover-dialog{padding:16px}.fdmd-cover-preview{height:130px}}

/* ========================================
   2. NATIVE PROFILE FULL BLEED
   ======================================== */
/* FDMD PROFILE FULL BLEED V2 */
/* FDMD CANONICAL NATIVE V3 */
/* FDMD CANONICAL NATIVE V4 */

body .content > .sect.fdmd-profile-sect {
    padding:0!important;
    margin-top:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border:0;
    border-radius:0;
}

.fdmd-profile-sect > .fdmd-page-wrap {
    box-sizing:border-box;
    width:100%;
    min-width:0;
    max-width:1160px;
    grid-column:1 / -1;
    margin:-12px auto 0;
    padding:0 8px 8px;
}
@media (max-width:700px) {
    .fdmd-profile-sect > .fdmd-page-wrap {
        margin:0 auto;
        padding:2px;
    }
}

/* Visible on every full profile, not only the account owner */

/* FDMD COVER EDGE POLISH V2 */
.us--page .us__one {
    box-sizing:border-box;
    height:280px;
    min-height:280px;
    padding:28px 28px 40px 224px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:flex-start;
    background-size:cover;
    background-position:center center;
    background-blend-mode:normal !important;
    background-color:transparent !important;
    position:relative;
    width:100%;
    margin:0;
    border:0;
    border-radius:10px 10px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        inset 1px 0 0 rgba(255,255,255,.10),
        inset -1px 0 0 rgba(255,255,255,.10),
        inset 18px 0 28px -18px rgba(6,22,40,.40),
        inset -18px 0 28px -18px rgba(6,22,40,.40),
        inset 0 -48px 48px -30px rgba(6,22,40,.55);
    overflow:visible;
}

.us--page .us__name {
    margin:0;
    max-width:100%;
    color:#fff;
    font-size:28px;
    line-height:1.2;
    font-weight:850;
}

.us--page .us__status {
    display:inline-flex;
    align-self:flex-start;
    flex:0 0 auto;
    width:max-content;
    max-width:100%;
    margin-top:12px;
    padding:0 16px;
    border-radius:30px;
    white-space:nowrap;
}

.us--page .us__img {
    position:absolute;
    width:176px;
    height:176px;
    left:24px;
    bottom:-54px;
    top:auto;
    margin-top:0;
    z-index:15;
}

.us--page .us__img img {
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}

.us--page .us__two {
    min-height:108px;
    padding-left:224px;
    align-items:center;
    box-sizing:border-box;
    width:100%;
    margin:0;
    border:0;
    border-bottom:1px solid color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
    border-radius:0;
    box-shadow:none;
    background:linear-gradient(115deg,color-mix(in srgb,var(--blue) 6%,var(--ui-bg)),var(--ui-bg));
}

@media screen and (max-width:760px) {

    .us--page .us__one {
        height:175px;
        min-height:175px;
        padding:18px 14px 28px 136px;
    }

    .us--page .us__name {
        font-size:18px;
    }

    .us--page .us__status {
        margin-top:9px;
        padding:0 12px;
    }

    .us--page .us__img {
        width:108px;
        height:88px;
        left:12px;
        bottom:-26px;
        top:auto;
        margin-top:0;
    }

    .us--page .us__two {
        min-height:0;
        padding:36px 12px 14px;
    }

}

/* ========================================
   3. QUICK ACCESS
   ======================================== */
.fdmd-dashboard .fdqa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.fdmd-dashboard .fdqa-card {
    --fdqa-tone:var(--blue);
    box-sizing:border-box;
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    min-width:0;
    min-height:80px;
    height:auto;
    margin:0;
    padding:15px;
    border:1px solid color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
    border-radius:10px;
    background:var(--ui-bg);
    color:var(--tt, #253044);
    box-shadow:none;
    text-align:left;
    text-decoration:none;
    text-transform:none;
    font:inherit;
    cursor:pointer;
    transition:border-color .18s, background-color .18s;
}
.fdmd-dashboard .fdqa-card:hover {
    border-color: var(--fdqa-tone);
    background: color-mix(in srgb, var(--fdqa-tone) 7%, var(--bg, #fff));
}
.fdmd-dashboard .fdqa-card:focus-visible {
    outline: 2px solid var(--fdqa-tone);
    outline-offset: 2px;
}
.fdqa-icon {
    display:grid;
    place-items:center;
    flex:0 0 44px;
    height:44px;
    border-radius:10px;
    background:color-mix(in srgb, var(--fdqa-tone) 15%, transparent);
    color:var(--fdqa-tone);
    font-size:21px;
}
.fdqa-copy { flex: 1; min-width: 0; }
.fdqa-copy strong, .fdqa-copy small { display: block; line-height: 1.4; }
.fdqa-copy strong {
    font-size:14px;
    color:var(--tt);
}
.fdqa-copy small {
    margin-top:3px;
    font-size:12px;
    color:var(--ui-tt-fade);
}
.fdqa-arrow { flex-shrink: 0; color: var(--tt-fade, #667085); font-size: 11px; }
.fdqa-count {
    flex-shrink: 0;
    padding: 2px 6px;
    border-radius: 999px;
    background: #db2777;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}
.fdqa-count[hidden],
.fdmd-dashboard[data-fdmd-admin-view="1"] .fdqa-personal { display: none; }
@media (max-width: 540px) {
    .fdmd-dashboard .fdqa-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================
   4. MEMBER DASHBOARD
   ======================================== */
/* FDMD THEME V2 */
/* Uses native 4Download light/dark CSS variables */

.fdmd-dashboard {
    --fdmd-teal:var(--fd-theme-brand,#128d95);
    --fdmd-button-text:#fff;
    position:relative;
    overflow:hidden;
    margin:12px 0;
    padding:22px;
    color:var(--tt);
    transition:background .25s, border-color .25s;
}

.dt-is-active .fdmd-dashboard {
    --fdmd-teal: var(--fd-theme-accent,#58d9d4);
    --fdmd-button-text: #102434;
    
}

.fdmd-heading {
    margin-bottom: 26px;
}

.fdmd-heading h2 {
    margin: 0 0 7px;
    color: var(--tt);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.fdmd-heading p {
    margin: 0;
    color: var(--ui-tt-fade);
    font-size: 13px;
    line-height: 1.6;
}

.fdmd-upgrade {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 26px;
    padding: 24px;
    border: 1px solid var(--ui-bdc);
    border-left: 4px solid var(--blue);
    border-radius: 12px;
    background: linear-gradient(
        115deg,
        var(--ui-bg-darker),
        var(--ui-bg)
    );
}

.fdmd-chip {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--ui-bg-darkest);
    color: var(--blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.fdmd-upgrade h3 {
    margin: 12px 0 8px;
    color: var(--tt);
    font-size: 20px;
    font-weight: 800;
}

.fdmd-upgrade p {
    margin: 0;
    color: var(--ui-tt-fade);
    font-size: 13px;
}

.fdmd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 9px;
    background: var(--blue);
    color: var(--fdmd-button-text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.fdmd-button:hover {
    color: var(--fdmd-button-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.fdmd-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--tt);
    font-size: 17px;
    font-weight: 800;
}

.fdmd-links {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 13px;
}

.fdmd-link {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    min-height: 102px;
    padding: 20px;
    border: 1px solid var(--ui-bdc);
    border-radius: 12px;
    background: var(--ui-bg-darker);
    color: var(--tt);
    text-decoration: none;
    transition: transform .22s, border-color .22s,
                box-shadow .22s, background .22s;
}

.fdmd-link::before {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    margin-bottom: 3px;
    border-radius: 4px;
    background: var(--bg-gradient);
}

.fdmd-link strong {
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.fdmd-link span {
    color: var(--ui-tt-fade);
    font-size: 12px;
    line-height: 1.5;
}

.fdmd-link:hover {
    transform: translateY(-3px);
    border-color: var(--fdmd-teal);
    background: var(--ui-bg);
    box-shadow: 0 9px 22px rgba(0,0,0,.09);
}

.fdmd-link:focus-visible,
.fdmd-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.dt-is-active .fdmd-link {
    border-color: color-mix(in srgb,var(--blue) 15%,transparent);
}

.dt-is-active .fdmd-link:hover {
    border-color: var(--fdmd-teal);
    box-shadow: 0 9px 22px rgba(0,0,0,.22);
}

@media(max-width:700px) {
    .fdmd-dashboard {
    border-radius:10px;
}
    .fdmd-links {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:420px) {
    .fdmd-dashboard {
        padding: 16px;
    }
    .fdmd-links {
        grid-template-columns: 1fr;
    }
    .fdmd-upgrade {
        padding: 18px;
    }
    .fdmd-button {
        width: 100%;
    }
}

@media(prefers-reduced-motion:reduce) {
    .fdmd-dashboard,
    .fdmd-link,
    .fdmd-button {
        transition: none;
    }
}

/* FDMD QUICK ACCESS V3 */
.fdmd-dashboard .fdmd-links {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.fdmd-dashboard .fdmd-link {
    --fdmd-tone:var(--blue);
    
    padding:22px;
    gap:10px;

}
.fdmd-dashboard .fdmd-link::before {
    display:none;
}
.fdmd-dashboard .fdmd-link-icons {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
}
.fdmd-dashboard .fdmd-link-icon {
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--ui-bg);
    color:var(--fdmd-tone);
    font-size:23px;
}
.fdmd-dashboard .fdmd-link-action {
    color:var(--ui-tt-fade);
    font-size:15px;
    transition:transform .2s;
}
.fdmd-dashboard .fdmd-link strong {
    color:var(--tt);
    font-size:16px;
    font-weight:800;
}
.fdmd-dashboard .fdmd-link span.fdmd-link-desc {
    color:var(--ui-tt-fade);
}
.fdmd-dashboard .fdmd-link:hover {
    
    border-color:var(--fdmd-tone);
    background:var(--ui-bg);
    
}
.fdmd-dashboard .fdmd-link:hover .fdmd-link-action {
    transform:translate(3px,-3px);
    color:var(--fdmd-tone);
}
.fdmd-dashboard .fdmd-link--requests {
    --fdmd-tone:var(--fd-theme-brand,#14a4a7);
}
.fdmd-dashboard .fdmd-link--history {
    --fdmd-tone:var(--blue);
}
.fdmd-dashboard .fdmd-link--vip {
    --fdmd-tone:var(--blue);
}
.fdmd-dashboard .fdmd-link--reward {
    --fdmd-tone:var(--blue);
    grid-column:1 / -1;
    min-height:135px;
    background:linear-gradient(110deg,var(--ui-bg-darker),var(--ui-bg));
}
.dt-is-active .fdmd-dashboard .fdmd-link--requests {
    --fdmd-tone:var(--fd-theme-accent,#5edbd5);
}
@media(max-width:560px) {
    .fdmd-dashboard .fdmd-links {
        grid-template-columns:1fr;
    }
}
@media(prefers-reduced-motion:reduce) {
.fdmd-dashboard .fdmd-link-action {
    transition:none;
}
}

/* FDMD ACCOUNT OVERVIEW V1 */
.fdmd-dashboard .fdmd-overview{margin-bottom:28px}
.fdmd-dashboard .fdmd-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.fdmd-dashboard .fdmd-stat {
    display:flex;
    flex-direction:column;
    gap:10px;
    min-width:0;
    padding:19px;
    background:var(--ui-bg-darker);
    border:1px solid var(--ui-bdc);
    justify-content:center;
    box-sizing:border-box;
}
.fdmd-dashboard .fdmd-stat i{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:var(--ui-bg);color:var(--blue);font-size:22px}
.fdmd-dashboard .fdmd-stat strong{font-size:28px;font-weight:800;line-height:1.2;color:var(--tt)}
.fdmd-dashboard .fdmd-stat span{font-size:12px;font-weight:700;color:var(--ui-tt-fade)}
@media(max-width:700px){.fdmd-dashboard .fdmd-stat-grid{grid-template-columns:1fr}}

/* FDMD OVERVIEW LINKS V2 */
.fdmd-dashboard .fdmd-overview a.fdmd-stat {
    --fdmd-stat-tone:var(--blue);
    padding:22px clamp(80px,8vw,108px) 22px 20px;
    overflow:hidden;
    color:var(--tt);
    text-decoration:none;
    cursor:pointer;
    isolation:isolate;
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;

}
.fdmd-dashboard .fdmd-overview a.fdmd-stat i:not(.fdmd-stat-arrow) {
    color:var(--fdmd-stat-tone);
    position:absolute;
    right:12px;
    top:50%;
    width:auto;
    height:auto;
    transform:translateY(-50%);
    border-radius:0;
    background:transparent;
    font-size:clamp(58px,6.5vw,92px);
    line-height:1;
    opacity:.48;
    pointer-events:none;
    z-index:0;
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat .fdmd-stat-arrow {
    position:absolute;
    top:12px;
    right:12px;
    width:26px;
    height:26px;
    border-radius:50%;
    background:var(--ui-bg);
    color:var(--fdmd-stat-tone);
    font-size:12px;
    transition:transform .2s;
    z-index:2;
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat strong {
    font-size:34px;
    font-variant-numeric:tabular-nums;
    position:relative;
    z-index:1;
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat span {
    color:var(--tt);
    font-size:13px;
    position:relative;
    z-index:1;
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat .fdmd-stat-hint {
    margin-top:4px;
    color:var(--fdmd-stat-tone);
    font-size:12px;
    font-weight:700;
    position:relative;
    z-index:1;
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat:hover {
    transform:none;
    border-color:var(--fdmd-stat-tone);
    box-shadow:0 7px 18px rgba(19,46,75,.12);
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat:hover .fdmd-stat-arrow {
    transform:translate(2px,-2px);
}
.fdmd-dashboard .fdmd-overview a.fdmd-stat:focus-visible {
    outline:2px solid var(--blue);
    outline-offset:3px;
}
@media(prefers-reduced-motion:reduce) {
.fdmd-dashboard .fdmd-overview a.fdmd-stat .fdmd-stat-arrow {
    transition:none;
}
}

/* FDMD PREMIUM CARD V1 */
.fdmd-dashboard .fdmd-premium {
    
    margin:0 0 26px;
    
    overflow:hidden;

}

.fdmd-premium-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:0;
    padding:18px 20px 12px;
    background:color-mix(in srgb,var(--blue) 6%,var(--ui-bg));
    border:1px solid color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
    border-bottom:0;
    border-radius:10px 10px 0 0;
}
.fdmd-premium-label {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--blue);
    font-size:15px;
    font-weight:800;
}
.fdmd-premium-label i {
    color:var(--blue);
    font-size:21px;
}
.fdmd-premium-state {
    border-radius:50px;
    padding:7px 12px;
    font-size:11px;
    font-weight:800;
    color:#64748b;
    background:var(--ui-bg);
}
.fdmd-premium[data-status="ACTIVE"] .fdmd-premium-state {
    color:#167348;
    background:#dbf5e6;
}
.fdmd-premium[data-status="EXPIRED"] .fdmd-premium-state {
    color:#9a5410;
    background:#ffedd5;
}
.fdmd-premium-body {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
    align-items:end;
    gap:20px;
    padding:12px 20px 20px;
    background:color-mix(in srgb,var(--blue) 6%,var(--ui-bg));
    border:1px solid color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
    border-top:0;
    border-radius:0 0 10px 10px;
}
.fdmd-premium-count,.fdmd-premium-expires {
    display:flex;
    flex-direction:column;
    gap:7px;
}
.fdmd-premium-count strong {
    color:var(--blue);
    font-size:46px;
    font-weight:800;
    line-height:1;
}
.fdmd-premium-count span,.fdmd-premium-expires span {
    color:var(--ui-tt-fade);
    font-size:12px;
}
.fdmd-premium-expires strong {
    color:var(--tt);
    font-size:17px;
    font-weight:800;
}
.fdmd-premium-renew {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:13px 17px;
    border-radius:10px;
    background:var(--blue);
    color:#fff !important;
    font-size:12px;
    font-weight:800;
    text-decoration:none !important;
    transition:transform .2s,filter .2s;
}
.fdmd-premium-renew:hover {
    transform:translateY(-2px);
    filter:brightness(1.1);
}
.fdmd-premium-renew:focus-visible {
    outline:2px solid var(--blue);
    outline-offset:3px;
}
@media(max-width:650px) {
    .fdmd-premium-body {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .fdmd-premium-renew {
        grid-column:1 / -1;
    }
}
@media(max-width:380px) {
    .fdmd-premium-body {
        grid-template-columns:1fr;
    }
}
@media(prefers-reduced-motion:reduce) {
    .fdmd-premium-renew {
        transition:none;
    }
}

/* FDMD LUXURY SOFT 3D V1 */
.fdmd-dashboard {
    --fdmd-gold:#ba975d;
    --fdmd-gold-light:#ead5a8;
}

.fdmd-dashboard .fdmd-overview a.fdmd-stat {
    position:relative;
    background:linear-gradient(120deg,var(--ui-bg),color-mix(in srgb,var(--fdmd-stat-tone) 13%,var(--ui-bg)));
    border:1px solid color-mix(in srgb,var(--fdmd-stat-tone) 24%,var(--ui-bdc));
    box-shadow:0 6px 18px rgba(19,46,75,.08);
    transition:border-color .2s,box-shadow .2s;
}

.fdmd-dashboard .fdmd-link {
    transform:translate3d(0,0,0);
    background:linear-gradient(145deg,var(--ui-bg),var(--ui-bg-darker));
    border:1px solid var(--ui-bdc);
}

.fdmd-dashboard .fdmd-premium-count strong {
    text-shadow:0 2px 12px color-mix(in srgb,var(--blue) 10%,transparent);
}

.fdmd-dashboard .fdmd-premium-renew {
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95));
    color:#fff !important;
    border:1px solid color-mix(in srgb,var(--blue) 18%,transparent);
}

.fdmd-dashboard .fdmd-premium-renew:hover {
    filter:brightness(1.05);
    
}

.fdmd-dashboard .fdmd-overview a.fdmd-stat {
    min-height:152px;
    animation:none;
}

.fdmd-dashboard .fdmd-overview a.fdmd-stat:nth-child(2) {
    animation-delay:.07s;
}

.fdmd-dashboard .fdmd-overview a.fdmd-stat:nth-child(3) {
    animation-delay:.14s;
}

.fdmd-dashboard .fdmd-overview a.fdmd-stat::before {
    height:3px;
    background:var(--fdmd-stat-tone);
}

.fdmd-dashboard .fdmd-overview a.fdmd-stat strong {
    letter-spacing:-.8px;
}

.fdmd-dashboard .fdmd-link {
    min-height:160px;
}

.fdmd-dashboard .fdmd-link-icon {
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12),
        0 5px 12px -9px rgba(0,0,0,.3);
}

.dt-is-active .fdmd-dashboard .fdmd-overview a.fdmd-stat,
.dt-is-active .fdmd-dashboard .fdmd-link {
    box-shadow:inset 0 1px 0 rgba(255,255,255,.045),
        0 12px 30px -18px rgba(0,0,0,.7);
}

@keyframes fdmd-lux-appear {
    from {opacity:0}
    to {opacity:1}
}

@media(prefers-reduced-motion:reduce) {
.fdmd-dashboard .fdmd-overview a.fdmd-stat,
.fdmd-dashboard .fdmd-link {
    animation:none !important;
    transition:none !important;
}
}

/* FDMD PREMIUM PAYMENT INTEGRATED V2 */
.fdmd-dashboard .fdmd-payment-inline{
    
    padding-top:22px;
    
}
.fdmd-pay-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:15px;
}
.fdmd-pay-heading strong{
    color:var(--tt);
    font-size:14px;
    font-weight:800;
}
.fdmd-pay-heading span {
    color:var(--blue);
    font-size:10px;
    font-weight:800;
    letter-spacing:.06em;
}
.fdmd-pay-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.fdmd-pay-cell {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:9px;
    min-width:0;
    padding:20px clamp(76px,8vw,104px) 20px 18px;
    border:1px solid var(--ui-bdc);
    border-radius:10px;
    background:var(--ui-bg);
    min-height:146px;
    justify-content:center;
    box-sizing:border-box;
}
.fdmd-pay-cell i {
    color:var(--fdmd-pay-tone,var(--blue));
    font-size:clamp(58px,6.5vw,92px);
}
.fdmd-pay-cell strong {
    color:var(--tt);
    font-size:22px;
    font-weight:800;
    line-height:1.25;
    overflow-wrap:anywhere;
    position:relative;
    z-index:1;
}
.fdmd-pay-cell span {
    color:var(--ui-tt-fade);
    font-size:12px;
    line-height:1.5;
    position:relative;
    z-index:1;
}
.fdmd-paid-tier {
    display:inline-flex;
    padding:6px 10px;
    margin-top:3px;
    border:1px solid var(--ui-bdc);
    border-radius:30px;
    background:var(--ui-bg-darker);
    color:var(--ui-tt-fade);
    font-size:10px;
    font-weight:800;
    position:relative;
    z-index:1;
}
.fdmd-paid-tier.is-earned{
    color:var(--fdmd-gold);
    border-color:var(--fdmd-gold);
    background:color-mix(in srgb,var(--fdmd-gold) 10%,transparent);
}
.fdmd-pay-note{
    display:block;
    margin-top:13px;
    color:var(--ui-tt-fade);
    font-size:10px;
    line-height:1.6;
}
@media(max-width:700px){
    .fdmd-pay-grid{
        grid-template-columns:1fr;
    }
}

/* FDMD PAYMENT HISTORY V1 */
.fdmd-dashboard .fdmd-history{
    margin-top:24px;
    padding-top:21px;
    border-top:1px solid var(--ui-bdc);
}
.fdmd-dashboard .fdmd-history-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:10px;
}
.fdmd-dashboard .fdmd-history-head strong {
    color:var(--blue);
    font-size:16px;
}
.fdmd-dashboard .fdmd-history-head span {
    color:var(--blue);
    font-size:10px;
    font-weight:800;
    letter-spacing:.06em;
}
.fdmd-dashboard .fdmd-history-list{

    overflow:hidden;
    
}
.fdmd-dashboard .fdmd-history-row {
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 15px;
}

.fdmd-dashboard .fdmd-history-icon {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:40px;
    height:40px;
    border-radius:9px;
    color:var(--blue);
    background:color-mix(in srgb,var(--blue) 12%,var(--ui-bg));
    font-size:19px;
}
.fdmd-dashboard .fdmd-history-meta{
    display:flex;
    flex:1;
    flex-direction:column;
    gap:5px;
    min-width:0;
}
.fdmd-dashboard .fdmd-history-meta strong{
    color:var(--tt);
    font-size:13px;
    font-weight:800;
}
.fdmd-dashboard .fdmd-history-meta small{
    color:var(--ui-tt-fade);
    font-size:11px;
    line-height:1.5;
}
.fdmd-dashboard .fdmd-history-paid{
    flex-shrink:0;
    padding:7px 11px;
    border-radius:30px;
    color:#167348;
    background:#dbf5e6;
    font-size:10px;
    font-weight:800;
}
.fdmd-dashboard .fdmd-history-empty{
    padding:20px;
    text-align:center;
    color:var(--ui-tt-fade);
    font-size:12px;
}
.fdmd-dashboard .fdmd-history-note{
    margin:12px 0 0;
    color:var(--ui-tt-fade);
    font-size:10px;
    line-height:1.6;
}
.dt-is-active .fdmd-dashboard .fdmd-history-paid{
    color:#79dfad;
    background:rgba(38,145,94,.18);
}
@media(max-width:480px){
    .fdmd-dashboard .fdmd-history-row{
        flex-wrap:wrap;
    }
}

/* ========================================
   5. PROFILE AND DASHBOARD APPEARANCE
   ======================================== */
/* FDMD HOMEPAGE FUSION V1 */
/* Scoped to 4Download profile and member dashboard */
/* Existing layout, cover, data and controls are preserved */

/* PROFILE SURFACE */
.us--page.serv{
    position:relative;
    border-radius:10px;
    background:var(--ui-bg);
    box-shadow:0 6px 18px rgba(19,46,75,.10);
    box-sizing:border-box;
    width:100%;
    max-width:none;
    margin:0;
    padding:0;
    border:0;
    overflow:visible;
}

.us--page .us__img{
    filter:drop-shadow(0 9px 13px rgba(7,31,58,.22));
}

.us--page .us__img img {
    box-sizing:border-box;
    border:5px solid var(--ui-bg);
    box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 45%,transparent);
}

.us--page .us__name{
    letter-spacing:-.5px;
    text-shadow:0 2px 9px rgba(0,0,0,.2);
}

.us--page .us__status.on{
    background:#45c947;
    box-shadow:0 5px 13px rgba(31,161,73,.25);
    font-weight:800;
}

.us--page .us__info-desc{
    color:var(--blue);
    font-weight:800;
}

.us--page .us__btn a {
    border-radius:8px;
    background:color-mix(in srgb,var(--blue) 6%,var(--ui-bg));
    border-color:color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
    color:var(--blue);
    font-weight:750;
    transition:transform .22s,box-shadow .22s;
    padding:9px 16px;
}

.us--page .us__btn a:hover {
    transform:none;
    box-shadow:0 5px 12px color-mix(in srgb,var(--blue) 12%,transparent);
}

/* DASHBOARD */
.fdmd-dashboard {
    border-radius:10px;
    border:0;
    background:var(--ui-bg);
    box-shadow:0 6px 18px rgba(19,46,75,.10);
}

/* BLUE-CYAN HOMEPAGE BRAND HEADER */
.fdmd-dashboard .fdmd-heading {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    margin:-22px -22px 22px;
    padding:24px 26px;
    border-radius:9px 9px 0 0;
    background:var(--fd-theme-hero,linear-gradient(125deg,#132e4b 0%,#205d94 55%,#148c96 100%));
    box-shadow:inset 0 -1px 0 rgba(255,255,255,.18);
}

.fdmd-dashboard .fdmd-heading::before{
    content:"";
    position:absolute;
    z-index:-1;
    width:370px;
    height:220px;
    right:0;
    top:-90px;
    border-radius:50%;
    background:radial-gradient(
        circle,
        rgba(255,255,255,.24),
        rgba(255,255,255,0) 70%
    );
    pointer-events:none;
}

/* FDMD DASHBOARD LOGO HEADER V1 */
.fdmd-dashboard .fdmd-heading::after {
    content:"";
    position:absolute;
    z-index:-1;
    top:50%;
    right:25px;
    width:185px;
    height:120px;
    background:url("/logo.png") center center / contain no-repeat;
    opacity:.30;
    transform:translateY(-50%) rotate(-7deg);
    pointer-events:none;
}

.fdmd-dashboard .fdmd-heading h2{
    position:relative;
    color:#fff;
    font-size:27px;
    letter-spacing:-.6px;
    text-shadow:0 2px 5px rgba(0,0,0,.08);
}

.fdmd-dashboard .fdmd-heading p{
    position:relative;
    color:rgba(255,255,255,.9);
}

/* PREMIUM GOLD */
.fdmd-dashboard .fdmd-premium{
    position:relative;

}

.fdmd-dashboard .fdmd-premium-renew{
    
    transition:transform .25s,box-shadow .25s;
}

.fdmd-dashboard .fdmd-premium-renew:hover {
    transform:none;
    box-shadow:0 7px 16px color-mix(in srgb,var(--blue) 23%,transparent);
}

/* SECTION TITLES */
.fdmd-dashboard .fdmd-subtitle {
    position:relative;
    color:var(--blue);
    font-weight:750;
}

/* PAYMENT CARDS */
.fdmd-dashboard .fdmd-pay-cell {
    position:relative;
    overflow:hidden;
    transition:transform .25s,box-shadow .25s;
    isolation:isolate;
}

.fdmd-dashboard .fdmd-pay-cell:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 22px rgba(15,71,114,.12);
}

/* PAYMENT HISTORY */

.fdmd-dashboard .fdmd-history-row:nth-child(2n) {
    background:color-mix(in srgb,var(--blue) 6%,var(--ui-bg));
}

.fdmd-dashboard .fdmd-history-row:nth-child(2n):hover{
    background:var(--ui-bg-darkest);
}

/* ACCOUNT OVERVIEW */
.fdmd-dashboard .fdmd-stat {
    position:relative;
    overflow:hidden;
    border-radius:10px;
    transition:transform .25s ease,
        box-shadow .25s ease;
}

/* QUICK ACCESS */
.fdmd-dashboard .fdmd-link{
    position:relative;
    overflow:hidden;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(15,61,98,.07);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.fdmd-dashboard .fdmd-link--history{
    background:linear-gradient(
        135deg,
        var(--ui-bg),
        color-mix(in srgb,var(--blue) 11%,transparent)
    );
}

.fdmd-dashboard .fdmd-link--vip{
    background:linear-gradient(
        135deg,
        var(--ui-bg),
        color-mix(in srgb,var(--blue) 13%,transparent)
    );
}

.fdmd-dashboard .fdmd-link:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 28px rgba(12,85,133,.14);
}

/* NATIVE DARK THEME */
.dt-is-active .us--page.serv{
    box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.dt-is-active .fdmd-dashboard {
    box-shadow:0 10px 26px rgba(0,0,0,.18);
}

.dt-is-active .fdmd-dashboard .fdmd-history-row:nth-child(2n):hover{
    background:var(--ui-bg-darker);
}

/* RESPONSIVE */
@media(max-width:700px){
    .fdmd-dashboard{
        padding:18px;
    }

    .fdmd-dashboard .fdmd-heading {
    margin:-18px -18px 18px;
    padding:22px 18px;
}

    .fdmd-dashboard .fdmd-heading h2{
        font-size:23px;
    }

    .fdmd-dashboard .fdmd-heading::after {
    top:50%;
    right:8px;
    width:120px;
    height:85px;
    opacity:.22;
}

}

@media(prefers-reduced-motion:reduce){
.us--page .us__btn a,
.fdmd-dashboard .fdmd-premium-renew,
.fdmd-dashboard .fdmd-pay-cell,
.fdmd-dashboard .fdmd-stat {
    transition:none;
}

    .fdmd-dashboard .fdmd-premium-renew:hover,
    .fdmd-dashboard .fdmd-pay-cell:hover,
    .fdmd-dashboard .fdmd-stat:hover,
    .fdmd-dashboard .fdmd-link:hover{
        transform:none;
    }
}

/* FDMD PROFILE DETAILS FUSION V2 */
/* Native 4Download theme variables, public profile view */

.us--page .us__three {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    padding:24px 26px 27px 190px;
    border:0;
    border-radius:0 0 10px 10px;
    background:linear-gradient(115deg,color-mix(in srgb,var(--blue) 6%,var(--ui-bg)) 0%,var(--ui-bg) 42%);
    box-shadow:none;
    box-sizing:border-box;
    width:100%;
    margin:0;
}

/* Subtle branded 3D accent in the available left space */
/* FDMD SIGNATURE ADAPTIVE LOGO V8.2 */
.us--page .us__three::before {
    content:"";
    position:absolute;
    top:50%;
    left:10px;
    z-index:0;
    display:block;
    width:170px;
    height:85%;
    border:0;
    border-radius:0;
    background:url("/logo.png") center center / contain no-repeat;
    opacity:.19;
    filter:none;
    box-shadow:none;
    text-shadow:none;
    transform:translateY(-50%);
    pointer-events:none;
}

.us--page .us__list {
    position:relative;
    padding:0;
    margin:0;
}

.us--page .us__list li {
    box-sizing:border-box;
    position:relative;
    min-height:44px;
    margin:0 0 5px;
    padding:12px 14px 12px 190px;
    border:1px solid transparent;
    border-radius:8px;
    background:transparent;
    color:var(--tt);
    line-height:1.5;
    transition:background .22s ease,
        border-color .22s ease,
        transform .22s ease;
}

.us--page .us__list li:nth-child(2n) {
    background:color-mix(in srgb,var(--blue) 6%,var(--ui-bg));
    border-color:color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
}

.us--page .us__list li:hover {
    background:color-mix(in srgb,var(--blue) 6%,var(--ui-bg));
    border-color:var(--blue);
}

.us--page .us__list li > span:first-child {
    position:absolute;
    left:15px;
    top:50%;
    width:165px;
    transform:translateY(-50%);
    color:var(--ui-tt-fade);
    font-size:12px;
    font-weight:650;
}

.us--page .us__list li a {
    color:var(--blue);
    font-weight:650;
    text-decoration:none;
    border-bottom:1px dashed currentColor;
    transition:color .2s ease;
}

.us--page .us__list li a:hover {
    color:var(--fd-theme-accent,var(--blue));
}

/* Preserve native DLE member-group output */
.us--page .us__list li .group,
.us--page .us__list li .user-group {
    vertical-align:middle;
}

/* Modern Edit button, original DLE editor remains unchanged */
.us--page .us__three [data-fdmd-editor-open] {
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto!important;
    min-width:170px;
    height:43px!important;
    margin-top:18px!important;
    padding:0 25px;
    border:1px solid color-mix(in srgb,var(--blue) 18%,transparent);
    border-radius:10px;
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95)) !important;
    color:#fff !important;
    font-size:12px;
    font-weight:850;
    letter-spacing:.25px;
    box-shadow:0 5px 13px color-mix(in srgb,var(--blue) 18%,transparent);
    transition:transform .22s ease,
        box-shadow .22s ease;
}

.us--page .us__three [data-fdmd-editor-open]:hover {
    transform:none;
    box-shadow:0 7px 16px color-mix(in srgb,var(--blue) 23%,transparent);
}

.us--page .us__three [data-fdmd-editor-open]:focus-visible {
    outline:2px solid var(--blue);
    outline-offset:3px;
}

/* Native dark theme */

.dt-is-active .us--page .us__three::before {
    background:url("/logo.png") center center / contain no-repeat;
    opacity:.23;
    filter:none;
    box-shadow:none;
}

/* Responsive profile details */
@media(max-width:760px) {
    .us--page .us__three {
        padding:18px 14px 23px;
        
    }

    .us--page .us__three::before {
        display:none;
    }

    .us--page .us__list li {
        min-height:39px;
        padding:11px 10px 11px 140px;
        margin-bottom:5px;
    }

    .us--page .us__list li > span:first-child {
        left:11px;
        width:120px;
        font-size:11px;
    }

    .us--page .us__three [data-fdmd-editor-open] {
        min-width:155px;
    }
}

@media(max-width:390px) {
    .us--page .us__list li {
        padding-left:120px;
        font-size:12px;
    }

    .us--page .us__list li > span:first-child {
        width:102px;
        font-size:10px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .us--page .us__list li,
    .us--page .us__list li a,
    .us--page .us__three [data-fdmd-editor-open] {
        transition:none;
    }

    .us--page .us__list li:hover,
    .us--page .us__three [data-fdmd-editor-open]:hover {
        transform:none;
    }
}

/* FDMD PREMIUM LUXURY FUSION V3 */
/* Native 4Download theme - visual styling only */

.fdmd-dashboard .fdmd-premium-label i {
    color:var(--blue);
    filter:drop-shadow(0 2px 3px color-mix(in srgb,var(--blue) 16%,transparent));
}

.fdmd-dashboard .fdmd-premium-count strong{
    font-weight:900;
    
}

.fdmd-dashboard .fdmd-premium-expires strong{
    font-weight:850;
}

.fdmd-dashboard .fdmd-premium[data-status="ACTIVE"] .fdmd-premium-state{
    background:#def7e9;
    color:#147d49;
    box-shadow:0 3px 11px rgba(30,160,92,.1);
}

.fdmd-dashboard .fdmd-premium-renew {
    border-radius:10px;
    box-shadow:0 5px 13px color-mix(in srgb,var(--blue) 18%,transparent);
}

.fdmd-dashboard .fdmd-payment-inline {
    border-top-color:color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
}

.fdmd-dashboard .fdmd-pay-heading strong{
    color:var(--tt);
    font-weight:850;
}

.fdmd-dashboard .fdmd-pay-heading span {
    color:var(--blue);
    letter-spacing:.45px;
}

.fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell{
    position:relative;
    --fdmd-pay-tone:var(--blue);
    border:1px solid color-mix(in srgb,var(--fdmd-pay-tone) 25%,var(--ui-bdc));
    background:linear-gradient(120deg,var(--ui-bg),color-mix(in srgb,var(--fdmd-pay-tone) 13%,var(--ui-bg)));

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







.fdmd-dashboard .fdmd-pay-cell strong{
    overflow-wrap:anywhere;
}

.fdmd-dashboard .fdmd-pay-cell > i {
    filter:none;
    position:absolute;
    right:12px;
    top:50%;
    width:auto;
    height:auto;
    line-height:1;
    transform:translateY(-50%);
    opacity:.48;
    pointer-events:none;
    z-index:0;
}

.fdmd-dashboard .fdmd-paid-tier.is-earned{
    border-radius:20px;
    font-weight:850;
    letter-spacing:.35px;
}

.fdmd-dashboard .fdmd-history-head strong{
    font-weight:850;
}

.fdmd-dashboard .fdmd-history-icon{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.2);
}

.dt-is-active .fdmd-dashboard .fdmd-premium[data-status="ACTIVE"] .fdmd-premium-state{
    background:rgba(34,160,96,.19);
    color:#72dda5;
}

.dt-is-active .fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell{
    box-shadow:0 7px 20px rgba(0,0,0,.13);
}

.dt-is-active .fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell:hover{
    box-shadow:0 13px 25px rgba(0,0,0,.2);
}

@media(max-width:620px){
    .fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell {
    border-radius:10px;
}
}

@media(prefers-reduced-motion:reduce){
.fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell {
    transition:none;
}

}

/* FDMD FLAT PREMIUM LAYOUT V1 */
/* Remove nested large card appearance */
/* All dashboard functions and HTML remain unchanged */

/* PREMIUM AS A SECTION, NOT A SECOND CONTAINER */
.fdmd-dashboard .fdmd-premium {
    border:0;
    border-top:0;
    border-radius:0;
    padding:0;
    background:transparent;
    box-shadow:none;
}

.fdmd-dashboard .fdmd-premium:hover {
    background:transparent;
    box-shadow:none;
}

/* KEEP THE GOLD MEMBERSHIP IDENTITY */
.fdmd-dashboard .fdmd-premium-label {
    font-weight:850;
}

.fdmd-dashboard .fdmd-premium-count strong {
    letter-spacing:-1.2px;
}

/* USE CLEAN SEPARATORS BETWEEN SECTIONS */
.fdmd-dashboard .fdmd-payment-inline {
    margin-top:24px;
    border-top:1px solid var(--ui-bdc);
}

/* THREE PAYMENT CARDS REMAIN, WITH LIGHTER DEPTH */
.fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell {
    border-radius:10px;
    box-shadow:0 4px 11px rgba(19,75,114,.045);
}

.fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell:hover {
    transform:none;
    box-shadow:0 6px 15px rgba(19,75,114,.09);
}

/* PAYMENT HISTORY BECOMES A FLAT TRANSACTION LIST */
.fdmd-dashboard .fdmd-history-list {
    border:1px solid color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
    border-radius:10px;
    padding:0;
    background:var(--ui-bg);
    box-shadow:none;
}

.fdmd-dashboard .fdmd-history-row {
    border-radius:0;
    box-shadow:none;
    border-bottom:1px solid var(--ui-bdc);
    transition:background .2s ease;
}

.fdmd-dashboard .fdmd-history-row:last-child {
    border-bottom:0;
}

.fdmd-dashboard .fdmd-history-row:hover {
    background:var(--ui-bg-darker);
}

/* DARK MODE: KEEP THE SAME FLAT STRUCTURE */
.dt-is-active .fdmd-dashboard .fdmd-premium,
.dt-is-active .fdmd-dashboard .fdmd-premium:hover {
    border:0;
    border-top:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}

/* MOBILE SPACING */
@media(max-width:700px) {
    .fdmd-dashboard .fdmd-premium {
    padding-top:0;
}

    .fdmd-dashboard .fdmd-payment-inline {
        margin-top:18px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .fdmd-dashboard .fdmd-pay-grid .fdmd-pay-cell:hover {
        transform:none;
    }
}

/* FDMD HEADING FD ICONS V1 */
.fdmd-dashboard .fdmd-subtitle {
    display:flex;
    align-items:center;
    gap:10px;
    padding-left:0;
}

.fdmd-dashboard .fdmd-heading-icon {
    display:inline-block;
    flex:0 0 auto;
    color:var(--fd-theme-accent,var(--blue));
    font-size:19px;
    line-height:1;
}

.fdmd-dashboard .fdmd-history-head strong {
    display:inline-flex;
    align-items:center;
    gap:10px;
}

.fdmd-dashboard .fdmd-subtitle .fdmd-heading-icon,
.fdmd-dashboard .fdmd-history-head .fdmd-heading-icon {
    filter:drop-shadow(0 2px 3px color-mix(in srgb,var(--blue) 12%,transparent));
}

/* ========================================
   6. PROFILE EDITOR
   ======================================== */
/* FDMD LUXURY PROFILE EDITOR V1 */
[data-fdmd-editor-open] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95)) !important;
    color:#fff !important;
    border-radius:10px;
    font-weight:800;
    text-transform:capitalize;
    box-shadow:0 5px 13px color-mix(in srgb,var(--blue) 15%,transparent);
}
#options.fdmd-editor-overlay {
    position:fixed;
    inset:0;
    z-index:100000;
    padding:22px;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    background:rgba(8,20,34,.72);
    backdrop-filter:blur(6px);
}
#options.fdmd-editor-overlay > .serv {
    width:min(100%,820px);
    max-height:calc(100dvh - 44px);
    overflow-y:auto;
    overscroll-behavior:contain;
    box-sizing:border-box;
    padding:0 25px 25px;
    margin:0;
    border:1px solid var(--ui-bdc);
    border-top:3px solid var(--fd-theme-brand,#2669b3);
    border-radius:10px;
    background:var(--ui-bg);
    color:var(--tt);
    box-shadow:0 28px 75px rgba(0,0,0,.38);
}
#options .fdmd-editor-head {
    position:sticky;
    top:0;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:0 -25px 20px;
    padding:22px 25px;
    background:var(--ui-bg);
    border-bottom:1px solid var(--ui-bdc);
}
#options .fdmd-editor-eyebrow {
    color:var(--blue);
    font-size:10px;
    font-weight:800;
    letter-spacing:1.3px;
}
#options .fdmd-editor-head h2 {
    margin:5px 0;
    color:var(--tt);
    font-size:24px;
    font-weight:800;
}
#options .fdmd-editor-head p {
    margin:0;
    color:var(--ui-tt-fade);
    font-size:12px;
}
#options .fdmd-editor-close {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:40px;
    height:40px;
    border:1px solid var(--ui-bdc);
    border-radius:11px;
    background:var(--ui-bg-darker);
    color:var(--tt);
    font-size:26px;
    cursor:pointer;
}
#options .serv__section {
    padding:19px;
    margin-bottom:17px;
    border:1px solid var(--ui-bdc);
    border-radius:12px;
    background:var(--ui-bg-darker);
}
#options .form__row {
    margin-bottom:15px;
}
#options .form__row input[type="text"],
#options .form__row input[type="password"],
#options .form__row input[type="email"],
#options .form__row select,
#options .form__row textarea {
    box-sizing:border-box;
    max-width:100%;
    border:1px solid var(--ui-bdc);
    border-radius:9px;
    background:var(--ui-bg);
    color:var(--tt);
}
#options .form__row input:focus,
#options .form__row textarea:focus,
#options .form__row select:focus {
    border-color:var(--blue);
    outline:2px solid color-mix(in srgb,var(--blue) 20%,transparent);
}
#options .form__row--submit {
    position:sticky;
    bottom:0;
    z-index:3;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:12px;
    margin:20px -25px -25px;
    padding:17px 25px;
    border-top:1px solid var(--ui-bdc);
    background:var(--ui-bg);
}
#options .form__row--submit .form__btn {
    width:auto;
    min-width:148px;
    padding:12px 20px;
    border:0;
    border-radius:10px;
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95));
    color:#fff;
    font-weight:800;
    cursor:pointer;
}
#options .fdmd-editor-cancel {
    padding:12px 19px;
    border:1px solid var(--ui-bdc);
    border-radius:9px;
    background:var(--ui-bg-darker);
    color:var(--tt);
    cursor:pointer;
}
#options .fdmd-editor-close:focus-visible,
#options .fdmd-editor-cancel:focus-visible,
#options .form__btn:focus-visible {
    outline:2px solid var(--blue);
    outline-offset:3px;
}
@media(max-width:620px) {
    #options.fdmd-editor-overlay {
        padding:10px;
    }
    #options.fdmd-editor-overlay > .serv {
        max-height:calc(100dvh - 20px);
        padding:0 15px 15px;
    }
    #options .fdmd-editor-head {
        margin:0 -15px 15px;
        padding:17px 15px;
    }
    #options .serv__section {
        padding:12px;
    }
    #options .form__row--submit {
        margin:15px -15px -15px;
        padding:14px 15px;
    }
}
@media(prefers-reduced-motion:reduce) {
    #options *,[data-fdmd-editor-open] {
        transition:none !important;
    }
}

/* ========================================
   7. EDITOR TABS
   ======================================== */
/* FDMD EDITOR TABS V2 */
#options .fdmd-editor-head{
    flex-wrap:wrap;
}
#options .fdmd-editor-tabs{
    display:flex;
    flex:1 0 100%;
    gap:7px;
    padding:6px;
    overflow-x:auto;
    border:1px solid var(--ui-bdc);
    border-radius:12px;
    background:var(--ui-bg-darker);
    scrollbar-width:thin;
}
#options .fdmd-editor-tab {
    flex:1 0 auto;
    min-width:95px;
    padding:12px 14px;
    border:1px solid transparent;
    border-radius:8px;
    background:transparent;
    color:var(--tt);
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
    transition:background .2s,color .2s,box-shadow .2s;
}
#options .fdmd-editor-tab:hover{
    color:var(--tt);
    background:var(--ui-bg);
}
#options .fdmd-editor-tab[aria-selected="true"] {
    border-color:transparent;
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95));
    color:#fff;
    box-shadow:0 4px 10px color-mix(in srgb,var(--blue) 16%,transparent);
}
#options .fdmd-editor-tab:focus-visible{
    outline:2px solid var(--blue);
    outline-offset:2px;
}
#options .serv__subtitle{
    display:none;
}
#options .fdmd-tab-panel[hidden]{
    display:none !important;
}
#options .fdmd-tab-panel:not([hidden]){
    animation:fdmd-tab-in .18s ease-out;
}
@keyframes fdmd-tab-in{
    from{opacity:.5;transform:translateY(4px)}
    to{opacity:1;transform:translateY(0)}
}
@media(max-width:620px){
    #options .fdmd-editor-tab{
        min-width:105px;
        padding:11px 13px;
    }
}
@media(prefers-reduced-motion:reduce){
    #options .fdmd-tab-panel:not([hidden]){
        animation:none;
    }
    #options .fdmd-editor-tab{
        transition:none;
    }
}

/* ========================================
   8. AVATAR INTERACTIONS
   ======================================== */
/* FDMD CLICK AVATAR V1 */
.us__img .fdmd-avatar-edit {
    position:absolute;
    inset:0;
    z-index:3;
    display:block;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    border-radius:inherit;
    background:transparent;
    cursor:pointer;
    transition:background .2s ease;
}
.us__img .fdmd-avatar-edit:hover,
.us__img .fdmd-avatar-edit:focus-visible {
    background:rgba(10,22,35,.24);
}
.us__img .fdmd-avatar-edit span {
    position:absolute;
    right:4px;
    bottom:4px;
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border:2px solid #fff;
    border-radius:50%;
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95));
    color:#fff;
    font-size:13px;
    box-shadow:0 3px 10px rgba(0,0,0,.2);
}
.us__img .fdmd-avatar-edit:focus-visible {
    outline:3px solid var(--blue);
    outline-offset:3px;
}
@media(prefers-reduced-motion:reduce) {
    .us__img .fdmd-avatar-edit {
        transition:none;
    }
}

/* ========================================
   9. ACCOUNT AND MEMBERSHIP STATES
   ======================================== */
/* FDMD DANGER ZONE V1 */
#options .fdmd-danger-zone{
    margin-top:22px;
    padding:20px;
    border:1px solid rgba(205,70,75,.32);
    border-radius:14px;
    background:linear-gradient(
        135deg,
        rgba(205,70,75,.085),
        rgba(205,70,75,.015)
    );
}
#options .fdmd-danger-title{
    display:flex;
    align-items:center;
    gap:12px;
    padding-bottom:17px;
    border-bottom:1px solid rgba(205,70,75,.2);
}
#options .fdmd-danger-symbol{
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    flex-shrink:0;
    border-radius:11px;
    background:rgba(205,70,75,.13);
    color:#cb464b;
    font-size:23px;
    font-weight:900;
}
#options .fdmd-danger-title h3{
    margin:0;
    color:var(--tt);
    font-size:16px;
    font-weight:800;
}
#options .fdmd-danger-title p{
    margin:5px 0 0;
    color:var(--ui-tt-fade);
    font-size:11px;
}
#options .fdmd-danger-content{
    padding-top:17px;
}
#options .fdmd-danger-content>strong{
    display:block;
    color:var(--tt);
    font-size:13px;
    font-weight:800;
}
#options .fdmd-danger-content>p{
    margin:9px 0 17px;
    color:var(--ui-tt-fade);
    font-size:12px;
    line-height:1.7;
}
#options .fdmd-danger-content .self_delete_link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 17px;
    border:1px solid #c84e53;
    border-radius:9px;
    background:#bc4249;
    color:#fff!important;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
    transition:background .2s;
}
#options .fdmd-danger-content .self_delete_link:hover{
    background:#9e3037;
    color:#fff!important;
}
#options .fdmd-danger-content .self_delete_link:focus-visible{
    outline:2px solid var(--blue);
    outline-offset:3px;
}
#options .fdmd-danger-action{
    display:inline-block;
}
#options .fdmd-danger-content>small{
    display:block;
    margin-top:15px;
    color:var(--ui-tt-fade);
    font-size:11px;
    line-height:1.7;
}
@media(max-width:480px){
    #options .fdmd-danger-zone{
        padding:15px;
    }
    #options .fdmd-danger-content .self_delete_link{
        width:100%;
        box-sizing:border-box;
    }
}
@media(prefers-reduced-motion:reduce){
    #options .fdmd-danger-content .self_delete_link{
        transition:none;
    }
}

/* FDMD DELETE REQUEST STATUS V1 */
#options .fdmd-danger-pending{
    display:none;
}
#options .fdmd-danger-zone[data-fdmd-delete-pending="1"] .self_delete_link{
    display:none!important;
}
#options .fdmd-danger-zone[data-fdmd-delete-pending="1"] .fdmd-danger-pending{
    display:block;
    padding:15px;
    border:1px solid var(--ui-bdc);
    border-radius:11px;
    background:var(--ui-bg-darker);
}
#options .fdmd-danger-pending strong{
    display:block;
    color:var(--tt);
    font-size:13px;
    font-weight:800;
}
#options .fdmd-danger-pending p{
    margin:9px 0 12px;
    color:var(--ui-tt-fade);
    font-size:12px;
    line-height:1.6;
}
#options .fdmd-danger-pending span{
    display:inline-flex;
    padding:7px 11px;
    border-radius:8px;
    background:rgba(195,141,43,.13);
    color:#c28f40;
    font-size:11px;
    font-weight:800;
}

/* FDMD_MEMBERSHIP_HISTORY_VISIBLE_V1
   Neutral membership appearance for expired
   and ordinary Group 4 accounts.
   Active Group 6 gold design remains unchanged.
*/

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"],
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] {
    background:var(--ui-bg);
    border:0;
    border-top:0;
    border-radius:0;
    box-shadow:none;
    color:var(--tt);
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"]::before,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"]::before,
.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"]::after,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"]::after {
    background:none;
    box-shadow:none;
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-premium-label,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-premium-label {
    color:var(--tt);
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-premium-label i,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-premium-label i {
    color:var(--ui-tt-fade);
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-premium-state {
    background:var(--ui-bg-darker);
    color:var(--ui-tt-fade);
    box-shadow:none;
    border:1px solid var(--ui-bdc);
}

.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-premium-state {
    background:var(--ui-bg-darker);
    color:var(--ui-tt-fade);
    box-shadow:none;
    border:1px solid var(--ui-bdc);
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-premium-renew,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-premium-renew {
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95));
    border:1px solid color-mix(in srgb,var(--blue) 18%,transparent);
    box-shadow:none;
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-premium-renew:hover,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-premium-renew:hover {
    background:var(--fd-theme-hero,linear-gradient(110deg,#2669b3,#128d95));
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-pay-heading span,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-pay-heading span,
.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-history-head span,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-history-head span {
    color:var(--ui-tt-fade);
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-pay-grid .fdmd-pay-cell,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-pay-grid .fdmd-pay-cell {
    background:var(--ui-bg);
    border-color:var(--ui-bdc);
    box-shadow:none;
}

.fdmd-dashboard .fdmd-premium[data-status="EXPIRED"] .fdmd-paid-tier,
.fdmd-dashboard .fdmd-premium[data-status="MEMBER"] .fdmd-paid-tier {
    border-color:var(--ui-bdc);
    background:var(--ui-bg-darker);
}

/* FDMD_MEMBERSHIP_CARD_NO_HOVER_V11
   Disable hover effects on Membership card only.
   Buttons and child cards retain their behavior.
*/
.fdmd-dashboard .fdmd-premium,
.fdmd-dashboard .fdmd-premium:hover {
    transform: none !important;
    translate: none !important;
    scale: none !important;
    animation: none !important;
    transition: none !important;
    filter: none !important;
}

/* FDMD_HISTORY_COLLAPSE_V1
   Native expand/collapse for 10 history records.
   First 3 records remain visible.
*/

.fdmd-dashboard .fdmd-history-more {
    display:block;
    margin:0;
    padding:0;
    border:0;
}

.fdmd-dashboard .fdmd-history-toggle {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:48px;
    padding:12px 16px;
    margin-top:8px;
    border:1px solid var(--ui-bdc);
    border-radius:8px;
    background:color-mix(in srgb,var(--blue) 6%,var(--ui-bg));
    color:var(--blue);
    font-size:12px;
    font-weight:750;
    letter-spacing:.2px;
    text-align:center;
    cursor:pointer;
    list-style:none;
    user-select:none;
    transition:background .2s ease,
        border-color .2s ease;
    border-color:color-mix(in srgb,var(--blue) 22%,var(--ui-bdc));
}

.fdmd-dashboard .fdmd-history-toggle::-webkit-details-marker {
    display:none;
}

.fdmd-dashboard .fdmd-history-toggle::marker {
    content:"";
}

.fdmd-dashboard .fdmd-history-toggle:hover {
    background:color-mix(in srgb,var(--blue) 12%,var(--ui-bg));
    border-color:var(--blue);
}

.fdmd-dashboard .fdmd-history-toggle:focus-visible {
    outline:2px solid var(--tt);
    outline-offset:3px;
}

.fdmd-dashboard .fdmd-history-more .fdmd-show-less {
    display:none;
}

.fdmd-dashboard .fdmd-history-more[open] .fdmd-show-more {
    display:none;
}

.fdmd-dashboard .fdmd-history-more[open] .fdmd-show-less {
    display:inline;
}

.fdmd-dashboard .fdmd-toggle-arrow {
    display:inline-block;
    width:7px;
    height:7px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:rotate(45deg);
    transition:transform .2s ease;
}

.fdmd-dashboard .fdmd-history-more[open] .fdmd-toggle-arrow {
    transform:rotate(225deg);
}

.fdmd-dashboard .fdmd-history-more[open] .fdmd-history-toggle {
    margin-bottom:8px;
}

.fdmd-dashboard .fdmd-history-more .fdmd-history-row {
    width:100%;
}

@media (prefers-reduced-motion:reduce) {
    .fdmd-dashboard .fdmd-history-toggle,
    .fdmd-dashboard .fdmd-toggle-arrow {
        transition:none;
    }
}
