:root {
    --ioh-primary: #1a365d;
    --ioh-primary-light: #2d4a7c;
    --ioh-primary-dark: #0f2341;
    --ioh-accent: #38b2ac;
    --ioh-accent-light: #4fd1c5;
    --ioh-accent-dark: #2c9a94;
    --ioh-success: #48bb78;
    --ioh-warning: #ed8936;
    --ioh-danger: #f56565;
    --ioh-text: #2d3748;
    --ioh-text-light: #718096;
    --ioh-bg: #f7fafc;
    --ioh-white: #ffffff;
    --ioh-border: #e2e8f0;
    --ioh-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ioh-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ioh-radius: 12px;
    --ioh-radius-sm: 8px;
}

.ioh-login-notice {
    background: var(--ioh-bg);
    padding: 20px;
    border-radius: var(--ioh-radius);
    text-align: center;
    color: var(--ioh-text-light);
}

.ioh-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--ioh-text);
}

.ioh-dashboard-header {
    background: linear-gradient(135deg, var(--ioh-primary) 0%, var(--ioh-primary-light) 100%);
    padding: 50px 30px 30px 30px;
    border-radius: var(--ioh-radius);
    margin-bottom: 24px;
    position: relative;
}

.ioh-user-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ioh-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.ioh-user-info {
    color: var(--ioh-white);
}

.ioh-user-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.ioh-user-level {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ioh-level-badge {
    background: var(--ioh-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.ioh-rank {
    opacity: 0.9;
    font-size: 14px;
}

.ioh-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ioh-stat-box {
    background: var(--ioh-white);
    padding: 24px;
    border-radius: var(--ioh-radius);
    box-shadow: var(--ioh-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ioh-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--ioh-shadow-lg);
}

.ioh-stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ioh-accent) 0%, var(--ioh-accent-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.ioh-stat-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--ioh-white);
}

.ioh-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--ioh-primary);
    line-height: 1.2;
}

.ioh-stat-title {
    font-size: 14px;
    color: var(--ioh-text-light);
    margin-top: 4px;
}

.ioh-level-progress-section {
    background: var(--ioh-white);
    padding: 24px;
    border-radius: var(--ioh-radius);
    box-shadow: var(--ioh-shadow);
    margin-bottom: 24px;
}

.ioh-level-progress-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--ioh-primary);
}

.ioh-progress-bar {
    height: 12px;
    background: var(--ioh-bg);
    border-radius: 6px;
    overflow: hidden;
}

.ioh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ioh-accent) 0%, var(--ioh-accent-light) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.ioh-progress-info {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ioh-text-light);
}

.ioh-points-breakdown-section {
    background: var(--ioh-white);
    padding: 24px;
    border-radius: var(--ioh-radius);
    box-shadow: var(--ioh-shadow);
    margin-bottom: 24px;
}

.ioh-points-breakdown-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--ioh-primary);
}

.ioh-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 992px) {
    .ioh-breakdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ioh-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

.ioh-breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--ioh-bg);
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 76px;
}

.ioh-breakdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ioh-breakdown-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--ioh-accent) 0%, var(--ioh-accent-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ioh-breakdown-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.ioh-breakdown-details {
    flex: 1;
    min-width: 0;
}
.coming_soon {
    font-style: italic;
    color: #808080 !important;
}

.ioh-breakdown-label {
    display: block;
    font-weight: 600;
    color: var(--ioh-text);
    font-size: 14px;
    margin-bottom: 2px;
}

.ioh-breakdown-count {
    display: block;
    font-size: 12px;
    color: var(--ioh-text-light);
}

.ioh-breakdown-points {
    font-weight: 700;
    color: var(--ioh-accent);
    font-size: 16px;
    white-space: nowrap;
}

.ioh-dashboard-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ioh-dashboard-section {
    background: var(--ioh-white);
    padding: 24px;
    border-radius: var(--ioh-radius);
    box-shadow: var(--ioh-shadow);
    margin-bottom: 24px;
}

.ioh-dashboard-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--ioh-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ioh-bg);
}

