.betpicks-user-profile {
    display: grid;
    gap: 24px;
    font-family: inherit;
    color: #0f172a;
}

/* ---- Header: profile + period + stats ---- */
.betpicks-user-profile__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Име секогаш под сликата */
.betpicks-user-profile__profile-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.betpicks-user-profile__avatar {
    flex-shrink: 0;
}

.betpicks-user-profile__avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(15, 61, 84, 0.25);
}

.betpicks-user-profile__name {
    margin: 0;
    font-size:26px !important;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}
.betpicks-user-profile__period-stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
/* Период секогаш над stats */
.betpicks-user-profile__period {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.betpicks-user-profile__period-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

/* Period: нативниот select е скриен, се користи custom dropdown */
.betpicks-user-profile__period-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    appearance: none;
}

.betpicks-user-profile__period-custom {
    position: relative;
    min-width: 200px;
    width: 100%;
}

/* Trigger – заоблена граница */
.betpicks-user-profile__period-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 200px;
    padding: 10px 14px;
    padding-right: 36px;
    font-size: 0.875rem;
    border: 2px solid #94a3b8;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-family: inherit;
    text-align: left;
    box-sizing: border-box;
}

.betpicks-user-profile__period-trigger:focus {
    border-color: #0f3d54;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 61, 84, 0.15);
}

.betpicks-user-profile__period-trigger[aria-expanded="true"] {
    border-color: #0f3d54;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.betpicks-user-profile__period-trigger:disabled,
.betpicks-user-profile__period-custom.is-disabled .betpicks-user-profile__period-trigger {
    opacity: 0.6;
    cursor: not-allowed;
}

.betpicks-user-profile__period-trigger-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.betpicks-user-profile__period-custom.is-open .betpicks-user-profile__period-trigger-icon {
    transform: translateY(-50%) rotate(180deg);
}

/* Листа опции – заоблена граница на целиот dropdown */
.betpicks-user-profile__period-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 10;
    margin: 0;
    margin-top: -2px;
    padding: 6px;
    background: #fff;
    border: 2px solid #0f3d54;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(15, 61, 84, 0.2);
    max-height: 280px;
    overflow-y: auto;
    box-sizing: border-box;
}

.betpicks-user-profile__period-list[hidden] {
    display: none !important;
}

/* Една опција – заоблени агли, hover */
.betpicks-user-profile__period-option {
    display: block;
    width: 100%;
    padding: 5px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #0f172a;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s;
    box-sizing: border-box;
}

.betpicks-user-profile__period-option:hover {
    background-color: #f1f5f9;
}

.betpicks-user-profile__period-option[data-selected="true"] {
    background-color: #e0f2fe;
    font-weight: 600;
    color: #0f3d54;
}

.betpicks-user-profile__period-option:hover[data-selected="true"] {
    background-color: #bae6fd;
}

/* Stats: три картички во еден ред */
.betpicks-user-profile__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.betpicks-user-profile__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #0f3d54;
    color: #ffffff;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.betpicks-user-profile__stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 61, 84, 0.35);
}

.betpicks-user-profile__stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.betpicks-user-profile__stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
    line-height: normal !important;
}

@keyframes betpicksProfileShimmer {
    0% {
        background-position: -140% 0;
    }
    100% {
        background-position: 140% 0;
    }
}

.betpicks-user-profile--stats-loading .betpicks-user-profile__stat {
    position: relative;
}

.betpicks-user-profile--stats-loading .betpicks-user-profile__stat-value,
.betpicks-user-profile--stats-loading .betpicks-user-profile__stat-label {
    position: relative;
    display: block;
    color: transparent !important;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    text-indent: -9999px;
}

.betpicks-user-profile--stats-loading .betpicks-user-profile__stat-value::after,
.betpicks-user-profile--stats-loading .betpicks-user-profile__stat-label::after {
    content: "";
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    left: -1px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.12) 100%);
    background-size: 220% 100%;
    animation: betpicksProfileShimmer 1.5s linear infinite;
}

