html,
body {
    background: linear-gradient(135deg, #0c0d0e 0%, #323333 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.container {
    max-width: 400px;
    width: 100%;
}

.header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(45, 55, 72, 0.7);
    border-radius: 16px;
}

.profile-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6ad55 0%, #fc8181 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.balance-amount {
    color: #f6e05e;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.rub-amount {
    color: #68d391;
    font-weight: bold;
    font-size: 1.1rem;
}

.action-button {
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(45, 55, 72, 0.5);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.feature-icon {
    font-size: 1.8rem;
    color: #f6ad55;
    margin-bottom: 10px;
}

.feature-text {
    color: #cbd5e0;
    font-size: 0.9rem;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: rgba(45, 55, 72, 0.9);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #1a202c;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 300px;
    color: white;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

.flag-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.flag-icon {
    width: 40px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.flag-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.flag-icon.active {
    border: 2px solid #f6ad55;
}