.ioh-empty-message {
    color: var(--ioh-text-light);
    text-align: center;
    padding: 20px;
}

.ioh-badges-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ioh-badge-mini {
    text-align: center;
}

.ioh-badge-mini img,
.ioh-badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 8px;
    object-fit: cover;
}

.ioh-badge-icon {
    background: linear-gradient(135deg, var(--ioh-accent) 0%, var(--ioh-accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.ioh-badge-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--ioh-white);
}

.ioh-badge-name {
    font-size: 12px;
    color: var(--ioh-text);
    font-weight: 500;
}

.ioh-badge-mini.ioh-badge-locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.ioh-badge-mini.ioh-badge-locked .ioh-badge-icon {
    background: linear-gradient(135deg, #999 0%, #ccc 100%);
}

.ioh-badge-mini.ioh-badge-locked .ioh-badge-name {
    color: #999;
}

.ioh-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ioh-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ioh-border);
}

.ioh-activity-item:last-child {
    border-bottom: none;
}

.ioh-activity-points {
    font-weight: 700;
    min-width: 60px;
}

.ioh-activity-item.positive .ioh-activity-points {
    color: var(--ioh-success);
}

.ioh-activity-item.negative .ioh-activity-points {
    color: var(--ioh-danger);
}

.ioh-activity-desc {
    flex: 1;
    font-size: 14px;
}

.ioh-activity-date {
    font-size: 12px;
    color: var(--ioh-text-light);
}

.ioh-mini-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ioh-leader-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--ioh-bg);
    border-radius: var(--ioh-radius-sm);
    transition: background 0.2s;
}

.ioh-leader-row.current-user {
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.1) 0%, rgba(56, 178, 172, 0.2) 100%);
    border: 1px solid var(--ioh-accent);
}

.ioh-leader-rank {
    font-weight: 700;
    color: var(--ioh-primary);
    min-width: 30px;
}

.ioh-leader-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.ioh-leader-name {
    flex: 1;
    font-weight: 500;
}

.ioh-leader-points {
    font-weight: 600;
    color: var(--ioh-accent);
}

.ioh-achievements-summary {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.ioh-achievement-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--ioh-primary);
}

.ioh-achievement-label {
    font-size: 14px;
    color: var(--ioh-text-light);
}

.ioh-leaderboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.ioh-leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ioh-leaderboard-header h2 {
    margin: 0;
    color: var(--ioh-primary);
}

.ioh-leaderboard-filters {
    display: flex;
    gap: 8px;
}

.ioh-filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--ioh-border);
    background: var(--ioh-white);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.ioh-filter-btn:hover {
    border-color: var(--ioh-accent);
    color: var(--ioh-accent);
}

.ioh-filter-btn.active {
    background: var(--ioh-accent);
    border-color: var(--ioh-accent);
    color: var(--ioh-white);
}

.ioh-your-rank {
    background: linear-gradient(135deg, var(--ioh-primary) 0%, var(--ioh-primary-light) 100%);
    color: var(--ioh-white);
    padding: 16px 24px;
    border-radius: var(--ioh-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ioh-your-rank-label {
    opacity: 0.9;
}

.ioh-your-rank-value {
    font-size: 24px;
    font-weight: 700;
}

.ioh-your-rank-percentile {
    background: var(--ioh-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.ioh-leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
}

.ioh-podium-place {
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--ioh-shadow);
    position: relative;
    transition: transform 0.3s;
}

.ioh-podium-place:hover {
    transform: translateY(-5px);
}

.ioh-podium-place.first {
    padding: 32px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.ioh-podium-place.second {
    background: linear-gradient(135deg, #e0e5ec 0%, #c9d6e3 100%);
}

.ioh-podium-place.third {
    background: linear-gradient(135deg, #ffecd2 0%, #deb887 100%);
}

.ioh-podium-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.ioh-podium-crown svg {
    width: 40px;
    height: 40px;
    fill: #ffd700;
}

.ioh-podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--ioh-white);
    margin-bottom: 12px;
    object-fit: cover;
}

.ioh-podium-place.first .ioh-podium-avatar {
    width: 100px;
    height: 100px;
}

.ioh-podium-rank {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ioh-primary);
}

.ioh-podium-name {
    display: block;
    font-weight: 600;
    margin: 8px 0;
}

.ioh-podium-points {
    display: block;
    color: var(--ioh-accent);
    font-weight: 600;
}

.ioh-podium-level {
    display: block;
    font-size: 12px;
    color: var(--ioh-text-light);
    margin-top: 4px;
}

.ioh-leaderboard-list {
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    overflow: hidden;
    box-shadow: var(--ioh-shadow);
}

.ioh-leaderboard-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ioh-border);
    transition: background 0.2s;
}

