/* ==========================================================================
   Mobile portfolio (bottom-nav view)
   ========================================================================== */

.tp-mobile-dash {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 10px;
}

.tp-mobile-hero {
    border-radius: 18px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background:
        radial-gradient(140% 120% at 100% 0%, rgba(224, 16, 46, 0.22), transparent 58%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.tp-mobile-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tp-mobile-hero__top .k {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7f8da4;
    font-weight: 700;
}

.tp-mobile-hero__v {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    margin-bottom: 14px;
}

.tp-mobile-hero__row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-mobile-hero__row > span {
    flex: 1 1 0;
    min-width: 130px;
    padding: 9px 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f8da4;
    font-weight: 600;
}

.tp-mobile-hero__row b {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.tp-mobile-hero__tier {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 11.5px;
    color: #b8c3d4;
}

.tp-mobile-hero__tier img { width: 20px; height: 20px; object-fit: contain; }
.tp-mobile-hero__tier em {
    margin-left: auto;
    font-style: normal;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff5a6a;
    font-weight: 700;
}

.tp-mobile-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tp-mobile-actions a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.028);
    color: #cfd8e6 !important;
    text-decoration: none;
    font-size: 9.8px;
    letter-spacing: 0.04em;
    font-weight: 600;
    text-align: center;
    transition: 0.2s ease;
}

.tp-mobile-actions a:first-child {
    background: linear-gradient(135deg, #e0102e, #ff3b4f);
    border-color: transparent;
    color: #fff !important;
}

.tp-mobile-actions a i { font-size: 17px; }

.tp-mobile-block {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.022);
    padding: 16px;
}

.tp-mobile-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tp-mobile-block__head h3 {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.tp-mobile-block__head a {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ff5a6a !important;
    text-decoration: none;
}

.tp-mobile-count {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7f8da4;
    font-weight: 600;
}

.tp-mobile-pos + .tp-mobile-pos { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }

.tp-mobile-pos__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.tp-mobile-pos__top strong { font-size: 13px; color: #fff; font-weight: 600; }
.tp-mobile-pos__top span { font-size: 12.5px; color: #cfd8e6; font-variant-numeric: tabular-nums; }

.tp-mobile-pos__bar {
    height: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.tp-mobile-pos__bar span {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #e0102e, #ff3b4f);
}

.tp-mobile-pos__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    font-size: 10.5px;
    color: #7f8da4;
    letter-spacing: 0.02em;
}

.tp-mobile-txn {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tp-mobile-txn:first-of-type { border-top: 0; padding-top: 0; }

.tp-mobile-txn .ic {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: #b8c3d4;
    font-size: 14px;
}

.tp-mobile-txn .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-mobile-txn .meta strong { font-size: 12.5px; color: #e8eef8; font-weight: 600; }
.tp-mobile-txn .meta span { font-size: 10px; color: #6c7a8f; }

.tp-mobile-txn .amt {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: #b8c3d4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.tp-mobile-empty { font-size: 12px; color: #6c7a8f; margin: 0; }

.tp-mobile-ref { display: flex; gap: 8px; }

.tp-mobile-ref input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cfd8e6;
    font-size: 11.5px;
    padding: 0 12px;
}

.tp-mobile-ref button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(135deg, #e0102e, #ff3b4f);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (min-width: 576px) {
    .tp-mobile-dash { display: none; }
}

@media (max-width: 991px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    body.tp .panel-layout .page-container { max-width: 100vw; width: 100%; }
    body.tp .panel-layout .page-container .main-content { max-width: 100vw; overflow-x: hidden; }
    body.tp .panel-layout .page-container .main-content .section-gap,
    body.tp .panel-layout .page-container .main-content .section-gap > .container-fluid { max-width: 100%; }
    body.tp .tp-mobile-dash, body.tp .tp-mobile-block, body.tp .tp-mobile-hero { max-width: 100%; }
    body.tp .panel-header .nav-wrap { max-width: 100%; }
}

@media (max-width: 991px) {
    html, body.tp { width: 100%; max-width: 100%; overflow-x: hidden; }
    body.tp .panel-layout { width: 100%; max-width: 100vw; overflow-x: hidden; }
    body.tp .panel-layout .panel-header { width: 100vw; max-width: 100vw; box-sizing: border-box; }
    body.tp .panel-layout .panel-header .nav-wrap { width: 100%; gap: 6px; }
    body.tp .panel-layout .panel-header .nav-right { flex: 0 0 auto; }
    body.tp .panel-layout .panel-header .nav-left { min-width: 0; flex: 1 1 auto; }
    body.tp .panel-layout .page-container { width: 100vw !important; max-width: 100vw !important; box-sizing: border-box; overflow-x: hidden; }
    body.tp .panel-layout .page-container .main-content { width: 100%; max-width: 100%; box-sizing: border-box; }
    body.tp .panel-layout .page-container .main-content .container-fluid { width: 100%; max-width: 100%; box-sizing: border-box; }
}

@media (max-width: 991px) {
    body.tp .panel-layout,
    body.tp .panel-layout .page-container,
    body.tp .panel-layout .page-container .main-content,
    body.tp .panel-layout .page-container .main-content .section-gap,
    body.tp .panel-layout .page-container .main-content .container-fluid,
    body.tp .panel-layout .page-container .main-content .row,
    body.tp .panel-layout .page-container .main-content [class*="col-"] {
        min-width: 0 !important;
    }
    body.tp img,
    body.tp svg,
    body.tp table,
    body.tp .tp-mobile-block,
    body.tp .site-card { max-width: 100% !important; }
    body.tp .tp-mobile-ref input { min-width: 0; }
}
