﻿/* ============================================
   GLASS THEME - Custom Styles
   ============================================ */

/* Glass Card Component */
.glass-card {
    /* background: rgba(255, 255, 255, 0.05);*/
    /*background: rgb(68 68 105 / 5%) !important;*/
    /* background: rgb(33 29 51 / 27%) !important;*/
    /* background: rgb(57 57 59 / 28%) !important;*/
    /* background: rgb(25 25 43 / 30%) !important;*/
    /*background: rgb(69 69 99 / 12%) !important;*/
    background: rgb(59 59 61 / 31%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* border: 1px solid rgba(255, 255, 255, 0.08);*/
    border-radius: 16px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);*/
    transition: all 0.3s ease;
}

    .glass-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.12);
        /*transform: translateY(-2px);*/
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    }

/* Glass Card Variants */
.glass-card-primary {
    background: rgba(51, 96, 232, 0.12);
    border-color: rgba(51, 96, 232, 0.2);
}

.glass-card-success {
    background: rgba(0, 200, 83, 0.1);
    border-color: rgba(0, 200, 83, 0.15);
}

.glass-card-warning {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.15);
}

.glass-card-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.15);
}

.glass-card-info {
    background: rgba(55, 194, 249, 0.1);
    border-color: rgba(55, 194, 249, 0.15);
}

/* Glass Button */
.glass-btn {
    /*   background: rgb(9 8 12 / 34%);
    backdrop-filter: blur(8px);*/
    -webkit-backdrop-filter: blur(8px);
    /* border: 1px solid rgb(255 255 255 / 4%);*/
    background: var(--mud-palette-action-default-hover);
    border-radius: 12px;
    padding: 10px 20px;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .glass-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.glass-btn-primary {
    background: var(--primary-color);
    border-color: rgba(51, 96, 232, 0.3);
}

    .glass-btn-primary:hover {
        background: rgba(51, 96, 232, 0.35);
        border-color: rgba(51, 96, 232, 0.5);
    }

.glass-btn-success {
    background: rgba(0, 200, 83, 0.2);
    border-color: rgba(0, 200, 83, 0.25);
}

    .glass-btn-success:hover {
        background: rgba(0, 200, 83, 0.3);
        border-color: rgba(0, 200, 83, 0.4);
    }

/* Glass Input */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    transition: all 0.3s ease;
}

    .glass-input:focus {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(51, 96, 232, 0.4);
        outline: none;
        box-shadow: 0 0 20px rgba(51, 96, 232, 0.1);
    }

    .glass-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

/* Glass Navbar */
/*.glass-navbar {
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}*/

/* Glass Bottom Sheet */
.glass-bottom-sheet {
    background: rgba(18, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px 24px 0 0;
}

/* Glass Auth Container */
.glass-auth {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /*border: 1px solid rgba(255, 255, 255, 0.06);*/
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.glass-badge-primary {
    /*background: rgba(51, 96, 232, 0.15);
    border-color: rgba(51, 96, 232, 0.2);
    color: #60a5fa;*/
}

.glass-badge-success {
    background: rgba(0, 200, 83, 0.12);
    border-color: rgba(0, 200, 83, 0.15);
    color: #4ade80;
}

/* Glass Divider */
.glass-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Gradient Border */
.gradient-border {
    position: relative;
    border: none !important;
}

    .gradient-border::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(167, 139, 250, 0.3));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

/* Glow Effect */
.glow-primary {
    box-shadow: 0 0 40px rgba(51, 96, 232, 0.15);
}

.glow-gold {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75% );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Glass Stats Card */
.glass-stats {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

    .glass-stats:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-4px);
    }

    .glass-stats .stats-value {
        font-size: 24px;
        font-weight: 700;
        background: linear-gradient(135deg, #60a5fa, #a78bfa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .glass-stats .stats-label {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 4px;
    }

/* Glass Avatar Ring */
.glass-avatar-ring {
    padding: 2px;
    border-radius: 50%;
   /* background: linear-gradient(135deg, #60a5fa91, #a78bfa4d);*/
}

    .glass-avatar-ring img {
        border-radius: 50%;
       /* border: 2px solid rgba(15, 15, 26, 0.8);*/
    }

/* Status Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

    .status-dot.online {
        background: #4ade80;
        box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
    }

    .status-dot.offline {
        background: #f87171;
        box-shadow: 0 0 12px rgba(248, 113, 113, 0.4);
    }

    .status-dot.away {
        background: #fbbf24;
        box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
    }

/* ============================================
   GLASS NAVBAR - Enhanced
   ============================================ */

.glass-navbar {
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    /*box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);*/
    backdrop-filter: blur(8px);
}

/* Nav Icon Container */
.nav-icon-box {
    position: relative;
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .nav-icon-box .nav-icon {
        width: 33px;
        height: 33px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        background: transparent;
    }

        /* Nav Icon - Selected State */
        .nav-icon-box .nav-icon.glow-primary {
            background: rgba(51, 96, 232, 0.15);
            box-shadow: 0 0 30px rgba(51, 96, 232, 0.2);
        }

        .nav-icon-box .nav-icon svg,
        .nav-icon-box .nav-icon .mud-icon-root {
            transition: all 0.3s ease;
        }

/* Nav Item - Selected State */
.nav-item-selected .nav-icon-box .nav-icon {
    background: rgba(51, 96, 232, 0.12);
    transform: scale(1.05);
}

    .nav-item-selected .nav-icon-box .nav-icon svg {
        filter: drop-shadow(0 0 8px rgba(51, 96, 232, 0.3));
    }

/* Nav Item - Hover Effect */
button:not(.nav-item-selected):hover .nav-icon-box .nav-icon {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}

/* Nav Active Indicator */
.nav-active-indicator {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 4px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.3);
    animation: slideUp 0.3s ease;
}

/* Nav Label */
.nav-label {
    font-size: 10px;
    margin-top: 2px;
    transition: all 0.3s ease;
}

    .nav-label.active {
        background: linear-gradient(135deg, #60a5fa, #a78bfa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 600;
    }

/* Pulse Animation for Active Tab */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(51, 96, 232, 0.15);
    }

    50% {
        box-shadow: 0 0 40px rgba(51, 96, 232, 0.25);
    }
}

