/* ==========================================================================
   profile.css - Стили для профиля в стиле huli.html
   С префиксом .trumpamole__profile-
   ========================================================================== */

/* ===== TOP HERO ===== */
.trumpamole__profile-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 232, 170, 0.10);
}

.trumpamole__profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../user/profile/bg_page.webp') center/cover no-repeat;
    filter: blur(1.0px) saturate(1.05) contrast(1.05);
    transform: scale(1.08);
    opacity: 0.96;
}

.trumpamole__profile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,.10) 0%,
        rgba(36,26,26,.32) 35%,
        rgba(36,26,26,.78) 75%,
        rgba(36,26,26,1) 100%);
    pointer-events: none;
}

.trumpamole__profile-hero-inner {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    margin: 0 auto;
    padding: calc(12px + var(--safe-top)) 14px 14px 14px;
    display: grid;
    gap: 10px;
}

/* ===== CENTER CONTENT ===== */
.trumpamole__profile-center-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0 2px 0;
    min-height: 218px;
}

.trumpamole__profile-center-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
    width: 100%;
    max-width: 320px;
}

/* ===== BIG AVATAR WITH FRAME ===== */
.trumpamole__profile-big-avatar-frame {
    width: 150px;
    height: 150px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: visible;
    filter: drop-shadow(0 16px 26px rgba(0,0,0,.40));
    transform: translateY(2px);
}

.trumpamole__profile-big-avatar-frame .trumpamole__profile-ava {
    width: 108px;
    height: 108px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
    transform: translateY(1px);
}

.trumpamole__profile-big-avatar-frame .trumpamole__profile-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* ===== PROFILE INFO ===== */
.trumpamole__profile-nick {
    font-weight: 900;
    font-size: 16px;
    color: rgba(255,248,230,.98);
    letter-spacing: .2px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin-top: 2px;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.trumpamole__profile-league-line {
    font-size: 12px;
    color: rgba(255,246,230,.82);
    font-weight: 900;
    letter-spacing: .2px;
    text-align: center;
    text-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.trumpamole__profile-meta-line {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,246,230,.78);
    text-align: center;
    line-height: 1.25;
}

.trumpamole__profile-meta-line b {
    color: rgba(255,246,230,.94);
    font-weight: 900;
}

/* ===== VIP BADGE ===== */
.trumpamole__profile-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #E5BF64, #C79551);
    border-radius: 999px;
    color: #241a1a;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
    margin-top: 4px;
}

.trumpamole__profile-vip-badge i {
    font-size: 12px;
}

/* ===== EXP WRAP ===== */
.trumpamole__profile-exp-wrap {
    width: 100%;
    border-radius: var(--radius);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 6px;
}

.trumpamole__profile-exp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}

.trumpamole__profile-exp-top .trumpamole__profile-lbl {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: rgba(255,248,230,.92);
    font-family: var(--font-heading);
}

.trumpamole__profile-exp-top .trumpamole__profile-val {
    font-size: 12px;
    color: rgba(255,246,230,.78);
    font-weight: 900;
}

/* ===== MAIN PANEL ===== */
.trumpamole__profile-main-panel {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
    padding-bottom: calc(18px + var(--safe-bottom));
    border-top: 1px solid rgba(255, 232, 170, .10);
    overflow: hidden;
    -webkit-box-shadow: 0px -9px 13px -2px rgba(0, 0, 0, 0.82);
    box-shadow: 0px -9px 13px -2px rgb(31 22 22);
    background: transparent;
}

.trumpamole__profile-main-panel::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255,246,230,.22);
    opacity: .55;
    z-index: 1;
    pointer-events: none;
}

.trumpamole__profile-main-inner {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 0 14px;
}

/* ===== SECTION HEADER ===== */
.trumpamole__profile-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2px 2px 6px;
    margin: 0;
}

.trumpamole__profile-section-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: rgba(255,248,230,.96);
}

