/* Free number page — reuses the deposit layout (.dp-*) from user-panel.css; only the extras live here. */

/* The gift art is a cut-out PNG, so it does not need the round mask used for the wallet photo. */
.fn-card-art {
    width: 168px; height: 168px; right: 18px; bottom: -10px; object-fit: contain;
    -webkit-mask-image: none; mask-image: none;
    filter: drop-shadow(0 14px 22px rgba(49, 26, 140, .35));
}

/* Admin announcements */
.fn-mq {
    display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 44px; overflow: hidden;
    border-radius: var(--up-radius); background: var(--up-accent-soft); border: 1px solid #dbe6ff;
    font-size: 13.5px; font-weight: 500; color: var(--up-ink);
}
.fn-mq-icon { display: grid; place-items: center; flex-shrink: 0; color: var(--up-accent); }
.fn-mq-view { display: flex; flex: 1; min-width: 0; overflow: hidden; }
/* Each copy is at least as wide as the bar and moves by its own width, so short text loops cleanly too. */
.fn-mq-track {
    list-style: none; margin: 0; padding: 0; flex-shrink: 0; min-width: 100%;
    display: flex; align-items: center; justify-content: space-around;
    animation: fnMarquee var(--fn-mq-dur, 20s) linear infinite;
}
.fn-mq-track li { padding: 11px 32px 11px 0; white-space: nowrap; }
.fn-mq:hover .fn-mq-track { animation-play-state: paused; }
@keyframes fnMarquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .fn-mq-track { animation: none; flex-wrap: wrap; justify-content: flex-start; flex-shrink: 1; }
    .fn-mq-track li { white-space: normal; }
    .fn-mq-track.is-copy { display: none; }
}