.ioh-leaderboard-row:hover {
    background: var(--ioh-bg);
}

.ioh-leaderboard-row.current-user {
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.1) 0%, rgba(56, 178, 172, 0.15) 100%);
    border-left: 4px solid var(--ioh-accent);
}

.ioh-leaderboard-row:last-child {
    border-bottom: none;
}

.ioh-row-rank {
    font-weight: 700;
    font-size: 18px;
    color: var(--ioh-primary);
    min-width: 50px;
}

.ioh-row-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ioh-row-info {
    flex: 1;
}

.ioh-row-name {
    display: block;
    font-weight: 600;
}

.ioh-row-level {
    font-size: 12px;
    color: var(--ioh-text-light);
}

.ioh-row-badges {
    display: flex;
    gap: 4px;
}

.ioh-row-badge {
    width: 24px;
    height: 24px;
}

.ioh-row-badge img,
.ioh-row-badge svg {
    width: 100%;
    height: 100%;
    fill: var(--ioh-accent);
}

.ioh-row-points {
    font-weight: 700;
    font-size: 16px;
    color: var(--ioh-accent);
    min-width: 100px;
    text-align: right;
}

.ioh-empty-leaderboard {
    text-align: center;
    padding: 60px 20px;
    color: var(--ioh-text-light);
}

.ioh-badges-collection h2 {
    margin: 0 0 16px 0;
    color: var(--ioh-primary);
}

.ioh-badges-summary {
    background: var(--ioh-bg);
    padding: 12px 20px;
    border-radius: var(--ioh-radius-sm);
    margin-bottom: 24px;
}

.ioh-badges-count {
    color: var(--ioh-text-light);
    font-size: 14px;
}

.ioh-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ioh-badge-card {
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    padding: 20px;
    box-shadow: var(--ioh-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.ioh-badge-achievement-info {
    margin: 12px 0;
    padding: 10px;
    background: var(--ioh-bg);
    border-radius: var(--ioh-radius-sm);
    border-left: 3px solid var(--ioh-accent);
    position: relative;
}

.ioh-badge-achievement-info .ioh-achievement-text {
    font-size: 13px;
    color: var(--ioh-text);
    line-height: 1.4;
    display: block;
    font-weight: 500;
}

.ioh-badge-achievement-info:hover {
    background: var(--ioh-accent-light);
    background: rgba(56, 178, 172, 0.1);
    transition: background 0.2s ease;
}

.ioh-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ioh-shadow-lg);
}

.ioh-badge-card.locked {
    opacity: 0.7;
}

.ioh-badge-card.locked .ioh-badge-image img,
.ioh-badge-card.locked .ioh-badge-placeholder {
    filter: grayscale(100%);
}

.ioh-badge-image {
    position: relative;
    flex-shrink: 0;
}

.ioh-badge-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.ioh-badge-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ioh-accent) 0%, var(--ioh-accent-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ioh-badge-placeholder svg {
    width: 40px;
    height: 40px;
    fill: var(--ioh-white);
}

.ioh-badge-lock {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ioh-badge-lock svg {
    width: 32px;
    height: 32px;
    fill: var(--ioh-white);
}

.ioh-badge-info {
    flex: 1;
}

.ioh-badge-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--ioh-primary);
}