.trumpamole__profile-section-header .trumpamole__profile-hint {
    font-size: 12px;
    color: rgba(255,246,230,.72);
    font-weight: 900;
    letter-spacing: .2px;
}

/* ===== TABS (точно как в huli.html) ===== */
.trumpamole__profile-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 4px 0 10px;
    padding: 0;
}

.trumpamole__profile-tab-btn {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: block;
    flex: 1 1 0;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

.trumpamole__profile-tab-btn + .trumpamole__profile-tab-btn {
    margin-left: -10px;
}

.trumpamole__profile-tab-pill {
    height: 46px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    transform-origin: center;
    opacity: 0.7;
    border: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .12s ease, filter .16s ease, box-shadow .18s ease;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.38));
}

.trumpamole__profile-tab-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: .95;
}

.trumpamole__profile-tab-btn:active .trumpamole__profile-tab-pill {
    transform: skewX(-14deg) translateY(1px) scale(.985);
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.34));
}

.trumpamole__profile-tab-pill img {
    width: 30px;
    height: 62px;
    object-fit: contain;
    margin-top: -6px;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.30));
    opacity: .95;
    display: block;
}

.trumpamole__profile-tab-btn.active {
    z-index: 6;
}

.trumpamole__profile-tab-btn.active .trumpamole__profile-tab-pill {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.09),
        0 16px 28px rgba(0,0,0,.34);
    filter:
        drop-shadow(0 22px 55px rgba(0,0,0,.44))
        drop-shadow(0 0 18px rgba(255,246,230,.08));
    background: linear-gradient(180deg, var(--tabTop) 0%, var(--tabMid) 55%, var(--tabBot) 100%);
    opacity: 1;
}

.trumpamole__profile-tab-btn.active .trumpamole__profile-tab-pill::after {
    opacity: 1;
}

/* ===== TAB PANELS ===== */
.trumpamole__profile-tab-panel {
    display: none;
    margin-top: 10px;
}

.trumpamole__profile-tab-panel.active {
    display: block;
}

/* ===== STATS GRID ===== */
.trumpamole__profile-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trumpamole__profile-stat-row {
    border-radius: var(--radius);
    background: var(--rowA);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
    border: 1px solid rgba(255,246,230,.05);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.trumpamole__profile-stat-row.alt {
    background: var(--rowB);
}

/* ===== AVATARS/FRAMES GRID ===== */
.trumpamole__profile-pick-card {
    border-radius: var(--radius);
    background: var(--rowA);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
    border: 1px solid rgba(255,246,230,.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 126px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    transition: transform .12s ease, border-color .18s ease, filter .18s ease;
}

.trumpamole__profile-pick-card:active {
    transform: translateY(1px) scale(.995);
}

.trumpamole__profile-pick-media {
    position: absolute;
    inset: 0;
    background: center/cover no-repeat;
    filter: saturate(1.05) contrast(1.05);
    opacity: .92;
    z-index: 1;
}

.trumpamole__profile-pick-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.58) 100%);
    pointer-events: none;
    z-index: 2;
}

.trumpamole__profile-pick-card.equipped .trumpamole__profile-pick-media {
    opacity: 1;
    filter: saturate(1.12) contrast(1.08);
}

.trumpamole__profile-pick-card.equipped {
    border-color: rgba(229,191,100,.26);
}

.trumpamole__profile-pick-card:not(.equipped) {
    filter: saturate(.95);
}

/* ===== BADGES ===== */
.trumpamole__profile-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    max-width: calc(100% - 16px);
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,.28);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
    backdrop-filter: blur(2px);
    color: rgba(255,248,230,.92);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .15px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 6;
    white-space: nowrap;
}

.trumpamole__profile-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.28));
    opacity: .95;
    flex: 0 0 auto;
}

.trumpamole__profile-badge.icon-only {
    padding: 8px 10px;
    gap: 0;
}

