:root {
    --primary: #6C5CE7;
    --secondary: #A29BFE;
    --accent: #FD79A8;
    --dark: #2D3436;
    --light: #F5F6FA;
    --success: #00B894;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header img {
    height: 35px;
    width: auto;
    border-radius: 50%;
}
        
.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.country-selector {
    background-color: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.country-selector img {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.search-section {
    margin-bottom: 25px;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    background-color: white;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.input-field::placeholder {
    color: #B2BEC3;
}

.payment-methods {
    margin-bottom: 25px;
}

.method-toggle {
    display: flex;
    background-color: white;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.method-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-btn.active {
    background-color: var(--primary);
    color: white;
}

.coins-section {
    margin-top: 20px;
}

.coins-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.coin-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.coin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.coin-card:hover {
    transform: translateY(-5px);
}

.coin-card.highlight {
    background: linear-gradient(135deg, var(--accent), #FF7675);
    position: relative;
    overflow: hidden;
}

.coin-card.highlight::after {
    content: "POPULAR";
    position: absolute;
    top: 25px;
    right: -25px;
    background-color: var(--success);
    color: white;
    padding: 3px 30px;
    font-size: 12px;
    transform: rotate(45deg);
}

.coin-amount {
    font-size: clamp(20px, 5vw, 32px);
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.coin-price {
    font-size: clamp(14px, 3.5vw, 18px);
    opacity: 0.9;
    text-align: center;
}

.bonus-badge {
    margin-top: 8px;
    background-color: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.profile-card {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--secondary);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 3px;
}

.profile-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.role-ID           { background: #e84393; }
.role-USER         { background: #b2bec3; }
.role-AGENT        { background: #00b894; }
.role-HOST         { background: #0984e3; }
.role-BD           { background: #ffeaa7; color: #2d3436; }
.role-OFFICIAL     { background: #6c5ce7; }
.role-CSTEAM       { background: #fdcb6e; color: #2d3436; }
.role-SUPERADMIN   { background: #a29bfe; }
.role-SUPERSELLER  { background: #d63031; }

.role-badge.unknown {
    background: #636e72;
    color: white;
}

.balance-decoration {
    position: absolute;
    right: 30px;
    top: 80px;
    opacity: 0.1;
    font-size: 55px;
    font-weight: bold;
}
.payment-methods {
  justify-content: center;
}

.method-toggle {
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.method-btn {
  border: none;
  background: transparent;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #000;
  font-size: 14px;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.method-btn img {
  width: 20px;
  height: 20px;
}

.method-btn.active {
  background: #6f4ef2;  
  color: #fff;
}

.method-btn.active img {
  filter: brightness(0) invert(1); 
}