/* Play Store banner */
.fn-play {
    display: flex; align-items: center; gap: 16px; padding: 18px 24px; border-radius: var(--up-radius);
    background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 100%); transition: translate .2s var(--up-ease);
}
.up-page a.fn-play { color: #0c4a6e; }
/* "translate", not "transform": the finished .up-in animation keeps holding transform. */
.fn-play:hover, .fn-play-img:hover { translate: 0 -2px; }
.fn-play-logo { flex-shrink: 0; }
.fn-play-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fn-play-body b { font-size: 15px; font-weight: 700; }
.fn-play-body small { font-size: 13px; color: #075985; }
.fn-play-cta {
    display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 9px 16px; border-radius: 10px;
    background: #0369a1; color: #fff; font-size: 13px; font-weight: 700;
}
.fn-play-img { display: block; overflow: hidden; border-radius: var(--up-radius); transition: translate .2s var(--up-ease); }
.fn-play-img img { display: block; width: 100%; height: auto; }

/* Claim animation */
.fn-fx {
    position: fixed; inset: 0; z-index: 9999; padding: 24px; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .97), rgba(224, 242, 254, .96) 70%);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fn-fx-radar {
    position: relative; width: 200px; height: 200px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center;
    background: repeating-radial-gradient(circle, rgba(3, 105, 161, .05) 0 24px, rgba(3, 105, 161, .16) 24px 25px);
    box-shadow: inset 0 0 0 1.5px rgba(3, 105, 161, .28);
}
.fn-fx-sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(14, 165, 233, .55) 100%);
    animation: upSpin 1.3s linear infinite;
}
.fn-fx-ping { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(14, 165, 233, .6); animation: fnFxPing 1.8s ease-out infinite; }
.fn-fx-ping.is-late { animation-delay: .9s; }
.fn-fx-core {
    position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #38bdf8, #0369a1); color: #fff; box-shadow: 0 12px 26px -8px rgba(3, 105, 161, .7);
    animation: fnFxBeat 1.2s ease-in-out infinite;
}
.fn-fx-core > span { display: grid; place-items: center; }
.fn-fx-num { min-height: 34px; font-size: 26px; font-weight: 700; letter-spacing: .06em; color: #0c4a6e; font-variant-numeric: tabular-nums; }
.fn-fx-title { font-size: 16px; font-weight: 700; color: #0c4a6e; }
.fn-fx-label { min-height: 18px; font-size: 13px; color: #075985; }
.fn-fx.is-done .fn-fx-sweep { display: none; }
.fn-fx.is-done .fn-fx-ping { border-color: rgba(22, 163, 74, .6); animation-iteration-count: 1; animation-fill-mode: both; }
.fn-fx.is-done .fn-fx-core { background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 12px 26px -8px rgba(22, 163, 74, .7); animation: fnFxPop .45s var(--up-ease) both; }
.fn-fx.is-done .fn-fx-title { color: #15803d; font-size: 18px; }
@keyframes fnFxPing { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes fnFxBeat { 50% { transform: scale(1.07); } }
@keyframes fnFxPop { from { transform: scale(.6); } 60% { transform: scale(1.18); } to { transform: scale(1); } }

/* Country rows */
.fn-flag {
    width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
    display: grid; place-items: center; overflow: hidden;
    background: var(--up-subtle); border: 1px solid var(--up-line-soft); color: var(--up-faint);
}
.fn-flag img { width: 30px; height: 22px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.fn-flag.is-sm { width: 36px; height: 36px; border-radius: 10px; }
.fn-flag.is-sm img { width: 24px; height: 18px; border-radius: 3px; }
.fn-method { width: 100%; text-align: left; font-family: inherit; }
.fn-stock { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; margin-right: 4px; line-height: 1.2; }
.fn-stock b { font-size: 14px; font-weight: 700; color: var(--up-ink); }
.fn-stock small { font-size: 11.5px; font-weight: 500; color: var(--up-faint); }
.fn-method.is-on .fn-stock b { color: var(--up-accent); }
.dp-main .dp-btn-lg[disabled] { opacity: .5; cursor: not-allowed; }

/* Steps: service, then country */
.fn-steps {
    list-style: none; margin: 0; padding: 16px 24px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--up-line-soft); font-size: 13px; font-weight: 600; color: var(--up-faint);
}
.fn-steps li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.fn-steps-n {
    width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0;
    border: 1.5px solid var(--up-line); background: #fff; font-size: 12px; color: var(--up-faint);
}
.fn-steps li.is-on { color: var(--up-ink); }
.fn-steps li.is-on .fn-steps-n { border-color: var(--up-accent); background: var(--up-accent); color: #fff; }
.fn-steps li.is-done { color: var(--up-muted); }
.fn-steps li.is-done .fn-steps-n { border-color: var(--up-green); background: var(--up-green); color: #fff; }
.fn-steps .fn-steps-line { flex: 1; max-width: 72px; height: 1.5px; background: var(--up-line); }

.fn-sec-head { margin-bottom: 12px; }
.fn-sec-head .dp-h { margin-bottom: 2px; }
.fn-sec-head small { font-size: 12.5px; color: var(--up-muted); }

.fn-search {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 12px;
    border-radius: 10px; border: 1px solid var(--up-line); background: #fff; color: var(--up-faint);
    transition: border-color .15s, box-shadow .15s;
}
.fn-search:focus-within { border-color: var(--up-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.fn-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--up-ink); }
.fn-search input::placeholder { color: var(--up-faint); }
.fn-noresult { padding: 18px 0 4px; text-align: center; font-size: 13px; color: var(--up-muted); }

/* Service cards */
.fn-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fn-svc {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; font-family: inherit;
    border-radius: 14px; border: 1.5px solid var(--up-line); background: #fff; cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.fn-svc:hover { border-color: #c7d6ef; background: #fbfcff; }
.fn-svc:focus-visible { outline: 2px solid var(--up-accent); outline-offset: 2px; }
.fn-svc[disabled] { cursor: progress; opacity: .7; }
.fn-svc .up-logo { flex-shrink: 0; }
.fn-svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fn-svc-body b { font-size: 14.5px; font-weight: 600; color: var(--up-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-svc-meta { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--up-muted); }
.fn-svc-flags { display: inline-flex; flex-shrink: 0; }
.fn-svc-count { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-svc-flags img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2px rgba(15, 23, 42, .08); }
.fn-svc-flags img + img { margin-left: -4px; }
.fn-svc-chev { flex-shrink: 0; color: var(--up-faint); transition: transform .15s, color .15s; }
.fn-svc:hover .fn-svc-chev { color: var(--up-accent); transform: translateX(2px); }

/* Chosen service, shown above the country list */
.fn-picked {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 18px;
    border-radius: 12px; background: var(--up-subtle); border: 1px solid var(--up-line-soft);
}
.fn-picked .up-logo { flex-shrink: 0; background: #fff; }
.fn-picked-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fn-picked-body small { font-size: 11.5px; color: var(--up-faint); }
.fn-picked-body b { font-size: 14.5px; font-weight: 600; color: var(--up-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-picked .up-btn { flex-shrink: 0; }

.fn-empty { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: var(--up-subtle); color: var(--up-faint); }
.fn-empty p { font-size: 13.5px; line-height: 1.5; color: var(--up-muted); }

/* Claimed number */
.fn-pay { max-width: 560px; }
.fn-status-ok { background: var(--up-green-soft) !important; border-color: #bbf7d0 !important; color: #15803d !important; }
.fn-status-ok i { background: var(--up-green) !important; animation: none !important; }
.fn-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--up-muted); }
.fn-meta img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.fn-num { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: -4px; }
.fn-num > span { font-size: 32px; font-weight: 700; letter-spacing: -.02em; color: var(--up-ink); word-break: break-all; }
.fn-icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 10px; flex-shrink: 0; }
.fn-ok { color: var(--up-green); }

.fn-code {
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 18px 16px; border-radius: 14px; background: var(--up-green-soft); border: 1px solid #c6f0d4;
}
.fn-code small { font-size: 12.5px; font-weight: 600; color: #15803d; }
.fn-code strong { font-size: 36px; font-weight: 700; letter-spacing: .16em; color: #14532d; line-height: 1.1; }
.fn-code .up-btn { height: 38px; border-radius: 10px; }

.fn-actions { grid-template-columns: minmax(0, 1fr); }
.fn-actions .up-btn { width: 100%; }

/* Latest OTPs */
.fn-feed { padding: 0; overflow: hidden; }
.fn-feed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; }
.fn-feed-head h2 { font-size: 15px; font-weight: 600; color: var(--up-ink); letter-spacing: -.01em; }
.fn-feed-head small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--up-muted); }

.fn-table { border-top: 1px solid var(--up-line-soft); }
.fn-tr {
    display: grid; align-items: center; gap: 16px; padding: 12px 24px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1fr) 112px 84px;
}
.fn-tr + .fn-tr { border-top: 1px solid var(--up-line-soft); }
.fn-tr:not(.fn-thead):hover { background: var(--up-subtle); }
.fn-thead { padding-top: 10px; padding-bottom: 10px; background: var(--up-subtle); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--up-faint); }
.fn-td-sub { display: contents; }
.fn-td { min-width: 0; font-size: 13.5px; color: var(--up-text, var(--up-ink)); }
.fn-td-svc { display: flex; align-items: center; gap: 10px; }
.fn-td-svc .up-logo { flex-shrink: 0; }
.fn-td-svc b { font-weight: 600; color: var(--up-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-td-cty { display: flex; align-items: center; gap: 8px; color: var(--up-muted); }
.fn-td-cty img { width: 20px; height: 15px; flex-shrink: 0; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.fn-td-cty svg { flex-shrink: 0; color: var(--up-faint); }
.fn-td-cty span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-td-num { font-family: var(--up-mono); font-size: 13px; color: var(--up-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-td-otp code {
    display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--up-subtle); border: 1px solid var(--up-line);
    font-family: var(--up-mono); font-size: 13.5px; font-weight: 600; letter-spacing: .06em; color: var(--up-ink); white-space: nowrap;
}
.fn-td-time { text-align: right; font-size: 12.5px; color: var(--up-faint); white-space: nowrap; }

@media (max-width: 640px) {
    .fn-steps { padding: 14px 16px; }
    .fn-play { gap: 12px; padding: 14px 16px; }
    .fn-play-logo { width: 32px; height: 32px; }
    .fn-play-cta { padding: 8px 12px; }
    .fn-svc-grid { grid-template-columns: minmax(0, 1fr); }
    .fn-card-art { width: 128px; height: 128px; right: 6px; bottom: -6px; }
    .fn-num > span { font-size: 26px; }
    .fn-code strong { font-size: 30px; }
    .fn-feed-head { padding: 16px 16px 14px; }
    .fn-thead { display: none; }
    /* Each row becomes: service + code on top, country · number + time below. */
    .fn-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "svc otp" "sub time"; gap: 4px 12px; padding: 12px 16px; }
    .fn-td-svc { grid-area: svc; }
    .fn-td-otp { grid-area: otp; text-align: right; }
    .fn-td-sub { grid-area: sub; display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 42px; font-size: 12.5px; }
    .fn-td-sub .fn-td { font-size: 12.5px; }
    .fn-td-sub .fn-td-cty { flex-shrink: 1; }
    .fn-td-sub .fn-td-num::before { content: "·"; margin-right: 8px; color: var(--up-faint); }
    .fn-td-time { grid-area: time; font-size: 12px; }
}