.trumpamole__profile-badge.icon-only img {
    width: 28px;
    height: 28px;
    opacity: .98;
}

.trumpamole__profile-badge.wear-badge {
    gap: 8px;
}

.trumpamole__profile-badge.wear-badge img {
    width: 28px;
    height: 28px;
    opacity: .98;
}

.trumpamole__profile-badge.can-wear {
    color: rgba(255,248,230,.96);
}

.trumpamole__profile-badge.is-on {
    color: rgba(255,248,230,.98);
}

/* ===== FRAME STAGE ===== */
.trumpamole__profile-frame-stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 4;
    pointer-events: none;
}

.trumpamole__profile-frame-stage .trumpamole__profile-ava {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
}

.trumpamole__profile-frame-stage .trumpamole__profile-frame {
    position: absolute;
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.30));
}

/* ===== LOCKED STATE ===== */
.trumpamole__profile-pick-card.locked .trumpamole__profile-pick-media {
    filter: grayscale(1) contrast(.92) brightness(.72);
    opacity: .58;
}

.trumpamole__profile-pick-card.locked .trumpamole__profile-frame-stage {
    filter: grayscale(1) contrast(.92) brightness(.78);
    opacity: .92;
}

.trumpamole__profile-pick-card.locked .trumpamole__profile-badge,
.trumpamole__profile-pick-card.locked .trumpamole__profile-badge * {
    filter: none !important;
    opacity: 1 !important;
}

/* ===== ACHIEVEMENTS ===== */
.trumpamole__profile-ach-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trumpamole__profile-ach-row {
    border-radius: var(--radius);
    background: var(--rowA);
    box-shadow: 0 10px 18px rgba(0,0,0,.22);
    border: 1px solid rgba(255,246,230,.05);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-height: 74px;
}

.trumpamole__profile-ach-row.alt {
    background: var(--rowB);
}

.trumpamole__profile-ach-row.claimed {
    background:
        linear-gradient(180deg, rgba(242,235,221,.08) 0%, rgba(229,191,100,.10) 100%),
        var(--rowA);
    border-color: rgba(229,191,100,.22);
}

.trumpamole__profile-ach-left {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.28));
}

.trumpamole__profile-ach-left .trumpamole__profile-ach-icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    opacity: .98;
    transform: translateZ(0);
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.26));
}

.trumpamole__profile-ach-left .trumpamole__profile-ach-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    opacity: .98;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.18));
}

.trumpamole__profile-ach-row.locked .trumpamole__profile-ach-left .trumpamole__profile-ach-icon-img {
    filter: grayscale(1) contrast(.95) brightness(.80);
    opacity: .62;
}

.trumpamole__profile-ach-row.locked .trumpamole__profile-ach-left .trumpamole__profile-ach-frame {
    filter: grayscale(1) contrast(.92) brightness(.86);
    opacity: .55;
}

.trumpamole__profile-ach-row.claimable .trumpamole__profile-ach-left .trumpamole__profile-ach-icon-img {
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.26)) saturate(1.10) brightness(1.03);
}

.trumpamole__profile-ach-mid {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trumpamole__profile-ach-name {
    font-weight: 900;
    font-size: 13px;
    color: rgba(255,248,230,.98);
    letter-spacing: .1px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trumpamole__profile-ach-desc {
    font-size: 12px;
    color: rgba(255,246,230,.72);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trumpamole__profile-ach-row.locked .trumpamole__profile-ach-name {
    color: rgba(255,246,230,.82);
}

.trumpamole__profile-ach-row.locked .trumpamole__profile-ach-desc {
    color: rgba(255,246,230,.58);
}

.trumpamole__profile-ach-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.trumpamole__profile-check-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255,246,230,.10);
    background: rgba(0,0,0,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 18px rgba(0,0,0,.20);
    display: grid;
    place-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s ease, filter .18s ease, background .18s ease, border-color .18s ease;
    padding: 0;
}

.trumpamole__profile-check-btn:active {
    transform: translateY(1px) scale(.99);
}

.trumpamole__profile-check-btn svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.28));
}