.betpicks-user-profile--stats-loading .betpicks-user-profile__stat-value {
    width: 48px;
    height: 22px;
    margin-top: 1px;
}

.betpicks-user-profile--stats-loading .betpicks-user-profile__stat-label {
    width: 58px;
    height: 12px;
    margin-top: 4px;
}

/* Dobitak: зелено за плус, црвено за минус */
.betpicks-user-profile__stat-value--positive {
    color: #86efac !important;
}
.betpicks-user-profile__stat-value--negative {
    color: #fca5a5 !important;
}

.betpicks-user-profile__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.betpicks-user-profile__section {
    display: grid;
    gap: 12px;
}

.betpicks-user-profile__section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5f5;
    padding-bottom: 6px;
    gap: 12px;
}

.betpicks-user-profile__section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
}

.betpicks-user-profile__filter {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
}

.betpicks-user-profile__filter-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.betpicks-user-profile__filter-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.betpicks-user-profile__bets {
    display: grid;
    gap: 12px;
}

.betpicks-user-profile__list {
    display: grid;
    gap: 12px;
}

.betpicks-user-profile__active-skeleton {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    background: linear-gradient(145deg, #223749 0%, #1a2d3d 100%);
}

.betpicks-user-profile__active-skeleton-main {
    display: grid;
    gap: 8px;
}

.betpicks-user-profile__active-skeleton-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.betpicks-user-profile__active-skeleton-line,
.betpicks-user-profile__active-skeleton-btn {
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.14) 100%);
    background-size: 220% 100%;
    animation: betpicksProfileShimmer 1.5s linear infinite;
}

.betpicks-user-profile__active-skeleton-line--title {
    width: 220px;
    max-width: 100%;
    height: 15px;
}

.betpicks-user-profile__active-skeleton-line--meta {
    width: 260px;
    max-width: 100%;
    height: 12px;
}

.betpicks-user-profile__active-skeleton-line--meta-short {
    width: 140px;
    max-width: 100%;
    height: 12px;
}

.betpicks-user-profile__active-skeleton-btn {
    width: 96px;
    height: 30px;
}

.betpicks-user-profile__active-skeleton-btn--wide {
    width: 132px;
}

.betpicks-user-profile__show-more {
    background: #0f3d54;
    color: #ffffff;
    border: 0;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    justify-self: start;
}

.betpicks-user-profile__empty {
    font-size: 14px;
    color: #64748b;
}

.betpicks-settled-bets-widget__list {
    display: grid;
    gap: 14px;
}