.nav-icon-box.active .nav-icon {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   NAVBAR - Mobile Optimizations
   ============================================ */

@media (max-width: 600px) {
    .glass-navbar {
        height: 60px;
    }

    .nav-icon-box {
        width: 40px;
        height: 30px;
    }

        .nav-icon-box .nav-icon {
            width: 30px;
            height: 30px;
        }

            .nav-icon-box .nav-icon svg,
            .nav-icon-box .nav-icon .mud-icon-root {
                width: 20px !important;
                height: 20px !important;
            }

    .nav-label {
        font-size: 9px;
    }
}


/* ============================================
   GAME DETAIL - Glass Styles
   ============================================ */

/* Game Detail Card */
.game-detail-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Player Avatar Ring */
.player-avatar-ring {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(167, 139, 250, 0.3));
    display: inline-block;
}

    .player-avatar-ring img {
        border-radius: 50%;
        border: 2px solid rgba(15, 15, 26, 0.8);
    }

/* Game Detail Section */
.game-detail-section {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

    .game-detail-section:last-child {
        border-bottom: none;
    }

/* VS Badge */
.vs-badge {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 20px;
    padding: 2px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge-open {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-badge-waiting {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-badge-inprogress {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

/* Game Detail Button */
.game-detail-btn {
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.game-detail-btn-join {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 200, 83, 0.1));
    border: 1px solid rgba(0, 200, 83, 0.25);
    color: #4ade80;
}

    .game-detail-btn-join:hover {
        background: linear-gradient(135deg, rgba(0, 200, 83, 0.3), rgba(0, 200, 83, 0.15));
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 200, 83, 0.15);
    }

.game-detail-btn-delete {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    border: 1px solid rgba(244, 67, 54, 0.25);
    color: #f87171;
}

    .game-detail-btn-delete:hover {
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(244, 67, 54, 0.15));
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(244, 67, 54, 0.15);
    }

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

    .time-display .time-icon {
        font-size: 14px;
    }

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

@media (max-width: 600px) {
    .glass-card {
        border-radius: 12px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .glass-stats .stats-value {
        font-size: 20px;
    }

    .game-detail-card {
        border-radius: 12px;
    }

    .game-detail-section {
        padding: 12px;
    }

    .player-avatar-ring {
        width: 44px;
        height: 44px;
    }

    .game-detail-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}


@media (max-width: 400px) {
    .glass-navbar {
        height: 55px;
    }

    .nav-icon-box {
        width: 36px;
        height: 30px;
    }

        .nav-icon-box .nav-icon {
            width: 32px;
            height: 32px;
        }

            .nav-icon-box .nav-icon svg,
            .nav-icon-box .nav-icon .mud-icon-root {
                width: 18px !important;
                height: 18px !important;
            }

    .nav-label {
        font-size: 8px;
    }
}


/* ============================================ IOS SETTINGS STYLES ============================================ */
.ios-settings-container {
    padding: 0 8px 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Profile Header */
.ios-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

    .ios-profile-header:hover {
        background: rgba(255, 255, 255, 0.06);
    }

.ios-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.ios-avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

    .ios-avatar-ring img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ios-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--primary-color);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 600;
    color: white;
    border: 2px solid var(--mud-palette-background, #1a1a2e);
}

.ios-profile-info {
    flex: 1;
    min-width: 0;
}

.ios-profile-name {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.ios-profile-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

.ios-profile-arrow {
    flex-shrink: 0;
}

/* Stats Section */
.ios-stats-section {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.ios-stat-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.ios-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ios-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

    .ios-stat-icon.success {
        background: rgba(76, 175, 80, 0.12);
    }

    .ios-stat-icon.neutral {
        background: rgba(255, 215, 0, 0.12);
    }

    .ios-stat-icon.fail {
        background: rgba(244, 67, 54, 0.12);
    }

.ios-stat-info {
    flex: 1;
    min-width: 0;
}

.ios-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.ios-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Settings Group */
.ios-settings-group {
    margin-bottom: 16px;
    backdrop-filter: blur(5px);
}

.ios-section-header {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px 6px;
}

.ios-settings-list {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ios-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 44px;
}

    .ios-setting-item:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .ios-setting-item.logout:hover {
        background: rgba(244, 67, 54, 0.06);
    }

.ios-setting-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.ios-setting-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

    .ios-setting-icon.primary {
        background: rgba(243, 64, 117, 0.12);
        color: var(--primary-color);
    }

    .ios-setting-icon.gold {
        background: rgba(255, 215, 0, 0.12);
        color: #ffd700;
    }

    .ios-setting-icon.language {
        background: rgba(100, 181, 246, 0.12);
        color: #64b5f6;
    }

    .ios-setting-icon.info {
        background: rgba(100, 181, 246, 0.12);
        color: #64b5f6;
    }

    .ios-setting-icon.danger {
        background: rgba(244, 67, 54, 0.12);
        color: #f44336;
    }

.ios-setting-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

    .ios-setting-label.logout-text {
        color: #f44336;
    }

.ios-setting-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ios-setting-value {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

    .ios-setting-value.gold-text {
        color: #ffd700;
    }

.ios-checkmark {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

.ios-setting-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 16px;
}

/* History Items */
.ios-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-height: 50px;
}

.ios-history-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ios-history-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .ios-history-icon.win {
        background: rgba(76, 175, 80, 0.12);
    }

    .ios-history-icon.lose {
        background: rgba(244, 67, 54, 0.12);
    }

.ios-history-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.ios-history-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.ios-history-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.ios-history-points {
    font-size: 14px;
    font-weight: 600;
}

    .ios-history-points.win-color {
        color: #4caf50;
    }

    .ios-history-points.lose-color {
        color: #f44336;
    }

.ios-history-status {
    font-size: 10px;
    font-weight: 500;
    padding: 0 8px;
    border-radius: 6px;
}

    .ios-history-status.win {
        color: #4caf50;
        background: rgba(76, 175, 80, 0.08);
    }

    .ios-history-status.lose {
        color: #f44336;
        background: rgba(244, 67, 54, 0.08);
    }

.ios-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 3px 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .ios-show-more:hover {
        background: rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.6);
    }

/* Empty State */
.ios-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    gap: 8px;
}

.ios-empty-icon {
    font-size: 28px;
    opacity: 0.3;
}

.ios-empty-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.ios-rep-box {
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    padding: 10px;
    margin-bottom: 20px;
}

.ios-rep-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(5px);
}

/* ============================================ IOS EDIT PROFILE STYLES ============================================ */
.ios-edit-profile-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
}

/* Header */
.ios-edit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ios-edit-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.ios-edit-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .ios-edit-close:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.ios-edit-header-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.ios-edit-header-right {
    min-width: 60px;
    text-align: right;
}

.ios-edit-save {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .ios-edit-save:hover {
        background: rgba(243, 64, 117, 0.1);
    }

/* Body */
.ios-edit-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 24px;
}

    .ios-edit-body::-webkit-scrollbar {
        width: 3px;
    }

    .ios-edit-body::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 10px;
    }

    .ios-edit-body::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }

