/* +888 number purchase: the same dialog as a gift purchase and upgrade. */

.anb-stage {
    --xnight-backdrop-center-color: #3b9eff;
    --xnight-backdrop-edge-color: #0b3a78;
}
.anb-stage.is-pretty {
    --xnight-backdrop-center-color: #f7c948;
    --xnight-backdrop-edge-color: #7a4a00;
}
.anb-stage .xnight-upgrade-backdrop { opacity: 1; }

.anb-number {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2px;
    font: 800 30px/1 'SF Mono', 'Roboto Mono', ui-monospace, Menlo, monospace;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.anb-number .gap { width: 10px; }
.anb-number .plus { margin-right: 2px; }
.anb-slot {
    position: relative;
    display: inline-block;
    width: 0.66em;
    height: 1.18em;
    overflow: hidden;
    text-align: center;
}
.anb-col {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.anb-col span { height: 1.18em; line-height: 1.18em; }
.anb-slot.is-idle span { opacity: .55; }
.anb-slot.is-land { animation: anb-land .35s ease-out; }
@keyframes anb-land { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }

.anb-star {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .35);
    color: #ffd76a;
    font-size: 12px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
}
.anb-stage.is-pretty .anb-star { opacity: 1; transform: none; }
.anb-caption {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 2;
    color: rgba(255, 255, 255, .78);
    font-size: 12.5px;
    font-weight: 700;
}

/* Profile: numbers as pill cards ----------------------------------------- */
.sub-user-branch.anb-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 10px 0 4px;
}
.anb-chip {
    --anb-a: #6d5dfc;
    --anb-b: #2aa7ff;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    height: 50px;
    padding: 0 14px 0 6px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--anb-a) 38%, rgba(255, 255, 255, .08));
    background:
        linear-gradient(100deg, color-mix(in srgb, var(--anb-a) 16%, transparent), transparent 75%),
        rgba(255, 255, 255, .035);
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.light-theme .anb-chip { background: linear-gradient(100deg, color-mix(in srgb, var(--anb-a) 10%, transparent), transparent 75%), #fff; border-color: color-mix(in srgb, var(--anb-a) 30%, rgba(0, 0, 0, .08)); }
.anb-chip:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--anb-a) 70%, transparent);
    box-shadow: 0 10px 26px color-mix(in srgb, var(--anb-a) 22%, transparent);
}
.anb-chip-ico {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(140deg, var(--anb-a), var(--anb-b));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 12px color-mix(in srgb, var(--anb-a) 40%, transparent);
}
.anb-chip-ico svg { width: 18px; height: 18px; }
.anb-chip-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.anb-chip-copy small { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); line-height: 1; }
.anb-chip-copy b {
    font: 800 15.5px/1 'SF Mono', 'Roboto Mono', ui-monospace, Menlo, monospace;
    letter-spacing: .2px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.anb-chip-go { flex: none; width: 18px; height: 18px; margin-left: 4px; color: var(--text-muted); transition: transform .15s ease, color .15s ease; }
.anb-chip-go svg { width: 100%; height: 100%; display: block; }
.anb-chip:hover .anb-chip-go { transform: translateX(3px); color: var(--text-main); }

.anb-chip.is-pretty { --anb-a: #f5b301; --anb-b: #ff7a18; }
.anb-chip.is-pretty .anb-chip-copy b {
    background: linear-gradient(100deg, #ffe69a 0%, #ffc233 30%, #fff4cc 50%, #ffc233 70%, #ff9f1c 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: anb-shimmer 3.6s ease-in-out infinite;
}
body.light-theme .anb-chip.is-pretty .anb-chip-copy b { background: linear-gradient(100deg, #b45309, #f59e0b, #b45309); -webkit-background-clip: text; background-clip: text; }
.anb-chip.is-pretty .anb-chip-copy small { color: #f5b301; }
@keyframes anb-shimmer { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .anb-chip.is-pretty .anb-chip-copy b { animation: none; } }
@media (max-width: 480px) {
    .anb-chip { height: 46px; }
    .anb-chip-copy b { font-size: 14px; }
}