.trumpamole__profile-check-btn[disabled] {
    cursor: default;
    opacity: .95;
}

.trumpamole__profile-check-btn[disabled]:active {
    transform: none;
}

.trumpamole__profile-ach-row.locked .trumpamole__profile-check-btn {
    display: none;
}

.trumpamole__profile-ach-row.claimable .trumpamole__profile-check-btn {
    border-color: rgba(229,191,100,.26);
    background: rgba(229,191,100,.12);
    filter: drop-shadow(0 0 14px rgba(229,191,100,.10));
}

.trumpamole__profile-ach-row.claimed .trumpamole__profile-check-btn {
    border-color: rgba(242,235,221,.22);
    background: rgba(242,235,221,.12);
}

/* ===== SPARK ANIMATION ===== */
.trumpamole__profile-ach-left.spark::after {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 30% 35%, rgba(242,229,148,.55) 0%, rgba(242,229,148,0) 55%),
        radial-gradient(circle at 70% 60%, rgba(229,191,100,.40) 0%, rgba(229,191,100,0) 58%),
        radial-gradient(circle at 50% 50%, rgba(255,246,230,.25) 0%, rgba(255,246,230,0) 60%);
    transform: rotate(10deg);
    animation: trumpamole__spark 520ms ease-out both;
    pointer-events: none;
    mix-blend-mode: screen;
}

.trumpamole__profile-ach-left.spark .trumpamole__profile-ach-icon-img {
    animation: trumpamole__pop 520ms cubic-bezier(.2,.9,.25,1.25) both;
}

.trumpamole__profile-ach-left.spark .trumpamole__profile-ach-frame {
    animation: trumpamole__frameGlow 520ms ease-out both;
}

/* ==========================================================================
   profile.css - ДОБАВЛЯЕМ НЕДОСТАЮЩИЕ СТИЛИ ДЛЯ ПОДДЕРЖКИ
   ========================================================================== */

/* ===== SUPPORT SECTION ===== */
.trumpamole__profile-support-section {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    margin-top: -8px;
    padding-bottom: calc(18px + var(--safe-bottom));
    background: transparent;
}

.trumpamole__profile-support-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding:15px;
}

.trumpamole__profile-support-row {
    display: flex;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.18s ease;
}

.trumpamole__profile-support-row:active {
    transform: translateY(1px);
    background: rgba(0, 0, 0, 0.28);
}

/* СТИЛИ ДЛЯ ИКОНОК В ПОДДЕРЖКЕ - ИСПРАВЛЕНО */
.trumpamole__profile-support-row .trumpamole__row-icon svg {
    width: 20px;
    height: 20px;
    opacity: 0.95;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.28));
    color: rgba(255, 246, 230, 0.92);
}

.trumpamole__profile-support-row .trumpamole__row-right svg {
    width: 18px;
    height: 18px;
    opacity: 0.95;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.28));
    color: rgba(255, 246, 230, 0.72);
}

/* ССЫЛКА В ПОДДЕРЖКЕ */
a.trumpamole__profile-support-row {
    text-decoration: none;
    color: inherit;
}

/* ===== APP VERSION ===== */
.trumpamole__profile-app-ver {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 246, 230, 0.62);
    letter-spacing: 0.2px;
    padding-bottom: 8px;
}

/* ===== LOADING STATE ===== */
.trumpamole__profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--muted);
}

/* ===== ADAPTATION ===== */
@media (max-width: 390px) {
    .trumpamole__profile-tab-pill {
        height: 44px;
        border-radius: 13px;
    }
    
    .trumpamole__profile-tab-pill img {
        width: 28px;
        height: 28px;
    }
    
    .trumpamole__profile-tab-btn + .trumpamole__profile-tab-btn {
        margin-left: -9px;
    }
}