/* Image Section */
.ios-edit-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ios-edit-avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.ios-edit-avatar-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

    .ios-edit-avatar-ring img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ios-edit-avatar-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--mud-palette-background, #0a0a1a);
    transition: all 0.2s ease;
}

    .ios-edit-avatar-overlay:hover {
        transform: scale(1.05);
    }

.ios-edit-image-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* Form Fields */
.ios-edit-form {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ios-edit-field {
    padding: 12px 16px;
}

    .ios-edit-field:active {
        background: rgba(255, 255, 255, 0.02);
    }

.ios-edit-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.ios-edit-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    padding: 4px 0;
    font-family: inherit;
}

    .ios-edit-input::placeholder {
        color: rgba(255, 255, 255, 0.2);
    }

.ios-edit-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0 16px;
}

/* Responsive */
@media (max-width: 480px) {

    .ios-profile-header {
        padding: 16px 12px;
    }

    .ios-avatar-ring {
        width: 52px;
        height: 52px;
    }

    .ios-profile-name {
        font-size: 15px;
    }

    .ios-stat-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .ios-stat-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .ios-stat-value {
        font-size: 14px;
    }

    .ios-setting-item {
        padding: 8px 12px;
        min-height: 40px;
    }

    .ios-setting-label {
        font-size: 13px;
    }

    .ios-edit-header {
        padding: 8px 12px;
        min-height: 48px;
    }

    .ios-edit-header-title {
        font-size: 14px;
    }

    .ios-edit-body {
        padding: 16px 12px 20px;
    }

    .ios-edit-avatar-ring {
        width: 64px;
        height: 64px;
    }

    .ios-edit-avatar-overlay {
        width: 28px;
        height: 28px;
    }

    .ios-edit-field {
        padding: 10px 14px;
    }

    .ios-edit-input {
        font-size: 14px;
    }
}