/**
 * OddsEkspert V2 - Profile Styles
 * Aligned with league-page.css design patterns
 */

/* ===========================================
   PROFILE CONTAINER
   =========================================== */

.oe-profile {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .oe-profile {
        padding: 0 15px;
    }
}

/* ===========================================
   PROFILE HEADER CARD
   =========================================== */

.oe-profile__header {
    position: relative;
    background: var(--oe-color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-top: 15px;
    margin-bottom: 16px;
}

.oe-profile__header-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.oe-profile__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--oe-color-bg-alt);
    flex-shrink: 0;
    border: 3px solid var(--oe-color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Avatar Upload */
.oe-profile__avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
}

.oe-profile__avatar-wrap .oe-profile__avatar {
    display: block;
}

.oe-profile__avatar-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 0;
    color: var(--oe-color-white);
}

.oe-profile__avatar-wrap:hover .oe-profile__avatar-overlay {
    opacity: 1;
}

.oe-profile__avatar-overlay--uploading {
    opacity: 1 !important;
    cursor: wait;
}

.oe-profile__avatar-overlay--uploading svg {
    animation: oe-spin 1s linear infinite;
}

@keyframes oe-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.oe-profile__avatar-remove {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--oe-color-error);
    color: var(--oe-color-white);
    border: 2px solid var(--oe-color-white);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.oe-profile__avatar-wrap:hover .oe-profile__avatar-remove {
    opacity: 1;
}

.oe-profile__avatar-remove:hover {
    background: #c82333;
}

.oe-profile__header-text {
    flex: 1;
    min-width: 0;
}