.ioh-badge-desc {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--ioh-text-light);
}

.ioh-badge-earned-label {
    display: inline-block;
    background: var(--ioh-success);
    color: var(--ioh-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ioh-badge-progress,
.ioh-achievement-progress {
    margin-bottom: 8px;
}

.ioh-progress-bar-mini {
    height: 6px;
    background: var(--ioh-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.ioh-progress-fill-mini {
    height: 100%;
    background: var(--ioh-accent);
    border-radius: 3px;
    transition: width 0.5s;
}

.ioh-badge-progress-text,
.ioh-achievement-progress-text {
    font-size: 12px;
    color: var(--ioh-text-light);
}

.ioh-badge-reward,
.ioh-achievement-reward {
    display: inline-block;
    background: linear-gradient(135deg, var(--ioh-accent) 0%, var(--ioh-accent-light) 100%);
    color: var(--ioh-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.ioh-achievements h2 {
    margin: 0 0 24px 0;
    color: var(--ioh-primary);
}

.ioh-achievements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ioh-achievement-card {
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    padding: 20px;
    box-shadow: var(--ioh-shadow);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.2s;
}

.ioh-achievement-card:hover {
    transform: translateX(4px);
}

.ioh-achievement-card.completed {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
    border-left: 4px solid var(--ioh-success);
}

.ioh-achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--ioh-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.ioh-achievement-card.completed .ioh-achievement-icon {
    background: linear-gradient(135deg, var(--ioh-success) 0%, #68d391 100%);
}

.ioh-achievement-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--ioh-text-light);
}

.ioh-achievement-card.completed .ioh-achievement-icon svg {
    fill: var(--ioh-white);
}

.ioh-achievement-check {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--ioh-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ioh-white);
}

.ioh-achievement-check svg {
    width: 14px;
    height: 14px;
    fill: var(--ioh-white);
}

.ioh-achievement-content {
    flex: 1;
}

.ioh-achievement-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--ioh-primary);
}

.ioh-achievement-desc {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--ioh-text-light);
}

.ioh-achievement-completed-date {
    font-size: 12px;
    color: var(--ioh-success);
    font-weight: 500;
}

.ioh-shop {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.ioh-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ioh-shop-header h2 {
    margin: 0;
    color: var(--ioh-primary);
}

.ioh-shop-balance {
    background: linear-gradient(135deg, var(--ioh-primary) 0%, var(--ioh-primary-light) 100%);
    color: var(--ioh-white);
    padding: 12px 24px;
    border-radius: var(--ioh-radius);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ioh-balance-value {
    font-size: 24px;
    font-weight: 700;
}

.ioh-shop-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ioh-text-light);
}

.ioh-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.ioh-shop-item {
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    overflow: hidden;
    box-shadow: var(--ioh-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ioh-shop-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ioh-shadow-lg);
}

.ioh-shop-item.purchased {
    opacity: 0.8;
}

.ioh-shop-item.out-of-stock {
    opacity: 0.6;
}

.ioh-item-image {
    height: 160px;
    background: var(--ioh-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ioh-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ioh-item-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ioh-accent) 0%, var(--ioh-accent-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ioh-item-placeholder svg {
    width: 40px;
    height: 40px;
    fill: var(--ioh-white);
}

.ioh-item-owned {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(72, 187, 120, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ioh-white);
}

.ioh-item-owned svg {
    width: 48px;
    height: 48px;
    fill: var(--ioh-white);
    margin-bottom: 8px;
}

.ioh-item-info {
    padding: 20px;
}

.ioh-item-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: var(--ioh-primary);
}

.ioh-item-desc {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--ioh-text-light);
    line-height: 1.5;
}

.ioh-item-meta {
    display: flex;
    gap: 12px;
}

.ioh-item-type,
.ioh-item-stock {
    font-size: 12px;
    padding: 4px 8px;
    background: var(--ioh-bg);
    border-radius: 4px;
    color: var(--ioh-text-light);
}

.ioh-item-footer {
    padding: 16px 20px;
    background: var(--ioh-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ioh-item-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ioh-accent);
}

.ioh-item-price svg {
    fill: var(--ioh-accent);
}

.ioh-buy-btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--ioh-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, var(--ioh-accent) 0%, var(--ioh-accent-dark) 100%);
    color: var(--ioh-white);
}

