/* Lives inside a #creator-dashboard-parent .flex-container, same fetch-fragment pattern as
   rewards-parent/supporter-information-parent. Accent color per badge level is driven by a
   data-level attribute on the panel, matching each level's badge art
   (public/images/badges/content-creator-level-N.png). */

.interface.creator-dashboard-interface {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 0;
    border-radius: 10px;
}

.creator-dashboard-interface,
.creator-dashboard-interface *,
.creator-dashboard-interface *::before,
.creator-dashboard-interface *::after {
    box-sizing: border-box;
}

.creator-dashboard-interface .close-button {
    z-index: 5;
}

/* ---------------------------------------------------------------------------
   Per-level accent colors - falls back to a neutral grey (Level 0, not yet earned a badge)
--------------------------------------------------------------------------- */
.creator-dashboard-interface {
    --cd-accent: #9aa0ae;
    --cd-accent-deep: #6b7280;
}
.creator-dashboard-interface[data-level="1"] { --cd-accent: #58f4ff; --cd-accent-deep: #11b9c5; }
.creator-dashboard-interface[data-level="2"] { --cd-accent: #3ae9b1; --cd-accent-deep: #109e6a; }
.creator-dashboard-interface[data-level="3"] { --cd-accent: #29b0ff; --cd-accent-deep: #2381d3; }
.creator-dashboard-interface[data-level="4"] { --cd-accent: #f55d5d; --cd-accent-deep: #c92626; }
.creator-dashboard-interface[data-level="5"] { --cd-accent: #ff7ac9; --cd-accent-deep: #ce2387; }
.creator-dashboard-interface[data-level="6"] { --cd-accent: #e96ef2; --cd-accent-deep: #a51cb4; }
.creator-dashboard-interface[data-level="7"] { --cd-accent: #b387ff; --cd-accent-deep: #6233c0; }
.creator-dashboard-interface[data-level="8"] { --cd-accent: #ffa85c; --cd-accent-deep: #cc530c; }
.creator-dashboard-interface[data-level="9"] { --cd-accent: #92e873; --cd-accent-deep: #429e21; }
.creator-dashboard-interface[data-level="10"] { --cd-accent: #ffcb5c; --cd-accent-deep: #dd7f04; }

/* Same per-level pairs, but re-declarable on any descendant (the milestone rail's own cards, each
   tagged with their OWN data-level) so a card can show its own badge's color instead of inheriting
   the panel-wide current-level accent. Closest declaration wins, so this only affects that card. */
.creator-dashboard-interface [data-level="1"] { --cd-accent: #58f4ff; --cd-accent-deep: #11b9c5; }
.creator-dashboard-interface [data-level="2"] { --cd-accent: #3ae9b1; --cd-accent-deep: #109e6a; }
.creator-dashboard-interface [data-level="3"] { --cd-accent: #29b0ff; --cd-accent-deep: #2381d3; }
.creator-dashboard-interface [data-level="4"] { --cd-accent: #f55d5d; --cd-accent-deep: #c92626; }
.creator-dashboard-interface [data-level="5"] { --cd-accent: #ff7ac9; --cd-accent-deep: #ce2387; }
.creator-dashboard-interface [data-level="6"] { --cd-accent: #e96ef2; --cd-accent-deep: #a51cb4; }
.creator-dashboard-interface [data-level="7"] { --cd-accent: #b387ff; --cd-accent-deep: #6233c0; }
.creator-dashboard-interface [data-level="8"] { --cd-accent: #ffa85c; --cd-accent-deep: #cc530c; }
.creator-dashboard-interface [data-level="9"] { --cd-accent: #92e873; --cd-accent-deep: #429e21; }
.creator-dashboard-interface [data-level="10"] { --cd-accent: #ffcb5c; --cd-accent-deep: #dd7f04; }

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.creator-dashboard-header {
    position: relative;
    padding: 26px 26px 20px;
    background: radial-gradient(120% 160% at 10% -20%, #ffffff70 0%, transparent 60%), linear-gradient(135deg, var(--cd-accent-deep) 0%, var(--cd-accent) 100%);
    /* Oversized relative to the box so the radial highlight has room to drift without revealing a
       hard edge - the linear base layer stays fixed-size/position so the solid background behind
       the header text never shifts or loses contrast. */
    background-size: 240% 240%, 100% 100%;
    background-position: 0% 0%, 0% 0%;
    animation: creator-dashboard-header-glow 4s ease-in-out infinite;
    color: #fff;
    border-radius: 7px 7px 0 0;
    overflow: hidden;
    text-align: left;
}

@keyframes creator-dashboard-header-glow {
    0%, 100% { background-position: 0% 0%, 0% 0%; }
    50% { background-position: 65% 50%, 0% 0%; }
}

.creator-dashboard-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, #fff, var(--cd-accent), #fff);
    background-size: 200% 100%;
    animation: creator-dashboard-header-shimmer 5s linear infinite;
}

@keyframes creator-dashboard-header-shimmer {
    from { background-position: 0% 0; }
    to { background-position: -200% 0; }
}

.creator-dashboard-crest {
    width: 60px;
    height: 59px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px -4px #00000070, inset 0 0 0 2px #ffffff40;
    margin-bottom: 14px;
    padding: 6px;
}

.creator-dashboard-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.creator-dashboard-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffffcc;
    margin: 0 0 4px;
}

.creator-dashboard-header h1 {
   	margin: 0 0 10px;
    font-size: 25px;
    font-weight: 700;
    text-shadow: 0px 2px 1px #00000042;
}

.creator-dashboard-level-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff30;
    border: 1px solid #ffffff55;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 5px 10px 5px 8px;
    border-radius: 100px;
}

.creator-dashboard-level-pill .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px #ffffff33;
}

/* ---------------------------------------------------------------------------
   Tabs - reuses the game-standard .ui-tabs-nav/.ui-tabs-panel (style.css), same as
   rewards-interface.html. Block layout instead of the base flex-centered panel, same override
   reasoning as rewards.css's own .rewards-interface .ui-tabs-panel.
--------------------------------------------------------------------------- */
.creator-dashboard-interface > ul {
    margin: 14px 14px 0;
    padding: 0 0 0;
    width: calc(100% - 28px);
}

.creator-dashboard-interface .ui-tabs-nav {
    overflow-x: hidden;
}

.creator-dashboard-interface .ui-tabs-nav li {
    margin: 0 5px 0 0;
}

.creator-dashboard-interface .ui-tabs-nav li:last-of-type {
    margin-right: 0;
}

.creator-dashboard-interface .ui-tabs-nav li a {
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    padding: 10px 10px;
}

.creator-dashboard-tab-icon {
    display: inline-block;
    width: 15px;
    height: 15px;
    vertical-align: -2px;
    margin-right: 9px;
    background-color: #4c4c4c;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.creator-dashboard-tab-icon.icon-home { -webkit-mask-image: url('../images/ui-elements/icon-home.png'); mask-image: url('../images/ui-elements/icon-home.png'); }
.creator-dashboard-tab-icon.icon-shopping { -webkit-mask-image: url('../images/ui-elements/icon-shopping.png'); mask-image: url('../images/ui-elements/icon-shopping.png'); }

/* Matches the active tab's white text (see .ui-state-active a override below) */
.creator-dashboard-interface .ui-tabs-nav li.ui-state-active .creator-dashboard-tab-icon {
    background-color: #fff;
}

.creator-dashboard-interface .ui-tabs-panel {
    display: block;
    height: auto;
    width: 100%;
    padding: 0 15px 15px 15px;
}

/* Overrides style.css's generic grey active-tab style with a fixed neutral slate instead of the
   badge-level accent - only .creator-dashboard-header reflects the current badge color. */
.creator-dashboard-interface .ui-tabs-nav li.ui-state-active a {
    background: #6b7280;
    color: #fff;
}

/* ---------------------------------------------------------------------------
   Body + cards
--------------------------------------------------------------------------- */
.creator-dashboard-body {
    padding: 0 5px 0 0;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    max-height: 600px;
    height: calc(100vh - 370px);
    overflow-y: auto;
}

.creator-dashboard-body::-webkit-scrollbar-track { background-color: #e7e9f2; border-radius: 5px; }
.creator-dashboard-body::-webkit-scrollbar-thumb { background-color: #000; border-radius: 4px; }
.creator-dashboard-body::-webkit-scrollbar { width: 5px; height: 5px; }

.creator-dashboard-card {
    background: #f7f8fc;
    border: 1px solid #e7e9f2;
    border-radius: 14px;
    padding: 16px 16px 17px;
}

.creator-dashboard-card > *:last-child { margin-bottom: 0; }

.creator-dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #14141f;
    text-transform: uppercase;
}

.creator-dashboard-ref-count {
    margin-left: auto;
    background: #0e9161;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px 3px;
    border-radius: 999px;
}

.creator-dashboard-ref-count::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 13px;
    margin-right: 3px;
    vertical-align: -1px;
    background-color: #fff;
    -webkit-mask-image: url('../images/ui-elements/icon-user.png');
    mask-image: url('../images/ui-elements/icon-user.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.creator-dashboard-icon-wrap {
    width: 26px; height: 26px;
    border-radius: 5px;
    border: 1px solid #00000030;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: #fff;
}

/* Per-section color coding, independent of the badge-level accent - only
   .creator-dashboard-header reflects the live badge color. Purple is reused for both "Your points"
   (Home) and "Available balance" (Points Shop) - same concept on two tabs. Green/red are excluded -
   green is used for point/money values elsewhere (progress bar, referral earnings), red for the
   Gem builder's "locked" state. Colors the icon's own mask-color too, not just the wrap's
   background, since .creator-dashboard-icon is recolored via mask + background-color, not a text
   `color` property. */
.creator-dashboard-icon-wrap.purple { background: #ece3fb; }
.creator-dashboard-icon-wrap.purple .creator-dashboard-icon { background-color: #7b4fd6; }
.creator-dashboard-icon-wrap.blue { background: #e3edff; }
.creator-dashboard-icon-wrap.blue .creator-dashboard-icon { background-color: #2569f6; }
.creator-dashboard-icon-wrap.orange { background: #fdebd3; }
.creator-dashboard-icon-wrap.orange .creator-dashboard-icon { background-color: #e97e03; }
.creator-dashboard-icon-wrap.gold { background: #fbf0d9; }
.creator-dashboard-icon-wrap.gold .creator-dashboard-icon { background-color: #c98a1f; }
.creator-dashboard-icon-wrap.magenta { background: #fae3f5; }
.creator-dashboard-icon-wrap.magenta .creator-dashboard-icon { background-color: #c2359e; }
.creator-dashboard-icon-wrap.teal { background: #dcf4f5; }
.creator-dashboard-icon-wrap.teal .creator-dashboard-icon { background-color: #0f9aa3; }
.creator-dashboard-icon-wrap.indigo { background: #e4e7fb; }
.creator-dashboard-icon-wrap.indigo .creator-dashboard-icon { background-color: #4a5fd6; }
.creator-dashboard-icon-wrap.brown { background: #f3e7da; }
.creator-dashboard-icon-wrap.brown .creator-dashboard-icon { background-color: #9c6b3f; }
.creator-dashboard-icon-wrap.green { background: #d8fbe8; }
.creator-dashboard-icon-wrap.green .creator-dashboard-icon { background-color: #589b77; }

/* Separate PNGs per icon (not a shared spritesheet), recolored via mask-image + background-color -
   a shared spritesheet sliced via mask-size/mask-position rendered pixelated at this scale even
   with background-image, since the real cause was the slicing, not mask-image itself. */
.creator-dashboard-icon {
    display: block;
    width: 14px;
    height: 14px;
    background-color: #4c4c4c;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.creator-dashboard-icon.icon-points      { -webkit-mask-image: url('../images/ui-elements/icon-points.png'); mask-image: url('../images/ui-elements/icon-points.png'); }
.creator-dashboard-icon.icon-progress    { -webkit-mask-image: url('../images/ui-elements/icon-progress.png'); mask-image: url('../images/ui-elements/icon-progress.png'); }
.creator-dashboard-icon.icon-link        { -webkit-mask-image: url('../images/ui-elements/icon-link.png'); mask-image: url('../images/ui-elements/icon-link.png'); }
.creator-dashboard-icon.icon-milestones  { -webkit-mask-image: url('../images/ui-elements/icon-milestones.png'); mask-image: url('../images/ui-elements/icon-milestones.png'); }
.creator-dashboard-icon.icon-referrals   { -webkit-mask-image: url('../images/ui-elements/icon-coupon.png'); mask-image: url('../images/ui-elements/icon-coupon.png'); }
/* Points Shop tab only - "Gem codes"/"Exclusive item codes" need their own glyphs (diamond/
   armchair), separate from icon-progress/icon-milestones above, which Home's own cards still use
   under those same class names. */
.creator-dashboard-icon.icon-gems        { -webkit-mask-image: url('../images/ui-elements/icon-diamond.png'); mask-image: url('../images/ui-elements/icon-diamond.png'); }
.creator-dashboard-icon.icon-items       { -webkit-mask-image: url('../images/ui-elements/icon-armchair.png'); mask-image: url('../images/ui-elements/icon-armchair.png'); }

/* ---------------------------------------------------------------------------
   Points stat row
--------------------------------------------------------------------------- */
.creator-dashboard-stat-row { display: flex; gap: 10px; }

.creator-dashboard-stat {
    flex: 1;
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.creator-dashboard-stat .label {
    font-size: 10.5px;
    color: #75758c;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    margin-bottom: 3px;
}

.creator-dashboard-stat .value {
    font-size: 18px;
    font-weight: 800;
    color: #14141f;
    font-variant-numeric: tabular-nums;
}

.creator-dashboard-stat .value.accent { color: #0e9161; }

/* ---------------------------------------------------------------------------
   Progress bar
--------------------------------------------------------------------------- */
.creator-dashboard-progress-track {
    background: #ededed;
    border-radius: 10px;
    height: 15px;
    overflow: hidden;
    box-shadow: inset 0 1px 4px #00000030;
    margin-bottom: 6px;
}

.creator-dashboard-progress-fill {
    height: 100%;
    background: linear-gradient(to bottom, #26b17d 0%, #0e9161 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.creator-dashboard-progress-caption {
    font-size: 12px;
    color: #575757;
    display: flex;
    justify-content: space-between;
}

.creator-dashboard-progress-caption strong { color: #14141f; }

/* ---------------------------------------------------------------------------
   Referral link
--------------------------------------------------------------------------- */
.creator-dashboard-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.creator-dashboard-link-text {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator-dashboard-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0e9161;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
}

/* ::before, not a prepended child - the "Copied!" textContent swap in creatorDashboard.js would
   wipe out a real child element but never touches a pseudo-element. */
.creator-dashboard-copy-btn::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #fff;
    -webkit-mask-image: url('../images/ui-elements/icon-copy.png');
    mask-image: url('../images/ui-elements/icon-copy.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.creator-dashboard-copy-btn:hover { background: #26b17d; }
.creator-dashboard-copy-btn.copied { background: #26b17d; }

/* ---------------------------------------------------------------------------
   Upcoming milestones rail
--------------------------------------------------------------------------- */
.creator-dashboard-milestone-rail { display: flex; gap: 8px; }

.creator-dashboard-milestone-card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    border-top: 3px solid transparent;
    box-shadow: 0 1px 4px #00000022;
    padding: 8px 6px;
    text-align: center;
}

.creator-dashboard-milestone-card img {
    width: 32px; height: 32px;
    margin-bottom: 4px;
    border: 1px solid #0000006b;
    border-radius: 5px;
    overflow: hidden;
}
.creator-dashboard-milestone-card.done { opacity: 0.55; }
.creator-dashboard-milestone-card.next {
    border-top-color: var(--cd-accent);
    background: color-mix(in srgb, var(--cd-accent) 10%, #fff);
}

.creator-dashboard-milestone-card .lvl {
    font-size: 10px;
    font-weight: 800;
    color: #75758c;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.creator-dashboard-milestone-card.next .lvl { color: var(--cd-accent-deep); }
.creator-dashboard-milestone-card .pts { font-size: 12px; font-weight: 700; color: #14141f; }

/* ---------------------------------------------------------------------------
   Referred players list
--------------------------------------------------------------------------- */
.creator-dashboard-ref-list {
    max-height: 190px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 3px;
}

.creator-dashboard-ref-list::-webkit-scrollbar-track { background-color: #e7e9f2; border-radius: 5px; }
.creator-dashboard-ref-list::-webkit-scrollbar-thumb { background-color: #000; border-radius: 4px; }
.creator-dashboard-ref-list::-webkit-scrollbar { width: 7px; }

.creator-dashboard-ref-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 8px;
    padding: 8px 10px;
}

.creator-dashboard-ref-row .rank {
    width: 20px;
    font-size: 11px;
    font-weight: 800;
    color: #75758c;
    flex-shrink: 0;
    text-align: center;
}

.creator-dashboard-ref-row .uname { flex: 1; font-size: 13px; font-weight: 700; color: #14141f; }
.creator-dashboard-ref-row .pts { font-size: 13px; font-weight: 800; color: #0e9161; font-variant-numeric: tabular-nums; }

.creator-dashboard-ref-empty {
    font-size: 12.5px;
    color: #75758c;
    text-align: center;
    margin: 6px 0;
}

/* Opens the Points Guide popup (creatorPointsGuide.js) - a neutral/secondary button, not an accent
   or green action, since it's purely informational. */
#creator-dashboard-interface .creator-dashboard-points-guide-btn {
	border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 12px;
}

.creator-dashboard-points-guide-btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 17px;
    margin-right: 10px;
    vertical-align: -4px;
    background-color: #fff;
    -webkit-mask-image: url('../images/ui-elements/icon-table.png');
    mask-image: url('../images/ui-elements/icon-table.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* ---------------------------------------------------------------------------
   Points Shop
--------------------------------------------------------------------------- */
.creator-dashboard-lock-pill {
    margin-left: auto;
    background: #75758c;
    color: #fff;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1;
    padding: 6px 10px 5px;
    border-radius: 999px;
}

.creator-dashboard-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.creator-dashboard-shop-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.creator-dashboard-shop-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 0 auto 6px;
    border: 1px solid #0000006b;
    border-radius: 5px;
}

.creator-dashboard-shop-item .name {
    font-size: 11.5px;
    font-weight: 700;
    color: #14141f;
    margin-bottom: 4px;
    line-height: 1.25;
}

.creator-dashboard-shop-item .cost {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    margin-bottom: 8px;
}

.creator-dashboard-redeem-btn {
	background: #0e9161;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

/* ::before, not a prepended child - "Redeem"/"Generate code" get swapped to "Redeemed!"/
   "Generated!"/"Done!" via .textContent in creatorDashboard.js, which would wipe out a real child
   element but never touches a pseudo-element. */
.creator-dashboard-redeem-btn::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 5px;
    vertical-align: -2px;
    background-color: #fff;
    -webkit-mask-image: url('../images/ui-elements/icon-content-creator.png');
    mask-image: url('../images/ui-elements/icon-content-creator.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.creator-dashboard-redeem-btn:hover { background: #26b17d; }
.creator-dashboard-redeem-btn:disabled { background: #c7cadb; cursor: not-allowed; }
.creator-dashboard-redeem-btn.done { background: #26b17d; }

.creator-dashboard-gem-builder-box { position: relative; }

.creator-dashboard-gem-builder-inner {
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    padding: 12px 14px;
}

.creator-dashboard-gem-builder.locked .creator-dashboard-gem-builder-inner { pointer-events: none; }

.creator-dashboard-gem-lock-overlay {
    display: none;
    position: absolute;
    inset: 0;
    /* Fixed red, not accent-tied - "locked" is its own universal semantic, independent of both
       badge level and the neutral palette used elsewhere outside the header. */
    background: color-mix(in srgb, #c54245 82%, transparent);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.creator-dashboard-gem-builder.locked .creator-dashboard-gem-lock-overlay { display: flex; }
.creator-dashboard-gem-lock-overlay .lock-glyph {
    width: 24px;
    height: 24px;
    background-color: #fff;
    -webkit-mask-image: url('../images/ui-elements/icon-lock.png');
    mask-image: url('../images/ui-elements/icon-lock.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.creator-dashboard-gem-lock-overlay strong { font-size: 14px; color: #fff; font-weight: 800; }
.creator-dashboard-gem-lock-overlay span { font-size: 12px; color: #ffffffd9; font-weight: 600; }

.creator-dashboard-gem-slider-row { display: flex; align-items: center; gap: 12px; }
.creator-dashboard-gem-slider { flex: 1; accent-color: #6b7280; }
.creator-dashboard-gem-amount { font-size: 15px; font-weight: 800; color: #14141f; white-space: nowrap; }
.creator-dashboard-gem-amount span { font-size: 11px; font-weight: 700; color: #75758c; text-transform: uppercase; }

.creator-dashboard-gem-cost-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #575757;
}
.creator-dashboard-gem-cost-row strong { color: #14141f; }
.creator-dashboard-gem-cost-row .creator-dashboard-redeem-btn { width: auto; margin-top: 0; }

.creator-dashboard-code-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 8px;
    padding: 10px 12px;
}
.creator-dashboard-code-row-top { display: flex; align-items: center; gap: 8px; }
.creator-dashboard-code-row .what { font-size: 13px; font-weight: 700; color: #14141f; flex: 1; }
.creator-dashboard-code-row-bottom { display: flex; align-items: center; gap: 8px; }
.creator-dashboard-code-row .code {
    font-size: 12.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #75758c;
    letter-spacing: .04em;
    flex: 1;
}
.creator-dashboard-code-row .status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px 2px;
    border-radius: 999px;
    flex-shrink: 0;
}
.creator-dashboard-code-row .status.unclaimed { background: #fff4d9; color: #96730e; }
.creator-dashboard-code-row .status.claimed { background: #dff5e8; color: #1f8a4f; }
.creator-dashboard-code-row .creator-dashboard-copy-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0e9161;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 9px 3px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
}

.creator-dashboard-code-row .creator-dashboard-copy-btn-small::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fff;
    -webkit-mask-image: url('../images/ui-elements/icon-copy.png');
    mask-image: url('../images/ui-elements/icon-copy.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.creator-dashboard-code-row .creator-dashboard-copy-btn-small:hover { background: #26b17d; }
.creator-dashboard-code-row .creator-dashboard-copy-btn-small.copied { background: #26b17d; }

.creator-dashboard-footnote {
    text-align: center !important;
    font-size: 12px;
    color: #6d6d81;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .creator-dashboard-header {
        padding: 18px 18px 10px;
    }

    .creator-dashboard-eyebrow {
        display: none;
    }

    .creator-dashboard-crest {
        float: left;
        margin-right: 9px;
    }

    .creator-dashboard-header h1 {
        font-size: 18px;
        margin-bottom: 4px;
        margin-top: 6px;
    }

    .creator-dashboard-level-pill {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .interface.creator-dashboard-interface { max-width: min(380px, calc(100vw - 33px)); }
    .creator-dashboard-milestone-card.done,
    .creator-dashboard-milestone-card.locked {
        display: none;
    }
    .creator-dashboard-milestone-card.next {
        flex-basis: 100%;
    }
}