.oe-profile__name {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: var(--oe-color-text-dark);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-profile__username {
    display: block;
    color: var(--oe-color-text-light);
    font-size: 14px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oe-profile__description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--oe-color-text);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Telegram Box (below name) */
.oe-profile__telegram-box {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.oe-profile__telegram-box--connected {
    background: linear-gradient(135deg, var(--oe-color-telegram) 0%, #0077b5 100%);
    color: var(--oe-color-white);
}

.oe-profile__telegram-box--connected:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
    color: var(--oe-color-white);
    text-decoration: none;
}

.oe-profile__telegram-box--connect {
    background: var(--oe-color-primary-tint);
    color: var(--oe-color-telegram);
    border: 1px solid var(--oe-color-telegram);
}

.oe-profile__telegram-box--connect:hover {
    background: var(--oe-color-telegram);
    color: var(--oe-color-white);
    text-decoration: none;
}

.oe-profile__telegram-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.oe-profile__telegram-name {
    line-height: 1.2;
}

/* Expert Badge */
.oe-profile__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--oe-color-warning) 0%, #ff9800 100%);
    color: var(--oe-color-text-dark);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oe-profile__badge svg {
    width: 14px;
    height: 14px;
}

/* ===========================================
   HORIZONTAL TABS
   =========================================== */

.oe-profile__tabs {
    background: var(--oe-color-white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 25px;
}

.oe-profile__tab-nav {
    display: flex;
    border-bottom: 2px solid var(--oe-color-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.oe-profile__tab-nav::-webkit-scrollbar {
    display: none;
}

.oe-profile__tab-btn {
    flex: 1;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--oe-color-text-light);
    background: none;
    border: 1px solid transparent;
    border-bottom-width: 2px;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    text-transform: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.oe-profile__tab-btn:hover,
.oe-profile__tab-btn:focus,
.oe-profile__tab-btn:active {
    color: var(--oe-color-primary);
    background: var(--oe-color-primary-tint);
    outline: none;
}

.oe-profile__tab-btn:focus-visible {
    outline: 2px solid var(--oe-color-primary);
    outline-offset: -2px;
}

.oe-profile__tab-btn--active,
.oe-profile__tab-btn--active:hover,
.oe-profile__tab-btn--active:focus,
.oe-profile__tab-btn--active:active {
    color: var(--oe-color-primary);
    background: var(--oe-color-primary-tint);
    border-color: var(--oe-color-primary-a15);
    border-bottom-color: var(--oe-color-primary);
    font-weight: 600;
}

.oe-profile__tab-panel {
    display: none;
    padding: 20px;
}

.oe-profile__tab-panel--active {
    display: block;
}

/* ===========================================
   USER STATS
   =========================================== */

.oe-profile__stats-container {
    /* Structural wrapper inside tab panel */
}

.oe-profile__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}

.oe-profile__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--oe-color-bg) 0%, var(--oe-color-bg-alt) 100%);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oe-profile__stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.oe-profile__stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--oe-color-text-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.oe-profile__stat-label {
    font-size: 12px;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Stats colors */
.oe-stats__wins { color: var(--oe-color-success); }
.oe-stats__losses { color: var(--oe-color-error); }
.oe-stats__voids { color: var(--oe-color-text-light); }
.oe-stats__separator { color: var(--oe-color-text-muted); margin: 0 2px; }
.oe-stats__positive { color: var(--oe-color-success); }
.oe-stats__negative { color: var(--oe-color-error); }

/* Stats extra row (form + streak) */
.oe-profile__stats-extra {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--oe-color-border);
    flex-wrap: wrap;
}

/* Current streak */
.oe-profile__streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.oe-stats__streak--win {
    background: rgba(40, 167, 69, 0.1);
    color: var(--oe-color-success);
}

.oe-stats__streak--loss {
    background: rgba(220, 53, 69, 0.1);
    color: var(--oe-color-error);
}

.oe-profile__streak-icon {
    font-size: 14px;
}

.oe-profile__streak-value {
    font-size: 16px;
}

.oe-profile__streak-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Recent form */
.oe-profile__form-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oe-profile__form-label {
    font-size: 12px;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    font-weight: 500;
}

.oe-stats__form {
    display: flex;
    gap: 4px;
}

.oe-stats__form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.oe-stats__form-badge--win {
    background: var(--oe-color-success);
    color: var(--oe-color-white);
}

.oe-stats__form-badge--loss {
    background: var(--oe-color-error);
    color: var(--oe-color-white);
}

.oe-stats__form-badge--void {
    background: var(--oe-color-text-light);
    color: var(--oe-color-white);
}

.oe-stats__no-form {
    color: var(--oe-color-text-muted);
}

/* Pending tips */
.oe-profile__pending {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--oe-color-text-light);
    margin-left: auto;
}

.oe-profile__pending-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--oe-color-warning);
    color: var(--oe-color-text-dark);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* ===========================================
   PROFILE INFO (PUBLIC VIEW)
   =========================================== */

.oe-profile__bio {
    margin-bottom: 20px;
}

.oe-profile__bio p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--oe-color-text-dark);
    margin: 0;
}

.oe-profile__meta {
    padding-top: 16px;
    border-top: 1px solid var(--oe-color-border);
}

.oe-profile__member-since {
    font-size: 14px;
    color: var(--oe-color-text-light);
}

/* ===========================================
   PROFILE FORM (inside tab panels)
   =========================================== */

/* Form Fields */
.oe-profile__field {
    margin-bottom: 20px;
}

.oe-profile__field:last-child {
    margin-bottom: 0;
}

.oe-profile__label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--oe-color-text-dark);
}

.oe-profile__input,
.oe-profile__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid var(--oe-color-border);
    border-radius: 8px;
    background-color: var(--oe-color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.oe-profile__input:focus,
.oe-profile__textarea:focus {
    outline: none;
    border-color: var(--oe-color-primary);
    box-shadow: 0 0 0 3px var(--oe-color-focus-ring);
}

.oe-profile__textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.oe-profile__char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--oe-color-text-light);
    margin-top: 4px;
}

.oe-profile__hint {
    font-size: 12px;
    color: var(--oe-color-text-light);
    margin: 4px 0 0;
}