.ioh-buy-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.4);
}

.ioh-buy-btn.disabled,
.ioh-buy-btn.purchased,
.ioh-buy-btn.out-of-stock {
    background: var(--ioh-border);
    color: var(--ioh-text-light);
    cursor: not-allowed;
}

.ioh-user-stats-widget {
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    padding: 24px;
    box-shadow: var(--ioh-shadow);
}

.ioh-stats-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ioh-bg);
}

.ioh-stats-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.ioh-stats-user-info h3 {
    margin: 0 0 4px 0;
    color: var(--ioh-primary);
}

.ioh-stats-level {
    background: var(--ioh-accent);
    color: var(--ioh-white);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ioh-stats-numbers {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.ioh-stats-item {
    text-align: center;
}

.ioh-stats-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--ioh-primary);
}

.ioh-stats-label {
    font-size: 12px;
    color: var(--ioh-text-light);
}

.ioh-stats-progress .ioh-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ioh-text-light);
    margin-bottom: 4px;
}

.ioh-stats-progress .ioh-progress-text {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--ioh-text-light);
    margin-top: 8px;
}

.ioh-points-history h2 {
    margin: 0 0 24px 0;
    color: var(--ioh-primary);
}

.ioh-history-empty {
    text-align: center;
    padding: 40px;
    color: var(--ioh-text-light);
}

.ioh-history-list {
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    box-shadow: var(--ioh-shadow);
    overflow: hidden;
}

.ioh-history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ioh-border);
}

.ioh-history-item:last-child {
    border-bottom: none;
}

.ioh-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ioh-history-item.positive .ioh-history-icon {
    background: rgba(72, 187, 120, 0.1);
}

.ioh-history-item.positive .ioh-history-icon svg {
    fill: var(--ioh-success);
}

.ioh-history-item.negative .ioh-history-icon {
    background: rgba(245, 101, 101, 0.1);
}

.ioh-history-item.negative .ioh-history-icon svg {
    fill: var(--ioh-danger);
}

.ioh-history-icon svg {
    width: 20px;
    height: 20px;
}

.ioh-history-content {
    flex: 1;
}

.ioh-history-desc {
    display: block;
    font-weight: 500;
    color: var(--ioh-text);
}

.ioh-history-date {
    font-size: 12px;
    color: var(--ioh-text-light);
}

.ioh-history-points {
    font-size: 18px;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.ioh-history-item.positive .ioh-history-points {
    color: var(--ioh-success);
}

.ioh-history-item.negative .ioh-history-points {
    color: var(--ioh-danger);
}

@media (max-width: 768px) {
    .ioh-leaderboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ioh-leaderboard-podium {
        flex-direction: column;
        align-items: center;
    }
    
    .ioh-podium-place.first {
        order: -1;
    }
    
    .ioh-badges-grid {
        grid-template-columns: 1fr;
    }
    
    .ioh-shop-grid {
        grid-template-columns: 1fr;
    }
    
    .ioh-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ioh-dashboard-columns {
        grid-template-columns: 1fr;
    }
}

.ioh-top-students-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--ioh-white);
    border-radius: var(--ioh-radius);
    box-shadow: var(--ioh-shadow);
    overflow: hidden;
}

.ioh-top-students-header {
    background: var(--ioh-white);
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid var(--ioh-border);
}

.ioh-top-students-header h3 {
    margin: 0;
    color: var(--ioh-text);
    font-size: 18px;
    font-weight: 700;
}