/* Item: gradient, модерен изглед. Profit секогаш во ист ред со копчето. */
.betpicks-settled-bets-widget__item {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.betpicks-settled-bets-widget__item-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.betpicks-settled-bets-widget__item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.betpicks-settled-bets-widget__item--win {
    background: linear-gradient(135deg, #0d1f1a 0%, #1e5f3a 40%, #1e3a2b 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.betpicks-settled-bets-widget__item--loss {
    background: linear-gradient(135deg, #1a1625 0%, #331c2e 40%, #1e293b 100%);
    border-color: rgba(248, 113, 113, 0.15);
}

.betpicks-settled-bets-widget__item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.betpicks-settled-bets-widget__item-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
}

.betpicks-settled-bets-widget__item-title::before {
    content: "⚽";
    font-size: 1.3rem;
    margin-right: 4px;
    opacity: 0.9;
}

.betpicks-settled-bets-widget__item-meta {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.betpicks-settled-bets-widget__item-meta span {
    display: inline-flex;
    align-items: center;
}

.betpicks-settled-bets-widget__details {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    font-size: 0.8125rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s, border-color 0.2s;
}

.betpicks-settled-bets-widget__details:hover,
.betpicks-settled-bets-widget__details:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.betpicks-settled-bets-widget__result {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
    flex-shrink: 0;
}

.betpicks-settled-bets-widget__profit {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.betpicks-settled-bets-widget__item--win .betpicks-settled-bets-widget__profit {
    color: #86efac;
}

.betpicks-settled-bets-widget__item--loss .betpicks-settled-bets-widget__profit {
    color: #fca5a5;
}

.betpicks-settled-bets-widget__score {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* ---- Header responsive ---- */
/* од 1000px: stat-овите покомпактни, не се истегнуваат во висина */
@media (max-width: 1000px) {
    .betpicks-user-profile__header {
        padding: 10px;
        gap: 18px;
    }

    .betpicks-user-profile__stats {
        max-width: 100%;
        align-self: center;
    }

    .betpicks-user-profile__stat {
        padding: 12px 10px;
        min-height: 0;
    }

    .betpicks-user-profile__stat-value {
        font-size: 0.875rem;
    }

    .betpicks-user-profile__stat-label {
        font-size: 0.625rem;
    }
}

/* од 768px: мобилен – име под аватар, период над stats */
@media (max-width: 768px) {
    .betpicks-user-profile__header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .betpicks-user-profile__profile-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .betpicks-user-profile__period {
        width: 100%;
        justify-content: stretch;
        gap: 6px;
    }

    .betpicks-user-profile__period-custom,
    .betpicks-user-profile__period-trigger {
        width: 100%;
        min-width: 0;
    }

    .betpicks-user-profile__stats {
        max-width: 100%;
        margin: 0;
    }
}

@media (max-width: 720px) {
    .betpicks-user-profile__header {
        padding: 16px 12px;
        gap: 16px;
    }

    .betpicks-user-profile__profile-row {
        gap: 5px;
    }

    .betpicks-user-profile__avatar img {
        width: 80px;
        height: 80px;
    }

    .betpicks-user-profile__period {
        width: 100%;
        justify-content: stretch;
    }

    .betpicks-user-profile__period-custom,
    .betpicks-user-profile__period-trigger {
        flex: 1;
        min-width: 0;
    }

    .betpicks-user-profile__period-trigger,
    .betpicks-user-profile__period-option {
        font-size: 1rem;
    }

    .betpicks-user-profile__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .betpicks-user-profile__stat {
        padding: 12px 8px;
    }

    .betpicks-user-profile__stat-label {
        font-size: 0.625rem;
    }

    .betpicks-user-profile__section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .betpicks-user-profile__filter-group {
        width: 100%;
    }

    .betpicks-user-profile__section-header .betpicks-user-profile__filter {
        width: 100%;
    }

    .betpicks-user-profile__active-skeleton {
        grid-template-columns: 1fr;
    }

    .betpicks-user-profile__active-skeleton-actions {
        justify-items: start;
        grid-template-columns: repeat(2, auto);
        gap: 8px;
    }

    /* Мобилен: наслов + meta, под нив еден ред [ actions | result ] */
    .betpicks-settled-bets-widget__item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 10px;
        gap: 6px 0;
    }

    .betpicks-settled-bets-widget__item-footer {
        gap: 12px;
    }

    .betpicks-settled-bets-widget__item-footer .betpicks-settled-bets-widget__result {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        text-align: right;
    }

    .betpicks-settled-bets-widget__profit {
        font-size: 1.125rem;
    }

    .betpicks-settled-bets-widget__score {
        font-size: 0.75rem;
    }

    .betpicks-settled-bets-widget__item-title {
        font-size: 0.9375rem;
    }

    .betpicks-settled-bets-widget__item-meta {
        font-size: 0.75rem;
    }

    .betpicks-settled-bets-widget__details {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .betpicks-settled-bets-widget__item {
        border-radius: 10px;
    }

    .betpicks-settled-bets-widget__profit {
        font-size: 1.125rem;
    }

    .betpicks-user-profile__avatar img {
        width: 72px;
        height: 72px;
    }

    .betpicks-user-profile__stat-label {
        font-size: 0.5625rem;
    }
}