.oe-profile__current-email {
    font-size: 14px;
    color: var(--oe-color-text-dark);
    margin: 0 0 16px;
}

.oe-profile__current-email strong {
    color: var(--oe-color-text-dark);
}

/* Form Actions */
.oe-profile__actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--oe-color-border);
}

/* Buttons */
.oe-profile__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.oe-profile__submit:active {
    transform: translateY(1px);
}

.oe-profile__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.oe-btn--primary {
    background: linear-gradient(135deg, var(--oe-color-primary) 0%, var(--oe-color-primary-dark) 100%);
    color: var(--oe-color-white);
}

.oe-btn--primary:hover:not(:disabled) {
    box-shadow: 0 4px 12px var(--oe-color-primary-a30);
}

.oe-btn--secondary {
    background: transparent;
    color: var(--oe-color-primary, #036133);
    border: 1px solid var(--oe-color-primary, #036133);
}

.oe-btn--secondary:hover:not(:disabled) {
    background: var(--oe-color-primary, #036133);
    color: var(--oe-color-white);
}

/* Messages */
.oe-profile__message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.oe-profile__message:not(:empty) {
    display: block;
}

.oe-profile__message--success {
    background-color: var(--oe-color-success-light);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.oe-profile__message--error {
    background-color: var(--oe-color-error-light);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Error State */
.oe-profile--error {
    background: var(--oe-color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 48px 24px;
    text-align: center;
}

.oe-profile__error {
    font-size: 16px;
    color: #721c24;
    margin: 0;
}

/* ===========================================
   SECTION DIVIDER (in edit tab)
   =========================================== */

.oe-profile__section-divider {
    border-top: 2px solid var(--oe-color-border);
    margin: 28px 0 20px;
}

.oe-profile__section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    margin: 0 0 16px;
}

/* ===========================================
   MY BETS TAB
   =========================================== */

.oe-profile__bets-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.oe-profile__create-tip-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.oe-profile__create-tip-btn .oe-create-tip-button__label {
    display: inline;
}

.oe-profile__bets-empty {
    text-align: center;
    color: var(--oe-color-text-light);
    font-size: 14px;
    padding: 32px 0;
}

.oe-profile__bets-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oe-profile__bet-card {
    background: var(--oe-color-bg);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid var(--oe-color-border);
    transition: box-shadow 0.2s ease;
}

.oe-profile__bet-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Collapsed settled card — compact row */
.oe-profile__bet-card--settled {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 4px 12px;
    padding: 8px 12px;
}

.oe-profile__bet-card--settled .oe-profile__bet-header {
    display: none;
}

.oe-profile__bet-card--settled .oe-profile__bet-match {
    margin-bottom: 0;
    min-width: 0;
}

.oe-profile__bet-card--settled .oe-profile__bet-match-name {
    font-size: 13px;
}

.oe-profile__bet-card--settled .oe-profile__bet-details {
    margin-bottom: 0;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.oe-profile__bet-card--settled .oe-profile__bet-footer {
    gap: 6px;
}

.oe-profile__bet-card--settled .oe-profile__bet-kickoff {
    display: none;
}

/* Header row: league left, status badge right */
.oe-profile__bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.oe-profile__bet-league {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.oe-profile__bet-league-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.oe-profile__bet-league-name {
    font-size: 11px;
    color: var(--oe-color-text-light);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oe-profile__bet-match {
    margin-bottom: 8px;
}

.oe-profile__bet-match-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

a.oe-profile__bet-match-name {
    text-decoration: none;
}

a.oe-profile__bet-match-name:hover {
    color: var(--oe-color-primary);
    text-decoration: underline;
}

.oe-profile__bet-kickoff {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #4a6fa5;
    background: rgba(74, 111, 165, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.oe-profile__bet-kickoff:empty {
    display: none;
}

.oe-profile__bet-kickoff svg {
    flex-shrink: 0;
}

.oe-profile__bet-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.oe-profile__bet-tip {
    font-size: 13px;
    color: var(--oe-color-text);
    font-weight: 500;
}

.oe-profile__bet-odds {
    font-size: 13px;
    font-weight: 700;
    color: var(--oe-color-primary);
    background: var(--oe-color-primary-tint, rgba(3, 97, 51, 0.08));
    padding: 2px 8px;
    border-radius: 4px;
}

.oe-profile__bet-units {
    font-size: 12px;
    color: var(--oe-color-text-light);
    font-weight: 500;
}

.oe-profile__bet-result {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.oe-profile__bet-result--won {
    background: var(--oe-color-success);
    color: var(--oe-color-white);
}

.oe-profile__bet-result--lost {
    background: var(--oe-color-error);
    color: var(--oe-color-white);
}

.oe-profile__bet-result--void {
    background: var(--oe-color-text-light);
    color: var(--oe-color-white);
}

.oe-profile__bet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oe-profile__bet-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 10px;
    border-radius: 12px;
}

.oe-profile__bet-status--pending {
    background: var(--oe-color-warning, #ffc107);
    color: var(--oe-color-text-dark);
}

.oe-profile__bet-status--won {
    background: var(--oe-color-success);
    color: var(--oe-color-white);
}

.oe-profile__bet-status--lost {
    background: var(--oe-color-error);
    color: var(--oe-color-white);
}

.oe-profile__bet-status--void {
    background: var(--oe-color-text-light);
    color: var(--oe-color-white);
}

.oe-profile__bet-settle {
    display: flex;
    gap: 6px;
}

.oe-profile__settle-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.oe-profile__settle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.oe-profile__settle-btn--won {
    background: rgba(40, 167, 69, 0.1);
    color: var(--oe-color-success);
    border-color: var(--oe-color-success);
}

.oe-profile__settle-btn--won:hover:not(:disabled) {
    background: var(--oe-color-success);
    color: var(--oe-color-white);
}

.oe-profile__settle-btn--lost {
    background: rgba(220, 53, 69, 0.1);
    color: var(--oe-color-error);
    border-color: var(--oe-color-error);
}

.oe-profile__settle-btn--lost:hover:not(:disabled) {
    background: var(--oe-color-error);
    color: var(--oe-color-white);
}

.oe-profile__settle-btn--void {
    background: rgba(108, 117, 125, 0.1);
    color: var(--oe-color-text-light);
    border-color: var(--oe-color-text-light);
}

.oe-profile__settle-btn--void:hover:not(:disabled) {
    background: var(--oe-color-text-light);
    color: var(--oe-color-white);
}

.oe-profile__bet-waiting {
    font-size: 11px;
    font-weight: 500;
    color: var(--oe-color-text-muted);
    font-style: italic;
}

.oe-profile__bet-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--oe-color-border);
    border-radius: 6px;
    background: var(--oe-color-white);
    color: var(--oe-color-text-light);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
    line-height: 1;
}

.oe-profile__bet-edit svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}

.oe-profile__bet-edit:hover {
    color: var(--oe-color-primary);
    border-color: var(--oe-color-primary);
    background: var(--oe-color-primary-tint, rgba(3, 97, 51, 0.06));
}

/* ===========================================
   BOOKMAKERS TAB — OWN PROFILE (List + Toggle)
   =========================================== */

.oe-profile__bm-list {
    display: flex;
    flex-direction: column;
}

.oe-profile__bm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--oe-color-border);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.oe-profile__bm-row:last-child {
    border-bottom: none;
}

.oe-profile__bm-row:hover {
    background: var(--oe-color-bg);
}

.oe-profile__bm-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.oe-profile__bm-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--oe-color-bg-alt);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--oe-color-text-light);
    text-transform: uppercase;
    flex-shrink: 0;
}

.oe-profile__bm-placeholder--lg {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.oe-profile__bm-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--oe-color-text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* CSS-only toggle switch */
.oe-profile__bm-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.oe-profile__bm-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.oe-profile__bm-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--oe-color-border);
    border-radius: 12px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.oe-profile__bm-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--oe-color-white);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.oe-profile__bm-toggle-input:checked + .oe-profile__bm-toggle-slider {
    background: var(--oe-color-primary);
}

.oe-profile__bm-toggle-input:checked + .oe-profile__bm-toggle-slider::before {
    transform: translateX(20px);
}

/* ===========================================
   SUBSCRIPTIONS TAB
   =========================================== */

.oe-profile__subscriptions {
    padding: 4px 0;
}

.oe-profile__subscriptions-desc {
    color: var(--oe-color-text-muted);
    font-size: 13px;
    margin: 0 0 20px;
    line-height: 1.4;
}

.oe-profile__subscriptions-empty {
    color: var(--oe-color-text-muted);
    font-size: 14px;
    font-style: italic;
}

.oe-profile__subscription-list {
    display: flex;
    flex-direction: column;
}

.oe-profile__subscription-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--oe-color-border);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.oe-profile__subscription-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.oe-profile__subscription-item:last-child {
    border-bottom: none;
}

.oe-profile__subscription-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.oe-profile__subscription-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--oe-color-text);
    line-height: 1.3;
}