.ioh-top-students-list {
    padding: 0;
}

.ioh-no-students {
    padding: 40px 20px;
    text-align: center;
    color: var(--ioh-text-light);
}

.ioh-top-student-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 12px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--ioh-border);
}

.ioh-top-student-row:last-child {
    border-bottom: none;
}

.ioh-top-student-row:hover {
    background-color: var(--ioh-bg);
}

.ioh-top-student-row.ioh-current-user {
    background-color: rgba(56, 178, 172, 0.08);
}

.ioh-top-student-row.ioh-current-user:hover {
    background-color: rgba(56, 178, 172, 0.12);
}

.ioh-student-rank {
    min-width: 45px;
    text-align: center;
}

.ioh-rank-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
}

.ioh-rank-badge.ioh-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #7c5c00;
}

.ioh-rank-badge.ioh-silver {
    background: linear-gradient(135deg, #e8e8e8 0%, #b8b8b8 100%);
    color: #4a4a4a;
}

.ioh-rank-badge.ioh-bronze {
    background: linear-gradient(135deg, #e8a87c 0%, #cd7f32 100%);
    color: #5c3d1e;
}

.ioh-rank-number {
    font-weight: 700;
    color: var(--ioh-accent);
    font-size: 15px;
}

.ioh-student-avatar {
    flex-shrink: 0;
}

.ioh-student-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ioh-border);
}

.ioh-top-student-row.ioh-top-three .ioh-student-avatar img {
    border-color: var(--ioh-accent);
}

.ioh-student-name {
    flex: 1;
    font-weight: 500;
    color: var(--ioh-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ioh-you-badge {
    background: var(--ioh-accent);
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.ioh-student-points {
    font-weight: 700;
    color: var(--ioh-accent);
    font-size: 15px;
    min-width: 80px;
    text-align: right;
}

.ioh-your-rank-section {
    border-top: 1px solid var(--ioh-border);
}

.ioh-rank-divider {
    text-align: center;
    padding: 8px 0;
    color: var(--ioh-text-light);
    font-size: 16px;
    letter-spacing: 4px;
}

.ioh-your-position {
    background-color: rgba(56, 178, 172, 0.1);
}

.ioh-not-ranked .ioh-student-points {
    color: var(--ioh-text-light);
}

.ioh-start-earning {
    font-size: 12px;
    font-weight: 500;
}

.ioh-back-button {
    position: absolute;
    top: 20px;
    right: 20px;
  /*  display: flex; 
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    z-index: 10;
}
/*
.ioh-back-button:hover {
    background: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    color: #333333;
}
*/
.ioh-back-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}a.ioh-back-button .button-wrap.glass_btn button.forum-guide-btn.button {
    box-shadow: inset 0 0 3px #ffffffb0 !important;
}


a.ioh-back-button .button-wrap.glass_btn {
    padding: 0 !important;
    margin: 0 !important;
} 
a.ioh-back-button .button-wrap.glass_btn span:after {
    background: transparent;
}
a.ioh-back-button .button-wrap.glass_btn span {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #fff !important;
}

a.ioh-back-button .button-wrap.glass_btn span svg {
    filter: invert(1);
}

@media (max-width: 767px) {
.ioh-dashboard-header {

    padding: 72px 20px 30px 20px;

    margin-bottom: 24px;
    position: relative;
}.ioh-dashboard-header .ioh-user-profile h2.ioh-user-name {
    color: #fff;
    font-size: 20px;
    line-height: 1.4;
}
.ioh-points-breakdown-section {

    padding: 24px 15px;
 
}.ioh-user-avatar {
    width: 70px;
    height: 70px;

}
 
}

@media (max-width: 480px) {
    .ioh-top-student-row {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .ioh-student-rank {
        min-width: 35px;
    }
    
    .ioh-student-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .ioh-student-points {
        font-size: 13px;
        min-width: 60px;
    }
}