.oe-profile__subscription-desc {
    font-size: 12px;
    color: var(--oe-color-text-muted);
    line-height: 1.3;
}

.oe-profile__subscription-heading {
    font-size: 12px;
    font-weight: 700;
    color: var(--oe-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 24px 0 8px;
    padding: 8px 0 6px;
    border-top: 1px solid var(--oe-color-border);
}

/* ===========================================
   NOTIFICATIONS TAB
   =========================================== */

.oe-profile__notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 36px;
}

.oe-profile__notifications-unread {
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
}

.oe-profile__notifications-mark-all {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
}

.oe-profile__notifications-empty {
    text-align: center;
    color: var(--oe-color-text-light);
    font-size: 14px;
    padding: 32px 0;
    font-style: italic;
}

.oe-profile__notifications-list {
    display: flex;
    flex-direction: column;
}

.oe-profile__notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--oe-color-border);
    transition: background-color 0.15s ease, opacity 0.15s ease;
    opacity: 0.55;
}

.oe-profile__notification-item:last-child {
    border-bottom: none;
}

.oe-profile__notification-item--unread {
    opacity: 1;
    background: rgba(3, 97, 51, 0.06);
    border-radius: 8px;
    padding: 12px;
    margin: 0 -12px;
    border-bottom-color: transparent;
    border-left: 3px solid var(--oe-color-primary, #036133);
}

.oe-profile__notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--oe-color-bg-alt);
    color: var(--oe-color-text-light);
    flex-shrink: 0;
}

.oe-profile__notification-item--unread .oe-profile__notification-icon {
    background: var(--oe-color-primary-tint, rgba(3, 97, 51, 0.1));
    color: var(--oe-color-primary);
}

.oe-profile__notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.oe-profile__notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    text-decoration: none;
    line-height: 1.3;
}

a.oe-profile__notification-title:hover {
    color: var(--oe-color-primary);
    text-decoration: underline;
}

.oe-profile__notification-body {
    font-size: 13px;
    color: var(--oe-color-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oe-profile__notification-time {
    font-size: 12px;
    color: var(--oe-color-text-muted);
    margin-top: 2px;
}

.oe-profile__notification-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--oe-color-border);
    border-radius: 50%;
    background: var(--oe-color-white);
    color: var(--oe-color-text-light);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.oe-profile__notification-dismiss:hover {
    color: var(--oe-color-error);
    border-color: var(--oe-color-error);
    background: rgba(220, 53, 69, 0.05);
}

.oe-profile__notifications-load-more {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--oe-color-primary);
    background: none;
    border: 1px solid var(--oe-color-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.oe-profile__notifications-load-more:hover {
    background: var(--oe-color-primary-tint, rgba(3, 97, 51, 0.06));
}

.oe-profile__notifications-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===========================================
   BOOKMAKERS TAB — PUBLIC PROFILE (Provider Cards)
   =========================================== */

.oe-profile__bookmakers--public {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oe-profile__bm-card {
    padding: 14px 16px;
    background: var(--oe-color-bg);
    border: 1px solid var(--oe-color-border);
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
}

.oe-profile__bm-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.oe-profile__bm-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.oe-profile__bm-card-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oe-profile__bm-card-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.oe-profile__bm-card-body {
    flex: 1;
    min-width: 0;
}

.oe-profile__bm-card-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--oe-color-text-dark);
    margin-bottom: 2px;
}

.oe-profile__bm-card-body .oe-provider__rating {
    margin-top: 2px;
}

.oe-profile__bm-card-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.oe-profile__bm-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--oe-color-primary) 0%, var(--oe-color-primary-dark) 100%);
    color: var(--oe-color-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.oe-profile__bm-card-btn:hover {
    box-shadow: 0 2px 8px var(--oe-color-primary-a30);
    transform: translateY(-1px);
    color: var(--oe-color-white);
    text-decoration: none;
}

.oe-profile__bm-card-review {
    font-size: 11px;
    color: var(--oe-color-text-light);
    text-decoration: none;
    white-space: nowrap;
}

.oe-profile__bm-card-review:hover {
    color: var(--oe-color-primary);
    text-decoration: underline;
}

.oe-profile__bm-card-offer {
    font-size: 13px;
    font-weight: 600;
    color: var(--oe-color-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.oe-profile__bm-card-terms {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--oe-color-border);
    font-size: 11px;
    line-height: 1.4;
    color: var(--oe-color-text-light);
}

.oe-profile__bm-card-terms p {
    margin: 0;
}

/* ===========================================
   RESPONSIVE STYLES
   =========================================== */

@media (max-width: 768px) {
    .oe-profile__header,
    .oe-profile__tabs,
    .oe-profile--error {
        border-radius: 10px;
    }

    .oe-profile__header {
        padding: 20px;
        margin-bottom: 12px;
    }

    .oe-profile__tab-btn {
        padding: 12px 12px;
        font-size: 13px;
    }

    .oe-profile__tab-panel {
        padding: 16px;
    }

    .oe-profile__header-main {
        flex-direction: column;
        text-align: center;
    }

    .oe-profile__description {
        -webkit-line-clamp: 2;
    }

    .oe-profile__avatar {
        width: 80px;
        height: 80px;
    }

    .oe-profile__avatar-wrap {
        width: 80px;
        height: 80px;
    }

    .oe-profile__name {
        font-size: 20px;
    }

    .oe-profile__telegram-box {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .oe-profile__stats {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .oe-profile__stat {
        padding: 12px 8px;
    }

    .oe-profile__stat-value {
        font-size: 20px;
    }

    .oe-profile__input,
    .oe-profile__textarea {
        padding: 10px 12px;
    }

    .oe-profile__submit {
        width: 100%;
    }

    .oe-profile__bm-card-row {
        flex-wrap: wrap;
    }

    .oe-profile__bm-card-cta {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px solid var(--oe-color-border);
        margin-top: 4px;
    }

    .oe-profile__bet-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .oe-profile__bet-settle {
        width: 100%;
    }

    .oe-profile__settle-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .oe-profile__header {
        padding: 16px;
    }

    .oe-profile__tab-btn {
        padding: 10px 8px;
        font-size: 12px;
    }

    .oe-profile__tab-panel {
        padding: 14px;
    }

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

    .oe-profile__stat {
        padding: 10px 6px;
    }

    .oe-profile__stat-value {
        font-size: 18px;
    }

    .oe-profile__stat-label {
        font-size: 10px;
    }
}

